/* ============================================================
   Focor · The Thinking Room — prototype styles
   Built on the thinking-room-v3.html token + class foundation.
   Two visual phases: context orbit  ->  reasoning workspace.
   ============================================================ */

:root{
  /* Surfaces & ink (from master-prompt visual tokens) */
  --room-ground:#ece8e0; --raised:#faf8f6; --recessed:#f1ece4; --lifted:#ffffff;
  --ink:#2b2722; --muted:#655e55; --faint:#756d62;
  --teal:#276f66; --teal-hi:#2f8275; --teal-soft:#dfece8; --on-teal:#faf8f6;
  --bronze:#865b33; --bronze-soft:#f1e5d7; --warning:#a94f31;
  --ok:#5e8a6b;
  --hairline:rgba(71,62,52,.16); --hair-2:rgba(43,39,34,.15);
  --connection:rgba(92,112,105,.22); --teal-line:rgba(43,122,111,.32); --teal-glow:rgba(43,122,111,.14); --teal-tint:rgba(43,122,111,.10);
  --hi:rgba(255,255,255,.7);
  --shadow:0 14px 36px rgba(71,62,52,.09);
  --sh:rgba(43,39,34,.16); --sh-strong:rgba(43,39,34,.22);
  --room-glow:rgba(255,250,240,.85);
  --l-red:#ec6a5e; --l-yellow:#f4bf4f; --l-green:#61c554; --l-inset:rgba(43,39,34,.12);

  --font-display:Georgia,'Iowan Old Style',Palatino,'Times New Roman',serif;
  --font-sans:-apple-system,BlinkMacSystemFont,'Segoe UI','Helvetica Neue',Helvetica,Arial,system-ui,sans-serif;
  --font-mono:'SF Mono','JetBrains Mono',ui-monospace,'Menlo','Consolas',monospace;

  --t-fast:120ms; --t-ctrl:160ms; --t-lens:210ms; --t-node:360ms; --t-morph:620ms; --t-focus:320ms;
  --ease:cubic-bezier(.16,.84,.34,1);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0; font-family:var(--font-sans); color:var(--ink);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  background:radial-gradient(52% 60% at 80% 14%, var(--room-glow) 0%, transparent 58%), var(--room-ground);
  min-height:100dvh; display:grid; place-items:center; padding:20px 24px;
}
button{ font-family:inherit; }
.sr-only{ position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

.aperture{ position:fixed; inset:0; pointer-events:none; z-index:0;
  background:radial-gradient(34% 42% at 81% 12%, var(--room-glow) 0%, transparent 60%); animation:breathe 15s ease-in-out infinite; }
@keyframes breathe{ 0%,100%{ opacity:.6 } 50%{ opacity:1 } }

/* ---------- Window frame ---------- */
.window{ position:relative; z-index:1; width:min(1400px,100%); height:min(900px,calc(100dvh - 40px));
  background:var(--raised); border:1px solid var(--hair-2); border-radius:12px;
  box-shadow:0 40px 90px -34px var(--sh-strong), 0 12px 30px -18px var(--sh);
  overflow:hidden; display:flex; flex-direction:column; animation:rise .9s var(--ease) both; }
@keyframes rise{ from{ opacity:0; transform:translateY(14px) scale(.994) } to{ opacity:1; transform:none } }

.titlebar{ position:relative; height:46px; flex:0 0 46px; display:flex; align-items:center; gap:8px;
  padding:0 18px; border-bottom:1px solid var(--hairline); background:var(--raised); z-index:5; }
.lights{ display:flex; gap:8px; }
.light{ width:12px; height:12px; border-radius:50%; box-shadow:0 0 0 .5px var(--l-inset) inset; }
.light.red{ background:var(--l-red); } .light.yellow{ background:var(--l-yellow); } .light.green{ background:var(--l-green); }
.doc{ position:absolute; left:50%; transform:translateX(-50%); display:inline-flex; align-items:center; gap:9px; }
.doc-mark{ width:14px; height:14px; color:var(--ink); opacity:.9; }
.doc .word{ font-family:var(--font-mono); font-size:11px; letter-spacing:.42em; text-transform:uppercase; color:var(--ink); font-weight:600; padding-left:.1em; }
.status-r{ margin-left:auto; display:inline-flex; align-items:center; gap:7px; font-family:var(--font-mono); font-size:9.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); font-weight:500; }
.status-r .rdot{ width:6px; height:6px; border-radius:50%; background:var(--teal); box-shadow:0 0 8px var(--teal-glow); }
.status-r.attn .rdot{ background:var(--bronze); }

.lower{ flex:1; display:flex; min-height:0; }

/* ---------- Icon rail ---------- */
.rail{ flex:0 0 64px; border-right:1px solid var(--hairline); padding:18px 11px; display:flex; flex-direction:column; align-items:stretch; gap:2px; background:var(--raised); transition:flex-basis var(--t-morph) var(--ease); z-index:4; }
.rail .brand{ display:flex; justify-content:center; padding:4px 0 14px; }
.rail-aperture{ width:34px; height:34px; border-radius:10px; border:0; background:transparent; color:var(--ink); display:grid; place-items:center; cursor:pointer; transition:background var(--t-ctrl); }
.rail-aperture svg, .rail-aperture img{ width:20px; height:20px; opacity:.92; }
.rail-aperture:hover{ background:var(--teal-tint); }
.rail-items{ display:flex; flex-direction:column; gap:2px; overflow:hidden; transition:opacity var(--t-focus), max-height var(--t-morph); }
.rail-div{ height:1px; background:var(--hairline); border:0; margin:12px 8px; }
.rail-item{ display:flex; align-items:center; justify-content:center; padding:10px 0; border-radius:12px; color:var(--muted); background:transparent; border:1px solid transparent; cursor:pointer; width:100%; transition:background var(--t-ctrl), color var(--t-ctrl); }
.rail-item svg{ width:18px; height:18px; opacity:.82; }
.rail-item:hover{ background:var(--teal-tint); color:var(--ink); }
.rail-exit{ display:none; margin:6px 4px 0; padding:10px 0; border-radius:12px; border:1px solid var(--hairline); background:var(--recessed); color:var(--muted); cursor:pointer; transition:color var(--t-ctrl), border-color var(--t-ctrl); }
.rail-exit svg{ width:18px; height:18px; }
.rail-exit:hover{ color:var(--ink); border-color:var(--teal-line); }
.rail .foot{ margin-top:auto; padding-top:12px; border-top:1px solid var(--hairline); display:flex; justify-content:center; }
.avatar{ width:34px; height:34px; padding:0; overflow:hidden; border-radius:50%; border:1px solid var(--hair-2); background:var(--recessed); cursor:pointer; display:grid; place-items:center; }
.avatar img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Collapsed rail during active thinking */
.phase-thinking .rail, .phase-resume .rail{ flex-basis:52px; }
.phase-thinking .rail-items, .phase-resume .rail-items{ opacity:0; max-height:0; pointer-events:none; }
.phase-thinking .rail-exit, .phase-resume .rail-exit{ display:block; }
.phase-thinking .navmode:not(:nth-child(2)), .phase-resume .navmode:not(:nth-child(2)){ display:none; }

/* ---------- Workspace + footer ---------- */
.workspace{ flex:1; min-width:0; display:flex; flex-direction:column; min-height:0; }
.stage{ position:relative; flex:1; min-height:0; display:flex; flex-direction:column; }

.footer{ flex:0 0 auto; display:flex; align-items:center; gap:16px; padding:8px 22px 15px 26px; }
.cmd-field{ flex:1; display:flex; align-items:center; gap:12px; padding:9px 9px 9px 16px; border:1px solid var(--hair-2); border-radius:999px; background:var(--recessed); box-shadow:inset 0 1px 0 var(--hi); transition:border-color var(--t-ctrl), box-shadow var(--t-ctrl); }
.cmd-field:focus-within{ border-color:var(--teal-line); box-shadow:inset 0 1px 0 var(--hi), 0 0 0 3px var(--teal-tint); }
.cmd-field .kbd{ font-family:var(--font-mono); font-size:11px; color:var(--muted); border:1px solid var(--hair-2); border-radius:6px; padding:2px 6px; }
.cmd-field input{ flex:1; background:transparent; border:0; outline:none; color:var(--ink); font-family:var(--font-sans); font-size:14px; min-width:0; }
.cmd-field input::placeholder{ color:var(--muted); }
.send{ width:38px; height:38px; flex:0 0 38px; border-radius:999px; border:0; background:var(--teal); color:var(--on-teal); display:grid; place-items:center; cursor:pointer; transition:background var(--t-ctrl); }
.send:hover{ background:var(--teal-hi); } .send svg{ width:17px; height:17px; }

.navmodes{ display:flex; align-items:center; gap:12px; }
.navmode{ position:relative; display:inline-flex; }
.navbtn{ width:44px; height:44px; border-radius:12px; border:1px solid var(--hair-2); background:var(--recessed); color:var(--muted); display:grid; place-items:center; cursor:pointer; box-shadow:0 8px 18px -12px var(--sh-strong), inset 0 1px 0 var(--hi); transition:transform var(--t-ctrl) var(--ease), border-color var(--t-ctrl), color var(--t-ctrl); }
.navbtn:hover{ transform:scale(1.03); border-color:var(--teal-line); color:var(--ink); }
.navbtn svg, .navbtn .mode-mark{ width:19px; height:19px; }
.navbtn.active{ color:var(--ink); background:var(--teal-tint); border-color:var(--teal-line); box-shadow:inset 0 1px 0 var(--hi), 0 0 24px -6px var(--teal-glow), 0 0 0 1px var(--teal-line); }
.tip{ position:absolute; bottom:calc(100% + 14px); right:0; width:248px; padding:14px 16px 15px; border-radius:16px; background:var(--raised); color:var(--ink); border:1px solid rgba(43,39,34,.08); text-align:left; z-index:30; box-shadow:0 22px 48px -18px rgba(43,39,34,.30), 0 8px 18px -12px rgba(43,39,34,.18); opacity:0; transform:translateY(8px); pointer-events:none; transition:opacity 0s, transform 0s; }
.tip::after{ content:""; position:absolute; top:100%; right:22px; width:12px; height:12px; background:var(--raised); border-right:1px solid rgba(43,39,34,.08); border-bottom:1px solid rgba(43,39,34,.08); transform:translateY(-6px) rotate(45deg); }
.tip .tl{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--bronze); font-weight:600; }
.tip h4{ font-family:var(--font-display); font-weight:400; font-size:19px; margin:7px 0 0; }
.tip p{ margin:7px 0 0; font-size:12.5px; line-height:1.5; color:var(--muted); }
.navmode:hover .tip, .navmode:focus-within .tip{ opacity:1; transform:translateY(0); transition:opacity var(--t-lens) ease .12s, transform var(--t-lens) ease .12s; }

/* Focus visibility (accessibility) */
:focus-visible{ outline:none; box-shadow:0 0 0 2px var(--raised), 0 0 0 4px var(--teal-line); border-radius:8px; }
.node:focus-visible, .cmd-field:focus-within{ box-shadow:0 0 0 3px var(--teal-tint); }

/* ============================================================
   STAGE REGIONS
   ============================================================ */
.region{ position:absolute; inset:0; }
.region[hidden]{ display:none; }

/* ---------- Room region (orbit + reasoning), persistent ---------- */
.room{ position:relative; height:100%; }
.orbit-wrap{ position:absolute; left:0; right:0; top:0; height:100%; overflow:hidden;
  transition:height var(--t-morph) var(--ease); padding:24px 40px 6px; }
.reasoning-region{ position:absolute; top:16px; right:16px; bottom:16px; width:min(470px,calc(100% - 32px)); height:auto; opacity:0; pointer-events:none; z-index:12;
  display:flex; flex-direction:column; min-height:0; overflow:hidden; border:1px solid var(--hair-2); border-radius:20px;
  background:rgba(250,248,246,.96); box-shadow:0 34px 80px -34px var(--sh-strong),0 12px 34px -22px var(--sh); backdrop-filter:blur(14px);
  transform:translateX(calc(100% + 32px)); transition:transform var(--t-morph) var(--ease),opacity var(--t-focus) ease; }
.reasoning-region.open{ opacity:1; pointer-events:auto; transform:none; }

.phase-thinking .orbit-wrap, .phase-resume .orbit-wrap{ height:100%; padding:24px 40px 6px; overflow:hidden; background:transparent; }
.phase-outcome .orbit-wrap{ height:100%; background:radial-gradient(circle at 50% 47%,rgba(223,236,232,.75),rgba(250,248,246,.92) 38%,var(--raised) 72%); }

/* Room head */
.room-head{ position:relative; z-index:4; pointer-events:none; }
.room-head > *{ pointer-events:auto; }
.phase-thinking .room-head, .phase-resume .room-head{ opacity:1; pointer-events:none; height:auto; overflow:visible; }
.h1{ font-family:var(--font-display); font-weight:400; font-size:clamp(28px,2.6vw,40px); letter-spacing:-.015em; line-height:1.04; margin:0; }
.sub{ margin:9px 0 0; color:var(--muted); font-size:15px; font-weight:300; line-height:1.5; max-width:420px; }
.phase-thinking .h1, .phase-resume .h1{ font-size:clamp(28px,2.6vw,40px); }
.phase-thinking .sub, .phase-resume .sub{ display:block; }

.ctx-status{ position:absolute; top:2px; right:0; text-align:right; z-index:4; }
.ctx-status .cs-line{ display:inline-flex; align-items:center; gap:8px; font-family:var(--font-mono); font-size:10px; letter-spacing:.15em; text-transform:uppercase; color:var(--muted); background:none; border:0; cursor:pointer; padding:0; }
.ctx-status .cs-line:hover{ color:var(--ink); }
.ctx-status .cdot{ width:6px; height:6px; border-radius:50%; background:var(--teal); box-shadow:0 0 8px var(--teal-glow); }
.ctx-status.attn .cdot{ background:var(--bronze); }
.ctx-copy{ display:inline-flex; align-items:center; gap:6px; margin-top:9px; background:none; border:0; padding:0; cursor:pointer; font-family:var(--font-mono); font-size:9px; letter-spacing:.16em; text-transform:uppercase; color:var(--teal); transition:color var(--t-ctrl); }
.ctx-copy:hover{ color:var(--teal-hi); } .ctx-copy svg{ width:11px; height:11px; }
.phase-thinking .ctx-status, .phase-resume .ctx-status{ display:block; }

/* ---------- Orbit visuals ---------- */
.orbit{ position:absolute; inset:0; }
.glow{ position:absolute; left:50%; top:54%; width:min(52%,500px); aspect-ratio:1; transform:translate(-50%,-50%); background:radial-gradient(circle, var(--teal-glow) 0%, rgba(255,250,240,.5) 34%, transparent 64%); pointer-events:none; z-index:0; transition:opacity var(--t-morph); }
.ring{ position:absolute; left:50%; top:54%; transform:translate(-50%,-50%); border-radius:50%; pointer-events:none; z-index:1; transition:opacity var(--t-morph); }
.ring.r1{ width:290px; height:290px; border:1px solid var(--teal-line); opacity:.6; }
.ring.r2{ width:452px; height:452px; border:1px solid var(--hair-2); opacity:.45; }
.ring.r3{ width:610px; height:610px; border:1px solid var(--hair-2); opacity:.2; }
.links{ position:absolute; inset:0; z-index:1; overflow:visible; pointer-events:none; transition:opacity var(--t-focus); }
.links line{ stroke:var(--connection); stroke-width:1; }
.links line.lit{ stroke:var(--teal); stroke-width:1.4; }
.links line.risk{ stroke:var(--bronze); opacity:.5; }
.links circle{ fill:var(--teal); opacity:.55; }
.links circle.risk{ fill:var(--bronze); opacity:.7; }
.phase-thinking .glow, .phase-resume .glow{ opacity:.8; }
.phase-thinking .ring.r1, .phase-resume .ring.r1{ opacity:.6; }
.phase-thinking .ring.r2, .phase-resume .ring.r2{ opacity:.36; }
.phase-thinking .ring.r3, .phase-resume .ring.r3{ opacity:.16; }
.phase-thinking .links, .phase-resume .links{ opacity:.62; }

/* Central question core */
.core{ position:absolute; width:300px; z-index:3; text-align:center;
  transition:left var(--t-morph) var(--ease), top var(--t-morph) var(--ease), width var(--t-morph) var(--ease), transform var(--t-morph) var(--ease), text-align var(--t-morph); }
.core .k{ font-family:var(--font-mono); font-size:10px; letter-spacing:.24em; text-transform:uppercase; color:var(--teal); font-weight:600; }
.core .k.attn{ color:var(--bronze); }
.core h2{ font-family:var(--font-display); font-weight:400; font-size:27px; letter-spacing:-.01em; line-height:1.18; margin:9px 0 0; }
.core .ctx{ margin-top:9px; font-size:12.5px; font-weight:300; color:var(--muted); }
.core .meta{ margin-top:6px; font-family:var(--font-mono); font-size:11px; letter-spacing:.04em; color:var(--faint); }
.core .tension{ margin:16px auto 0; max-width:300px; padding:12px 15px; border-radius:12px; background:var(--teal-soft); border:1px solid var(--teal-line); font-size:13px; line-height:1.45; color:#274b45; text-align:center; }
.core .tension.attn{ background:var(--bronze-soft); border-color:rgba(154,111,69,.4); color:#5c4326; }
.core .core-actions{ display:flex; gap:10px; justify-content:center; margin-top:16px; flex-wrap:wrap; }
.core .rationale{ margin:12px auto 0; max-width:300px; font-size:13px; line-height:1.5; color:var(--muted); }
.core .decided-tag{ margin-top:8px; font-size:12.5px; color:var(--muted); }
/* Thinking phase: the question remains the room's centre. */
.phase-thinking .core, .phase-resume .core{ width:min(410px,36%); text-align:center; padding:20px 22px 18px; border-radius:24px; background:rgba(250,248,246,.86); border:1px solid rgba(43,122,111,.18); box-shadow:0 26px 64px -46px var(--sh-strong); backdrop-filter:blur(10px); }
.phase-thinking .core h2, .phase-resume .core h2{ font-size:24px; margin-top:7px; }
.phase-thinking .core .ctx, .phase-resume .core .ctx{ display:block; margin-top:7px; }
.phase-thinking .core .meta, .phase-resume .core .meta{ display:none; }
.phase-outcome .core{ width:min(520px,calc(100% - 80px)); padding:28px 34px 30px; border-radius:24px; background:rgba(255,255,255,.92); border:1px solid var(--teal-line); box-shadow:0 30px 70px -42px var(--sh-strong),0 10px 28px -24px var(--sh); }
.phase-outcome .core h2{ font-size:32px; line-height:1.12; }
.phase-outcome .core .rationale{ max-width:420px; font-size:14px; }
.outcome-author{ margin:14px auto 0; display:inline-flex; align-items:center; gap:7px; padding:6px 10px; border-radius:999px; color:var(--teal); background:var(--teal-tint); font-family:var(--font-mono); font-size:10px; letter-spacing:.06em; text-transform:uppercase; }
.outcome-author svg{ width:13px; height:13px; }
.phase-outcome .links{ opacity:0!important; }
.phase-outcome .ring{ opacity:.14; }
.phase-outcome .node{ opacity:.24; filter:saturate(.65); pointer-events:none; transition:opacity var(--t-fast), transform var(--t-node) var(--ease); }
.phase-outcome .node[data-node="decision"]{ opacity:0; }

/* ---------- Context nodes ---------- */
.node{ position:absolute; width:198px; z-index:2; padding:14px 15px; border-radius:13px; text-align:left;
  background:linear-gradient(158deg, var(--lifted), var(--raised)); border:1px solid var(--hair-2); cursor:pointer;
  box-shadow:0 20px 44px -26px var(--sh-strong), 0 2px 8px -4px var(--sh), inset 0 1px 0 var(--hi);
  transition:left var(--t-morph) var(--ease), top var(--t-morph) var(--ease), width var(--t-morph) var(--ease),
    transform var(--t-node) var(--ease), border-color var(--t-ctrl), opacity var(--t-focus), box-shadow var(--t-ctrl);
  animation:remember .6s var(--ease) backwards; display:block; }
@keyframes remember{ from{ opacity:0; transform:translateY(12px) scale(.96); } }
.node:hover{ transform:translateY(-3px); border-color:var(--teal-line); }
.node.selected{ border-color:var(--teal-line); box-shadow:0 0 0 2px var(--teal-line), 0 20px 44px -26px var(--sh-strong); }
.node.lit{ border-color:var(--teal); box-shadow:0 0 0 2px var(--teal), 0 0 30px -6px var(--teal-glow); }
.node.muted{ opacity:.34; filter:saturate(.6); }
.node.dimmed{ opacity:.5; }
.node.added{ border-color:rgba(43,122,111,.28); }
.node.removing{ opacity:0; transform:scale(.9); pointer-events:none; }
.node .nh{ display:flex; align-items:center; gap:7px; font-family:var(--font-mono); font-size:9.5px; letter-spacing:.18em; text-transform:uppercase; color:var(--faint); font-weight:600; margin-bottom:9px; }
.node .nh svg{ width:13px; height:13px; opacity:.9; color:var(--teal); }
.node.risk .nh svg{ color:var(--bronze); }
.node .nt{ font-family:var(--font-display); font-size:16.5px; line-height:1.2; color:var(--ink); }
.node .ns{ margin-top:5px; font-size:12px; line-height:1.45; color:var(--muted); font-weight:300; }
.node .badge{ display:inline-block; margin-top:9px; font-size:10px; letter-spacing:.05em; font-weight:500; padding:3px 10px; border-radius:999px; }
.node .badge.risk{ color:var(--on-teal); background:var(--bronze); }
.node .badge.added{ color:var(--teal); background:var(--teal-tint); border:1px solid var(--teal-line); }
.node .badge.new{ color:var(--on-teal); background:var(--teal); }
.node .person-row{ display:flex; align-items:center; gap:11px; }
.node .person-av{ width:34px; height:34px; border-radius:50%; flex:0 0 34px; display:grid; place-items:center; color:#fff; font-family:var(--font-mono); font-size:12px; font-weight:600; }
.node .spark{ margin-top:10px; width:100%; height:26px; display:block; }
.node .spark polyline{ fill:none; stroke:var(--teal); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; opacity:.85; }
.node .spark polygon{ fill:var(--teal-tint); }
.node.evidence.down .spark polyline{ stroke:var(--bronze); }
.node.evidence.down .spark polygon{ fill:var(--bronze-soft); }
.node .ncheck{ position:absolute; top:-9px; right:-9px; width:22px; height:22px; border-radius:50%; background:var(--teal); color:#fff; display:none; place-items:center; box-shadow:0 4px 10px -3px var(--sh-strong); }
.node .ncheck svg{ width:13px; height:13px; }
.phase-outcome .node .ncheck{ display:grid; }
.node.unavailable{ opacity:.6; border-style:dashed; cursor:default; }
.node.unavailable .nt{ color:var(--muted); }

/* Context remains spatial and inspectable while thinking. */
.phase-thinking .node, .phase-resume .node{ width:190px; padding:13px 14px; }
.phase-thinking .node .nt, .phase-resume .node .nt{ font-size:16px; }

/* Cluster node (large context) */
.node.cluster .nt{ font-size:15px; }
.node.cluster .cluster-meta{ margin-top:8px; display:flex; align-items:center; justify-content:space-between; font-family:var(--font-mono); font-size:10px; letter-spacing:.04em; color:var(--faint); }
.node.cluster .cluster-exp{ width:24px; height:24px; border-radius:50%; border:1px solid var(--hair-2); background:var(--raised); color:var(--muted); display:grid; place-items:center; }
.node.cluster .cluster-exp svg{ width:14px; height:14px; }
.cluster-list{ margin-top:10px; padding-top:10px; border-top:1px solid var(--hairline); display:flex; flex-direction:column; gap:7px; }
.cluster-list.hidden{ display:none; }
.cluster-list .cl-item{ font-size:11.5px; color:var(--muted); display:flex; align-items:center; gap:7px; }
.cluster-list .cl-item svg{ width:12px; height:12px; color:var(--teal); flex:0 0 12px; }

/* Suggestion pill / floating actions inside room */
.room-actions{ position:absolute; right:40px; bottom:12px; z-index:5; display:flex; gap:10px; }
.pill{ display:inline-flex; align-items:center; gap:9px; padding:9px 17px; border-radius:999px; border:1px solid var(--hair-2); background:var(--raised); color:var(--muted); font-size:12.5px; cursor:pointer; box-shadow:0 12px 26px -16px var(--sh-strong), inset 0 1px 0 var(--hi); transition:transform var(--t-ctrl) var(--ease), border-color var(--t-ctrl), color var(--t-ctrl); }
.pill:hover{ transform:translateY(-2px); border-color:var(--teal-line); color:var(--ink); }
.pill .arr{ color:var(--teal); }
.pill svg{ width:14px; height:14px; }

/* Large-context actions form a quiet utility horizon above the map. */
.scale-tools{ position:absolute; top:72px; right:40px; z-index:5; display:flex; flex-direction:row; gap:8px; align-items:center; justify-content:flex-end; }
.scale-tools .st-btn{ display:inline-flex; align-items:center; gap:9px; padding:9px 14px; border-radius:10px; border:1px solid var(--hair-2); background:var(--raised); color:var(--muted); font-size:12.5px; cursor:pointer; box-shadow:var(--shadow); transition:border-color var(--t-ctrl), color var(--t-ctrl); }
.scale-tools .st-btn:hover{ border-color:var(--teal-line); color:var(--ink); }
.scale-tools .st-btn svg{ width:15px; height:15px; }
.scale-tools .st-btn.primary{ background:var(--teal); color:var(--on-teal); border-color:var(--teal); }
.scale-tools .st-btn.primary:hover{ background:var(--teal-hi); color:var(--on-teal); }

/* Persistent-room controls: useful, quiet, and always subordinate to the map. */
.session-dock{ position:absolute; top:72px; right:40px; z-index:7; display:flex; align-items:center; justify-content:flex-end; gap:6px; max-width:calc(100% - 80px); }
.dock-state{ display:inline-flex; align-items:center; gap:7px; margin-right:4px; font-family:var(--font-mono); font-size:9.5px; letter-spacing:.13em; text-transform:uppercase; color:var(--muted); white-space:nowrap; }
.dock-dot{ width:6px; height:6px; border-radius:50%; background:var(--teal); box-shadow:0 0 10px var(--teal-glow); }
.dock-btn{ min-height:34px; display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:7px 11px; border-radius:10px; border:1px solid var(--hair-2); background:rgba(250,248,246,.9); color:var(--muted); font-size:11.5px; white-space:nowrap; cursor:pointer; box-shadow:0 10px 24px -18px var(--sh-strong); transition:background var(--t-ctrl),border-color var(--t-ctrl),color var(--t-ctrl),transform var(--t-ctrl); }
.dock-btn:hover,.dock-btn.active{ background:var(--teal-tint); border-color:var(--teal-line); color:var(--ink); transform:translateY(-1px); }
.dock-btn.primary{ color:var(--teal); border-color:var(--teal-line); }
.dock-btn.end{ color:var(--bronze); }
.dock-btn.icon-only{ width:34px; padding:0; }
.dock-btn svg{ width:14px; height:14px; }

.ambient-thought{ margin:15px auto 0; padding:13px 14px 12px; border-radius:14px; border:1px solid var(--teal-line); background:rgba(223,236,232,.56); text-align:left; animation:thoughtArrive var(--t-focus) var(--ease) both; }
@keyframes thoughtArrive{ from{ opacity:0; transform:translateY(5px); } }
.ambient-thought.human{ background:rgba(241,236,228,.78); border-color:var(--hair-2); }
.ambient-thought.system{ border-style:dashed; }
.ambient-thought.assumption,.ambient-thought.conflict-thought{ background:rgba(241,229,215,.7); border-color:rgba(134,91,51,.3); }
.ambient-thought.waiting{ opacity:.76; }
.ambient-thought .at-k{ display:flex; align-items:center; gap:7px; font-family:var(--font-mono); font-size:9px; letter-spacing:.14em; text-transform:uppercase; color:var(--teal); font-weight:600; }
.ambient-thought.assumption .at-k,.ambient-thought.conflict-thought .at-k{ color:var(--bronze); }
.ambient-thought .at-k img{ width:18px; height:18px; border-radius:50%; object-fit:cover; }
.ambient-thought p{ margin:8px 0 0; font-family:var(--font-display); font-size:15.5px; line-height:1.42; color:var(--ink); }
.ambient-thought.human p{ font-family:var(--font-sans); font-size:13.5px; }
.at-cites,.at-actions{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-top:10px; }
.ambient-cite{ display:inline-flex; align-items:center; gap:5px; max-width:150px; padding:5px 8px; border-radius:8px; border:1px solid var(--hair-2); background:rgba(255,255,255,.52); color:var(--muted); font-size:10.5px; cursor:pointer; }
.ambient-cite span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ambient-cite svg{ width:11px; height:11px; color:var(--teal); }
.quiet-trail-link{ display:inline-flex; align-items:center; gap:6px; margin-top:9px; padding:4px 5px; border:0; background:transparent; color:var(--muted); font-size:10.5px; cursor:pointer; }
.quiet-trail-link:hover{ color:var(--teal); }
.quiet-trail-link svg{ width:12px; height:12px; }

.drop-cue{ position:absolute; inset:86px 28px 20px; z-index:20; display:flex; align-items:center; justify-content:center; gap:10px; border:1px dashed var(--teal); border-radius:24px; background:rgba(223,236,232,.82); color:var(--teal); font-family:var(--font-mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase; opacity:0; pointer-events:none; transform:scale(.985); transition:opacity var(--t-fast),transform var(--t-fast); }
.drop-cue svg{ width:18px; height:18px; }
.orbit-wrap.file-over .drop-cue{ opacity:1; transform:none; }

.node{ cursor:grab; user-select:none; }
.node.dragging{ cursor:grabbing; z-index:9; border-color:var(--teal); box-shadow:0 0 0 3px var(--teal-tint),0 26px 58px -24px var(--sh-strong); transition:border-color var(--t-ctrl),box-shadow var(--t-ctrl); }
.node-source-mark{ margin-left:auto; display:inline-grid; place-items:center; width:18px; height:18px; border-radius:5px; background:var(--raised); border:1px solid var(--hairline); }
.node-source-mark svg{ width:12px!important; height:12px!important; opacity:1!important; }
.person-av.photo{ object-fit:cover; display:block; border:1px solid var(--hair-2); }
.source-app-icon{ width:28px; height:28px; flex:0 0 28px; display:grid; place-items:center; border-radius:8px; background:var(--raised); border:1px solid var(--hairline); }
.source-app-icon svg{ width:17px; height:17px; }

.trail-heading{ min-width:0; }
.trail-k{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--teal); font-weight:600; }
.trail-title{ margin-top:3px; font-family:var(--font-display); font-size:16px; }

/* ============================================================
   REASONING WORKSPACE
   ============================================================ */
.rz-toolbar{ flex:0 0 auto; display:flex; align-items:center; gap:5px; min-height:52px; padding:8px 34px; overflow-x:auto; scrollbar-width:none; border-bottom:1px solid rgba(71,62,52,.08); }
.rz-toolbar::-webkit-scrollbar{ display:none; }
.rz-focus-banner{ display:none; align-items:center; gap:10px; flex:1 0 auto; min-width:0; white-space:nowrap; }
.rz-focus-banner.on{ display:flex; }
.rz-focus-banner .fb-k{ font-family:var(--font-mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--teal); }
.rz-focus-banner .fb-title{ font-family:var(--font-display); font-size:16px; }
.rz-focus-banner .fb-chips{ display:none; }
.rz-focus-banner .fb-note{ display:none; }
.rz-spacer{ flex:1; }
.rz-tool{ display:inline-flex; align-items:center; gap:7px; padding:8px 10px; border-radius:9px; border:1px solid transparent; background:transparent; color:var(--muted); font-size:12px; cursor:pointer; white-space:nowrap; flex:0 0 auto; transition:background var(--t-ctrl), color var(--t-ctrl), border-color var(--t-ctrl); }
.rz-tool:hover{ background:var(--teal-tint); color:var(--ink); }
.rz-tool svg{ width:15px; height:15px; }
.rz-tool.warn:hover{ color:var(--bronze); background:var(--bronze-soft); }

.rz-scroll{ flex:1; min-height:0; overflow-y:auto; padding:6px 34px 20px; scroll-behavior:smooth; }
.rz-scroll::-webkit-scrollbar{ width:9px; } .rz-scroll::-webkit-scrollbar-thumb{ background:var(--hair-2); border-radius:9px; border:2px solid var(--raised); }

.turn{ display:grid; grid-template-columns:76px 1fr; gap:6px 14px; padding:16px 0; border-bottom:1px solid var(--hairline); animation:turnIn var(--t-focus) var(--ease) backwards; }
@keyframes turnIn{ from{ opacity:0; transform:translateY(6px); } }
.turn:last-child{ border-bottom:0; }
.turn .who{ display:flex; align-items:center; gap:8px; font-family:var(--font-mono); font-size:10px; letter-spacing:.16em; text-transform:uppercase; color:var(--faint); font-weight:600; padding-top:2px; }
.turn .who .who-mark{ width:22px; height:22px; border-radius:50%; display:grid; place-items:center; flex:0 0 22px; }
.turn.focor .who .who-mark{ border:1px solid var(--teal-line); color:var(--teal); }
.turn.focor .who .who-mark svg{ width:14px; height:14px; }
.turn .who .who-mark img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }
.turn.you .who .who-mark{ background:linear-gradient(150deg,#c9bda9,#a99a83); color:#fff; font-size:10px; }
.turn .body{ min-width:0; }
.turn .body p{ margin:0; font-size:15.5px; line-height:1.62; color:var(--ink); }
.turn.focor .body p{ font-family:var(--font-display); font-size:16.5px; line-height:1.6; }
.turn .cites{ display:flex; flex-wrap:wrap; gap:8px; margin-top:11px; }
.cite{ display:inline-flex; align-items:center; gap:8px; padding:6px 11px; border-radius:8px; border:1px solid var(--hair-2); background:var(--raised); font-family:var(--font-mono); font-size:10.5px; letter-spacing:.04em; color:var(--muted); cursor:pointer; transition:border-color var(--t-ctrl), color var(--t-ctrl), background var(--t-ctrl); }
.cite:hover, .cite.active{ border-color:var(--teal-line); color:var(--ink); background:var(--teal-tint); }
.cite .ct{ text-transform:uppercase; letter-spacing:.14em; color:var(--teal); font-weight:600; }
.cite.risk .ct{ color:var(--bronze); }
.cite svg{ width:12px; height:12px; }

/* System note turn (factual, quiet) */
.turn.system{ grid-template-columns:1fr; }
.sysnote{ display:flex; align-items:center; gap:10px; padding:9px 14px; border-radius:10px; background:var(--recessed); border:1px dashed var(--hair-2); font-size:12.5px; color:var(--muted); }
.sysnote svg{ width:14px; height:14px; color:var(--teal); flex:0 0 14px; }
.sysnote.bronze svg{ color:var(--bronze); }

/* Conflict card inside a turn */
.conflict{ margin-top:12px; border:1px solid var(--hair-2); border-radius:14px; overflow:hidden; background:var(--raised); }
.conflict .cf-head{ padding:12px 16px; border-bottom:1px solid var(--hairline); font-size:13.5px; color:var(--ink); }
.conflict .cf-grid{ display:grid; grid-template-columns:1fr 1fr; }
.conflict .cf-side{ padding:14px 16px; }
.conflict .cf-side:first-child{ border-right:1px solid var(--hairline); }
.conflict .cf-side .cf-k{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:.16em; text-transform:uppercase; font-weight:600; }
.conflict .cf-side.teal .cf-k{ color:var(--teal); } .conflict .cf-side.bronze .cf-k{ color:var(--bronze); }
.conflict .cf-side .cf-t{ font-family:var(--font-display); font-size:16px; margin-top:7px; }
.conflict .cf-side .cf-s{ font-size:12.5px; color:var(--muted); margin-top:5px; line-height:1.45; }
.conflict .cf-side .cf-supports{ margin-top:10px; font-family:var(--font-mono); font-size:10px; letter-spacing:.06em; }
.conflict .cf-side.teal .cf-supports{ color:var(--teal); } .conflict .cf-side.bronze .cf-supports{ color:var(--bronze); }
.conflict .cf-side .link{ margin-top:10px; }
.conflict .cf-foot{ padding:12px 16px; border-top:1px solid var(--hairline); display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.conflict .cf-q{ font-family:var(--font-display); font-size:15px; flex:1; min-width:180px; }

/* Assumption challenge card */
.assump{ margin-top:12px; border:1px solid rgba(154,111,69,.32); border-radius:14px; background:var(--bronze-soft); padding:16px 18px; }
.assump .as-k{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--bronze); font-weight:600; }
.assump .as-t{ font-family:var(--font-display); font-size:18px; margin-top:8px; line-height:1.3; }
.assump .as-row{ margin-top:11px; font-size:13px; color:#5c4326; line-height:1.5; }
.assump .as-row b{ color:var(--bronze); font-weight:600; }
.assump .as-conf{ margin-top:10px; font-family:var(--font-mono); font-size:10.5px; letter-spacing:.05em; color:var(--bronze); }
.assump .as-q{ font-family:var(--font-display); font-size:16px; margin-top:12px; }
.assump .as-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:13px; }

/* Comparison insight (inserted from compare workspace) */
.cmp-insight{ margin-top:12px; border:1px solid var(--hair-2); border-radius:14px; background:var(--raised); padding:14px 16px; }
.cmp-insight .ci-k{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--teal); font-weight:600; }
.cmp-insight .ci-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:10px; }
.cmp-insight .ci-col h5{ font-family:var(--font-display); font-size:15px; margin:0 0 6px; }
.cmp-insight .ci-col p{ font-size:12.5px; color:var(--muted); line-height:1.45; margin:0; }

/* Suggested replies */
.suggested{ display:flex; flex-wrap:wrap; gap:8px; padding:2px 34px 14px; }
.suggested .sg-label{ width:100%; font-family:var(--font-mono); font-size:9.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin-bottom:2px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{ display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border-radius:999px; border:1px solid var(--hair-2); background:var(--raised); color:var(--ink); font-size:13px; font-weight:500; cursor:pointer; transition:transform var(--t-ctrl) var(--ease), border-color var(--t-ctrl), background var(--t-ctrl), color var(--t-ctrl); }
.btn:hover{ border-color:var(--teal-line); transform:translateY(-1px); }
.btn svg{ width:15px; height:15px; }
.btn.primary{ background:var(--teal); border-color:var(--teal); color:var(--on-teal); }
.btn.primary:hover{ background:var(--teal-hi); }
.btn.primary svg{ color:var(--on-teal); }
.btn.bronze{ background:var(--bronze); border-color:var(--bronze); color:var(--on-teal); }
.btn.bronze:hover{ background:#875f3a; }
.btn.ghost{ background:transparent; }
.btn.sm{ padding:6px 12px; font-size:12px; }
.btn:disabled{ opacity:.45; cursor:not-allowed; transform:none; }
.btn[aria-disabled="true"]{ opacity:.45; cursor:not-allowed; }
.link{ display:inline-flex; align-items:center; gap:6px; background:none; border:0; padding:0; color:var(--teal); font-size:12.5px; cursor:pointer; }
.link:hover{ color:var(--teal-hi); text-decoration:underline; }
.link svg{ width:13px; height:13px; }
.link.back{ color:var(--muted); } .link.back:hover{ color:var(--ink); }

/* ============================================================
   ANCHORED LENSES (node / source)
   ============================================================ */
.lens-layer{ position:fixed; inset:0; z-index:60; pointer-events:none; }
.lens-layer.on{ pointer-events:auto; }
.lens-backdrop{ position:absolute; inset:0; background:rgba(43,39,34,.04); opacity:0; transition:opacity var(--t-lens); }
.lens-layer.on .lens-backdrop{ opacity:1; }
.lens{ position:absolute; width:320px; max-width:calc(100vw - 32px); background:var(--raised); border:1px solid rgba(43,39,34,.09); border-radius:16px; box-shadow:0 30px 60px -22px rgba(43,39,34,.34), 0 10px 22px -14px rgba(43,39,34,.2); padding:16px 18px 18px; opacity:0; transform:scale(.94); transform-origin:var(--lens-origin,center); transition:opacity var(--t-lens) var(--ease), transform var(--t-lens) var(--ease); }
.lens.show{ opacity:1; transform:scale(1); }
.lens .lens-close{ position:absolute; top:10px; right:10px; width:36px; height:36px; border-radius:10px; border:0; background:transparent; color:var(--faint); cursor:pointer; display:grid; place-items:center; }
.lens .lens-close:hover{ color:var(--ink); background:var(--recessed); }
.lens .lens-close svg{ width:15px; height:15px; }
.lens .lz-k{ display:inline-flex; align-items:center; gap:7px; font-family:var(--font-mono); font-size:9.5px; letter-spacing:.18em; text-transform:uppercase; color:var(--teal); font-weight:600; }
.lens .lz-k.bronze{ color:var(--bronze); }
.lens .lz-k svg{ width:13px; height:13px; }
.lens h3{ font-family:var(--font-display); font-weight:400; font-size:20px; margin:9px 0 0; line-height:1.2; }
.lens .lz-why{ margin:9px 0 0; font-size:13px; line-height:1.55; color:var(--muted); }
.lens .lz-rows{ margin:13px 0 0; display:flex; flex-direction:column; gap:0; border-top:1px solid var(--hairline); }
.lz-row{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid var(--hairline); }
.lz-row .lr-k{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--faint); }
.lz-row .lr-v{ font-size:13px; color:var(--ink); text-align:right; }
.lz-row .lr-v.added{ color:var(--teal); }
.lens .lz-actions{ margin-top:14px; display:flex; gap:8px; flex-wrap:wrap; }
.lens .lz-excerpt{ margin-top:12px; padding:12px 14px; border-radius:11px; background:var(--recessed); border-left:2px solid var(--teal); font-family:var(--font-display); font-size:14px; line-height:1.5; color:var(--ink); }
.lens .lz-excerpt.bronze{ border-left-color:var(--bronze); }
.lens textarea, .lens input[type=text]{ width:100%; margin-top:10px; border:1px solid var(--hair-2); border-radius:10px; background:var(--lifted); padding:10px 12px; font-family:var(--font-sans); font-size:13.5px; color:var(--ink); resize:vertical; }
.lens textarea:focus, .lens input:focus{ outline:none; border-color:var(--teal-line); box-shadow:0 0 0 3px var(--teal-tint); }
.lens .lz-scope{ margin-top:8px; font-size:11.5px; color:var(--faint); display:flex; align-items:center; gap:6px; }
.lens .lz-scope svg{ width:12px; height:12px; }

/* ============================================================
   DIALOGS (modal)
   ============================================================ */
.dialog-layer{ position:fixed; inset:0; z-index:70; display:grid; place-items:center; padding:24px; pointer-events:none; }
.dialog-layer.on{ pointer-events:auto; }
.dlg-backdrop{ position:absolute; inset:0; background:rgba(43,39,34,.28); backdrop-filter:blur(2px); opacity:0; transition:opacity var(--t-lens); }
.dialog-layer.on .dlg-backdrop{ opacity:1; }
.dialog{ position:relative; width:min(720px,100%); max-height:calc(100dvh - 60px); overflow:auto; background:var(--raised); border:1px solid rgba(43,39,34,.08); border-radius:20px; box-shadow:0 40px 90px -30px rgba(43,39,34,.4); padding:26px 30px 28px; opacity:0; transform:translateY(14px) scale(.98); transition:opacity var(--t-lens) var(--ease), transform var(--t-lens) var(--ease); }
.dialog.wide{ width:min(880px,100%); }
.dialog-layer.on .dialog{ opacity:1; transform:none; }
.dlg-close{ position:absolute; top:12px; right:12px; width:38px; height:38px; border-radius:10px; border:0; background:transparent; color:var(--faint); cursor:pointer; display:grid; place-items:center; }
.dlg-close:hover{ color:var(--ink); background:var(--recessed); }
.dlg-close svg{ width:16px; height:16px; }
.dlg-k{ font-family:var(--font-mono); font-size:10px; letter-spacing:.18em; text-transform:uppercase; color:var(--teal); font-weight:600; }
.dlg-title{ font-family:var(--font-display); font-weight:400; font-size:26px; margin:8px 0 0; letter-spacing:-.01em; }
.dlg-lead{ margin:9px 0 0; font-size:14px; color:var(--muted); line-height:1.55; max-width:60ch; }
.dlg-actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:22px; flex-wrap:wrap; }
.dlg-actions.spread{ justify-content:space-between; align-items:center; }

/* Outcome chooser */
.chooser{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:20px; }
.choice{ text-align:left; padding:16px 18px; border-radius:14px; border:1px solid var(--hair-2); background:var(--lifted); cursor:pointer; transition:border-color var(--t-ctrl), transform var(--t-ctrl); }
.choice:hover{ border-color:var(--teal-line); transform:translateY(-2px); }
.choice .ch-ic{ width:32px; height:32px; border-radius:9px; background:var(--teal-tint); color:var(--teal); display:grid; place-items:center; margin-bottom:10px; }
.choice .ch-ic svg{ width:17px; height:17px; }
.choice h4{ font-family:var(--font-display); font-weight:400; font-size:18px; margin:0; }
.choice p{ margin:5px 0 0; font-size:12.5px; color:var(--muted); line-height:1.45; }

/* Form fields */
.field{ margin-top:16px; }
.field > label{ display:block; font-family:var(--font-mono); font-size:9.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--faint); margin-bottom:7px; }
.field input[type=text], .field input[type=date], .field input[type=time], .field textarea, .field select{ width:100%; border:1px solid var(--hair-2); border-radius:11px; background:var(--lifted); padding:11px 13px; font-family:var(--font-sans); font-size:14px; color:var(--ink); }
.field textarea{ resize:vertical; min-height:64px; line-height:1.5; }
.field textarea.serif{ font-family:var(--font-display); font-size:16px; }
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-color:var(--teal-line); box-shadow:0 0 0 3px var(--teal-tint); }
.field-row{ display:flex; gap:12px; } .field-row .field{ flex:1; }
.hint{ margin-top:7px; font-size:12px; color:var(--muted); }
.hint.warn{ color:var(--bronze); }

/* Choice lists (radios / checks) */
.optlist{ display:flex; flex-direction:column; gap:2px; }
.opt{ display:flex; align-items:flex-start; gap:11px; padding:11px 12px; border-radius:11px; border:1px solid transparent; cursor:pointer; transition:background var(--t-ctrl), border-color var(--t-ctrl); }
.opt:hover{ background:var(--recessed); }
.opt.sel{ border-color:var(--teal-line); background:var(--teal-tint); }
.opt .opt-mark{ width:20px; height:20px; border-radius:50%; border:1.5px solid var(--hair-2); flex:0 0 20px; margin-top:1px; display:grid; place-items:center; color:transparent; }
.opt.sel .opt-mark{ border-color:var(--teal); background:var(--teal); color:#fff; }
.opt .opt-mark svg{ width:12px; height:12px; }
.opt.check .opt-mark{ border-radius:6px; }
.opt .opt-b{ min-width:0; }
.opt .opt-t{ font-size:14px; color:var(--ink); font-weight:500; }
.opt .opt-s{ font-size:12px; color:var(--muted); margin-top:3px; line-height:1.4; }
.opt.person-opt .opt-b{ display:flex; align-items:center; gap:10px; }
.opt .opt-av{ width:32px; height:32px; border-radius:50%; display:grid; place-items:center; color:#fff; font-family:var(--font-mono); font-size:11px; font-weight:600; flex:0 0 32px; }

/* Source picker: search, relevance, and recency are visible before selection */
.picker-search{ margin-top:16px; display:flex; align-items:center; gap:10px; padding:10px 13px; border:1px solid var(--hair-2); border-radius:12px; background:var(--lifted); }
.picker-search:focus-within{ border-color:var(--teal-line); box-shadow:0 0 0 3px var(--teal-tint); }
.picker-search svg{ width:16px; height:16px; color:var(--teal); flex:0 0 16px; }
.picker-search input{ width:100%; border:0; outline:0; background:transparent; color:var(--ink); font:14px var(--font-sans); }
.picker-filters{ display:flex; gap:7px; margin-top:10px; overflow-x:auto; padding-bottom:2px; }
.picker-filter{ flex:0 0 auto; min-height:34px; padding:7px 12px; border-radius:999px; border:1px solid var(--hair-2); background:var(--raised); color:var(--muted); cursor:pointer; }
.picker-filter.active{ border-color:var(--teal-line); background:var(--teal-tint); color:var(--teal); }
.source-results{ max-height:330px; overflow:auto; padding-right:3px; }
.source-option-head{ display:flex; align-items:center; gap:12px; justify-content:space-between; }
.source-option .opt-b{ flex:1; }
.source-option .relevance{ flex:0 0 auto; font-family:var(--font-mono); font-size:9px; letter-spacing:.08em; text-transform:uppercase; color:var(--teal); }
.source-why{ margin-top:6px; font-size:12px; line-height:1.4; color:var(--muted); }
.picker-empty{ padding:24px; text-align:center; color:var(--muted); border:1px dashed var(--hair-2); border-radius:12px; }

/* Disclosure */
.disclosure > summary{ list-style:none; cursor:pointer; display:inline-flex; align-items:center; gap:7px; font-size:13px; color:var(--teal); margin-top:16px; }
.disclosure > summary::-webkit-details-marker{ display:none; }
.disclosure > summary svg{ width:14px; height:14px; transition:transform var(--t-ctrl); }
.disclosure[open] > summary svg{ transform:rotate(180deg); }
.disclosure .disc-body{ margin-top:14px; padding-top:16px; border-top:1px solid var(--hairline); }

/* Handoff preview */
.handoff-grid{ display:grid; grid-template-columns:1.15fr 1fr; gap:26px; margin-top:18px; }
.handoff-preview{ border:1px solid var(--hair-2); border-radius:14px; overflow:hidden; }
.handoff-preview .hp-row{ display:grid; grid-template-columns:120px 1fr; gap:14px; padding:12px 16px; border-bottom:1px solid var(--hairline); }
.handoff-preview .hp-row:last-child{ border-bottom:0; }
.handoff-preview .hp-k{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--teal); padding-top:2px; }
.handoff-preview .hp-v{ font-size:13.5px; line-height:1.5; color:var(--ink); }
.privacy{ display:flex; gap:9px; align-items:flex-start; margin-top:16px; padding:12px 14px; border-radius:11px; background:var(--recessed); font-size:12.5px; color:var(--muted); line-height:1.45; }
.privacy svg{ width:15px; height:15px; color:var(--teal); flex:0 0 15px; margin-top:1px; }

/* Comparison workspace */
.cmp-cols{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:18px; }
.cmp-col{ border:1px solid var(--hair-2); border-radius:16px; overflow:hidden; }
.cmp-col .cc-head{ padding:14px 18px; border-bottom:1px solid var(--hairline); background:var(--recessed); }
.cmp-col .cc-head h4{ font-family:var(--font-display); font-weight:400; font-size:22px; margin:0; }
.cmp-col .cc-head p{ margin:4px 0 0; font-size:12px; color:var(--muted); }
.cmp-row{ padding:12px 18px; border-bottom:1px solid var(--hairline); }
.cmp-row:last-child{ border-bottom:0; }
.cmp-row .cr-k{ font-family:var(--font-mono); font-size:9px; letter-spacing:.12em; text-transform:uppercase; color:var(--faint); }
.cmp-row .cr-v{ font-size:13.5px; color:var(--ink); margin-top:4px; line-height:1.45; }
.cmp-note{ margin-top:14px; font-size:13px; color:var(--muted); display:flex; align-items:center; gap:9px; }
.cmp-note svg{ width:16px; height:16px; color:var(--teal); }

/* Source index */
.src-list{ margin-top:16px; display:flex; flex-direction:column; }
.src-item{ display:grid; grid-template-columns:20px 1fr auto; gap:12px; align-items:center; padding:12px 4px; border-bottom:1px solid var(--hairline); }
.src-item .si-dot{ width:8px; height:8px; border-radius:50%; background:var(--teal); }
.src-item.unused .si-dot{ background:var(--faint); }
.src-item.blocked .si-dot{ background:var(--bronze); }
.src-item .si-name{ font-size:14px; color:var(--ink); }
.src-item .si-meta{ font-size:11.5px; color:var(--muted); margin-top:2px; }
.src-item .si-supports{ font-family:var(--font-mono); font-size:10px; letter-spacing:.04em; color:var(--faint); text-align:right; }
.src-item .si-state{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:.1em; text-transform:uppercase; }
.src-item .si-state.used{ color:var(--teal); } .src-item .si-state.unused{ color:var(--faint); } .src-item .si-state.blocked{ color:var(--bronze); }

/* Since-you-paused banner (resume) */
.paused-banner{ flex:0 0 auto; display:flex; align-items:center; gap:22px; margin:0 34px; padding:14px 18px; border-radius:14px; border:1px solid rgba(43,122,111,.28); background:linear-gradient(120deg, var(--teal-soft), var(--raised)); }
.paused-banner .pb-lead{ }
.paused-banner .pb-k{ font-family:var(--font-mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--teal); }
.paused-banner .pb-t{ font-family:var(--font-display); font-size:18px; margin-top:3px; }
.paused-banner .pb-changes{ display:flex; gap:20px; flex:1; }
.paused-banner .pb-change{ display:flex; align-items:center; gap:9px; font-size:12.5px; color:var(--muted); }
.paused-banner .pb-change svg{ width:16px; height:16px; color:var(--teal); flex:0 0 16px; }
.paused-banner .pb-actions{ display:flex; gap:8px; align-items:center; }

/* Bottom receipt bar (decision/pause/action recorded) */
.receipt{ position:absolute; left:34px; right:34px; bottom:12px; z-index:6; display:flex; align-items:center; gap:14px; padding:14px 18px; border-radius:14px; background:var(--raised); border:1px solid var(--hair-2); box-shadow:0 18px 40px -22px var(--sh-strong); }
.receipt .rc-check{ width:24px; height:24px; border-radius:50%; background:var(--ok); color:#fff; display:grid; place-items:center; flex:0 0 24px; }
.receipt .rc-check svg{ width:14px; height:14px; }
.receipt .rc-text{ font-size:13.5px; color:var(--ink); }
.receipt .rc-actions{ margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }

/* Entry (Today crossing / blank) */
.entry{ display:flex; height:100%; }
.entry-today{ flex:1.35; min-width:0; padding:30px 40px; overflow:auto; border-right:1px solid var(--hairline); }
.entry-eyebrow{ font-family:var(--font-mono); font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--muted); }
.entry-today h1{ font-family:var(--font-display); font-weight:400; font-size:clamp(30px,3.2vw,46px); line-height:1.05; letter-spacing:-.02em; margin:14px 0 0; }
.entry-today h1 em{ font-style:italic; }
.entry-today .et-sub{ margin:10px 0 0; color:var(--muted); font-size:15px; }
.obs-list{ margin-top:24px; display:flex; flex-direction:column; gap:12px; }
.obs{ display:grid; grid-template-columns:1.3fr 1fr; gap:20px; padding:18px 20px; border-radius:16px; border:1px solid var(--hair-2); background:var(--lifted); transition:border-color var(--t-ctrl); }
.obs.active{ border-color:var(--bronze); box-shadow:0 0 0 1px rgba(154,111,69,.3); }
.obs .obs-k{ font-family:var(--font-mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--bronze); }
.obs .obs-t{ font-family:var(--font-display); font-size:20px; line-height:1.25; margin-top:9px; }
.obs .obs-s{ font-size:13px; color:var(--muted); margin-top:8px; line-height:1.5; }
.obs .obs-next .on-k{ font-family:var(--font-mono); font-size:10px; letter-spacing:.12em; text-transform:uppercase; color:var(--faint); }
.obs .obs-next .on-v{ font-size:13.5px; color:var(--ink); margin-top:8px; line-height:1.4; }
.obs .obs-cta{ margin-top:12px; }

.entry-cross{ flex:1; min-width:300px; padding:30px 34px; background:linear-gradient(180deg, var(--raised), var(--recessed)); display:flex; flex-direction:column; }
.cross-k{ font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--teal); }
.cross-title{ font-family:var(--font-display); font-weight:400; font-size:30px; line-height:1.12; margin:12px 0 0; }
.cross-sub{ color:var(--muted); font-size:14px; margin:8px 0 0; }
.cross-sec{ margin-top:22px; }
.cross-sec .cs-lab{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--faint); margin-bottom:10px; }
.cross-taking{ border:1px solid var(--hair-2); border-radius:14px; background:var(--lifted); padding:6px 14px; }
.cross-taking .ct-row{ display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--hairline); font-size:13.5px; color:var(--ink); }
.cross-taking .ct-row:last-child{ border-bottom:0; }
.cross-taking .ct-row svg{ width:16px; height:16px; color:var(--muted); flex:0 0 16px; }
.cross-taking .ct-row .ct-inspect{ margin-left:auto; }
.cross-steps{ margin-top:6px; display:flex; flex-direction:column; gap:2px; }
.cross-step{ display:flex; align-items:center; gap:11px; padding:8px 0; font-size:13.5px; color:var(--muted); }
.cross-step .cx-dot{ width:20px; height:20px; border-radius:50%; border:1.5px solid var(--hair-2); flex:0 0 20px; display:grid; place-items:center; color:transparent; }
.cross-step.done{ color:var(--ink); } .cross-step.done .cx-dot{ background:var(--teal); border-color:var(--teal); color:#fff; }
.cross-step.doing .cx-dot{ border-color:var(--teal); } .cross-step.doing .cx-dot::after{ content:""; width:7px; height:7px; border-radius:50%; background:var(--teal); }
.cross-step .cx-dot svg{ width:12px; height:12px; }
.cross-foot{ margin-top:auto; padding-top:20px; display:flex; gap:10px; align-items:center; }

/* Blank entry */
.blank{ padding:34px 44px; height:100%; overflow:auto; }
.blank h1{ font-family:var(--font-display); font-weight:400; font-size:clamp(26px,2.6vw,36px); margin:0; letter-spacing:-.01em; }
.blank .bl-sub{ color:var(--muted); font-size:15px; margin:10px 0 0; max-width:52ch; line-height:1.55; }
.blank-frame{ margin-top:22px; display:flex; gap:10px; max-width:640px; }
.blank-frame input{ flex:1; border:1px solid var(--hair-2); border-radius:999px; padding:13px 20px; font-size:15px; font-family:var(--font-display); background:var(--lifted); color:var(--ink); }
.blank-frame input:focus{ outline:none; border-color:var(--teal-line); box-shadow:0 0 0 3px var(--teal-tint); }
.blank-cols{ margin-top:30px; display:grid; grid-template-columns:1fr 1fr; gap:30px; max-width:900px; }
.blank-col h3{ font-family:var(--font-mono); font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--faint); margin:0 0 12px; }
.blank-recent{ display:flex; flex-direction:column; gap:2px; }
.recent-q{ text-align:left; padding:12px 14px; border-radius:11px; border:1px solid transparent; background:transparent; cursor:pointer; transition:background var(--t-ctrl), border-color var(--t-ctrl); }
.recent-q:hover{ background:var(--recessed); border-color:var(--hair-2); }
.recent-q .rq-t{ font-family:var(--font-display); font-size:15px; color:var(--ink); }
.recent-q .rq-m{ font-family:var(--font-mono); font-size:10.5px; color:var(--faint); margin-top:4px; letter-spacing:.02em; }
.recent-q .rq-m.paused{ color:var(--bronze); }
.blank-seeds{ display:flex; flex-direction:column; gap:8px; }
.seed-btn{ display:flex; align-items:center; gap:11px; text-align:left; padding:12px 14px; border-radius:11px; border:1px solid var(--hair-2); background:var(--lifted); cursor:pointer; transition:border-color var(--t-ctrl); }
.seed-btn:hover{ border-color:var(--teal-line); }
.seed-btn svg{ width:16px; height:16px; color:var(--teal); flex:0 0 16px; }
.seed-btn .sd-t{ font-size:13.5px; color:var(--ink); }

/* Gathering placeholders (state 01) */
.node.loading{ cursor:default; }
.node.loading .nt{ color:var(--muted); }
.ph-shimmer{ height:11px; border-radius:6px; background:linear-gradient(90deg, var(--recessed) 25%, rgba(205,196,182,.5) 50%, var(--recessed) 75%); background-size:200% 100%; animation:shimmer 1.4s linear infinite; margin-top:8px; }
@keyframes shimmer{ from{ background-position:200% 0 } to{ background-position:-200% 0 } }
.node.loading .ldg-k{ display:inline-flex; align-items:center; gap:7px; font-family:var(--font-mono); font-size:9.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--teal); }
.node.loading .ldg-spin{ width:12px; height:12px; border-radius:50%; border:1.5px solid var(--teal-line); border-top-color:var(--teal); animation:spin .8s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg) } }
.node.loading .ldg-work{ font-size:12px; color:var(--muted); margin-top:9px; }
.gather-progress{ position:absolute; left:40px; bottom:14px; z-index:5; font-family:var(--font-mono); font-size:11px; letter-spacing:.06em; color:var(--muted); display:flex; align-items:center; gap:10px; }
.gather-progress .gp-bar{ width:120px; height:3px; border-radius:3px; background:var(--hair-2); overflow:hidden; }
.gather-progress .gp-fill{ height:100%; background:var(--teal); width:0; transition:width .5s ease; }

/* ============================================================
   TESTER PANEL
   ============================================================ */
.tester{ position:fixed; top:0; right:0; bottom:0; width:340px; max-width:90vw; z-index:90; background:var(--raised); border-left:1px solid var(--hair-2); box-shadow:-24px 0 60px -30px rgba(43,39,34,.4); padding:20px 22px; overflow:auto; transform:translateX(100%); transition:transform var(--t-lens) var(--ease); }
.tester.open{ transform:none; }
.tester[hidden]{ display:block; } /* controlled by transform */
.tester-head{ display:flex; align-items:center; justify-content:space-between; }
.tester-badge{ font-family:var(--font-mono); font-size:9px; letter-spacing:.16em; text-transform:uppercase; color:var(--on-teal); background:var(--bronze); padding:3px 9px; border-radius:999px; }
.tester h2{ font-family:var(--font-display); font-weight:400; font-size:20px; margin:14px 0 2px; }
.tester .t-now{ font-family:var(--font-mono); font-size:11px; color:var(--muted); margin-bottom:14px; line-height:1.6; }
.tester .t-now b{ color:var(--teal); font-weight:600; }
.tester h3{ font-family:var(--font-mono); font-size:9.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--faint); margin:18px 0 8px; }
.t-grid{ display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.t-btn{ text-align:left; padding:9px 11px; border-radius:9px; border:1px solid var(--hair-2); background:var(--lifted); color:var(--ink); font-size:12px; cursor:pointer; transition:border-color var(--t-ctrl), background var(--t-ctrl); }
.t-btn:hover{ border-color:var(--teal-line); background:var(--recessed); }
.t-btn.full{ grid-column:1 / -1; }
.t-btn.danger:hover{ border-color:var(--warning); color:var(--warning); }
.t-close{ width:28px; height:28px; border-radius:8px; border:0; background:transparent; color:var(--muted); cursor:pointer; display:grid; place-items:center; }
.t-close:hover{ background:var(--recessed); color:var(--ink); }
.t-close svg{ width:16px; height:16px; }
.t-toggle{ display:flex; align-items:center; justify-content:space-between; padding:10px 12px; border-radius:10px; border:1px solid var(--hair-2); background:var(--lifted); margin-top:6px; font-size:13px; }
.switch{ width:40px; height:22px; border-radius:999px; background:var(--hair-2); border:0; position:relative; cursor:pointer; transition:background var(--t-ctrl); flex:0 0 40px; }
.switch::after{ content:""; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; transition:transform var(--t-ctrl); box-shadow:0 1px 3px rgba(0,0,0,.2); }
.switch[aria-checked="true"]{ background:var(--teal); } .switch[aria-checked="true"]::after{ transform:translateX(18px); }

/* Toasts */
.toast-layer{ position:fixed; left:50%; bottom:96px; transform:translateX(-50%); z-index:95; display:flex; flex-direction:column; gap:10px; align-items:center; pointer-events:none; }
.toast{ pointer-events:auto; display:flex; align-items:center; gap:14px; padding:12px 16px; border-radius:12px; background:var(--ink); color:var(--raised); font-size:13px; box-shadow:0 18px 40px -18px rgba(43,39,34,.5); animation:toastIn var(--t-lens) var(--ease); }
@keyframes toastIn{ from{ opacity:0; transform:translateY(10px) } }
.toast.out{ opacity:0; transform:translateY(10px); transition:opacity var(--t-ctrl), transform var(--t-ctrl); }
.toast .t-undo{ background:none; border:0; color:#8fd0c4; font-size:12.5px; font-weight:600; cursor:pointer; display:inline-flex; align-items:center; gap:6px; }
.toast .t-undo svg{ width:14px; height:14px; }
.toast.err{ background:var(--warning); }

/* Profile menu */
.menu-layer{ position:fixed; inset:0; z-index:80; pointer-events:none; }
.menu-layer.on{ pointer-events:auto; }
.pmenu{ position:absolute; left:64px; bottom:16px; width:230px; background:var(--raised); border:1px solid rgba(43,39,34,.09); border-radius:14px; box-shadow:0 26px 54px -22px rgba(43,39,34,.4); padding:8px; opacity:0; transform:translateY(8px); transition:opacity var(--t-lens), transform var(--t-lens); }
.menu-layer.on .pmenu{ opacity:1; transform:none; }
.pmenu .pm-user{ padding:10px 12px 12px; border-bottom:1px solid var(--hairline); margin-bottom:6px; }
.pmenu .pm-name{ font-size:14px; font-weight:600; } .pmenu .pm-plan{ font-size:12px; color:var(--muted); margin-top:2px; }
.pmenu .pm-user{ display:flex; align-items:center; gap:10px; }
.pmenu .pm-user .person-photo{ width:36px; height:36px; border-radius:50%; object-fit:cover; }
.pmenu button{ width:100%; text-align:left; display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:9px; border:0; background:transparent; color:var(--ink); font-size:13.5px; cursor:pointer; }
.pmenu button:hover{ background:var(--recessed); }
.pmenu button svg{ width:15px; height:15px; color:var(--muted); }
.pmenu .pm-proto{ color:var(--bronze); } .pmenu .pm-proto svg{ color:var(--bronze); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1180px){
  .handoff-grid{ grid-template-columns:1fr; gap:18px; }
}
@media (max-width:920px){
  body{ padding:0; }
  .window{ height:100dvh; border-radius:0; border:0; }
  .entry{ flex-direction:column; }
  .entry-today{ border-right:0; border-bottom:1px solid var(--hairline); }
  .obs{ grid-template-columns:1fr; gap:12px; }
  .chooser, .cmp-cols, .cmp-insight .ci-grid, .conflict .cf-grid{ grid-template-columns:1fr; }
  .conflict .cf-side:first-child{ border-right:0; border-bottom:1px solid var(--hairline); }
  .paused-banner{ flex-direction:column; align-items:flex-start; gap:12px; }
  .blank-cols{ grid-template-columns:1fr; gap:22px; }
  /* The persistent room becomes a stacked spatial reading on smaller screens. */
  .orbit-wrap{ overflow:auto!important; padding:16px; }
  .phase-context .orbit-wrap{ height:100%; }
  .phase-thinking .orbit-wrap, .phase-resume .orbit-wrap{ height:100%; }
  .reasoning-region{ width:min(440px,calc(100% - 24px)); top:12px; right:12px; bottom:12px; }
}
/* Narrow screens: the room reflows to one calm vertical reading. */
@media (max-width:760px){
  .rail{ flex:0 0 48px!important; padding:10px 7px; }
  .rail-items{ display:none!important; }
  .rail .brand{ padding-bottom:8px; }
  .ring, .glow, .links{ display:none!important; }
  .orbit-wrap{ overflow-y:auto; overflow-x:hidden; }
  .orbit{ position:static!important; height:auto; min-height:100%; display:flex; flex-direction:column; gap:12px; padding:122px 16px 24px; }
  .node{ position:static!important; width:auto!important; }
  .core{ position:static!important; width:auto!important; text-align:left!important; }
  .room-head{ position:absolute; top:14px; left:16px; right:16px; z-index:6; }
  .h1{ font-size:22px!important; } .room-head .sub{ display:none; }
  .ctx-status{ position:static!important; margin-top:8px; text-align:left; }
  .room-actions{ position:static; padding:4px 16px 16px; }
  .scale-tools{ position:static!important; flex-direction:row; flex-wrap:wrap; padding:0 16px 8px; }
  .gather-progress{ left:16px; }
  .session-dock{ top:70px; left:12px; right:12px; max-width:none; justify-content:flex-start; overflow-x:auto; padding-bottom:4px; scrollbar-width:none; }
  .session-dock::-webkit-scrollbar{ display:none; }
  .dock-state{ display:none; }
  .phase-thinking .orbit-wrap, .phase-resume .orbit-wrap{ height:100%; padding:0; overflow-y:auto!important; overflow-x:hidden!important; }
  .phase-thinking .orbit, .phase-resume .orbit{ flex-direction:column; overflow:visible; padding:122px 16px 24px; min-height:100%; }
  .phase-thinking .node, .phase-resume .node{ width:auto!important; padding:13px 14px; }
  .phase-thinking .core, .phase-resume .core{ width:auto!important; padding:20px 18px; }
  .reasoning-region{ inset:8px; width:auto; border-radius:16px; }
  .rz-toolbar{ flex-wrap:nowrap; gap:2px; padding-top:6px; padding-bottom:6px; }
  .rz-focus-banner{ order:0; width:auto; }
  .rz-focus-banner .fb-note{ display:none; }
  .paused-banner{ flex-wrap:wrap; }
  .phase-outcome .node{ display:none; }
  .phase-outcome .orbit{ padding-bottom:170px; }
  .phase-outcome .core{ width:auto!important; padding:24px 20px; text-align:center!important; }
  .drop-cue{ inset:112px 12px 14px; }
}
@media (max-width:640px){
  .titlebar .doc{ display:none; }
  .footer{ padding:8px 12px 12px; gap:8px; }
  .navmodes{ gap:6px; } .navbtn{ width:40px; height:40px; }
  .navmode:not(:nth-child(2)){ display:none; }
  .cmd-field .kbd{ display:none; }
  .rz-toolbar, .rz-scroll, .suggested{ padding-left:16px; padding-right:16px; }
  .turn{ grid-template-columns:1fr; gap:8px; }
  .turn .who{ padding-top:0; }
  .dialog{ padding:22px 18px; }
  .receipt{ left:12px; right:12px; flex-wrap:wrap; }
  .paused-banner{ margin:0 12px; }
  .source-option-head{ align-items:flex-start; flex-direction:column; gap:4px; }
  .handoff-preview .hp-row{ grid-template-columns:1fr; gap:6px; }
  .tester{ width:100vw; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important; }
  .aperture, .glow, .ring{ animation:none!important; }
}
.reduce-motion *{ animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important; }
.reduce-motion .aperture, .reduce-motion .glow, .reduce-motion .ring{ animation:none!important; }
