/* surface6.css — Shared Surface 6 component styles (composer + in-document reader).
 *
 * CC-SURFACE6-COMPOSER-LIVE-MOUNT-STAGE2-3-001-v1_3 + Amendment A1 (shared CSS extraction).
 * Loaded by BOTH dashboard.html and index.html. Rules relocated VERBATIM from
 * dashboard.html's inline <style> (Stage-1 left the composer .nc-* CSS and the
 * reader .afc2-*/.s6v-* CSS inline; this file shares them so the composer and
 * document reader render identically on the live index.html mounts).
 *
 * Tokens: this sheet defines NO tokens. It relies on page tokens —
 *   dashboard.html: platform-design.css :root (+ dashboard inline :root).
 *   index.html:     a scoped #ncModal,#s8 token block (Amendment A1 item 6 revised).
 *
 * Namespaces here: .s6v-context bar (reader chrome), .afc2-* (reader),
 * .nc-* (composer). Dashboard-only surfaces (.s6v-state/-loading/-exit/-grace/
 * -toast, .s6vd-*, .attny-modal) intentionally STAY inline in dashboard.html.
 */

/* ══ READER: context bar + document reader (.s6v-context / .afc2-*) ══ */
/* ─────────────────────────────────────────────────────────────────────────
   Surface 6 view — top context bar
   ───────────────────────────────────────────────────────────────────────── */

.s6v-context{
  border-bottom:.5px solid var(--rule);
  background:rgba(251,249,245,.65);
  backdrop-filter:saturate(1.1) blur(8px);
  -webkit-backdrop-filter:saturate(1.1) blur(8px);
}
.s6v-context-i{
  max-width:1240px;margin:0 auto;
  padding:14px 32px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:24px;
}
@media(max-width:760px){.s6v-context-i{padding:12px 18px;gap:14px}}

.s6v-back{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--f);font-size:14px;font-weight:500;color:var(--t2);
  padding:10px 14px;border-radius:999px;
  border:.5px solid transparent;
  min-height:44px;
  transition:color .15s,background .15s,border-color .15s;
}
.s6v-back:hover{color:var(--t1);background:var(--paper);border-color:var(--rule)}
.s6v-back:focus-visible{outline:2px solid var(--copper);outline-offset:2px}

.s6v-context-meta{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:center;
  font-family:var(--fm);font-size:11.5px;color:var(--t3);letter-spacing:.2px;
}
.s6v-context-meta b{color:var(--t1);font-weight:600}
.s6v-context-meta .dot{width:3px;height:3px;border-radius:50%;background:var(--rule-2)}

.s6v-pill{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--paper);
  border:.5px solid var(--rule-2);
  border-radius:999px;
  padding:5px 12px;
  font-family:var(--fm);font-size:12px;color:var(--t1);font-weight:500;
  letter-spacing:.1px;
}

.s6v-toggle{
  display:inline-flex;align-items:center;gap:0;
  background:var(--paper);border:.5px solid var(--rule-2);border-radius:999px;
  padding:3px;
}
/* CC-SURFACE6-COMPOSER-UX-FIXES-001 Fix 2 — the inactive "Back to your report" control
   was muted grey (--t2) with a pressable affordance only on :hover, so at rest / on touch
   it read as disabled next to the raised active pill. It now carries the CTA color
   (--copper) so it reads as clearly pressable at rest. The active segment keeps its raised
   "you are here" pill (.is-active) and is a non-interactive state label, so it overrides
   to --t1 and uses a default cursor. Parity-shared across #s8 (index) and #s6vOnDocument
   (dashboard). */
.s6v-toggle-opt{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:36px;padding:8px 14px;border-radius:999px;
  font-family:var(--f);font-size:13px;font-weight:500;color:var(--copper);
  transition:background .15s,color .15s;
  cursor:pointer;
}
.s6v-toggle-opt:not(.is-active):hover{color:var(--copper-press)}
.s6v-toggle-opt.is-active{
  background:var(--card);color:var(--t1);font-weight:600;
  box-shadow:0 1px 2px rgba(23,25,27,.06);
  cursor:default;
}
@media(max-width:760px){
  .s6v-context-meta{display:none}
  .s6v-toggle-opt{padding:8px 12px;font-size:12.5px}
}

/* ─────────────────────────────────────────────────────────────────────────
   Surface 6 view — Phase 3 rebuild to v2 design
   Class names per ~/Documents/dang/docs/design-platform-v1/Ask for changes v2.html
   (.afc2-* namespace). Phase 3 adaptation: finding-driven (no all-clauses
   enumeration), per §A.1 of Phase 3 brief + Phase 3 data-shape pre-check.
   Tokens pulled verbatim from platform-design.css.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Workspace layout (v2 .afc2-work) ── */
.afc2-work{
  max-width:1320px;margin:0 auto;
  padding:36px 32px 96px;
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  gap:36px;
  align-items:flex-start;
}
@media(max-width:980px){
  .afc2-work{grid-template-columns:1fr;gap:18px;padding:24px 22px 96px}
}

/* ── LEFT: finding-nav rail (v2 .afc2-nav, finding-driven per §A.1) ── */
.afc2-nav{
  position:sticky;top:96px;
  max-height:calc(100vh - 120px);
  background:var(--card);
  border:.5px solid var(--rule);
  border-radius:var(--rl);
  display:flex;flex-direction:column;
  overflow:hidden;
}
@media(max-width:980px){
  .afc2-nav{position:static;max-height:none}
}
.afc2-nav-head{
  padding:18px 18px 14px;
  border-bottom:.5px solid var(--rule);
  display:flex;flex-direction:column;gap:12px;
  background:var(--paper);
}
.afc2-nav-head .lbl{
  font-family:var(--fm);font-size:10.5px;color:var(--t3);
  letter-spacing:1.6px;text-transform:uppercase;font-weight:500;
}
.afc2-nav-head h2{
  font-family:var(--fd);font-weight:700;font-size:17px;letter-spacing:-.02em;color:var(--t1);
  display:flex;align-items:baseline;gap:8px;
  margin:0;
}
.afc2-nav-head h2 .count{
  font-family:var(--fm);font-size:11.5px;color:var(--t3);font-weight:500;letter-spacing:.2px;
}
.afc2-nav-list{
  flex:1;min-height:0;
  overflow-y:auto;
  padding:6px 0;
  list-style:none;
}
.afc2-nav-list::-webkit-scrollbar{width:6px}
.afc2-nav-list::-webkit-scrollbar-thumb{background:var(--rule-2);border-radius:3px}

.afc2-nrow{
  display:grid;grid-template-columns:36px 1fr auto;gap:10px;align-items:center;
  width:100%;
  /* CC-DASHBOARD-FINETUNE-FIX-001 item 4 — right padding raised 14px→44px to
     reserve a hit zone for the sibling .afc2-nselect select control. */
  padding:10px 44px 10px 12px;
  background:transparent;border:none;cursor:pointer;
  text-align:left;
  border-left:2px solid transparent;
  transition:background .15s,border-color .15s;
  min-height:44px;
  font:inherit;
  color:inherit;
}
.afc2-nrow:hover{background:var(--paper)}
.afc2-nrow:focus-visible{outline:2px solid var(--copper);outline-offset:-2px}
.afc2-nrow .num{
  font-family:var(--fm);font-size:10.5px;color:var(--t3);
  letter-spacing:.4px;font-weight:500;
  text-align:right;
}
.afc2-nrow .title{
  font-family:var(--f);font-size:13.5px;color:var(--t1);font-weight:500;letter-spacing:-.05px;
  line-height:1.35;
  overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}
.afc2-nrow .sev{
  width:8px;height:8px;border-radius:50%;background:var(--rule-2);flex-shrink:0;
}
.afc2-nrow.sev-hi .sev{background:var(--high);box-shadow:0 0 0 3px var(--high-bg)}
.afc2-nrow.sev-md .sev{background:var(--med);box-shadow:0 0 0 3px var(--med-bg)}
.afc2-nrow.sev-lo .sev{background:var(--low-text);box-shadow:0 0 0 3px var(--low-text-bg)}
.afc2-nrow.sev-esc .sev{background:var(--obsidian);box-shadow:0 0 0 3px rgba(17,19,21,.12)}
.afc2-nrow.current{
  background:var(--primary-ghost);
  border-left-color:var(--copper);
}
.afc2-nrow.current .num{color:var(--copper-press);font-weight:600}
.afc2-nrow.current .title{color:var(--t1);font-weight:600}

/* CC-DASHBOARD-FINETUNE-FIX-001 item 4 — per-finding select control in the rail.
   Distinct hit zone: the .afc2-nrow button navigates (focusAfc2Finding); this
   sibling button toggles the SHARED currentSelection (handleAfc2NavSelect).
   Reuses the composer-rail selected-state vocabulary (✓/+ mark, is-selected). */
.afc2-nav-list li{position:relative}
.afc2-nselect{
  position:absolute;top:50%;right:10px;transform:translateY(-50%);
  width:26px;height:26px;border-radius:8px;
  display:inline-flex;align-items:center;justify-content:center;
  background:transparent;border:.5px solid var(--rule);
  font-family:var(--fm);font-size:14px;font-weight:600;line-height:1;color:var(--t3);
  cursor:pointer;
  transition:background .15s,border-color .15s,color .15s;
}
.afc2-nselect:hover{border-color:var(--copper);color:var(--copper)}
.afc2-nselect:focus-visible{outline:2px solid var(--copper);outline-offset:2px}
.afc2-nselect.is-selected{background:var(--primary-ghost);border-color:var(--copper);color:var(--copper)}
.afc2-nselect.is-escalate{color:var(--high);border-color:var(--high-bg);cursor:pointer}

/* CC-DASHBOARD-FINETUNE-FIX-001 item 4 — rail footer "Draft response" CTA.
   Mirrors the bottom-bar CTA; reuses the .draft-cta treatment and the same
   triggerDraftResponse() handler. State kept in sync via renderAfc2Bottombar. */
.afc2-nav-foot{
  flex-shrink:0;
  padding:12px 14px;
  border-top:.5px solid var(--rule);
  background:var(--paper);
  display:flex;
}
.afc2-nav-foot .draft-cta{width:100%;justify-content:center}

/* Mobile rail collapses into a horizontal chip strip with sticky positioning */
@media(max-width:980px){
  .afc2-nav{
    position:sticky;top:64px;
    background:rgba(251,249,245,.95);
    backdrop-filter:saturate(1.1) blur(8px);
    -webkit-backdrop-filter:saturate(1.1) blur(8px);
    border-radius:0;
    border-left:none;border-right:none;
    border-top:.5px solid var(--rule);
    padding:10px 0;
    max-height:none;
    overflow:visible;
    display:flex;
  }
  .afc2-nav-head{display:none}
  /* CC-DASHBOARD-FINETUNE-FIX-001 item 4 — at this breakpoint the rail is a
     compact horizontal chip strip used for quick-jump navigation only. The
     per-finding select + rail draft CTA would cram the pills, so selection on
     mobile happens via the on-document card's "Add to draft response" toggle
     and the always-visible bottom-bar Draft-response CTA. (Flagged in HALT.) */
  .afc2-nselect{display:none}
  .afc2-nav-foot{display:none}
  .afc2-nav-list li{position:static}
  .afc2-nav-list{
    display:flex;gap:8px;
    padding:0 18px 4px;
    overflow-x:auto;
    scrollbar-width:none;
  }
  .afc2-nav-list::-webkit-scrollbar{display:none}
  .afc2-nrow{
    display:inline-flex;
    grid-template-columns:none;
    flex-direction:row;align-items:center;gap:8px;
    padding:8px 14px;min-height:44px;
    border-left:none;
    background:var(--card);
    border:.5px solid var(--rule-2);
    border-radius:999px;
    flex-shrink:0;
    max-width:240px;
  }
  .afc2-nrow.current{
    background:var(--primary-surface);
    border-color:var(--copper);
  }
  .afc2-nrow .num{font-size:10px}
  .afc2-nrow .title{
    font-size:13px;font-weight:500;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    max-width:170px;display:block;
  }
}

/* ── Doc column wrapper holds .afc2-doc AND sticky .afc2-bottombar ── */
.afc2-col{display:flex;flex-direction:column;gap:0;min-width:0}

/* ── RIGHT: document column (v2 .afc2-doc) ── */
.afc2-doc{
  background:var(--card);
  border:.5px solid var(--rule);
  border-radius:var(--rl);
  overflow:hidden;
  position:relative;
}
.afc2-doc-head{
  padding:14px 28px;
  border-bottom:.5px solid var(--rule);
  background:var(--paper);
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
}
.afc2-doc-head .lbl{
  font-family:var(--fm);font-size:10.5px;color:var(--t3);
  letter-spacing:1.6px;text-transform:uppercase;
}
.afc2-doc-head .lbl b{color:var(--t1);font-weight:600}
.afc2-doc-head .privacy-note{
  font-family:var(--f);font-size:11.5px;color:var(--t3);
  letter-spacing:-.05px;font-style:italic;
}

/* Doc body — the editorial canvas */
.afc2-doc-body{
  padding:56px 72px 80px;
  font-family:var(--fs);
  font-size:16px;
  line-height:1.7;
  color:var(--t1);
  position:relative;
}
@media(max-width:760px){.afc2-doc-body{padding:32px 24px 48px;font-size:15px}}

/* Clauses — paragraph wrappers (one per parsed-text paragraph; Phase 1's
   Strategy A/B annotates these in place per data-shape pre-check finding-
   driven adaptation). */
.afc2-clause{
  position:relative;
  padding:14px 24px;
  margin:0 -24px;
  border-radius:10px;
  transition:opacity .35s var(--ease-out),filter .35s var(--ease-out),background .25s var(--ease-out);
  scroll-margin-top:120px;
}
.afc2-clause p{
  font-family:var(--fs);font-size:16px;
  line-height:1.7;color:var(--t1);
  margin:0;
  text-wrap:pretty;
}

/* Spotlight: when one clause is active, fade the others */
.afc2-doc-body[data-spotlight] .afc2-clause:not(.active):not(.afc2-clause--more){opacity:.42;filter:saturate(.7)}

/* ── Active clause — fancy editorial highlight ── */
.afc2-clause.active{
  background:var(--primary-ghost);
  /* CC-DASHBOARD-FINETUNE-FIX-001 item 5 — top padding raised 26px→48px so the
     absolutely-positioned .afc2-clause-eyebrow badge (top:18px, ~22px tall)
     clears the first body line instead of bleeding into it. */
  padding:48px 32px 28px 56px;
  margin:18px -32px 0;
  box-shadow:0 1px 2px rgba(23,25,27,.03),0 12px 28px -16px rgba(122,88,66,.18);
  animation:afc2-spotIn .45s var(--ease-out);
}
@keyframes afc2-spotIn{
  from{opacity:.6;transform:translateY(4px) scale(.99);background:var(--card)}
  to  {opacity:1;transform:translateY(0) scale(1);background:var(--primary-ghost)}
}
/* Copper rail */
.afc2-clause.active::before{
  content:'';position:absolute;left:24px;top:18px;bottom:18px;width:3px;
  background:var(--copper);border-radius:2px;
}
/* Marginalia § marker — floats in the left gutter */
.afc2-clause.active::after{
  content:attr(data-marker);
  position:absolute;
  left:-72px;top:18px;
  font-family:var(--fd);font-weight:900;
  font-size:36px;line-height:1;
  letter-spacing:-.04em;
  color:var(--copper);
  opacity:.14;
  transform:rotate(-8deg);
  pointer-events:none;
}
@media(max-width:980px){.afc2-clause.active::after{left:-12px;top:-44px;font-size:28px;opacity:.18}}
/* CC-DASHBOARD-FINETUNE-FIX-001 item 5 — mobile top padding raised 22px→46px for the same badge clearance (badge keeps top:18px/right:24px at this breakpoint). */
@media(max-width:760px){.afc2-clause.active{padding:46px 22px 22px 36px;margin:14px -22px 0}.afc2-clause.active::before{left:16px}}

/* Severity variants on active state (v2 verbatim) */
.afc2-clause.active.sev-hi{background:var(--high-bg);box-shadow:0 1px 2px rgba(184,48,48,.05),0 12px 28px -16px rgba(184,48,48,.16)}
.afc2-clause.active.sev-hi::before{background:var(--high)}
.afc2-clause.active.sev-hi::after{color:var(--high);opacity:.16}

.afc2-clause.active.sev-md{background:var(--med-bg);box-shadow:0 1px 2px rgba(165,106,31,.05),0 12px 28px -16px rgba(165,106,31,.18)}
.afc2-clause.active.sev-md::before{background:var(--med)}
.afc2-clause.active.sev-md::after{color:var(--med);opacity:.18}

.afc2-clause.active.sev-lo{background:var(--low-text-bg);box-shadow:0 1px 2px rgba(74,138,80,.05),0 12px 28px -16px rgba(74,138,80,.16)}
.afc2-clause.active.sev-lo::before{background:var(--low-text)}
.afc2-clause.active.sev-lo::after{color:var(--low-text);opacity:.16}

.afc2-clause.active.sev-esc{background:#1A1C1E;color:var(--cream)}
.afc2-clause.active.sev-esc::before{background:var(--copper-light)}
.afc2-clause.active.sev-esc p{color:rgba(244,240,232,.92)}
.afc2-clause.active.sev-esc::after{color:var(--copper-light);opacity:.22}

/* Eyebrow chip pinned top-right of active clause */
.afc2-clause-eyebrow{
  display:none;
  position:absolute;
  top:18px;right:24px;
  font-family:var(--fm);font-style:normal;
  font-size:10px;letter-spacing:1.6px;text-transform:uppercase;font-weight:600;
  padding:4px 9px;border-radius:4px;
  align-items:center;gap:6px;
}
.afc2-clause-eyebrow .dot{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.85}
.afc2-clause.active .afc2-clause-eyebrow{display:inline-flex}
.afc2-clause.active.sev-hi .afc2-clause-eyebrow{background:rgba(184,48,48,.16);color:var(--high)}
.afc2-clause.active.sev-md .afc2-clause-eyebrow{background:rgba(165,106,31,.16);color:var(--med)}
.afc2-clause.active.sev-lo .afc2-clause-eyebrow{background:rgba(74,138,80,.16);color:var(--low-text)}
.afc2-clause.active.sev-esc .afc2-clause-eyebrow{background:rgba(244,240,232,.16);color:var(--copper-light)}

/* ── Inline finding card (v2 .afc2-card) ── */
.afc2-card{
  display:none;
  margin:-2px -32px 22px;
  padding:0;
  background:var(--card);
  border:.5px solid var(--rule);
  border-top:none;
  border-radius:0 0 var(--rl) var(--rl);
  overflow:hidden;
  animation:afc2-cardIn .4s var(--ease-out);
}
@keyframes afc2-cardIn{
  from{opacity:0;transform:translateY(-6px)}
  to{opacity:1;transform:translateY(0)}
}
.afc2-clause.active + .afc2-card{display:block}
@media(max-width:760px){.afc2-card{margin:-2px -22px 18px}}

.afc2-card-tether{
  height:0;position:relative;
  margin:0 32px;
}
.afc2-card-tether::before{
  content:'';
  position:absolute;left:0;top:-1px;right:0;
  height:2px;background:var(--copper);opacity:.32;
}
.afc2-card.sev-hi .afc2-card-tether::before{background:var(--high);opacity:.32}
.afc2-card.sev-md .afc2-card-tether::before{background:var(--med);opacity:.32}
.afc2-card.sev-lo .afc2-card-tether::before{background:var(--low-text);opacity:.32}

.afc2-card-i{
  padding:24px 32px 28px;
  display:flex;flex-direction:column;gap:20px;
}
@media(max-width:760px){.afc2-card-i{padding:20px 22px 24px}}

.afc2-card-meta{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  font-family:var(--fm);font-size:11px;color:var(--t3);letter-spacing:1.4px;text-transform:uppercase;
}
.afc2-card-meta .anchor{color:var(--t2);font-weight:500}
.afc2-card-meta .sep{color:var(--rule-2)}
.afc2-card-meta .chip{
  display:inline-flex;align-items:center;gap:5px;
  padding:4px 8px;border-radius:4px;
  font-family:var(--fm);font-size:10px;font-weight:700;
  letter-spacing:1.4px;text-transform:uppercase;
}
.afc2-card-meta .chip.sev-high{background:var(--high-bg);color:var(--high)}
.afc2-card-meta .chip.sev-medium{background:var(--med-bg);color:var(--med)}
.afc2-card-meta .chip.sev-low{background:var(--low-text-bg);color:var(--low-text)}
.afc2-card-meta .chip.sev-escalate{background:#1B1D1F;color:var(--cream)}

.afc2-card h2{
  font-family:var(--fd);font-weight:800;
  font-size:24px;line-height:1.15;letter-spacing:-.025em;color:var(--t1);
  text-wrap:balance;margin:0;
}
.afc2-card h2 .ital{font-family:var(--fs);font-style:italic;font-weight:500;letter-spacing:-.01em}
.afc2-card h2 .stop{color:var(--copper)}
.afc2-card.sev-hi h2 .stop{color:var(--high)}
.afc2-card.sev-md h2 .stop{color:var(--med)}
.afc2-card.sev-esc h2 .stop{color:var(--high)}

.afc2-section{display:flex;flex-direction:column;gap:8px}
.afc2-section .lbl{
  font-family:var(--fm);font-size:10.5px;color:var(--t3);
  letter-spacing:1.6px;text-transform:uppercase;font-weight:500;
}
.afc2-section p{
  font-family:var(--f);font-size:15.5px;color:var(--t1);
  line-height:1.55;letter-spacing:-.05px;
  text-wrap:pretty;
}
.afc2-section p em{font-family:var(--fs);font-style:italic;color:var(--t1)}

.afc2-twin{
  display:grid;grid-template-columns:1fr 1fr;gap:24px;
  padding:18px 22px;
  background:var(--paper);
  border-radius:var(--r);
}
@media(max-width:760px){.afc2-twin{grid-template-columns:1fr;gap:18px;padding:18px}}
.afc2-twin .lbl{color:var(--copper-press);font-weight:600}

.afc2-expo{
  display:flex;align-items:center;gap:12px;
  padding:10px 14px;background:var(--primary-ghost);border-radius:8px;
  font-family:var(--fm);font-size:11.5px;color:var(--copper-press);
  letter-spacing:1.4px;text-transform:uppercase;font-weight:600;
}
.afc2-expo b{
  font-family:var(--fd);font-size:14px;font-weight:700;color:var(--copper-press);
  letter-spacing:-.02em;text-transform:none;
}
.afc2-expo .pip{width:8px;height:8px;border-radius:50%;background:var(--copper);opacity:.7}

.afc2-action-strip{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding:14px 18px;
  background:var(--paper-2);
  border:.5px solid var(--rule);
  border-radius:var(--r);
}
.afc2-action-strip .hint{
  font-family:var(--fm);font-size:10.5px;color:var(--t3);
  letter-spacing:1.4px;text-transform:uppercase;font-weight:500;
  flex:1;min-width:180px;
}
.afc2-action-strip .hint em{font-family:var(--fs);font-style:italic;color:var(--t1);font-weight:500;text-transform:none;letter-spacing:-.05px}

/* Add-to-draft toggle button (v2 .afc2-add) */
.afc2-add{
  display:inline-flex;align-items:center;gap:10px;
  background:transparent;color:var(--t1);
  border:1px solid var(--rule-2);
  padding:11px 18px 11px 14px;border-radius:999px;
  font-family:var(--f);font-size:14px;font-weight:500;letter-spacing:-.05px;
  min-height:44px;cursor:pointer;
  transition:background .15s,border-color .15s,color .15s,transform .15s;
}
.afc2-add:hover{background:var(--card);border-color:var(--copper);color:var(--copper-press);transform:translateY(-1px)}
.afc2-add:focus-visible{outline:2px solid var(--copper);outline-offset:2px}
.afc2-add .box{
  width:20px;height:20px;border-radius:6px;
  border:1.5px solid var(--rule-2);
  background:var(--card);
  display:inline-flex;align-items:center;justify-content:center;
  color:transparent;flex-shrink:0;
  transition:background .15s,border-color .15s,color .15s;
}
.afc2-add .box svg{width:11px;height:11px}
.afc2-add.added{
  background:var(--primary-ghost);border-color:var(--copper);color:var(--copper-press);font-weight:600;
}
.afc2-add.added .box{
  background:var(--copper);border-color:var(--copper);color:#FFFFFC;
}

/* Boundary line */
.afc2-boundary{
  display:grid;grid-template-columns:24px 1fr;gap:12px;
  padding:12px 16px;
  background:var(--paper);border:.5px solid var(--rule);border-radius:var(--r);
  align-items:center;
}
.afc2-boundary .ico{
  width:24px;height:24px;border-radius:6px;
  background:var(--card);border:.5px solid var(--rule);
  color:var(--t2);display:inline-flex;align-items:center;justify-content:center;
}
.afc2-boundary .ico svg{width:13px;height:13px}
.afc2-boundary p{font-size:12.5px;color:var(--t1);line-height:1.5;letter-spacing:-.05px}
.afc2-boundary p b{font-weight:600}
.afc2-boundary p em{font-family:var(--fs);font-style:italic;color:var(--t1);font-weight:500}

/* CLEAR-state minimal card variant (Phase 3 keeps but unused — Strategy C
   findings render as standard cards; clear-clause rows dropped per §A.1) */
.afc2-card.sev-lo .afc2-twin{background:var(--low-text-bg)}
.afc2-card.sev-lo .afc2-twin .lbl{color:var(--low-text)}

/* ── Sticky composer bridge (v2 .afc2-bottombar) ── */
.afc2-bottombar{
  position:sticky;bottom:18px;
  margin:24px 0 0;
  z-index:20;
  background:var(--obsidian);
  color:var(--cream);
  border-radius:999px;
  padding:10px 14px 10px 20px;
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  box-shadow:0 1px 3px rgba(23,25,27,.12),0 18px 40px -16px rgba(23,25,27,.32);
  transition:transform .3s var(--ease-out),opacity .25s;
}
.afc2-bottombar.empty{
  background:var(--card);color:var(--t2);
  border:.5px solid var(--rule);
  box-shadow:0 1px 2px rgba(23,25,27,.04),0 8px 20px -10px rgba(23,25,27,.12);
}
.afc2-bottombar .count{
  font-family:var(--fd);font-weight:700;
  font-size:15px;letter-spacing:-.01em;color:var(--cream);
  display:inline-flex;align-items:center;gap:8px;
}
.afc2-bottombar.empty .count{color:var(--t2);font-weight:500;font-size:14px}
.afc2-bottombar .count .num{
  font-family:var(--fm);font-size:11px;letter-spacing:1.4px;text-transform:uppercase;
  background:rgba(244,240,232,.16);color:var(--copper-light);
  padding:3px 8px;border-radius:999px;font-weight:600;
}
.afc2-bottombar.empty .count .num{background:var(--paper);color:var(--t3)}
.afc2-bottombar .items{
  flex:1;min-width:0;
  font-family:var(--fm);font-size:11px;color:rgba(244,240,232,.7);
  letter-spacing:.2px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.afc2-bottombar.empty .items{color:var(--t3);font-style:italic;font-family:var(--fs);font-size:13px;letter-spacing:-.05px}
/* CC-DASHBOARD-FINETUNE-FIX-001 item 4 — .draft-cta treatment shared by the
   bottom bar AND the rail footer (.afc2-nav-foot) so both read identically. */
.afc2-bottombar .draft-cta,
.afc2-nav-foot .draft-cta{
  display:inline-flex;align-items:center;gap:10px;
  background:linear-gradient(180deg,var(--copper) 0%,var(--copper-press) 100%);
  color:#FFFFFC;
  padding:11px 20px 11px 22px;border-radius:999px;
  font-family:var(--f);font-size:14px;font-weight:600;letter-spacing:-.05px;
  border:none;cursor:pointer;
  box-shadow:0 1px 2px rgba(139,79,42,.18),0 8px 18px -6px var(--copper-glow);
  transition:transform .15s,filter .15s;min-height:42px;
}
.afc2-bottombar .draft-cta:hover,
.afc2-nav-foot .draft-cta:hover{transform:translateY(-1px);filter:brightness(1.05)}
.afc2-bottombar .draft-cta .arrow,
.afc2-nav-foot .draft-cta .arrow{font-size:13px;font-weight:700}
.afc2-bottombar .draft-cta[aria-disabled="true"],
.afc2-nav-foot .draft-cta[aria-disabled="true"]{
  opacity:.5;cursor:not-allowed;transform:none;filter:none;
}
.afc2-bottombar .draft-cta[aria-disabled="true"]:hover,
.afc2-nav-foot .draft-cta[aria-disabled="true"]:hover{transform:none;filter:none}

/* ── ESCALATE card replaces suggested wording (v2 .afc2-esc) ── */
.afc2-esc{
  background:var(--card);
  border:.5px solid var(--rule);border-left:3px solid var(--high);
  border-radius:0 var(--r) var(--r) 0;
  padding:20px 22px;
  display:flex;flex-direction:column;gap:14px;
}
.afc2-esc .lbl{
  font-family:var(--fm);font-size:10.5px;color:var(--high);
  letter-spacing:1.6px;text-transform:uppercase;font-weight:600;
  display:inline-flex;align-items:center;gap:8px;
}
.afc2-esc .lbl .dot{width:7px;height:7px;border-radius:50%;background:var(--high);box-shadow:0 0 0 3px var(--high-bg)}
.afc2-esc p{font-size:14.5px;color:var(--t1);line-height:1.55;letter-spacing:-.05px}
.afc2-esc p em{font-family:var(--fs);font-style:italic}
.afc2-esc h3{
  font-family:var(--fd);font-weight:700;
  font-size:20px;line-height:1.18;letter-spacing:-.02em;color:var(--t1);
}
.afc2-esc h3 .ital{font-family:var(--fs);font-style:italic;font-weight:500}
.afc2-esc h3 .stop{color:var(--high)}
.afc2-esc-asks{
  background:var(--paper);border-radius:8px;padding:14px 18px;
  font-size:14px;color:var(--t1);line-height:1.55;letter-spacing:-.05px;
}
.afc2-esc-asks b{font-weight:600}
.afc2-esc-asks ul{margin-top:8px;padding-left:18px;display:flex;flex-direction:column;gap:6px}
.afc2-esc-asks ul li em{font-family:var(--fs);font-style:italic}
.afc2-esc-cta{
  display:inline-flex;align-items:center;gap:12px;
  background:var(--obsidian);color:var(--cream);
  padding:13px 20px 13px 24px;border-radius:999px;
  font-weight:600;font-size:14.5px;letter-spacing:-.05px;
  transition:transform .15s,background .15s;min-height:48px;
  text-decoration:none;
  border:none;cursor:pointer;font-family:var(--f);
}
.afc2-esc-cta:hover{background:#0B0D0F;transform:translateY(-1px);color:var(--cream)}
.afc2-esc-cta:focus-visible{outline:2px solid var(--copper);outline-offset:2px}
.afc2-esc-cta .ext{
  width:18px;height:18px;border-radius:50%;
  background:rgba(244,240,232,.16);
  display:inline-flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:600;
}
.afc2-esc-cta .ext::after{content:'\2197'}

/* Faint guide between non-active clauses */
.afc2-clause + .afc2-clause:not(.active){
  border-top:.5px solid var(--rule-2);
}
.afc2-clause.active + .afc2-clause,
.afc2-clause + .afc2-card + .afc2-clause{
  border-top:none;
}

/* ── No-text fallback (Strategy C universal — Phase 1 preserved
   functionally; restyled to live inside the v2 .afc2-doc-body) ── */
.afc2-doc-fallback{
  background:var(--paper);
  border:.5px dashed var(--rule);
  border-radius:var(--r);
  padding:24px;
  text-align:center;
}
.afc2-doc-fallback .eb{
  font-family:var(--fm);font-size:11px;color:var(--copper);
  letter-spacing:1.6px;text-transform:uppercase;margin-bottom:10px;
}
.afc2-doc-fallback p{
  font-family:var(--f);font-size:14px;color:var(--t2);line-height:1.55;letter-spacing:-.05px;
  max-width:480px;margin:0 auto 16px;text-wrap:pretty;
}
.afc2-doc-fallback a{
  font-family:var(--f);color:var(--copper);font-weight:500;
  border-bottom:1px solid var(--copper);
}

/* ══ COMPOSER: negotiation composer modal (.nc-*) ══ */
/* ─────────────────────────────────────────────────────────────────────────
   Negotiation composer modal (Phase 4 — Surface 6)
   Brief: CC-SURFACE-6-PHASE-4-2026-05-28 + DIAGNOSE allowlist (§A.6 strict).
   UPL posture: operator client-side-only UPL lock — validator is inline,
   non-blocking, per-input. No server-side validator exists or is planned.
   Body lives only in the textarea / clipboard / mailto handoff; never stored.
   ───────────────────────────────────────────────────────────────────────── */

.nc-modal{
  position:fixed;inset:0;z-index:85;
  background:rgba(17,19,21,.42);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  display:none;align-items:flex-start;justify-content:center;
  padding:32px 20px;
  overflow-y:auto;
}
.nc-modal.is-open{display:flex}
.nc-modal-card{
  background:var(--paper);border-radius:var(--rl);
  width:100%;max-width:720px;
  box-shadow:var(--shadow-modal);
  position:relative;
  display:flex;flex-direction:column;
  max-height:calc(100vh - 64px);
  overflow:hidden;
}

.nc-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  padding:24px 28px 18px;
  border-bottom:.5px solid var(--rule);
  background:var(--card);
}
.nc-head-l{display:flex;flex-direction:column;gap:6px}
.nc-eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-family:var(--fm);font-size:11px;font-weight:500;
  color:var(--t3);letter-spacing:.12em;text-transform:uppercase;
}
.nc-eyebrow .dot{
  display:inline-block;width:5px;height:5px;border-radius:50%;
  background:var(--copper);
}
.nc-head h3{
  font-family:var(--fd);font-weight:700;font-size:22px;
  letter-spacing:-.025em;color:var(--t1);line-height:1.2;
}
.nc-head h3 .ital{font-family:var(--fs);font-style:italic;font-weight:500;color:var(--t2)}
.nc-head h3 .stop{color:var(--copper)}

.nc-close-x{
  width:36px;height:36px;flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;
  border:.5px solid var(--rule-2);background:var(--card);color:var(--t2);
  cursor:pointer;transition:background .15s,color .15s,border-color .15s;
  min-width:36px;
}
.nc-close-x:hover{background:var(--paper);color:var(--t1);border-color:var(--rule)}
.nc-close-x svg{width:14px;height:14px}

.nc-body-scroll{
  overflow-y:auto;
  padding:0 28px 4px;
  display:flex;flex-direction:column;
  flex:1 1 auto;
}

.nc-upl{
  display:flex;gap:12px;align-items:flex-start;
  background:var(--primary-ghost);
  border-radius:var(--r);
  padding:14px 16px;
  margin:18px 0 6px;
  border:.5px solid var(--rule-2);
}
.nc-upl .ico{
  flex-shrink:0;width:20px;height:20px;
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--primary);margin-top:2px;
}
.nc-upl .ico svg{width:16px;height:16px}
.nc-upl .body p{
  font-size:13.5px;color:var(--t2);line-height:1.55;letter-spacing:-.05px;
}
.nc-upl .body b{color:var(--t1);font-weight:600}
.nc-upl .body em{color:var(--t2);font-style:italic}
.nc-upl.compact{padding:10px 14px;margin:10px 0 14px}
.nc-upl.compact .body p{font-size:13px;line-height:1.5}

/* PATCH-S6-LAUNCH-UAT Issue 6 — horizontal finding-selection rail above the chips.
   Uses existing platform-design tokens; no new CSS variables. */
.nc-rail-block{margin-top:18px}
.nc-rail-head{margin-bottom:8px}
/* PATCH-S6-HOTFIX-RAIL-VISIBILITY-001 — bump rail label weight + contrast so
   the "tap to add or remove" affordance reads as a distinct control above the
   selected-chips block (which uses the same lbl scale). No layout change. */
.nc-rail-head .lbl{
  font-family:var(--fm);font-size:11px;font-weight:600;
  color:var(--t2);letter-spacing:.12em;text-transform:uppercase;
}
.nc-rail{
  display:flex;flex-wrap:nowrap;gap:8px;
  overflow-x:auto;overflow-y:hidden;
  padding:4px 2px 8px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
}
.nc-rail::-webkit-scrollbar{height:6px}
.nc-rail::-webkit-scrollbar-thumb{background:var(--rule-2);border-radius:3px}
.nc-rail-item{
  display:inline-flex;align-items:center;gap:6px;flex-shrink:0;
  background:var(--card);
  border:.5px solid var(--rule-2);
  border-radius:999px;
  padding:6px 10px 6px 10px;
  font-family:var(--f);font-size:13px;color:var(--t1);
  cursor:pointer;
  transition:background .15s,border-color .15s,color .15s;
}
.nc-rail-item:hover{background:var(--paper);border-color:var(--copper)}
.nc-rail-item .sev{
  display:inline-block;width:7px;height:7px;border-radius:50%;flex-shrink:0;
}
.nc-rail-item .sev.sev-HIGH{background:var(--high)}
.nc-rail-item .sev.sev-MEDIUM{background:var(--med)}
.nc-rail-item .sev.sev-LOW{background:var(--low)}
.nc-rail-item .sev.sev-CLEAR{background:var(--clear-accent)}
.nc-rail-item .sev.sev-ESCALATE{background:var(--high)}
.nc-rail-item .title{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  max-width:160px;letter-spacing:-.02px;
}
.nc-rail-item .mark{
  display:inline-flex;align-items:center;justify-content:center;
  width:16px;height:16px;border-radius:50%;flex-shrink:0;
  color:var(--t4);font-size:12px;line-height:1;
}
.nc-rail-item.is-selected{
  background:var(--primary-surface);
  border-color:var(--copper);color:var(--copper-press);
}
.nc-rail-item.is-selected .mark{color:var(--copper);font-weight:700}
.nc-rail-item.is-clear{color:var(--t3)}
.nc-rail-item.is-clear .title{font-style:italic}
.nc-rail-item.is-escalate{
  background:var(--high-bg);border-color:var(--high);color:var(--high);
}
.nc-rail-item.is-escalate .mark{color:var(--high);font-weight:700}
.nc-rail-esc-note{
  display:none;
  font-size:12px;color:var(--high);font-style:italic;
  margin:6px 0 0;line-height:1.45;
}
.nc-rail-esc-note.show{display:block}

.nc-chips-block{margin-top:18px}
.nc-chips-head{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  margin-bottom:10px;
}
.nc-chips-head .lbl{
  font-family:var(--fm);font-size:11px;font-weight:500;
  color:var(--t3);letter-spacing:.12em;text-transform:uppercase;
}
.nc-chips-head .lbl b{font-weight:700;color:var(--t1)}
.nc-chips-head .hint{font-size:12.5px;color:var(--t4);font-style:italic}
.nc-chips-list{display:flex;flex-wrap:wrap;gap:6px}
.nc-chip{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--card);
  border:.5px solid var(--rule-2);
  border-radius:999px;
  padding:6px 6px 6px 12px;
  font-family:var(--f);font-size:13px;color:var(--t1);
  max-width:100%;
}
.nc-chip .title{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  max-width:220px;
}
.nc-chip .sev{
  display:inline-block;width:7px;height:7px;border-radius:50%;
  flex-shrink:0;
}
.nc-chip .sev.sev-HIGH{background:var(--high)}
.nc-chip .sev.sev-MEDIUM{background:var(--med)}
.nc-chip .sev.sev-LOW{background:var(--low)}
.nc-chip .x{
  width:24px;height:24px;min-width:24px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;background:transparent;color:var(--t3);
  border:none;cursor:pointer;transition:background .15s,color .15s;
  flex-shrink:0;
}
.nc-chip .x:hover{background:var(--paper);color:var(--t1)}
.nc-chip .x svg{width:10px;height:10px}

.nc-chips-empty{
  background:var(--card);
  border:.5px dashed var(--rule);
  border-radius:var(--r);
  padding:14px 16px;
  margin-top:8px;
}
.nc-chips-empty p{
  font-size:13px;color:var(--t3);line-height:1.5;letter-spacing:-.05px;
}

.nc-subject-row{
  margin-top:18px;padding:14px 16px;
  background:var(--card);
  border:.5px solid var(--rule-2);
  border-radius:var(--r);
}
.nc-subject-row .nc-lbl{
  display:block;
  font-family:var(--fm);font-size:11px;font-weight:500;
  color:var(--t3);letter-spacing:.12em;text-transform:uppercase;
  margin-bottom:6px;
}
.nc-subject-val{
  font-family:var(--fd);font-size:16px;font-weight:600;color:var(--t1);
  letter-spacing:-.025em;line-height:1.4;
  display:block;
}
.nc-subject-val.empty{
  font-family:var(--f);font-style:italic;font-weight:500;color:var(--t4);
}

.nc-body-block{margin-top:18px}
.nc-body-head{margin-bottom:8px}
.nc-body-head .nc-lbl{
  font-family:var(--fm);font-size:11px;font-weight:500;
  color:var(--t3);letter-spacing:.12em;text-transform:uppercase;
}
.nc-body-head .nc-lbl em{
  font-family:var(--f);font-size:11px;font-style:italic;
  font-weight:500;color:var(--t4);letter-spacing:.05em;text-transform:none;
}
.nc-textarea{
  width:100%;
  min-height:280px;max-height:54vh;
  resize:vertical;
  background:var(--card);
  border:.5px solid var(--rule-2);
  border-radius:var(--r);
  padding:16px 18px;
  font-family:var(--f);font-size:14.5px;color:var(--t1);
  line-height:1.65;letter-spacing:-.05px;
  outline:none;
  transition:border-color .15s,box-shadow .15s;
}
.nc-textarea:focus{
  border-color:var(--copper);
  box-shadow:0 0 0 3px var(--copper-glow);
}

.nc-counter{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  margin-top:8px;
  font-family:var(--fm);font-size:11px;color:var(--t4);
  letter-spacing:.04em;
}
.nc-counter .pip{
  display:inline-block;width:6px;height:6px;border-radius:50%;
  background:var(--clear-accent);margin-right:6px;vertical-align:middle;
}
.nc-counter b{color:var(--t2);font-weight:600}
.nc-counter.long .pip{background:var(--med)}

.nc-warn{
  display:none;
  gap:10px;align-items:flex-start;
  margin-top:10px;
  padding:12px 14px;
  background:var(--med-bg);
  border:.5px solid var(--med);
  border-radius:var(--r);
}
.nc-warn.show{display:flex}
.nc-warn .ico{
  flex-shrink:0;color:var(--med);
  display:inline-flex;align-items:center;justify-content:center;
  width:18px;height:18px;margin-top:2px;
}
.nc-warn .ico svg{width:14px;height:14px}
.nc-warn p{
  font-size:13px;color:var(--t1);line-height:1.5;letter-spacing:-.05px;
}
.nc-warn p b{color:var(--med);font-weight:600}
.nc-warn p em{color:var(--t2);font-style:italic}

.nc-mail-helper{
  display:none;
  margin-top:10px;
  padding:10px 14px;
  background:var(--paper);
  border-radius:var(--r);
  border:.5px solid var(--rule-2);
}
.nc-mail-helper.show{display:block}
.nc-mail-helper p{
  font-size:12.5px;color:var(--t3);line-height:1.5;letter-spacing:-.05px;
}

.nc-actions{
  display:flex;align-items:center;justify-content:flex-end;gap:10px;
  padding:18px 28px 22px;
  background:var(--card);
  border-top:.5px solid var(--rule);
  flex-wrap:wrap;
}
.nc-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:var(--f);font-size:14px;font-weight:500;letter-spacing:-.05px;
  padding:12px 22px;border-radius:999px;
  min-height:44px;cursor:pointer;border:.5px solid transparent;
  transition:background .15s,color .15s,border-color .15s,filter .15s,transform .15s;
}
.nc-btn-close{
  background:var(--card);color:var(--t2);border-color:var(--rule-2);
}
.nc-btn-close:hover{background:var(--paper);color:var(--t1)}
.nc-btn-mail{
  background:var(--card);color:var(--t1);border-color:var(--rule-2);
  min-height:48px;
}
.nc-btn-mail:hover{background:var(--paper);border-color:var(--rule)}
.nc-btn-mail[aria-disabled="true"]{
  background:var(--paper);color:var(--t4);border-color:var(--rule);
  cursor:not-allowed;
}
.nc-btn-mail[aria-disabled="true"]:hover{
  background:var(--paper);color:var(--t4);
  transform:none;filter:none;
}
.nc-btn-copy{
  background:linear-gradient(180deg,var(--copper) 0%,var(--copper-press) 100%);
  color:#FFFFFC;border-color:transparent;
  min-height:48px;font-weight:600;
  box-shadow:0 1px 2px rgba(139,79,42,.18),0 12px 28px -8px var(--copper-glow);
}
.nc-btn-copy:hover{transform:translateY(-1px);filter:brightness(1.05)}
.nc-btn-copy[aria-disabled="true"]{
  background:linear-gradient(180deg,var(--disabled) 0%,var(--rule-2) 100%);
  box-shadow:none;cursor:not-allowed;color:var(--t3);
}
.nc-btn-copy[aria-disabled="true"]:hover{transform:none;filter:none}
.nc-btn-copy.copied{
  background:linear-gradient(180deg,var(--clear-accent) 0%,var(--clear) 100%);
}
.nc-btn-copy svg{width:14px;height:14px}

@media (max-width:640px){
  .nc-modal{padding:0;align-items:stretch}
  .nc-modal-card{max-width:100%;border-radius:0;max-height:100vh}
  .nc-head{padding:18px 18px 14px}
  .nc-body-scroll{padding:0 18px 4px}
  .nc-actions{padding:14px 18px 18px;justify-content:stretch}
  .nc-actions .nc-btn{flex:1 1 auto}
  .nc-chip .title{max-width:140px}
  .nc-textarea{min-height:240px}
}

/* ════════════════════════════════════════════════════════════════════════
   CC-SURFACE6-MOBILE-COMPOSER-FORK-001 — phone (≤760px) composer fork.
   The on-document route renders as a full-screen single-column draft-email
   composer (reusing #ncModal + the nc* generator). The document workspace is
   suppressed. Tablet (761–980) + desktop (≥981) are UNCHANGED — all rules below
   are inside @media(max-width:760px) except the default-hidden mobile chrome. */
.nc-mnav{display:none}
.nc-mhead{display:none}
.nc-empty-mobile{display:none}
@media (max-width:760px){

  /* Suppress the entire document workspace — the composer is the surface.
     (Prevents any doc-wall / overflow behind the full-screen composer.) */
  #s6vOnDocument .s6v-context,
  #s6vOnDocument .afc2-work{display:none}

  /* #ncModal → full-screen single column. */
  .nc-modal{padding:0;align-items:stretch}
  .nc-modal-card{
    max-width:100%;width:100%;height:100vh;height:100dvh;
    max-height:none;border-radius:0;
  }
  .nc-body-scroll{overflow-x:hidden}

  /* Desktop chrome off, mobile chrome on. */
  .nc-head{display:none}
  .nc-close-x{display:none}
  /* CC-SURFACE6-COMPOSER-UX-FIXES-001 Fix 1 — the all-findings rail is now SHOWN on
     mobile. The prior Decision-1 rule hid it (.nc-rail-block{display:none}), leaving
     mobile with seed-on-empty + chip-remove only — which dead-ended re-adding a
     mis-removed finding. The rail reuses the shared desktop renderer verbatim
     (ncRenderRail/ncHandleRailToggle); ESCALATE still routes to the attorney modal and
     never joins the selection, and the composer never opens when an ESCALATE finding is
     present. No mobile-specific rail styling: it falls back to the .nc-rail-block base
     (margin-top:18px) + the horizontal-scroll .nc-rail base (overflow-x:auto, no wrap),
     contained by .nc-body-scroll{overflow-x:hidden}. */
  .nc-btn-close{display:none}       /* mobile uses .nc-mback to navigate */
  .nc-mnav{display:flex;align-items:center;justify-content:space-between;
    padding:6px 10px;flex-shrink:0;border-bottom:.5px solid var(--rule);background:var(--card)}
  .nc-mback{background:none;border:none;cursor:pointer;min-height:44px;
    display:inline-flex;align-items:center;gap:2px;padding:0 8px;
    font:inherit;font-size:15px;font-weight:500;color:var(--copper)}
  .nc-mback .chev{font-size:21px;line-height:1}
  .nc-mclear{background:none;border:none;cursor:pointer;padding:8px;
    font:inherit;font-size:14px;font-weight:500;color:var(--t3)}
  .nc-mhead{display:block;margin:8px 0 2px}
  .nc-mhead-eyebrow{display:inline-flex;align-items:center;gap:8px;
    font-family:var(--fm);font-size:10.5px;font-weight:600;letter-spacing:.16em;
    text-transform:uppercase;color:var(--copper)}
  .nc-mhead-eyebrow .pip{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.6}
  .nc-mhead-title{font-family:var(--fd);font-weight:700;font-size:30px;
    letter-spacing:-.6px;line-height:1.07;color:var(--t1);margin:12px 0 0}
  .nc-mhead-title .stop{color:var(--copper)}
  .nc-mhead-lede{font-size:14px;line-height:1.5;color:var(--t2);margin:10px 0 0}
  .nc-empty-desktop{display:none}
  .nc-empty-mobile{display:block}

  /* Action bar: Draft email primary (copper), Copy secondary. */
  .nc-actions{padding:12px 16px 18px;justify-content:stretch;gap:10px}
  .nc-actions .nc-btn{flex:1 1 auto}
  .nc-btn-mail{
    background:linear-gradient(180deg,var(--copper) 0%,var(--copper-press) 100%);
    color:#FFFFFC;border-color:transparent;font-weight:600;flex:2 1 0;
  }
  .nc-btn-mail:hover{filter:brightness(1.04)}
  .nc-btn-mail[aria-disabled="true"]{
    background:linear-gradient(180deg,var(--disabled) 0%,var(--rule-2) 100%);
    color:var(--t3);border-color:transparent;
  }
  .nc-btn-copy{
    background:var(--card);color:var(--t1);border-color:var(--rule-2);
    box-shadow:none;font-weight:500;flex:1 1 0;
  }
  .nc-btn-copy:hover{transform:none;filter:none;background:var(--paper)}

  /* Overflow guards — nothing wider than the viewport (verify 10b). */
  .nc-modal-card,.nc-body-scroll,.nc-chips-list,.nc-textarea{max-width:100%}
  .nc-textarea{box-sizing:border-box}
  .nc-chip{max-width:100%}
  .nc-chip .title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:62vw}
}
