/* ==========================================================================
   THE PHONE (phone.html, 2026-10-21).

   Additions only, on the Office's own system, as station.css is: every colour,
   size and radius is office.css's token (--o-*), every button is the Office's
   (.ofc-primary, .ofc-ghost, .ofc-quiet, .ofc-mode), the drawer is .ofc-drawer.
   Nothing here declares a colour of its own, a :root, or a focus ring.
   Scoped under #office.
   ========================================================================== */

/* ---------- the layout: two switches side by side, the rest full width ------ */
@media (min-width: 62.0625rem) {
  #office #ph-in-card, #office #ph-out-card { grid-column: span 6; }
  #office #ph-cb-card, #office #ph-oo-card { grid-column: span 6; }
}
#office .ph-card--wide { grid-column: 1 / -1; }
#office .ph-card .ofc-sub { margin-bottom: 0.75rem; }
#office .ph-mode { margin: 0 0 1rem; }
#office .ph-fields { margin: 0 0 0.75rem; }

/* What a press did, or why it did not. */
#office .ph-said { margin: 0.5rem 0 0; color: var(--o-dim); font-size: var(--o-t-sm); font-weight: 550; line-height: 1.5; }
#office .ph-said:empty { display: none; }
#office .ph-said[data-tone="bad"] { color: var(--o-warn-ink); }
#office .ph-said[data-tone="ok"] { color: var(--o-ok); }

/* Every reason a direction is off, as a list; or the one line that it is on. */
#office .ph-blockers { margin: 0.75rem 0 0; padding: 0 0 0 1rem; color: var(--o-warn-ink); font-size: var(--o-t-sm); font-weight: 550; line-height: 1.55; }
#office .ph-blockers li + li { margin-top: 0.25rem; }
#office .ph-on { margin: 0.75rem 0 0; color: var(--o-ok); font-size: var(--o-t-sm); font-weight: 600; }
#office .ph-kv { margin-top: 1rem; }

/* ---------- the calls ---------------------------------------------------------- */
#office .ph-calls { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--o-line); }
#office .ph-call, #office .ph-cb, #office .ph-oo { padding: 0.75rem 0; border-bottom: 1px solid var(--o-line); }
#office .ph-call__top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.5rem; margin: 0; }
#office .ph-call__who { min-width: 0; overflow-wrap: anywhere; color: var(--o-text); font: 650 var(--o-t-md)/1.3 var(--body); }
#office .ph-call__meta { margin: 0.25rem 0 0; color: var(--o-dim); font-size: var(--o-t-sm); font-weight: 500; line-height: 1.45; font-variant-numeric: tabular-nums; }
#office .ph-call__why, #office .ph-cb__note { margin: 0.25rem 0 0; color: var(--o-dim); font-size: var(--o-t-sm); line-height: 1.5; overflow-wrap: anywhere; }
#office .ph-call__acts { margin-top: 0.5rem; }
#office .ph-none { padding: 1rem 0; color: var(--o-faint); font-size: var(--o-t-sm); font-weight: 500; line-height: 1.5; list-style: none; }
#office .ph-dir, #office .ph-chip {
  flex: none; padding: 0.125rem 0.5rem; border-radius: var(--o-r-sm); background: var(--o-inset);
  color: var(--o-dim); font: 600 var(--o-t-xs)/1.3 var(--body);
}
#office .ph-cb__st, #office .ph-oo__why, #office .ph-oo__when { color: var(--o-dim); font-size: var(--o-t-sm); font-weight: 550; }
#office .ph-oo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; }

/* Where a call is: a dot and words, as the Workstation's builds (station.css .st-st). */
#office .ph-st { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--o-dim); font: 600 var(--o-t-sm)/1.25 var(--body); }
#office .ph-st::before { content: ''; flex: none; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--o-neutral); }
#office .ph-st[data-tone="run"] { color: var(--o-text); }
#office .ph-st[data-tone="run"]::before { background: var(--o-text); }
#office .ph-st[data-tone="attn"] { color: var(--o-warn-ink); }
#office .ph-st[data-tone="attn"]::before { background: var(--o-warn); }
#office .ph-st[data-tone="ok"] { color: var(--o-ok); }
#office .ph-st[data-tone="ok"]::before { background: var(--o-ok-mark); }
#office .ph-st[data-tone="bad"] { color: var(--o-bad); }
#office .ph-st[data-tone="bad"]::before { background: var(--o-bad-mark); }

/* ---------- a transcript --------------------------------------------------------- */
#office .ph-tx__turns { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
#office .ph-turn { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0.5rem; font-size: var(--o-t-sm); line-height: 1.55; }
#office .ph-turn__who { color: var(--o-faint); font-weight: 650; }
#office .ph-turn__text { color: var(--o-text); overflow-wrap: anywhere; }
#office .ph-turn--them .ph-turn__text { color: var(--o-dim); }
#office .ph-tx__none, #office .ph-tx__note { margin: 0.5rem 0 0; color: var(--o-dim); font-size: var(--o-t-sm); font-weight: 550; line-height: 1.5; }
#office .ph-try__out { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--o-line); }
#office .ph-try__facts { margin: 1rem 0 0; color: var(--o-dim); font-size: var(--o-t-sm); font-weight: 600; }

/* ---------- a call, in the drawer ---------------------------------------------------- */
#office .ph-detail__sum { margin: 1rem 0 0; color: var(--o-dim); font-size: var(--o-t-sm); line-height: 1.55; }
#office .ph-detail__h { margin: 1.25rem 0 0.5rem; color: var(--o-text); font: 650 var(--o-t-md)/1.3 var(--body); }
#office .ph-script {
  margin: 0; padding: 0.75rem 1rem; border-radius: var(--o-r-sm); background: var(--o-inset);
  color: var(--o-text); font: 500 var(--o-t-sm)/1.55 var(--body); white-space: pre-wrap; overflow-wrap: anywhere;
}

/* ---------- what it says ------------------------------------------------------------- */
#office .ph-pub { margin: 0; align-self: end; color: var(--o-faint); font-size: var(--o-t-label); font-weight: 500; }
#office .ph-lines { margin: 1.25rem 0 0; padding: 0; border: 0; min-width: 0; }
#office .ph-lines__h { margin: 0 0 0.5rem; padding: 0; color: var(--o-text); font: 650 var(--o-t-md)/1.3 var(--body); }
#office .ph-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 0.75rem; padding: 0.75rem 0; border-top: 1px solid var(--o-line); }
#office .ph-line__label { grid-column: 1; color: var(--o-dim); font-size: var(--o-t-sm); font-weight: 600; }
#office .ph-line__text { grid-column: 1; width: 100%; min-height: 2.6rem; resize: vertical; }
#office .ph-line__text[aria-invalid="true"] { border-color: var(--o-bad-mark); }
#office .ph-line__help { grid-column: 1; margin: 0; color: var(--o-faint); font-size: var(--o-t-xs); line-height: 1.45; }
#office .ph-line__reset { grid-column: 2; grid-row: 2; align-self: start; }
#office .ph-line[data-rule="disclosure"] .ph-line__label::after { content: ' · the disclosure'; color: var(--o-warn-ink); font-weight: 600; }
#office .ph-set__acts { margin-top: 1.25rem; }
#office .ph-errors { margin: 0.5rem 0 0; padding: 0 0 0 1rem; color: var(--o-bad); font-size: var(--o-t-sm); font-weight: 550; line-height: 1.5; }
#office .ph-errors:empty { display: none; }

@media (max-width: 40rem) {
  #office .ph-line { grid-template-columns: minmax(0, 1fr); }
  #office .ph-line__reset { grid-column: 1; grid-row: auto; justify-self: start; }
  #office .ph-turn { grid-template-columns: minmax(0, 1fr); gap: 0.125rem; }
}
