:root {
  color-scheme: dark;
  --bg: #000;
  --fg: #e7e9ea;
  --muted: #71767b;
  --line: #2f3336;
  --surface: #16181c;
  --accent: #1d9bf0;
  --like: #f91880;
  --gold: #e6b450;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
.shell { display: flex; justify-content: center; min-height: 100vh; }
.nav { width: 250px; padding: 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.nav-link { border-radius: 999px; padding: 12px 16px; font-size: 1.05rem; display: flex; align-items: center; gap: 13px; }
.nav-ico { width: 24px; height: 24px; display: inline-grid; place-items: center; flex: 0 0 24px; color: currentColor; }
.nav-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-link.on { font-weight: 800; }
.nav-link:hover, .post:hover { background: #0d0e10; }
.logo { padding: 12px; color: var(--accent); display: inline-flex; align-items: center; width: fit-content; }
.brand-w { display: block; filter: drop-shadow(0 0 10px rgba(29,155,240,.16)); }
.col { width: min(600px, 100%); border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 100vh; }
.rail { width: 320px; padding: 16px; }
.card { background: var(--surface); border-radius: 16px; padding: 16px; }
.card h2 { margin: 0 0 8px; font-size: 1.1rem; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.top { position: sticky; top: 0; background: rgba(0,0,0,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 14px 16px; font-weight: 800; }
.composer, .post { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.composer textarea, .stack input, .stack textarea { width: 100%; background: transparent; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.composer textarea { border: 0; padding: 8px 0; font-size: 1.15rem; resize: vertical; min-height: 72px; }
.row { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.primary { background: var(--fg); color: #000; border-radius: 999px; padding: 8px 16px; font-weight: 800; }
.ghost { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 700; }
.avatar { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; flex: none; overflow: hidden; background: linear-gradient(145deg, hsl(var(--h) 60% 46%), #111); }
.post header { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.body { margin: 4px 0; white-space: pre-wrap; line-height: 1.45; }
.actions { display: flex; gap: 12px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.actions button:hover, .actions a:hover { color: var(--accent); }
.note { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 10px; font-size: .92rem; }
.repost { color: var(--muted); font-size: .9rem; margin: 0; }
.badge { color: var(--accent); font-weight: 800; }
.badge.gold { color: var(--gold); }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs a, .tabs span { flex: 1; text-align: center; padding: 14px 8px; color: var(--muted); }
.tabs .on { color: var(--fg); font-weight: 800; box-shadow: inset 0 -3px 0 var(--accent); }
.banner { height: 140px; background: linear-gradient(120deg, hsl(var(--h) 50% 30%), #111); position: relative; }
.stack { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.gate { max-width: 420px; margin: 8vh auto; padding: 24px; }
.err { color: var(--like); }
.live { color: var(--like); font-weight: 800; font-size: .8rem; }
.signup-mark { display: flex; justify-content: center; margin-top: 28px; }
.mark-w {
  width: 72px; height: 72px; border-radius: 20px;
  border: 1px solid var(--line); font-size: 36px; font-weight: 800; color: var(--fg);
  transition: background .2s, color .2s, box-shadow .2s, border-color .2s;
}
.mark-w:hover, .mark-w:focus-visible {
  background: #1d9bf0; color: #fff; border-color: #1d9bf0;
  box-shadow: 0 0 28px rgba(29, 155, 240, .9);
}
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tool { border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; }
.media { max-width: 100%; border-radius: 16px; margin-top: 8px; max-height: 360px; }
.banner img, .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lock { border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-top: 8px; }
.poll button { display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; margin-top: 6px; }
.call-box { margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.call-box video, .call-box canvas { width: 100%; border-radius: 12px; background: #000; max-height: 320px; object-fit: cover; display: block; }
.call-video-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
.call-video-grid .remote { min-height: 220px; }
.call-video-grid .local-preview { min-height: 120px; }
.filter-row { display: flex; gap: 7px; overflow-x: auto; padding: 8px 0 3px; }
.filter-btn { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; white-space: nowrap; background: #0b0c0f; }
.filter-btn.active { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 1px rgba(29,155,240,.25) inset; }
.incoming-call { border: 1px solid var(--accent); background: linear-gradient(145deg, rgba(29,155,240,.12), var(--surface)); }
.call-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.call-controls .danger { border-color: rgba(249,24,128,.55); color: #ff6da8; }
.call-meta { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.call-status { min-height: 1.2em; }
.call-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.call-tools .ghost { padding: 7px 11px; }
.kicker { font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kicker.news { color: var(--accent); }
@media (max-width: 1000px) {
  .rail { display: none; }
  .nav { display: none; }
  .col { border: 0; }
}
