@font-face {
  font-family: "Space Grotesk";
  src: url("/chats/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/chats/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/chats/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --bg-1: #101013;
  --bg-2: #16161b;
  --surface: #131318;
  --surface-2: #1a1a21;
  --line: #26262e;
  --line-2: #33333d;
  --gold: #ffd700;
  --gold-dim: #e6c200;
  --gold-bright: #ffdf33;
  --gold-soft: rgba(255, 215, 0, 0.14);
  --red: #ff4d4d;
  --red-soft: rgba(255, 77, 77, 0.14);
  --t0: #fafafa;
  --t1: #c4c9d4;
  --t2: #9ca3af;
  --t3: #6b7180;
  --on-gold: #0a0a0b;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --sidebar: clamp(300px, 26vw, 380px);
  --info: 300px;
  --head: 60px;
  --tap: 44px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--t0);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--t2); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 16px; height: 16px; }
.ic-gold { color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface-2); color: var(--t0);
  font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.1s var(--ease);
}
.btn:hover { border-color: var(--t3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.btn.primary:hover { background: var(--gold-bright); }
.btn.danger { background: var(--red-soft); border-color: rgba(255, 77, 77, 0.4); color: #ffb3b3; }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn.is-busy { position: relative; color: transparent; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--t2); border-top-color: transparent; animation: spin 0.7s linear infinite;
}
.btn.primary.is-busy::after { border-color: var(--on-gold); border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid; place-items: center; width: var(--tap); height: var(--tap);
  border: 0; border-radius: var(--r); background: transparent; color: var(--t1); cursor: pointer; flex: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--t0); }
.icon-btn.active { color: var(--gold); }

.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--t1); }
.hint { font-size: 14px; color: var(--t2); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: var(--tap); padding: 10px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-1); color: var(--t0);
  font-size: 16px;
}
.field textarea { resize: vertical; min-height: 88px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; color: var(--t1); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.form-error { color: #ffb3b3; font-size: 14px; min-height: 1.5em; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--t1); border: 1px solid var(--line-2); white-space: nowrap; }
.badge.gold { background: var(--gold-soft); color: var(--gold); border-color: rgba(255, 215, 0, 0.35); }
.real-check { color: var(--gold); display: inline-flex; vertical-align: -3px; }
.real-check .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.alt-tag { font-size: 12px; color: var(--t3); }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; overflow: hidden;
  display: grid; place-items: center; background: var(--surface-2); color: var(--gold);
  font: 600 15px/1 var(--font-head); border: 1px solid var(--line-2);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 88px; height: 88px; font-size: 32px; }
.avatar-sm { width: 28px; height: 28px; font-size: 12px; }

.modal {
  width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0;
  border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-1); color: var(--t0);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.modal::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 0 20px; }
.modal-head h2 { font-size: 20px; }
.modal-body { display: grid; gap: 16px; padding: 16px 20px 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal-actions:empty { display: none; }

.toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.toast-error { border-color: rgba(255, 77, 77, 0.5); }
.toast-out { opacity: 0; transform: translateY(8px); }
@media (max-width: 719px) {
  .toasts { bottom: auto; top: calc(var(--app-top, 0px) + env(safe-area-inset-top) + var(--head) + 8px); }
  .toast-out { transform: translateY(-8px); }
}

.landing { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--t0); text-decoration: none; font: 700 20px/1 var(--font-head); letter-spacing: -0.03em; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--gold); color: var(--on-gold); display: grid; place-items: center; font-size: 15px; }
.brand em { font-style: normal; color: var(--gold); }
.landing { position: relative; isolation: isolate; overflow-x: clip; }
.landing::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1500px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center top;
  -webkit-mask-image: radial-gradient(120% 70% at 70% 10%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 70% at 70% 10%, #000 30%, transparent 75%);
}
.landing { --grid-line: rgba(255, 215, 0, 0.05); --gold-text: #f2dc7a; --rail: 112px; }
.landing-main { display: grid; gap: 80px; padding: 32px 16px 24px; width: min(1200px, 100%); margin: 0 auto; align-content: start; }

.hero { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 500 13px/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--t2); }
.eyebrow-tag { padding: 4px 8px; border: 1px solid rgba(255, 215, 0, 0.45); border-radius: 6px; color: var(--gold); }
.hero h1 { font-size: clamp(42px, 9vw, 84px); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.hero-line { display: inline; }
.hero-gold { color: var(--gold); }
.hero-lead { font-size: 18px; line-height: 1.6; color: var(--t1); max-width: 56ch; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn { flex: 1 1 180px; min-height: 52px; font-size: 16px; }
.hero-cta .btn.ghost { border-color: var(--line-2); }
.hero-copy > *, .cipher { animation: rise 0.8s var(--ease) both; }
.hero-copy > .eyebrow { animation-delay: 0.05s; }
.hero-copy > h1 { animation-delay: 0.12s; }
.hero-copy > .hero-lead { animation-delay: 0.24s; }
.hero-copy > .hero-cta { animation-delay: 0.34s; }
.cipher { animation-delay: 0.3s; animation-duration: 1s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.cipher {
  --mx: 50%; --my: 0%;
  position: relative; margin: 0; display: grid; gap: 14px; padding: 18px; min-width: 0;
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-1) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 48px -24px rgba(0, 0, 0, 0.8), 0 40px 120px -48px rgba(255, 215, 0, 0.18);
}
.cipher::before {
  content: ""; position: absolute; inset: -8px; pointer-events: none; opacity: 0.8;
  background:
    linear-gradient(var(--gold), var(--gold)) left top / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left top / 1px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right top / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right top / 1px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 1px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 1px 16px no-repeat;
}
.cipher::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 215, 0, 0.07), transparent 60%);
  transition: opacity 0.4s var(--ease);
}
.cipher > * { position: relative; z-index: 1; }
@media (hover: hover) { .cipher:hover::after { opacity: 1; } }
.cipher-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line-2); font: 500 13px/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--t1); }
.cipher-fig { color: var(--gold); }
.cipher-pane { display: grid; gap: 8px; min-width: 0; }
.cipher-label { font: 600 12px/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--t2); }
.cipher-input {
  width: 100%; min-height: 76px; padding: 12px 14px; resize: none;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); color: var(--t0);
  font: 500 18px/1.4 var(--font-body);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cipher-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.cipher-count { font: 500 14px/1.3 var(--font-mono); color: var(--t2); font-variant-numeric: tabular-nums; }
.cipher-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.cipher-flow-text { font: 600 12px/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.cipher-flow-line {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px);
  background-size: 24px 1px; opacity: 0.6; animation: flow 1.2s linear infinite;
}
@keyframes flow { to { background-position: 24px 0; } }
.cipher-out {
  margin: 0; min-height: calc(1.55em * 6); max-height: calc(1.55em * 9); overflow: auto; padding: 12px 14px;
  border: 1px dashed rgba(255, 215, 0, 0.35); border-radius: var(--r); background: var(--bg);
  font: 500 14px/1.55 var(--font-mono); color: var(--gold-text);
  white-space: pre-wrap; word-break: break-all;
}
.cipher-out.is-pending { color: var(--t2); }
.cipher-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.cipher-meta div { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-1); }
.cipher-meta dt { font: 600 12px/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--t2); }
.cipher-meta dd { margin: 0; font: 600 16px/1.3 var(--font-head); color: var(--t0); font-variant-numeric: tabular-nums; }
.cipher-meta dd.tick { animation: tick 0.45s var(--ease); }
@keyframes tick { from { color: var(--gold); transform: translateY(-3px); } to { color: var(--t0); transform: none; } }
.cipher-again { justify-self: start; }
.cipher-note { font-size: 16px; line-height: 1.5; color: var(--t2); }

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec { display: grid; gap: 6px; align-content: start; padding: 20px 16px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.spec:nth-child(-n + 2) { border-top: 0; }
.spec:nth-child(2n + 1) { border-left: 0; }
.spec strong { font: 700 clamp(32px, 6vw, 48px)/1 var(--font-head); letter-spacing: -0.03em; color: var(--t0); font-variant-numeric: tabular-nums; }
.spec strong::before { content: ""; display: block; width: 20px; height: 2px; margin-bottom: 14px; background: var(--gold); }
.spec span { font-size: 15px; line-height: 1.4; color: var(--t2); }

.section-head { display: grid; gap: 10px; align-content: start; }
.section-index { display: flex; align-items: center; gap: 12px; font: 600 14px/1 var(--font-mono); letter-spacing: 0.08em; color: var(--gold); }
.section-index::after { content: ""; flex: 1; max-width: 64px; height: 1px; background: rgba(255, 215, 0, 0.45); }
.section-head h2 { font-size: clamp(28px, 5vw, 44px); letter-spacing: -0.03em; text-wrap: balance; }

.features-wrap, .ledger, .crypto, .compare, .privacy { display: grid; gap: 28px; }
.compare-body { display: grid; gap: 16px; min-width: 0; }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table thead { display: none; }
.compare-table tbody { display: grid; gap: 12px; }
.compare-table tr { display: block; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-1); overflow: hidden; }
.compare-table tbody th { display: block; padding: 16px 18px 12px; text-align: left; font: 600 18px/1.3 var(--font-head); color: var(--t0); text-wrap: balance; }
.compare-table td { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; align-content: start; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--t1); }
.compare-table td::before { content: attr(data-app); grid-row: span 2; font: 600 14px/1.5 var(--font-mono); color: var(--t2); }
.compare-table td.compare-alos { background: rgba(255, 215, 0, 0.05); }
.compare-table td.compare-alos::before { color: var(--gold); }
.mark { display: flex; align-items: center; gap: 8px; width: fit-content; margin-bottom: 4px; font: 600 14px/1.4 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.mark::before { content: ""; width: 8px; height: 8px; flex: none; }
.mark.yes { color: var(--gold); }
.mark.yes::before { background: var(--gold); transform: rotate(45deg); }
.mark.part { color: var(--gold-text); }
.mark.part::before { border: 1.5px solid var(--gold-text); transform: rotate(45deg); }
.mark.no { color: var(--t2); }
.mark.no::before { height: 2px; width: 10px; background: var(--t2); }
.compare-sources { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-1); }
.compare-sources summary { min-height: var(--tap); display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--t0); }
.compare-sources p { margin: 4px 0 10px; font-size: 15px; color: var(--t2); }
.compare-sources ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; }
.compare-sources a { overflow-wrap: anywhere; }
.section-lead { font-size: 16px; line-height: 1.6; color: var(--t2); max-width: 46ch; text-wrap: pretty; }
.crypto-body { display: grid; gap: 24px; }
.crypto-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: crypto; }
.crypto-step { display: grid; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--line); counter-increment: crypto; }
.crypto-step h3 { display: flex; align-items: baseline; gap: 12px; font: 600 20px/1.3 var(--font-head); color: var(--t0); }
.crypto-step h3::before { content: counter(crypto, decimal-leading-zero); flex: none; font: 600 14px/1 var(--font-mono); color: var(--gold); }
.crypto-step p { font-size: 16px; line-height: 1.6; color: var(--t1); max-width: 68ch; text-wrap: pretty; }
.crypto-tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crypto-tags li { padding: 4px 10px; border: 1px solid rgba(255, 215, 0, 0.35); border-radius: 999px; background: rgba(255, 215, 0, 0.05); font: 500 14px/1.4 var(--font-mono); color: var(--gold-text); }
.crypto-limits { display: grid; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--bg-1); }
.crypto-limits h3 { padding-bottom: 14px; font-size: 20px; }
.crypto-limits ul { list-style: none; margin: 0; padding: 0; }
.crypto-limits li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: var(--t1); }
.crypto-limits strong { color: var(--t0); }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line); counter-reset: feature; }
.feature {
  position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; padding: 20px 0;
  border-top: 1px solid var(--line); counter-increment: feature;
}
.feature::before { content: counter(feature, decimal-leading-zero); grid-row: span 2; font: 600 14px/1.6 var(--font-mono); color: var(--gold); transition: transform 0.3s var(--ease); }
.feature::after { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.feature strong { font: 600 20px/1.3 var(--font-head); color: var(--t0); }
.feature p { font-size: 16px; line-height: 1.55; color: var(--t2); max-width: 58ch; }
@media (hover: hover) {
  .feature:hover::after { transform: scaleX(1); }
  .feature:hover::before { transform: translateX(4px); }
}

.ledger-grid { display: grid; gap: 16px; }
.ledger-col { display: grid; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-1); }
.ledger-never { border-color: rgba(255, 215, 0, 0.35); background: linear-gradient(180deg, rgba(255, 215, 0, 0.06), var(--bg-1) 55%); }
.ledger-col h3 { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; font-size: 20px; }
.ledger-col h3::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 2px; }
.ledger-never h3::before { background: var(--gold); }
.ledger-seen h3::before { border: 1.5px solid var(--t2); border-radius: 50%; }
.ledger-col ul { list-style: none; margin: 0; padding: 0; }
.ledger-col li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--t1); }
.ledger-col li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; }
.ledger-never li::before { background: var(--gold); transform: rotate(45deg); }
.ledger-seen li::before { border: 1.5px solid var(--t2); border-radius: 50%; }

.landing-grid { display: grid; gap: 24px; }
.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-1); }
.fact { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 18px 20px; border-top: 1px solid var(--line); transition: background 0.3s var(--ease); }
.fact:first-child { border-top: 0; }
.fact .ic { color: var(--gold); margin-top: 2px; }
.fact strong { display: block; font-family: var(--font-head); font-size: 18px; margin-bottom: 4px; }
.fact p { color: var(--t2); font-size: 16px; line-height: 1.55; }
@media (hover: hover) { .fact:hover { background: var(--surface); } }
.auth-card { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); padding: 20px; display: grid; gap: 18px; align-content: start; box-shadow: inset 0 1px 0 rgba(255, 215, 0, 0.35), 0 24px 48px -24px rgba(0, 0, 0, 0.8); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--bg-1); border-radius: var(--r); border: 1px solid var(--line); }
.tab { min-height: 40px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--t2); font-weight: 600; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--surface-2); color: var(--t0); box-shadow: inset 0 0 0 1px var(--line-2); }
.auth-panel { display: grid; gap: 14px; }
.key-box { padding: 14px; border-radius: var(--r); border: 1px dashed rgba(255, 215, 0, 0.5); background: var(--gold-soft); font: 500 16px/1.6 var(--font-mono); color: var(--gold); word-break: break-all; user-select: all; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .btn { flex: 1 1 140px; }
.notice { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid rgba(255, 77, 77, 0.3); background: var(--red-soft); color: var(--t1); font-size: 15px; }
.notice .ic { color: var(--red); }
.notice strong { color: var(--t0); }
.session-note { margin: 0; color: var(--t2); font-size: 14px; text-align: center; }
.landing-end { display: grid; gap: 16px; margin-top: -32px; }

.spec:nth-child(2), .feature:nth-child(2), .fact:nth-child(2), .ledger-col:nth-child(2) { --i: 1; }
.spec:nth-child(3), .feature:nth-child(3), .fact:nth-child(3) { --i: 2; }
.spec:nth-child(4), .feature:nth-child(4), .fact:nth-child(4) { --i: 3; }
.spec:nth-child(5), .feature:nth-child(5), .fact:nth-child(5) { --i: 4; }
.spec:nth-child(6), .feature:nth-child(6), .fact:nth-child(6) { --i: 5; }
.feature:nth-child(7), .fact:nth-child(7) { --i: 6; }
.feature:nth-child(8) { --i: 7; }
.reveal-on [data-reveal] :is(.spec, .feature, .fact, .ledger-col, .section-head, .crypto-step, .crypto-limits) {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background 0.3s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal-on [data-reveal].is-in :is(.spec, .feature, .fact, .ledger-col, .section-head, .crypto-step, .crypto-limits) { opacity: 1; transform: none; }

@media (min-width: 640px) {
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec:nth-child(n) { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .spec:nth-child(-n + 3) { border-top: 0; }
  .spec:nth-child(3n + 1) { border-left: 0; }
  .ledger-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .compare-table { display: table; table-layout: fixed; }
  .compare-table thead { display: table-header-group; }
  .compare-table tbody { display: table-row-group; }
  .compare-table tr { display: table-row; border: 0; border-radius: 0; background: none; }
  .compare-table th, .compare-table td { display: table-cell; padding: 16px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
  .compare-table td::before { content: none; }
  .compare-table thead th { padding-top: 0; padding-bottom: 14px; border-top: 0; border-bottom: 1px solid var(--line-2); font: 600 14px/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--t2); }
  .compare-table thead th:first-child { width: 22%; }
  .compare-table thead th.compare-alos { color: var(--gold); }
  .compare-table tbody th { padding-left: 0; font-size: 16px; }
  .compare-table .compare-alos { background: rgba(255, 215, 0, 0.05); box-shadow: inset 1px 0 0 rgba(255, 215, 0, 0.25), inset -1px 0 0 rgba(255, 215, 0, 0.25); }
  .landing-main { padding-top: 56px; gap: 112px; }
  .landing-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .auth-card { padding: 28px; position: sticky; top: 112px; }
  .cipher { padding: 22px; }
}

@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; min-height: min(720px, calc(100dvh - 140px)); }
  .hero-line { display: block; }
  .features-wrap, .ledger, .crypto { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
  .features-wrap .section-head, .ledger .section-head, .crypto .section-head { position: sticky; top: var(--rail); }
}

@media (min-width: 1100px) {
  .specs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .spec:nth-child(n) { border-top: 0; border-left: 1px solid var(--line); }
  .spec:first-child { border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .cipher, .cipher-flow-line { animation: none; }
  .reveal-on [data-reveal] :is(.spec, .feature, .fact, .ledger-col, .section-head, .crypto-step, .crypto-limits) { opacity: 1; transform: none; transition: none; }
}

.app { position: fixed; left: 0; right: 0; top: var(--app-top, 0px); height: var(--app-h, 100dvh); display: grid; grid-template-columns: 1fr; overflow: hidden; }
.pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.sidebar { background: var(--bg-1); border-right: 1px solid var(--line); }
.chat { position: relative; }
.info { background: var(--bg-1); border-left: 1px solid var(--line); }
.pane-head { height: var(--head); flex: none; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 12px; border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); box-sizing: content-box; }
.pane-head h2 { font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pane-head .grow { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.pane-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }

.me-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.me-bar .who { flex: 1; min-width: 0; }
.me-bar .who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.side-actions .btn { padding: 0 10px; font-size: 15px; }
.side-label { padding: 14px 16px 6px; font: 600 12px/1 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--t3); display: flex; justify-content: space-between; align-items: center; }
.room-link {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; margin: 0 8px;
  border-radius: var(--r); color: var(--t1); text-decoration: none; cursor: pointer;
}
.room-link:hover { background: var(--surface); color: var(--t0); }
.room-link.active { background: var(--surface-2); color: var(--t0); box-shadow: inset 2px 0 0 var(--gold); }
.room-link .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-link .ic { color: var(--t3); }
.unread { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.empty { padding: 24px 16px; color: var(--t3); font-size: 15px; text-align: center; }

.chat-empty { flex: 1; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--t2); }
.chat-empty h2 { color: var(--t0); font-size: 24px; margin-bottom: 8px; }
.room-meta { display: flex; align-items: center; gap: 6px; color: var(--t3); font-size: 13px; }

.messages { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 0 8px; display: flex; flex-direction: column; }
.messages-inner { display: flex; flex-direction: column; margin-top: auto; }
.history-sentinel { height: 1px; }
.history-state { padding: 10px; text-align: center; color: var(--t3); font-size: 14px; }
.day-sep { align-self: center; margin: 14px 0 6px; padding: 2px 10px; border-radius: 999px; background: var(--surface); color: var(--t3); font-size: 12px; }
.msg { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; padding: 3px 16px; position: relative; }
.msg:hover { background: rgba(255, 255, 255, 0.02); }
.msg.cont .msg-avatar, .msg.cont .msg-head { display: none; }
.msg.cont { padding-top: 1px; }
.msg-avatar { grid-row: span 2; padding-top: 2px; border: 0; background: none; padding-left: 0; padding-right: 0; cursor: pointer; align-self: start; }
.msg-body { grid-column: 2; min-width: 0; }
.msg-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.msg-name { border: 0; background: none; padding: 0; color: var(--t0); font-weight: 600; cursor: pointer; font-size: 15px; }
.msg-name:hover { text-decoration: underline; }
.msg-time { color: var(--t3); font-size: 12px; }
.msg-text { white-space: pre-wrap; color: var(--t1); font-size: 16px; }
.msg.pending .msg-text, .msg.pending .msg-file { opacity: 0.55; }
.msg.failed .msg-text { color: #ffb3b3; }
.msg.unverified .msg-text { color: var(--t3); font-style: italic; }
.msg.mine { grid-template-columns: minmax(0, 1fr); }
.msg.mine .msg-avatar, .msg.mine .msg-name, .msg.mine .msg-head .real-check { display: none; }
.msg.mine .msg-body { grid-column: 1; display: flex; flex-direction: column; align-items: flex-end; margin-left: 48px; }
.msg.mine .msg-text { max-width: min(560px, 100%); padding: 8px 12px; border: 1px solid rgba(255, 215, 0, 0.28); border-radius: 16px 16px 4px 16px; background: var(--gold-soft); color: var(--t0); }
.msg.mine .msg-reply { max-width: 100%; padding-left: 0; padding-right: 8px; border-left: 0; border-right: 2px solid var(--line-2); }
.msg.mine .reacts { justify-content: flex-end; }
.msg.mine .msg-file { align-self: flex-end; }
.msg-state { font-size: 12px; color: var(--t3); }
.msg-state.err { color: #ffb3b3; }
.msg-reply { display: flex; gap: 6px; align-items: center; margin: 2px 0 4px; padding-left: 8px; border-left: 2px solid var(--line-2); color: var(--t3); font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.msg-tools { position: absolute; top: -14px; right: 16px; display: none; gap: 2px; padding: 2px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-2); z-index: 2; }
.msg-tools .icon-btn { width: 34px; height: 34px; }
.msg:hover .msg-tools, .msg:focus-within .msg-tools { display: flex; }
@media (hover: none) {
  .msg:hover .msg-tools, .msg:focus-within .msg-tools { display: none; }
  .msg, .room-link, .member { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}

.invite-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 14px;
  width: min(360px, 100%); margin-top: 4px; padding: 14px;
  border: 1px solid rgba(255, 215, 0, 0.32); border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.02) 60%), var(--surface);
  color: var(--t0);
}
.invite-ic { width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center; background: var(--gold); color: var(--on-gold); }
.invite-ic .ic { width: 22px; height: 22px; }
.invite-meta { display: grid; gap: 2px; min-width: 0; }
.invite-kicker { font: 600 12px/1.3 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.invite-name { font: 600 18px/1.25 var(--font-head); color: var(--t0); overflow-wrap: anywhere; }
.invite-sub { display: flex; align-items: center; gap: 5px; color: var(--t2); font-size: 13px; }
.invite-card .btn { grid-column: 1 / -1; width: 100%; }

.ctx-menu {
  position: fixed; z-index: 95; width: min(300px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px); overflow-y: auto; padding: 6px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface-2); color: var(--t0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 215, 0, 0.04);
  animation: ctx-in 0.12s var(--ease);
}
.ctx-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px;
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--t1);
  font: 500 15px/1.2 var(--font-body); text-align: left; cursor: pointer;
}
.ctx-item .ic { width: 18px; height: 18px; flex: none; color: var(--t3); }
.ctx-item:hover, .ctx-item:focus-visible { background: var(--surface); color: var(--t0); outline: none; }
.ctx-item:hover .ic, .ctx-item:focus-visible .ic { color: var(--gold); }
.ctx-item.danger { color: #ff8080; }
.ctx-item.danger .ic, .ctx-item.danger:hover .ic, .ctx-item.danger:focus-visible .ic { color: var(--red); }
.ctx-item.danger:hover, .ctx-item.danger:focus-visible { background: var(--red-soft); color: #ffb3b3; }
.ctx-item:disabled { opacity: 0.45; cursor: default; background: transparent; }
.ctx-sep { height: 1px; margin: 6px 4px; background: var(--line); }
.ctx-title { padding: 4px 10px 10px; font: 600 14px/1.3 var(--font-head); color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-reacts { display: flex; justify-content: space-between; gap: 2px; padding: 2px 2px 6px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.ctx-react { flex: 1 1 0; min-width: 0; height: 40px; padding: 0; border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; font-size: 20px; cursor: pointer; }
.ctx-react:hover, .ctx-react:focus-visible { background: var(--surface); outline: none; border-color: var(--line-2); }
.ctx-react.on { background: var(--gold-soft); border-color: rgba(255, 215, 0, 0.5); }
.vol-row { display: grid; gap: 4px; padding: 6px 10px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.vol-head { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; line-height: 1.3; color: var(--t2); }
.vol-head span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vol-value { flex: none; font-variant-numeric: tabular-nums; color: var(--t1); }
.vol-row input[type="range"] { width: 100%; height: 32px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.ctx-menu.sheet .vol-row input[type="range"] { height: var(--tap); }
.ctx-backdrop { position: fixed; inset: 0; z-index: 94; background: rgba(0, 0, 0, 0.55); animation: ctx-fade 0.15s ease-out; }
.ctx-menu.sheet {
  left: 0; right: 0; bottom: 0; top: auto; width: 100%; max-width: none; max-height: 80dvh;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0;
  animation: ctx-sheet 0.2s var(--ease);
}
.ctx-menu.sheet::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 999px; background: var(--line-2); }
.ctx-menu.sheet .ctx-item { min-height: var(--tap); font-size: 16px; }
.ctx-menu.sheet .ctx-react { height: 48px; font-size: 24px; }
.ctx-item:active, .ctx-react:active { background: var(--surface); }
@keyframes ctx-in { from { opacity: 0; transform: scale(0.97); } }
@keyframes ctx-fade { from { opacity: 0; } }
@keyframes ctx-sheet { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .ctx-menu, .ctx-menu.sheet, .ctx-backdrop { animation: none; } }

.side-label-btn { width: 32px; height: 32px; margin: -8px -6px -8px 0; color: var(--t3); }
.side-label-btn:hover { color: var(--red); }
.pick-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; max-height: min(50dvh, 420px); overflow-y: auto; }
.pick-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 4px 4px 4px 8px; border-radius: var(--r); }
.pick-row:hover { background: var(--surface); }
.pick-row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--t0); }
.pick-row .btn { min-width: 88px; }
.pick-row .btn.sent { border-color: rgba(255, 215, 0, 0.5); color: var(--gold); background: var(--gold-soft); opacity: 1; }
.pick-ic { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--surface-2); color: var(--gold); flex: none; }
.radio-group { display: grid; gap: 10px; }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.react { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 14px; }
.react.mine { border-color: rgba(255, 215, 0, 0.5); background: var(--gold-soft); }
.react-picker { display: flex; gap: 2px; padding: 4px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); position: absolute; right: 16px; top: 22px; z-index: 3; }
.react-picker button { width: 40px; height: 40px; border: 0; border-radius: var(--r-sm); background: transparent; font-size: 20px; cursor: pointer; }
.react-picker button:hover { background: var(--surface); }
.sys { align-self: center; margin: 8px 16px; padding: 6px 12px; border-radius: var(--r); background: var(--surface); color: var(--t2); font-size: 14px; text-align: center; }
.msg-file { margin-top: 6px; max-width: min(360px, 100%); }
.msg-img { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface); cursor: zoom-in; padding: 0; display: block; max-width: 100%; }
.msg-img img { max-height: 320px; width: auto; object-fit: contain; }
.msg-img .img-ph { width: 240px; max-width: 100%; height: 160px; display: grid; place-items: center; color: var(--t3); font-size: 14px; gap: 6px; }
.file-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); color: var(--t0); text-decoration: none; cursor: pointer; width: 100%; text-align: left; }
.file-card .meta { min-width: 0; flex: 1; }
.file-card .meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 15px; }
.file-card .meta span { color: var(--t3); font-size: 13px; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.92); display: grid; place-items: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 32px); object-fit: contain; }
.lightbox .icon-btn { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; background: var(--surface-2); }

.typing { min-height: 22px; padding: 0 16px; color: var(--t3); font-size: 13px; }
.composer { flex: none; border-top: 1px solid var(--line); padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); display: grid; gap: 6px; background: var(--bg); }
.composer-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--r-sm); background: var(--surface); color: var(--t2); font-size: 14px; }
.composer-bar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-bar .icon-btn { width: 32px; height: 32px; }
.composer-row { display: flex; align-items: flex-end; gap: 6px; }
.composer textarea {
  flex: 1; min-height: var(--tap); max-height: 180px; padding: 10px 14px; resize: none;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-1); font-size: 16px; line-height: 1.45;
}
.composer textarea:focus { outline: none; border-color: var(--gold); }
.composer .send { background: var(--gold); color: var(--on-gold); }
.composer .send:hover { background: var(--gold-bright); color: var(--on-gold); }
.composer-foot { display: flex; justify-content: space-between; gap: 8px; color: var(--t3); font-size: 12px; min-height: 16px; }
.composer-foot .over { color: #ffb3b3; }
.composer-locked { padding: 12px; border-radius: var(--r); background: var(--surface); color: var(--t2); font-size: 15px; text-align: center; }
.progress { height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 0.2s linear; }
.upload-row { display: grid; gap: 4px; font-size: 13px; color: var(--t2); }

.info-section { padding: 16px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.info-section h3 { font-size: 14px; color: var(--t2); text-transform: uppercase; letter-spacing: 0.06em; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.kv span:first-child { color: var(--t2); }
.member { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; margin: 0 -8px; border-radius: var(--r-sm); cursor: pointer; border: 0; background: none; width: calc(100% + 16px); text-align: left; }
.member:hover { background: var(--surface); }
.member .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--t3); flex: none; }
.member .dot.on { background: #4ade80; }
.code-box { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line-2); font: 500 15px/1.4 var(--font-mono); color: var(--gold); }
.code-box span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.profile { display: grid; justify-items: center; gap: 10px; text-align: center; }
.profile h3 { font-size: 22px; display: flex; align-items: center; gap: 6px; }
.profile-actions { display: grid; gap: 8px; width: 100%; }
.staff-tools { display: grid; gap: 8px; width: 100%; padding-top: 12px; border-top: 1px solid var(--line); }
.staff-tools .row .btn { flex: 1 1 70px; padding: 0 8px; }

.settings { padding: 16px; display: grid; gap: 16px; width: min(640px, 100%); margin: 0 auto; }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-1); padding: 18px; display: grid; gap: 14px; }
.card h3 { font-size: 18px; }
.diag-box { max-height: 240px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); color: var(--t1); font: 500 13px/1.5 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.pfp-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.req { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-1); }
.req-head { display: flex; align-items: center; gap: 10px; }
.req-note { padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface); color: var(--t1); white-space: pre-wrap; }
.blocker { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10, 10, 11, 0.8); z-index: 5; padding: 16px; }

.info-overlay { display: none; }

@media (max-width: 719px) {
  .app .pane { grid-area: 1 / 1; }
  .app[data-view="list"] .chat, .app[data-view="list"] .info { display: none; }
  .app[data-view="chat"] .sidebar { display: none; }
  .app .info { display: none; }
  .app.info-open .info { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 82dvh; z-index: 40; border-left: 0; border-top: 1px solid var(--line-2); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6); }
  .app.info-open .info-overlay { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, 0.6); }
}
@media (min-width: 720px) {
  .app { grid-template-columns: var(--sidebar) 1fr; }
  .back-btn { display: none !important; }
  .app .info { display: none; }
  .app.info-open .info { display: flex; position: fixed; top: 0; right: 0; bottom: 0; width: var(--info); z-index: 40; box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5); }
  .app.info-open .info-overlay { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, 0.4); }
}
@media (min-width: 1100px) {
  .app.info-open { grid-template-columns: var(--sidebar) 1fr var(--info); }
  .app.info-open .info { position: static; width: auto; box-shadow: none; }
  .app.info-open .info-overlay { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.messages-area { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.messages { position: relative; }
.title-stack { min-width: 0; display: grid; gap: 2px; }
.jump { position: absolute; right: 16px; bottom: 12px; min-height: 40px; z-index: 4; background: var(--surface-2); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.msg-wrap { display: flex; flex-direction: column; }
.msg-wrap.flash .msg, .msg.flash { background: var(--gold-soft); }
.flash > .msg { background: var(--gold-soft); transition: background 1s var(--ease); }
.composer-host { flex: none; }
.me-bar .badge { margin-left: 6px; }
.me-bar .who .muted { margin-right: 4px; }
.staff-tools .muted { margin-top: 4px; }
.side-actions .btn { white-space: nowrap; font-size: 14px; padding: 0 8px; gap: 6px; }
.info-section, .card, .auth-panel, .modal-body { grid-template-columns: minmax(0, 1fr); }
.info { overflow-x: hidden; }
.code-box { font-size: 14px; }
.code-box span { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }

.grow { flex: 1; min-width: 0; }
.badge.danger { background: var(--red-soft); color: #ffb3b3; border-color: rgba(255, 77, 77, 0.4); }
.keys-changed { color: #ffb3b3; }

.channel-tree { display: grid; gap: 1px; margin: 2px 8px 8px 26px; padding-left: 8px; border-left: 1px solid var(--line); }
.channel-link { display: flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 4px 10px; border-radius: var(--r-sm); color: var(--t2); text-decoration: none; font-size: 15px; }
.channel-link:hover { background: var(--surface); color: var(--t0); }
.channel-link.active { background: var(--surface-2); color: var(--t0); box-shadow: inset 2px 0 0 var(--gold); }
.channel-link.has-unread { color: var(--t0); font-weight: 600; }
.channel-link .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-link .ic { color: var(--t3); flex: none; }
.cat-head { display: flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 8px 6px 4px; border: 0; background: none; color: var(--t3); font: 600 12px/1 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; text-align: left; width: 100%; }
.cat-head:hover { color: var(--t1); }
.cat-head .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-head .chev { display: inline-grid; }
.cat-head .chev .ic { transition: transform 0.2s var(--ease); }
.cat-head .chev.shut .ic { transform: rotate(-90deg); }
.channel-add { display: flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 4px 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--t3); font-size: 14px; cursor: pointer; text-align: left; }
.channel-add:hover { color: var(--gold); background: var(--surface); }
.mention-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--red); color: var(--on-gold); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.req-badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--gold); border: 1px solid rgba(255, 215, 0, 0.35); font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.room-link.has-unread .name { color: var(--t0); font-weight: 600; }
.pending-join { color: var(--t2); font-size: 14px; cursor: default; }
.pending-join .msg-name { min-height: var(--tap); padding: 0 6px; }
.chan-title { display: inline-flex; align-items: center; gap: 2px; margin-left: 10px; color: var(--t2); font-weight: 500; font-size: 16px; }
.chan-title .ic { color: var(--t3); }

.msg.mentioned { background: rgba(255, 215, 0, 0.06); box-shadow: inset 2px 0 0 var(--gold); }
.mention { padding: 0 3px; border-radius: 4px; background: rgba(255, 215, 0, 0.12); color: var(--gold); font-weight: 600; }
.mention.me { background: rgba(255, 215, 0, 0.26); }
.mention.role { color: var(--role-color, var(--gold)); background: color-mix(in srgb, var(--role-color, var(--gold)) 16%, transparent); }
.edited { color: var(--t3); font-size: 12px; }
.md-code { font-family: var(--font-mono); font-size: 0.9em; padding: 1px 5px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line-2); color: var(--t0); }
.md-pre { margin: 4px 0; padding: 8px 10px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line-2); overflow-x: auto; white-space: pre; font: 14px/1.5 var(--font-mono); color: var(--t1); }
.md-quote { margin: 2px 0; padding-left: 10px; border-left: 3px solid var(--line-2); color: var(--t2); }
.spoiler { background: var(--t3); color: transparent; border-radius: 4px; cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.spoiler * { visibility: hidden; }
.spoiler.shown { background: var(--surface-2); color: inherit; cursor: auto; }
.spoiler.shown * { visibility: visible; }
.spoiler:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.blocked-msg .msg-body { grid-column: 1 / -1; }
.blocked-msg .msg-state .msg-name { min-height: 32px; }

.voice { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); width: min(320px, 100%); }
.voice .vplay { background: var(--gold); color: var(--on-gold); border-radius: 50%; }
.voice .vplay:hover { background: var(--gold-bright); color: var(--on-gold); }
.vwave { flex: 1; display: flex; align-items: center; gap: 2px; height: 28px; min-width: 0; }
.vbar { flex: 1; height: var(--h, 30%); min-height: 2px; border-radius: 2px; background: var(--line-2); transition: background 0.15s linear; }
.vbar.on { background: var(--gold); }
.vtime { font: 500 13px/1 var(--font-mono); color: var(--t1); min-width: 36px; text-align: right; }
.vspeed { min-width: 44px; min-height: 36px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--t1); font-size: 13px; font-weight: 600; cursor: pointer; }
.voice.loading { opacity: 0.7; }
.voice.gone { opacity: 0.5; }
.msg-video { width: 100%; max-height: 360px; border-radius: var(--r); border: 1px solid var(--line-2); background: #000; display: block; }
.msg-audio { width: min(320px, 100%); display: block; }
.media-ph { position: relative; cursor: pointer; }
.play-badge { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; background: rgba(10, 10, 11, 0.75); color: var(--gold); display: grid; place-items: center; }
.once-card.done { cursor: default; opacity: 0.75; }
.once-media { max-width: 100%; max-height: calc(100dvh - 96px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.once-note { position: absolute; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom)); text-align: center; color: var(--t1); font-size: 14px; }

.composer-input { flex: 1; position: relative; display: flex; min-width: 0; }
.composer-input textarea { width: 100%; }
.mention-pop { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); max-height: 280px; overflow-y: auto; padding: 4px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); z-index: 6; display: grid; gap: 2px; }
.mention-pop[hidden] { display: none; }
.mention-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--tap); padding: 6px 10px; border: 0; border-radius: var(--r-sm); background: none; color: var(--t0); font-size: 15px; cursor: pointer; text-align: left; }
.mention-opt.on, .mention-opt:hover { background: var(--gold-soft); }
.once-toggle.on { color: var(--gold); background: var(--gold-soft); }
.composer-bar.editing { color: var(--gold); }
.composer-row.recording { align-items: center; min-height: var(--tap); padding: 0 4px; gap: 10px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: rec-pulse 1.2s ease-in-out infinite; flex: none; }
@keyframes rec-pulse { 50% { opacity: 0.3; } }
.rec-time { font: 500 15px/1 var(--font-mono); color: var(--t0); }

.messages { touch-action: pan-y; }
.msg.swiping .msg-body, .msg.swiping .msg-avatar, .msg.swipe-return .msg-body, .msg.swipe-return .msg-avatar { transform: translateX(var(--swipe-x, 0px)); }
.msg.swipe-return .msg-body, .msg.swipe-return .msg-avatar { transition: transform 0.18s var(--ease); }
.msg.swiping { user-select: none; }
.msg.swiping::before { content: ""; position: absolute; left: 8px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--gold); opacity: var(--swipe-p, 0); transform: scale(calc(0.6 + var(--swipe-p, 0) * 0.4)); }

.modal.wide, .modal.group-settings { width: min(720px, calc(100vw - 32px)); }
.gs-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.gs-tab { min-height: var(--tap); padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--t2); font: 600 15px/1 var(--font-head); cursor: pointer; white-space: nowrap; }
.gs-tab:hover { color: var(--t0); }
.gs-tab.on { color: var(--gold); border-bottom-color: var(--gold); }
.gs-body, .gs-panel { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.gs-row { display: flex; gap: 8px; flex-wrap: wrap; }
.gs-group { display: flex; align-items: center; gap: 6px; padding-top: 8px; color: var(--t2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.gs-group strong { flex: 1; font-weight: 600; }
.gs-item { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 4px 4px 4px 10px; border-radius: var(--r-sm); background: var(--surface); }
.gs-item .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-item [aria-label="Move up"] .ic, .gs-group [aria-label="Move category up"] .ic { transform: rotate(180deg); }
.gs-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.invite-item .mono { color: var(--gold); }

.ov-wrap { overflow-x: auto; display: grid; gap: 6px; }
.ov-grid { border-collapse: collapse; width: 100%; font-size: 13px; }
.ov-grid th { color: var(--t2); font-weight: 600; padding: 6px 4px; text-align: center; }
.ov-grid .ov-role { text-align: left; color: var(--t0); white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.ov-grid td { padding: 2px; text-align: center; }
.ov-cell { width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg); color: var(--t2); font: 700 16px/1 var(--font-body); cursor: pointer; }
.ov-cell[data-state="allow"] { background: rgba(74, 222, 128, 0.14); color: #4ade80; border-color: rgba(74, 222, 128, 0.4); }
.ov-cell[data-state="deny"] { background: var(--red-soft); color: #ffb3b3; border-color: rgba(255, 77, 77, 0.4); }
.ov-cell:disabled { opacity: 0.4; cursor: not-allowed; }
.who-sees { padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface); display: grid; gap: 4px; }

.role-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--t0); background: var(--surface-2); border: 1px solid var(--line-2); white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; flex: none; }
.role-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--role-color, var(--t3)); flex: none; }
.role-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.info-section .role-pills { justify-content: flex-start; }
.perm-list { display: grid; gap: 2px; }
.perm-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px; border-radius: var(--r-sm); cursor: pointer; }
.perm-row:hover { background: var(--surface); }
.perm-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.perm-row > span { display: grid; gap: 2px; }
.perm-head { font-size: 15px; color: var(--t1); }
.field .label { font-size: 14px; font-weight: 600; color: var(--t1); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: var(--tap); height: var(--tap); border-radius: 50%; border: 2px solid var(--line-2); background: var(--swatch, var(--surface)); cursor: pointer; }
.swatch.none { background: linear-gradient(135deg, var(--surface) 45%, var(--red) 45% 55%, var(--surface) 55%); }
.swatch.on { border-color: var(--t0); box-shadow: 0 0 0 2px var(--gold); }

.safety-digits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 12px; font: 600 18px/1.4 var(--font-mono); color: var(--t0); text-align: center; letter-spacing: 0.04em; }
.qr-wrap { display: grid; place-items: center; }
.qr { width: min(220px, 70vw); height: auto; border-radius: var(--r-sm); }
.qr-bg { fill: #fff; }
.qr-fg { fill: #0a0a0b; }
.scan-video { width: 100%; border-radius: var(--r); background: #000; }

@media (hover: hover) {
  .channel-link:hover .ic { color: var(--t1); }
}
@media (max-width: 480px) {
  .safety-digits { grid-template-columns: repeat(3, 1fr); font-size: 16px; }
  .chan-title { margin-left: 6px; font-size: 14px; }
}
button.chan-title { border: 0; background: none; padding: 4px 6px; margin-top: -4px; margin-bottom: -4px; min-height: 36px; border-radius: var(--r-sm); cursor: pointer; font-family: inherit; }
button.chan-title:hover { background: var(--surface-2); color: var(--t0); }
.channel-link[draggable="true"], .cat-head[draggable="true"], .gs-item[draggable="true"], .gs-group[draggable="true"] { -webkit-user-drag: element; }
.gs-item[draggable="true"], .gs-group[draggable="true"] { cursor: grab; }
.dragging { opacity: 0.45; }
.drop-before { box-shadow: inset 0 2px 0 var(--gold); }
.drop-after { box-shadow: inset 0 -2px 0 var(--gold); }
.drop-into { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--gold); border-radius: var(--r-sm); color: var(--t0); }
.captcha-frame { display: block; width: 100%; height: 80px; border: 0; background: transparent; color-scheme: dark; }
.auth-slot { display: contents; }
.captcha-holder { display: block; }
.captcha-frame.captcha-frame-open { position: fixed; inset: 0; width: 100vw; height: 100dvh !important; z-index: 1000; }
.identity-bar { flex: none; display: flex; align-items: center; gap: 6px; width: 100%; min-height: 40px; padding: 6px 12px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--t2); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.identity-bar:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.identity-label { flex: none; }
.identity-name { min-width: 0; display: inline-flex; align-items: center; gap: 4px; color: var(--t0); font-weight: 600; }
.identity-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-warn { color: #ffb3b3; }
.identity-change { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 2px; color: var(--gold); font-weight: 600; }
@media (hover: hover) { .identity-bar:hover { background: var(--surface-2); } }
@media (pointer: coarse) { .identity-bar { min-height: var(--tap); } }
.avatar-xs { width: 22px; height: 22px; font-size: 11px; }
button.channel-link { width: 100%; border: 0; background: none; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.voice-channel { display: grid; gap: 1px; }
.voice-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--t1); font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.voice-peers { display: grid; gap: 1px; padding: 2px 0 4px 26px; }
.voice-peer { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 2px 8px; border-radius: var(--r-sm); color: var(--t1); font-size: 14px; }
.voice-peer .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-peer .avatar { transition: box-shadow 0.15s var(--ease); }
.voice-peer.speaking { color: var(--t0); }
.voice-peer.speaking .avatar { box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 4px var(--gold); }
.voice-flag { display: inline-flex; color: var(--t3); }
.voice-flag.mod { color: #ffb3b3; }
.call-slot:empty { display: none; }
.call-slot-side { padding: 8px 8px 0; }
.call-bar { display: flex; align-items: center; gap: 8px; padding: 6px 4px 6px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); }
.call-bar.compact { border-width: 0 0 1px; border-radius: 0; padding: 4px 4px 4px 12px; }
.call-bar:not(.compact) { flex-wrap: wrap; row-gap: 6px; padding: 10px 10px 8px 14px; }
.call-bar:not(.compact) .call-actions { flex-basis: 100%; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); }
.call-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--t3); transition: box-shadow 0.15s var(--ease), background 0.15s var(--ease); }
.call-bar:has(.call-status.live) .call-dot { background: var(--gold); }
.call-bar.speaking .call-dot { box-shadow: 0 0 0 4px var(--gold-soft); }
.call-where { flex: 1; min-width: 0; display: grid; gap: 1px; padding: 4px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.call-status { font: 600 14px/1.3 var(--font-head); color: var(--t1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-status.live { color: var(--gold); }
.call-place, .call-note { font-size: 13px; line-height: 1.3; color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-note { color: #ffb3b3; }
.call-actions { flex: none; display: flex; gap: 2px; }
.call-toggle.on { color: #ffb3b3; background: var(--red-soft); }
.call-leave { color: #ffb3b3; }
.dm-call.active { color: var(--gold); }
.ring-card {
  position: fixed; top: calc(16px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 90;
  width: min(420px, calc(100vw - 32px)); display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 14px;
  padding: 14px 16px; border: 1px solid rgba(255, 215, 0, 0.35); border-radius: var(--r-lg); background: var(--surface-2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); animation: ring-in 0.25s var(--ease);
}
.ring-who { min-width: 0; display: grid; gap: 2px; }
.ring-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ring-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ring-card .avatar { box-shadow: 0 0 0 0 var(--gold-soft); animation: ring-pulse 1.4s var(--ease) infinite; }
@keyframes ring-in { from { opacity: 0; transform: translate(-50%, -8px); } }
@keyframes ring-pulse { 50% { box-shadow: 0 0 0 8px var(--gold-soft); } }
@media (min-width: 720px) { .call-slot-pane { display: none; } }
@media (hover: hover) {
  button.channel-link.voice-link:hover .ic { color: var(--t1); }
  .call-where:hover .call-place { color: var(--t0); }
  .call-leave:hover { background: var(--red-soft); }
}
@media (pointer: coarse) { .voice-peer { min-height: 40px; } }
.voice-list { display: grid; gap: 2px; }
@media (pointer: fine) { .call-slot-side .call-actions .icon-btn { width: 36px; height: 36px; } }
.ic-xs { width: 13px; height: 13px; }
.btn.small { min-height: 34px; padding: 4px 12px; font-size: 14px; }
.note-wrap { position: relative; }
.note-wrap textarea { width: 100%; min-height: 76px; resize: vertical; }
.note-count { position: absolute; right: 10px; bottom: 8px; color: var(--t3); font-size: 12px; pointer-events: none; font-variant-numeric: tabular-nums; }
.gs-item.gs-request { align-items: flex-start; padding-top: 8px; padding-bottom: 8px; }
.gs-request .grow { white-space: normal; display: grid; gap: 4px; }
.req-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.req-kind { padding: 1px 8px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--t2); font-size: 12px; }
.req-kind.real { border-color: rgba(255, 215, 0, 0.4); color: var(--gold); }
.req-note { margin: 0; padding: 6px 10px; border-left: 2px solid var(--line-2); color: var(--t1); font-size: 14px; white-space: pre-wrap; }
.msg-foot { display: flex; align-items: center; gap: 8px; margin-top: 2px; color: var(--t3); font-size: 12px; }
.msg.mine .msg-foot { justify-content: flex-end; }
.msg-seen { display: inline-flex; vertical-align: -2px; margin-left: 8px; color: var(--gold-dim); }
.msg-foot .msg-seen { margin-left: 0; }
.msg-timer { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.seen-list { margin: 8px 0 0; padding-left: 20px; color: var(--t1); }
.seen-list li { padding: 2px 0; }
.timer-toggle { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: var(--tap); gap: 4px; padding: 0 8px; }
.timer-toggle.on { color: var(--gold); background: var(--gold-soft); }
@media (max-width: 600px) {
  .composer-row.tools-many:not(.recording) { flex-wrap: wrap; row-gap: 6px; }
  .composer-row.tools-many:not(.recording) .composer-input { order: 1; flex: 1 1 calc(100% - var(--tap) - 6px); }
  .composer-row.tools-many:not(.recording) .send { order: 2; }
}
.timer-label { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.key-notice-host:empty { display: none; }
.key-notices { display: grid; gap: 6px; padding: 8px 12px 0; }
.key-notice { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border: 1px solid rgba(255, 215, 0, 0.35); border-radius: var(--r); background: var(--gold-soft); color: var(--t0); font-size: 14px; }
.key-notice .ic { color: var(--gold); flex: none; }
.q-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; margin-left: 6px; flex: none; }
.q-bars i { width: 3px; border-radius: 1px; background: var(--line-2); }
.q-bars i:nth-child(1) { height: 5px; }
.q-bars i:nth-child(2) { height: 8px; }
.q-bars i:nth-child(3) { height: 12px; }
.q-good i { background: var(--gold); }
.q-ok i:nth-child(-n + 2) { background: var(--gold-dim); }
.q-poor i:nth-child(1) { background: var(--red); }
.call-code-emojis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 14px 0; min-height: 84px; align-items: center; }
.call-code-emojis > p { grid-column: 1 / -1; margin: 0; text-align: center; }
.code-symbol { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface-2); }
.code-emoji { font-size: 32px; line-height: 1.1; }
.code-name { color: var(--t1); font-size: 12px; text-align: center; }
.call-code-people { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.call-code-people li { display: flex; align-items: center; gap: 8px; color: var(--t1); }
.code-verified { display: inline-flex; align-items: center; gap: 3px; color: var(--gold); font-size: 13px; }
.dropped-card { grid-template-columns: minmax(0, 1fr); }
.upload-line { display: flex; align-items: center; gap: 6px; }
.upload-cancel { width: 32px; height: 32px; flex: none; }
.dl-progress:empty { display: none; }
.dl-progress { display: block; margin-top: 4px; color: var(--t2); font-size: 13px; font-variant-numeric: tabular-nums; }
.hold-btn { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.hold-btn > :not(.hold-fill) { position: relative; }
.hold-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: rgba(255, 77, 77, 0.35); }
.hold-btn.holding .hold-fill { transform: scaleX(1); transition: transform 1.5s linear; }
@media (pointer: coarse) { .upload-cancel { width: 40px; height: 40px; } }
@media (max-width: 420px) { .code-emoji { font-size: 26px; } .call-code-emojis { gap: 4px; } }
