/* ==========================================================================
   CHANGES AND ONBOARDING — the Office's two pages (changes.html,
   onboarding.html; 2026-10-23).

   Additions only, on the Office's own system: every colour, size and radius
   is office.css's token (--o-*), every button the Office's (.ofc-primary,
   .ofc-ghost, .ofc-quiet), the tabs its underline strip (.ofc-addr), every
   drawer .ofc-drawer, and a state's dot the Workstation's (.st-st,
   station.css). Rows, not cards (rule 8): a change is a row on a hairline,
   its words under a disclosure. Colour only for state. Its own prefixes
   (ch-, ob-), so it cannot meet another pass's class.

   Scoped under #office, the root both pages share.
   ========================================================================== */

/* The Office's twelve columns: the queue the wide one, the month beside it; one column below 75rem. */
#office .ch-card { grid-column: 1 / -1; }
@media (min-width: 75rem) {
  #office #ch-card { grid-column: span 8; }
  #office #ch-usage-card { grid-column: span 4; }
}
/* The tab strip stands from the first frame, its counts filled when the queue is read (no shift). */
#office #ch-tabs .ofc-addr__n:empty { display: none; }

/* ---------- the list ------------------------------------------------------- */
#office .ch-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--o-line); }
#office .ch-none { padding: 1rem 0; color: var(--o-faint); font-size: var(--o-t-sm); font-weight: 500; }
#office .ch-row { display: grid; gap: 0.5rem; padding: 0.75rem 0; border-bottom: 1px solid var(--o-line); min-width: 0; }
#office .ch-row__head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who st" "t st";
  align-items: center; gap: 0.125rem 1rem; min-width: 0;
}
#office .ch-row__who { grid-area: who; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; min-width: 0; color: var(--o-dim); font: 500 var(--o-t-label)/1.3 var(--body); }
#office .ch-row__client { color: var(--o-dim); text-decoration: none; }
#office .ch-row__client:hover { color: var(--o-text); text-decoration: underline; text-underline-offset: 3px; }
#office .ch-row__sep { color: var(--o-faint); }
#office .ch-row__when { color: var(--o-faint); font-variant-numeric: tabular-nums; }
#office .ch-row__t { grid-area: t; margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--o-text); font: 650 var(--o-t-md)/1.35 var(--body); text-wrap: pretty; }
#office .ch-row__head > .st-st, #office .ch-row__head > .ob-pct { grid-area: st; justify-self: end; }
#office .ch-row[data-state="live"] .ch-row__t, #office .ch-row[data-state="declined"] .ch-row__t,
#office .ch-row[data-state="cancelled"] .ch-row__t { color: var(--o-dim); font-weight: 550; }
#office .ch-row__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin: 0; color: var(--o-dim); font: 500 var(--o-t-sm)/1.45 var(--body); font-variant-numeric: tabular-nums; }
#office .ch-row__ans { color: var(--o-text); font-weight: 600; }
#office .ch-row__err { color: var(--o-warn-ink); }
#office .ch-row__link { color: var(--o-text); text-decoration: underline; text-decoration-color: var(--o-line-3); text-underline-offset: 3px; }
#office .ch-row__link:hover { text-decoration-color: var(--o-text); }
#office .ch-row__why { margin: 0; max-width: 46rem; color: var(--o-dim); font: 450 var(--o-t-sm)/1.5 var(--body); text-wrap: pretty; }
#office .ch-row__more { margin: 0.125rem 0 0; }
#office .ch-row__sum {
  display: inline-flex; align-items: center; min-height: 28px; cursor: pointer;
  color: var(--o-faint); font: 500 var(--o-t-label)/1.2 var(--body);
}
#office .ch-row__sum:hover { color: var(--o-text); }
#office .ch-row__more[open] > .ch-row__sum { color: var(--o-dim); }
#office .ch-row__req { margin: 0.5rem 0 0; font-size: var(--o-t-sm); }
#office .ch-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }
#office .ch-note { margin: 0; color: var(--o-dim); font: 550 var(--o-t-sm)/1.5 var(--body); }
#office .ch-note:empty { display: none; }
#office .ch-note.is-bad { color: var(--o-warn-ink); }
#office .ch-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-top: 0.25rem; }
#office .ch-confirm .ch-note { flex: 1 1 100%; color: var(--o-text); }

/* What they wrote: each question a quiet label over their words. */
#office .ch-words { display: grid; gap: 0.125rem; margin: 0.5rem 0 0; padding: 0.75rem 1rem; max-width: 46rem; background: var(--o-inset); border-radius: var(--o-r-md); }
#office .ch-words__q { margin: 0.5rem 0 0; color: var(--o-faint); font: 500 var(--o-t-xs)/1.4 var(--body); }
#office .ch-words__q:first-child { margin-top: 0; }
#office .ch-words__a { margin: 0; color: var(--o-text); font: 450 var(--o-t-sm)/1.55 var(--body); white-space: pre-line; overflow-wrap: anywhere; }

/* What it would be quoted: lines and their figures, tabular. */
#office .ch-lines { width: 100%; max-width: 32rem; margin: 0.75rem 0 0; border-collapse: collapse; font-size: var(--o-t-sm); }
#office .ch-lines td { padding: 0.5rem 0; border-bottom: 1px solid var(--o-line); vertical-align: baseline; }
#office .ch-lines__l { color: var(--o-text); }
#office .ch-lines__h { color: var(--o-faint); }
#office .ch-lines__f { text-align: right; color: var(--o-text); font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 1rem; }
#office .ch-lines tfoot td { border-bottom: 0; color: var(--o-dim); font-weight: 650; }
#office .ch-lines tfoot .ch-lines__f { color: var(--o-text); }
#office .ch-events { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.25rem; }
#office .ch-events li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 0.5rem; color: var(--o-dim); font: 450 var(--o-t-xs)/1.45 var(--body); }
#office .ch-events__t { color: var(--o-faint); font-variant-numeric: tabular-nums; }

/* ---------- the month ------------------------------------------------------- */
#office .ch-usage { width: 100%; }
#office .ch-usage .ch-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
#office .ch-over { color: var(--o-warn-ink); font-weight: 600; }

/* ---------- the drawers ------------------------------------------------------ */
#office .ch-verdict { display: grid; gap: 0.5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
#office .ch-verdict legend { padding: 0; margin: 0 0 0.5rem; color: var(--o-dim); font: 550 var(--o-t-label)/1.3 var(--body); }
#office .ch-lines-edit__h { margin: 0 0 0.5rem; color: var(--o-dim); font: 550 var(--o-t-label)/1.3 var(--body); }
#office .ch-lines-edit__list { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; gap: 0.5rem; }
#office .ch-line { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) 6rem auto; gap: 0.5rem; align-items: center; }
#office .ch-line .ofc-input { min-width: 0; }
@media (max-width: 40rem) {
  #office .ch-line { grid-template-columns: minmax(0, 1fr) 6rem; }
  #office .ch-line__l, #office .ch-line__p { grid-column: 1 / -1; }
}

/* ---------- onboarding -------------------------------------------------------- */
#office .ob-pct { color: var(--o-text); font: 650 var(--o-t-md)/1 var(--body); font-variant-numeric: tabular-nums; }
#office .ob-row[data-state="done"] .ob-pct { color: var(--o-ok); }
#office .ob-bar { display: flex; gap: 4px; max-width: 18rem; }
#office .ob-bar__s { flex: 1 1 0; height: 4px; border-radius: var(--tk-r-2xs); background: var(--o-line-3); }
#office .ob-bar__s[data-s="done"] { background: var(--o-text); }
#office .ob-row[data-state="done"] .ob-bar__s[data-s="done"] { background: var(--o-ok-mark); }
#office .ob-items { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; border-top: 1px solid var(--o-line); max-width: 46rem; }
#office .ob-item { display: grid; gap: 0.25rem; padding: 0.75rem 0; border-bottom: 1px solid var(--o-line); }
#office .ob-item__hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; }
#office .ob-item__t { color: var(--o-text); font: 600 var(--o-t-sm)/1.35 var(--body); }
#office .ob-item[data-s="done"] .ob-item__t, #office .ob-item[data-s="skipped"] .ob-item__t { color: var(--o-dim); font-weight: 550; }
#office .ob-item__a { margin: 0; color: var(--o-text); font: 450 var(--o-t-sm)/1.5 var(--body); white-space: pre-line; overflow-wrap: anywhere; }
#office .ob-item__m { margin: 0; color: var(--o-faint); font: 500 var(--o-t-xs)/1.4 var(--body); }
#office .ob-item__acts { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
/* A reminder waiting for the owner's yes (crm-q10, core 0048): its words as they would go, and the two presses. */
#office .ob-draft { display: grid; gap: 0.35rem; max-width: 46rem; padding: 0.75rem 0 0.75rem 0.85rem; border-left: 3px solid var(--o-line-3); }
#office .ob-draft__h { margin: 0; color: var(--o-text); font: 600 var(--o-t-sm)/1.4 var(--body); }
#office .ob-draft__b { margin: 0.5rem 0 0; color: var(--o-text); font: 450 var(--o-t-sm)/1.55 var(--body); white-space: pre-line; overflow-wrap: anywhere; }
