:root {
  --bg: #0e0e0e;
  --surface: #18181b;
  --surface-2: #202024;
  --border: #2c2c31;
  --text: #f2f2f3;
  --text-2: #a8a8b1;
  --text-3: #75757e;
  --accent: #ff9933;
  --accent-strong: #ff6b00;
  --on-accent: #141414;
  --bar: #ff9933;
  --track: #26262b;
  --good: #22c55e;
  --bad: #ef4444;
  --warn: #f5b301;
  --scroll: #1f1f23;
  --scroll-hover: #34343a;
  --radius: 10px;
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f5f6;
    --surface: #ffffff;
    --surface-2: #f0f0f2;
    --border: #e1e1e5;
    --text: #18181b;
    --text-2: #52525b;
    --text-3: #71717a;
    --accent: #e8730c;
    --accent-strong: #c75a00;
    --on-accent: #ffffff;
    --bar: #e8730c;
    --track: #ececef;
    --good: #16a34a;
    --bad: #dc2626;
    --warn: #ca8a04;
    --scroll: #e4e4e7;
    --scroll-hover: #c4c4ca;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.45;
}
a { color: inherit; }

/* nav: same look as mentula.tv */
.nav {
  position: sticky; top: 0; z-index: 5;
  height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; text-decoration: none; }
.logo:hover { color: var(--accent); }
.nav-right { display: flex; gap: 8px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600; font-size: .88rem;
  text-decoration: none; white-space: nowrap;
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-strong); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

main { max-width: 1180px; margin: 0 auto; padding: 0 16px 40px; }

/* hero */
.hero { padding: 44px 0 28px; }
.hero h1 { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; letter-spacing: -.01em; }
.hero-sub { margin: 6px 0 0; color: var(--text-2); }
.inline-link { color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
.inline-link:hover { text-decoration: underline; }
.hero-stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.tile .v { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile .l { margin-top: 4px; color: var(--text-2); font-size: .9rem; }

/* poster strips */
.recent { padding: 8px 0 8px; }
.strip-block + .strip-block { margin-top: 22px; }
.tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  max-width: 100%; overflow-x: auto;
}
.tab {
  font: inherit; font-size: .88rem; font-weight: 600; white-space: nowrap;
  padding: 7px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text-2);
  transition: background .15s, color .15s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h2 { margin: 0 0 12px; font-size: 1.05rem; font-weight: 650; color: var(--text); }
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 140px;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) transparent;
}
.strip:hover { scrollbar-color: var(--scroll-hover) transparent; }
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-track { background: transparent; }
.strip::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 3px; }
.strip:hover::-webkit-scrollbar-thumb { background: var(--scroll-hover); }
.poster { scroll-snap-align: start; margin: 0; }
.poster img {
  width: 140px; height: 210px; object-fit: cover; display: block;
  border-radius: 8px; background: var(--surface-2);
  border: 1px solid var(--border);
}
.poster figcaption { margin-top: 6px; font-size: .82rem; color: var(--text-2); min-width: 0; }
.poster figcaption b { display: block; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmeta { display: flex; align-items: center; gap: 6px; margin-top: 3px; white-space: nowrap; }
.pmeta .yr { margin-right: auto; }
.score {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text);
}
.score i { font-style: normal; font-weight: 800; font-size: .62rem; padding: 1px 3px; border-radius: 3px; letter-spacing: .02em; }
.score.imdb i { background: #f5c518; color: #000; }
.score.rt i { color: #fff; }
.score.rt.fresh i { background: #fa320a; }
.score.rt.rotten i { background: #0f8a3a; }

/* service groups */
.group { margin-top: 38px; }
.group > h2 { font-size: 1.25rem; margin-bottom: 14px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
}
.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}
.card.soon { opacity: .72; }
.card-head { display: flex; align-items: center; gap: 12px; }
.icon {
  flex: none; width: 40px; height: 40px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }
.icon.logo { width: 48px; height: 48px; background: transparent; border-radius: 12px; }
.icon.logo img { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; display: block; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 2px; }
.runs { font-size: .8rem; color: var(--text-3); }
.app-link { color: var(--text-2); font-weight: 600; text-decoration: none; white-space: nowrap; }
.app-link::after { content: ' \2197'; font-weight: 400; color: var(--text-3); }
.app-link:hover { color: var(--accent); }
.btns { display: inline-flex; gap: 8px; flex: none; }
.btn.ghost-sm { border-color: transparent; color: var(--text-2); padding-left: 8px; padding-right: 8px; }
.btn.ghost-sm:hover { color: var(--text); background: var(--surface-2); }

/* row of app logos under the big numbers */
.stack-wrap { margin-top: 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stack-cap { font-size: .8rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface);
  text-decoration: none; font-size: .85rem; font-weight: 600; color: var(--text-2);
  transition: border-color .15s, color .15s, transform .15s;
}
.stack-item img { width: 28px; height: 28px; object-fit: contain; border-radius: 7px; }
.stack-item:hover { color: var(--text); border-color: var(--accent); transform: translateY(-1px); }
.stack-item.soon { opacity: .6; }
.card { scroll-margin-top: 70px; }
.card-title { min-width: 0; }
.card-title h3 { margin: 0; font-size: 1.08rem; font-weight: 650; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.dot.up { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent); }
.dot.down { background: var(--bad); }
.badge {
  margin-left: auto; align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  color: var(--text-2); border: 1px solid var(--border);
  white-space: nowrap;
}
.desc { margin: 12px 0 0; color: var(--text-2); font-size: .93rem; }

.stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
}
.stat.wide { grid-column: span 2; }
.stat { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.stat .v { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; overflow-wrap: anywhere; }
.stat .v.txt { font-size: 1rem; overflow-wrap: normal; }
.stat .l { font-size: .78rem; color: var(--text-2); margin-top: 2px; }

/* genre bars: one series, so no legend; values are direct labels */
.bars { margin: 14px 0 0; padding: 0; list-style: none; }
.bars .cap { font-size: .78rem; color: var(--text-2); margin-bottom: 6px; }
.bar-row {
  display: grid; grid-template-columns: 112px 1fr 40px; align-items: center; gap: 10px;
  font-size: .82rem; padding: 3px 0;
}
.bar-row .name { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .num { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.track { height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; }
.fill { height: 100%; background: var(--bar); border-radius: 0 4px 4px 0; }
.bar-row:hover .name, .bar-row:hover .num { color: var(--text); }

.card-foot {
  margin-top: auto; padding-top: 16px;
  display: flex; align-items: center; gap: 10px 12px; justify-content: space-between; flex-wrap: wrap;
}
.card-foot .access { flex: 1 1 160px; }
.access { font-size: .84rem; color: var(--text-3); }

.loading { color: var(--text-2); }

/* announcement banner */
.banner {
  margin: 20px 0 0; padding: 12px 16px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: .93rem;
}
.banner.note { border-left: 4px solid var(--accent); }
.banner.warn { border-left: 4px solid var(--warn); }

code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .86em;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px;
  color: var(--text); white-space: nowrap;
}

/* "How to connect" on each card */
.guide { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
.guide summary, .qa summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: .9rem; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.guide summary::-webkit-details-marker, .qa summary::-webkit-details-marker { display: none; }
.guide summary::before, .qa summary::before {
  content: ''; width: 7px; height: 7px; flex: none;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
  transform: rotate(-45deg); transition: transform .15s; margin-right: 2px;
}
.guide[open] summary::before, .qa[open] summary::before { transform: rotate(45deg); }
.guide summary:hover, .qa summary:hover { color: var(--accent); }
.guide summary:focus-visible, .qa summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.guide ol { margin: 10px 0 0; padding-left: 20px; color: var(--text-2); font-size: .88rem; }
.guide li + li { margin-top: 6px; }
.guide li { overflow-wrap: anywhere; }

/* house rules + FAQ */
.info {
  margin-top: 44px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; align-items: start;
}
.rules-box, .faq-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px;
}
.rules { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--text); }
.rules li::marker { color: var(--accent); font-weight: 700; }
.faq { display: grid; }
.qa { border-top: 1px solid var(--border); padding: 12px 0; }
.qa:first-child { border-top: 0; padding-top: 2px; }
.qa p { margin: 8px 0 0 17px; color: var(--text-2); font-size: .92rem; }
.dot.maint { background: var(--warn); }

/* request access form */
.request {
  margin-top: 44px;
  display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr); gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  scroll-margin-top: 70px;
}
.request-copy h2 { font-size: 1.25rem; }
.request-copy p { margin: 0; color: var(--text-2); }
#req-form { display: grid; gap: 14px; min-width: 0; }
.field { display: grid; gap: 6px; font-size: .88rem; color: var(--text-2); border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 6px; }
.opt { color: var(--text-3); }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: .95rem; color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 11px;
}
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-2); font-size: .85rem; user-select: none;
}
.chip input:checked + span { background: var(--accent); border-color: transparent; color: var(--on-accent); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-status { font-size: .88rem; color: var(--text-2); }
.form-status.err { color: var(--bad); }
.btn[disabled] { opacity: .6; cursor: default; }
.thanks { margin: 0; font-size: 1rem; }
.ref-note {
  margin: 14px 0 0; padding: 10px 12px; border-radius: 8px;
  background: var(--surface-2); border-left: 3px solid var(--accent); color: var(--text); font-size: .9rem;
}
.invite-box { display: grid; gap: 10px; justify-items: start; }
.invite-box .thanks { font-size: 1.15rem; font-weight: 700; }
.invite-help { margin: 0; color: var(--text-2); font-size: .9rem; }
.invite-url { margin: 0; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; color: var(--text-2); overflow-wrap: anywhere; }
.btn.big { padding: 11px 20px; font-size: 1rem; }
.foot {
  max-width: 1180px; margin: 0 auto; padding: 24px 16px 40px;
  color: var(--text-3); font-size: .82rem;
  border-top: 1px solid var(--border);
}
.foot p { margin: 4px 0; }

@media (max-width: 560px) {
  .nav .btn.ghost { display: none; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .bar-row { grid-template-columns: 92px 1fr 36px; }
}
@media (max-width: 760px) {
  .request { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .info { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ members: logged in */
.user-btn { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.mine {
  margin-top: 28px; padding: 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.mine-head h2 { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 700; }
.mine-sub { margin: 4px 0 0; color: var(--text-2); }
.app-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.app-tile {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; transition: border-color .15s, transform .15s;
}
.app-tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.app-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-tile img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; flex: none; }
.app-tile-txt { display: grid; min-width: 0; }
.app-tile-txt b { font-weight: 650; }
.app-tile-txt span { font-size: .8rem; color: var(--text-3); }
.mine-extra { margin-top: 14px; display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.mine-extra-cap { font-size: .8rem; color: var(--text-3); }
.mine-extra-list { display: flex; gap: 6px; flex-wrap: wrap; }
.invite-panel {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px 24px; align-items: center;
}
.invite-panel h2 { margin-bottom: 4px; }
.invite-panel p { margin: 0; color: var(--text-2); font-size: .92rem; }
.copy-row { display: flex; gap: 8px; min-width: 0; }
.copy-row input, .link-row input {
  flex: 1 1 auto; min-width: 0;
  font: inherit; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .82rem;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; padding: 8px 10px;
}
.copy-row button, .link-row button { cursor: pointer; flex: none; }
.status-link { display: grid; gap: 8px; width: 100%; margin-top: 6px; }

/* ------------------------------------------------------------ small pages: status, errors */
main.narrow { max-width: 640px; padding-top: 40px; }
main.narrow h1 { margin: 10px 0 8px; font-size: 1.6rem; }
main.narrow p { color: var(--text-2); }
.status-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.fine { font-size: .84rem; color: var(--text-3); }
.pill {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--border); color: var(--text-2);
}
.pill.ok { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.pill.wait { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.pill.no { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.pill.muted { color: var(--text-3); }
.steps { list-style: none; margin: 18px 0 8px; padding: 0; display: grid; gap: 14px; }
.step { display: flex; gap: 14px; }
.step-n {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 800;
}
.step-body b { display: block; }
.step-body p { margin: 2px 0 10px; font-size: .92rem; }

/* ------------------------------------------------------------ admin */
main.admin { max-width: 1180px; }
.admin-head { padding: 32px 0 8px; }
.admin-head h1 { margin: 0; font-size: 1.8rem; }
.admin-sub { margin: 4px 0 0; color: var(--text-2); }
.admin-sec { margin-top: 30px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font-size: 1.25rem; }
.sec-head .tabs { margin-bottom: 0; }
.sec-note { margin: 0; color: var(--text-3); font-size: .84rem; }
.admin-sec > .sec-note { margin-bottom: 12px; max-width: 760px; }
.empty { color: var(--text-2); padding: 18px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); margin: 0; }
.gate { margin-top: 24px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.gate p { margin: 0 0 14px; color: var(--text-2); }
.filter {
  font: inherit; font-size: .9rem; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 7px; padding: 7px 11px; width: 220px; max-width: 100%;
}
.filter:focus, .field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.req-list { display: grid; gap: 12px; }
.req { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; scroll-margin-top: 80px; }
.req.focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.req-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.req-who h3 { margin: 0; font-size: 1.08rem; }
.req-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; color: var(--text-3); margin-top: 2px; }
.req-meta .contact { color: var(--text); font-weight: 600; }
.wants { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.wants .cap { font-size: .8rem; color: var(--text-3); margin-right: 2px; }
.tag { font-size: .8rem; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.msg { margin: 12px 0 0; padding: 8px 12px; border-left: 3px solid var(--border); color: var(--text-2); font-size: .92rem; white-space: pre-wrap; }
.note { margin: 10px 0 0; font-size: .86rem; color: var(--warn); }
.req > .sec-note { margin-top: 12px; }
.approve { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); display: grid; gap: 12px; }
.approve .field, .stack-form .field { max-width: 520px; }
.field .hint { font-size: .8rem; color: var(--text-3); }
.approve-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.approve-foot .btn { cursor: pointer; }
.chip input:disabled + span { opacity: .45; cursor: not-allowed; }

.result { margin-top: 12px; display: grid; gap: 8px; padding: 14px; background: var(--surface-2); border-radius: 8px; }
.link-row { display: grid; grid-template-columns: minmax(120px, auto) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.link-label { font-size: .84rem; color: var(--text-2); font-weight: 600; }
.result-err { margin: 0; color: var(--bad); font-size: .88rem; }
.result-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 2px; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table.members { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 820px; }
.members th {
  text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3);
  font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.members td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.members tbody tr:last-child td { border-bottom: 0; }
.members tr.off td { opacity: .62; }
.members td.who { min-width: 150px; }
.members td.who b { display: block; }
.members .uname { display: block; font-size: .8rem; color: var(--text-3); font-family: ui-monospace, Consolas, monospace; }
.members td.who .pill { margin-top: 4px; margin-right: 4px; }
.members td.last { color: var(--text-2); white-space: nowrap; }
.members td.acts { white-space: nowrap; text-align: right; }
.members td.acts .btn { cursor: pointer; }
.members .link-tr td { background: var(--surface-2); }
.chips.small { gap: 5px; }
.chips.small .chip span { padding: 3px 9px; font-size: .78rem; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.switch input { accent-color: var(--accent); width: 16px; height: 16px; }
.quota { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .8rem; color: var(--text-3); white-space: nowrap; }
.quota input {
  width: 52px; font: inherit; font-size: .85rem; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 6px;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tools { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.tool { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.tool h2 { margin-bottom: 4px; }
.tool > .sec-note { margin-bottom: 14px; }
.stack-form { display: grid; gap: 12px; }
#emby-btn { cursor: pointer; }

@media (max-width: 760px) {
  .invite-panel, .tools { grid-template-columns: 1fr; }
  .link-row { grid-template-columns: 1fr auto; }
  .link-label { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .nav .btn.login-btn, .nav .btn.user-btn { display: inline-flex; }
  .user-btn { max-width: 110px; }
  .mine { padding: 16px; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .app-tile { padding: 10px; gap: 9px; }
  .app-tile img { width: 36px; height: 36px; }
}
@media (max-width: 560px) {
  .nav .btn { padding: 6px 10px; font-size: .82rem; }
  .logo { font-size: 1.02rem; }
}
@media (max-width: 420px) {
  .nav .btn.user-btn { display: none; }
}
.mine-account { margin: 8px 0 0; font-size: .88rem; }
