/* Sorted — component classes. A 1:1 lift of the prototype's inline rules plus the shell pieces the port needs. */

html, body { margin:0; height:100%; background:var(--bg-0); color:var(--fg-0); font-family:var(--font); font-size:16px; line-height:22px; -webkit-font-smoothing:antialiased; }
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
::placeholder { color:var(--fg-2); }
button, input, textarea { font-family:inherit; }
button { cursor:pointer; }
/* a real <button> that looks like the row/card it replaces: no chrome, inherits type and colour, keeps the row's own padding */
.btn-reset { border:0; background:none; padding:0; margin:0; color:inherit; font:inherit; text-align:left; cursor:pointer; -webkit-appearance:none; appearance:none; }
/* screen-reader-only text (labels for icon-only controls, sentence versions of visual fragments) */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.truncate { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
/* keyboard focus: one ring, the active colour, inset on rows so overflow:hidden lists don't clip it */
:focus-visible { outline:2px solid var(--active); outline-offset:2px; }
.row:focus-visible, .node:focus-visible, .node__hit:focus-visible, .kv:focus-visible, .setting:focus-visible, .sheet__row:focus-visible, .bubble:focus-visible, .subitem__hit:focus-visible, .group-head__name:focus-visible, .attach-file:focus-visible, .card__action:focus-visible, .tabs__item:focus-visible, .tabbar__item:focus-visible, .rail__item:focus-visible, .faq__q:focus-visible, .chatsearch__hit:focus-visible, .mention-pop__row:focus-visible { outline-offset:-2px; }
.sheet:focus-visible, .menu:focus-visible, .input:focus-visible, .select:focus-visible, .composer__input:focus-visible { outline:none; }
.scroll { overflow-y:auto; overflow-x:hidden; scrollbar-width:none; -ms-overflow-style:none; }
.scroll::-webkit-scrollbar { width:0; height:0; }
.hscroll { overflow-x:auto; overflow-y:hidden; scrollbar-width:none; }
.hscroll::-webkit-scrollbar { width:0; height:0; }
@keyframes glowpulse { 0%,100%{opacity:.55} 50%{opacity:.85} }
@keyframes rise { from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:none} }
@keyframes sheetup { from{transform:translateY(100%)} to{transform:none} }
@keyframes fadein { from{opacity:0} to{opacity:1} }
@keyframes spin { to{transform:rotate(360deg)} }

/* the tab bar's height, so floating things can sit just above it on every platform */
:root { --tabbar-h: calc(64px + var(--safe-bottom)); }

/* boot splash (before Blazor starts) */
.app-root { height:100%; }
.boot { height:100dvh; display:flex; align-items:center; justify-content:center; background:var(--bg-0); }
.boot__mark { width:24px; height:24px; border-radius:var(--radius-full); border:2px solid var(--bg-4); border-top-color:var(--active); animation:spin 1s linear infinite; }

/* shell */
.app { display:flex; flex-direction:column; height:100dvh; margin:0 auto; background:var(--bg-0); position:relative; overflow:hidden; padding-top:var(--safe-top); }
/* phones are edge-to-edge; tablets and desktop keep the centred 420px column from the prototype */
@media (min-width: 600px) { .app { max-width:420px; } }
.screen { flex:1; min-height:0; display:flex; flex-direction:column; position:relative; }
.screen--push { animation:rise var(--dur-slow) var(--ease); }
.screen-header { background:var(--bg-1); padding:12px var(--sp-4) 10px; display:flex; flex-direction:column; gap:10px; }
.screen-header--row { flex-direction:row; align-items:center; gap:12px; }
.screen-title { font-size:22px; line-height:28px; font-weight:600; }
.screen-sub { font-size:14px; line-height:20px; color:var(--fg-1); }
.section-label { padding:12px 16px 6px; font-size:14px; line-height:20px; font-weight:600; color:var(--fg-1); display:flex; align-items:center; gap:8px; }
.section-label--accent { color:var(--accent); }
.divider { height:1px; background:var(--bg-3); margin:0 16px; }
.muted { color:var(--fg-1); }
.faint { color:var(--fg-2); }
.small { font-size:14px; line-height:20px; }
.xs { font-size:12px; line-height:16px; }
.mono { font-family:var(--font-mono); font-variant-numeric:tabular-nums; }
.iconbtn { width:40px; height:40px; border-radius:var(--radius-full); display:flex; align-items:center; justify-content:center; background:transparent; border:none; color:var(--fg-0); flex:none; }
.iconbtn:active { background:var(--bg-3); }
.iconbtn { position:relative; }
.iconbtn::before { content:""; position:absolute; inset:-2px; border-radius:inherit; }
.iconbtn--sm { width:32px; height:32px; }
.iconbtn--sm::before { inset:-6px; }
.chip--icon { width:32px; height:32px; padding:0; justify-content:center; position:relative; }
.chip--icon::before { content:""; position:absolute; inset:-6px; border-radius:inherit; }
.pressable:active { background:var(--bg-3); }

/* tab bar — Chat · Overview · Search · Team · Me */
.tabbar { background:var(--bg-1); border-top:var(--hairline); display:flex; height:var(--tabbar-h); padding:8px 0 calc(12px + var(--safe-bottom)); flex:none; }
.tabbar__item { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; color:var(--fg-1); font-size:12px; line-height:16px; background:none; border:none; padding:0; }
.tabbar__item--active { color:var(--active); }
.tabbar__dot { position:absolute; top:-2px; right:-6px; width:8px; height:8px; border-radius:var(--radius-full); background:var(--accent); }

/* chips */
.chip { padding:6px 14px; border-radius:var(--radius-full); background:var(--bg-2); color:var(--fg-1); font-size:14px; line-height:20px; font-weight:500; border:1px solid transparent; white-space:nowrap; display:inline-flex; align-items:center; gap:6px; flex:none; }
.chip--active { background:var(--tint-purple); color:var(--active); border-color:var(--active); }
.chip--status { padding:6px 10px; }
.chip--due-today { background:rgba(255,193,69,.12); color:var(--warning); }
.chip--due-overdue { background:var(--tint-pink); color:var(--accent); box-shadow:var(--glow-pink); }
.chip--due-empty { background:transparent; color:var(--fg-1); border:1px dashed var(--bg-4); }
.chip--timer { background:var(--tint-pink); color:var(--accent); box-shadow:var(--glow-pink); animation:glowpulse 2s ease-in-out infinite; font-family:var(--font-mono); font-variant-numeric:tabular-nums; }
.chip--count { color:var(--accent); font-variant-numeric:tabular-nums; }
.chip-row { display:flex; gap:8px; align-items:center; padding:0 16px 12px; background:var(--bg-1); }

/* chat row (72px, 48px avatar — WhatsApp rhythm) */
.row { display:flex; gap:var(--sp-3); padding:0 var(--sp-4); height:72px; align-items:center; overflow:hidden; transition:background var(--dur-fast) var(--ease); width:100%; }
.row:active { background:var(--bg-3); }
.row__avatar { flex:none; width:48px; height:48px; border-radius:var(--radius-full); display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:600; background:var(--bg-2); color:var(--fg-0); position:relative; }
.row__avatar--board { border-radius:14px; }
.row__avatar--sm { width:40px; height:40px; font-size:14px; }
.row__avatar--xs { width:24px; height:24px; font-size:11px; }
.row__body { flex:1; min-width:0; padding-right:4px; border-bottom:1px solid var(--bg-3); height:72px; display:flex; flex-direction:column; justify-content:center; gap:3px; }
.row__top { display:flex; align-items:center; gap:8px; }
.row__title { font-size:16px; line-height:22px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1; min-width:0; }
.row__path { font-size:12px; line-height:16px; color:var(--fg-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row__preview { font-size:14px; line-height:20px; color:var(--fg-1); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1; min-width:0; }
.row__time { font-size:12px; line-height:16px; color:var(--fg-1); font-variant-numeric:tabular-nums; flex:none; }
.row__time--unread { color:var(--accent); }
.badge { min-width:20px; height:20px; padding:0 6px; border-radius:var(--radius-full); background:var(--accent); color:var(--bg-0); font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; display:flex; align-items:center; justify-content:center; flex:none; }
.dot { width:6px; height:6px; border-radius:var(--radius-full); flex:none; }
.dot--lg { width:8px; height:8px; }
.online { position:absolute; right:-1px; bottom:-1px; width:10px; height:10px; border-radius:var(--radius-full); background:var(--success); border:2px solid var(--bg-1); }

/* group headers in the grouped chat list: chevron · name · muted count · green "+ child" pill */
.group-head { display:flex; align-items:center; gap:6px; padding:8px 16px 8px 10px; }
.group-head--l2 { padding-left:34px; }
.group-head--l3 { padding-left:58px; }
.group-head__toggle { width:32px; height:32px; border-radius:var(--radius-full); display:flex; align-items:center; justify-content:center; background:none; border:none; flex:none; }
.group-head__name { flex:1; min-width:0; display:flex; align-items:baseline; gap:10px; overflow:hidden; height:32px; }
.group-head__title { font-size:17px; line-height:24px; font-weight:600; color:var(--fg-0); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.group-head__count { font-size:14px; line-height:20px; color:var(--fg-1); white-space:nowrap; }
.group-head__add { display:inline-flex; align-items:center; gap:4px; padding:7px 14px 7px 10px; border-radius:var(--radius-full); background:var(--bg-2); color:var(--success); font-size:15px; line-height:20px; font-weight:600; border:none; flex:none; }
.group-head__add:active { background:var(--bg-3); }
.row--indent { padding-left:32px; }

/* conversation */
.conv-header { background:var(--bg-1); border-bottom:var(--hairline); display:flex; align-items:center; gap:8px; padding:6px 8px 6px 4px; }
.conv-header__text { flex:1; min-width:0; }
.conv-header__title { font-size:18px; line-height:24px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.conv-header__sub { font-size:14px; line-height:20px; color:var(--fg-1); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.statusbar { display:flex; align-items:center; gap:8px; padding:12px 16px; background:var(--bg-1); border-bottom:var(--hairline); flex:none; }
.stack { display:flex; align-items:center; }
.stack__avatar { width:24px; height:24px; margin-right:-8px; border-radius:var(--radius-full); border:2px solid var(--bg-2); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:600; color:var(--fg-0); }
.stack__more { margin-left:14px; color:var(--fg-1); font-size:14px; }
.subitems { background:var(--bg-1); border-bottom:var(--hairline); flex:none; }
.subitems__head { display:flex; align-items:center; gap:8px; padding:8px 16px; font-size:14px; line-height:20px; color:var(--fg-1); background:none; border:none; width:100%; color:var(--fg-1); }
.subitems__list { max-height:168px; }
.subitem { display:flex; align-items:center; gap:10px; padding:6px 16px 6px 20px; font-size:14px; line-height:20px; }
.subitem__hit { flex:1; min-width:0; display:flex; align-items:center; gap:10px; min-height:32px; }
.subitem__circle { width:20px; height:20px; border-radius:var(--radius-full); border:1.75px solid var(--fg-2); display:flex; align-items:center; justify-content:center; flex:none; background:none; padding:0; position:relative; }
.subitem__circle::before { content:""; position:absolute; inset:-12px; border-radius:inherit; }
.subitem__circle--done { border-color:var(--success); background:var(--tint-green); }
.subitem__title { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.subitem__title--done { color:var(--fg-2); text-decoration:line-through; }
.thread { flex:1; min-height:0; padding:12px var(--sp-4) var(--sp-4); display:flex; flex-direction:column; gap:var(--sp-2); }
.bubble { max-width:78%; padding:8px 12px 6px; border-radius:var(--radius-md); display:flex; flex-direction:column; gap:2px; animation:rise var(--dur-base) var(--ease); }
.bubble--in { align-self:flex-start; background:var(--bubble-in); border-top-left-radius:4px; }
.bubble--out { align-self:flex-end; background:var(--bubble-out); border-top-right-radius:4px; }
.bubble--queued { opacity:.7; }
.bubble__author { font-size:14px; line-height:20px; font-weight:600; }
.bubble__text { font-size:16px; line-height:22px; text-wrap:pretty; word-break:break-word; overflow-wrap:anywhere; white-space:pre-wrap; }
.bubble[role="button"] { cursor:pointer; }
.bubble__meta { align-self:flex-end; display:flex; gap:4px; font-size:12px; line-height:16px; color:var(--fg-1); }
.bubble__edited { color:var(--fg-2); }
.tick { color:var(--fg-2); }
.tick--seen { color:var(--success); }
.mention { font-weight:600; color:var(--accent); }
.mention--me { background:var(--tint-pink); border-radius:4px; }
.system-pill { align-self:center; max-width:88%; background:var(--bg-1); border-radius:var(--radius-full); padding:6px 14px; font-size:12px; line-height:16px; color:var(--fg-1); text-align:center; }
.system-pill--link { cursor:pointer; }
button.system-pill { display:block; }
.system-pill b { font-weight:600; color:var(--fg-0); }
.unread-divider { display:flex; align-items:center; gap:10px; color:var(--accent); font-size:12px; font-weight:600; }
.unread-divider::before, .unread-divider::after { content:""; flex:1; height:1px; background:var(--accent); opacity:.5; }
.card { align-self:flex-start; width:78%; background:var(--bg-2); border:var(--hairline); border-radius:var(--radius-md); padding:12px 14px; display:flex; flex-direction:column; gap:10px; }
.card__title { font-size:14px; line-height:20px; font-weight:600; display:flex; gap:8px; align-items:center; }
.card__row { display:flex; justify-content:space-between; gap:12px; font-size:14px; line-height:20px; }
.card__row span:first-child { color:var(--fg-1); }
.card__action { border-top:1px solid var(--bg-3); padding-top:10px; font-size:14px; font-weight:500; color:var(--active); width:100%; }
.load-more { align-self:center; font-size:12px; color:var(--active); background:none; border:none; padding:6px 12px; }

/* attachments */
.attach-img { display:block; max-width:100%; max-height:320px; border-radius:8px; margin-top:2px; object-fit:contain; background:var(--bg-3); }
.attach-file { display:flex; align-items:center; gap:8px; padding:8px 10px; margin-top:4px; border-radius:8px; background:var(--bg-3); font-size:14px; line-height:20px; max-width:100%; width:100%; }
.attach-open { display:block; max-width:100%; border-radius:8px; }
.attach-file__name { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.attach-file__size { color:var(--fg-1); font-size:12px; flex:none; }
.attach-loading { width:120px; height:80px; border-radius:8px; background:var(--bg-3); }
.pending { display:flex; gap:8px; overflow-x:auto; }
.pending__chip { display:inline-flex; align-items:center; gap:6px; padding:6px 8px 6px 12px; border-radius:var(--radius-full); background:var(--bg-3); font-size:13px; max-width:220px; flex:none; }
.pending__chip span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pending__x { width:22px; height:22px; border-radius:var(--radius-full); background:var(--bg-4); border:none; display:flex; align-items:center; justify-content:center; flex:none; position:relative; }
.pending__x::before { content:""; position:absolute; inset:-11px; border-radius:inherit; }
.gallery { display:grid; grid-template-columns:repeat(3, 1fr); gap:4px; padding:8px; }
.gallery .attach-img { width:100%; aspect-ratio:1; max-height:none; object-fit:cover; margin:0; }

/* reply quotes, reactions, mention picker */
.bubble-wrap { display:flex; flex-direction:column; align-items:flex-start; max-width:78%; }
.bubble-wrap--out { align-self:flex-end; align-items:flex-end; }
.bubble-wrap .bubble { max-width:100%; }
.quote { border-left:3px solid var(--fg-2); background:rgba(0,0,0,.25); border-radius:6px; padding:6px 10px; margin:2px 0 6px; max-width:100%; cursor:pointer; display:block; width:100%; }
.quote__author { font-size:12px; line-height:16px; font-weight:600; }
.quote__text { font-size:14px; line-height:20px; color:var(--fg-1); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:260px; }
.reactions { display:flex; gap:4px; flex-wrap:wrap; margin-top:-4px; padding:0 4px; }
.reaction { display:inline-flex; align-items:center; gap:4px; padding:2px 8px; border-radius:var(--radius-full); background:var(--bg-2); border:1px solid var(--bg-4); font-size:13px; line-height:18px; color:var(--fg-0); }
.reaction span { font-size:12px; color:var(--fg-1); font-variant-numeric:tabular-nums; }
.reaction--mine { background:var(--tint-purple); border-color:var(--active); }
.react-row { display:flex; justify-content:space-around; padding:8px 16px 12px; border-bottom:var(--hairline); }
.react-row__emoji { width:44px; height:44px; border-radius:var(--radius-full); background:var(--bg-2); border:1px solid transparent; font-size:22px; display:flex; align-items:center; justify-content:center; }
.react-row__emoji--on { background:var(--tint-purple); border-color:var(--active); }
.strip { display:flex; align-items:center; gap:10px; padding:6px 10px; border-left:3px solid var(--fg-2); background:var(--bg-2); border-radius:6px; }
.strip__body { flex:1; min-width:0; }
.strip__title { font-size:12px; line-height:16px; font-weight:600; }
.strip__text { font-size:14px; line-height:20px; color:var(--fg-1); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mention-pop { background:var(--bg-2); border:var(--hairline); border-radius:10px; overflow:hidden; }
.mention-pop__row { display:flex; align-items:center; gap:10px; width:100%; padding:8px 12px; background:none; border:none; color:var(--fg-0); font-size:14px; text-align:left; }
.mention-pop__row:active { background:var(--bg-3); }

/* composer */
.composer { background:var(--bg-1); border-top:var(--hairline); padding:8px 12px calc(12px + var(--safe-bottom)); display:flex; flex-direction:column; gap:var(--sp-2); flex:none; }
.composer__quick { display:flex; gap:8px; }
.composer__row { display:flex; align-items:center; gap:8px; }
.composer__input { flex:1; min-width:0; height:40px; padding:0 var(--sp-4); border:none; outline:none; border-radius:var(--radius-full); background:var(--bg-3); color:var(--fg-0); font-size:16px; caret-color:var(--accent); }
.composer__send { width:44px; height:44px; border-radius:var(--radius-full); background:var(--success); display:flex; align-items:center; justify-content:center; border:none; flex:none; transition:transform var(--dur-fast) var(--ease); }
.composer__send:active { transform:scale(.94); }
.composer__send--idle { background:var(--bg-3); }

/* sheets, fab, toast, buttons */
.sheet__backdrop { position:absolute; inset:0; background:rgba(0,0,0,.6); animation:fadein var(--dur-base) var(--ease); z-index:20; }
.sheet { position:absolute; left:0; right:0; bottom:0; background:var(--bg-1); border-top:var(--hairline); border-radius:var(--radius-lg) var(--radius-lg) 0 0; padding:10px 0 calc(var(--sp-6) + var(--safe-bottom)); animation:sheetup var(--dur-base) var(--ease); z-index:21; max-height:85%; display:flex; flex-direction:column; }
.sheet:focus, .menu:focus { outline:none; }
.sheet__grabber { width:36px; height:4px; border-radius:var(--radius-full); background:var(--bg-4); margin:0 auto 12px; flex:none; }
.sheet__title { font-size:18px; line-height:24px; font-weight:600; padding:0 16px 10px; border-bottom:var(--hairline); flex:none; }
.sheet__body { flex:1; min-height:0; overflow-y:auto; }
.sheet__row { display:flex; align-items:center; gap:12px; padding:12px 16px; font-size:16px; line-height:22px; width:100%; background:none; border:none; color:var(--fg-0); text-align:left; }
.sheet__row:active { background:var(--bg-3); }
.sheet__row:disabled { cursor:default; }
.sheet__row:disabled:active { background:none; }
.sheet__row--danger { color:var(--danger); }
/* Structure, not state: a restricted node's lock is muted, never neon. */
.lock { display:inline-flex; align-items:center; flex:none; color:var(--fg-2); }
.sheet__actions { display:flex; gap:8px; padding:12px 16px 0; justify-content:flex-end; flex:none; }
.fab { position:absolute; right:var(--sp-4); bottom:var(--sp-4);   /* inside .screen, which ends where the tab bar begins */ width:56px; height:56px; border-radius:var(--radius-full); background:var(--success); border:1px solid var(--neon-green-dim); display:flex; align-items:center; justify-content:center; z-index:5; }
.fab:active { transform:scale(.96); }
.toast-host { position:absolute; inset:0; pointer-events:none; }
.toast { pointer-events:auto; position:absolute; left:var(--sp-4); right:var(--sp-4); bottom:calc(var(--tabbar-h) + 84px); background:var(--bg-3); border-radius:var(--radius-md); padding:12px 14px; font-size:14px; line-height:20px; display:flex; align-items:center; gap:12px; z-index:30; animation:rise var(--dur-base) var(--ease); }
.toast__action { margin-left:auto; color:var(--active); font-weight:500; background:none; border:none; font-size:14px; }
/* Neon is information: pink = needs you, green = done. A border, no glow. */
.toast--error { border:1px solid var(--accent); }
.toast--success { border:1px solid var(--success); }
.btn { height:48px; border-radius:var(--radius-full); display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:600; border:none; padding:0 20px; width:100%; }
.btn:active { filter:brightness(.92); }
.btn--primary { background:var(--success); color:var(--bg-0); }
.btn--secondary { background:var(--bg-3); color:var(--fg-0); }
.btn--disabled { background:var(--bg-4); color:var(--fg-2); pointer-events:none; }
.btn--danger { background:var(--bg-3); color:var(--danger); }
.btn--text { background:none; color:var(--active); width:auto; height:40px; padding:0 12px; }
.btn--sm { height:40px; font-size:14px; width:auto; padding:0 16px; }
.link { color:var(--active); font-weight:500; background:none; border:none; font-size:inherit; padding:0; }

/* inputs */
.field { display:flex; flex-direction:column; gap:6px; }
.field__label { font-size:14px; line-height:20px; color:var(--fg-1); }
.input { height:48px; padding:0 16px; border:1px solid transparent; outline:none; border-radius:var(--radius-md); background:var(--bg-3); color:var(--fg-0); font-size:16px; caret-color:var(--accent); width:100%; }
.input:focus { border-color:var(--active); }
.input--code { font-family:var(--font-mono); font-size:28px; letter-spacing:10px; text-align:center; height:64px; }
.textarea { min-height:96px; padding:12px 16px; resize:vertical; }
.error { color:var(--danger); font-size:14px; line-height:20px; }
.hint { color:var(--fg-2); font-size:12px; line-height:16px; }
.devcode { background:var(--tint-purple); color:var(--active); border-radius:var(--radius-sm); padding:6px 10px; font-family:var(--font-mono); font-size:14px; display:inline-block; }

/* auth */
.auth { flex:1; display:flex; flex-direction:column; padding:calc(48px + var(--safe-top)) 24px calc(24px + var(--safe-bottom)); gap:24px; }
.auth__hero { display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px; margin-top:auto; }
.auth__hero .muted, .auth__hero .hint { max-width:320px; }
.auth__title { font-size:28px; line-height:34px; font-weight:600; }
.auth__form { display:flex; flex-direction:column; align-items:stretch; gap:14px; margin-top:auto; width:100%; max-width:360px; align-self:center; }
.auth__links { display:flex; justify-content:center; gap:24px; }

/* empty state */
.empty { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:8px; padding:32px 24px; }
.empty__title { font-size:22px; line-height:28px; font-weight:600; }
.empty__text { font-size:14px; line-height:20px; color:var(--fg-1); max-width:280px; }
.empty .btn { width:auto; margin-top:12px; }

/* offline banner */
.banner-host { display:flex; flex-direction:column; flex:none; }
.banner { display:flex; align-items:center; gap:8px; padding:8px 16px; font-size:14px; line-height:20px; color:var(--fg-1); background:var(--bg-3); flex:none; }
.banner--reconnecting { background:var(--tint-purple); color:var(--active); }
.banner--online { background:var(--tint-green); color:var(--success); }

/* overview */
.crumbs { display:flex; align-items:center; gap:4px; font-size:14px; line-height:20px; color:var(--fg-1); white-space:nowrap; overflow:hidden; }
.crumbs button { background:none; border:none; color:var(--fg-1); font-size:14px; padding:0; }
.crumbs button:last-child { color:var(--fg-0); font-weight:600; }
.node { display:flex; align-items:center; gap:12px; padding:0 16px; height:60px; width:100%; }
.node:active { background:var(--bg-3); }
.node__hit { flex:1; min-width:0; display:flex; align-items:center; gap:12px; align-self:stretch; }
.node__hit:active { background:var(--bg-3); }
.node__icon { width:40px; height:40px; border-radius:12px; background:var(--bg-2); display:flex; align-items:center; justify-content:center; flex:none; }
.node__body { flex:1; min-width:0; border-bottom:1px solid var(--bg-3); height:60px; display:flex; flex-direction:column; justify-content:center; gap:2px; }
.node__title { font-size:16px; line-height:22px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:flex; align-items:center; gap:8px; }
.node__sub { font-size:12px; line-height:16px; color:var(--fg-2); display:flex; gap:8px; align-items:center; min-width:0; overflow:hidden; }
.node__actions { display:flex; gap:2px; align-items:center; }

/* details panel */
.details { position:absolute; inset:0; padding-top:var(--safe-top); background:var(--bg-0); z-index:15; display:flex; flex-direction:column; animation:rise var(--dur-slow) var(--ease); }
.tabs { display:flex; background:var(--bg-1); border-bottom:var(--hairline); }
.tabs__item { flex:1; padding:12px 0; text-align:center; font-size:14px; font-weight:500; color:var(--fg-1); background:none; border:none; border-bottom:2px solid transparent; }
.tabs__item--active { color:var(--active); border-bottom-color:var(--active); }
.kv { display:flex; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid var(--bg-3); font-size:14px; line-height:20px; width:100%; }
.kv span:first-child { color:var(--fg-1); }
.kv span:last-child { text-align:right; min-width:0; }

/* me */
.me-hero { display:flex; align-items:center; gap:14px; padding:16px; }
.me-hero__avatar { width:64px; height:64px; border-radius:var(--radius-full); display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:600; }
.setting { display:flex; align-items:center; gap:12px; padding:14px 16px; border-bottom:1px solid var(--bg-3); font-size:16px; line-height:22px; width:100%; }
.setting__text { flex:1; min-width:0; }
.setting__sub { font-size:12px; line-height:16px; color:var(--fg-2); }
.switch { width:44px; height:26px; border-radius:var(--radius-full); background:var(--bg-4); position:relative; border:none; flex:none; transition:background var(--dur-fast) var(--ease); }
.switch::after { content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:var(--radius-full); background:var(--fg-0); transition:transform var(--dur-fast) var(--ease); }
.switch--on { background:var(--neon-purple-dim); }
.switch--on::after { transform:translateX(18px); background:var(--active); }

/* due picker */
.cal { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; padding:8px 16px; }
.cal__dow { text-align:center; font-size:12px; color:var(--fg-2); padding:4px 0; }
.cal__day { height:40px; border-radius:var(--radius-full); display:flex; align-items:center; justify-content:center; font-size:14px; background:none; border:none; color:var(--fg-0); }
.cal__day--muted { color:var(--fg-2); }
.cal__day--today { box-shadow:inset 0 0 0 1px var(--warning); }
.cal__day--selected { background:var(--accent); color:var(--bg-0); font-weight:600; }
.cal__nav { display:flex; align-items:center; justify-content:space-between; padding:8px 16px 0; font-size:14px; font-weight:600; }

#blazor-error-ui { display:none; position:fixed; bottom:0; left:0; right:0; padding:12px 16px; background:var(--bg-3); color:var(--fg-0); font-size:14px; z-index:1000; }
#blazor-error-ui .dismiss { float:right; cursor:pointer; }

/* ---- wide layout (web ≥ 900px): list beside conversation ---- */
.app--wide { max-width:none; flex-direction:row; }
.pane { display:flex; flex-direction:column; position:relative; min-height:0; overflow:hidden; }
.pane--list { width:400px; flex:none; border-right:var(--hairline); background:var(--bg-0); }
.pane--main { flex:1; min-width:0; background:var(--bg-0); }
.pane__empty { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; text-align:center; padding:40px; }
.pane__empty .btn { margin-top:12px; text-decoration:none; }
.app--wide .row--active { background:var(--bg-2); box-shadow:inset 3px 0 0 var(--active); }
.app--wide .sheet__backdrop, .standup .sheet__backdrop { position:fixed; }
.app--wide .sheet, .standup .sheet { position:fixed; left:50%; top:50%; right:auto; bottom:auto; transform:translate(-50%,-50%); width:min(520px, calc(100vw - 48px)); max-height:80vh; border-radius:var(--radius-lg); border:var(--hairline); padding-bottom:var(--sp-6); animation:fadein var(--dur-base) var(--ease); }
.app--wide .toast, .standup .toast { position:fixed; left:auto; right:24px; bottom:24px; width:380px; }
.app--wide .details { z-index:15; }

/* ---- stand-up (web /standup): presentation mode ---- */
.standup { display:flex; flex-direction:column; height:100dvh; background:var(--bg-0); position:relative; overflow:hidden; }
.standup__bar { display:flex; align-items:center; gap:14px; padding:10px 20px 10px 12px; background:var(--bg-1); border-bottom:var(--hairline); flex:none; }
.standup__bar .iconbtn { color:var(--fg-0); text-decoration:none; }
.standup__title { flex:1; min-width:0; }
.standup__controls { display:flex; align-items:center; gap:12px; }
.standup__progress { font-size:14px; color:var(--fg-1); font-variant-numeric:tabular-nums; min-width:80px; text-align:right; }
.select { height:36px; padding:0 36px 0 14px; border-radius:var(--radius-full); background:var(--bg-2); color:var(--fg-0); border:1px solid var(--bg-4); font:inherit; font-size:14px; appearance:none; -webkit-appearance:none; cursor:pointer; color-scheme:dark;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A0A0AB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat:no-repeat; background-position:right 12px center; }
.select:hover { border-color:var(--fg-2); }
.select:focus { outline:none; border-color:var(--active); box-shadow:0 0 0 3px var(--tint-purple); }
.select option { background:var(--bg-2); color:var(--fg-0); padding:8px; }
.seg { display:flex; background:var(--bg-2); border-radius:var(--radius-full); padding:3px; border:1px solid var(--bg-4); }
.seg__btn { height:30px; padding:0 14px; border-radius:var(--radius-full); background:none; border:none; color:var(--fg-1); font:inherit; font-size:14px; }
.seg__btn--on { background:var(--tint-purple); color:var(--active); }
.standup__body { flex:1; min-height:0; display:flex; }
.rail { width:340px; flex:none; border-right:var(--hairline); overflow-y:auto; padding-bottom:24px; background:var(--bg-0); }
.rail__group { display:flex; align-items:center; gap:10px; padding:18px 16px 6px; font-size:14px; font-weight:600; color:var(--fg-1); position:sticky; top:0; background:var(--bg-0); }
.rail__count { margin-left:auto; color:var(--fg-2); font-variant-numeric:tabular-nums; }
.rail__item { display:flex; align-items:center; gap:10px; width:100%; padding:10px 16px; background:none; border:none; color:var(--fg-0); font:inherit; font-size:15px; text-align:left; border-left:3px solid transparent; }
.rail__item:hover { background:var(--bg-1); }
.rail__item--on { background:var(--bg-2); border-left-color:var(--active); }
.rail__name { flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rail__flag { font-size:12px; line-height:18px; padding:0 8px; border-radius:var(--radius-full); flex:none; }
.rail__flag--blocked { background:var(--tint-pink); color:var(--accent); }
.rail__flag--due { background:rgba(255,193,69,.12); color:var(--warning); }
.stage { flex:1; min-width:0; display:flex; flex-direction:column; position:relative; }
.stage__card { flex:1; min-height:0; display:flex; flex-direction:column; padding:28px 40px 0; max-width:1100px; width:100%; margin:0 auto; animation:rise var(--dur-slow) var(--ease); }
.stage__head { display:flex; align-items:center; gap:14px; }
.stage__status { display:inline-flex; align-items:center; gap:8px; font-weight:600; font-size:15px; border:none; font-family:inherit; }
.stage__path { color:var(--fg-1); font-size:15px; }
.stage__title { font-size:40px; line-height:48px; font-weight:700; margin:14px 0 8px; text-wrap:balance; }
.stage__desc { color:var(--fg-1); font-size:18px; line-height:26px; margin:0 0 8px; max-width:70ch; }
.stage__chips { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:12px 0 20px; }
.stage__chips .chip { display:inline-flex; align-items:center; gap:6px; font-size:14px; border:none; font-family:inherit; }
.stage__people { display:flex; gap:8px; background:none; border:none; padding:0; font:inherit; color:var(--fg-0); }
.stage__person { display:inline-flex; align-items:center; gap:8px; padding:4px 12px 4px 4px; border-radius:var(--radius-full); background:var(--bg-2); font-size:14px; }
.stage__thread-label { font-size:13px; font-weight:600; color:var(--fg-2); text-transform:uppercase; letter-spacing:.04em; padding-bottom:8px; }
.stage__thread { flex:1; min-height:120px; overflow-y:auto; display:flex; flex-direction:column; gap:6px; padding:8px 0 12px; }
.stage .composer { border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.stage__nav { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 40px; border-top:var(--hairline); background:var(--bg-1); flex:none; }
.stage__nav .btn { display:inline-flex; gap:6px; }
.stage__nav .btn:disabled { opacity:.4; pointer-events:none; }
.stage__keys { color:var(--fg-2); font-size:13px; }
.stage__thread > :first-child { margin-top:auto; }   /* short threads hug the composer, like a chat */

.stage__search { position:relative; display:flex; align-items:center; max-width:1100px; width:100%; margin:0 auto; padding:16px 40px 0; }
.stage__search > svg { position:absolute; left:56px; pointer-events:none; }
.stage__search-input { flex:1; height:44px; border-radius:var(--radius-full); background:var(--bg-2); border:1px solid var(--bg-4); color:var(--fg-0); padding:0 44px; font:inherit; font-size:15px; outline:none; }
.stage__search-input:focus { border-color:var(--active); box-shadow:0 0 0 3px var(--tint-purple); }
.stage__search-input::placeholder { color:var(--fg-2); }
.stage__search-clear { position:absolute; right:52px; width:28px; height:28px; border-radius:var(--radius-full); background:var(--bg-4); border:none; display:flex; align-items:center; justify-content:center; }
.stage__card { padding-top:20px; }
.rail__flag--done { background:var(--tint-green, rgba(57,255,136,.12)); color:var(--success); }

/* ---- voice notes ---- */
.voice { display:flex; align-items:center; gap:10px; min-width:220px; padding:4px 0; }
.voice__btn { width:38px; height:38px; border-radius:var(--radius-full); background:var(--success); border:none; display:flex; align-items:center; justify-content:center; flex:none; }
.voice__btn:active { transform:scale(.94); }
.voice__btn:disabled { background:var(--bg-4); }
.voice__spin { width:16px; height:16px; border-radius:var(--radius-full); border:2px solid var(--bg-2); border-top-color:var(--fg-1); animation:spin 1s linear infinite; }
.voice__body { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; cursor:pointer; }
.voice__bars { display:flex; align-items:center; gap:2px; height:26px; }
.voice__bar { width:3px; border-radius:2px; background:var(--fg-2); flex:none; }
.voice__bar--on { background:var(--success); }
.voice__time { font-size:12px; line-height:16px; color:var(--fg-1); font-variant-numeric:tabular-nums; }
.voice--playing .voice__time { color:var(--success); }
.composer__mic { background:var(--bg-3); }
.composer__rec { display:flex; align-items:center; gap:10px; flex:1; min-width:0; height:40px; padding:0 4px 0 12px; border-radius:var(--radius-full); background:var(--bg-2); }
.composer__rec-dot { width:10px; height:10px; border-radius:var(--radius-full); background:var(--accent); box-shadow:var(--glow-pink); animation:pulse 1s ease-in-out infinite; flex:none; }
.composer__rec-time { font-variant-numeric:tabular-nums; font-size:15px; min-width:44px; }
.composer__rec-level { flex:1; display:flex; align-items:center; gap:2px; height: 24px; overflow:hidden; }
.composer__rec-level span { width:3px; border-radius:2px; background:var(--accent); flex:none; transition:height 120ms linear; }
.composer__rec-hint { font-size:13px; color:var(--fg-1); }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.35; } }

/* reduced motion: no entrance slides, no idle pulses; state changes still happen, just instantly */
@media (prefers-reduced-motion: reduce) {
  .screen--push, .bubble, .details, .sheet, .sheet__backdrop, .menu, .toast, .stage__card, .app--wide .sheet, .standup .sheet { animation:none !important; }
  .chip--timer, .composer__rec-dot, .boot__mark, .voice__spin { animation:none !important; }
  .row, .composer__send, .switch, .switch::after, .site__nav a, .composer__rec-level span { transition:none !important; }
  .composer__send:active, .fab:active, .voice__btn:active { transform:none; }
  .scroll, .hscroll, .thread { scroll-behavior:auto !important; }
}

.auth__legal { text-align:center; }
.auth__legal a { color:var(--active); text-decoration:none; }

/* legal pages (web) */
.legal { max-width:68ch; margin:0 auto; padding:24px 20px 60px; color:var(--fg-0); }
.legal__head { display:flex; align-items:center; justify-content:space-between; padding-bottom:20px; border-bottom:var(--hairline); margin-bottom:28px; }
.legal__brand { display:inline-flex; align-items:center; gap:10px; color:var(--fg-0); text-decoration:none; font-weight:600; font-size:18px; }
.legal__nav { display:flex; gap:18px; }
.legal__nav a { color:var(--fg-1); text-decoration:none; font-size:14px; }
.legal__nav a:hover { color:var(--fg-0); }
.legal h1 { font-size:32px; line-height:38px; margin:0 0 6px; text-wrap:balance; }
.legal h2 { font-size:18px; line-height:24px; margin:28px 0 8px; }
.legal p, .legal li { font-size:16px; line-height:26px; color:var(--fg-1); }
.legal p b, .legal li b { color:var(--fg-0); font-weight:600; }
.legal ul { padding-left:20px; }
.legal a { color:var(--active); }
.legal__meta { color:var(--fg-2) !important; font-size:14px !important; }
.legal__foot { margin-top:48px; padding-top:16px; border-top:var(--hairline); color:var(--fg-2); font-size:13px; }

.attach-loading { display:flex; align-items:center; justify-content:center; gap:8px; min-width:140px; min-height:80px; max-width:320px; }
.attach-loading--tap { flex-direction:column; gap:4px; cursor:pointer; font-size:14px; color:var(--fg-1); }
.attach-loading--tap:active { background:var(--bg-4); }

/* pinned message bar, deleted bubbles, stand-up overlay on desktop */
.pinned { display:flex; align-items:center; gap:10px; padding:8px 14px; background:var(--bg-1); border-bottom:var(--hairline); border-left:3px solid var(--active); cursor:pointer; }
.pinned__body { flex:1; min-width:0; }
.pinned__who { font-size:12px; line-height:16px; color:var(--active); font-weight:600; }
.pinned__text { font-size:14px; line-height:20px; color:var(--fg-1); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bubble__deleted { display:inline-flex; align-items:center; gap:6px; color:var(--fg-2); font-style:italic; }
.standup-overlay { position:absolute; inset:0; z-index:18; background:var(--bg-0); }
.standup-overlay .standup { height:100%; }

/* pointer-anchored menus (right-click / desktop click) */
.sheet__backdrop--menu { background:transparent; animation:none; }
.menu { position:fixed; z-index:21; min-width:240px; max-width:340px; max-height:calc(100vh - 16px); overflow:auto; background:var(--bg-2); border:1px solid var(--bg-4); border-radius:12px; box-shadow:0 12px 32px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.4); padding:6px; visibility:hidden; animation:fadein var(--dur-fast) var(--ease); }
.menu__title { font-size:12px; line-height:16px; font-weight:600; color:var(--fg-2); text-transform:uppercase; letter-spacing:.04em; padding:8px 10px 6px; }
.menu .sheet__row { padding:9px 10px; font-size:14px; line-height:20px; border-radius:8px; gap:10px; }
.menu .sheet__row:hover { background:var(--bg-3); }
.menu .sheet__row svg { width:18px; height:18px; }
.menu .react-row { padding:6px 4px 8px; border-bottom:1px solid var(--bg-4); margin-bottom:4px; gap:2px; }
.menu .react-row__emoji { width:36px; height:36px; font-size:18px; }
.menu .sheet__actions { padding:8px 4px 2px; }
.menu .input { height:40px; }
.menu .section-label { padding:8px 10px; }

/* in-chat search, forwarded label, invite link */
.chatsearch { display:flex; align-items:center; gap:10px; padding:8px 12px; background:var(--bg-1); border-bottom:var(--hairline); }
.chatsearch__input { flex:1; min-width:0; height:36px; border-radius:var(--radius-full); background:var(--bg-2); border:1px solid var(--bg-4); color:var(--fg-0); padding:0 14px; font:inherit; font-size:14px; outline:none; }
.chatsearch__input:focus { border-color:var(--active); }
.chatsearch__hits { max-height:40vh; overflow-y:auto; background:var(--bg-1); border-bottom:var(--hairline); }
.chatsearch__hit { display:flex; flex-direction:column; gap:2px; width:100%; padding:10px 16px; background:none; border:none; border-bottom:1px solid var(--bg-3); color:var(--fg-0); text-align:left; font:inherit; }
.chatsearch__hit:hover { background:var(--bg-2); }
.chatsearch__who { font-size:12px; line-height:16px; color:var(--fg-2); }
.chatsearch__text { font-size:14px; line-height:20px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bubble__forwarded { display:inline-flex; align-items:center; gap:5px; font-size:12px; line-height:16px; color:var(--fg-2); font-style:italic; margin-bottom:2px; }
.invite-link { padding:10px 12px; border-radius:8px; background:var(--bg-2); border:1px solid var(--bg-4); font-family:var(--font-mono); font-size:13px; word-break:break-all; user-select:all; }

/* help centre, support threads, admin console */
.help__body, .admin__body { flex:1; display:flex; flex-direction:column; padding-bottom:24px; }
.faq { border-bottom:1px solid var(--bg-3); }
.faq__q { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:12px 16px; background:none; border:none; color:var(--fg-0); font:inherit; font-size:15px; line-height:20px; text-align:left; }
.faq--open .faq__q { color:var(--active); }
.faq__a { padding:0 16px 14px; font-size:14px; line-height:21px; color:var(--fg-1); max-width:64ch; }
.guide { display:flex; flex-direction:column; gap:8px; padding:8px 16px 24px; max-width:66ch; }
.guide__steps { margin:8px 0 0; padding-left:22px; display:flex; flex-direction:column; gap:10px; font-size:15px; line-height:22px; }
.guide__steps li::marker { color:var(--active); font-weight:600; }
.ticket__head { padding:8px 16px 4px; display:flex; flex-direction:column; gap:6px; }
.ticket__meta { font-size:13px; line-height:18px; color:var(--fg-1); }
.ticket__controls { display:flex; gap:8px; align-items:center; flex-wrap:wrap; padding-top:6px; }
.ticket__form { display:flex; flex-direction:column; gap:10px; padding:4px 16px 16px; max-width:640px; }
.ticket__reply { display:flex; flex-direction:column; gap:8px; padding:8px 16px 16px; max-width:720px; }
.thread { display:flex; flex-direction:column; gap:10px; padding:10px 16px; }
.tmsg { max-width:min(80%, 640px); padding:10px 14px; border-radius:var(--radius-md); background:var(--bubble-in); }
.tmsg--me { align-self:flex-end; background:var(--bubble-out); }
.tmsg--staff { align-self:flex-start; }
.tmsg__who { font-size:12px; line-height:16px; color:var(--fg-2); margin-bottom:4px; }
.tmsg__body { font-size:15px; line-height:21px; white-space:pre-wrap; word-break:break-word; overflow-wrap:anywhere; }
.tstatus { font-weight:600; }
.tag { display:inline-block; padding:1px 8px; border-radius:var(--radius-full); background:var(--bg-3); color:var(--fg-1); font-size:12px; line-height:18px; font-weight:600; vertical-align:middle; }
.tag--admin { background:var(--tint-purple); color:var(--active); }
.tag--team { background:var(--tint-green); color:var(--success); }
.tiles { display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:10px; padding:8px 16px; }
.tile { background:var(--bg-2); border-radius:var(--radius-md); padding:12px 14px; display:flex; flex-direction:column; gap:2px; min-width:0; }
.tile__label { font-size:12px; line-height:16px; color:var(--fg-2); text-transform:uppercase; letter-spacing:.04em; }
.tile__value { font-size:28px; line-height:34px; font-weight:600; font-variant-numeric:tabular-nums; }
.tile__sub { font-size:12px; line-height:16px; color:var(--fg-1); }
.bars-wrap { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:10px; padding:0 16px; }
.bars { background:var(--bg-2); border-radius:var(--radius-md); padding:12px 14px; display:flex; flex-direction:column; gap:8px; }
.bars__head { display:flex; justify-content:space-between; font-size:13px; }
.bars__title { font-weight:600; }
.bars__plot { display:flex; align-items:flex-end; gap:4px; height:96px; border-bottom:1px solid var(--bg-4); }
.bars__col { flex:1; height:100%; display:flex; align-items:flex-end; }
.bars__bar { width:100%; border-radius:3px 3px 0 0; min-height:2px; }
.bars__axis { display:flex; justify-content:space-between; font-size:11px; color:var(--fg-2); }
.admin__search { display:flex; align-items:center; gap:10px; padding:8px 16px; }
.table-wrap { overflow-x:auto; padding:0 16px; }
.table { width:100%; border-collapse:collapse; font-size:14px; line-height:20px; }
.table th { text-align:left; font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:var(--fg-2); font-weight:600; padding:8px 10px; border-bottom:1px solid var(--bg-4); white-space:nowrap; }
.table td { padding:10px 10px; border-bottom:1px solid var(--bg-3); vertical-align:top; white-space:nowrap; }
.table .num { text-align:right; font-variant-numeric:tabular-nums; }
.table__primary { font-weight:500; color:var(--fg-0); display:flex; align-items:center; gap:8px; }
.table__sub { font-size:12px; line-height:16px; color:var(--fg-2); }
.help .conv-header, .admin .conv-header { padding-right:12px; }

/* reading widths: help is a document, admin tables stay wide but threads don't */
.help__body { width:100%; max-width:960px; margin:0 auto; }
.admin .ticket__head, .admin .thread, .admin .ticket__reply { width:100%; max-width:960px; margin:0 auto; }
.help .chatsearch, .admin__search { max-width:960px; margin:0 auto; width:100%; }

/* developer screen */
.developer .help__body { max-width:960px; }
.mono { font-family:var(--font-mono); font-size:13px; }
.secret { margin:4px 16px 12px; padding:12px 14px; border-radius:var(--radius-md); background:var(--tint-green); border:1px solid var(--success); display:flex; flex-direction:column; gap:10px; }
.secret__title { font-weight:600; color:var(--success); }
.check { display:inline-flex; align-items:center; gap:8px; font-size:14px; line-height:20px; color:var(--fg-0); cursor:pointer; }
.check input { accent-color:var(--active); width:16px; height:16px; }
.check--dim { opacity:.45; }
.events { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:8px 16px; }
