/* ApproveRhythm redesign prototype, round 4 (Track 597, 2026-11-11). Static mockup: sample data only. */
:root { /* dark only (user decision 2026-11-11) */
  color-scheme: dark;
  --bg: #0c1016; --surface: #151a23; --surface2: #1b212c; --ink: #e9edf4; --muted: #9ba6b8; --line: #2a3241;
  --accent: #7ea3ff; --accent-ink: #0b1220; --accent-soft: #1c2a4a; --accent-text: #a9c1ff;
  --ok: #55c98f; --ok-soft: #12301f; --warn: #f0b84a; --warn-ink: #ffe2a3; --warn-soft: #3a2c0c;
  --danger: #ff8078; --danger-soft: #3a1614; --mark: #4a3f10; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  /* one type scale, spacing grid and radius set for the whole desk (design tokens, reference dashboards Linear and GitHub) */
  --fs-1: 11px; --fs-2: 12px; --fs-3: 13px; --fs-4: 14px; --fs-5: 16px; --fs-6: 20px; --fs-7: 24px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;
  --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-pill: 99px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-2); }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent-text); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.app { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); height: 100dvh; }
.app > * { min-width: 0; }
.app.acting { outline: 3px solid var(--warn); outline-offset: -3px; }

/* top bar */
.top { display: flex; align-items: center; gap: var(--sp-4); padding: 0 16px; min-height: 54px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: var(--fs-5); white-space: nowrap; }
.brand small { font-weight: 500; color: var(--muted); margin-left: var(--sp-2); }
.nav { display: flex; gap: 2px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
.nav button { border: 0; background: none; padding: 8px 12px; border-radius: var(--r-2); color: var(--muted); white-space: nowrap; font-weight: 500; min-height: 44px; }
.nav button:hover { background: var(--surface2); color: var(--ink); }
.nav button[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 650; }
.nav .n { font-variant-numeric: tabular-nums; opacity: .8; margin-left: 4px; font-weight: 500; }
.spacer { flex: 1; }
.prog { display: flex; align-items: center; gap: var(--sp-3); white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.prog .track { width: 120px; height: 8px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.prog .ps { display: none; }
.prog .track i { display: block; height: 100%; background: var(--ok); border-radius: var(--r-pill); transition: width .25s; }
.person { position: relative; }
.tsw { min-width: 0; flex: 0 1 auto; }
.tsw { min-height: 44px; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface2); color: inherit; padding: 0 8px; font: inherit; }
.tempty { padding: 32px 0; max-width: 520px; }
.tempty h1 { font-size: var(--fs-6); margin: 0 0 8px; }
.person > button { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-pill); padding: var(--sp-2) 12px var(--sp-2) var(--sp-2); display: flex; align-items: center; gap: 8px; min-height: 44px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: inline-grid; place-items: center; font-weight: 700; font-size: var(--fs-2); }
.menu { position: absolute; right: 0; top: 46px; z-index: 30; width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--shadow); padding: 8px; }
.menu h3 { font-size: var(--fs-2); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 8px 4px; }
.menu button { display: flex; width: 100%; align-items: center; gap: var(--sp-3); border: 0; background: none; padding: 8px; border-radius: var(--r-2); text-align: left; min-height: 44px; }
.menu button:hover { background: var(--surface2); }
.menu .role { color: var(--muted); font-size: var(--fs-3); margin-left: auto; }
.qbtn { display: none; }

/* acting-as bar */
.actas { display: flex; align-items: center; gap: 12px; padding: var(--sp-2) 16px; background: var(--warn-soft); color: var(--warn-ink); border-bottom: 2px solid var(--warn); font-weight: 600; }
.actas span { flex: 1; }
.actas button { border: 1px solid var(--warn); background: var(--surface); color: var(--ink); border-radius: var(--r-2); padding: var(--sp-2) 12px; min-height: 36px; font-weight: 600; white-space: nowrap; }

/* desk */
.desk { display: grid; grid-template-columns: 330px minmax(0, 1fr); min-height: 0; }
.queue { background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; min-height: 0; }
.qhead { position: sticky; top: 0; background: var(--surface); padding: 12px; border-bottom: 1px solid var(--line); z-index: 2; }
.qhead input { width: 100%; border: 1px solid var(--line); background: var(--surface2); border-radius: var(--r-2); padding: 8px var(--sp-3); min-height: 40px; }
.chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: 8px; }
.chips.two .chip { flex: 1; min-height: 40px; font-size: var(--fs-4); }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-pill); padding: 4px var(--sp-3); font-size: var(--fs-3); min-height: 32px; }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.grp > .gh { display: flex; width: 100%; justify-content: space-between; align-items: center; border: 0; background: var(--surface2); padding: 8px var(--sp-4); font-size: var(--fs-2); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); min-height: 34px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; width: 100%; text-align: left; border: 0; border-left: 1px solid transparent; border-bottom: 1px solid var(--line); background: none; padding: var(--sp-2) 12px var(--sp-2) 11px; }
.row:hover { background: var(--surface2); }
.row[aria-current="true"] { background: var(--accent-soft); border-left-color: var(--accent); }
.row .who { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .firm, .row .why { grid-column: 1 / -1; color: var(--muted); font-size: var(--fs-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .why { color: var(--ink); opacity: .85; }
.row.done .who { font-weight: 500; }
.badge { font-size: var(--fs-2); font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill); background: var(--surface2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; align-self: center; }
.badge.long { white-space: normal; border-radius: var(--r-2); display: inline-block; } /* a long reason wraps inside a narrow box and is not cut off */
.badge.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.badge.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn-ink); }
.badge.bad { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.qnote { padding: var(--sp-3) var(--sp-4); color: var(--muted); font-size: var(--fs-3); }

.focus { overflow-y: auto; min-height: 0; container-type: inline-size; display: flex; flex-direction: column; }
.pad { padding: 20px 24px 16px; flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; }
.banner { border-radius: var(--r-2); padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4); font-weight: 550; display: flex; gap: var(--sp-3); align-items: flex-start; }
.banner.warn { background: var(--warn-soft); color: var(--warn-ink); }
.banner.bad { background: var(--danger-soft); color: var(--danger); }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner button { margin-left: auto; border: 1px solid currentColor; background: none; color: inherit; border-radius: var(--r-2); padding: 4px var(--sp-3); font-weight: 600; white-space: nowrap; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-3) 16px; align-items: start; margin-bottom: 12px; }
.head h1 { font-size: var(--fs-7); line-height: 1.25; }
.head .sub { color: var(--muted); }
.inlist select { border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); padding: 2px var(--sp-2); min-height: 32px; }
.nob { white-space: nowrap; } /* a date and its time stay on one line */
.intel { display: grid; gap: var(--sp-2); justify-items: end; min-width: 0; }
.ig { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ig > .label { min-width: 34px; }
.ib { display: inline-flex; flex-direction: column; line-height: 1.2; padding: 4px var(--sp-3); border-radius: var(--r-2); border: 1px solid var(--line); font-size: var(--fs-3); font-weight: 650; text-decoration: none; min-height: 40px; justify-content: center; white-space: normal; overflow-wrap: anywhere; max-width: 100%; } /* a long badge wraps inside its chip at every width, so the page never scrolls sideways at 390 (F5) */
.ib small { font-weight: 500; font-size: var(--fs-1); opacity: .9; }
.ib.firm { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.ib.lead { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.tcard { border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--sp-3) 12px; background: var(--surface); }
.tthead { all: unset; display: grid; gap: 2px; cursor: pointer; width: 100%; }
.tblock { margin-top: 8px; }
.tsubj { padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: var(--fs-4); }
.tmailbody { padding: var(--sp-3) 12px; }
.bar .tline { flex: 1; min-width: 200px; font-size: var(--fs-3); }
.tbody { white-space: pre-wrap; overflow-wrap: anywhere; }
.tmsg { color: var(--danger, #b00020); }
.ib.chip { background: var(--surface2); cursor: pointer; text-align: left; }
.chipq { margin: var(--sp-2) 0 0; padding: var(--sp-2) var(--sp-3); border-left: 1px solid var(--line); font-size: var(--fs-3); color: var(--muted); }
.ib.none { color: var(--muted); background: var(--surface2); }
.ib.unk { color: var(--warn-ink); border-style: dashed; border-color: var(--warn); background: none; }
.ib.nc { color: var(--muted); border-style: dashed; border-color: var(--line); background: none; font-weight: 500; font-style: italic; } /* not checked: a dashed outline, so it never reads as "none found" (user, 2026-11-11 11:25) */
.src .age { color: var(--muted); font-size: var(--fs-2); }
.why2 > .none { margin: 0; padding: 12px var(--sp-4); color: var(--muted); }
.why2 { margin: 0 0 var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); }
.pill { font-size: var(--fs-2); font-weight: 650; padding: 2px var(--sp-2); border-radius: var(--r-pill); white-space: nowrap; }
.pill.firm { background: var(--accent-soft); color: var(--accent-text); } .pill.lead { background: var(--accent-soft); color: var(--accent-text); }
/* A reason's signal type badge (spec signal-taxonomy-reason-badges-2026-11-15, section 5): one neutral style, the type name is the only difference. A reason with no type draws no badge. */
.sig { display: inline-block; font-size: var(--fs-1); font-weight: 700; padding: 1px 8px; border-radius: var(--r-pill); white-space: nowrap; vertical-align: middle; margin-right: var(--sp-2); background: var(--surface2); color: var(--muted); border: 1px solid var(--line); }
.topmark { font-size: var(--fs-1); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ok); background: var(--ok-soft); border-radius: var(--r-pill); padding: 1px 8px; margin-right: var(--sp-2); }
.whyhead { display: flex; gap: var(--sp-3) var(--sp-4); align-items: center; flex-wrap: wrap; padding: var(--sp-3) 16px; min-height: 46px; }
.whyhead .cnt { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.whycols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.whycols section { padding: 12px 16px; border-left: 1px solid var(--accent); }
.whycols section.lead { border-left-color: var(--muted); }
.whycols h3 { font-size: var(--fs-2); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: var(--sp-2); }
.whycols ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.whycols li { display: flex; gap: var(--sp-3); }
.whycols .rank { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--line); display: grid; place-items: center; font-size: var(--fs-2); font-weight: 700; }
.whycols .claim { font-weight: 650; }
.whycols blockquote { margin: 2px 0 4px; padding-left: var(--sp-3); border-left: 1px solid var(--line); }
.whycols .none { color: var(--muted); }
.label { font-size: var(--fs-2); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.src { font-size: var(--fs-3); color: var(--muted); display: flex; gap: var(--sp-2) var(--sp-4); flex-wrap: wrap; align-items: center; }
.src .old { color: var(--warn-ink); background: var(--warn-soft); padding: 1px 8px; border-radius: var(--r-pill); font-weight: 600; }
.src a { overflow-wrap: anywhere; min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 20px; margin: 0 0 var(--sp-4); padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); }
.facts dt { font-size: var(--fs-2); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.seqhead { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 8px; flex-wrap: wrap; }
.seqhead h2 { font-size: var(--fs-5); }
.seqhead .hint { color: var(--muted); font-size: var(--fs-3); }
.seq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
/* item 8 (user 2026-11-17 20:56): the LinkedIn messages below the connection request sit as far from it as one email card sits from the next
   (the 12px gap of .seq), and the request's own text keeps its line breaks through .ed's pre-wrap. */
.mail.li + .seq { margin-top: 12px; }
.linote { color: var(--muted); font-size: var(--fs-3); margin: 0 0 var(--sp-3); padding-left: var(--sp-3); border-left: 1px solid var(--accent); } .linote b { color: var(--accent-text); margin-right: var(--sp-2); }
.hint2 { display: none; color: var(--muted); font-size: var(--fs-3); margin-top: 8px; }
@container (max-width: 980px) { .seq { grid-template-columns: 1fr; } }
@container (max-width: 620px) {
  .seq, .whycols { grid-template-columns: 1fr; }
  .seqhead .hint { flex-basis: 100%; }
  .head { grid-template-columns: minmax(0, 1fr); } .intel { justify-items: start; } .ig { justify-content: flex-start; }
}
.mail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); display: flex; flex-direction: column; min-width: 0; }
.mail > header { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: var(--fs-3); }
.mail > header b { font-size: var(--fs-4); }
.mail .step { width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-size: var(--fs-2); font-weight: 700; flex: none; }
.mail .day { white-space: nowrap; }
.mail > header { flex-wrap: wrap; gap: 2px 8px; }
.mail > header .meta { flex-basis: 100%; display: flex; gap: 8px; align-items: center; color: var(--muted); padding-left: 28px; }
.mail > header .wc { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.mail > header .wc.out { color: var(--warn-ink); background: var(--warn-soft); padding: 1px 8px; border-radius: var(--r-pill); font-weight: 600; }
.subject { padding: 8px 12px; border-bottom: 1px dashed var(--line); font-size: var(--fs-4); }
.subject .label { margin-right: var(--sp-2); }
.ed { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 12px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 0 0 var(--r-2) var(--r-2); cursor: text; line-height: 1.55; min-height: 3em; }
.ed[aria-readonly="true"] { cursor: default; }
.ed.inline { display: inline; width: auto; padding: 2px 4px; border-radius: var(--r-1); }
.ed[data-act]:hover { outline: 2px solid var(--line); outline-offset: -2px; }
/* Edit mode changes no size: the 2px line is an outline drawn inside the panel, so the text stays where it was. */
.ed.editing, .ed:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--surface2); }
.more { border: 0; background: none; color: var(--accent-text); padding: 4px 12px var(--sp-3); text-align: left; font-weight: 600; }
mark { background: var(--mark); color: inherit; border-radius: var(--r-1); outline: 2px solid var(--mark); } /* no padding: a highlight must not move the words */
.orig { margin: 0 12px 12px; padding: 8px var(--sp-3); background: var(--surface2); border-radius: var(--r-2); white-space: pre-wrap; color: var(--muted); font-size: var(--fs-4); }
.mfoot { display: flex; gap: var(--sp-3); align-items: center; padding: 0 12px var(--sp-3); font-size: var(--fs-3); color: var(--muted); flex-wrap: wrap; }
.mfoot button { border: 0; background: none; color: var(--accent-text); padding: 4px 0; font-weight: 600; }
.fault { color: var(--warn-ink); background: var(--warn-soft); padding: 4px var(--sp-3); border-radius: var(--r-2); font-size: var(--fs-3); margin-top: 8px; }
.fault:empty { display: none; }
.edited { color: var(--warn-ink); background: var(--warn-soft); padding: 1px 8px; border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-2); }
details.hist { margin: var(--sp-3) 0 0; font-size: var(--fs-4); }
details.hist summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: var(--sp-2) 0; }
.tl { list-style: none; margin: 4px 0 0; padding: 0 0 0 var(--sp-4); border-left: 2px solid var(--line); }
.tl li { padding: var(--sp-1) 0 var(--sp-1) var(--sp-3); position: relative; }
.tl li::before { content: ""; position: absolute; left: -19px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.tl time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 8px; }

/* action bar */
.bar { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 24px calc(12px + env(safe-area-inset-bottom)); z-index: 5; }
.bar .in { max-width: 1132px; margin: 0 auto; display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-2); padding: 0 var(--sp-5); min-height: 46px; font-weight: 650; }
.btn:hover { background: var(--surface2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.solid-danger { background: var(--danger); border-color: var(--danger); color: var(--surface); }
.btn.small { min-height: 36px; padding: 0 12px; font-weight: 600; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary:disabled { opacity: 1; background: var(--surface2); border: 1px dashed var(--muted); color: var(--ink); } /* an instruction on a switched-off button stays readable */
.keys { margin-left: auto; color: var(--muted); font-size: var(--fs-3); white-space: nowrap; }
.barnote { color: var(--muted); font-size: var(--fs-4); flex: 1; min-width: 200px; }
.give { font-weight: 650; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .give select { border: 1px solid var(--accent); border-radius: var(--r-2); background: var(--surface); padding: 0 var(--sp-3); min-height: 46px; }
kbd { font: var(--fs-2) ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: var(--r-1); padding: 1px var(--sp-1); background: var(--surface2); }
.panel { width: 100%; max-height: 62dvh; overflow-y: auto; }
.panel h2 { font-size: var(--fs-5); margin-bottom: 4px; }
.panel .note { color: var(--muted); font-size: var(--fs-4); margin-bottom: var(--sp-3); }
.panel .acts { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: 12px; align-items: center; }
.reasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; margin: 8px 0 var(--sp-3); }
.reason { display: flex; gap: 8px; align-items: baseline; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-2); padding: 8px 12px; min-height: 44px; }
.reason kbd { flex: none; }
.reason small { color: var(--muted); display: block; }
.reason[aria-pressed="true"] { border-color: var(--danger); background: var(--danger-soft); }
.panel textarea { width: 100%; min-height: 64px; border: 1px solid var(--line); border-radius: var(--r-2); padding: var(--sp-3); background: var(--surface2); resize: vertical; }

/* states */
.center { display: grid; place-items: center; text-align: center; padding: 48px 24px; flex: 1; }
.center h2 { font-size: var(--fs-6); margin-bottom: var(--sp-2); }
.center p { color: var(--muted); max-width: 46ch; margin: 0 auto var(--sp-4); }
.tally { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; margin: 12px 0 var(--sp-5); }
.tally span { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); padding: 8px var(--sp-4); font-weight: 600; }
.skel { background: var(--surface2); border-radius: var(--r-2); }
@media (prefers-reduced-motion: reduce) { .prog .track i { transition: none; } }
.undo { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--surface2); color: var(--ink); border: 1px solid var(--accent); border-radius: var(--r-2); padding: var(--sp-1) var(--sp-2) var(--sp-1) var(--sp-4); font-weight: 600; }
.undo button { border: 1px solid currentColor; background: none; color: inherit; border-radius: var(--r-2); padding: 4px 12px; font-weight: 700; min-height: 34px; white-space: nowrap; }
.bar .in > .undo { margin-left: auto; }
.bar .in:has(.undo) > .keys { display: none; }
.bar .in:has(.panel) > .undo { flex-basis: 100%; order: -1; margin: 0 0 4px; }
.undo.dock { position: sticky; bottom: 12px; margin: 12px auto; width: min(420px, calc(100% - 24px)); }
/* A tab left open whose page files changed on the server (or that was hidden 2 minutes): fixed at the top, wraps at 390 px. */
.stalebar { position: fixed; top: 0; left: 0; right: 0; z-index: 70; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding: var(--sp-3) 16px; background: var(--warn-soft); color: var(--warn-ink); border-bottom: 2px solid var(--warn); font-weight: 600; }
.morecue { text-align: center; font-size: var(--fs-2); font-weight: 700; color: var(--muted); margin: -12px -24px 8px; padding: var(--sp-1) 0; background: var(--surface2); border-bottom: 1px solid var(--line); }
.denyside { padding: var(--sp-4); }
.denyside .reasons { grid-template-columns: 1fr; }
.denyside .panel { max-height: none; }
.denyside .panel textarea { min-height: 88px; }
.denyside .keys { display: block; margin-left: 0; flex-basis: 100%; }
.qnote.asof { background: var(--warn-soft); color: var(--warn-ink); font-weight: 600; }

/* pages */
.page { overflow-y: auto; min-height: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 24px; }
.wrap > h1 { font-size: var(--fs-7); }
.wrap > .lead { color: var(--muted); margin: 2px 0 var(--sp-5); }
.next { background: var(--surface); border: 1px solid var(--accent); border-radius: var(--r-3); padding: 16px var(--sp-4); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: var(--sp-5); }
.next .t { flex: 1; min-width: min(240px, 100%); }
.next h2 { font-size: var(--fs-6); }
.next p { color: var(--muted); }
.box.wide { grid-column: 1 / -1; }
.tp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; margin-bottom: 16px; }
.tp.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: var(--sp-4) 16px; min-width: 0; }
.tile .big { font-size: var(--fs-7); font-weight: 700; line-height: 1.25; margin: 2px 0 var(--sp-2); display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.tile p { color: var(--muted); font-size: var(--fs-3); }
.tile.over { border-color: var(--warn); } .tile.under { border-color: var(--ok); }
.meter { position: relative; height: 10px; border-radius: var(--r-pill); background: var(--line); margin: 4px 0 8px; min-width: 60px; }
.meter i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--ok); } .meter i.over { background: var(--warn); }
.meter u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
td.mcell { width: 28%; vertical-align: middle; }
tr.sum td { border-top: 2px solid var(--line); background: var(--surface2); }
.bigline { font-size: var(--fs-5); margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 640px; }
.seg button { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-2); padding: var(--sp-3) var(--sp-4); min-height: 56px; }
.seg button small { display: block; color: var(--muted); }
.seg button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.seg button[aria-pressed="true"] b::after { content: " · on"; color: var(--accent-text); }
.order { margin-top: 12px; } .order ol { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: o; max-width: 420px; }
.order li { counter-increment: o; display: flex; gap: 8px; align-items: center; padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); } .order li::before { content: counter(o) "."; color: var(--muted); width: 20px; } .order li > span { flex: 1; }
td select { border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); padding: 0 8px; min-height: 36px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: 16px; min-width: 0; }
.box h2 { font-size: var(--fs-5); margin-bottom: 2px; }
.box .cap { color: var(--muted); font-size: var(--fs-3); margin-bottom: var(--sp-3); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-4); }
th { text-align: left; font-size: var(--fs-2); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: var(--sp-2) 8px; border-bottom: 1px solid var(--line); }
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .btn, table.nw td:first-child, table.nw td:last-child { white-space: nowrap; }
.tscroll { overflow-x: auto; }
.bars { display: grid; grid-template-columns: minmax(120px, 220px) 1fr auto; gap: 8px var(--sp-3); align-items: center; font-size: var(--fs-4); }
.bars .b { height: 12px; border-radius: var(--r-1); background: var(--accent); min-width: 2px; }
.bars .v { font-variant-numeric: tabular-nums; color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters select, .filters input { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-2); padding: 0 var(--sp-3); min-height: 40px; }
.filters input { flex: 1; min-width: 180px; }
.sign { max-width: 380px; width: calc(100% - 32px); margin: 12vh auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-3); padding: 28px; text-align: center; }
.sign h1 { font-size: var(--fs-7); margin-bottom: var(--sp-2); }
.sign p { color: var(--muted); margin-bottom: var(--sp-5); }
.sign .btn { width: 100%; }
.sign small { display: block; color: var(--muted); margin-top: var(--sp-4); }
.sign .tf { text-align: left; gap: 8px; } .sign input:disabled { opacity: .45; cursor: not-allowed; } .sign .tf .btn { margin-top: var(--sp-2); } .sign .who { display: grid; gap: 8px; } .sign .err { margin-top: var(--sp-3); }

/* prototype controls: not part of the product */
.proto { position: fixed; left: 10px; bottom: 10px; z-index: 60; font-size: var(--fs-2); }
.proto > button { border: 1px dashed var(--muted); background: var(--surface); border-radius: var(--r-2); padding: 4px 8px; color: var(--muted); }
.proto .pp { position: absolute; bottom: 34px; left: 0; width: 250px; background: var(--surface); border: 1px dashed var(--muted); border-radius: var(--r-2); padding: var(--sp-3); box-shadow: var(--shadow); }
.proto label { display: block; margin: var(--sp-2) 0 2px; color: var(--muted); }
.proto select { width: 100%; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface2); padding: 4px; }

/* narrow: Hub pane and phone */
@media (max-width: 1080px) { table.cards td:nth-child(2) { overflow-wrap: anywhere; } table.nw.cards td:last-child { white-space: normal; } .desk { grid-template-columns: 280px minmax(0, 1fr); } .keys { display: none; } .bar .in > .undo { flex-basis: 100%; order: -1; margin: 0 0 4px; } .denyside .reason small { display: none; } }
@media (max-width: 760px) {
  .top { flex-wrap: wrap; padding: var(--sp-2) var(--sp-3); gap: 8px; }
  .brand { display: none; }
  .nav { order: 5; flex-basis: 100%; flex-wrap: nowrap; justify-content: space-between; overflow-x: auto; overflow-y: hidden; } /* 8 tabs do not fit 390 px: the bar scrolls inside its own row, not the whole page (live 2026-11-22: page 605 px wide) */
  .nav::-webkit-scrollbar { display: none; }
  .nav button { padding: var(--sp-2) var(--sp-2); min-height: 44px; font-size: 15px; } /* 15px stays a length: web/tests/intel_tab.js reads this rule's font-size as a px number and wants at least 15 */
  .qbtn { display: inline-flex; align-items: center; gap: var(--sp-2); border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-pill); padding: 0 12px; min-height: 44px; font-weight: 650; }
  .prog .track, .prog .pl { display: none; }
  .prog .ps { display: inline; }
  .person .pname { display: none; }
  .person > button { padding: var(--sp-2); }
  .tsw { max-width: 120px; padding: 0 4px; font-size: var(--fs-3); }
  .desk { grid-template-columns: 1fr; }
  .queue { display: none; }
  .desk.qopen .queue { display: block; position: fixed; inset: 0; z-index: 45; border: 0; }
  .qclose { display: block !important; }
  .pad { padding: var(--sp-4) 12px 12px; }
  .head h1 { font-size: var(--fs-6); }
  .bar { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .bar .in > .btn { flex: 1; padding: 0 8px; }
  .bar .in > .btn.primary { flex: 2; }
  .morecue { margin: calc(var(--sp-3) * -1) -12px 8px; }
  .banner { flex-wrap: wrap; } .banner span { flex-basis: 100%; } .banner button { margin-left: 0; }
  .reason small { display: none; }
  .reason { min-height: 40px; padding: var(--sp-2) var(--sp-3); }
  .reasons { gap: var(--sp-2); }
  .panel textarea { min-height: 48px; }
  .panel { max-height: 52dvh; }
  .tp, .tp.four { grid-template-columns: 1fr; gap: var(--sp-3); } .tp.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile .big { font-size: var(--fs-6); } /* the phone number steps down one token: 28px and 22px are both --fs-7 and the phone rule would shrink nothing */
  .barnote { flex-basis: 100%; order: 3; font-size: var(--fs-3); }
  td.mcell { width: auto; }
  .wrap { padding: 16px 12px; }
  table.cards thead { display: none; } table.cards tr { display: block; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
  table.cards td, table.cards td.num { display: block; border: 0; padding: 2px 0; text-align: left; white-space: normal; }
  table.cards td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); }
  table.cards td:last-child { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-2); white-space: normal; } table.cards td:last-child:empty { display: none; }
  .proto { bottom: 76px; }
}
.qclose { display: none; float: right; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-2); padding: var(--sp-2) 12px; margin-bottom: 8px; min-height: 40px; }

/* ---------- round 4 (user round 2 feedback, 2026-11-11 13:56) ---------- */
.chips.three .chip { flex: 1; min-height: 40px; font-size: var(--fs-4); }
.osel { width: 100%; border: 1px solid var(--line); background: var(--surface2); border-radius: var(--r-2); padding: 0 var(--sp-3); min-height: 40px; margin-bottom: 8px; }
.row .own { grid-column: 1 / -1; font-size: var(--fs-3); color: var(--accent-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .mail { grid-column: 1 / -1; font-size: var(--fs-3); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .own.un { color: var(--warn-ink); }
.mut { color: var(--muted); font-size: var(--fs-3); }
/* yellow outline bar: another lead at the same firm has outreach drafted or sent */
.sib { border: 2px solid var(--warn); border-radius: var(--r-2); padding: 8px var(--sp-4); margin: 0 0 var(--sp-4); display: flex; gap: var(--sp-2) 16px; flex-wrap: wrap; align-items: center; color: var(--warn-ink); }
.sib span { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sib button { border: 1px solid var(--warn); background: none; color: var(--warn-ink); border-radius: var(--r-2); padding: 2px var(--sp-3); min-height: 32px; font-weight: 650; white-space: nowrap; }
.top1 { margin: 0 0 var(--sp-4); padding: 12px 16px; background: var(--surface); border: 1px solid var(--ok); border-radius: var(--r-2); }
.t1head { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.top1 .claim { font-weight: 650; font-size: var(--fs-5); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.terms { margin: 8px 0 var(--sp-2); padding: 0 0 0 20px; display: grid; gap: var(--sp-1); }
.terms li::marker { color: var(--ok); }
.terms li { color: var(--ok); } .terms li span { color: var(--muted); margin-left: var(--sp-3); font-size: var(--fs-3); }
.terms li .pts { color: var(--ok); font-weight: 700; font-variant-numeric: tabular-nums; }
.top1 .sum { font-size: var(--fs-4); font-variant-numeric: tabular-nums; } .top1 .sum b { color: var(--ok); }
/* The firm block of a card (spec approverhythm-card-firm-block): the summary, then one row per field; a field not checked says so in the muted style. */
.firmblock { margin: 0 0 var(--sp-4); padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); }
.firmblock h2 { font-size: var(--fs-2); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: var(--sp-2); }
.fbsum, .fbfields { overflow-wrap: anywhere; }
.fbfields { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: var(--sp-3); }
.fbfields li { display: grid; gap: 2px; min-width: 0; }
.fbfields .fblab { font-size: var(--fs-2); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.fbfields blockquote { margin: 0; padding-left: var(--sp-3); border-left: 1px solid var(--line); }
/* item 8 (user 2026-11-17 16:17): one sentence and one source link. The line a fact is used in is not drawn on the page (item 3, 2026-11-17 20:56). */
.fbempty { margin: 8px 0 0; color: var(--muted); }
/* The Lead panel of a card (spec approverhythm-card-feedback-contact-lead-links-2026-11-17, section 3.2): one line per fact, under the Contact row. */
.leadblock { margin: 0 0 var(--sp-4); padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-2); }
.leadblock h2 { font-size: var(--fs-2); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: var(--sp-2); }
.leadblock p { margin: 0 0 4px; overflow-wrap: anywhere; }
/* a long source address or quote has no break points, so it wraps inside the panel at 390 px instead of running past its right edge */
.leadblock a, .leadblock blockquote { overflow-wrap: anywhere; }
.leadblock p:last-child { margin-bottom: 0; }
/* a 'not found' field keeps the plain ink and its value reads as the not-found badge pill, distinct from the muted 'not checked'. */
.fbfields li.nf { color: var(--ink); }
.fbfields li.nf .fbval { justify-self: start; font-size: var(--fs-2); font-weight: 650; padding: 2px var(--sp-2); border-radius: var(--r-pill); background: var(--surface2); border: 1px solid var(--muted); }
/* The decision-model badges of a card (spec approverhythm-card-badges): a row of pills a side that wraps on a narrow screen; a badge no model
   answered is muted and still names its model. */
.brow { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.brow li { display: flex; min-width: 0; }
.brow .bpill { font-size: var(--fs-2); font-weight: 650; padding: 2px var(--sp-2); border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-text); overflow-wrap: anywhere; }
.brow .bpill.mut { background: var(--surface2); color: var(--muted); border: 1px solid var(--line); }
/* 'not found' is not 'not checked' (user rule 2026-11-17 21:55): the model read the source and found nothing, so the pill keeps the normal ink and a solid border. */
.brow .bpill.nf { background: var(--surface2); color: var(--ink); border: 1px solid var(--muted); }
/* a note after a badge state, or after a not-checked firm field, reads muted and carries no weight of its own. */
.bnote { color: var(--muted); font-weight: 500; }
.fulltext { margin-top: 8px; padding: var(--sp-3) 12px; background: var(--surface2); border-radius: var(--r-2); white-space: pre-wrap; font-size: var(--fs-4); overflow-wrap: anywhere; }
/* item 2.9 (user 2026-11-17 23:38): the stored job description shows its first four lines, and Show more opens the rest; no maximum height.
   item 4.3: a stored quote past 300 characters is cut at a word and opens the same way, and every LinkedIn message says it follows the accept. */
.jobdesc { margin-top: 8px; white-space: pre-wrap; padding: var(--sp-3) 12px; background: var(--surface2); border-radius: var(--r-2); font-size: var(--fs-4); }
.jobdesc.none { color: var(--muted); }
button.more { margin-top: var(--sp-2); }
.mail > header .meta .aft { font-size: var(--fs-2); }
/* A stored markdown heading and list of a post are drawn as a heading and a list inside the same open block (item 2). */
.jobdesc h4 { margin: var(--sp-3) 0 2px; font-size: var(--fs-4); }
.jobdesc ul.jdlist { margin: 2px 0; padding-left: var(--sp-5); }
/* item 1 (user 2026-11-17 20:56): no Proof sources line is drawn under the messages. */
mark.term { background: var(--ok-soft); color: var(--ok); font-weight: 650; border-radius: var(--r-1); padding: 0 2px; }
.whycols li > div { min-width: 0; flex: 1; }
.whycols h3 { text-transform: none; letter-spacing: 0; font-size: var(--fs-4); color: var(--ink); }
.whynote { color: var(--muted); font-size: var(--fs-3); } .whynote.pad2 { padding: 0 16px var(--sp-3); }
.rankb { display: inline-flex; gap: 4px; margin-left: auto; }
.rankb .btn.small { min-width: 34px; padding: 0 8px; }
.mail .day { white-space: normal; } .mail > header .meta.sub2 { font-size: var(--fs-2); }
details.elog { margin: 0 12px var(--sp-3); font-size: var(--fs-3); } details.elog summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 4px 0; }
.pager { display: flex; gap: var(--sp-3); align-items: center; justify-content: flex-end; flex-wrap: wrap; padding-top: var(--sp-3); color: var(--muted); font-size: var(--fs-3); font-variant-numeric: tabular-nums; }
.pager .btn[disabled] { opacity: .45; cursor: default; }
.sortb { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; font-weight: 700; white-space: nowrap; }
.sortb:hover { color: var(--ink); } th[aria-sort="ascending"] .sortb, th[aria-sort="descending"] .sortb { color: var(--accent-text); }
.filters select { max-width: 100%; }
/* The hiring-firm box and its words are one control: the box keeps its own size and the text sits right beside it (user 2026-11-20). */
.evf-check { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
.evf-check input { flex: none; min-width: 0; }
.beats { list-style: none; margin: 0; padding: 0; counter-reset: b; display: grid; gap: var(--sp-2); }
.beats li { counter-increment: b; display: flex; gap: var(--sp-3); align-items: center; padding: 8px var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface2); }
.beats li::before { content: counter(b); width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: var(--fs-2); font-weight: 700; }
.beats li > div { flex: 1; min-width: 0; }
.var { color: var(--accent-text); background: var(--accent-soft); border-radius: var(--r-1); padding: 0 4px; font-weight: 600; }
@media (max-width: 760px) { .intel { justify-items: start; } .ig { justify-content: flex-start; } .pager { justify-content: flex-start; } }
/* the intel buttons sit under the name, full width, so the name and title never wrap one word per line */
.head { grid-template-columns: minmax(0, 1fr); }
.intel { justify-items: start; } .ig { justify-content: flex-start; } .ig > .label { min-width: 62px; }
.ib { min-height: 34px; }
.box:not(.wide) table.nw td:first-child { white-space: normal; } /* a narrow box wraps its first column so the number column stays in view */
.head .sib { margin: 0; } /* directly under the name and owner, so it is above the fold on every screen size */
.box:not(.wide) .pager { gap: var(--sp-2); flex-wrap: nowrap; } .box:not(.wide) .pager .btn { padding: 0 8px; white-space: nowrap; } .pager span { white-space: nowrap; }
/* header parts: the dot sits before each part and is cut off at the start of a row, so no row starts or ends with a dot */
.sub.inlist { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 2px; padding-left: var(--sp-1); margin-left: calc(var(--sp-1) * -1); clip-path: inset(-4px -4px -4px 0); }
.sub.inlist > .nob { position: relative; }
.sub.inlist > .nob::before { content: '·'; position: absolute; left: -11px; top: 50%; transform: translateY(-50%); }
/* round 5: the user's round 3 feedback of 2026-11-11 15:16 */
.rowlab { font-size: var(--fs-2); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 12px 0 var(--sp-2); }
.fit { margin: 8px 0 2px; font-size: var(--fs-5); font-weight: 650; } .fit b { color: var(--ok); font-size: var(--fs-6); font-variant-numeric: tabular-nums; }
.terms { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 var(--sp-2); }
.terms li .pts { margin-left: var(--sp-2); }
.also { margin: 2px 0 8px; color: var(--muted); font-size: var(--fs-3); } .also b { color: var(--warn-ink); font-weight: 650; }
mark.term2 { background: var(--warn-soft); color: var(--warn-ink); font-weight: 650; border-radius: var(--r-1); padding: 0 2px; }
.back { margin: 0 0 4px; }
.tform { display: grid; gap: 12px; } .tf { display: grid; gap: 4px; }
.tf input, .tf select, .tf textarea { border: 1px solid var(--line); background: var(--surface2); border-radius: var(--r-2); padding: 8px var(--sp-3); min-height: 40px; width: 100%; font: inherit; color: inherit; }
.tf textarea { resize: vertical; line-height: 1.5; } .tf input[type=number] { max-width: 120px; }
.tform .acts { display: flex; gap: 12px; align-items: center; } .err { color: var(--bad, #ff8f8f); font-weight: 600; margin: 0; }
.mail > header .wc { order: 1; flex-basis: 100%; margin-left: 28px; } /* every message: name (and Edited), then the send time of an email, then the indicators, each on its own header line */
.mail > header.nostep .wc { margin-left: 0; } /* the connection request box has no numbered step circle, so its counter sits flush with the box (user 2026-11-17 16:17) */
.mail > header.nostep .meta { padding-left: 0; } /* item 4 (user 2026-11-17 20:56): every header line of the connection request starts at the title's left edge */
/* at 390 the '.aft' span no longer takes a right-hand column, so the send time keeps the full width (Design Leader Safari check 2026-11-18) */
@media (max-width: 760px) { .mail > header .meta { flex-wrap: wrap; } .mail > header .meta .aft { flex-basis: 100%; } }
.plain { margin: 8px 0 0; padding-left: 20px; display: grid; gap: var(--sp-2); }
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 var(--sp-4); }
.subnav [aria-current="page"] { font-weight: 600; text-decoration: underline; }
/* Intel and Admin: the grid scrolls sideways inside its own box; the page body never does. */
.gridbox { overflow-x: auto; max-width: 100%; min-width: 0; }
.gridbox perspective-viewer { display: block; width: 100%; min-width: 0; height: 70dvh; min-height: 360px; }
.gridstate { color: var(--muted); padding: var(--sp-4) 2px 2px; margin: 0; }
.gridhide { color: var(--muted); padding: 8px 2px 0; margin: 0; }
.gridhide:empty { display: none; }
/* The signal volume table in the Volume section (user feedback R5.8): a plain compact table that wraps inside its box at 1440 (Design Leader Safari check 2026-11-19 20:50). */
.volume { margin: 0 0 12px; max-width: 100%; min-width: 0; overflow-x: auto; font-size: var(--fs-3); }
.volume table { border-collapse: collapse; }
.volume th { text-align: left; font-weight: 600; color: var(--muted); padding: 2px var(--sp-3) 2px 0; white-space: nowrap; }
.volume td { padding: 2px var(--sp-3) 2px 0; }
.volume .volnote { margin: var(--sp-2) 0 0; color: var(--muted); font-size: var(--fs-2); }
.volume .volnone { margin: 0; color: var(--muted); }
/* At 390 Safari cuts the nine columns off with no scroll bar (Design Leader Safari check 2026-11-19 20:50), so a phone draws one block per row:
   every cell names its column in data-label (web/page/app.js, volumeRow), the head row hides, and a border separates the rows. Each cell is a
   two-column grid, so the label keeps its own column and a value that wraps to a second line stays in the value column (21:25 check). */
@media (max-width: 760px) {
  .volume thead { display: none; }
  .volume table, .volume tbody, .volume tr { display: block; }
  .volume tr { border-bottom: 1px solid var(--line); padding: var(--sp-1) 0; }
  .volume td { display: grid; grid-template-columns: 104px 1fr; column-gap: 8px; padding: 1px 0; }
  .volume td::before { content: attr(data-label); color: var(--muted); font-weight: 600; }
}

/* Campaign fit on a campaign tenant's waiting list and pitch card (agent leader requests #189917 and #190061). */
.row .fitlab { grid-column: 1 / -1; font-size: var(--fs-2); font-weight: 650; color: var(--accent-text); }
.fitline { margin: 4px 0 0; font-size: var(--fs-3); color: var(--muted); }
.fitnote { padding: 0 var(--sp-4) 8px; }
/* A long unbroken text (a job post address, a quote) wraps inside its pane and never runs through the border (live 2026-11-22, Top Target Reason). */
.src > *, .top1, .why2, .whycols li, .whycols li > div, .jobdesc, .fulltext { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
/* iPhone (viewport-fit=cover, status bar over the page): the header, the full screen list and the reload bar clear the clock, the Dynamic Island and the side edges; all four insets are 0 on desktop. */
.top { padding-top: env(safe-area-inset-top); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.stalebar { padding-top: calc(var(--sp-3) + env(safe-area-inset-top)); }
.bar { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
@media (max-width: 760px) {
  .top { padding-top: calc(var(--sp-2) + env(safe-area-inset-top)); padding-left: max(var(--sp-3), env(safe-area-inset-left)); padding-right: max(var(--sp-3), env(safe-area-inset-right)); }
  .desk.qopen .queue { padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}
/* page-only lane test 2026-11-22: a comment, no visual change */
/* page-only lane test 2: 2026-11-22 18:00, a comment, no visual change */
/* page-only lane test 3: 2026-11-22 18:40, a comment, no visual change */
/* A MediCodio card's outreach tier, the signal email 1 used and its quote (spec outreach-tier-on-desk-and-deck-medicodio-20-2026-11-23, section 3):
   the badge keeps its own width at 390 px, so the signal line wraps beside it and never through it. */
.tierrow { display: flex; gap: 4px var(--sp-2); align-items: baseline; flex-wrap: wrap; margin: 0 0 var(--sp-4); min-width: 0; }
.tierb { flex: none; display: inline-block; white-space: nowrap; font-size: var(--fs-2); font-weight: 700; padding: 2px var(--sp-2); border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-text); }
.tiersig { flex: 1; min-width: 0; margin: 0; font-size: var(--fs-4); overflow-wrap: anywhere; }
.tierq { flex-basis: 100%; margin: 4px 0 0; padding-left: var(--sp-3); border-left: 1px solid var(--line); color: var(--muted); font-size: var(--fs-4); overflow-wrap: anywhere; }
/* page-only lane test 4: 2026-11-22 19:13, a comment, no visual change */
/* The Calendar tab (spec approverhythm-calendar-tab-page): a flat, dense month grid of 1 px --line borders, no shadow and no gradient, one
   accent ring for today and one muted count badge. Every day is a real button; a phone draws the day numbers with the count, and the day list
   under the grid carries the detail. */
.cal-bar { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-3); }
.cal-ym { font-size: var(--fs-5); margin-right: auto; }
.calsrc { padding: 0 0 var(--sp-1); } /* a source line above the grid */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-h { padding: var(--sp-1) var(--sp-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: var(--fs-1); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cal-d { display: block; width: 100%; min-height: 92px; padding: var(--sp-1) var(--sp-2); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); text-align: left; }
.cal-d:hover { background: var(--surface2); }
.cal-d.off { color: var(--muted); background: var(--bg); } /* a day of the month beside this one */
.cal-d.sel { background: var(--accent-soft); border-right-color: var(--accent); border-bottom-color: var(--accent); }
.cal-d.today { outline: 2px solid var(--accent); outline-offset: -2px; } /* today's visible ring */
.cal-n { font-size: var(--fs-3); font-weight: 650; font-variant-numeric: tabular-nums; }
.cal-c { display: none; } /* the count badge of a phone */
.cal-t { display: block; margin-top: 2px; }
.cal-e { display: block; font-size: var(--fs-1); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-e.more { color: var(--accent-text); }
.cal-dayhead { margin: var(--sp-4) 0 var(--sp-2); font-size: var(--fs-4); }
.cal-list li { font-size: var(--fs-3); }
.cal-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-k { font-weight: 650; }
@media (max-width: 599px) {
  .cal-d { min-height: 44px; padding: var(--sp-1); text-align: center; }
  .cal-n { display: block; }
  .cal-c { display: inline-block; font-size: var(--fs-1); color: var(--muted); font-variant-numeric: tabular-nums; }
  .cal-t { display: none; }
  .cal-dayhead { margin-top: var(--sp-3); }
}

/* The face beside a pitch (avatar.js): the circle holds the initials, and the one picture the server stores of the person or firm is drawn
   over them. avatar.js drops a picture the server does not hold, so the initials are what a card shows when no picture is held. */
.av { display: inline-grid; place-items: center; position: relative; flex: none; overflow: hidden; background: var(--surface2); color: var(--muted); font-size: var(--fs-2); font-weight: 600; border: 1px solid var(--line); border-radius: 50%; }
.av > * { grid-area: 1 / 1; min-width: 0; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The queue row and the card head take the avatar as their first child, so each is one flex line: the text keeps the places it had in the
   grid (name and badge on the first line, then the firm, the fit and the owner on their own lines), and the row never scrolls sideways. */
.row { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--sp-2); row-gap: 2px; }
.row .who { flex: 1 1 0; min-width: 0; }
.row .firm, .row .why, .row .fitlab, .row .own { flex: 1 1 100%; }
.row .badge { flex: none; }
.head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--sp-3); }
.head > div:first-of-type { flex: 1 1 0; min-width: 0; }
.head .sib { flex: 1 1 100%; order: 1; } /* the yellow bar stays under the name and owner, as it was */
/* iOS zooms the page in when a focused field is under 16px, so a phone keeps every field at 16px under the 14px body. */
@media (max-width: 760px) { input, select, textarea, .tf input, .tf select, .tf textarea { font-size: 16px; } }
