

:root {
  --p: #ffb691; --on-p: #591d00; --pc: #7e2c00; --on-pc: #ffdbc9;
  --sc: #5b4136; --on-sc: #f7dfd2;
  --sf: #17120e; --sf0: #110c09; --sf1: #201a16; --sf2: #241d19; --sf3: #2f2823; --sf4: #3a322d;
  --on-sf: #f0dfd7; --on-sfv: #d7c2b8; --ol: #a08d84; --olv: #52443c;
  --inv: #f0dfd7; --on-inv: #382e29;
  --blue: #8ab4f8; --blue-c: #0b3a86; --on-blue-c: #d3e3fd;
  --green: #81c995; --green-c: #0b5023; --on-green-c: #c9ecd3;
  --yellow: #fdd663; --yellow-c: #5c4300; --on-yellow-c: #feefc3;
  --red: #f28b82; --red-c: #791b12; --on-red-c: #fad2cf;
  --purple: #d0bcff; --purple-c: #4f2c79; --on-purple-c: #ecdcfd;
  --sh1: 0 1px 2px rgba(0, 0, 0, .5);
  --sh2: 0 2px 8px rgba(0, 0, 0, .5);
  --sh3: 0 10px 28px rgba(0, 0, 0, .55);
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 24px; --r-xl: 28px; --r-full: 999px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --spring: cubic-bezier(.34, 1.4, .3, 1);

  --cue-bg: #1d1a26; --cue-ink: #ebe7f5; --cue-acc: #b3aade; --cue-line: rgba(160, 150, 210, .32);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --p: #a93d00; --on-p: #ffffff; --pc: #ffdbc9; --on-pc: #380d00;
  --sc: #f7dfd2; --on-sc: #2b170b;
  --sf: #fff8f5; --sf0: #ffffff; --sf1: #fef1ec; --sf2: #f8ebe4; --sf3: #f2e5df; --sf4: #ecdfd9;
  --on-sf: #221a15; --on-sfv: #52443c; --ol: #85736b; --olv: #d7c2b8;
  --inv: #382e29; --on-inv: #ffede4;
  --blue: #1a73e8; --blue-c: #d3e3fd; --on-blue-c: #0b2e6b;
  --green: #188038; --green-c: #c9ecd3; --on-green-c: #08351a;
  --yellow: #ea8600; --yellow-c: #feefc3; --on-yellow-c: #4a3300;
  --red: #d93025; --red-c: #fad2cf; --on-red-c: #4d0f0b;
  --purple: #7627bb; --purple-c: #ecdcfd; --on-purple-c: #30045c;
  --sh1: 0 1px 2px rgba(40, 20, 10, .12), 0 1px 3px 1px rgba(40, 20, 10, .06);
  --sh2: 0 2px 6px 2px rgba(40, 20, 10, .08), 0 1px 2px rgba(40, 20, 10, .12);
  --sh3: 0 8px 24px rgba(40, 20, 10, .14);
  --cue-bg: #f1ecf8; --cue-ink: #2a2233; --cue-acc: #422a51; --cue-line: rgba(66, 42, 81, .22);
  color-scheme: light;
}

html, body { height: 100%; }
html { overflow: hidden; }
body.sr {
  margin: 0;
  height: 100vh; height: 100dvh;
  overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--sf);
  color: var(--on-sf);
  font: 400 16px/1.55 "IBM Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
.sr *, .sr *::before, .sr *::after { box-sizing: border-box; }
.sr h1, .sr h2, .sr h3, .sr p, .sr figure { margin: 0; }
.sr button, .sr textarea, .sr select, .sr input { font: inherit; color: inherit; }
.sr button { cursor: pointer; }
[hidden] { display: none !important; }
.spacer { flex: 1; }
.sr ::selection { background: var(--pc); color: var(--on-pc); }
.sr :focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }
.sr .ra-btn:focus-visible { outline: none; }

.ic {
  width: 1.3em; height: 1.3em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.27em;
}

.demo-bar {
  flex: none;
  display: flex; align-items: center; gap: 12px;
  min-height: 44px;
  padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  background: var(--bg);
  color: var(--text);
  border-block-end: 1px solid var(--border);
  font-family: var(--font-body);
  position: relative; z-index: 5;
}
.is-embed .demo-bar { display: none; }
.demo-back {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  color: var(--text); text-decoration: none;
  font: 600 15px/1 var(--font-display); letter-spacing: -.01em;
}
.demo-back .ic { width: 18px; height: 18px; color: var(--text-muted); transition: transform var(--dur-fast) var(--ease-out); }
.demo-back:hover .ic { transform: translateX(-3px); }
.demo-name { margin-inline-start: auto; font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.sr-app { flex: 1; min-height: 0; display: flex; position: relative; isolation: isolate; }
.sr-app::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46rem 30rem at 88% -8%, color-mix(in srgb, var(--pc) 55%, transparent), transparent 60%),
    radial-gradient(40rem 28rem at 4% 110%, color-mix(in srgb, var(--blue-c) 34%, transparent), transparent 60%);
  opacity: .55;
}

.btn, .iconbtn {
  position: relative;
  border: none;
  font-size: .95rem; font-weight: 600; line-height: 1.5;
  color: var(--on-sf);
  background: transparent;
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  transition: transform .12s var(--ease);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn { padding: .6rem 1.2rem; min-height: 44px; }
.btn.big { padding: .85rem 1.7rem; font-size: 1.05rem; }
.btn.small { padding: .4rem .9rem; font-size: .85rem; min-height: 36px; }
.btn::after, .iconbtn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: currentColor; opacity: 0; transition: opacity .18s var(--ease);
  pointer-events: none;
}
.btn:hover::after, .iconbtn:hover::after { opacity: .09; }
.btn:active, .iconbtn:active { transform: scale(.96); }
.btn:active::after, .iconbtn:active::after { opacity: .16; }
.btn.filled { background: var(--p); color: var(--on-p); box-shadow: var(--sh1); }
.btn.filled.danger { background: var(--red); color: #3d0500; }
:root[data-theme="light"] .btn.filled.danger { color: #fff; }
.btn.tonal { background: var(--sc); color: var(--on-sc); }
.btn.tonal.g-green { background: var(--green-c); color: var(--on-green-c); }
.btn.tonal.g-yellow { background: var(--yellow-c); color: var(--on-yellow-c); }
.btn.tonal.g-purple { background: var(--purple-c); color: var(--on-purple-c); }
.btn.outlined { border: 1.5px solid var(--ol); color: var(--on-sfv); }
.btn.text { color: var(--p); }
.btn:disabled, .iconbtn:disabled { opacity: .38; cursor: not-allowed; }
.btn .ic { width: 1.25em; height: 1.25em; }
.iconbtn { width: 44px; height: 44px; font-size: 1rem; color: var(--on-sfv); padding: 0; }
.iconbtn.tonal { background: var(--sc); color: var(--on-sc); }

.is-cued { z-index: 1; }
.is-cued::before {
  content: ""; position: absolute; inset: -5px; border-radius: inherit;
  border: 2px solid var(--cue-acc);
  pointer-events: none;
  animation: cue-ring 1.5s var(--ease) infinite;
}
@keyframes cue-ring { 0% { opacity: .95; transform: scale(.98); } 70%, 100% { opacity: 0; transform: scale(1.1); } }

.setup { flex: 1; min-width: 0; overflow-y: auto; display: flex; padding: 24px 16px 40px; }
.setup-card {
  margin: auto;
  width: min(40rem, 100%);
  background: var(--sf0);
  border-radius: var(--r-xl);
  box-shadow: var(--sh2);
  padding: 28px clamp(18px, 4vw, 36px) 26px;
  display: flex; flex-direction: column; gap: 20px;
}
.brand { display: flex; align-items: center; gap: .65rem; }
.brand-mark {
  width: 2.4rem; height: 2.4rem; border-radius: var(--r-sm);
  display: grid; place-items: center; flex: none;
  color: var(--on-p); background: var(--p); box-shadow: var(--sh1);
}
.brand-mark .ic { width: 1.35rem; height: 1.35rem; }
.brand-name { font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.2; }
.setup-sub { color: var(--on-sfv); font-size: .98rem; max-width: 54ch; }
.field { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.field-label { font-weight: 600; font-size: .98rem; padding: 0; }
.picks { display: grid; gap: .5rem; }
.pick {
  position: relative;
  display: flex; gap: .8rem; align-items: flex-start;
  text-align: start;
  padding: .8rem 1rem;
  min-height: 44px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--olv);
  background: transparent;
  color: var(--on-sf);
}
.pick:hover { border-color: var(--ol); }
.pick[aria-checked="true"] { background: var(--pc); color: var(--on-pc); border-color: var(--pc); }
.pick-radio {
  width: 1.2rem; height: 1.2rem; margin-top: .2rem; flex: none;
  border-radius: 50%; border: 2px solid var(--ol);
  display: grid; place-items: center;
}
.pick[aria-checked="true"] .pick-radio { border-color: currentColor; }
.pick[aria-checked="true"] .pick-radio::after { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.pick-title { display: block; font-weight: 600; line-height: 1.35; }
.pick-who { display: block; font-size: .86rem; opacity: .82; margin-top: .15rem; }
.team-line { display: flex; flex-wrap: wrap; gap: .4rem; }
.person {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .25rem .8rem .25rem .25rem;
  border-radius: var(--r-full);
  background: var(--sf3);
  font-weight: 500; font-size: .92rem;
}
.avatar {
  width: 1.75rem; height: 1.75rem; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: .78rem; font-weight: 600;
  background: var(--sc); color: var(--on-sc);
}
.avatar.you { background: var(--p); color: var(--on-p); }
.format-chip {
  align-self: flex-start;
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .45rem;
  padding: .55rem 1rem;
  border-radius: var(--r-full);
  background: var(--sc); color: var(--on-sc);
  font-weight: 600; font-size: .92rem;
}
.format-chip small { font-weight: 400; font-size: .86rem; opacity: .85; }
.setup-go { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; margin-top: .2rem; }
.setup-note {
  display: flex; align-items: baseline; gap: .55rem;
  font-size: .86rem; color: var(--on-sfv); max-width: 52ch;
}
.setup-note .cue-dot { transform: translateY(-1px); }

.shell { flex: 1; min-width: 0; min-height: 0; display: flex; }
.sidebar {
  flex: none;
  width: 13.5rem;
  display: flex; flex-direction: column; gap: .4rem;
  padding: 1rem .7rem;
  background: var(--sf2);
  border-inline-end: 1px solid var(--olv);
  position: relative; z-index: 3;
}
.side-brand { display: flex; align-items: center; gap: .55rem; padding: .3rem .5rem 1rem; }
.side-brand .brand-mark { width: 2.1rem; height: 2.1rem; }
.side-brand-name { font-weight: 600; font-size: 1.08rem; letter-spacing: -.01em; }
.side-nav { display: flex; flex-direction: column; gap: .25rem; }
.side-item {
  position: relative;
  display: flex; align-items: center; gap: .7rem;
  border: none;
  min-height: 44px;
  padding: .6rem .85rem;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--on-sfv);
  font-size: .97rem; font-weight: 600;
  text-align: start;
}
.side-item::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: currentColor; opacity: 0; transition: opacity .18s var(--ease); pointer-events: none; }
.side-item:hover::after { opacity: .07; }
.side-item.active { background: var(--pc); color: var(--on-pc); }
.side-dot { position: absolute; inset-inline-end: .8rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--p); }
.side-item.active .side-dot { display: none; }
.side-foot {
  margin-top: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .1rem;
  padding-top: .8rem;
  border-top: 1px solid var(--olv);
}
.cost-mini {
  flex: 1 0 100%; min-width: 0;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .6rem;
  border-radius: var(--r-full);
  background: var(--sf3);
  font-size: .82rem; color: var(--on-sfv);
}
.cost-mini b { font-family: "IBM Plex Mono", monospace; font-weight: 500; color: var(--on-sf); }
.views { flex: 1; min-width: 0; min-height: 0; position: relative; }
.view { height: 100%; }
.view.scroller { overflow-y: auto; padding: 1.8rem clamp(1rem, 4vw, 3rem) 4rem; }
.inner { max-width: 1040px; margin-inline: auto; }
.view-head { margin-bottom: 1.5rem; }
.view-head h1 { font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; line-height: 1.15; }
.view-head p { margin-top: .5rem; max-width: 62ch; color: var(--on-sfv); font-size: .98rem; }
.sec-title { display: flex; align-items: center; gap: .5rem; font-size: 1.15rem; font-weight: 600; margin: 2rem 0 .8rem; }
.sec-title .ic { color: var(--p); }

.room {
  display: flex; flex-direction: column; gap: .65rem;
  padding: .75rem 1rem .9rem;
  max-width: 1500px; margin-inline: auto;
  overflow-y: auto;
}
.room > * { flex: none; }
.room-head { display: flex; flex-direction: column; gap: .5rem; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: 0 .3rem; }
.topbar-topic {
  flex: 1; min-width: 0;
  font-size: 1.02rem; font-weight: 500; color: var(--on-sfv);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-status { display: flex; align-items: center; gap: .5rem; flex: none; }
.chip {
  position: relative;
  display: inline-flex; align-items: center; gap: .4rem;
  height: 2.25rem; padding: 0 .8rem;
  border-radius: var(--r-full);
  font-size: .85rem; font-weight: 600;
  background: var(--sf3); color: var(--ol);
  border: 0;
}
.chip-ctx { color: var(--on-sfv); }
.chip-ctx::before { content: ""; position: absolute; inset: -4px 0; }
.chip-ctx b { font-variant-numeric: tabular-nums; font-size: .78rem; min-width: 2.3em; text-align: end; }
.ctx-bar { display: block; inline-size: 42px; block-size: 6px; border-radius: 3px; background: var(--sf2); overflow: hidden; }
.ctx-bar > i { display: block; block-size: 100%; inline-size: 100%; background: var(--p); transform-origin: left center; transform: scaleX(0); transition: transform .4s var(--ease); }

.phase-strip {
  display: flex; align-items: center; gap: .45rem;
  overflow-x: auto;
  padding: .15rem .3rem;
  scrollbar-width: none;
}
.phase-strip::-webkit-scrollbar { display: none; }
.phase-seg {
  flex: none;
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .88rem; font-weight: 600;
  min-height: 44px;
  padding: .4rem 1rem;
  border: 1.5px solid var(--olv);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--on-sfv);
  white-space: nowrap;
}
.phase-num {
  display: grid; place-items: center;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  background: var(--sf4);
  font-size: .72rem; font-weight: 600;
}
.phase-min { font-weight: 400; font-size: .78rem; opacity: .75; }
.phase-seg .ic { width: 1.05rem; height: 1.05rem; }
.phase-seg.done { background: var(--sf3); border-color: transparent; }
.phase-seg.now {
  background: var(--p); border-color: var(--p); color: var(--on-p);
  padding: .5rem 1.2rem; font-size: .95rem;
  box-shadow: var(--sh2);
  animation: seg-in .45s var(--spring) both;
}
.phase-seg.now .phase-num { background: color-mix(in srgb, var(--on-p) 22%, transparent); color: var(--on-p); }
@keyframes seg-in { from { transform: scale(.92); } }

.stage {
  display: flex; align-items: center; gap: 1.4rem;
  background: var(--sf0);
  border-radius: var(--r-xl);
  box-shadow: var(--sh1);
  padding: .75rem 1.4rem;
  position: relative;
  overflow: hidden;
}
.stage::before {
  content: "";
  position: absolute; inset-inline-start: -6rem; top: -8rem;
  width: 22rem; height: 22rem; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--pc) 60%, transparent), transparent);
  pointer-events: none;
}
.stage-info { flex: 1; min-width: 0; position: relative; }
.step-chip {
  display: inline-flex; align-items: center;
  padding: .25rem .85rem;
  border-radius: var(--r-full);
  background: var(--pc); color: var(--on-pc);
  font-size: .8rem; font-weight: 600;
  margin-bottom: .45rem;
  position: relative;
}
.phase-title { font-size: clamp(1.25rem, 2.2vw, 1.65rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; position: relative; }
.step-prompt { margin-top: .3rem; color: var(--on-sfv); font-size: clamp(.9rem, 1.2vw, 1rem); max-width: 72ch; position: relative; }
.stage-clock { flex: none; display: flex; align-items: center; position: relative; }
.clock-mini {
  display: flex; flex-direction: column; gap: .3rem;
  min-width: 10rem;
  padding: .45rem .7rem .55rem;
  background: var(--sf1);
  border-radius: var(--r-md);
}
.clock-top { display: flex; align-items: center; gap: .3rem; }
.clock-digits {
  font-family: "IBM Plex Mono", monospace; font-weight: 400;
  font-size: 1.45rem; letter-spacing: -.02em;
  direction: ltr; font-variant-numeric: tabular-nums;
  margin-inline-end: auto;
}
.iconbtn.mini { width: 2.1rem; height: 2.1rem; background: var(--sf3); }
.iconbtn.mini .ic { width: 1.05rem; height: 1.05rem; }
.iconbtn.mini::before { content: ""; position: absolute; inset: -5px; }
.clock-track { height: 5px; border-radius: 99px; background: var(--sf3); overflow: hidden; direction: ltr; }
.clock-fill { height: 100%; width: 100%; background: var(--p); border-radius: 99px; transform-origin: left center; transition: transform .25s linear; }
.clock-label { font-size: .72rem; font-weight: 600; color: var(--on-sfv); max-width: 11rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#timerWrap.warn .clock-digits { color: var(--yellow); }
#timerWrap.warn .clock-fill { background: var(--yellow); }
.finish-actions { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: .5rem; position: relative; }

.banner {
  display: flex; align-items: center; gap: 1rem;
  background: var(--yellow-c); color: var(--on-yellow-c);
  border-radius: var(--r-lg);
  padding: .65rem .8rem .65rem 1.1rem;
  box-shadow: var(--sh1);
  animation: banner-in .4s var(--spring) both;
}
@keyframes banner-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.banner-icon { width: 1.6rem; height: 1.6rem; }
.banner-text { flex: 1; min-width: 0; font-weight: 600; font-size: .96rem; }

.columns { flex: 1 1 auto; min-height: 15rem; display: grid; grid-template-columns: 1.35fr 1fr; gap: .75rem; }
.col {
  display: flex; flex-direction: column; min-height: 0; min-width: 0;
  background: var(--sf0);
  border-radius: var(--r-lg);
  box-shadow: var(--sh1);
  overflow: hidden;
}
.col-head {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .7rem 1.1rem .6rem;
  border-bottom: 1px solid var(--olv);
  flex: none;
}
.col-title { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1rem; white-space: nowrap; }
.col-title .ic { color: var(--p); }
.col-agents .col-title .ic { color: var(--blue); }
.agent-dots { display: flex; gap: .35rem; }
.adot {
  width: 2rem; height: 2rem; border-radius: var(--r-sm);
  display: grid; place-items: center; font-style: normal;
  transition: opacity .3s var(--ease);
}
.adot .ic { width: 1.05rem; height: 1.05rem; }
.a-scribe { background: var(--blue-c); color: var(--on-blue-c); }
.a-verifier { background: var(--green-c); color: var(--on-green-c); }
.a-angles { background: var(--yellow-c); color: var(--on-yellow-c); }
.a-researcher { background: var(--purple-c); color: var(--on-purple-c); }
.a-devil { background: var(--red-c); color: var(--on-red-c); }
.adot.busy { animation: adot-pulse 1.1s ease-in-out infinite; }
.adot.off { opacity: .32; }
@keyframes adot-pulse { 50% { transform: scale(1.18); } }

.feed {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding: .9rem 1.1rem 1.1rem;
  display: flex; flex-direction: column; gap: .65rem;
  overscroll-behavior: contain;
}
.feed::-webkit-scrollbar { width: 8px; }
.feed::-webkit-scrollbar-thumb { background: var(--olv); border-radius: 99px; }
.feed[data-empty]:empty::before {
  content: attr(data-empty);
  display: block; margin: auto; max-width: 30ch;
  text-align: center; color: var(--ol); font-size: .95rem; line-height: 1.6;
}

.msg {
  max-width: 92%;
  padding: .7rem 1rem;
  border-radius: var(--r-lg);
  font-size: .96rem; line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: anywhere;
  animation: msg-in .35s var(--spring) both;
}
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.msg-fac { align-self: flex-start; background: var(--pc); color: var(--on-pc); border-start-start-radius: var(--r-xs); }
.msg-fac.pending { background: color-mix(in srgb, var(--pc) 55%, var(--sf0)); color: var(--on-sfv); min-width: 4.5rem; }
.msg-fac.pending::after, .agent-card.pending .agent-head::after {
  content: "•••"; display: inline-block; margin-inline-start: .3rem; letter-spacing: .12em;
  animation: think 1.2s ease-in-out infinite;
}
@keyframes think { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.msg-human { align-self: flex-end; background: var(--sf3); color: var(--on-sf); border-start-end-radius: var(--r-xs); }
.msg-human.is-you { background: color-mix(in srgb, var(--pc) 32%, var(--sf3)); }
.msg-author { font-weight: 600; color: var(--p); margin-inline-end: .35rem; }

.phase-div {
  display: flex; align-items: center; gap: .7rem;
  margin: .35rem 0 .1rem;
  font-size: .78rem; font-weight: 600; color: var(--ol);
}
.phase-div::before, .phase-div::after { content: ""; flex: 1; height: 1px; background: var(--olv); }
.step-mark { display: none; align-self: flex-start; font-size: .76rem; font-weight: 600; color: var(--on-pc); background: color-mix(in srgb, var(--pc) 60%, transparent); padding: .2rem .7rem; border-radius: var(--r-full); }

.agent-card {
  align-self: stretch; max-width: 100%;
  background: var(--sf1);
  border-inline-start: 4px solid var(--olv);
  border-radius: var(--r-md);
  padding: .75rem .95rem;
  font-size: .93rem; line-height: 1.5;
  overflow-wrap: anywhere;
  animation: msg-in .35s var(--spring) both;
}
.agent-head { display: flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.agent-head .ic { width: 1.1rem; height: 1.1rem; }
.agent-card.pending { opacity: .85; }
.agent-card.pending .agent-body { display: none; }
.agent-card.a-scribe { border-color: var(--blue); background: color-mix(in srgb, var(--blue-c) 38%, var(--sf0)); }
.agent-card.a-verifier { border-color: var(--green); background: color-mix(in srgb, var(--green-c) 38%, var(--sf0)); }
.agent-card.a-angles { border-color: var(--yellow); background: color-mix(in srgb, var(--yellow-c) 38%, var(--sf0)); }
.agent-card.a-researcher { border-color: var(--purple); background: color-mix(in srgb, var(--purple-c) 38%, var(--sf0)); }
.agent-card.a-devil { border-color: var(--red); background: color-mix(in srgb, var(--red-c) 38%, var(--sf0)); }
.agent-card.a-scribe .agent-head { color: var(--blue); }
.agent-card.a-verifier .agent-head { color: var(--green); }
.agent-card.a-angles .agent-head { color: var(--yellow); }
.agent-card.a-researcher .agent-head { color: var(--purple); }
.agent-card.a-devil .agent-head { color: var(--red); }
:root[data-theme="light"] .agent-card.a-scribe .agent-head { color: var(--on-blue-c); }
:root[data-theme="light"] .agent-card.a-verifier .agent-head { color: var(--on-green-c); }
:root[data-theme="light"] .agent-card.a-angles .agent-head { color: var(--on-yellow-c); }
:root[data-theme="light"] .agent-card.a-researcher .agent-head { color: var(--on-purple-c); }
:root[data-theme="light"] .agent-card.a-devil .agent-head { color: var(--on-red-c); }
.agent-h { font-weight: 600; font-size: .95rem; margin-top: .5rem; }
.agent-h:first-child { margin-top: 0; }
.agent-q {
  border-inline-start: 3px solid color-mix(in srgb, currentColor 35%, transparent);
  padding-inline-start: .7rem; margin: .3rem 0;
  font-style: italic; opacity: .92;
}
.agent-line { margin: .2rem 0; }
.agent-who { font-weight: 600; margin-top: .45rem; }
.agent-ask { margin-top: .5rem; font-weight: 500; }

.poll {
  align-self: stretch;
  background: var(--sf1);
  border: 1.5px solid var(--cue-line);
  border-radius: var(--r-lg);
  padding: .85rem;
  display: flex; flex-direction: column; gap: .55rem;
  animation: msg-in .35s var(--spring) both;
}
.poll-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.poll-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .76rem; font-weight: 600;
  padding: .15rem .6rem .15rem .45rem;
  border-radius: var(--r-full);
  background: var(--cue-bg); color: var(--cue-acc);
  border: 1px solid var(--cue-line);
}
.poll-q { font-weight: 600; font-size: .98rem; }
.poll-side { margin-inline-start: auto; font-size: .82rem; color: var(--on-sfv); display: inline-flex; align-items: center; gap: .3rem; }
.opt {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: .15rem;
  text-align: start;
  width: 100%;
  min-height: 44px;
  padding: .7rem .9rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--olv);
  background: var(--sf0);
  color: var(--on-sf);
  line-height: 1.45;
}
.opt:hover { border-color: var(--p); }
.opt-by { font-size: .8rem; font-weight: 600; color: var(--p); }
.opt-text { font-weight: 500; font-size: .95rem; }
.opt-note { font-size: .85rem; color: var(--on-sfv); }
.poll.done .opt { cursor: default; opacity: .5; }
.poll.done .opt:hover { border-color: var(--olv); }
.poll.done .opt.picked { opacity: 1; border-color: var(--p); background: color-mix(in srgb, var(--pc) 35%, var(--sf0)); }
.picked-tag { position: absolute; inset-block-start: .55rem; inset-inline-end: .7rem; color: var(--p); }

.wall-row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem .8rem; align-items: center;
  text-align: start;
  width: 100%;
  min-height: 44px;
  padding: .65rem .8rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--olv);
  background: var(--sf0);
  color: var(--on-sf);
}
.wall-row.can-tap:hover { border-color: var(--p); }
.wall-row.lead { border-color: var(--p); }
.wall-row.parked { opacity: .6; }
.wall-name { font-weight: 600; font-size: .96rem; }
.wall-ideas { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .15rem; font-size: .84rem; color: var(--on-sfv); }
.wall-ideas span::before { content: "– "; color: var(--ol); }
.wall-ideas .you { color: var(--on-sf); font-weight: 500; }
.dots { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem; max-width: 9rem; }
.vdot {
  width: 1.45rem; height: 1.45rem; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .64rem; font-weight: 600;
  background: var(--sc); color: var(--on-sc);
  animation: pop .35s var(--spring) both;
}
.vdot.you { background: var(--p); color: var(--on-p); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.left-dots { display: inline-flex; gap: .2rem; }
.left-dots i { width: .65rem; height: .65rem; border-radius: 50%; background: var(--p); }
.left-dots i.used { background: var(--sf4); }
.wall-tag { font-size: .74rem; font-weight: 600; color: var(--p); }

.arow {
  position: relative;
  display: flex; flex-direction: column; gap: .25rem;
  text-align: start;
  width: 100%;
  min-height: 44px;
  padding: .65rem .8rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--olv);
  background: var(--sf0);
  color: var(--on-sf);
}
.arow.can-tap:hover { border-color: var(--p); }
.arow.picked { border-color: var(--p); background: color-mix(in srgb, var(--pc) 30%, var(--sf0)); }
.arow-text { font-weight: 500; font-size: .95rem; padding-inline-end: 1.5rem; }
.arow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; font-size: .8rem; color: var(--on-sfv); }
.arow-test { font-size: .84rem; color: var(--on-sfv); }
.pill { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 600; padding: .08rem .55rem; border-radius: var(--r-full); white-space: nowrap; }
.pill.low { background: var(--red-c); color: var(--on-red-c); }
.pill.medium { background: var(--yellow-c); color: var(--on-yellow-c); }
.pill.high, .pill.stronger { background: var(--green-c); color: var(--on-green-c); }
.pill.weaker { background: var(--red-c); color: var(--on-red-c); }
.pill.open { background: var(--sf4); color: var(--on-sfv); }
.pill.hurt { background: var(--pc); color: var(--on-pc); }

.record {
  align-self: stretch;
  background: var(--sf0);
  border: 1.5px solid var(--olv);
  border-radius: var(--r-lg);
  padding: .9rem 1.05rem;
  display: flex; flex-direction: column; gap: .55rem;
  animation: msg-in .35s var(--spring) both;
}
.record-head { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.record-head .ic { color: var(--p); }
.record-state { margin-inline-start: auto; }
.record-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .1rem .9rem; }
.record-k { font-size: .82rem; font-weight: 600; color: var(--on-sfv); padding-top: .12rem; }
.record-v { font-size: .95rem; overflow-wrap: anywhere; }
.record.is-done { border-color: var(--p); }
.record.is-final { padding: 1.1rem 1.25rem; animation: none; }

.console { display: flex; flex-direction: column; gap: .55rem; }
.cue {
  display: flex; align-items: center; gap: .6rem;
  min-height: 46px;
  padding: .1rem .2rem .1rem .9rem;
  border-radius: var(--r-full);
  background: var(--cue-bg); color: var(--cue-ink);
  border: 1px solid var(--cue-line);
  font-size: .9rem; line-height: 1.35;
}
.cue-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--cue-acc); flex: none; display: inline-block; }
.cue.you .cue-dot { animation: blink 1.3s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.cue-text { flex: 1; min-width: 0; padding-block: .3rem; }
.cue-text b { color: var(--cue-acc); font-weight: 600; }
.cue-skip {
  position: relative;
  flex: none;
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 0; border-radius: var(--r-full);
  background: transparent; color: var(--cue-ink);
  font-size: .88rem; font-weight: 600;
}
.cue-skip::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--cue-acc); opacity: 0; transition: opacity .18s var(--ease); }
.cue-skip:hover::after { opacity: .14; }
.cue-skip .ic { width: 1.1rem; height: 1.1rem; }
.cue-skip span, .cue-skip .ic { position: relative; }

.inputbar {
  display: flex; align-items: flex-end; gap: .5rem;
  background: var(--sf0);
  border-radius: var(--r-xl);
  box-shadow: var(--sh2);
  padding: .45rem .5rem;
  border: 1.5px solid transparent;
}
.inputbar:focus-within { border-color: var(--p); }
.inputbar.silent { background: color-mix(in srgb, var(--blue-c) 30%, var(--sf0)); border-color: var(--blue); }
.inputbar.is-cued { border-color: var(--cue-acc); }
.inputbar.is-cued::before { border-radius: var(--r-xl); }
.author-select {
  flex: none; align-self: center;
  border: none; background: var(--sf3); color: var(--on-sf);
  border-radius: var(--r-full);
  font-weight: 600; font-size: .9rem;
  min-height: 44px;
  padding: .5rem 2rem .5rem .9rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
}
.iconbtn.mic { background: var(--sc); color: var(--on-sc); }
.iconbtn.send { background: var(--p); color: var(--on-p); box-shadow: var(--sh1); }
.console-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

.menu {
  position: fixed; z-index: 60;
  min-width: 13rem;
  background: var(--sf2);
  border-radius: var(--r-md);
  box-shadow: var(--sh3);
  padding: .4rem;
  display: flex; flex-direction: column;
  animation: msg-in .25s var(--spring) both;
}
.menu-item {
  display: flex; align-items: center; gap: .6rem;
  min-height: 44px; padding: .5rem .8rem;
  border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--on-sf);
  font-weight: 500; text-align: start;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--sf4); }
.menu-item .chipdot { width: 1.75rem; height: 1.75rem; border-radius: var(--r-xs); display: grid; place-items: center; flex: none; }
.menu-item .chipdot .ic { width: 1rem; height: 1rem; }

.peek {
  position: fixed; z-index: 55;
  inset-block: 0; inset-inline-end: 0;
  width: min(24rem, 100%);
  background: var(--sf1);
  box-shadow: var(--sh3);
  display: flex; flex-direction: column; gap: .8rem;
  padding: 1rem 1.1rem 1.2rem;
  animation: peek-in .35s var(--ease) both;
}
@keyframes peek-in { from { transform: translateX(100%); } }
.peek-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: 1.02rem; }
.peek-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: .9rem; font-size: .92rem; }
.peek-sec h3 { font-size: .82rem; font-weight: 600; color: var(--on-sfv); margin-bottom: .3rem; }
.peek-sec p, .peek-sec li { margin: .15rem 0; }
.peek-sec ul { margin: 0; padding-inline-start: 1.1rem; }

.dlg { border: none; padding: 0; background: transparent; max-width: min(27rem, calc(100vw - 32px)); margin: auto; color: var(--on-sf); }
.dlg::backdrop { background: rgba(20, 10, 5, .5); }
.dlg-card {
  background: var(--sf0);
  border-radius: var(--r-xl);
  box-shadow: var(--sh3);
  padding: 1.5rem 1.4rem 1.1rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.dlg-title { font-size: 1.25rem; font-weight: 600; }
.dlg-body { color: var(--on-sfv); font-size: .95rem; }
.dlg-note { font-size: .9rem; padding: .6rem .8rem; border-radius: var(--r-sm); background: var(--cue-bg); color: var(--cue-ink); border: 1px solid var(--cue-line); }
.dlg-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .2rem; }

.toasts {
  position: fixed; inset-inline: 0; inset-block-end: 1.2rem; z-index: 70;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  pointer-events: none; padding-inline: 16px;
}
.toast {
  background: var(--inv); color: var(--on-inv);
  border-radius: var(--r-sm);
  padding: .7rem 1.1rem;
  font-size: .92rem; font-weight: 500;
  box-shadow: var(--sh3);
  max-width: min(34rem, 100%);
  animation: msg-in .35s var(--spring) both;
  transition: opacity .3s var(--ease);
}
.toast.out { opacity: 0; }

.doc-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.doc-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 40px; padding: .4rem .95rem;
  border-radius: var(--r-full);
  border: 1.5px solid var(--olv);
  background: transparent; color: var(--on-sfv);
  font-size: .88rem; font-weight: 600;
  position: relative;
}
.doc-chip::before { content: ""; position: absolute; inset: -3px 0; }
.doc-chip[aria-selected="true"] { background: var(--sc); color: var(--on-sc); border-color: transparent; }
.doc-chip .n { font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: .78rem; opacity: .8; }
.doc-card { background: var(--sf0); border-radius: var(--r-lg); box-shadow: var(--sh1); padding: 1rem 1.2rem 1.3rem; }
.doc-actions { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.doc-title { font-weight: 600; font-size: 1.05rem; }
.doc-view { display: flex; flex-direction: column; gap: .8rem; font-size: .95rem; }
.doc-view:empty::before { content: attr(data-empty); color: var(--ol); }
.doc-view h3 { font-size: .95rem; font-weight: 600; }
.doc-view p { color: var(--on-sf); }
.doc-view .muted { color: var(--on-sfv); font-size: .88rem; }
.doc-block { display: flex; flex-direction: column; gap: .3rem; padding-block-end: .8rem; border-block-end: 1px solid var(--olv); }
.doc-block:last-child { border-block-end: 0; padding-block-end: 0; }

.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .8rem; }
.agent-tile { background: var(--sf0); border-radius: var(--r-lg); box-shadow: var(--sh1); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .45rem; border-block-start: 4px solid var(--olv); }
.agent-tile .t-head { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: 1.02rem; }
.agent-tile .t-ic { width: 2.1rem; height: 2.1rem; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; }
.agent-tile .t-ic .ic { width: 1.15rem; height: 1.15rem; }
.agent-tile .t-role { font-size: .92rem; }
.agent-tile .t-never { font-size: .86rem; color: var(--on-sfv); }
.agent-tile .t-never b { color: var(--on-sf); font-weight: 600; }
.agent-tile .t-model { margin-top: auto; font-family: "IBM Plex Mono", monospace; font-size: .76rem; color: var(--ol); }
.t-primary { border-color: var(--p); } .t-primary .t-ic { background: var(--pc); color: var(--on-pc); }
.t-blue { border-color: var(--blue); } .t-blue .t-ic { background: var(--blue-c); color: var(--on-blue-c); }
.t-green { border-color: var(--green); } .t-green .t-ic { background: var(--green-c); color: var(--on-green-c); }
.t-yellow { border-color: var(--yellow); } .t-yellow .t-ic { background: var(--yellow-c); color: var(--on-yellow-c); }
.t-purple { border-color: var(--purple); } .t-purple .t-ic { background: var(--purple-c); color: var(--on-purple-c); }
.t-red { border-color: var(--red); } .t-red .t-ic { background: var(--red-c); color: var(--on-red-c); }

.note-card { background: var(--sf0); border-radius: var(--r-lg); box-shadow: var(--sh1); padding: 1.1rem 1.25rem; display: flex; gap: .8rem; align-items: flex-start; max-width: 46rem; }
.note-card .ic { color: var(--p); width: 1.5rem; height: 1.5rem; margin-top: .1rem; }

.tune { display: grid; gap: .8rem; max-width: 46rem; }
.tune-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem 1rem; align-items: center; background: var(--sf0); border-radius: var(--r-md); padding: .8rem 1rem; box-shadow: var(--sh1); }
.tune-row b { font-weight: 600; }
.tune-row .val { font-family: "IBM Plex Mono", monospace; font-size: .85rem; color: var(--on-sfv); }
.tune-row .sub { grid-column: 1 / -1; font-size: .84rem; color: var(--on-sfv); }
.tune-track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--sf2); overflow: hidden; }
.tune-track i { display: block; height: 100%; width: 100%; background: var(--p); transform-origin: left center; }

.report { background: var(--sf0); border-radius: var(--r-lg); box-shadow: var(--sh1); padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .9rem; }
.report h2 { font-size: 1.1rem; font-weight: 600; }
.report-sec h3 { font-size: .82rem; font-weight: 600; color: var(--on-sfv); margin-bottom: .25rem; }
.report-sec ul { margin: 0; padding-inline-start: 1.1rem; }

.finale-hero {
  position: relative;
  text-align: center;
  padding: 2.2rem 1rem 1.8rem;
  background: var(--sf0);
  border-radius: var(--r-xl);
  box-shadow: var(--sh1);
  overflow: hidden;
}
.finale-hero::before {
  content: ""; position: absolute; inset-inline-start: 50%; top: -9rem;
  width: 26rem; height: 18rem; margin-inline-start: -13rem; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--pc) 70%, transparent), transparent);
  pointer-events: none;
}
.finale-glyph {
  position: relative;
  width: 3.6rem; height: 3.6rem; margin: 0 auto .9rem;
  border-radius: var(--r-lg);
  display: grid; place-items: center;
  background: var(--p); color: var(--on-p);
  box-shadow: var(--sh2);
  animation: pop .6s var(--spring) both;
}
.finale-glyph .ic { width: 1.9rem; height: 1.9rem; }
.finale-title { position: relative; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.finale-topic { position: relative; margin-top: .45rem; color: var(--on-sfv); font-size: 1rem; }
.finale-stats { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.2rem; }
.stat { display: inline-flex; align-items: baseline; gap: .4rem; padding: .45rem .9rem; border-radius: var(--r-full); background: var(--sf3); font-size: .88rem; color: var(--on-sfv); }
.stat b { font-family: "IBM Plex Mono", monospace; font-weight: 500; font-size: 1rem; color: var(--on-sf); }
.stat.zero { background: var(--sc); color: var(--on-sc); }
.stat.zero b { color: var(--on-sc); }
.finale-next { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

.offer {
  margin-top: 2.2rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border-radius: var(--radius-lg, 20px);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  font-family: var(--font-body);
}
.offer-title { font: 600 clamp(1.3rem, 1rem + 1.4vw, 1.85rem)/1.2 var(--font-display); letter-spacing: -.02em; max-width: 24ch; text-wrap: balance; }
.offer-text { margin-top: .6rem; color: var(--text-muted); font-size: 1rem; max-width: 52ch; }
.offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 1.4rem; }
.offer-link {
  min-height: 44px; padding: 0 .3rem;
  border: 0; background: none;
  color: var(--link);
  font: 500 .95rem/1 var(--font-body);
  text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px;
}

@media (max-width: 980px) {
  .shell { flex-direction: column-reverse; }
  .sidebar {
    width: auto;
    flex-direction: row; align-items: center; gap: .2rem;
    padding: .3rem .4rem calc(.3rem + env(safe-area-inset-bottom));
    border-inline-end: none;
    border-top: 1px solid var(--olv);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .1);
  }
  .side-brand { display: none; }
  .side-nav { flex: 1; min-width: 0; flex-direction: row; justify-content: space-around; gap: 0; }
  .side-item { flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: .05rem; padding: .3rem .1rem; border-radius: var(--r-md); }
  .side-label { font-size: .7rem; white-space: nowrap; }
  .side-item .ic { width: 1.3rem; height: 1.3rem; }
  .side-dot { inset-block-start: .3rem; inset-inline-end: calc(50% - 1.1rem); }
  .side-foot { margin-top: 0; padding-top: 0; border-top: 0; border-inline-start: 1px solid var(--olv); padding-inline-start: .3rem; }
  .cost-mini, #ttsBtn { display: none; }
  .room { padding: .6rem .75rem .75rem; }
  .view.scroller { padding: 1.3rem 1rem 2.5rem; }
}

@media (max-width: 759px), (max-height: 560px) {
  .room { gap: .55rem; padding: 0 .6rem; }
  .room-head {
    position: sticky; top: 0; z-index: 4;
    flex-direction: row-reverse; align-items: center; gap: .3rem;
    margin-inline: -.6rem; padding: .35rem .5rem .35rem .3rem;
    background: var(--sf);
    border-block-end: 1px solid var(--olv);
  }
  .phase-strip { flex: 1; min-width: 0; padding: .1rem .2rem; }
  .phase-seg { padding: .35rem .8rem; font-size: .84rem; }
  .phase-seg.now { padding: .4rem .95rem; font-size: .88rem; }
  .phase-seg:not(.now) .phase-min { display: none; }
  .topbar { flex: none; padding: 0; gap: .2rem; }
  .topbar-topic, #micStatus, .chip-ctx { display: none; }
  .stage {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: .2rem .6rem; align-items: center;
    padding: .7rem .85rem .8rem;
    border-radius: var(--r-lg);
  }
  .stage-info { display: contents; }
  .step-chip { grid-column: 1; grid-row: 1; justify-self: start; margin: 0; }
  .stage-clock { grid-column: 2; grid-row: 1; }
  .phase-title { grid-column: 1 / -1; grid-row: 2; font-size: 1.2rem; margin-top: .2rem; }
  .step-prompt { grid-column: 1 / -1; grid-row: 3; font-size: .9rem; margin-top: 0; }
  .finish-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; margin-top: .4rem; }
  .clock-mini { min-width: 0; flex-direction: row; align-items: center; gap: .4rem; padding: .2rem .25rem .2rem .6rem; border-radius: var(--r-full); }
  .clock-top { gap: .25rem; }
  .clock-digits { font-size: 1.05rem; margin-inline-end: .2rem; }
  .clock-track, .clock-label { display: none; }
  .banner { padding: .6rem .7rem; gap: .6rem; flex-wrap: wrap; }
  .banner-icon { display: none; }
  .banner .btn { flex: 1 1 auto; }
  .columns { display: flex; flex-direction: column; flex: 1 0 auto; min-height: 0; }
  .col { overflow: visible; background: transparent; box-shadow: none; border-radius: 0; }
  .col-agents, .col-head { display: none; }
  .feed { overflow: visible; padding: .2rem 0 .8rem; flex: 1 0 auto; }
  .feed[data-empty]:empty::before { margin-top: 1.5rem; }
  .msg { max-width: 94%; font-size: .94rem; }
  .step-mark { display: inline-flex; }
  .console {
    position: sticky; bottom: 0; z-index: 4;
    margin-inline: -.6rem; padding: .45rem .55rem .55rem;
    background: var(--sf);
    border-block-start: 1px solid var(--olv);
    gap: .45rem;
  }
  .cue { font-size: .84rem; padding-inline-start: .75rem; min-height: 44px; }
  .cue-skip { padding: 0 .75rem; font-size: .84rem; }
  .inputbar { padding: .2rem .25rem .2rem .5rem; border-radius: var(--r-lg); box-shadow: var(--sh1); }
  .author-select, .iconbtn.mic { display: none; }
  .inputbar .say-box { padding: .55rem .2rem; }
  .console-actions {
    flex-wrap: nowrap; overflow-x: auto;
    margin-inline: -.55rem; padding: .2rem .55rem .25rem;
    scrollbar-width: none;
    scroll-padding-inline: .55rem;
  }
  .console-actions::-webkit-scrollbar { display: none; }
  .console-actions .btn { flex: none; padding: .55rem 1rem; font-size: .9rem; }
  .record-row { grid-template-columns: minmax(0, 1fr); }
  .finale-hero { padding: 1.6rem .9rem 1.4rem; }
  .finale-next .btn { flex: 1 1 auto; }
  .offer-actions .ra-btn-wrap { width: 100%; }
  .offer-actions .ra-btn--t1 { flex: 1; }
}

@media (max-width: 380px) {
  .side-label { font-size: .64rem; letter-spacing: -.01em; }
  .cue-skip span { display: none; }
  .cue-skip { padding: 0 .7rem; }
  .cue-skip::before { content: ""; }
}

@media (prefers-reduced-motion: reduce) {
  .msg, .agent-card, .poll, .record, .banner, .menu, .toast, .peek, .vdot, .finale-glyph, .phase-seg.now { animation: none; }
  .adot.busy, .cue.you .cue-dot, .msg-fac.pending::after, .agent-card.pending .agent-head::after { animation: none; }
  .is-cued::before { animation: none; opacity: .9; transform: none; }
  .clock-fill, .ctx-bar > i, .btn, .iconbtn, .demo-back .ic { transition: none; }
}

.still { animation: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.inputbar { position: relative; }
#timerWrap.over .clock-digits { color: var(--red); }
#timerWrap.over .clock-fill { background: var(--red); }
.phase-title:focus, .finale-title:focus { outline: none; }

.col-head { flex-wrap: wrap; row-gap: .4rem; }

.agent-card.inline { display: none; }

.msg-human.is-private { background: color-mix(in srgb, var(--blue-c) 30%, var(--sf0)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 55%, transparent); }
.msg-author .ic { width: .95em; height: .95em; margin-inline-end: .25rem; vertical-align: -.1em; color: var(--blue); }
.poll-idea {
  font-size: .92rem; font-weight: 500;
  padding: .5rem .75rem;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--blue-c) 30%, var(--sf0));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 55%, transparent);
  overflow-wrap: anywhere;
}
.poll-ctx { font-size: .88rem; color: var(--on-sfv); border-inline-start: 3px solid var(--cue-line); padding-inline-start: .7rem; overflow-wrap: anywhere; }
.poll-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; padding-top: .1rem; }
.poll-tag .ic { width: .7rem; height: .7rem; }
.opt:disabled, .wall-row:disabled, .arow:disabled, .wall-row:not(.can-tap), .arow:not(.can-tap) { cursor: default; }
.wall-row[aria-pressed="true"] { border-color: var(--p); }
.wall-tag { margin-inline-start: .55rem; }
.vdot .ic { width: .85rem; height: .85rem; }
.record-state { font-size: .74rem; font-weight: 600; padding: .12rem .65rem; border-radius: var(--r-full); background: var(--sf4); color: var(--on-sfv); }
.record.is-done .record-state { background: var(--pc); color: var(--on-pc); }
.avatar .ic { width: 1rem; height: 1rem; }
.team-note { align-self: center; font-size: .88rem; color: var(--on-sfv); }

.peek-scrim {
  position: fixed; inset: 0; z-index: 54;
  background: rgba(20, 10, 5, .35);
  backdrop-filter: blur(2px);
  animation: fade-in .25s var(--ease) both;
}
@keyframes fade-in { from { opacity: 0; } }
.peek-note {
  display: flex; flex-direction: column; gap: .45rem;
  background: color-mix(in srgb, var(--yellow-c) 45%, var(--sf1));
  border: 1px solid var(--olv);
  border-radius: var(--r-md);
  padding: .4rem .45rem;
}
.peek-note:focus-within { border-color: var(--p); }
.peek-note-row { display: flex; align-items: flex-end; gap: .45rem; }
.peek-note .say-box { padding: .45rem .35rem; min-height: 2.6rem; font-size: .95rem; line-height: 1.45; }
.peek-note .say-chip { box-shadow: none; }
.peek-note-done { font-size: .88rem; color: var(--on-sfv); padding: .2rem .35rem; }
.peek-sec { background: var(--sf0); border-radius: var(--r-md); padding: .7rem .85rem; box-shadow: var(--sh1); }
.peek-sec h3 { color: var(--p); font-weight: 700; font-size: .92rem; margin-bottom: .35rem; }
.peek-sec .muted { color: var(--on-sfv); font-size: .84rem; }
.peek-empty { color: var(--ol); }

.toasts { inset-block-end: auto; inset-block-start: 1rem; }
:root:not(.is-embed) .toasts { inset-block-start: calc(44px + 1rem); }

.doc-actions .btn.small { min-height: 44px; }
.stat .ic { align-self: center; width: 1.05rem; height: 1.05rem; color: var(--p); }
.stat.zero .ic { color: currentColor; }
.report .muted { color: var(--on-sfv); font-size: .92rem; }
.report-sec p + p { margin-top: .2rem; }

.say-box {
  flex: 1; min-width: 0;
  align-self: center;
  min-height: 2.7rem;
  padding: .6rem .3rem;
  font-size: 1rem; line-height: 1.5;
  color: var(--on-sf);
  white-space: pre-wrap; overflow-wrap: anywhere;
  cursor: default;
}

.say-ph {
  display: block;
  color: var(--ol);
  white-space: nowrap; overflow: hidden;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 2.2rem);
  mask-image: linear-gradient(to left, transparent, #000 2.2rem);
}
.say-ph:dir(rtl) {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 2.2rem);
  mask-image: linear-gradient(to right, transparent, #000 2.2rem);
}
.say-ph b { font-weight: 600; color: var(--cue-acc); }
.author-select.is-static { display: inline-flex; align-items: center; padding: .5rem .9rem; background-image: none; cursor: default; }

.iconbtn[aria-disabled="true"] { opacity: .38; cursor: default; box-shadow: none; }
.iconbtn[aria-disabled="true"]:hover::after { opacity: 0; }
.iconbtn[aria-disabled="true"]:active { transform: none; }

.say-picks { display: flex; flex-wrap: wrap; gap: .45rem; }
.say-chip {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: .45rem 1rem;
  border-radius: var(--r-full);
  border: 1.5px solid var(--olv);
  background: var(--sf0);
  color: var(--on-sf);
  font-size: .9rem; font-weight: 600; line-height: 1.3;
  text-align: start;
  box-shadow: var(--sh1);
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s var(--ease);
  animation: msg-in .3s var(--spring) both;
}
.say-chip:hover { border-color: var(--p); }
.say-chip:active { transform: scale(.96); }
.say-chip[aria-pressed="true"] { background: var(--pc); color: var(--on-pc); border-color: var(--pc); }

@media (min-width: 760px) and (min-height: 561px) {
  .room:has(#sayPicks:not([hidden])) .columns { min-height: 12rem; }
}

.say-picks.silent .say-chip { border-color: color-mix(in srgb, var(--blue) 55%, transparent); }
.say-picks.silent .say-chip:hover { border-color: var(--blue); }
.say-picks.silent .say-chip[aria-pressed="true"] { background: var(--blue-c); color: var(--on-blue-c); border-color: var(--blue); }

@media (max-width: 759px), (max-height: 560px) {
  .agent-card.inline { display: block; }

  .banner { position: sticky; inset-block-start: calc(var(--head-h, 3.75rem) + .35rem); z-index: 3; background: none; box-shadow: none; }
  .banner::before, .banner::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
  .banner::before { inset: calc(-.35rem - 2px) -.6rem -.55rem; background: var(--sf); }
  .banner::after { inset: 0; border-radius: inherit; background: var(--yellow-c); box-shadow: var(--sh1); }
  .banner-text { flex: 1 1 100%; }
  .toasts { inset-block-start: 4rem; }
  :root:not(.is-embed) .toasts { inset-block-start: calc(44px + 4rem); }
}
@media (prefers-reduced-motion: reduce) {
  .peek-scrim, .say-chip { animation: none; }
  .say-chip { transition: none; }
}

@media (max-width: 520px) {
  .side-item { flex: 1 1 auto; min-width: 44px; padding-inline: .15rem; }
  .side-foot #themeBtn { display: none; }
}
