/* The Council (council.html). Tokens and components from theme.css; no raw colors here.
   Stage layout: portraits across the top by axis position, the speaker at full size and color,
   the axis under them, one speech card with a tail pointing at the speaker. */
.cn{display:flex;flex-direction:column;gap:var(--space-m)}
.cn-pick{display:flex;flex-direction:column;gap:var(--space-xs)}
.tab-empty{color:var(--neutral-6)}
.seat-pick summary{font-size:13px}
.seat-chips{display:flex;flex-wrap:wrap;gap:var(--space-xxs);margin:var(--space-xs) 0}
.seat-chip[aria-pressed="true"]{background:var(--neutral-3);box-shadow:inset 0 0 0 1px var(--neutral-5)}
.seat-chip[aria-pressed="false"]{color:var(--neutral-7)}
.seat-chip[aria-pressed="false"] .dot{background:transparent;box-shadow:inset 0 0 0 1.5px var(--c)}
.seat-chip.is-off{color:var(--neutral-6);box-shadow:inset 0 0 0 1px var(--neutral-4);cursor:default;opacity:.8}
.seat-chip.is-off .dot{opacity:.45}
.off-note{font-size:11px;line-height:16px;color:var(--neutral-7)}
.seat-pick .hint{display:flex;align-items:center;gap:var(--space-xs);flex-wrap:wrap}

/* stage */
.stage{padding:var(--space-l);display:flex;flex-direction:column;gap:var(--space-m)}
.stage-q{display:flex;flex-direction:column;gap:2px}
.stage-ask{font-family:var(--font-display);font-size:18px;line-height:26px;text-wrap:pretty}
.stage-note{font-size:13px;line-height:18px;color:var(--warning);margin-top:var(--space-xxs)}
.stage-empty{display:flex;flex-direction:column;gap:var(--space-xs);padding:var(--space-xl) 0;text-align:center;align-items:center}
.seats{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:var(--space-s);align-items:start;padding-top:var(--space-xs)}
.seat{display:flex;flex-direction:column;align-items:center;gap:var(--space-xxs);text-align:center;transform-origin:50% 100%;
  transition:transform var(--motion-large-duration) var(--motion-large-easing),opacity var(--motion-large-duration) var(--motion-large-easing),filter var(--motion-large-duration) var(--motion-large-easing)}
button.seat{border:0;background:none;padding:var(--space-xxs);border-radius:var(--radius-m);color:inherit;font:inherit;cursor:pointer}
button.seat:hover .face{transform:translateY(-2px)}
button.seat:focus-visible{outline:2px solid var(--c);outline-offset:2px}
.face::before{content:"";position:absolute;inset:-4px;border-radius:50%;box-shadow:0 0 0 2px var(--c);opacity:0;transition:opacity var(--motion-duration) var(--motion-easing);pointer-events:none}
button.seat:hover .face::before,button.seat:focus-visible .face::before{opacity:.7}
button.ax-dot{border:0;padding:0;cursor:pointer}
button.ax-dot:hover{transform:translate(-50%,-50%) scale(1.3)}
button.ax-dot:focus-visible{outline:2px solid var(--c);outline-offset:2px}
.ax-hit{position:absolute;inset:-10px;border:0;background:none;padding:0;border-radius:50%;cursor:pointer}
.ax-hit:focus-visible{outline:2px solid var(--c);outline-offset:-6px}
.ax-dot-wrap:hover{transform:translate(-50%,-50%) scale(1.3)}
.tag-btn{border:0;cursor:pointer;font:inherit;font-size:12px;line-height:16px;transition:background-color var(--motion-duration) var(--motion-easing)}
.tag-btn:hover{background:var(--neutral-4)}
.ref-n{font-size:10px;line-height:16px;font-weight:600;opacity:.7;font-variant-numeric:tabular-nums}
.ref-mark{border:0;cursor:pointer;min-width:18px;height:18px;padding:0 4px;border-radius:var(--radius-full);font-family:var(--font-data);font-size:10px;line-height:18px;font-weight:600;
  background:var(--option-badge-background);color:var(--option-badge-foreground);font-variant-numeric:tabular-nums;transition:background-color var(--motion-duration) var(--motion-easing)}
.ref-mark:hover{background:var(--neutral-4)}
button.seat:hover .seat-nm{text-decoration:underline;text-decoration-color:var(--neutral-5);text-underline-offset:3px}
.face{transition:transform var(--motion-duration) var(--motion-easing)}
.who-btn{display:inline-flex;align-items:center;gap:var(--space-xs);border:0;background:none;padding:2px var(--space-xxs) 2px 2px;margin-left:-2px;border-radius:var(--radius-s);color:inherit;font:inherit;cursor:pointer}
.who-btn:hover{background:var(--neutral-3)}
.who-btn b{font-weight:600}
.research-head{display:flex;gap:var(--space-s);align-items:center}
.av.av-lg{width:64px;height:64px}
.av.av-lg .mono{font-size:22px}
.seat.off{transform:scale(.8);opacity:.55;filter:grayscale(.55)}
.seat.on{transform:scale(1);opacity:1;filter:none}
.seat.dim{opacity:.4;filter:grayscale(1)}
.face{position:relative;width:min(112px,100%);aspect-ratio:1;display:grid;place-items:center}
.face img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain}
.mono{width:86%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--c) 18%,var(--neutral-1));color:var(--c);
  box-shadow:inset 0 0 0 2px var(--c);font-family:var(--font-display);font-size:28px;font-weight:500;grid-area:1/1}
.face img{grid-area:1/1}
.face img + .mono{visibility:hidden}
.seat.narr .face::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:1.5px dashed var(--neutral-6);pointer-events:none}
.seat.on.narr .face::after{border-color:var(--c)}
.seat-nm{font-size:14px;line-height:20px;font-weight:500;margin-top:var(--space-xxs)}
.seat-note{font-size:11px;line-height:14px;color:var(--neutral-7)}

/* axis: same gradient as the spectrum's axis bar */
.ax{display:flex;flex-direction:column;gap:var(--space-xxs)}
.ax-bar{position:relative;height:4px;border-radius:var(--radius-full);background:linear-gradient(90deg,var(--color-1) 0%,var(--neutral-4) 50%,var(--color-1) 100%);margin:6px 6px 0}
.ax-dot{position:absolute;top:50%;width:12px;height:12px;border-radius:50%;background:var(--c);transform:translate(-50%,-50%);box-shadow:0 0 0 2px var(--neutral-1);
  transition:transform var(--motion-large-duration) var(--motion-large-easing)}
.ax-dot.on{transform:translate(-50%,-50%) scale(1.45);box-shadow:0 0 0 2px var(--neutral-1),0 0 0 3.5px var(--c)}
.ax .mini-l{margin-top:var(--space-xxs)}

/* speech card */
.speech{position:relative;background:var(--neutral-2);border-radius:var(--radius-m);box-shadow:var(--border-shadow-s);padding:var(--space-m) var(--space-l) var(--space-l);display:flex;flex-direction:column;gap:var(--space-s);margin-top:var(--space-xs)}
.speech[data-for]::before{content:"";position:absolute;top:-7px;left:calc(var(--tail-x,50%) - 7px);width:14px;height:14px;background:var(--neutral-2);
  box-shadow:-1px -1px 0 0 var(--neutral-4);transform:rotate(45deg);border-radius:2px 0 0 0;transition:left var(--motion-large-duration) var(--motion-large-easing)}
.speech-head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-xs);font-size:14px;line-height:20px}
.speech-head b{font-weight:600}
.pill{font-size:12px;line-height:16px;font-weight:500;border-radius:var(--radius-full);padding:2px var(--space-xs);color:var(--c);background:color-mix(in srgb,var(--c) 14%,transparent)}
.pill-gk{color:var(--neutral-8);background:var(--neutral-3)}
.ans{font-size:12px;line-height:16px}
.narr-tag{font-size:11px;line-height:16px;color:var(--neutral-7);border:1px dashed var(--neutral-5);border-radius:var(--radius-full);padding:1px var(--space-xs)}
.speech-text{font-family:var(--font-display);font-size:21px;line-height:30px;color:var(--neutral-10);text-wrap:pretty;margin:0}
.speech.is-note .speech-text,.speech.is-wait .speech-text{font-size:18px;line-height:26px}
.speech.is-wait .speech-text{animation:cn-breathe 1.6s var(--motion-easing) infinite alternate}
@keyframes cn-breathe{from{opacity:.55}to{opacity:1}}
.speech-body{font-family:var(--font-body);font-size:15px;line-height:23px;color:var(--neutral-8);margin:0;max-width:72ch;text-wrap:pretty}
.fns{display:inline-flex;gap:1px;margin-left:2px;vertical-align:super;line-height:0}
.fn{border:0;background:none;padding:0 2px;font-family:var(--font-data);font-size:11px;line-height:14px;font-weight:600;color:var(--color-1);border-radius:var(--radius-xs);cursor:pointer;font-variant-numeric:tabular-nums}
.fn:hover{background:var(--option-badge-background)}
.speech-text .fn{font-size:12px}
.srcrow{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-xxs);padding-top:var(--space-s);border-top:1px solid var(--neutral-4)}
.srcrow .lab{margin-right:var(--space-xxs)}
.srcrow .ref{display:inline-flex;align-items:center;gap:5px}
.cites-inline{display:inline-flex;flex-wrap:wrap;gap:var(--space-xxs);vertical-align:2px;margin-left:var(--space-xxs)}
.cites-inline .ref{font-size:11px;line-height:16px;padding:1px 6px;white-space:nowrap}
.ref-out{background:transparent;color:var(--neutral-8);box-shadow:inset 0 0 0 1px var(--neutral-5)}
.ref-out:hover{background:var(--neutral-3)}
.sq{font-style:italic}
.sq::before{content:"“"}.sq::after{content:"”"}
.turn-nav{display:flex;align-items:center;justify-content:center;gap:var(--space-xs)}
.turn-count{font-size:12px;line-height:16px;color:var(--neutral-7);font-variant-numeric:tabular-nums;min-width:56px;text-align:center}

.av{width:28px;height:28px;display:grid;place-items:center;flex:0 0 auto}
.av img,.av .mono{grid-area:1/1;width:100%;height:100%}
.av img{object-fit:contain;position:relative;z-index:1}
.av .mono{font-size:12px;box-shadow:inset 0 0 0 1.5px var(--c)}
.av img + .mono{visibility:hidden}
.led-row .av{width:22px;height:22px}

/* ledger: earlier turns as one line each */
.ledger .led{list-style:none;margin:var(--space-xs) 0 0;padding:0;display:flex;flex-direction:column}
.led-q{font-size:12px;line-height:16px;font-weight:500;color:var(--neutral-7);padding:var(--space-xs) var(--space-xs) 2px}
.led-row{width:100%;display:flex;align-items:center;gap:var(--space-xs);border:0;background:none;text-align:left;padding:6px var(--space-xs);border-radius:var(--radius-s);font-size:13px;line-height:18px;min-width:0;transition:background-color var(--motion-duration) var(--motion-easing)}
.led-row:hover{background:var(--neutral-3)}
.led-row b{font-weight:500;flex:0 0 auto}
.led-txt{color:var(--neutral-7);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}

/* where they split */
.split{display:flex;flex-direction:column;gap:var(--space-s);border-top:1px solid var(--neutral-4);padding-top:var(--space-m)}
.ax-sm .ax-bar{margin-top:22px}
.ax-lab{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);font-size:11px;line-height:14px;color:var(--neutral-8);white-space:nowrap}
.ax-lab.l{left:-6px;transform:none}.ax-lab.r{left:auto;right:-6px;transform:none}
.sp-grps{display:flex;flex-wrap:wrap;gap:var(--space-s) var(--space-l)}
.sp-grp{display:flex;flex-direction:column;gap:var(--space-xxs)}
.sp-names{display:flex;flex-wrap:wrap;gap:var(--space-xxs)}
.lab{font-size:12px;line-height:16px;font-weight:500;color:var(--neutral-7)}
.sp-line{display:flex;flex-direction:column;gap:2px;font-size:15px;line-height:22px;max-width:70ch}

/* composer: one rounded pill, quiet suggestions above it; sticky at the bottom on phones */
.composer{display:flex;flex-direction:column;gap:var(--space-xs);position:sticky;bottom:0;z-index:5;padding:var(--space-l) 0 var(--space-m);
  background:linear-gradient(to bottom,transparent,var(--neutral-2) var(--space-l))}
.sugg-row{display:flex;flex-wrap:wrap;gap:2px;margin-left:var(--space-xs)}
.sugg{color:var(--neutral-7);font-weight:500;text-align:left}
.sugg:hover{color:var(--neutral-10)}
.pill-field{display:flex;align-items:flex-end;gap:var(--space-xs);min-height:56px;padding:var(--space-xs) var(--space-xs) var(--space-xs) var(--space-m);
  background:var(--neutral-1);border-radius:var(--radius-l);box-shadow:var(--border-shadow-s),var(--shadow-m);transition:box-shadow var(--motion-duration) var(--motion-easing)}
.pill-field:focus-within{box-shadow:inset 0 0 0 1px var(--color-1-translucent),var(--shadow-m)}
.pill-input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--neutral-10);font-family:var(--font-body);font-size:16px;line-height:22px;letter-spacing:.01em;
  resize:none;padding:9px 0;margin:0;max-height:96px;overflow-y:auto}
.pill-input::placeholder{color:var(--neutral-7)}
.pill-input:disabled{color:var(--neutral-7)}
.send-round{flex:0 0 auto;width:40px;height:40px;border:0;border-radius:50%;display:grid;place-items:center;background:var(--color-1);color:var(--on-color-1);
  transition:box-shadow var(--motion-duration) var(--motion-easing),transform var(--motion-duration) var(--motion-easing),background-color var(--motion-duration) var(--motion-easing)}
.send-round:hover:not(:disabled){box-shadow:var(--shadow-s)}
.send-round:active:not(:disabled){transform:translateY(var(--motion-press-distance))}
.send-round:disabled{background:var(--neutral-3);color:var(--neutral-6);cursor:default}
.send-round .ico{width:18px;height:18px}
.doc-tag{flex:0 0 auto;align-self:center;display:inline-flex;align-items:center;gap:2px;font-size:12px;line-height:16px;font-weight:500;border-radius:var(--radius-full);
  padding:3px 3px 3px var(--space-xs);background:var(--neutral-3);color:var(--neutral-8);white-space:nowrap}
.doc-tag button{border:0;background:none;padding:0;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;color:var(--neutral-7)}
.doc-tag button:hover{background:var(--neutral-4);color:var(--neutral-10)}
.doc-tag .ico{width:12px;height:12px}
.gate-note{display:flex;align-items:center;gap:var(--space-xs);font-size:13px;line-height:18px;color:var(--neutral-7);margin-left:var(--space-xs)}
.composer .msg{margin-left:var(--space-m)}
.composer-gate .btns{margin-left:var(--space-xs)}
@media (max-width:700px){
  .composer{margin:0 calc(-1 * var(--space-m));padding:var(--space-l) var(--space-m) calc(var(--space-s) + env(safe-area-inset-bottom,0px))}
  .sugg-row{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-left:0}
  .sugg-row::-webkit-scrollbar{display:none}
  .sugg{white-space:nowrap}
}
.dr-work{font-size:24px;line-height:32px}
.drawer .why{margin:0}

@media (max-width:600px){
  .stage{padding:var(--space-m)}
  .speech{padding:var(--space-s) var(--space-m) var(--space-m)}
  .speech-text{font-size:19px;line-height:27px}
  .speech-body{font-size:14px;line-height:21px}
  .seat-nm{font-size:12px;line-height:16px}
  .seat-note{font-size:10px;line-height:12px}
}

/* ---------- Chat layout (Josh, 2026-11-25): a group thread, large portrait beside each message ---------- */
.lay-tg{margin-left:auto;flex:0 0 auto}
.lay-tg .tgl{padding:var(--space-xxs) var(--space-s);font-size:13px}
.stage-top{display:flex;align-items:center;justify-content:space-between;gap:var(--space-s)}
.chat{display:flex;flex-direction:column;overflow:clip}
.chat-head{display:flex;align-items:center;gap:var(--space-s);padding:var(--space-s) var(--space-m);border-bottom:1px solid var(--neutral-4);background:var(--neutral-1);
  position:sticky;top:0;z-index:4}
.chat-title{display:flex;flex-direction:column;min-width:0}
.chat-title b{font-family:var(--font-display);font-size:18px;line-height:24px;font-weight:500}
.chat-title .muted{font-size:12px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stack-faces{display:flex;flex:0 0 auto;padding-left:10px}
.stack-faces > *{margin-left:-10px}
.stack-face{border:0;padding:0;background:none;border-radius:50%;cursor:pointer;transition:transform var(--motion-duration) var(--motion-easing);position:relative}
.stack-face:hover,.stack-face:focus-visible{transform:translateY(-2px);z-index:1}
.stack-face:focus-visible{outline:2px solid var(--c);outline-offset:1px}
.stack-faces .av{width:36px;height:36px;border-radius:50%;overflow:hidden;background:color-mix(in srgb,var(--c) 24%,var(--neutral-1));box-shadow:0 0 0 2px var(--neutral-1)}
.stack-faces .av img{object-fit:cover;transform:scale(1.12)}
.msg-row.typing .stack-faces .av{width:34px;height:34px}
.msg-row.typing .stack-faces{width:72px;justify-content:flex-start}

.thread{display:flex;flex-direction:column;gap:var(--space-m);padding:var(--space-l) var(--space-m) var(--space-xl);min-height:320px}
.msg-row{display:flex;align-items:flex-start;gap:var(--space-s);max-width:820px}
.msg-row[data-new]{animation:msg-in var(--motion-large-duration) var(--motion-large-easing)}
.msg-row.grouped{margin-top:calc(-1 * var(--space-s))}
@keyframes msg-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.msg-row.me{align-self:flex-end;justify-content:flex-end;max-width:min(560px,85%)}
.msg-row.flash .bubble{box-shadow:0 0 0 2px var(--c)}

.cface,.cface-spacer{flex:0 0 auto;width:68px;height:68px}
.cface{position:relative;border:0;padding:0;border-radius:50%;background:color-mix(in srgb,var(--c) 24%,var(--neutral-1));overflow:hidden;cursor:pointer;
  display:grid;place-items:center;box-shadow:0 0 0 2px var(--neutral-1),0 0 0 3.5px color-mix(in srgb,var(--c) 55%,transparent);
  transition:transform var(--motion-duration) var(--motion-easing),box-shadow var(--motion-duration) var(--motion-easing)}
.cface img,.cface .mono{grid-area:1/1;width:100%;height:100%}
.cface img{object-fit:cover;transform:scale(1.12) translateY(3%);position:relative;z-index:1}
.cface .mono{border-radius:50%;font-size:24px;box-shadow:none;background:transparent}
.cface img + .mono{visibility:hidden}
.cface:hover{transform:translateY(-2px);box-shadow:0 0 0 2px var(--neutral-1),0 0 0 3.5px var(--c)}
.cface:focus-visible{outline:2px solid var(--c);outline-offset:3px}
.cface.narr{box-shadow:0 0 0 2px var(--neutral-1);outline:1.5px dashed color-mix(in srgb,var(--c) 70%,transparent);outline-offset:3px}
.cface.narr:focus-visible{outline-style:solid}

.msg-col{display:flex;flex-direction:column;gap:var(--space-xxs);min-width:0;flex:1}
.msg-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-xs);padding-left:var(--space-xs)}
.msg-meta b{font-size:14px;line-height:20px;font-weight:600}
.msg-meta .muted{font-size:12px;line-height:16px}
.bubble{background:var(--neutral-2);border-radius:var(--radius-l);border-top-left-radius:var(--radius-xs);padding:var(--space-s) var(--space-m) var(--space-m);
  display:flex;flex-direction:column;gap:var(--space-xs);box-shadow:var(--border-shadow-s);width:fit-content;max-width:100%}
.b-top{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-xs)}
.b-head{margin:0;font-family:var(--font-display);font-size:16px;line-height:24px;color:var(--neutral-10);text-wrap:pretty}
.b-body{margin:0;font-size:14px;line-height:22px;color:var(--neutral-8);text-wrap:pretty}
.bubble .srcrow{padding-top:var(--space-xs)}
.bubble.me{background:var(--color-1);color:var(--on-color-1);border-radius:var(--radius-l);border-top-right-radius:var(--radius-xs);padding:var(--space-s) var(--space-m);
  font-size:15px;line-height:22px;box-shadow:none}
.reply-to{align-self:flex-start;display:inline-flex;align-items:center;gap:2px;border:0;background:none;padding:0;font-size:12px;line-height:16px;font-weight:500;color:var(--neutral-7);cursor:pointer}
.reply-to:hover{color:var(--neutral-10)}
.reply-to .ico{width:12px;height:12px;transform:rotate(180deg) scaleX(-1)}

.typing-b{flex-direction:row;align-items:center;gap:var(--space-s);padding:var(--space-s) var(--space-m)}
.typing-b .muted{font-size:13px}
.dots{display:inline-flex;gap:4px}
.dots i{width:7px;height:7px;border-radius:50%;background:var(--neutral-6);animation:dot 1.2s infinite ease-in-out}
.dots i:nth-child(2){animation-delay:.15s}.dots i:nth-child(3){animation-delay:.3s}
@keyframes dot{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-4px);opacity:1}}

.sys-note,.sys-line{align-self:center;text-align:center;font-size:12px;line-height:16px;color:var(--neutral-7);max-width:520px}
.sys-note{background:var(--warning-transparent);color:var(--neutral-9);border-radius:var(--radius-full);padding:4px var(--space-s)}
.sys-line{display:flex;align-items:center;gap:var(--space-s);width:100%;max-width:none;font-weight:500}
.sys-line::before,.sys-line::after{content:"";flex:1;height:1px;background:var(--neutral-4)}
.sys-card{align-self:stretch;background:var(--neutral-2);border-radius:var(--radius-m);padding:var(--space-m)}
.sys-card .split{border-top:0;padding-top:0}
.sys-card .split > .sub{display:none}
.chat-empty{display:flex;flex-direction:column;align-items:center;gap:var(--space-m);padding:var(--space-xl) 0;text-align:center}
.empty-faces{display:flex;gap:var(--space-s);flex-wrap:wrap;justify-content:center}

@media (max-width:600px){
  .cface,.cface-spacer{width:48px;height:48px}
  .cface .mono{font-size:18px}
  .thread{padding:var(--space-m) var(--space-s) var(--space-l);gap:var(--space-s)}
  .msg-row{gap:var(--space-xs)}
  .bubble{padding:var(--space-xs) var(--space-s) var(--space-s)}
  .b-head{font-size:15px;line-height:22px}
  .chat-head{padding:var(--space-xs) var(--space-s);gap:var(--space-xs)}
  .stack-faces .av{width:30px;height:30px}
  .chat-title b{font-size:16px;line-height:22px}
}

/* ---------- iMessage feel (Josh, 2026-11-25): centered group header, runs with tails, group details sheet ---------- */
.chat-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.ch-side.r{justify-self:end}
.ch-center{display:flex;flex-direction:column;align-items:center;gap:2px;border:0;background:none;padding:var(--space-xxs) var(--space-s);border-radius:var(--radius-m);cursor:pointer;color:inherit;font:inherit;
  transition:background-color var(--motion-duration) var(--motion-easing)}
.ch-center:hover:not(:disabled){background:var(--neutral-3)}
.ch-center:disabled{cursor:default}
.ch-center b{font-family:var(--font-display);font-size:17px;line-height:22px;font-weight:500}
.ch-count{display:inline-flex;align-items:center;gap:1px;font-size:12px;line-height:16px;color:var(--neutral-7);min-height:24px}
.ch-count .ico{width:12px;height:12px}
.ch-center .stack-faces{padding-left:10px}
.stack-faces.empty{width:36px;height:36px;border-radius:50%;background:var(--neutral-3);display:grid;place-items:center;color:var(--neutral-7);padding:0}
.stack-faces .stack-face{display:inline-flex}

.msg-row{align-items:flex-end}
.msg-row.cont{margin-top:calc(-1 * var(--space-s))}
.msg-row:not(.last) .bubble{border-bottom-left-radius:var(--radius-xs)}
.bubble{border-top-left-radius:var(--radius-l)}
.msg-row.cont .bubble{border-top-left-radius:var(--radius-xs)}
.bubble.tail{position:relative;border-bottom-left-radius:var(--radius-xs)}
.bubble.tail::after{content:"";position:absolute;left:-6px;bottom:0;width:12px;height:14px;background:inherit;
  clip-path:path("M12 0 C12 8 8 12 0 14 L12 14 Z")}
.bubble.narr.tail::after{background:var(--neutral-2)}
.bubble.me{border-bottom-right-radius:var(--radius-xs);border-top-right-radius:var(--radius-l);position:relative}
.bubble.me::after{content:"";position:absolute;right:-6px;bottom:0;width:12px;height:14px;background:var(--color-1);clip-path:path("M0 0 C0 8 4 12 12 14 L0 14 Z")}
.sys-line.plain{font-weight:400}
.sys-line.plain::before,.sys-line.plain::after{display:none}

/* group details sheet */
.g-head{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-xxs)}
.g-head .stack-faces{padding-left:10px;margin-bottom:var(--space-xxs)}
.g-sec{display:flex;flex-direction:column;gap:var(--space-xs);border-top:1px solid var(--neutral-4);padding-top:var(--space-s)}
.g-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.g-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--space-s);padding:var(--space-xs) 0}
.g-row + .g-row{border-top:1px solid var(--neutral-3)}
.g-face{border:0;padding:0;background:none;border-radius:50%;cursor:pointer}
.g-face:disabled{cursor:default}
.g-face .av{width:52px;height:52px;border-radius:50%;overflow:hidden;background:color-mix(in srgb,var(--c) 24%,var(--neutral-1))}
.g-face .av img{object-fit:cover;transform:scale(1.12)}
.g-face:focus-visible{outline:2px solid var(--c);outline-offset:2px}
.g-txt{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.g-txt b{font-weight:600}
.g-txt .muted{font-size:12px;line-height:16px}
.g-txt .pill{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-kick{color:var(--error)}
.g-off{font-size:12px;line-height:16px;color:var(--neutral-7);text-align:right;max-width:140px}
.g-row.off .av{filter:grayscale(1);opacity:.5}
.g-row.off b{color:var(--neutral-7)}
.g-reset{align-self:flex-start}
.g-search{min-height:40px;resize:none}

@media (max-width:600px){
  .chat-head{display:flex}
  .ch-side:first-child{display:none}
  .ch-center{flex:1;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:var(--space-xs);align-items:center;justify-items:start;text-align:left;padding:var(--space-xxs)}
  .ch-center .stack-faces{grid-row:1 / span 2}
  .ch-center b{font-size:16px;line-height:20px}
  .ch-side.r{margin-left:auto}
  .b-top{flex-wrap:nowrap;min-width:0;gap:var(--space-xxs)}
  .b-top .pill{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
  .b-top .narr-tag{flex:0 0 auto;font-size:10px;padding:0 6px}
  .g-face .av{width:44px;height:44px}
  .g-off{max-width:96px}
}

/* Moderator ("The Council") closes each round as a normal message; notes stay small centered lines. */
.cface.mod{display:grid;place-items:center;background:var(--neutral-3);color:var(--neutral-8);box-shadow:0 0 0 2px var(--neutral-1),0 0 0 3.5px var(--neutral-4);cursor:default}
.cface.mod:hover{transform:none}
.cface.mod .ico{width:40%;height:40%;stroke-width:1.75}
.mod-b{background:var(--neutral-1);box-shadow:inset 0 0 0 1px var(--neutral-4)}
.mod-b .b-head{font-size:16px;line-height:24px}
.mod-name{border:0;background:none;padding:0;font:inherit;font-weight:600;color:var(--neutral-10);cursor:pointer;text-decoration:underline;text-decoration-color:var(--c);text-decoration-thickness:2px;text-underline-offset:3px}
.mod-name:hover{color:var(--c)}
.mod-st{color:var(--neutral-7)}
.sys-note{background:none;color:var(--neutral-7);padding:0}

/* Ask anything (Josh, 2026-11-25): the topic lives in the chat header and can be changed there. */
.ch-wrap{display:flex;flex-direction:column;align-items:center;gap:1px}
.ch-faces{border:0;background:none;padding:2px 6px;border-radius:var(--radius-m);cursor:pointer}
.ch-faces:disabled{cursor:default}
.ch-faces:hover:not(:disabled){background:var(--neutral-3)}
.ch-topic{display:inline-flex;align-items:center;gap:2px;min-height:32px;border:0;background:none;padding:0 var(--space-xs);border-radius:var(--radius-s);cursor:pointer;color:var(--neutral-10);
  font-family:var(--font-display);font-size:17px;line-height:22px;font-weight:500;max-width:min(420px,60vw);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-topic .ico{width:14px;height:14px;color:var(--neutral-7);flex:0 0 auto}
.ch-topic:hover:not(.static){background:var(--neutral-3)}
.ch-topic.static{cursor:default}
button.ch-count{border:0;background:none;padding:0 var(--space-xxs);cursor:pointer;border-radius:var(--radius-xs)}
button.ch-count:hover{color:var(--neutral-10)}
.topic-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.topic-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:var(--space-s);border:0;background:none;text-align:left;padding:var(--space-s) var(--space-xs);
  border-bottom:1px solid var(--neutral-3);cursor:pointer;color:inherit;font:inherit;border-radius:var(--radius-s)}
.topic-row:hover:not(:disabled){background:var(--neutral-2)}
.topic-row:disabled{color:var(--neutral-6);cursor:default}
.topic-row b{font-weight:500}
.topic-row .muted{font-size:12px}
.topic-row.on{color:var(--color-1)}
.mod-chips{display:flex;flex-wrap:wrap;gap:var(--space-xxs);margin-top:var(--space-xxs)}
.mod-chip{font-size:13px;line-height:18px;cursor:pointer}
@media (max-width:600px){
  .ch-wrap{flex:1;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:var(--space-xs);align-items:center;justify-items:start}
  .ch-faces{grid-row:1 / span 2;padding:0}
  .ch-topic{font-size:16px;line-height:20px;padding:0;max-width:100%;min-height:32px}
  .ch-count{padding:0;min-height:28px}
}

/* Real back-and-forth (Josh, 2026-11-25): a compact quote of the message being answered, inferred labels, Keep going. */
.reply-q{align-self:stretch;display:flex;flex-direction:column;gap:1px;border:0;background:color-mix(in srgb,var(--neutral-3) 70%,transparent);border-radius:var(--radius-s);
  box-shadow:inset 3px 0 0 var(--rc,var(--neutral-5));padding:var(--space-xxs) var(--space-s);text-align:left;cursor:pointer;color:inherit;font:inherit;min-width:0}
.reply-q:hover{background:var(--neutral-3)}
.reply-who{display:inline-flex;align-items:center;gap:4px;font-size:12px;line-height:16px;font-weight:600;color:var(--neutral-8)}
.reply-who .ico{width:12px;height:12px}
.reply-txt{font-size:12px;line-height:16px;color:var(--neutral-7);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.status.inf-tag{color:var(--warning);background:var(--warning-transparent);white-space:nowrap}
.msg-row.flash .bubble{box-shadow:0 0 0 2px var(--c)}
.keep-row{display:flex;align-items:center;gap:var(--space-s);flex-wrap:wrap;padding-left:calc(68px + var(--space-s))}
.keep-row .btn .ico{width:14px;height:14px}
@media (max-width:600px){ .keep-row{padding-left:calc(48px + var(--space-xs))} .status.inf-tag{font-size:11px} }

/* ---------- UX pass (2026-11-25): calmer bubbles, first-run starters, errors with a retry, phone width ---------- */
.cn-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.bubble .srcrow{border-top:0;padding-top:2px}
.ch-topic-t{min-width:0;overflow:hidden;text-overflow:ellipsis}
.sugg-row[inert]{opacity:.45}
.chat-empty{padding:var(--space-xxl) var(--space-m) var(--space-xl);gap:var(--space-s)}
.chat-empty .empty-faces{margin-bottom:var(--space-xs)}
.empty-sub{max-width:44ch;font-size:14px;line-height:20px;text-wrap:balance}
.starters{display:flex;flex-direction:column;align-items:center;gap:var(--space-xs);margin-top:var(--space-s)}
.starter{font-size:14px;line-height:20px;padding:var(--space-xs) var(--space-m);border-radius:var(--radius-full);cursor:pointer;background:var(--neutral-1);min-height:40px}
.sys-note.is-err{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--space-xs);color:var(--error);font-size:13px;line-height:18px}
.sys-note.is-err .btn{color:var(--neutral-10)}
@media (max-width:600px){
  /* The thread runs edge to edge on phones so bubbles get the full width. */
  .chat{margin-inline:calc(-1 * var(--space-m));border-radius:0;box-shadow:0 -1px 0 var(--neutral-4),0 1px 0 var(--neutral-4)}
  .chat-head{padding-inline:var(--space-m)}
  .starters{align-items:stretch;align-self:stretch}
  .starter{justify-content:center;text-align:center}
}

/* Receipts (Josh, 2026-11-25): a quiet parenthetical after each sentence. Research sources and verses open the drawer;
   a known work named for an educated guess is plain text. */
.rcpt{font-family:var(--font-body);font-size:12px;line-height:16px;color:var(--neutral-7);white-space:normal}
.b-head .rcpt{font-size:13px}
.rcpt-src{border:0;background:none;padding:0;font:inherit;color:var(--color-1);cursor:pointer;text-decoration:underline;text-decoration-color:var(--color-1-transparent);text-underline-offset:2px}
.rcpt-src:hover{text-decoration-color:currentColor}
.rcpt-src.v{color:var(--neutral-8);text-decoration-color:var(--neutral-5)}
.rcpt-gen{font-style:italic}
.rcpt-basis{font-style:normal;color:var(--neutral-7)}

/* First run: choose who's in the chat from contact cards (Josh, 2026-11-25). */
.pcards-wrap{display:flex;flex-direction:column;gap:var(--space-s);width:100%;margin-top:var(--space-xs)}
.pcards-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-s);min-height:28px}
.pcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:var(--space-xs)}
.pcard{position:relative;display:flex;align-items:center;gap:var(--space-s);padding:var(--space-xs) var(--space-s) var(--space-xs) var(--space-xs);border:0;border-radius:var(--radius-m);
  background:var(--neutral-1);box-shadow:var(--border-shadow-s),var(--shadow-s);color:inherit;font:inherit;text-align:left;cursor:pointer;min-width:0;
  transition:box-shadow var(--motion-duration) var(--motion-easing),transform var(--motion-duration) var(--motion-easing),opacity var(--motion-duration) var(--motion-easing)}
.pcard:hover:not(:disabled){transform:translateY(-1px);box-shadow:var(--border-shadow-s),var(--shadow-m)}
.pcard:focus-visible{outline:2px solid var(--c);outline-offset:2px}
.pcard.on,.pcard.on:hover:not(:disabled){box-shadow:inset 0 0 0 2px var(--c),var(--shadow-m)}
.pcard:disabled{opacity:.45;cursor:default}
.pcard-face{position:relative;display:grid;place-items:center;flex:0 0 auto}
.pcard-face .av{width:44px;height:44px;border-radius:50%;overflow:hidden;background:color-mix(in srgb,var(--c) 24%,var(--neutral-1));box-shadow:0 0 0 2px var(--neutral-1),0 0 0 3px color-mix(in srgb,var(--c) 55%,transparent)}
.pcard-face .av img{object-fit:cover;transform:scale(1.12)}
.pcard-check{position:absolute;z-index:2;right:-4px;bottom:-2px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:var(--c);color:var(--neutral-1);box-shadow:0 0 0 2px var(--neutral-1)}
.pcard-check .ico{width:11px;height:11px;stroke-width:3}
.pcard-txt{display:flex;flex-direction:column;min-width:0}
.pcard-name{font-size:14px;line-height:18px;font-weight:600}
.pcard-meta{font-size:12px;line-height:16px;color:var(--neutral-7)}
@media (max-width:600px){
  .pcards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pcard{gap:var(--space-xs);padding:6px var(--space-xs) 6px 6px}
  .pcard-face .av{width:36px;height:36px}
  .pcard-name{font-size:13px;line-height:16px}
  .pcard-meta{font-size:11px;line-height:14px}
}
/* First run sits tight under the app bar: heading and the cards, no tall padding (Josh, 2026-11-25). */
.chat-empty{align-items:stretch;text-align:left;padding:var(--space-m);gap:var(--space-xxs)}
.chat-empty .empty-sub{max-width:none}
.chat-empty .starters{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:center;margin-top:var(--space-s)}
.thread:has(> .chat-empty){padding-top:var(--space-xs)}
.cn-page{padding-top:var(--space-m)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Audit fixes (2026-11-25): receipts keep "(" and ")" with their neighbor; "New messages" button; skip link; 12px floor on phones. */
.rcpt-tie{white-space:nowrap}
.new-msgs{align-self:center;gap:2px;box-shadow:var(--shadow-s);background:var(--neutral-1)}
.new-msgs[hidden]{display:none}
.new-msgs .ico{width:14px;height:14px}
.skip-ask{position:fixed;left:var(--space-m);top:64px;z-index:20;opacity:0;pointer-events:none;background:var(--neutral-1);color:var(--neutral-10);
  padding:var(--space-xs) var(--space-s);border-radius:var(--radius-s);box-shadow:var(--shadow-s);font-size:14px;line-height:20px}
.skip-ask:focus{opacity:1;pointer-events:auto}
@media (max-width:600px){ .pill,.pcard-meta{font-size:12px} }

/* Josh, 2026-11-25: a message reads as one text, one font, top to bottom (no display-font headline over a gray body). */
.b-text{margin:0;font-family:var(--font-body);font-size:15px;line-height:23px;color:var(--neutral-10);text-wrap:pretty}
.b-text .rcpt{font-size:12px}
@media (max-width:600px){ .b-text{font-size:15px;line-height:22px} }

/* Composer docked inside the chat card, like a group chat (Josh, 2026-11-25): attached under the thread, slim pill,
   suggestion pills in one row above it, sticky to the bottom of the screen while the chat scrolls. */
.chat > .composer{position:sticky;bottom:0;z-index:5;margin:0;gap:var(--space-xs);background:var(--neutral-1);border-top:1px solid var(--neutral-4);
  padding:var(--space-s) var(--space-m) var(--space-s)}
.chat > .composer .sugg-row{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0;gap:var(--space-xs);padding:1px}
.chat > .composer .sugg-row::-webkit-scrollbar{display:none}
.chat > .composer .sugg{flex:0 0 auto;white-space:nowrap;height:auto;min-height:30px;padding:4px 12px;border-radius:var(--radius-full);
  background:var(--neutral-1);box-shadow:inset 0 0 0 1px var(--neutral-4);color:var(--neutral-9);font-size:13px;line-height:18px;font-weight:500}
.chat > .composer .sugg:hover{background:var(--neutral-3);color:var(--neutral-10)}
.chat > .composer .pill-field{min-height:44px;padding:4px 4px 4px var(--space-m);border-radius:var(--radius-full);background:var(--neutral-2);
  box-shadow:inset 0 0 0 1px var(--neutral-4)}
.chat > .composer .pill-field:focus-within{box-shadow:inset 0 0 0 1.5px var(--color-1)}
.chat > .composer .pill-input{padding:7px 0;font-size:15px;line-height:22px}
.chat > .composer .send-round{width:36px;height:36px}
.chat > .composer .send-round:disabled{background:transparent;color:var(--neutral-6)}
.chat > .composer .new-msgs{position:absolute;left:50%;bottom:calc(100% + var(--space-xs));transform:translateX(-50%)}
.chat > .composer .msg{margin-left:var(--space-s)}
.chat > .composer.composer-gate{padding:var(--space-m)}
@media (max-width:700px){
  .chat > .composer{margin:0;padding:var(--space-xs) var(--space-s) calc(var(--space-xs) + env(safe-area-inset-bottom,0px))}
}
/* The chat header pins below the sticky app bar (56px + its border + the top safe area), not under it. */
.chat-head{top:calc(57px + env(safe-area-inset-top,0px))}
/* The Council's own avatar is the dilekt. emblem on a plain circle (light and dark via .brand-mark tokens). */
.cface.mod{background:var(--neutral-1);box-shadow:0 0 0 2px var(--neutral-1),0 0 0 3.5px var(--neutral-4)}
.cface.mod .mod-logo,.stack-faces.empty .mod-logo{width:58%;height:auto}
.stack-faces.empty{background:var(--neutral-1);box-shadow:inset 0 0 0 1px var(--neutral-4)}

/* ---------- iPhone pass (Josh, 2026-11-25: "hyper focus on the group chat feel and flow") ----------
   On a phone the Council behaves like a messaging app: the app bar scrolls away and the chat header becomes the
   top bar (clear of the clock and Dynamic Island), the chat fills the screen so the message box sits on the bottom
   edge, portraits shrink so text gets the width, and the box never zooms the page. */
@media (max-width:700px),(pointer:coarse){
  .chat > .composer .pill-input{font-size:16px}
  .g-search{font-size:16px}
}
@media (max-width:600px){
  body:has(#council) .site-bar{position:relative}
  .chat-head{top:env(safe-area-inset-top,0px)}
  .chat-head::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:env(safe-area-inset-top,0px);background:inherit}
  .cn-page{padding-bottom:0}
  .chat{min-height:calc(100svh - 56px - env(safe-area-inset-top,0px) - var(--space-m));border-bottom:0}
  .chat > .thread{flex:1}
  /* Messaging-app density: 40px portraits leave the text more of the width. */
  .cface,.cface-spacer{width:40px;height:40px}
  .cface .mono{font-size:15px}
  .keep-row{padding-left:calc(40px + var(--space-xs))}
  /* While the council is answering, the suggestions step aside; they come back for the follow-up. */
  .chat > .composer .sugg-row[inert]{display:none}
  .chat > .composer .new-msgs{bottom:calc(100% + var(--space-s))}
}
/* iPhone SE and other short screens: a one-line chat header. */
@media (max-width:600px) and (max-height:700px){
  .chat-head{padding-block:6px}
  .ch-wrap{grid-template-rows:auto;grid-auto-flow:column;grid-template-columns:auto minmax(0,1fr) auto}
  .ch-faces{grid-row:auto}
  .ch-faces .stack-faces .av{width:28px;height:28px}
  .ch-count{justify-self:end}
}
/* Very narrow phones: one contact card per row, so names don't break into five short lines. */
@media (max-width:359px){
  .pcards{grid-template-columns:1fr}
}

/* ---------- Second iPhone pass (2026-11-25) ---------- */
/* Loading: the chat card's shape while the research loads, instead of a blank page. */
.cn-boot{display:flex;flex-direction:column;gap:var(--space-s);padding:var(--space-l) var(--space-m);min-height:60vh}
.cn-boot .skel-h{width:min(260px,70%);height:26px}
.cn-boot .skel-sub{width:min(420px,90%);height:40px}
.cn-boot-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:var(--space-xs);margin-top:var(--space-s)}
.cn-boot-grid .skel{height:60px;border-radius:var(--radius-m)}
@media (max-width:600px){.cn-boot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:359px){.cn-boot-grid{grid-template-columns:1fr}}
/* A question that runs to a second line: the pill eases into a rounded box so the text isn't clipped by its ends. */
.chat > .composer .pill-field.multi{border-radius:22px}
/* A phone turned sideways (short and wide): the same messaging-app treatment, with a one-row header. */
@media (min-width:601px) and (max-height:500px){
  body:has(#council) .site-bar{position:relative}
  .chat-head{top:0;padding-block:6px}
  .ch-wrap{flex-direction:row;gap:var(--space-xs)}
  .ch-faces .stack-faces .av{width:28px;height:28px}
  .cn-page{padding-top:var(--space-xs);padding-bottom:0}
  .chat > .composer{padding-block:var(--space-xs) calc(var(--space-xs) + env(safe-area-inset-bottom,0px))}
  .chat > .composer .sugg-row[inert]{display:none}
  .cface,.cface-spacer{width:44px;height:44px}
  .keep-row{padding-left:calc(44px + var(--space-s))}
}

/* Portrait art (Josh, 2026-11-26): full polygon cutouts, no circle crop, on the contact cards and the seated row. */
.poly{position:relative;display:grid;place-items:center;width:52px;height:52px}
.poly img,.poly .mono{grid-area:1/1;width:100%;height:100%}
.poly img{object-fit:contain;position:relative;z-index:1}
.poly img + .mono{visibility:hidden}
@media (max-width:600px){.poly{width:42px;height:42px}}
.seat-row{display:flex;align-items:center;padding:var(--space-xxs) 0 var(--space-xs) 6px}
.seat-poly{position:relative;display:grid;width:64px;height:64px;margin-left:-6px;border-radius:var(--radius-s);outline:none;
  transition:transform var(--motion-duration) var(--motion-easing)}
.seat-poly img,.seat-poly .mono{grid-area:1/1;width:100%;height:100%}
.seat-poly img{object-fit:contain;position:relative;z-index:1}
.seat-poly img + .mono{visibility:hidden}
.seat-poly:hover,.seat-poly:focus-visible{transform:translateY(-3px);z-index:3}
.seat-poly:focus-visible{box-shadow:0 0 0 2px var(--c)}
.seat-tip{position:absolute;left:50%;top:calc(100% + 4px);transform:translateX(-50%);z-index:4;white-space:nowrap;font-size:12px;line-height:16px;font-weight:500;
  padding:2px var(--space-xs);border-radius:var(--radius-xs);background:var(--neutral-10);color:var(--neutral-1);opacity:0;pointer-events:none;
  transition:opacity var(--motion-duration) var(--motion-easing)}
.seat-poly:hover .seat-tip,.seat-poly:focus .seat-tip{opacity:1}
@media (max-width:600px){.seat-poly{width:52px;height:52px}}
