:root {
  --bg: #0d0b14;
  --bg-2: #15121f;
  --panel: #1b1727;
  --panel-2: #241f33;
  --border: #2e2842;
  --text: #ece9f5;
  --muted: #9a93b0;
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --accent-ink: #ffffff;
  --danger: #f87171;
  --ok: #34d399;
  --radius: 12px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.05rem; }
code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: .85em; background: var(--panel-2); padding: .15em .45em; border-radius: 6px; word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.hint { color: var(--muted); font-size: .85rem; margin: .6rem 0 0; }
[hidden] { display: none !important; }

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .55em 1em; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: #2d2740; border-color: #3d3557; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #7c4dec; }
.btn.ghost { background: transparent; }
.btn.large { padding: .8em 1.4em; font-size: 1.02rem; }
.btn.icon { padding: .45em .7em; font-size: 1.1rem; }
.link { background: none; border: 0; color: var(--accent-2); cursor: pointer; font: inherit; font-size: .82em; padding: 0 .2em; }
.link:hover { text-decoration: underline; }
.icon-btn { background: none; border: 0; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: .1em .35em; border-radius: 6px; }
.icon-btn:hover { color: var(--text); background: var(--panel-2); }

input, select {
  font: inherit; color: var(--text); background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 10px; padding: .55em .8em; min-width: 0;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.row > input { flex: 1 1 180px; }
.row.end { justify-content: flex-end; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 1rem; padding: .7rem 1.2rem;
  border-bottom: 1px solid var(--border); background: rgba(13, 11, 20, .85);
  backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.room-title { flex: 1; min-width: 0; display: flex; gap: .6rem; align-items: baseline; overflow: hidden; }
.room-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.top-actions { display: flex; gap: .5rem; }

/* ---------- Panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
details.panel > summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: .5rem; }
details.panel > summary::before { content: '›'; display: inline-block; transition: transform .15s; color: var(--muted); font-size: 1.2em; }
details.panel[open] > summary::before { transform: rotate(90deg); }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel[open] > summary { margin-bottom: .9rem; }

/* ---------- Home ---------- */
.home { max-width: 1040px; margin: 0 auto; padding: 3rem 1.2rem 4rem; }
.hero { text-align: center; padding: 1rem 0 2.5rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -.03em; font-weight: 800; }
.accent { background: linear-gradient(90deg, var(--accent-2), #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); max-width: 640px; margin: 0 auto 1.6rem; font-size: 1.05rem; }
.install-row { justify-content: center; }
.manifest { margin-top: 1rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.recent-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
#recent h3 { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 1.2rem; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.result { background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; padding: 0; font: inherit; display: flex; flex-direction: column; gap: .3rem; }
.result img, .result .poster { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; background: var(--panel-2); transition: transform .15s, box-shadow .15s; }
.result:hover img { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.result-name { font-weight: 600; line-height: 1.25; }
#episodes { margin-top: 1rem; }
.episodes-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.episodes-head h2 { margin: 0; }
.episode-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .4rem; }
.episode { display: flex; gap: .7rem; padding: .55rem .7rem; border-radius: 8px; background: var(--bg-2); color: var(--text); text-decoration: none; }
.episode:hover { background: var(--panel-2); }
.ep-num { color: var(--accent-2); font-weight: 700; min-width: 2.4em; }

/* ---------- New room ---------- */
.backdrop { position: fixed; inset: 0; background: var(--backdrop, none) center / cover no-repeat; opacity: .12; filter: blur(4px); pointer-events: none; z-index: -1; }
.narrow { max-width: 860px; margin: 0 auto; padding: 2rem 1.2rem 4rem; }
.meta-header { display: flex; gap: 1.4rem; align-items: center; margin-bottom: 1.8rem; min-height: 120px; }
.meta-header .poster { width: 110px; aspect-ratio: 2 / 3; border-radius: 10px; object-fit: cover; flex-shrink: 0; box-shadow: 0 10px 30px rgba(0,0,0,.5); background: var(--panel-2); }
.meta-header h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: .2rem; }
.meta-header p { margin: .2rem 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--accent-2); font-weight: 700; }

.picker { display: grid; gap: .9rem; }
.picker.busy { opacity: .6; pointer-events: none; }
.addon-status { margin-bottom: .8rem; }
.login-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem; }
.add-addon { margin-top: .8rem; }
.addon-list { list-style: none; padding: 0; margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.addon-list li { display: flex; align-items: center; gap: .4rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; padding: .2rem .3rem .2rem .7rem; font-size: .85rem; }
.addon-list img { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; }
.addon-list .icon-btn { font-size: 1.1rem; }
.filter { width: 100%; }
.stream-list { display: grid; gap: 1.2rem; }
.stream-group h3 { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--muted); margin-bottom: .5rem; }
.stream-group .count { background: var(--panel-2); color: var(--text); border-radius: 999px; padding: 0 .55em; font-size: .78rem; }
.stream {
  display: grid; grid-template-columns: minmax(90px, 140px) 1fr auto; gap: .9rem; align-items: center; width: 100%;
  text-align: left; padding: .7rem .9rem; margin-bottom: .35rem; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--border); color: var(--text); font: inherit; cursor: pointer;
}
.stream:hover:not(:disabled) { border-color: var(--accent); background: var(--panel-2); }
.stream:disabled { opacity: .45; cursor: not-allowed; }
.stream-name { font-weight: 700; white-space: pre-line; font-size: .9rem; }
.stream-desc { white-space: pre-line; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.badge { font-size: .7rem; font-weight: 700; padding: .15em .55em; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.badge.http, .badge.torrent { background: var(--panel-2); color: var(--muted); }
.badge.level.ok { background: rgba(52, 211, 153, .15); color: var(--ok); }
.badge.level.heavy { background: rgba(248, 113, 113, .15); color: var(--danger); }
.badge.level.unknown { background: rgba(154, 147, 176, .15); color: var(--muted); }
.badges { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.stream-warn { color: #fbbf24; margin-top: .25rem; }
.stream.checking { border-color: var(--accent); }
.stream.checking .badge.level::after { content: ' · checking…'; }
.filter-row { display: grid; gap: .5rem; }
.notice { background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .35); border-radius: 10px; padding: .8rem 1rem; font-size: .88rem; color: #fde68a; }
.notice strong { color: #fbbf24; }
.addon-issues { color: var(--muted); font-size: .8rem; margin: 0; }
.blocked-note { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .85rem; cursor: pointer; }
.blocked-note input { accent-color: var(--accent); }
.stream-error { color: var(--danger); font-size: .85rem; }
.empty { padding: 2rem; text-align: center; color: var(--muted); background: var(--panel); border: 1px dashed var(--border); border-radius: var(--radius); }

/* ---------- Room ---------- */
.room-page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.room-layout { flex: 1; display: grid; grid-template-columns: 1fr 340px; min-height: 0; }
.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 1rem; gap: .5rem; }
.now-playing { margin: 0; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.video-wrap {
  --sub-scale: 1;
  position: relative; flex: 1; min-height: 0; background: #000; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: center; justify-content: center; user-select: none;
}
.video-wrap video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.video-wrap:fullscreen { border-radius: 0; }
.video-wrap:not(.show-controls).playing { cursor: none; }

.subs {
  position: absolute; left: 5%; right: 5%; bottom: 7%; display: flex; flex-direction: column; align-items: center; gap: .2em;
  pointer-events: none; transition: bottom .2s; z-index: 2;
  font-size: calc(clamp(15px, 2.6vw, 34px) * var(--sub-scale)); line-height: 1.3; text-align: center;
}
.video-wrap.show-controls .subs { bottom: calc(7% + 64px); }
.cue { background: rgba(0, 0, 0, .62); color: #fff; padding: .08em .45em; border-radius: 4px; text-shadow: 0 1px 2px #000; white-space: pre-wrap; }

.overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(8, 6, 14, .72); z-index: 4; padding: 1rem; }
.overlay.subtle { background: transparent; pointer-events: none; }
.overlay-card { text-align: center; max-width: 460px; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.overlay-card h2 { font-size: 1.25rem; margin: 0; }
.overlay-card p { margin: 0; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.overlay-card .row { justify-content: center; margin-top: .4rem; }

.status-pill {
  position: absolute; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 5;
  background: rgba(20, 16, 32, .88); border: 1px solid var(--border); padding: .4em 1em; border-radius: 999px;
  font-size: .88rem; font-weight: 600; pointer-events: none; animation: fade-in .2s;
}
.chat-float { position: absolute; left: 1rem; top: 3.5rem; z-index: 3; display: flex; flex-direction: column; gap: .4rem; max-width: 380px; pointer-events: none; }
.chat-float .msg { background: rgba(20, 16, 32, .85); padding: .4rem .7rem; border-radius: 10px; animation: fade-in .2s; transition: opacity .5s; }
.chat-float .msg.out { opacity: 0; }

.controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 1.6rem .8rem .5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  transition: opacity .25s; opacity: 0; pointer-events: none;
}
.video-wrap.show-controls .controls, .video-wrap:not(.playing) .controls { opacity: 1; pointer-events: auto; }
.control-row { display: flex; align-items: center; gap: .15rem; }
.ctl {
  background: none; border: 0; color: #fff; cursor: pointer; width: 40px; height: 40px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0;
}
.ctl:hover { background: rgba(255, 255, 255, .12); }
.ctl svg { width: 22px; height: 22px; fill: currentColor; }
.ctl.text { width: auto; padding: 0 .6rem; font: 600 .82rem var(--font); }
.ctl.text.active { color: var(--accent-2); }
.readonly #playBtn, .readonly #back10, .readonly #fwd10 { opacity: .4; }
.readonly .seek { cursor: default; }
.time { font-variant-numeric: tabular-nums; font-size: .85rem; margin-left: .4rem; white-space: nowrap; }
.spacer { flex: 1; }
.volume { display: flex; align-items: center; }
.volume input { width: 0; opacity: 0; transition: width .2s, opacity .2s; padding: 0; accent-color: var(--accent); }
.volume:hover input, .volume input:focus { width: 90px; opacity: 1; margin-right: .3rem; }

.seek { position: relative; height: 18px; cursor: pointer; display: flex; align-items: center; touch-action: none; }
.seek-track { position: relative; width: 100%; height: 4px; background: rgba(255, 255, 255, .22); border-radius: 4px; overflow: hidden; transition: height .1s; }
.seek:hover .seek-track { height: 6px; }
.seek-buffered div { position: absolute; top: 0; bottom: 0; background: rgba(255, 255, 255, .35); }
.seek-progress { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
.seek-thumb { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #fff; transform: translateX(-50%); opacity: 0; transition: opacity .1s; pointer-events: none; }
.seek:hover .seek-thumb { opacity: 1; }
.seek-tip { position: absolute; bottom: 22px; transform: translateX(-50%); background: rgba(0,0,0,.85); padding: .1em .5em; border-radius: 6px; font-size: .78rem; pointer-events: none; font-variant-numeric: tabular-nums; }

.menu {
  position: absolute; z-index: 8; min-width: 240px; max-width: min(360px, 90%); max-height: 60%; overflow-y: auto;
  background: rgba(22, 18, 34, .97); border: 1px solid var(--border); border-radius: 12px; padding: .35rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .6); animation: fade-in .12s;
}
.menu-title { font-weight: 700; padding: .5rem .7rem .4rem; font-size: .9rem; }
.menu-group { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: .7rem .7rem .2rem; }
.menu-item { display: flex; gap: .4rem; width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: inherit; font-size: .88rem; padding: .45rem .6rem; border-radius: 8px; cursor: pointer; }
.menu-item:hover:not(:disabled) { background: rgba(255, 255, 255, .08); }
.menu-item:disabled { opacity: .4; cursor: not-allowed; }
.menu-item .check { width: 1.1em; color: var(--accent-2); flex-shrink: 0; }
.menu-label { display: flex; flex-direction: column; }
.menu-label small { color: var(--muted); font-size: .76rem; }
.menu-note { color: var(--muted); font-size: .78rem; padding: .5rem .7rem; border-top: 1px solid var(--border); margin-top: .3rem; }
.menu-row { display: flex; align-items: center; gap: .3rem; padding: .3rem .7rem; font-size: .85rem; }
.menu-row > span:first-child { flex: 1; color: var(--muted); }
.mini { background: var(--panel-2); border: 1px solid var(--border); color: var(--text); border-radius: 6px; font: inherit; font-size: .78rem; padding: .15em .5em; cursor: pointer; min-width: 1.9em; }
.mini.on { border-color: var(--accent); color: var(--accent-2); }
.offset { text-align: right; font-variant-numeric: tabular-nums; }
.delay-row { justify-content: space-between; padding-top: 0; }
.delay-row .mini { flex: 1; }

.sidebar { border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; background: var(--bg-2); }
.members-box { padding: 1rem 1rem .6rem; border-bottom: 1px solid var(--border); max-height: 35%; overflow-y: auto; }
.members-box h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.members-box .count { background: var(--panel-2); color: var(--text); border-radius: 999px; padding: 0 .5em; margin-left: .2em; }
.members { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.members li { display: flex; align-items: center; gap: .5rem; font-size: .92rem; }
.member-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; background: hsl(var(--hue) 55% 42%); flex-shrink: 0; }
.tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; color: #fbbf24; border: 1px solid rgba(251, 191, 36, .4); border-radius: 5px; padding: 0 .35em; }

.chat-box { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.chat-log { flex: 1; overflow-y: auto; padding: .8rem 1rem; display: flex; flex-direction: column; gap: .45rem; }
.msg { font-size: .92rem; overflow-wrap: anywhere; }
.msg-name { font-weight: 700; color: hsl(var(--hue) 75% 72%); margin-right: .4em; }
.msg.system { color: var(--muted); font-size: .8rem; text-align: center; }
.chat-form { display: flex; gap: .4rem; padding: .7rem; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; }

/* ---------- Dialogs ---------- */
dialog {
  background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.3rem 1.4rem; width: min(440px, calc(100vw - 2rem)); box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
dialog.wide { width: min(860px, calc(100vw - 2rem)); max-height: calc(100vh - 3rem); }
dialog::backdrop { background: rgba(5, 4, 10, .7); backdrop-filter: blur(3px); }
dialog input:not([type=checkbox]):not([type=radio]) { width: 100%; margin: .4rem 0 1rem; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.dialog-head h2 { margin: 0; }
.check-row { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem 0; cursor: pointer; }
.check-row input { margin-top: .3rem; accent-color: var(--accent); width: 18px; height: 18px; }
.check-row small { display: block; color: var(--muted); }
.choice { border: 0; margin: 0; padding: 0; }
.choice legend { font-weight: 700; padding: 0; margin-bottom: .2rem; }
.plan-box { display: grid; gap: .5rem; }
dialog .plan-box { padding-bottom: .8rem; margin-bottom: .4rem; border-bottom: 1px solid var(--border); }
.plan-box p { margin: 0; }
.plan-box .row > input { margin: 0; }
.plan-box .pro { color: var(--accent); font-weight: 700; }
.field { display: grid; gap: .3rem; padding: .6rem 0; }
.field small { color: var(--muted); }
.field small.pro { color: var(--accent); }
dialog .field input#setDelay { width: 6em; margin: 0; }

/* ---------- Toasts & spinners ---------- */
.toasts { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: .5rem; z-index: 100; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 2rem); }
.toast { background: var(--panel-2); border: 1px solid var(--border); padding: .6rem 1rem; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.5); animation: fade-in .2s; transition: opacity .4s; font-size: .9rem; }
.toast.error { border-color: rgba(248, 113, 113, .5); color: #fecaca; }
.toast.out { opacity: 0; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--accent-2); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
.spinner.small { width: 12px; height: 12px; }
.spinner.large { width: 42px; height: 42px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .room-page { height: auto; overflow: visible; }
  .room-layout { grid-template-columns: 1fr; }
  .stage { padding: 0; }
  .video-wrap { border-radius: 0; aspect-ratio: 16 / 9; flex: none; }
  .now-playing { padding: 0 1rem; }
  .sidebar { border-left: 0; border-top: 1px solid var(--border); }
  .chat-box { min-height: 50vh; }
  .members-box { max-height: none; }
}
@media (max-width: 640px) {
  .topbar { padding: .6rem 1rem; gap: .6rem; }
  .brand span { display: none; }
  .room-title { flex-direction: column; gap: 0; }
  .login-form { grid-template-columns: 1fr; }
  .stream { grid-template-columns: 1fr auto; }
  .stream-desc { grid-column: 1 / -1; grid-row: 2; }
  #back10, #fwd10 { display: none; }
  .volume input { display: none; }
  .meta-header .poster { width: 80px; }
}

/* Admin (Pro keys) */
.admin { display: grid; gap: 1rem; }
.admin h2 { margin: 0 0 .7rem; font-size: 1.05rem; }
.admin select { background: var(--panel-2, #1c1828); color: inherit; border: 1px solid var(--border); border-radius: 8px; padding: .55em .6em; font: inherit; }
.table-wrap { overflow-x: auto; }
table.keys { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.keys th, table.keys td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.keys th { color: var(--muted); font-weight: 600; }
table.keys tr.dead { opacity: .5; }
