/* Daily Life Doc, round 42 (zone P, decision 30): the Plan tab's folded line under each goal, its open rows, the time
   under each plan line, the planner's added part (a dot and its note), the hover pop-up and the history drawer
   (js/plan/plan-fold.js, js/plan/plan-fold-drawer.js; the page "Expert Plans Framework", version 12, chapter 5).
   One quiet grey line in place of round 38's tinted box; the pills reuse css/plan-goals.css (.pgst-*). */

/* ---------- Under each line: its time today, the planner's added part ---------- */
.pgmode .pmore:empty { display: none; }
.pft, .pfa { padding: 0 6px 4px 112px; margin-top: -2px; font-size: var(--t-2xs); line-height: 1.4; color: var(--ink3); font-variant-numeric: tabular-nums; }
.pg-rl .pft, .pg-rl .pfa { padding-left: 6px; }
.pfa { display: flex; align-items: center; gap: 6px; color: var(--sage-d); }
.pfdot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

/* ---------- The folded line ---------- */
.pgx:empty { display: none; }
.pf-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; width: calc(100% - 25px); margin: 4px 0 2px 25px; padding: 6px 10px;
  border: 0; border-radius: 8px; background: var(--soft); color: var(--ink2); font: inherit; font-size: var(--t-xs); line-height: 1.4; text-align: left;
  cursor: pointer; transition: background-color var(--m-step, 160ms) ease; }
.pf-line:hover { background: var(--field); }
.pf-line.on { width: auto; margin: 0 0 2px; padding: 2px 4px; background: none; }
.pf-chev { display: inline-flex; width: 14px; height: 14px; color: var(--ink3); }
.pf-chev svg, .pf-ic svg { width: 100%; height: 100%; }
.pf-g { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.pf-ic { flex: none; display: inline-flex; width: 14px; height: 14px; color: var(--sage-d); }

/* ---------- Tapped open ---------- */
.pf-open { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 2px 25px; padding: 6px 10px 10px; border-radius: 10px; background: var(--soft);
  animation: dd-rise var(--m-add, 260ms) var(--ease-out, ease-out) both; }
.pf-r { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: var(--t-xs); }
.pf-k { display: inline-flex; align-items: center; gap: 5px; color: var(--ink3); font-weight: 500; }
.pf-v { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; min-width: 0; }
.pf-end, .pf-none { color: var(--ink2); }
.pf-it { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px; border: 1px solid var(--cardline); border-radius: 999px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: var(--t-xs); line-height: 20px; }
button.pf-it { cursor: pointer; transition: border-color var(--m-step, 160ms) ease, box-shadow var(--m-step, 160ms) ease, transform var(--m-press, 100ms) ease; }
button.pf-it:hover, button.pf-it.on { border-color: var(--sage); box-shadow: 0 0 0 2px color-mix(in srgb, var(--sage) 22%, transparent); }
button.pf-it:active { transform: scale(.97); }
.pf-it .pgst { line-height: 16px; }
.pf-x { display: inline-flex; width: 16px; height: 16px; margin-right: -4px; padding: 2px; border: 0; border-radius: 50%; background: none; color: var(--ink3); cursor: pointer; }
.pf-x svg { width: 100%; height: 100%; }
.pf-x:hover { background: var(--bad-bg); color: var(--bad-d); }
.pf-add { padding: 1px 6px; border: 0; border-radius: 7px; background: none; color: var(--sage-d); font: inherit; font-size: var(--t-xs); font-weight: 500; cursor: pointer; }
.pf-add:hover { background: var(--field); }
.cmenu.pf-menu { position: static; margin-left: 140px; width: fit-content; min-width: 176px; max-width: 320px; box-shadow: var(--lift); }

/* ---------- The hover pop-up ---------- */
.pfp { position: fixed; z-index: 60; display: flex; flex-direction: column; gap: 2px; max-width: 280px; padding: 8px 11px; border: 1px solid var(--cardline);
  border-radius: 10px; background: var(--surface); box-shadow: var(--lift); color: var(--ink2); font-size: var(--t-xs); line-height: 1.45; pointer-events: none;
  animation: dd-fade 120ms ease both; }
.pfp b { color: var(--ink); font-weight: 600; }

/* ---------- The history drawer ---------- */
.pfd { position: fixed; z-index: 45; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(400px, 100vw); background: var(--surface);
  border-left: 3px solid var(--sage); box-shadow: var(--lift); transform: translateX(100%); transition: transform var(--m-sheet, 280ms) var(--ease-drawer, ease-out); }
.pfd.on { transform: none; }
.pfd-h { display: flex; align-items: center; gap: 10px; padding: 16px 16px 10px 20px; border-bottom: 1px solid var(--cardline); }
.pfd-n { font-size: var(--t-m); font-weight: 600; color: var(--ink); }
.pfd-l { font-size: var(--t-xs); color: var(--ink3); }
.pfd-x { margin-left: auto; }
.pfd-b { flex: 1; overflow-y: auto; padding: 12px 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.pfd-sub { margin: 0; font-size: var(--t-xs); color: var(--ink3); line-height: 1.45; }
.pfd-t { display: flex; flex-direction: column; }
/* Each row is its own grid: fixed shares keep the columns in line, the client's Words stay readable and a long Read as
   wraps (round 42, tester X1 fault 2: an "auto" Read as took a long text's whole width, one letter a line for Words). */
.pfd-r { display: grid; grid-template-columns: 84px minmax(0, 3fr) minmax(0, 2fr); gap: 10px; align-items: baseline; width: 100%; padding: 8px 4px;
  border: 0; border-bottom: 1px solid var(--cardline); border-radius: 0; background: none; color: var(--ink); font: inherit; font-size: var(--t-s); text-align: left; }
button.pfd-r { cursor: pointer; transition: background-color var(--m-step, 160ms) ease; }
button.pfd-r:hover { background: var(--soft); }
.pfd-hd { padding-top: 0; font-size: var(--t-2xs); font-weight: 600; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; }
.pfd-r > span:first-child { color: var(--ink2); font-variant-numeric: tabular-nums; }
.pfd-w { overflow-wrap: anywhere; }
.pfd-w.none, .pfd-v.none { color: var(--ink3); }
.pfd-v { min-width: 0; overflow-wrap: anywhere; font-weight: 500; font-variant-numeric: tabular-nums; }
.pfd-none { margin: 0; color: var(--ink3); font-size: var(--t-s); }
.pfd-go { align-self: flex-start; padding: 4px 0; border: 0; background: none; color: var(--sage-d); font: inherit; font-size: var(--t-s); font-weight: 500; cursor: pointer; }
.pfd-go:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Round 52 (zone D, decisions 15 and 28): the Help row, a help action's grey line, its drawer ---------- */
.pf-hd { color: var(--ink2); }
.hlp-g.hlp-say { color: var(--ink); }
/* Round 53 (zone P, A3): the row's words are the way in; the word Help opens and shuts the six chips. */
.hlp-open { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.hlp-open:hover { color: var(--ink2); }
.hlp-ch { display: inline-flex; width: 12px; height: 12px; color: var(--ink3); transition: transform var(--m-step, 160ms) ease; }
.hlp-ch svg { width: 100%; height: 100%; }
.hlp-ch.on { transform: rotate(90deg); }
.hlp-say-v { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.hlp-say-v:hover { text-decoration: underline; text-underline-offset: 3px; }
.hlp-v { flex-direction: column; align-items: flex-start; gap: 8px; }
.hlp-cs { display: flex; flex-wrap: wrap; gap: 6px; }
/* Fixer FX1 (round 52, the owner, 8 November 2026: "it is not apparent at all which ones are active"): three states
   told apart at a glance, tinted, never bordered: On and in use filled sage with dark words and the dot; On, not in
   use a light sage tint; Off no fill, grey and struck through. A tap changes the fill at once (a short transition). */
.hlp-c { display: inline-flex; align-items: center; gap: 6px; padding: 2px 11px; border: 0;
  border-radius: 999px; background: color-mix(in srgb, var(--sage) 20%, transparent); color: var(--ink); font: inherit; font-size: var(--t-xs); line-height: 22px; cursor: pointer;
  transition: color var(--m-step, 160ms) ease, box-shadow var(--m-step, 160ms) ease, background-color var(--m-step, 160ms) ease, transform var(--m-press, 100ms) ease; }
.hlp-c:hover:not(:disabled) { background: color-mix(in srgb, var(--sage) 34%, transparent); }
.hlp-c:active:not(:disabled) { transform: scale(.97); }
.hlp-c:focus-visible { outline: 2px solid var(--sage-d); outline-offset: 2px; }
.hlp-c.used { background: var(--sage); color: #12261B; font-weight: 600; }
.hlp-c.used:hover:not(:disabled) { background: color-mix(in srgb, var(--sage) 86%, #12261B); }
.hlp-c.used .hlp-dot { background: #12261B; }
.hlp-c.off { background: transparent; color: var(--ink3); }
.hlp-c.off:hover:not(:disabled) { background: var(--field); }
.hlp-c.off span:last-child { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.hlp-c.off .hlp-dot { display: none; }
.hlp-c:disabled { cursor: default; }
.hlp-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--sage-d); }
/* The "·" (.hlp-sep) sits in the 12px gap before its part; this row clips only its left edge, so a part that wraps to a new line never starts with "·" (the 2px leaves a focus ring room). */
.hlp-in { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; clip-path: inset(-4px -4px -4px -2px); }
.hlp-k { padding: 0; border: 0; background: none; color: var(--sage-d); font: inherit; font-size: var(--t-2xs); font-weight: 600; cursor: pointer; }
.hlp-k:hover:not(.plain) { text-decoration: underline; text-underline-offset: 2px; }
.hlp-k.plain { cursor: default; }
/* Round 53 (zone P, B8a): the empty action line under a goal with no action. */
.prow.spare .ptx:empty::before { content: 'Add an action'; color: var(--ink3); }
.hlp-sep { position: absolute; left: -8px; color: var(--ink3); }
.hlp-p { position: relative; white-space: nowrap; }
.hlp-h { display: inline-block; padding: 0 7px; border-radius: 6px; font-size: var(--t-2xs); font-weight: 600; line-height: 18px; white-space: nowrap; }
.hlp-yes, .hlp-bit { background: color-mix(in srgb, var(--sage) 26%, transparent); color: var(--sage-d); }
.hlp-ask { border: 1px solid var(--ink2); background: var(--surface); color: var(--ink); line-height: 16px; }
.hlp-no { background: var(--bad-bg); color: var(--bad-d); }
.hlp-dh { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--t-s); color: var(--ink); }
.hlp-kept { color: var(--ink3); font-size: var(--t-xs); }
.hlp-acts { display: flex; align-items: center; gap: 14px; }
.hlp-stop { background: var(--bad-bg); color: var(--bad-d); }
.hlp-stop:hover { background: color-mix(in srgb, var(--bad-d) 18%, var(--bad-bg)); }

/* A message opened from the drawer lights up once in Chat (js/chat/chat-view.js). */
.cm-k.fl { animation: ue-flash 2.4s ease both; border-radius: 12px; }

@media (max-width: 520px) {
  .pgl .pft, .pgl .pfa { padding-left: 92px; }
  .pf-line { width: 100%; margin-left: 0; }
  .pf-open { margin-left: 0; padding: 6px 8px 10px; }
  .pf-r { grid-template-columns: 1fr; gap: 4px; }
  .cmenu.pf-menu { margin-left: 0; }
  .pfd { width: 100vw; border-left: 0; }
  .pfd-h { padding: 12px 12px 8px 16px; }
  .pfd-b { padding: 10px 16px 20px; }
  .pfd-r { grid-template-columns: 72px minmax(0, 3fr) minmax(0, 2fr); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-open, .pfp { animation: none; }
  .pfd { transition: none; }
}
/* The closed Help words can run to two lines: the heart stays with the first (round 53, zone P). */
.hlp-g.hlp-say { align-items: flex-start; }
.hlp-g.hlp-say .pf-ic { margin-top: 2px; }
