/* ==========================================================================
   STS theme — the single source of appearance (2026 "Kick dark")
   --------------------------------------------------------------------------
   This is the only stylesheet the app links. It loads two things:
     1. the bundled v6 layout/feature CSS (/css/legacy.css) — structure only
     2. everything below — the entire visual language
   Cascade is linear and intended: legacy bundle first, theme last. Selectors
   stay flat — no season-specific overrides — and !important appears only
   where the bundled v6 contracts require it (3 places, each commented).

   Design language (after kick.com): near-black canvas #0b0b0c, layered
   charcoal surfaces (#171a1c, #232629), one acid green (#53fc18) doing all
   accent work, Inter at compact sizes, 4–8px corners, flat surfaces with
   hairline borders instead of shadows and gradients, subtle motion.

   1  Tokens          7  Channel page     13 Modals & popovers
   2  Base & type     8  Chat             14 Player & ads
   3  Chrome          9  Studio           15 Staff workspace
   4  Controls       10  Settings         16 Motion
   5  Surfaces       11  App Store        17 Responsive
   6  Discovery      12  Catalog pages
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400..800&family=JetBrains+Mono:wght@400..600&display=swap');
@import url('/css/legacy.css?v=7.0.0');

/* ============================== 1. Tokens ============================== */

:root{
  color-scheme:dark;

  /* Surfaces */
  --bg:#0b0b0c;
  --panel:#171a1c;
  --panel-2:#121415;
  --raised:#232629;
  --line:#26292c;

  /* Text */
  --text:#ffffff;
  --muted:#9fa6ad;

  /* One accent, used for action / live / active state */
  --accent:#53fc18;
  --accent-ink:#08120a;
  --live:#53fc18;
  --warn:#ffd600;

  --accent-soft:rgba(83,252,24,.12);
  --accent-line:rgba(83,252,24,.42);
  --accent-hover:color-mix(in oklab,var(--accent) 84%,#fff);

  --shadow-sm:0 1px 2px #00000080;
  --shadow-md:0 8px 20px -14px #000000cc;
  --shadow-lg:0 20px 44px -22px #000000e6;

  --font-ui:Inter,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --font-display:Inter,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,'SFMono-Regular',Menlo,monospace;
  --ease:cubic-bezier(.2,.6,.3,1);
}

:root[data-season=normal]{
  --bg:#0b0b0c;--panel:#171a1c;--panel-2:#121415;--raised:#232629;--line:#26292c;
  --accent:#53fc18;--accent-ink:#08120a;--live:#53fc18;
}
:root[data-season=halloween]{
  --bg:#0c0a08;--panel:#191512;--panel-2:#130f0c;--raised:#26201a;--line:#2a231c;
  --accent:#ff9f1a;--accent-ink:#160c00;--live:#ff9f1a;
  --accent-soft:rgba(255,159,26,.13);--accent-line:rgba(255,159,26,.44);
}
:root[data-season=christmas]{
  --bg:#0a0b0b;--panel:#171a1c;--panel-2:#121415;--raised:#232629;--line:#26292c;
  --accent:#ff5b5b;--accent-ink:#150404;--live:#ff5b5b;
  --accent-soft:rgba(255,91,91,.13);--accent-line:rgba(255,91,91,.44);
}

/* ============================ 2. Base & type =========================== */

body{
  background-color:var(--bg);
  background-image:none;
  color:var(--text);
  font-family:var(--font-ui);
  font-size:14px;
  line-height:1.5;
  letter-spacing:0;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-feature-settings:'cv11';
}

main#app{background-image:none}

h1,h2,h3,h4,.brand,.stat strong,.mini-stats strong,.schedule-date,
.membership-price,.search-heading,.empty-mark,.stage-center h2,
.category .number,.category strong,.subplan strong{
  font-family:var(--font-display);
  letter-spacing:-.02em;
  font-weight:700;
  text-wrap:balance;
}

h1{font-size:clamp(26px,2.6vw,34px);line-height:1.15;letter-spacing:-.03em}
h2,.section-head h2{font-size:clamp(18px,1.5vw,21px);line-height:1.25;letter-spacing:-.025em}
h3{font-size:16px;letter-spacing:-.015em}
h4{font-size:14px}

p{line-height:1.55;text-wrap:pretty}
::selection{background:var(--accent);color:var(--accent-ink)}

.muted,.intro p,.field small,.card-info p,.details p{color:var(--muted)}
.eyebrow{font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--muted)}

.intro{margin-bottom:20px;align-items:flex-end}
.intro h1{margin:2px 0 6px}
.intro p{font-size:13.5px;margin:0}

.section-head{
  padding-bottom:12px;
  border-bottom:1px solid var(--line);
  margin-bottom:16px;
}
.section-head a{color:var(--muted);font-weight:600;font-size:13px;transition:color .15s var(--ease)}
.section-head a:hover{color:var(--accent)}

/* =============================== 3. Chrome ============================= */

body>header{
  height:64px;
  position:sticky;
  background:var(--bg);
  border-bottom:1px solid var(--line);
  box-shadow:none;
  padding-inline:clamp(12px,1.6vw,20px);
  gap:clamp(8px,1.4vw,18px);
}
body>header::after{display:none}
.brand{font-family:var(--font-display);font-size:26px;font-weight:800;letter-spacing:-.02em;gap:8px}
.brand span{font-size:9px;letter-spacing:.16em;color:var(--muted);font-weight:700}
#menu-button .ui-icon,#mobile-search-toggle .ui-icon{width:22px;height:22px}
header .search>button .ui-icon{width:17px;height:17px}

header>nav{height:auto;gap:2px;align-items:center}
header nav a{
  height:34px;
  padding:0 12px;
  border:0;
  border-radius:6px;
  font-size:13.5px;
  font-weight:600;
  color:var(--muted);
  box-shadow:none;
  transition:background .15s var(--ease),color .15s var(--ease);
}
header nav a:hover{background:var(--panel);color:var(--text)}
header nav a.active{
  background:var(--panel);
  color:var(--text);
  box-shadow:inset 0 -2px 0 var(--accent);
}

/* Flat sidebar rail on desktop, drawer on mobile. */
.sidebar{
  background:var(--bg);
  border-right:1px solid var(--line);
  padding:12px 8px;
}
@media(min-width:801px){
  .sidebar{
    top:var(--header-height,64px);
    bottom:0;
    left:0;
    height:auto;
    width:var(--sidebar);
    border:0;
    border-right:1px solid var(--line);
    border-radius:0;
    box-shadow:none;
    padding:12px 8px;
  }
}
.side-link{
  border-radius:6px;
  padding:9px 10px;
  color:var(--muted);
  transition:background .15s var(--ease),color .15s var(--ease),box-shadow .15s var(--ease);
}
.side-link:hover{background:var(--panel);color:var(--text)}
.side-link.active{
  background:#1d2124;
  color:var(--text);
  box-shadow:inset 2px 0 0 var(--accent);
}
.side-link>.ui-icon{width:20px;height:20px;opacity:.72;transition:opacity .15s var(--ease)}
.side-link:hover>.ui-icon,.side-link.active>.ui-icon{opacity:1}
.side-heading{
  font-size:10.5px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#7c848b;
  font-weight:700;
  margin:20px 10px 6px;
}
.side-channel{border-radius:6px;padding:7px 9px;transition:background .15s var(--ease)}
.side-channel:hover{background:var(--panel)}
.side-channel.is-live .avatar{box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--live)}
.side-channel strong{font-size:12.5px;font-weight:600}
.side-channel small,.side-count,.side-empty{font-size:11.5px;color:var(--muted)}
.side-more,.side-small{border-radius:6px}
.side-more:hover{background:var(--panel);color:var(--text)}
.side-small{color:#7c848b}
.sidebar{scrollbar-width:thin;scrollbar-color:#2f3438 transparent}
.sidebar::-webkit-scrollbar{width:6px}
.sidebar::-webkit-scrollbar-track{background:transparent}
.sidebar::-webkit-scrollbar-thumb{background:#2f3438;border-radius:999px}

body>header .search{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:none;
  overflow:visible;
  transition:border-color .15s var(--ease),background .15s var(--ease);
}
body>header .search:focus-within{
  border-color:var(--accent);
  background:var(--panel-2);
  box-shadow:none;
}
header .search input{font-size:13.5px;height:36px;color:var(--text)}
header .search input::placeholder{color:#7c848b}
header .search>button:first-of-type{color:#9fa6ad}

.search-results{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:var(--shadow-lg);
  padding:6px;
}
.search-results a{border-radius:6px;min-height:44px}
.search-results a:hover,.search-results a:focus-visible,.search-results a[aria-selected=true]{background:var(--raised)}
.search-group{border-bottom:1px solid var(--line)}
.search-heading{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:#7c848b}
.search-live{background:var(--live);color:var(--accent-ink);border-radius:4px;font-size:10.5px;font-weight:700;padding:2px 6px}
.search-verified{color:var(--accent)}

.account .avatar{box-shadow:0 0 0 1px var(--line)}
.account-menu[open] summary .avatar{outline:2px solid var(--accent);outline-offset:2px}
.account-dropdown{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:var(--shadow-lg);
  padding:6px;
  margin-top:6px;
}
.account-dropdown a{border-radius:6px;font-size:13.5px}
.account-dropdown a:hover,.account-dropdown a:focus-visible{background:var(--raised);color:var(--text)}
.account-dropdown #logout{color:#ff8f8f;border-radius:6px}
.account-dropdown #logout:hover{background:rgba(255,70,70,.14)}

/* ============================== 4. Controls ============================ */

button,.button-link{
  border-radius:6px;
  border:1px solid var(--line);
  background-color:var(--raised);
  background-image:none;
  color:var(--text);
  font-family:var(--font-ui);
  font-size:13.5px;
  font-weight:600;
  padding:8px 14px;
  box-shadow:none;
  transition:background-color .15s var(--ease),border-color .15s var(--ease),color .15s var(--ease);
}
button:hover,.button-link:hover{border-color:#3a3f43;background-color:#2b2f33}
button:active,.button-link:active{transform:none}
button:disabled{opacity:.45}

.primary,.button-link.primary{
  background-color:var(--accent);
  background-image:none;
  border-color:var(--accent);
  color:var(--accent-ink);
  font-weight:700;
  box-shadow:none;
}
.primary:hover,.button-link.primary:hover{
  background-color:var(--accent-hover);
  border-color:var(--accent-hover);
  color:var(--accent-ink);
}
.secondary{
  background-color:var(--raised);
  background-image:none;
  border-color:var(--line);
  color:var(--text);
}
.ghost{background-color:transparent;background-image:none;box-shadow:none;border-color:transparent;color:var(--muted)}
.ghost:hover{background-color:var(--panel);border-color:transparent;color:var(--text)}
.icon-button{background-color:transparent;background-image:none;box-shadow:none;border:0;border-radius:6px;color:#c9ced2}
.icon-button:hover{background-color:var(--panel);color:#fff}

:where(button,a,input,textarea,select,summary,[tabindex]):focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
}

input,textarea,select{
  font-family:var(--font-ui);
  border-radius:6px;
  background-color:var(--panel-2);
  border:1px solid #2e3235;
  color:var(--text);
  font-size:13.5px;
  padding:9px 11px;
  transition:border-color .15s var(--ease),background .15s var(--ease);
}
input:hover,textarea:hover,select:hover{border-color:#3a3f43}
input:focus,textarea:focus,select:focus{
  outline:none;
  border-color:var(--accent);
  background-color:var(--panel);
  box-shadow:none;
}
input::placeholder,textarea::placeholder{color:#7c848b}
.field{gap:6px;font-size:12.5px;font-weight:600;color:#c3c8cc}
.field input,.field textarea,.field select{background-color:var(--panel-2);border-color:#2e3235;border-radius:6px;font-size:13.5px;font-weight:400}
.field.check{font-weight:500}
input[type=checkbox],input[type=radio]{accent-color:var(--accent);width:15px;height:15px;border-radius:3px}
input[type=range]{accent-color:var(--accent);padding:0;border:0;background:none}
.admin-table select{border-radius:6px;background-color:var(--panel-2);border:1px solid #2e3235}

.tabs{
  gap:2px;
  border-bottom:1px solid var(--line);
  margin:16px 0;
  padding-bottom:0;
}
.tabs button,.tabs a{
  border:0;
  border-radius:0;
  padding:10px 12px;
  font-size:13.5px;
  font-weight:600;
  color:var(--muted);
  background:transparent;
  box-shadow:inset 0 -2px 0 transparent;
  transition:color .15s var(--ease),box-shadow .15s var(--ease);
}
.tabs button:hover,.tabs a:hover{background:transparent;color:var(--text)}
.tabs a.active,.tabs button.active{
  color:var(--text);
  background:transparent;
  border:0;
  margin-bottom:-1px;
  box-shadow:inset 0 -2px 0 var(--accent);
}
.chips{gap:8px}
.chip{
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--panel);
  padding:7px 13px;
  font-size:12.5px;
  font-weight:600;
  color:var(--muted);
  transition:background .15s var(--ease),border-color .15s var(--ease),color .15s var(--ease);
}
.chip:hover{border-color:#3a3f43;color:var(--text)}
.chip.active{
  background:var(--accent);
  border-color:var(--accent);
  color:var(--accent-ink);
  box-shadow:none;
}

.pill{
  background:transparent;
  border-radius:4px;
  padding:4px 9px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  color:var(--muted);
}
.pill.live,.thumbnail .pill.live{
  background:var(--live);
  border-color:var(--live);
  color:var(--accent-ink);
  text-transform:uppercase;
  box-shadow:none;
}
.tag{
  font-size:11px;
  padding:3px 8px;
  border-radius:4px;
  border:1px solid var(--line);
  background:var(--panel);
  color:#aeb4ba;
}
.status,.badge,.role-pill,.priority{
  border-radius:4px;
  padding:2px 7px;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.04em;
  border:1px solid var(--line);
  background:var(--raised);
  color:#c3c8cc;
}
.badge{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent)}
.badge.staff{background:rgba(139,92,246,.16);border-color:rgba(167,139,250,.4);color:#d3c4ff}
.badge.mod{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent)}
.badge.partner{background:rgba(0,178,255,.16);border-color:rgba(0,178,255,.38);color:#9fdcff}
.badge.vip{background:rgba(244,114,182,.16);border-color:rgba(244,114,182,.38);color:#ffc0e0}
.badge.member{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent)}
.verified{color:var(--accent)}

.table-scroll{border-radius:8px;border:1px solid var(--line)}
.admin-table{font-size:13px}
.admin-table th{
  font-size:10.5px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#7c848b;
  font-weight:700;
  background:var(--panel-2);
  padding:10px 12px;
  border-bottom:1px solid var(--line);
}
.admin-table td{padding:12px;border-bottom:1px solid var(--line);vertical-align:middle}
.admin-table tbody tr{transition:background .15s var(--ease)}
.admin-table tbody tr:hover{background:var(--panel)}
.list-row{border-bottom:1px solid var(--line);padding:12px 2px}
.list-row:hover{background:var(--panel)}
.notification{border-bottom:1px solid var(--line);padding:12px 2px}
.notification.unread{color:var(--accent)}

.avatar{
  background:var(--raised);
  color:#dfe3e6;
  font-family:var(--font-ui);
  font-weight:700;
  box-shadow:inset 0 0 0 1px var(--line);
}
.avatar.big{border:2px solid var(--panel);outline:1px solid var(--line)}
.live-dot,.sidebar .live-dot{
  background:var(--live);
  width:7px;height:7px;
  box-shadow:0 0 0 2px var(--accent-soft);
  animation:sts-pulse 2.4s var(--ease) infinite;
}
@keyframes sts-pulse{
  0%,100%{opacity:1}
  55%{opacity:.55}
}

.key{
  font-family:var(--font-mono);
  font-size:12px;
  border-radius:6px;
  border:1px solid var(--line);
  background:var(--panel-2);
  color:#d3dbd6;
}

/* ============================== 5. Surfaces ============================ */

.panel,.stat,.spotlight,.reward-card,.shop-card,.subplan,.membership-price,
.program-path,.roadmap-column,.bot-notes,.staff-metric{
  border-radius:8px;
  border:1px solid var(--line);
  background:var(--panel);
  box-shadow:none;
}
.panel{padding:clamp(16px,1.8vw,20px)}
.panel h2{margin-bottom:14px}
.staff-page .panel{background:var(--panel)}

.notice{
  border-radius:6px;
  border:1px solid var(--line);
  border-left:3px solid var(--accent);
  background:var(--panel);
  color:#dfe3e6;
  font-size:13px;
}
.empty{
  border-radius:10px;
  border:1px dashed rgba(255,255,255,.16);
  background:var(--panel);
  box-shadow:none;
}
.empty h3{font-size:19px}
.empty .empty-mark{color:rgba(255,255,255,.22)}

.stats{gap:12px}
.stat{padding:16px 18px;border-radius:8px}
.stat span{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700}
.stat strong{
  font-size:clamp(24px,2.2vw,30px);
  line-height:1.1;
  margin-top:4px;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.03em;
  color:var(--text);
}

/* ============================== 6. Discovery ========================== */

.home-offline{
  position:relative;
  overflow:hidden;
  border-radius:10px;
  border:1px solid var(--line);
  padding:clamp(22px,3.4vw,38px);
  background:
    radial-gradient(620px 260px at 8% -30%,color-mix(in oklab,var(--accent) 10%,transparent),transparent 70%),
    var(--panel);
  box-shadow:none;
}
.home-offline h1{font-size:clamp(26px,3.2vw,38px)}
.home-offline p{max-width:62ch;color:var(--muted)}

.stage{
  border-radius:8px;
  border:1px solid var(--line);
  box-shadow:none;
  background:#000;
}
.watch-layout .stage,.theater .stage{border-radius:8px;border:1px solid var(--line)}
.stage-center .play-mark{
  border-radius:8px;
  border:1px solid var(--accent-line);
  background:var(--accent-soft);
  color:var(--accent);
  box-shadow:none;
}
.row:has(#sort-channels){align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.field:has(#sort-channels){flex:0 0 200px;width:200px;margin-left:auto;font-size:12px;color:var(--muted)}
#sort-channels{min-width:170px}

.grid{gap:24px 16px}
.channel-card{transition:transform .18s var(--ease)}
.thumbnail{
  position:relative;
  border-radius:8px;
  border:1px solid var(--line);
  background:var(--panel-2);
  box-shadow:none;
  font-family:var(--font-ui);
  letter-spacing:-.01em;
  color:#7c848b;
  transition:border-color .18s var(--ease);
}
.thumbnail img{transition:transform .35s var(--ease),opacity .2s var(--ease)}
.thumbnail .thumb-art{opacity:.45;filter:saturate(.75)}
.channel-card:hover .thumbnail,.channel-card:focus-visible .thumbnail{
  transform:none;
  border-color:#3f4448;
  box-shadow:none;
}
.channel-card:hover .thumbnail img{transform:scale(1.03)}
.thumbnail .pill,.top-badge .pill{
  border-radius:4px;
  padding:3px 7px;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.05em;
  background:#000000c4;
  border:1px solid transparent;
}
.thumbnail .pill.live,.top-badge .pill.live{background:var(--live);color:var(--accent-ink)}
.duration{
  border-radius:4px;
  padding:2px 6px;
  font-size:11px;
  font-weight:600;
  background:#000000c4;
  border:1px solid transparent;
  font-variant-numeric:tabular-nums;
}
.thumbnail .category-label{font-size:11.5px;font-weight:500;color:#e6e9eb}
.card-info{display:flex;flex-direction:column;gap:2px;margin-top:10px}
.card-info .avatar{display:none}
.card-info h3{font-size:14px;font-weight:600;letter-spacing:-.01em;line-height:1.35;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;transition:color .15s var(--ease)}
.card-info p{font-size:12.5px;color:var(--muted);margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-info .channel-category{display:none}
.card-info .tags{display:none}
.channel-card:hover .card-info h3{color:var(--accent)}

.category-grid{gap:18px 14px}
.category-cover{
  border-radius:8px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:none;
  transition:border-color .18s var(--ease);
}
.category-artwork:after{background:linear-gradient(180deg,#00000010 30%,#060708ee 100%)}
.category-tile{transition:transform .18s var(--ease)}
.category-tile:hover{transform:translateY(-2px)}
.category-tile:hover .category-cover{border-color:var(--accent-line);box-shadow:none}
.category-tile>strong{display:none}
.category-tile>small{margin-top:6px;font-size:12px;color:var(--muted)}
.category-artwork .cover-label{font-size:16px;font-weight:700;letter-spacing:-.02em;font-family:var(--font-ui);color:#fff;text-shadow:0 1px 10px #000000b3}
.category-artwork .cover-sts{
  background:#00000099;
  border:1px solid rgba(255,255,255,.2);
  border-radius:3px;
  padding:2px 6px;
  font-size:8px;
  letter-spacing:.1em;
}
.category{border-radius:8px;border:1px solid var(--line);background:var(--panel)}

/* ======================= 6b. Home hero & shelves ====================== */

.home-hero{display:grid;grid-template-columns:minmax(0,1fr) clamp(300px,27%,360px);gap:20px;align-items:start;margin-bottom:26px}
.home-hero.no-rail{grid-template-columns:minmax(0,1fr)}
.hero-main{min-width:0}
.hero-stage{position:relative;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#000}
.hero-stage .stage{border:0;border-radius:0}
.hero-cover{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:#000}
.hero-cover img{display:block;width:100%;height:100%;object-fit:cover}
.hero-cover .pill{position:absolute;top:12px;left:12px;background:rgba(0,0,0,.72);color:#fff;border:1px solid rgba(255,255,255,.24);text-transform:uppercase}
.hero-cover-note{position:absolute;left:12px;bottom:12px;display:flex;align-items:center;gap:6px;max-width:calc(100% - 24px);padding:6px 9px;border-radius:6px;background:rgba(0,0,0,.68);border:1px solid rgba(255,255,255,.14);font-size:12px;color:#fff}
.hero-cover-note .ui-icon{flex:none;width:14px;height:14px;color:var(--accent)}
.hero-nav{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;padding:0 10px;z-index:3;pointer-events:none}
.hero-nav button{pointer-events:auto;width:32px;height:32px;padding:0;border-radius:999px;background:#000000b3;border:1px solid rgba(255,255,255,.16);color:#fff;font-size:18px;line-height:1;backdrop-filter:blur(6px)}
.hero-nav button:hover{background:#000;border-color:var(--accent-line);color:var(--accent)}
.hero-info{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:12px;align-items:start;margin-top:12px}
.hero-avatar{flex:none}
.hero-avatar .avatar{width:56px;height:56px}
.hero-copy{min-width:0}
.hero-title{font-size:16px;font-weight:600;color:var(--text);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.hero-title a{color:var(--text)}
.hero-title a:hover{color:var(--accent)}
.hero-stream-title{font-size:15px;font-weight:600;color:#e6e9eb;margin:2px 0 7px;line-height:1.35}
.hero-meta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-size:12.5px;color:var(--muted)}
.hero-category{color:var(--accent);font-weight:600}
.hero-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.hero-actions{display:flex;gap:8px;align-items:center}
.hero-side{border:1px solid var(--line);border-radius:10px;background:var(--panel);padding:12px 12px 6px;min-width:0}
.hero-side-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}
.hero-side-head h2{font-size:11px;text-transform:uppercase;letter-spacing:.09em;color:var(--muted);font-weight:700;margin:0}
.hero-side-head a{font-size:12px;color:var(--muted)}
.hero-side-head a:hover{color:var(--accent)}
.rail-card{display:grid;grid-template-columns:106px minmax(0,1fr);gap:10px;align-items:center;padding:8px 0}
.rail-card+.rail-card{border-top:1px solid var(--line)}
.rail-card:hover .rail-meta strong{color:var(--accent)}
.rail-thumb{position:relative;display:block;aspect-ratio:16/9;border-radius:6px;overflow:hidden;background:var(--panel-2);border:1px solid var(--line)}
.rail-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.rail-thumb .pill{position:absolute;top:4px;left:4px;font-size:9px;padding:1px 5px;letter-spacing:.04em;background:#000000c4;border:1px solid transparent;color:#cfd5da}
.rail-thumb .pill.live{position:absolute;top:4px;left:4px;font-size:9px;padding:1px 5px;letter-spacing:.04em;background:var(--live);border-color:var(--live);color:var(--accent-ink)}
.rail-viewers{position:absolute;bottom:4px;left:4px;font-size:10px;background:#000000c4;color:#fff;border-radius:3px;padding:1px 5px;font-variant-numeric:tabular-nums}
.rail-meta{min-width:0;display:block}
.rail-meta strong{display:block;font-size:12.5px;font-weight:600;color:#e6e9eb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rail-meta small{display:block;font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}

.section-count{font-size:12px;color:var(--muted);font-weight:500}
.category-hero{position:relative;display:flex;align-items:flex-end;min-height:clamp(150px,20vw,220px);margin-bottom:18px;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:var(--panel);padding:clamp(16px,2.4vw,26px)}
.category-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55}
.category-hero::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,color-mix(in oklab,var(--bg) 95%,transparent),color-mix(in oklab,var(--bg) 40%,transparent) 55%,transparent)}
.category-hero-copy{position:relative;z-index:1}
.category-hero-copy h1{font-size:clamp(24px,3vw,36px);margin:2px 0 4px}
.category-hero-copy p{margin:0;color:var(--muted);font-size:13px}
.shelf .section-head{margin-bottom:12px}
.shelf-wrap{position:relative}
.shelf-track{display:flex;gap:16px;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x proximity;padding:2px 1px 6px;scrollbar-width:none}
.shelf-track::-webkit-scrollbar{display:none}
.shelf-track:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:4px}
.shelf-item{flex:0 0 clamp(210px,23vw,260px);min-width:0;scroll-snap-align:start}
.shelf-item .card-info{margin-top:8px}
.shelf-item .card-info .avatar{width:34px;height:34px}
.shelf-arrow{position:absolute;top:calc(50% - 34px);transform:translateY(-50%);z-index:2;width:32px;height:32px;padding:0;border-radius:999px;background:#0b0b0ccc;border:1px solid rgba(255,255,255,.16);color:#fff;font-size:18px;line-height:1;display:none;backdrop-filter:blur(6px)}
.shelf-wrap.is-scrollable .shelf-arrow{display:grid;place-items:center}
.shelf-arrow.prev{left:-6px}
.shelf-arrow.next{right:-6px}
.shelf-arrow:hover{background:#000;border-color:var(--accent-line);color:var(--accent)}

.shelf .shelf-track{padding-bottom:2px}
.shelf .category-grid{display:contents}
.shelf .category-tile{flex:0 0 clamp(150px,15vw,188px);scroll-snap-align:start}
.shelf .category-tile>strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ============================ 7. Channel page ========================= */

.watch-header{
  gap:12px;
  align-items:center;
  margin:0 0 12px;
  font-size:12.5px;
  color:var(--muted);
}
.watch-header a{color:var(--muted)}
.watch-header a:hover{color:var(--accent)}
.watch-header strong{font-size:13px;font-weight:600;color:#dfe3e6;letter-spacing:0}

.watch-layout .featured-info{
  border-radius:8px;
  border:1px solid var(--line);
  background:var(--panel);
  box-shadow:none;
  padding:12px 14px;
}
.watch-layout .featured-info .details h2 a{color:var(--text)}
.watch-layout .featured-info .details h2 a:hover{color:var(--accent)}
.watch-layout .featured-info .details>p{font-size:14px;color:#dfe3e6;margin:2px 0 8px}
.watch-layout .featured-info .actions{gap:8px;flex-wrap:wrap}
.mobile-watch-tabs{display:flex;gap:6px;margin-bottom:10px}
.mobile-watch-tabs button{flex:1;border-radius:6px;background:var(--panel);border:1px solid var(--line);font-size:12.5px;font-weight:600;color:var(--muted);padding:7px 10px}
.mobile-watch-tabs button.active{background:var(--raised);color:var(--accent);border-color:var(--accent-line)}
.watch-layout .featured-info .details h2{font-size:18px;letter-spacing:-.02em}
.watch-layout .featured-info>.actions :is(button,.button-link){border-radius:6px;font-size:13px}
.watch-layout .featured-info .channel-game{color:var(--accent)}
.channel-banner{border-radius:10px;border:1px solid var(--line);box-shadow:none}
.channel-panel-image{border-radius:8px}
.custom-channel-panel{border-radius:8px}
.panels-grid .panel h3{
  border-bottom:1px solid var(--line);
  padding-bottom:9px;
  font-size:15px;
  letter-spacing:-.01em;
}
.socials a{
  border-radius:6px;
  border:1px solid var(--line);
  background:var(--panel);
  padding:6px 11px;
  font-size:12px;
  transition:border-color .15s var(--ease),color .15s var(--ease);
}
.socials a:hover{border-color:var(--accent-line);color:var(--accent)}
.community-links-list>a{border-radius:8px;border-color:var(--line);background:var(--panel)}
.community-links-list>a:hover{border-color:var(--accent-line);color:var(--accent)}

.schedule-row{padding:14px 0;border-bottom:1px solid var(--line)}
.schedule-date{
  border-radius:8px;
  background:var(--accent-soft);
  color:var(--accent);
  border:1px solid var(--accent-line);
  min-width:58px;
  padding:8px;
  font-variant-numeric:tabular-nums;
}
.schedule-date small{letter-spacing:.08em;font-weight:700;font-size:9.5px}

.clip-video{border-radius:8px;border:1px solid var(--line)}
.trailer-preview{border-radius:8px;overflow:hidden;border:1px solid var(--line)}
.trailer-caption,.hosting-caption{border-radius:6px}
.hosted-player{border-radius:10px;overflow:hidden}

.gift-board{border-radius:8px;background:var(--panel);border:1px solid var(--line);padding:16px}
.gift-person{border-radius:6px;padding:9px;transition:background .15s var(--ease)}
.gift-person:hover{background:var(--raised)}
.gift-rank{border-radius:4px;background:var(--accent-soft);color:var(--accent);border:1px solid var(--accent-line)}
.gift-total{color:var(--accent);font-variant-numeric:tabular-nums}
.gift-leaders .avatar{box-shadow:0 0 0 2px var(--bg),0 0 0 3px var(--accent-line)}

.stage.mature-cover{
  width:100%;
  max-width:100%;
  aspect-ratio:auto;
  min-height:0;
  margin:0;
  padding:clamp(24px,5vw,48px) clamp(16px,4vw,36px);
  border-radius:10px;
  border:1px solid var(--line);
  background:var(--panel);
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
.mature-cover-content{width:100%;max-width:540px;margin:0 auto;padding:0;text-align:center}
.age-mark{
  font-family:var(--font-ui);
  font-size:30px;
  line-height:1;
  letter-spacing:-.02em;
  font-weight:700;
  color:var(--accent);
  border:1px solid var(--accent-line);
  border-radius:8px;
  padding:12px 16px;
  background:var(--accent-soft);
}
.channel-rules-prompt{
  border-radius:8px;
  border:1px solid var(--line);
  background:var(--panel-2);
  padding:14px;
}
.rules-heading{font-family:var(--font-ui);letter-spacing:-.01em}

/* ================================ 8. Chat ============================== */

.watch-layout .chat,.chat{
  border-radius:8px;
  border:1px solid var(--line);
  background:var(--panel-2);
  box-shadow:none;
}
.chat .chat-head{
  background:transparent;
  border-bottom:1px solid var(--line);
  height:44px;
  min-height:44px;
  padding:0 10px;
}
.chat .chat-head>strong{font-size:13px;font-weight:600;letter-spacing:0}
.chat .chat-head-button{border-radius:6px}
.chat .chat-head-button:hover{background:var(--raised);color:var(--accent)}
.chat .messages{padding:10px 10px 6px}
.chat .message{border-radius:4px;padding:1px 4px;margin:0 -4px 6px;transition:background .12s var(--ease)}
.chat .message:hover{background:var(--panel)}
.chat .message .chat-username{font-weight:600}
.chat .chat-colon{color:#6d747a}
.chat .message time{color:#6d747a;font-variant-numeric:tabular-nums}
.first-chatter-label{
  border-radius:3px;
  border:1px solid var(--line);
  background:var(--raised);
  color:#b8bec3;
  font-size:9px;
  letter-spacing:.06em;
  padding:1px 5px;
}
.chat .chat-announcement{
  border-radius:4px;
  border-left:2px solid var(--accent);
  background:var(--panel);
  padding:6px 9px!important;
}
.chat .pinned{
  border-radius:6px;
  margin:8px;
  border:1px solid var(--line);
  background:var(--panel);
}
.chat .poll{border-radius:6px;margin:8px;border:1px solid var(--line);background:var(--panel)}
.chat-modes{gap:5px}
.chat-modes span,.chat-modes button{
  border-radius:3px;
  padding:2px 7px;
  font-size:10.5px;
  background:var(--raised);
  border:1px solid var(--line);
  color:#b8bec3;
}
.chat-supporters{
  border-bottom:1px solid var(--line);
  background:var(--panel);
  padding:7px 10px;
}
.chat-supporters .avatar{box-shadow:0 0 0 2px var(--panel-2),0 0 0 3px var(--accent-line)}
.chat-quick-emotes button{border-radius:4px}
.chat-quick-emotes button:hover{background:var(--raised)}
.chat #chat-form{background:transparent;border-top:1px solid var(--line);padding:8px 10px 10px}
.chat #chat-form .chat-compose{
  border-radius:6px;
  border:1px solid #2e3235;
  background-color:var(--panel-2);
  transition:border-color .15s var(--ease);
}
.chat #chat-form .chat-compose:focus-within{border-color:var(--accent);box-shadow:none}
.chat #chat-form .chat-send{border-radius:6px;padding:6px 13px;font-size:12.5px}
.chat #chat-form .chat-emote-control{border-radius:6px}
.chat .chat-wallet .coin-symbol{border:1px solid rgba(255,207,107,.2);background:rgba(255,207,107,.08)}
.chat-wallet-copy small{color:var(--muted)}
.chat-event-banner{
  border-radius:8px;
  border:1px solid var(--accent-line);
  background:var(--panel);
  box-shadow:none;
}
.emote-picker{border-top:1px solid var(--line);border-radius:0 0 8px 8px;background:var(--panel)}
.emote-search input{background:var(--panel-2);border:1px solid #2e3235;border-radius:6px}
.emote-results button{border-radius:6px}
.emote-collection-link{color:var(--accent)}
.jump-chat{border-radius:6px;border:1px solid var(--accent-line);background:var(--accent-soft);color:var(--accent)}
.reward-highlight{border-radius:4px;border-left:2px solid var(--accent);background:color-mix(in oklab,var(--accent) 9%,transparent)}
.reward-picker{
  border-radius:8px;
  border:1px solid var(--line);
  background:var(--panel);
  box-shadow:var(--shadow-lg);
}
.reward-picker-header{border-bottom:1px solid var(--line)}
.reward-picker-wallet{background:var(--panel-2);border-bottom:1px solid var(--line)}
.reward-picker-search input{border-radius:6px}
.reward-tile-art{border-radius:6px}
.reward-picker-tile:hover .reward-tile-art{box-shadow:none;border-color:var(--accent-line)}
.reward-picker-footer{border-top:1px solid var(--line)}
.reward-picker-footer button:hover{background:var(--raised);color:#fff}
.reward-detail-art{border-radius:8px}
.reward-picker-history>div{border-bottom:1px solid var(--line)}
.reward-picker-success>span{background:var(--accent-soft);color:var(--accent)}
#reward-obs-url{border-radius:6px;border:1px solid var(--line);font-family:var(--font-mono);font-size:12px}

/* =============================== 9. Studio ============================= */

.studio-shell{gap:20px;margin-top:18px;align-items:start}
.studio-nav{
  border-radius:8px;
  border:1px solid var(--line);
  background:var(--panel);
  box-shadow:none;
  padding:8px;
  gap:2px;
}
.studio-nav strong{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:#7c848b;padding:8px 10px}
.studio-nav button{
  border-radius:6px;
  border:1px solid transparent;
  background:transparent;
  box-shadow:none;
  padding:9px 10px;
  font-size:13px;
  font-weight:500;
  color:var(--muted);
  text-align:left;
  transition:background .15s var(--ease),color .15s var(--ease);
}
.studio-nav button:hover{background:var(--raised);color:var(--text);border-color:transparent}
.studio-nav button.active{
  background:#1d2124;
  color:var(--text);
  box-shadow:inset 2px 0 0 var(--accent);
}
#studio-content{min-width:0}

.creator-tool-header{gap:14px;margin-bottom:18px;align-items:flex-start}
.creator-tool-header h2{letter-spacing:-.02em}
.creator-tool-note{color:var(--muted);font-size:13px;line-height:1.55}
.tool-grid{gap:14px}

#studio-content .stats{margin-top:0}
#studio-content .form-grid{gap:12px 16px}

.overlay-builder{gap:16px}
.overlay-preview{
  border-radius:8px;
  border:1px solid var(--line);
  box-shadow:none;
  overflow:hidden;
}
.overlay-test-buttons button{font-size:12.5px;border-radius:6px}
.overlay-event-options{gap:6px}
.overlay-url,.overlay-builder textarea{
  font-family:var(--font-mono);
  font-size:12px;
  border-radius:6px;
  border:1px solid var(--line);
  background:var(--panel-2);
  padding:9px;
}
.theme-preview{border-radius:8px;background:var(--panel);border:1px solid var(--accent-line);padding:16px}
.health-samples{gap:6px}
.health-samples>span{
  border-radius:3px;
  background:var(--accent);
  color:var(--accent-ink);
  font-weight:700;
}
.chart .bar{
  border-radius:3px 3px 0 0;
  background:var(--accent);
}
.chart .bar:nth-child(3n){background:color-mix(in oklab,var(--accent) 74%,#000)}
.chart .bar:nth-child(4n){background:color-mix(in oklab,var(--accent) 46%,#000)}
.chart .bar span{color:#7c848b;font-variant-numeric:tabular-nums}

.reward-card{padding:18px}
.reward-card strong{color:var(--accent);font-size:13px}
.reward-card button{margin-top:10px;width:100%}
.shop-card{border-radius:8px;padding:18px}
.shop-icon{border-radius:8px}
.shop-price{color:var(--accent)}
.shop-toolbar{gap:10px}

.ads-status{border-left:3px solid var(--accent);border-radius:0 6px 6px 0;background:var(--panel)}
.sts-ad-container{background:#000}
#enable-video-ads{border-radius:6px}

.alert-workspace{border-radius:8px;border:1px solid var(--line);box-shadow:none}
.alert-workspace .alert-editor-top,.alert-workspace .alert-editor-bottom{background:var(--panel);border-color:var(--line)}
.alert-workspace .alert-variant-sidebar,.alert-workspace .alert-settings-sidebar{background:var(--panel-2)}
.alert-workspace .alert-sidebar-heading{background:transparent;border-bottom:1px solid var(--line)}
.alert-workspace .alert-variant-row{border-radius:6px;border:1px solid var(--line);background:var(--panel-2)}
.alert-workspace .alert-variant-row.selected{background:var(--accent-soft);border-color:var(--accent-line)}
.alert-workspace .alert-event-heading{border-radius:0;border-top:0;border-bottom:1px solid var(--line)}
.alert-workspace .alert-event-heading.active{border-left:2px solid var(--accent)}
.alert-workspace{overflow:hidden}
.alert-editor-top{align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--line);background:var(--panel)}
.alert-editor-top strong{display:flex;align-items:center;gap:8px;font-size:13.5px}
.alert-editor-top strong small{color:var(--muted);font-size:11.5px;font-weight:500}
.alert-editor-top a{color:var(--muted);font-size:12.5px}
.alert-editor-top a:hover{color:var(--accent)}
.alert-editor-actions{gap:8px;margin-left:auto}
.alert-variant-sidebar{max-height:none;border-right:1px solid var(--line);padding-bottom:8px}
.alert-sidebar-heading{padding:8px 12px;font-size:10.5px;letter-spacing:.08em;color:var(--muted)}
.alert-sidebar-heading button{font-size:11px;padding:3px 8px;border-radius:4px;background:transparent;border:1px solid var(--line);color:var(--muted)}
.alert-sidebar-heading button:hover{color:var(--text);border-color:#3a3f43}
.alert-event-group{margin-bottom:6px}
.alert-event-heading{width:100%;padding:8px 12px;font-size:12px;font-weight:600;color:var(--muted);background:transparent;border:0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:8px;border-radius:0}
.alert-event-heading:hover{color:var(--text);background:var(--panel)}
.alert-workspace .alert-event-heading.active{color:var(--text);padding-left:10px}
.alert-variant-row{margin:4px 8px;padding:8px 9px;border-radius:6px;background:var(--panel-2);border:1px solid transparent;gap:8px;align-items:center;color:var(--text)}
.alert-variant-row:hover{border-color:#3a3f43}
.alert-workspace .alert-variant-row.selected{background:var(--accent-soft);border-color:var(--accent-line);color:var(--text)}
.alert-variant-row strong{display:block;font-size:12.5px;font-weight:600;line-height:1.3}
.alert-variant-row small{display:block;font-size:11px;color:var(--muted);margin-top:1px}
.alert-variant-row.selected small{color:#cfe8c2}
.alert-variant-handle{color:var(--muted);font-size:12px}
.alert-widget-nav{margin:6px 8px 0;padding:8px 10px;border-radius:6px;background:var(--panel);border:1px solid var(--line);color:#c3c8cc;font-size:12px;text-align:left;width:calc(100% - 16px)}
.alert-widget-nav:hover{background:var(--raised);color:var(--text);border-color:#3a3f43}
.alert-priority-note{margin:10px 12px 12px;font-size:11px;color:var(--muted);line-height:1.5}
.alert-preview-column{min-width:0}
.alert-preview-toolbar{padding:8px 10px;gap:8px;border-bottom:1px solid var(--line);background:var(--panel);align-items:center;flex-wrap:wrap}
.alert-preview-toolbar button{border-radius:6px;font-size:12px;padding:6px 10px}
.alert-preview-toolbar #alert-test-state{font-size:11.5px;color:var(--muted)}
.alert-preview-canvas{border-radius:8px;border:1px solid var(--line);overflow:hidden;margin:10px;background:#0f1112}
.alert-preview-options{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:8px 12px;border-top:1px solid var(--line);font-size:11.5px;color:var(--muted)}
.alert-preview-options strong{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.alert-preview-options label{display:flex;align-items:center;gap:6px;font-size:11.5px}
.alert-preview-options input{width:78px;padding:4px 8px;border-radius:6px;font-size:12px}
.alert-backgrounds{gap:6px;display:flex;align-items:center}
.alert-backgrounds button{width:20px;height:20px;padding:0;border-radius:4px;border:1px solid var(--line)}
.alert-backgrounds button.active{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.alert-preview-help{padding:0 12px 10px;font-size:11px;color:var(--muted);line-height:1.5}
.alert-settings-sidebar{padding:10px 12px;max-height:none;border-left:1px solid var(--line)}
.alert-settings-sidebar .field{margin-bottom:10px}
.alert-settings-sidebar .primary,#overlay-settings .primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);border-radius:6px;font-weight:700}
.alert-settings-sidebar .primary:hover,#overlay-settings .primary:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:var(--accent-ink)}
.alert-editor-bottom{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;background:var(--panel);border-top:1px solid var(--line)}
.alert-editor-bottom label{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--muted)}
.alert-editor-bottom select{border-radius:6px;padding:5px 8px;font-size:12px}
.alert-editor-bottom #overlay-url{flex:1;min-width:180px;font-family:var(--font-mono);font-size:11.5px;padding:6px 8px;border-radius:6px}
.alert-editor-bottom button{border-radius:6px;font-size:12px}
#alert-editor-status{font-size:11.5px;color:var(--muted)}

/* ============================== 10. Settings =========================== */

.security-intro{border-left:3px solid var(--accent);border-radius:0 6px 6px 0;padding-left:12px}
.recovery-card{border-radius:8px;border:1px solid var(--line);background:var(--panel)}
.authenticator-setup img{border-radius:8px;border-color:#fff}
#studio-content [data-trust-revoke]{border-radius:6px}

/* ============================== 11. App Store ========================== */

.bot-store{max-width:1100px}
.bot-app-card{gap:20px;padding:clamp(18px,2.2vw,24px);border-radius:8px;align-items:center}
.bot-app-icon{
  border-radius:8px;
  background:var(--panel-2);
  box-shadow:inset 0 0 0 1px var(--line);
}
.bot-free{font-size:10.5px;letter-spacing:.1em;font-weight:700;color:var(--accent)}
.bot-installed{
  border-radius:4px;
  border:1px solid var(--accent-line);
  background:var(--accent-soft);
  color:var(--accent);
  padding:2px 8px;
  font-size:11px;
  font-weight:700;
}
.bot-actions{gap:8px}
.bot-actions .button,#bot-install{
  border-radius:6px;
  background-color:var(--accent);
  background-image:none;
  border-color:var(--accent);
  color:var(--accent-ink);
  font-weight:700;
  box-shadow:none;
}
.bot-actions .button:hover,#bot-install:hover{
  background-color:var(--accent-hover);
  border-color:var(--accent-hover);
  color:var(--accent-ink);
}
.bot-notes{border-radius:8px;padding:16px}
.bot-notes strong{color:var(--accent)}
.bot-management{gap:16px}
.bot-management label{display:block;margin:12px 0;font-size:12.5px;font-weight:600;color:#c3c8cc}
.bot-management input:not([type=checkbox]),.bot-management textarea{
  width:100%;
  margin-top:6px;
  background:var(--panel-2);
  border:1px solid #2e3235;
  border-radius:6px;
}
.bot-toggle{gap:8px}
.bot-item{border-bottom:1px solid var(--line);padding:14px 0}
.bot-item strong{font-size:13.5px}
.bot-item-state{display:block;font-size:11.5px;color:#7c848b;margin-top:3px}
.bot-item p{font-size:13px;color:#c3c8cc}
#bot-status{color:#ff8f8f;font-size:13px}
#bot-command-form .bot-actions button:not(.secondary),
#bot-timer-form .bot-actions button:not(.secondary){
  background-color:var(--accent);
  border-color:var(--accent);
  color:var(--accent-ink);
  font-weight:700;
}
#bot-command-form .bot-actions button:not(.secondary):hover,
#bot-timer-form .bot-actions button:not(.secondary):hover{background-color:var(--accent-hover);border-color:var(--accent-hover);color:var(--accent-ink)}

/* ============================ 12. Catalog pages ======================== */

.roadmap-column{
  border-radius:8px;
  border:1px solid var(--line);
  border-top:3px solid #42474d;
  padding:16px;
}
.roadmap-column-title h2{font-size:17px}
.roadmap-column-title>span{
  border-radius:4px;
  background:var(--raised);
  border:1px solid var(--line);
  color:#c3c8cc;
  font-weight:700;
  font-size:11px;
  font-variant-numeric:tabular-nums;
}
.roadmap-card{border-radius:6px;border:1px solid var(--line);background:var(--panel-2);margin-top:8px}
.roadmap-card h3{font-size:15px;letter-spacing:-.01em;margin:6px 0}
.roadmap-description{font-size:13px;color:#c3c8cc}
.roadmap-in_progress{border-top-color:var(--warn)}
.roadmap-released{border-top-color:var(--accent)}
.roadmap-toolbar{gap:12px}
.seasonal-swatches{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}
.seasonal-swatch{padding:14px 18px;border-radius:8px;font-weight:700;border:1px solid var(--line)}
.seasonal-swatch.normal{background:#0b0b0c;color:#53fc18;border-color:#2f4a22}
.seasonal-swatch.halloween{background:#0c0a08;color:#ff9f1a;border-color:#4a3418}
.seasonal-swatch.christmas{background:#0a0b0b;color:#ff5b5b;border-color:#4a2626}

.collectible-card{
  border-radius:8px;
  border:1px solid color-mix(in oklab,var(--rarity) 45%,var(--line));
  background:var(--panel);
  box-shadow:none;
}
.collectible-image{border-radius:6px;border-color:var(--line);background:var(--panel-2)}
.collectible-card>strong{font-weight:600}
.collectible-type{letter-spacing:.1em}
.daily-panel{border-radius:8px;background:var(--panel);border:1px solid var(--line)}
.daily-vault{border-radius:6px;background:var(--panel-2);border:1px solid var(--line)}
.streak-bars span{border-radius:2px;transform:none}
.watch-progress{height:5px;border-radius:999px;background:#2b2f33}
.watch-progress>div{border-radius:999px;background:var(--accent);box-shadow:none}
.daily-gift.claim-ready{background:var(--accent-soft);border-radius:4px}
.collection-link{color:#c3c8cc}

.membership-mark{
  border-radius:8px;
  background:var(--accent-soft);
  color:var(--accent);
  border:1px solid var(--accent-line);
}
.membership-price{border-radius:8px;border-color:var(--line);background:var(--panel-2)}
.membership-card h2{font-size:22px}

.subplan{border-radius:8px;padding:18px 12px}
.subplan strong{font-size:26px;letter-spacing:-.02em}

.program-path{border-radius:8px;background:var(--panel);border-color:var(--line)}
.program-symbol{border-radius:6px}
.program-body{border-top:1px solid var(--line)}
.program-goal progress{border-radius:999px;height:6px}
.program-goal progress::-webkit-progress-value,.program-goal progress::-moz-progress-bar{
  border-radius:999px;
  background:var(--accent);
}

.server-state{border-radius:4px;border:1px solid var(--line);background:var(--raised)}
.server-state.online{color:var(--accent);border-color:var(--accent-line);background:var(--accent-soft)}
.server-address{border-radius:6px;background:var(--panel-2);border:1px solid var(--line)}
.server-address code{font-family:var(--font-mono);font-size:12.5px}
.community-server{border-radius:8px}

.platform-notice{
  border-radius:6px;
  border:1px solid var(--line);
  background:var(--panel);
  box-shadow:none;
}
.support-reply{border-bottom:1px solid var(--line)}
.preserve-lines{line-height:1.55}

/* ========================= 13. Modals & popovers ======================= */

dialog#modal,dialog{
  border-radius:10px;
  border:1px solid var(--line);
  background:var(--panel);
  box-shadow:var(--shadow-lg);
  padding:24px;
  color:var(--text);
}
dialog::backdrop{background:#000000b3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
dialog .close{top:10px;right:10px;border-radius:6px;width:30px;height:30px;font-size:18px;color:var(--muted)}
dialog .close:hover{background:var(--raised);color:#fff}
#modal-content h2{font-size:20px;letter-spacing:-.02em;margin-bottom:6px}
#modal-content>p{font-size:13.5px;color:var(--muted);line-height:1.55}
#modal-content .field{margin-bottom:12px}
#modal-content form{margin-top:14px}
#modal-content .row{margin-top:14px;gap:8px;justify-content:flex-start}
#modal-content .actions{margin-top:12px}

dialog:has(.chat-profile),dialog:has(.chat-profile-loading){
  width:min(400px,94vw);
  padding:0;
  border-radius:10px;
  background:var(--panel);
  border:1px solid var(--line);
  box-shadow:var(--shadow-lg);
  overflow:auto;
}
dialog:has(.chat-profile) .close,dialog:has(.chat-profile-loading) .close{
  background:var(--raised);
  border:1px solid var(--line);
  border-radius:6px;
  color:#e6e9eb;
}
.chat-profile{padding:14px 14px 0}
.profile-cover{border-radius:8px;border:1px solid var(--line);overflow:hidden;background:var(--panel-2)}
.profile-identity .avatar.big{border:3px solid var(--panel);outline:1px solid var(--accent-line);box-shadow:none}
.profile-identity h2{font-size:19px;letter-spacing:-.02em}
.profile-badges .badge{font-size:10.5px}
.profile-dates strong{font-size:13px;font-variant-numeric:tabular-nums}
.profile-dates time{font-size:12.5px;color:var(--muted)}
.profile-actions button,.profile-actions .button-link{border-radius:6px;font-size:13px}
.profile-moderation{border-top:1px solid var(--line);padding:14px 0 8px}
.profile-moderation .danger{color:#ff9d9d;border-color:rgba(255,70,70,.4);background:rgba(255,70,70,.12);border-radius:6px}
.profile-error{color:#ff9d9d!important}

#toast{
  border-radius:6px;
  border:1px solid var(--line);
  background:var(--raised);
  color:var(--text);
  box-shadow:var(--shadow-lg);
  padding:10px 16px;
  font-size:13px;
  font-weight:500;
}

/* ============================ 14. Player & ads ======================== */

.sts-player-controls{
  background:linear-gradient(transparent,#000000b3);
  border-radius:0 0 8px 8px;
  padding:26px 10px 8px;
}
.sts-player-controls button{border-radius:4px;border:0;background:transparent;color:#fff;box-shadow:none}
.sts-player-controls button:hover{background:#ffffff1f}
.player-live-dot{color:var(--live)}
.player-quality-menu{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:8px;
  box-shadow:var(--shadow-lg);
  padding:4px;
}
.player-quality-menu button{border-radius:4px}
.player-quality-menu button[aria-checked=true]{background:var(--accent-soft);color:var(--accent)}
.player-quality-menu small{color:var(--muted)}
.player-unmute-prompt{
  border-radius:6px;
  border:1px solid var(--line);
  background:var(--panel);
  box-shadow:var(--shadow-md);
  font-weight:600;
}
.player-unmute-prompt:hover{background:var(--raised);border-color:var(--accent-line)}
.stage #enable-video-ads{border-radius:6px;background:var(--panel);border:1px solid var(--line)}

/* =========================== 15. Staff workspace ====================== */

.staff-shell{gap:18px}
.staff-nav{
  border-radius:8px;
  border:1px solid var(--line);
  background:var(--panel);
  box-shadow:none;
}
.staff-nav nav a{border-radius:6px;padding:8px 10px;font-size:13px}
.staff-nav nav a.active{background:#1d2124;color:var(--text);box-shadow:inset 2px 0 0 var(--accent)}
.staff-main{padding:20px}
.staff-heading{gap:12px;align-items:center;margin-bottom:16px}
.staff-heading h1,.staff-heading h2{letter-spacing:-.02em}
.staff-metrics{gap:12px}
.staff-metric{border-radius:8px;padding:14px}
.staff-metric span{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.staff-metric strong{font-family:var(--font-ui);font-size:22px;letter-spacing:-.02em}
.staff-metric small{color:var(--muted);font-size:11.5px}
.staff-metrics{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
.staff-overview-grid{gap:16px}
.staff-task{border-radius:6px;border:1px solid var(--line);background:var(--panel-2);padding:12px}
.role-pill{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent)}
.permission-list{gap:6px}
.permission-list span{background:var(--raised);border:1px solid var(--line);color:#c3c8cc;border-radius:4px;padding:3px 8px;font-size:11px;font-weight:600}
.report-case{border:1px solid var(--line);border-radius:8px;background:var(--panel-2);padding:14px;margin-top:12px}
.report-case+.report-case{margin-top:10px}
.case-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.case-id{font-size:10.5px;letter-spacing:.08em;color:var(--muted);font-weight:700}
.report-case h3{font-size:15px;margin:0 0 6px}
.report-case blockquote{margin:10px 0;padding:10px 12px;border-left:3px solid var(--accent);background:var(--panel);border-radius:0 6px 6px 0;color:#dfe3e6;font-size:13px;line-height:1.5}
.status-open{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent)}
.status-pending{background:rgba(255,214,0,.14);border-color:rgba(255,214,0,.4);color:#ffd600}
.status-resolved,.status-dismissed,.status-closed{background:var(--raised);border-color:var(--line);color:var(--muted)}
.priority-urgent{background:rgba(255,70,70,.16);border-color:rgba(255,70,70,.42);color:#ff8f8f}
.priority-high{background:rgba(255,159,26,.16);border-color:rgba(255,159,26,.4);color:#ffb257}
.priority-normal{background:var(--raised);border-color:var(--line);color:#c3c8cc}
.account-open{color:var(--accent);font-weight:600}
.staff-identity{border-radius:8px;border:1px solid var(--line);background:var(--panel-2);padding:12px}
.case-actions{flex-wrap:wrap;gap:8px}
.queue-filters{gap:10px}
.queue-pager button{border-radius:6px}

/* =============================== 16. Motion =========================== */

@keyframes sts-pop{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

dialog[open]{animation:sts-pop .16s var(--ease) both}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:.001ms!important;
    scroll-behavior:auto!important;
  }
  .channel-card:hover .thumbnail img,.category-tile:hover{transform:none}
}

/* ============================= 17. Responsive ========================= */

@media(min-width:901px){
  .hero-side{align-self:stretch;display:flex;flex-direction:column}
  .rail-card{flex:1;min-height:0}
}

@media(max-width:1100px){
  .home-hero{grid-template-columns:minmax(0,1fr) 300px;gap:16px}
}

@media(max-width:900px){
  .home-hero,.home-hero.no-rail{grid-template-columns:minmax(0,1fr)}
  .hero-side{order:2}
}

@media(max-width:800px){
  .hero-info{grid-template-columns:44px minmax(0,1fr);gap:10px}
  .hero-avatar .avatar{width:44px;height:44px}
  .hero-actions{grid-column:1 / -1;margin-top:2px}
  .rail-card{grid-template-columns:96px minmax(0,1fr)}
  .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px;align-items:center}
  .chips::-webkit-scrollbar{display:none}
  .chip{flex:0 0 auto;white-space:nowrap}
  .shelf-item{flex-basis:min(64vw,240px)}
  .shelf-arrow{display:none!important}
  .sidebar{
    background:var(--bg);
    border-right:1px solid var(--line);
  }
  body.mobile-open .sidebar{
    border-radius:0;
    box-shadow:24px 0 60px #000000b3;
  }
  body>header{box-shadow:none}
  .studio-nav button.active,.staff-nav nav a.active{background:var(--raised);color:var(--accent);box-shadow:none}
  .bot-app-card{flex-direction:column;align-items:flex-start;gap:14px}
  .staff-main{padding:16px}
  .staff-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  dialog#modal,dialog{padding:20px}
  .home-offline{padding:22px}
}

@media(max-width:540px){
  h1{letter-spacing:-.02em}
  .stat strong{font-size:26px}
  .panel{padding:14px}
}
