/* qisqa.tv Admin — derived from the qisqa.tv design system tokens (dark cinematic UI). */

:root {
  color-scheme: dark;
  /* Surfaces */
  --fon: #0B0A0D;
  --s1: #151318;
  --s2: #1E1B22;
  --s3: #2A2630;
  --ibtn: #1A171E;
  --close: #221F27;
  --chip: #17151A;
  --off: #3A3640;
  /* Text */
  --t1: #F5F2F6;
  --t2: #A9A3AF;
  --t3: #6F6975;
  --soft: #CFC9D4;
  /* Accent */
  --red: #E0284F;
  --red-hi: #EB3A60;
  --red-t: #FF5C7A;
  --red-tint: rgba(224, 40, 79, .16);
  --gold: #F6B93B;
  --gold-t: #FFD46E;
  --gold-tint: rgba(246, 185, 59, .14);
  --gold-grad: linear-gradient(180deg, #FFD36B, #F2A91E);
  --green: #3DD68C;
  --green-tint: rgba(61, 214, 140, .12);
  /* Lines */
  --line: rgba(255, 255, 255, .06);
  --line2: rgba(255, 255, 255, .1);
  --line3: rgba(255, 255, 255, .18);
  /* Radii */
  --r8: 8px; --r12: 12px; --r16: 16px; --r20: 20px; --r24: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sidebar: 240px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scrollbar-color: var(--s3) transparent; scrollbar-width: thin; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--fon);
  color: var(--t1);
  font: 400 15px/1.55 Onest, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.nav-locked { overflow: hidden; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--s3); border-radius: 10px; border: 3px solid var(--fon); }
::-webkit-scrollbar-track { background: transparent; }
::selection { background: rgba(224, 40, 79, .45); color: #fff; }

a { color: var(--red-t); text-decoration: none; }
a:hover { color: #FF8BA0; }
button, input, select, textarea { font-family: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red-t); outline-offset: 2px; }
h1:focus, .view:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200; padding: 10px 14px; border-radius: 12px;
  background: var(--red); color: #fff; font-weight: 700; transition: top .15s;
}
.skip-link:focus { top: 12px; color: #fff; }

@keyframes qspin { to { transform: rotate(360deg); } }
@keyframes qpulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes qfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes qdrop { from { transform: translateY(-130%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes qpop { from { transform: scale(.96) translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes qrise { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Icons ---------- */
.ms {
  font-family: 'Material Symbols Rounded';
  font-weight: normal; font-style: normal; font-size: 22px; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap; word-wrap: normal; direction: ltr;
  display: inline-block; flex: none; user-select: none; overflow: hidden; width: 1em; height: 1em;
  -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.ms.fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--t1); }
.logo-tile {
  width: 20px; height: 28px; border-radius: 6px; background: var(--red); flex: none;
  display: flex; align-items: center; justify-content: center;
}
.logo-play { width: 0; height: 0; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.logo-word { font: 700 22px/1 Unbounded, sans-serif; letter-spacing: -.8px; }
.logo-tile.lg { width: 34px; height: 48px; border-radius: 10px; box-shadow: 0 0 40px rgba(224, 40, 79, .55); }
.logo-tile.lg .logo-play { border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; margin-left: 4px; }
.logo-word.lg { font-size: 36px; letter-spacing: -1.3px; }
.logo:has(.lg) { gap: 12px; }
.admin-tag {
  height: 22px; padding: 0 8px; border-radius: 7px; display: inline-flex; align-items: center;
  background: var(--s2); border: 1px solid var(--line2); color: var(--t2);
  font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
}

/* ---------- Boot ---------- */
.boot {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(55% 35% at 50% 46%, rgba(224, 40, 79, .3), transparent 70%), var(--fon);
}
.boot .logo { animation: qpulse 1.4s ease-in-out infinite; }

/* ---------- Login ---------- */
.login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  background: radial-gradient(55% 40% at 50% 38%, rgba(224, 40, 79, .22), transparent 70%), var(--fon);
}
.login-card {
  width: 100%; max-width: 420px; padding: 32px 28px 24px; border-radius: var(--r24);
  background: var(--s1); border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(0, 0, 0, .55);
  display: flex; flex-direction: column; gap: 16px; animation: qpop .35s var(--ease);
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.login-title { font: 700 22px/1.25 Unbounded, sans-serif; letter-spacing: -.4px; }
.login-sub { color: var(--t2); font-size: 15px; margin-top: -8px; }
.login-foot { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--t3); font-size: 13px; font-weight: 500; }
.login-foot .ms { font-size: 16px; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; padding: 20px 12px 16px;
  background: var(--fon); border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 12px 20px; }
.brand-link { display: inline-flex; border-radius: 8px; }
.brand .nav-close { display: none; margin-left: auto; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group {
  padding: 18px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--t3);
}
.nav-item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 12px;
  border: 0; border-radius: var(--r12); background: transparent; cursor: pointer; text-align: left;
  color: var(--t2); font-size: 15px; font-weight: 600; transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--s1); color: var(--t1); }
.nav-item .ms { font-size: 22px; }
.nav-item.active { background: var(--s2); color: #fff; }
.nav-item.active .ms { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.nav-item.active::before {
  content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--red); box-shadow: 0 0 12px rgba(224, 40, 79, .6);
}
.sidebar-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.sidebar-foot .nav-item:hover { color: var(--red-t); }

.mhead { display: none; }
.scrim { position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, .55); animation: qfade .2s; }
.main { min-width: 0; }
.view { max-width: 1200px; margin: 0 auto; padding: 32px 32px 64px; }

/* ---------- Top bar ---------- */
.topbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; min-height: 44px; }
.topbar-text { flex: 1; min-width: 0; }
.topbar h1 { font: 700 24px/1.2 Unbounded, sans-serif; letter-spacing: -.6px; overflow-wrap: anywhere; }
.topbar-sub { color: var(--t2); font-size: 14px; margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Layout helpers ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
.g2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.split-wide { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.sticky { position: sticky; top: 24px; }
.muted { color: var(--t2); }
.faint { color: var(--t3); }
.gold { color: var(--gold-t); }
.red { color: var(--red-t); }
.green { color: var(--green); }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caption { font-size: 13px; font-weight: 500; color: var(--t2); }
.micro { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--t3); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

/* ---------- Cards ---------- */
.card { background: var(--s1); border-radius: var(--r20); padding: 20px; min-width: 0; }
.card-lg { padding: 24px; }
.card-flush { padding: 8px 20px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head > div:not(.spacer) { min-width: 0; }
.card-head > a, .card-head > .tag, .card-head > button { flex: none; }
.card-head .ms.head-ico {
  width: 36px; height: 36px; border-radius: 10px; background: var(--s2); color: var(--soft);
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
}
.card-title { font-size: 19px; font-weight: 700; letter-spacing: -.2px; line-height: 1.3; }
.card-sub { font-size: 13px; color: var(--t2); font-weight: 500; margin-top: 2px; }
.card-head .spacer + * { flex: none; }
.section-title { font-size: 19px; font-weight: 700; letter-spacing: -.2px; margin: 8px 0 12px; }
.card-gold {
  background: radial-gradient(80% 120% at 100% 0%, rgba(246, 185, 59, .2), transparent 60%), var(--s1);
  border: 1px solid rgba(246, 185, 59, .25);
}
.card-red {
  background: radial-gradient(90% 120% at 0% 0%, rgba(224, 40, 79, .26), transparent 60%), #17121A;
  border: 1.5px solid rgba(224, 40, 79, .6); box-shadow: 0 0 30px rgba(224, 40, 79, .14);
}
.divider { height: 1px; background: var(--line); margin: 4px 0; border: 0; }
.note {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r12);
  background: var(--s2); color: var(--soft); font-size: 14px; line-height: 1.5;
}
.note .ms { font-size: 20px; color: var(--t2); margin-top: 1px; }
.note.info { background: rgba(224, 40, 79, .08); border: 1px solid rgba(224, 40, 79, .2); }
.note.info .ms { color: var(--red-t); }
.note.gold { background: rgba(246, 185, 59, .08); border: 1px solid rgba(246, 185, 59, .22); color: var(--soft); }
.note.gold .ms { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: var(--r12); border: 0; cursor: pointer; white-space: nowrap; text-decoration: none;
  font: 700 15px/1 Onest, sans-serif; letter-spacing: -.1px; position: relative;
  transition: transform .1s, background .15s, box-shadow .15s, color .15s, border-color .15s, filter .15s, opacity .15s;
}
.btn .ms { font-size: 20px; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(224, 40, 79, .3); }
.btn-primary:hover:not(:disabled) { background: var(--red-hi); color: #fff; box-shadow: 0 10px 28px rgba(224, 40, 79, .4); }
.btn-secondary { background: var(--s2); color: var(--t1); border: 1px solid var(--line2); }
.btn-secondary:hover:not(:disabled) { background: var(--s3); color: var(--t1); border-color: var(--line3); }
.btn-ghost { background: transparent; color: var(--t2); padding: 0 12px; }
.btn-ghost:hover:not(:disabled) { color: var(--t1); background: rgba(255, 255, 255, .05); }
.btn-gold { background: var(--gold-grad); color: #1A1204; font-weight: 800; box-shadow: 0 0 24px rgba(246, 185, 59, .25); }
.btn-gold:hover:not(:disabled) { filter: brightness(1.06); color: #1A1204; box-shadow: 0 0 30px rgba(246, 185, 59, .38); }
.btn-danger { background: rgba(224, 40, 79, .1); color: var(--red-t); border: 1px solid rgba(224, 40, 79, .28); }
.btn-danger:hover:not(:disabled) { background: rgba(224, 40, 79, .18); color: #FF8BA0; border-color: rgba(224, 40, 79, .45); }
.btn-danger-solid { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(224, 40, 79, .3); }
.btn-danger-solid:hover { background: var(--red-hi); }
.btn:disabled { background: var(--close); color: var(--t3); border-color: transparent; box-shadow: none; cursor: not-allowed; filter: none; }
.btn-lg { height: 54px; border-radius: 14px; font-size: 16px; padding: 0 24px; }
.btn-sm { height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13px; gap: 6px; }
.btn-sm .ms { font-size: 18px; }
.btn-block { width: 100%; }
.btn.is-busy { color: transparent !important; pointer-events: none; }
.btn.is-busy > * { visibility: hidden; }
.btn.is-busy::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: qspin .7s linear infinite;
}
.btn-gold.is-busy::after { border-color: rgba(26, 18, 4, .25); border-top-color: #1A1204; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ibtn); color: var(--t1);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
  transition: background .15s, color .15s, opacity .15s, transform .1s;
}
.icon-btn:hover:not(:disabled) { background: var(--s3); color: #fff; }
.icon-btn:active:not(:disabled) { transform: scale(.95); }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.icon-btn.sq { width: 36px; height: 36px; border-radius: 10px; background: var(--s2); }
.icon-btn.sq .ms { font-size: 20px; }
.icon-btn.sq:hover:not(:disabled) { background: var(--s3); }
.icon-btn.danger:hover:not(:disabled) { background: rgba(224, 40, 79, .16); color: var(--red-t); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--soft); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.link-btn:hover { color: var(--t1); }

/* ---------- Segmented control ---------- */
.seg { display: inline-flex; padding: 3px; border-radius: var(--r12); background: var(--s1); border: 1px solid var(--line); gap: 2px; }
.seg button {
  height: 34px; min-width: 38px; padding: 0 10px; border-radius: 9px; border: 0; background: transparent;
  color: var(--t2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 13px;
}
.seg button:hover { color: var(--t1); }
.seg button[aria-pressed="true"] { background: var(--s3); color: var(--t1); }
.seg .ms { font-size: 20px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.label { font-size: 13px; font-weight: 600; color: var(--t2); display: flex; align-items: center; gap: 6px; }
.label .opt { color: var(--t3); font-weight: 500; }
.hint { font-size: 12px; color: var(--t3); line-height: 1.45; }
.hint:empty { display: none; }
.field-error { font-size: 12px; color: var(--red-t); font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--r12);
  background: var(--s2); border: 1px solid var(--line2); color: var(--t1);
  font: 500 15px Onest, sans-serif; outline: none; min-width: 0;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--t3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(224, 40, 79, .18); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--red); background: rgba(224, 40, 79, .06); }
.input:disabled, .input[readonly] { color: var(--t2); background: var(--chip); }
.input-sm, .select.input-sm { height: 40px; border-radius: 10px; font-size: 14px; padding: 0 12px; }
.select.input-sm { padding-right: 34px; background-position: right 10px center; }
.textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23A9A3AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.select option { background: var(--s2); color: var(--t1); }
input[type="number"].input { font-variant-numeric: tabular-nums; }
.input-affix { position: relative; display: flex; align-items: center; }
.input-affix .input { padding-right: 48px; }
.affix-btn {
  position: absolute; right: 6px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent;
  color: var(--t2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.affix-btn:hover { color: var(--t1); background: rgba(255, 255, 255, .06); }
.input-suffix { position: relative; }
.input-suffix .input { padding-right: 64px; }
.input-suffix .sfx { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--t3); font-size: 13px; font-weight: 600; pointer-events: none; }
.input-suffix.has-coin .input { padding-left: 40px; }
.input-suffix.has-coin .coin { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); }
.search { position: relative; flex: 1; min-width: 200px; max-width: 420px; }
.search > .ms { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--t3); pointer-events: none; }
.search .input { padding-left: 44px; padding-right: 40px; background: var(--s1); }
.search .affix-btn { top: 6px; }
.search .input::-webkit-search-cancel-button { display: none; }
.char-count { font-size: 12px; color: var(--t3); text-align: right; font-variant-numeric: tabular-nums; }

/* Range */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 999px; background: var(--s3); outline: none; cursor: pointer; margin: 8px 0; }
.range.hue {
  background: linear-gradient(90deg, oklch(.62 .17 0), oklch(.62 .17 45), oklch(.62 .17 90), oklch(.62 .17 135), oklch(.62 .17 180), oklch(.62 .17 225), oklch(.62 .17 270), oklch(.62 .17 315), oklch(.62 .17 359));
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .45), 0 0 0 4px rgba(11, 10, 13, .35); transition: transform .1s;
}
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); }
.range:hover::-webkit-slider-thumb { transform: scale(1.08); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--fon), 0 0 0 5px var(--red-t); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--fon), 0 0 0 5px var(--red-t); }
.hue-row { display: flex; align-items: center; gap: 12px; }
.hue-row .range { flex: 1; }
.hue-row .input { width: 84px; flex: none; text-align: center; }
.hue-swatch { width: 28px; height: 28px; border-radius: 8px; flex: none; box-shadow: inset 0 0 0 1px var(--line2); }

/* Switch (iOS style, 51×31) */
.switch {
  width: 51px; height: 31px; border-radius: 16px; background: var(--off); padding: 2px; border: 0; cursor: pointer;
  transition: background .2s; flex: none; display: inline-flex; align-items: center;
}
.switch .knob { width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--red); }
.switch[aria-checked="true"] .knob { transform: translateX(20px); }
.switch:hover:not(:disabled) { filter: brightness(1.1); }
.switch:disabled { opacity: .4; cursor: not-allowed; }
.switch-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r16); background: var(--s2); }
.switch-row .sw-text { flex: 1; min-width: 0; }
.switch-row .sw-title { font-weight: 600; font-size: 15px; }
.switch-row .sw-sub { font-size: 13px; color: var(--t2); margin-top: 2px; }

/* ---------- Chips / tags / badges ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 34px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--chip); color: var(--soft); border: 1px solid rgba(255, 255, 255, .08); cursor: pointer;
  font: 600 14px/1 Onest, sans-serif; white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--line3); color: var(--t1); }
.chip[aria-pressed="true"], .chip.on { background: var(--t1); color: var(--fon); border-color: var(--t1); }
.chip[aria-pressed="true"]:hover, .chip.on:hover { background: #fff; color: var(--fon); border-color: #fff; }
.chip .cnt { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
.chip .ms { font-size: 18px; }
.chip-sm { height: 30px; padding: 0 11px; font-size: 13px; }

.tag {
  height: 22px; padding: 0 8px; border-radius: var(--r8); display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; white-space: nowrap; line-height: 1;
}
.tag .ms { font-size: 14px; }
.tag-red { background: var(--red-tint); color: var(--red-t); }
.tag-gold { background: rgba(246, 185, 59, .16); color: var(--gold-t); }
.tag-new { background: var(--red); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .4px; }
.tag-muted { background: var(--s2); color: var(--t2); }
.tag-green { background: var(--green-tint); color: var(--green); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.vip-badge {
  height: 24px; padding: 0 9px 0 6px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px;
  background: rgba(246, 185, 59, .14); border: 1px solid rgba(246, 185, 59, .3); color: var(--gold-t);
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.vip-badge .ms { font-size: 15px; color: var(--gold); }
.blocked-badge {
  height: 24px; padding: 0 9px 0 6px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px;
  background: rgba(224, 40, 79, .12); border: 1px solid rgba(224, 40, 79, .3); color: var(--red-t);
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.blocked-badge .ms { font-size: 15px; }

.coin {
  width: 18px; height: 18px; border-radius: 50%; flex: none; display: inline-block; vertical-align: middle;
  background: radial-gradient(circle at 35% 30%, #FFF0B8, #F6B93B 50%, #B7760E);
  box-shadow: inset 0 0 0 1.5px rgba(255, 236, 170, .5), 0 0 10px rgba(246, 185, 59, .45);
}
.coin.sm { width: 14px; height: 14px; box-shadow: 0 0 6px rgba(246, 185, 59, .4); }
.coin.lg { width: 24px; height: 24px; box-shadow: inset 0 0 0 2px rgba(255, 236, 170, .5), 0 0 14px rgba(246, 185, 59, .5); }
.coin.xl { width: 30px; height: 30px; box-shadow: inset 0 0 0 2px rgba(255, 236, 170, .5), 0 0 18px rgba(246, 185, 59, .55); }
.coin.dim { opacity: .7; }
.coin-val { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-t); font-weight: 700; font-variant-numeric: tabular-nums; }

.avatar {
  position: relative; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 30% 25%, #FF5C7A, #8A1330); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font: 700 14px Unbounded, sans-serif; letter-spacing: -.3px;
}
.avatar.lg { width: 72px; height: 72px; font-size: 24px; }
.avatar-vip {
  position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold);
  border: 2px solid var(--s1); display: flex; align-items: center; justify-content: center;
}
.avatar-vip .ms { font-size: 10px; color: #1A1204; }
.avatar.lg .avatar-vip { width: 26px; height: 26px; border-width: 3px; right: -2px; bottom: -2px; }
.avatar.lg .avatar-vip .ms { font-size: 14px; }

/* ---------- Posters ---------- */
.poster { position: relative; border-radius: var(--r12); overflow: hidden; aspect-ratio: 3 / 4; background-color: var(--s2); }
.thumb { width: 40px; height: 54px; border-radius: var(--r8); flex: none; background-color: var(--s2); box-shadow: inset 0 0 0 1px var(--line); }
.thumb.sm { width: 32px; height: 43px; border-radius: 6px; }
.thumb.empty { display: flex; align-items: center; justify-content: center; color: var(--t3); }
.thumb.empty .ms { font-size: 18px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--t3);
  padding: 4px 12px 12px; white-space: nowrap;
}
.table td { padding: 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 8px; }
.table th:last-child, .table td:last-child { padding-right: 8px; }
.table .r { text-align: right; }
.table .c { text-align: center; }
.table tbody tr.click { cursor: pointer; }
.table tbody tr.click:hover td { background: var(--ibtn); }
.table tbody tr.click:hover td:first-child { border-radius: 12px 0 0 12px; }
.table tbody tr.click:hover td:last-child { border-radius: 0 12px 12px 0; }
.table tbody tr.click:hover + tr td, .table tbody tr.click:hover td { border-top-color: transparent; }
.cell-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-title { font-weight: 600; font-size: 15px; color: var(--t1); }
.cell-title:hover { color: var(--t1); text-decoration: underline; text-decoration-color: var(--line3); text-underline-offset: 3px; }
.cell-sub { font-size: 12px; color: var(--t2); margin-top: 2px; }

/* ---------- List rows (wallet style) ---------- */
.list { background: var(--s1); border-radius: var(--r16); padding: 0 14px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-width: 0; }
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row.link { cursor: pointer; margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 12px; transition: background .15s; }
.list-row.link:hover { background: var(--ibtn); }
.list-row.link + .list-row.link { border-top-color: var(--line); }
.list-main { flex: 1; min-width: 0; }
.list-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-sub { font-size: 12px; color: var(--t2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-label { margin: 18px 0 8px; font-size: 12px; font-weight: 700; color: var(--t3); letter-spacing: .6px; text-transform: uppercase; }
.day-label:first-child { margin-top: 0; }
.tx-ico { width: 40px; height: 40px; border-radius: var(--r12); flex: none; display: flex; align-items: center; justify-content: center; }
.tx-ico .ms { font-size: 20px; }
.tx-amt { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.tx-rev { font-size: 12px; color: var(--gold-t); font-weight: 600; margin-top: 2px; text-align: right; white-space: nowrap; }

/* ---------- Empty / skeleton ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 56px 24px; color: var(--t2); }
.empty-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--s2); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.empty-icon .ms { font-size: 30px; color: var(--t3); }
.empty-title { font-size: 16px; font-weight: 600; color: var(--t1); }
.empty-text { font-size: 14px; max-width: 360px; line-height: 1.5; }
.empty .btn { margin-top: 8px; }
.sk { display: block; background: var(--chip); animation: qpulse 1.4s ease-in-out infinite; }
.card .sk { background: var(--s2); }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 100;
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px);
}
.toast {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 14px;
  background: rgba(36, 33, 40, .97); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  font-size: 14px; font-weight: 600; line-height: 1.35; backdrop-filter: blur(16px);
  animation: qdrop .3s var(--ease); transition: opacity .25s, transform .25s;
}
.toast .ms { font-size: 20px; }
.toast.out { opacity: 0; transform: translateY(-10px); }

/* ---------- Dialog ---------- */
.modal-scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px; animation: qfade .2s;
  transition: opacity .16s;
}
.modal-scrim.out { opacity: 0; }
.dialog {
  width: 100%; max-width: 420px; padding: 24px; border-radius: var(--r24); background: var(--s1);
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: qpop .22s var(--ease);
}
.dialog-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--s2); color: var(--t1); margin-bottom: 16px; }
.dialog-icon.danger { background: var(--red-tint); color: var(--red-t); }
.dialog-title { font: 700 20px/1.3 Unbounded, sans-serif; letter-spacing: -.4px; }
.dialog-text { color: var(--t2); font-size: 15px; line-height: 1.55; margin-top: 8px; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Dirty indicator ---------- */
.dirty-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--gold-t); }
.dirty-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(246, 185, 59, .6); }

/* =========================================================
   Pages
   ========================================================= */

/* Dashboard */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { background: var(--s1); border-radius: var(--r20); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kpi-top { display: flex; align-items: center; gap: 10px; color: var(--t2); font-size: 13px; font-weight: 500; }
.kpi-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--s2); color: var(--soft); flex: none; }
.kpi-ico .ms { font-size: 20px; }
.kpi-val { font: 700 28px/1.1 Unbounded, sans-serif; letter-spacing: -.8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-val small { font: 600 15px Onest, sans-serif; letter-spacing: 0; color: var(--t2); margin-left: 4px; }
.kpi-sub { font-size: 13px; color: var(--t3); font-weight: 500; display: flex; align-items: center; gap: 6px; margin-top: -6px; }
.kpi-sub .up { color: var(--green); font-weight: 700; }
.kpi.gold {
  grid-column: span 2;
  background: radial-gradient(80% 120% at 100% 0%, rgba(246, 185, 59, .22), transparent 60%), var(--s1);
  border: 1px solid rgba(246, 185, 59, .25);
}
.kpi.gold .kpi-val { color: var(--gold-t); font-size: 34px; letter-spacing: -1px; display: flex; align-items: center; gap: 10px; }
.kpi.gold .kpi-ico { background: rgba(246, 185, 59, .16); color: var(--gold); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.dash-grid > .span-all { grid-column: 1 / -1; }

.chart { position: relative; height: 240px; padding: 12px 0 28px 64px; }
.chart-gl { position: absolute; left: 64px; right: 0; border-top: 1px dashed rgba(255, 255, 255, .07); }
.chart-gl span { position: absolute; right: calc(100% + 12px); top: -8px; font-size: 11px; font-weight: 600; color: var(--t3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-bars { position: relative; height: 100%; display: flex; align-items: flex-end; gap: clamp(4px, 1.1vw, 12px); }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; outline: none; cursor: default; min-width: 0; }
.bar {
  width: 100%; max-width: 44px; min-height: 3px; border-radius: 8px 8px 4px 4px; position: relative;
  background: var(--gold-grad); box-shadow: 0 0 18px rgba(246, 185, 59, .14);
  transform-origin: bottom; animation: qrise .6s var(--ease) both; transition: filter .15s;
}
.bar.today { background: linear-gradient(180deg, #FF5C7A, #E0284F); box-shadow: 0 0 22px rgba(224, 40, 79, .35); }
.bar.zero { background: var(--s3); box-shadow: none; }
.bar-col:hover .bar, .bar-col:focus-visible .bar { filter: brightness(1.15); }
.bar-col:focus-visible .bar { outline: 2px solid var(--red-t); outline-offset: 3px; }
.bar-x { position: absolute; bottom: -24px; font-size: 11px; font-weight: 600; color: var(--t3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-col.is-today .bar-x { color: var(--red-t); }
.bar-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translate(-50%, 4px); z-index: 3;
  background: rgba(36, 33, 40, .97); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
  padding: 7px 10px; border-radius: 10px; white-space: nowrap; text-align: center; pointer-events: none;
  opacity: 0; transition: opacity .15s, transform .15s;
}
.bar-tip b { display: block; font-size: 13px; color: var(--gold-t); font-variant-numeric: tabular-nums; }
.bar-tip span { font-size: 11px; color: var(--t2); font-weight: 600; }
.bar-col:hover .bar-tip, .bar-col:focus-visible .bar-tip { opacity: 1; transform: translate(-50%, 0); }
.bar-col:first-child .bar-tip, .bar-col:nth-child(2) .bar-tip { left: 0; transform: translate(0, 4px); }
.bar-col:first-child:hover .bar-tip, .bar-col:nth-child(2):hover .bar-tip, .bar-col:first-child:focus-visible .bar-tip, .bar-col:nth-child(2):focus-visible .bar-tip { transform: none; }
.bar-col:last-child .bar-tip, .bar-col:nth-last-child(2) .bar-tip { left: auto; right: 0; transform: translate(0, 4px); }
.bar-col:last-child:hover .bar-tip, .bar-col:nth-last-child(2):hover .bar-tip, .bar-col:last-child:focus-visible .bar-tip, .bar-col:nth-last-child(2):focus-visible .bar-tip { transform: none; }
.chart-total { font: 700 20px Unbounded, sans-serif; letter-spacing: -.4px; justify-content: flex-end; }
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--t2); font-weight: 600; flex-wrap: wrap; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.rank { width: 22px; flex: none; font: 700 15px Unbounded, sans-serif; color: var(--t3); text-align: center; }
.rank.top { color: var(--red-t); }
.stat-line { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--t2); margin-top: 4px; }
.stat-line span { display: inline-flex; align-items: center; gap: 4px; }
.stat-line .ms { font-size: 14px; color: var(--t3); }

/* Series */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.s-card {
  position: relative; background: var(--s1); border-radius: var(--r20); padding: 12px; display: flex; flex-direction: column; gap: 12px;
  cursor: pointer; border: 1px solid transparent; transition: border-color .15s, transform .15s, background .15s; min-width: 0;
}
.s-card:hover { border-color: var(--line2); background: #18161C; }
.s-card:focus-within { border-color: var(--line3); }
.s-card .poster { border-radius: 14px; }
.s-card .poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 13, 0) 55%, rgba(11, 10, 13, .85)); }
.s-card-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; z-index: 1; }
.glass-tag { height: 24px; padding: 0 9px; border-radius: 8px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(10px); display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #fff; }
.glass-tag .ms { font-size: 14px; }
.s-card-meta { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; }
.s-card-meta .ms { font-size: 14px; color: var(--gold); }
.s-card-body { padding: 0 4px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.s-card-title { font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--t1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-card-title::after { content: ''; position: absolute; inset: 0; border-radius: var(--r20); }
.s-card-title:hover { color: var(--t1); }
.s-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 4px 2px; border-top: 1px solid var(--line); margin-top: auto; }
.s-card-foot .switch, .s-card-foot label { position: relative; z-index: 2; }
.pub-label { font-size: 13px; font-weight: 600; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pub-label.on { color: var(--green); }

.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.preview-col { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.preview-stage { display: flex; gap: 16px; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.pv-card { width: 132px; flex: none; }
.pv-card .poster { border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.pv-card-title { font-size: 13px; font-weight: 600; margin-top: 8px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pv-card-sub { font-size: 12px; color: var(--t3); margin-top: 2px; }
.pv-hero {
  position: relative; width: 196px; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; flex: none; container-type: inline-size;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 24px 60px rgba(0, 0, 0, .55);
}
.pv-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 13, 0) 38%, rgba(11, 10, 13, .96) 100%); }
.pv-hero-badge { position: absolute; top: 10px; left: 10px; z-index: 1; height: 20px; padding: 0 7px; border-radius: 6px; background: rgba(0, 0, 0, .4); backdrop-filter: blur(10px); display: flex; align-items: center; font-size: 10px; font-weight: 700; }
.pv-hero-body { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 5px; }
.pv-hero-tags { font-size: clamp(8px, 5.1cqw, 11px); font-weight: 600; color: var(--red-t); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-hero-title { font: 700 16px/1.15 Unbounded, sans-serif; font-size: clamp(11px, 8.2cqw, 18px); letter-spacing: -.03em; text-wrap: balance; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pv-hero-meta { font-size: clamp(8px, 5.1cqw, 11px); color: var(--soft); display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; }
.pv-hero-meta .ms { font-size: 11px; }
.pv-hero-btn { margin-top: 4px; height: 30px; border-radius: 8px; background: var(--red); display: flex; align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: 11px; }
.pv-hero-btn .ms { font-size: 16px; }
.preview-caption { display: flex; justify-content: center; gap: 16px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--t3); }
.genre-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.genre-pick .chip[aria-pressed="true"]::before { content: 'check'; font-family: 'Material Symbols Rounded'; font-size: 16px; font-weight: 700; margin-left: -4px; }

/* Series editor — help */
.help-card { padding: 0; }
.help-card > summary {
  list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; border-radius: var(--r20);
}
.help-card > summary::-webkit-details-marker { display: none; }
.help-card > summary:hover .chev { color: var(--t1); }
.help-card > summary .ms.head-ico {
  width: 36px; height: 36px; border-radius: 10px; background: var(--red-tint); color: var(--red-t);
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
}
.help-card .chev { color: var(--t3); transition: transform .2s var(--ease), color .15s; }
.help-card[open] .chev { transform: rotate(180deg); }
.help-card[open] { padding-bottom: 20px; }
.help-card[open] > summary { padding-bottom: 12px; }
.help-card > :not(summary) { margin-left: 20px; margin-right: 20px; }
.steps { list-style: none; padding: 0; margin-top: 4px; display: flex; flex-direction: column; gap: 4px; counter-reset: none; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r12); background: var(--s2); }
.step-n {
  width: 26px; height: 26px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; font: 700 12px/1 Unbounded, sans-serif; box-shadow: 0 0 14px rgba(224, 40, 79, .35);
}
.step-t { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; line-height: 1.35; }
.step-t .ms { font-size: 18px; color: var(--t2); }
.step-d { font-size: 13px; color: var(--t2); margin-top: 2px; }
.note a { color: var(--t1); text-decoration: underline; text-decoration-color: var(--line3); text-underline-offset: 3px; }
/* Series editor — poster & trailer */
.pbar { position: relative; display: block; width: 100%; height: 6px; border-radius: 999px; background: var(--s3); overflow: hidden; }
.pbar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--red); transition: width .25s linear; }
.pbar.lg { height: 8px; }
.pbar.done > i { background: var(--green); }
.pbar.err > i { background: var(--red-t); }
.pbar.cancel > i { background: var(--t3); }
.media-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-drop {
  display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: var(--r16); min-width: 0; height: 100%;
  background: var(--s2); border: 1.5px dashed var(--line3); transition: border-color .15s, background .15s;
}
.media-drop[role="button"] { cursor: pointer; }
.media-drop[role="button"]:hover, .media-drop.over { border-color: var(--red); background: rgba(224, 40, 79, .05); }
.media-drop.has { border-style: solid; border-color: var(--line2); }
.media-drop.over { border-style: dashed; box-shadow: 0 0 0 3px rgba(224, 40, 79, .18); }
.media-thumb {
  position: relative; width: 84px; aspect-ratio: 3 / 4; border-radius: 10px; flex: none; overflow: hidden;
  background-color: var(--s1); box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px rgba(0, 0, 0, .35);
}
.media-thumb-ico {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff;
  background: rgba(11, 10, 13, .45);
}
.media-thumb-ico .ms { font-size: 26px; }
.media-video {
  width: 84px; aspect-ratio: 9 / 16; border-radius: 10px; flex: none; background: #000; object-fit: cover;
  box-shadow: inset 0 0 0 1px var(--line);
}
.media-video.empty { position: relative; background: var(--s1); }
.media-drop.trailer.has { flex-direction: column; }
.media-drop.trailer.has .media-video { width: 100%; max-height: 260px; aspect-ratio: auto; object-fit: contain; }
.media-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.media-title { font-weight: 600; font-size: 14px; line-height: 1.35; }
.media-url {
  display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 8px; border-radius: 8px; background: var(--chip);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--t2);
}
.media-url .ms { font-size: 14px; color: var(--t3); }
.media-url span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.media-progress { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.media-progress-row { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--t2); font-variant-numeric: tabular-nums; }
.media-progress-row .link-btn .ms { font-size: 16px; }
/* Series editor — episodes */
.ep-card { margin-top: 24px; }
.ep-summary { padding: 14px 16px; border-radius: var(--r16); background: var(--s2); display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.ep-summary-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ep-count { font: 600 15px Onest, sans-serif; color: var(--t2); font-variant-numeric: tabular-nums; }
.ep-count b { font: 700 22px Unbounded, sans-serif; letter-spacing: -.5px; color: var(--t1); }
.ep-count span { margin-left: 4px; }
.ep-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--t2); font-weight: 600; }
.ep-stats span { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.ep-stats .ms { font-size: 16px; }
.ep-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
  padding: 28px 20px; border-radius: var(--r16); border: 1.5px dashed var(--line3); background: rgba(255, 255, 255, .015);
  cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.ep-drop:hover, .ep-drop.over { border-color: var(--red); background: rgba(224, 40, 79, .05); }
.ep-drop.over { box-shadow: 0 0 0 3px rgba(224, 40, 79, .18); }
.ep-drop[aria-disabled="true"] { cursor: default; opacity: .7; }
.ep-drop[aria-disabled="true"]:hover { border-color: var(--line3); background: rgba(255, 255, 255, .015); }
.ep-drop-ico {
  width: 52px; height: 52px; border-radius: 50%; background: var(--red-tint); color: var(--red-t);
  display: flex; align-items: center; justify-content: center; margin-bottom: 4px; transition: transform .2s var(--ease);
}
.ep-drop.over .ep-drop-ico { transform: translateY(-3px) scale(1.06); }
.ep-drop-ico .ms { font-size: 28px; }
.ep-drop-t { font-weight: 700; font-size: 16px; }
.ep-drop-s { font-size: 13px; color: var(--t2); max-width: 520px; }
.plan, .uq { margin-top: 12px; padding: 14px 16px; border-radius: var(--r16); background: var(--s2); }
.plan-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.plan-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.plan-title .ms { font-size: 20px; color: var(--red-t); }
.plan .table-wrap { margin: 0 -16px; padding: 0 16px; }
.plan-table td { padding-top: 8px; padding-bottom: 8px; }
.plan-table .tags { gap: 4px; }
.plan-file { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 320px; font-weight: 600; font-size: 14px; }
.plan-file .ms { font-size: 18px; color: var(--t3); }
.plan-n { width: 84px; background: var(--s1); text-align: center; }
.plan-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); }
.uq-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.uq-head-t { min-width: 0; }
.uq-head .card-sub b { color: var(--t1); }
.uq-list { display: flex; flex-direction: column; margin-top: 8px; }
.uq-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; min-width: 0; }
.uq-row + .uq-row { border-top: 1px solid var(--line); }
.uq-ico { width: 34px; height: 34px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--s1); color: var(--t2); }
.uq-ico .ms { font-size: 18px; }
.uq-row.up .uq-ico { color: var(--red-t); background: var(--red-tint); }
.uq-row.meta .uq-ico .ms { animation: qpulse 1.2s ease-in-out infinite; }
.uq-row.done .uq-ico { color: var(--green); background: var(--green-tint); }
.uq-row.err .uq-ico { color: var(--red-t); background: var(--red-tint); }
.uq-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.uq-line { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.uq-n { font-weight: 700; font-size: 14px; flex: none; }
.uq-name { font-size: 13px; color: var(--t2); min-width: 0; }
.uq-sub { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--t3); font-weight: 500; }
.uq-row.err .uq-st { color: var(--red-t); font-weight: 600; }
.uq-row.done .uq-st { color: var(--green); font-weight: 600; }
.uq-pct { min-width: 34px; text-align: right; color: var(--t2); font-weight: 700; }
.uq-btns { display: flex; gap: 4px; flex: none; }
.uq-btns .icon-btn.sq, .plan .icon-btn.sq { background: var(--s1); }
.uq-btns .icon-btn.sq:hover:not(:disabled), .plan .icon-btn.sq:hover:not(:disabled) { background: var(--s3); }
.ep-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0 12px; }
.ep-legend { display: flex; gap: 14px; font-size: 12px; color: var(--t2); font-weight: 600; }
.ep-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.ep-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ep-legend .lg-free { background: var(--green); }
.ep-legend .lg-paid { background: var(--off); }
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 10px; }
.ep-slot {
  display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--r16); min-width: 0;
  background: var(--s2); border: 1px solid var(--line); transition: border-color .15s, background .15s;
}
.ep-slot.ok { border-color: rgba(61, 214, 140, .22); }
.ep-slot.miss { background: transparent; border: 1.5px dashed var(--line2); }
.ep-slot.busy { border-color: rgba(224, 40, 79, .45); background: rgba(224, 40, 79, .05); }
.ep-slot:hover { border-color: var(--line3); }
.ep-slot-head { display: flex; align-items: baseline; gap: 1px; }
.ep-num { font: 700 18px/1 Unbounded, sans-serif; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.ep-num-l { font-size: 12px; color: var(--t2); font-weight: 600; }
.ep-tag { height: 20px; padding: 0 7px; border-radius: 6px; display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; align-self: center; }
.ep-tag .ms { font-size: 12px; }
.ep-tag.free { background: var(--green-tint); color: var(--green); }
.ep-tag.paid { background: var(--s3); color: var(--soft); }
.ep-state { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; min-height: 20px; }
.ep-state .ms { font-size: 18px; }
.ep-state.ok { color: var(--green); }
.ep-state.ok > span:not(.ms) { color: var(--t1); }
.ep-state.miss { color: var(--t3); font-weight: 600; font-size: 13px; }
.ep-busy-t { font-size: 13px; color: var(--red-t); }
.ep-meta { font-size: 11px; color: var(--t3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -4px; }
.ep-actions { display: flex; gap: 4px; margin-top: auto; }
.ep-actions .icon-btn.sq { width: 32px; height: 32px; border-radius: 9px; background: var(--s1); }
.ep-slot.miss .ep-actions .icon-btn.sq { background: var(--s2); }
.ep-actions .icon-btn.sq .ms { font-size: 18px; }
.ep-actions .icon-btn.sq:hover:not(:disabled) { background: var(--s3); }
.ep-actions .icon-btn.danger:hover:not(:disabled) { background: rgba(224, 40, 79, .16); }
.ep-empty { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--t2); font-size: 14px; border-radius: var(--r16); background: var(--s2); }
/* Series list — uploaded videos */
.vid-count { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--t2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vid-count .ms { font-size: 14px; color: var(--t3); }
.vid-count.full, .vid-count.full .ms { color: var(--green); }
.vid-count.part { color: var(--soft); }
.table .cell-sub .vid-count { justify-content: flex-end; font-size: 11px; }
/* Video dialog */
.dialog.dialog-video { max-width: 440px; padding: 16px; }
.dialog-video-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; padding: 4px 4px 0; }
.dialog-video-head > div { flex: 1; }
.dialog-video-head .dialog-title { font-size: 18px; }
.dialog-video-el { display: block; width: 100%; max-height: min(72vh, 680px); border-radius: var(--r16); background: #000; }
/* Sidebar account */
.account { display: flex; align-items: center; gap: 10px; padding: 4px 12px 12px; min-width: 0; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.account-text { min-width: 0; flex: 1; }
.account-name { font-size: 13px; font-weight: 600; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-email { font-size: 12px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Home curation */
.jump { position: sticky; top: 0; z-index: 5; padding: 12px 0; margin: -12px 0 12px; background: linear-gradient(var(--fon) 75%, rgba(11, 10, 13, 0)); }
.cur-list { display: flex; flex-direction: column; gap: 8px; }
.cur-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r16); background: var(--s2); min-width: 0; }
.cur-row .grow { flex: 1; min-width: 0; }
.cur-row .fields { flex: 1; min-width: 0; display: grid; gap: 8px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.cur-row .fields.three { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 110px; }
.cur-row .input, .cur-row .select { background: var(--s1); }
.cur-row .ctrls { display: flex; gap: 4px; flex: none; }
.cur-row .ctrls .icon-btn.sq { background: var(--s1); }
.cur-row .ctrls .icon-btn.sq:hover:not(:disabled) { background: var(--s3); }
.cur-row.dup { box-shadow: inset 0 0 0 1px rgba(246, 185, 59, .45); }
.cur-row .rank { color: var(--t2); }
.cur-add { margin-top: 12px; }
.up-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; padding: 12px; border-radius: var(--r16); background: var(--s2); align-items: start; }
.up-row .input { background: var(--s1); }
.up-poster { width: 54px; height: 72px; border-radius: 10px; }
.up-fields { display: grid; gap: 10px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.up-fields .full { grid-column: 1 / -1; }

/* Genres */
.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.genre-card { background: var(--s1); border-radius: var(--r20); padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.genre-tile { position: relative; height: 84px; border-radius: var(--r16); padding: 12px 14px; display: flex; align-items: flex-end; overflow: hidden; }
.genre-tile-name { font-weight: 700; font-size: 16px; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); overflow-wrap: anywhere; }
.genre-tile .glass-tag { position: absolute; top: 10px; right: 10px; }
.genre-card .body { padding: 0 4px 4px; display: flex; flex-direction: column; gap: 10px; }
.genre-card .input { height: 42px; }
.add-tile {
  min-height: 220px; border-radius: var(--r20); border: 1.5px dashed var(--line3); background: transparent; color: var(--t2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 15px;
  transition: border-color .15s, color .15s, background .15s;
}
.add-tile:hover { border-color: var(--red); color: var(--t1); background: rgba(224, 40, 79, .04); }
.add-tile .ms { width: 48px; height: 48px; border-radius: 50%; background: var(--s2); display: flex; align-items: center; justify-content: center; font-size: 26px; }

/* Store */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pack { position: relative; background: var(--s1); border-radius: var(--r16); padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); }
.pack.best { border: 1.5px solid var(--red); box-shadow: 0 0 24px rgba(224, 40, 79, .18); }
.pack-best { position: absolute; top: -11px; left: 14px; height: 22px; padding: 0 9px; border-radius: 7px; background: var(--red); display: flex; align-items: center; font-size: 11px; font-weight: 800; }
.pack-amt { display: flex; align-items: center; gap: 8px; }
.pack-amt b { font: 700 22px Unbounded, sans-serif; letter-spacing: -.6px; }
.pack-bonus { display: flex; align-items: center; gap: 6px; min-height: 22px; }
.pack-bonus span:first-child { font-size: 13px; font-weight: 600; color: var(--gold-t); }
.pack-price { height: 38px; border-radius: 10px; background: var(--s2); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; }
.pack.best .pack-price { background: var(--red); }
.pack-price s { color: var(--t3); font-weight: 500; font-size: 12px; }
.pack .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; padding-top: 12px; border-top: 1px solid var(--line); }
.pack .fields .full { grid-column: 1 / -1; }
.pack .input { height: 42px; font-size: 14px; }
.pack-foot { display: flex; align-items: center; gap: 10px; }
.pack-id { font-size: 11px; color: var(--t3); font-weight: 600; letter-spacing: .3px; }
.first-offer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.offer-pill { height: 24px; padding: 0 9px; border-radius: 7px; background: var(--red); display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .3px; }
.timer { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.timer .ms { font-size: 15px; color: #FF8BA0; }
.timer span:not(.ms) { min-width: 26px; height: 24px; padding: 0 4px; border-radius: 6px; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.vip-card { background: radial-gradient(90% 80% at 100% 0%, rgba(246, 185, 59, .16), transparent 65%), #131115; border: 1px solid rgba(246, 185, 59, .3); box-shadow: 0 0 30px rgba(246, 185, 59, .06); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.plan { position: relative; padding: 18px 14px 14px; border-radius: 14px; background: #1B181F; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.plan-note { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); height: 20px; padding: 0 7px; border-radius: 6px; background: var(--gold); color: #1A1204; font-size: 10px; font-weight: 800; display: flex; align-items: center; white-space: nowrap; }
.plan-pv { text-align: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.plan-pv .n { font-size: 13px; color: var(--soft); font-weight: 600; }
.plan-pv .p { font-weight: 800; font-size: 17px; margin-top: 4px; }
.plan-pv .per { font-size: 11px; color: var(--t3); margin-top: 2px; }
.plan .input { height: 40px; font-size: 14px; background: var(--s2); }
.method-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.4fr) 150px auto; gap: 10px; align-items: center; padding: 10px; border-radius: var(--r16); background: var(--s2); }
.method-row .input { background: var(--s1); height: 40px; font-size: 14px; }
.method-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--s1); display: flex; align-items: center; justify-content: center; color: var(--soft); }

/* Settings */
.days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 1.7fr); gap: 8px; }
.day {
  border-radius: var(--r12); background: var(--s2); border: 1px solid transparent; padding: 10px 6px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0;
}
.day.big { background: rgba(246, 185, 59, .1); border-color: rgba(246, 185, 59, .35); }
.day:focus-within { border-color: var(--red); background: rgba(224, 40, 79, .1); }
.day-l { font-size: 11px; font-weight: 600; color: var(--t2); }
.day .ms { font-size: 26px; color: var(--gold); }
.day input {
  width: 100%; max-width: 88px; height: 32px; border-radius: 8px; border: 1px solid var(--line2); background: var(--s1);
  color: var(--t1); text-align: center; font: 800 14px Onest, sans-serif; outline: none; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.day input::-webkit-outer-spin-button, .day input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.day input:focus { border-color: var(--red); }
.day input[aria-invalid="true"] { border-color: var(--red); }
.cfg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.derived { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* Announcement */
.phone-pv {
  position: relative; width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 390 / 520; border-radius: 36px; overflow: hidden;
  background: #0B0A0D; box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 40px 90px rgba(0, 0, 0, .55); isolation: isolate;
}
.phone-bg { position: absolute; inset: 0; opacity: .55; filter: saturate(.9); }
.phone-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 13, .2), rgba(11, 10, 13, .95) 80%); }
.phone-status { position: absolute; top: 0; left: 0; right: 0; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 4px 26px 0 30px; font-weight: 600; font-size: 13px; z-index: 2; }
.phone-status .ms { font-size: 16px; }
.phone-bottom { position: absolute; left: 16px; right: 16px; bottom: 20px; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.phone-bottom .t { font: 700 20px/1.15 Unbounded, sans-serif; letter-spacing: -.5px; }
.phone-bottom .s { font-size: 12px; color: var(--red-t); font-weight: 600; }
.banner {
  position: absolute; top: 46px; left: 10px; right: 10px; z-index: 3; padding: 12px; border-radius: 20px;
  background: rgba(32, 29, 36, .97); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5); display: flex; gap: 12px; align-items: center; animation: qdrop .35s var(--ease);
}
.banner-poster { width: 44px; height: 58px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; }
.banner-title { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.banner-body { font-size: 13px; color: var(--soft); margin-top: 2px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.banner-cta { height: 34px; padding: 0 14px; border-radius: 10px; background: var(--red); display: flex; align-items: center; font-size: 13px; font-weight: 700; flex: none; max-width: 110px; overflow: hidden; white-space: nowrap; }
.phone-pv.inactive .banner { opacity: .35; filter: grayscale(.6); }
.pv-state { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--t2); margin-top: 12px; }
.pv-state .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--t3); }
.pv-state.on .dot { background: var(--green); box-shadow: 0 0 10px rgba(61, 214, 140, .6); }
.pv-state.on { color: var(--green); }

/* Users */
.user-hero { display: flex; align-items: center; gap: 16px; }
.user-name { font: 700 22px/1.2 Unbounded, sans-serif; letter-spacing: -.4px; overflow-wrap: anywhere; }
.copy-btn { background: none; border: 0; padding: 2px 4px; margin-left: -4px; border-radius: 6px; color: var(--t2); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.copy-btn:hover { color: var(--t1); background: rgba(255, 255, 255, .05); }
.copy-btn .ms { font-size: 15px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--t2); }
.kv dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.balance { display: flex; }
.balance > div { flex: 1; min-width: 0; }
.balance .sep { flex: none; width: 1px; background: rgba(255, 255, 255, .08); margin: 0 16px; }
.balance .v { display: flex; align-items: center; gap: 8px; font: 700 24px Unbounded, sans-serif; color: var(--gold-t); letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.balance .l { font-size: 12px; color: var(--t2); margin-top: 4px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini-stat { background: var(--s2); border-radius: var(--r12); padding: 12px; }
.mini-stat b { display: block; font: 700 18px Unbounded, sans-serif; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.mini-stat span { font-size: 12px; color: var(--t2); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.shelf a { color: var(--t1); min-width: 0; }
.shelf .poster { border-radius: 10px; }
.shelf .t { font-size: 12px; font-weight: 600; margin-top: 6px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shelf .s { font-size: 11px; color: var(--t3); margin-top: 2px; }
.prog { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .2); z-index: 1; }
.prog i { display: block; height: 100%; border-radius: 2px; background: var(--red); }
.unl-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.unl-row + .unl-row { border-top: 1px solid var(--line); }
.unl-eps { font-size: 12px; color: var(--t2); margin-top: 2px; overflow-wrap: anywhere; }
.user-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.summary-strip { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; font-size: 14px; color: var(--t2); }
.summary-strip b { color: var(--t1); font-variant-numeric: tabular-nums; }
.summary-strip b.gold { color: var(--gold-t); }

/* Transactions */
.tx-table td { padding-top: 10px; padding-bottom: 10px; }
.show-sm { display: none; }
.tx-user a { color: var(--t1); font-weight: 600; }
.tx-user a:hover { color: var(--red-t); }
.tx-user .cell-sub { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.tx-day-row td { border-top: 0; padding: 18px 8px 8px; font-size: 12px; font-weight: 700; color: var(--t3); letter-spacing: .6px; text-transform: uppercase; }
.tx-day-row:first-child td { padding-top: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .editor-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .pv-hero { width: 168px; }
  .pv-card { width: 112px; }
  .user-grid { grid-template-columns: 320px minmax(0, 1fr); }
}

@media (max-width: 1024px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .editor-grid, .split, .split-wide, .user-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-col, .sticky { position: static; }
  .method-row { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr) auto; }
  .method-row .m-icon { grid-column: 2 / 4; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .mhead {
    display: flex; position: sticky; top: 0; z-index: 30; height: 60px; padding: 0 16px; align-items: center; gap: 12px;
    background: rgba(11, 10, 13, .94); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line);
  }
  .mhead-brand { display: inline-flex; align-items: center; gap: 10px; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 280px; max-width: 86vw; height: 100%; z-index: 40;
    transform: translateX(-102%); transition: transform .28s var(--ease); box-shadow: 20px 0 60px rgba(0, 0, 0, .5);
    visibility: hidden;
  }
  .shell.nav-open .sidebar { transform: none; visibility: visible; }
  .brand .nav-close { display: inline-flex; }
  .view { padding: 24px 20px 56px; }
  .jump { top: 60px; }
}

@media (max-width: 720px) {
  .g2, .g3, .cfg-grid { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cur-row { flex-wrap: wrap; }
  .cur-row .fields, .cur-row .fields.three { grid-template-columns: minmax(0, 1fr); flex-basis: calc(100% - 60px); }
  .cur-row .ctrls { margin-left: auto; }
  .up-fields { grid-template-columns: minmax(0, 1fr); }
  .media-grid { grid-template-columns: minmax(0, 1fr); }
  .up-row { grid-template-columns: 44px minmax(0, 1fr); }
  .up-row .ctrls { grid-column: 1 / -1; justify-content: flex-end; }
  .up-poster { width: 44px; height: 58px; }
  .method-row { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .method-row .m-sub, .method-row .m-icon { grid-column: 2 / 3; }
  .hide-md { display: none !important; }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .days .day.big { grid-column: span 4; flex-direction: row; justify-content: center; gap: 12px; }
}

@media (max-width: 600px) {
  .view { padding: 20px 16px 48px; }
  .topbar { gap: 12px; margin-bottom: 20px; }
  .topbar h1 { font-size: 20px; letter-spacing: -.4px; }
  .topbar-actions { width: 100%; }
  .topbar-actions .btn { flex: 1; }
  .topbar-actions .icon-btn + .btn, .topbar-actions .btn + .icon-btn { flex: none; }
  .card { padding: 16px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; gap: 10px; }
  .kpi-val { font-size: 20px; letter-spacing: -.5px; }
  .kpi.gold .kpi-val { font-size: 24px; }
  .kpi-ico { width: 30px; height: 30px; }
  .kpi-ico .ms { font-size: 18px; }
  .kpi-top { font-size: 12px; gap: 8px; }
  .chart { padding-left: 48px; height: 200px; }
  .chart-total { font-size: 16px; }
  .chart-gl { left: 48px; }
  .bar-col:nth-child(even) .bar-x { display: none; }
  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .s-card { padding: 8px; border-radius: 16px; gap: 8px; }
  .s-card-title { font-size: 14px; }
  .s-card .tags { display: none; }
  .search { max-width: none; min-width: 0; flex-basis: 100%; }
  .toolbar-chips { flex: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .toolbar-chips::-webkit-scrollbar { display: none; }
  .pub-label { font-size: 12px; }
  .s-card-meta { left: 8px; right: 8px; gap: 4px; }
  .hide-sm { display: none !important; }
  .show-sm { display: block; }
  .tx-table .cell-title.ellipsis { white-space: normal; overflow: visible; max-width: none !important; }
  .tx-table td:first-child { padding-left: 0; }
  .genre-grid, .pack-grid, .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .mini-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .balance .v { font-size: 20px; }
  .user-name { font-size: 18px; }
  .dialog-actions .btn { flex: 1; }
  .preview-stage { gap: 12px; }
  .ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ep-slot { padding: 10px; }
  .ep-drop { padding: 22px 14px; }
  .plan, .uq { padding: 12px; }
  .plan .table-wrap { margin: 0 -12px; padding: 0 12px; }
  .plan .table-wrap { overflow: visible; }
  .plan-table, .plan-table tbody { display: block; }
  .plan-table thead { display: none; }
  .plan-table tr { display: grid; grid-template-columns: minmax(0, 1fr) 72px 36px; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
  .plan-table td { padding: 0 !important; border: 0; }
  .plan-table td:nth-child(4) { grid-row: 2; grid-column: 1 / -1; }
  .plan-table td:nth-child(5) { grid-row: 1; grid-column: 3; }
  .plan-file { max-width: none; }
  .plan-n { width: 72px; }
  .plan-foot .btn { flex: 1; }
  .uq-head .btn { width: 100%; }
  .uq-name { display: none; }
  .pv-hero { width: 150px; }
  .pv-card { width: 104px; }
}

/* ---------- Studios ---------- */
.studio-mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font: 700 14px Unbounded, sans-serif; letter-spacing: -.3px; text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.studio-mark.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
.studio-mark.lg { width: 72px; height: 72px; border-radius: 20px; font-size: 24px; }
.nav-item .nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}
.dialog-form { max-width: 460px; }
.dialog-field { margin-top: 18px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--soft); cursor: pointer; line-height: 1.45; }
.check-row input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.split-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--s3); margin-top: 14px; }
.split-bar i { display: block; height: 100%; }
.split-bar .studio { background: var(--gold-grad); }
.split-bar .platform { background: var(--red); }
.split-legend { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--t2); }
.split-legend b { color: var(--t1); font-variant-numeric: tabular-nums; }
.review-card { border: 1px solid rgba(246, 185, 59, .28); background: linear-gradient(180deg, rgba(246, 185, 59, .07), transparent 60%), var(--s1); }
.film-row { display: flex; gap: 14px; align-items: center; }
.film-row .poster { width: 72px; flex: none; aspect-ratio: 3 / 4; border-radius: 10px; }
.film-row .film-title { font-weight: 700; font-size: 16px; }
.status-banner { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r16); margin-bottom: 16px; background: var(--s1); border: 1px solid var(--line2); }
.status-banner > .ms { font-size: 28px; flex: none; }
.status-banner.gold { border-color: rgba(246, 185, 59, .3); background: rgba(246, 185, 59, .07); }
.status-banner.gold > .ms { color: var(--gold); }
.status-banner.red { border-color: rgba(224, 40, 79, .3); background: rgba(224, 40, 79, .07); }
.status-banner.red > .ms { color: var(--red-t); }
.status-banner.green { border-color: rgba(61, 214, 140, .28); background: rgba(61, 214, 140, .06); }
.status-banner.green > .ms { color: var(--green); }
.status-banner .sb-title { font-weight: 700; font-size: 16px; }
.status-banner .sb-text { color: var(--soft); font-size: 14px; line-height: 1.55; margin-top: 4px; }
.status-banner .sb-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.ep-aud { display: flex; gap: 10px; font-size: 12px; color: var(--t2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.ep-aud .ms { font-size: 14px; vertical-align: -2px; margin-right: 2px; }
.apply-wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
.apply-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.apply-title { font: 700 26px/1.2 Unbounded, sans-serif; letter-spacing: -.6px; margin-top: 4px; }
.apply-sub { color: var(--t2); font-size: 15px; line-height: 1.55; margin-top: 8px; }
.apply-steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 8px; }
.file-pick { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r12); border: 1px dashed var(--line3); background: var(--s2); cursor: pointer; }
.file-pick:hover, .file-pick:focus-visible { border-color: var(--red); }
.file-pick .ms { font-size: 24px; color: var(--t2); }
.file-pick .fp-main { min-width: 0; flex: 1; }
.file-pick .fp-t { font-weight: 600; }
.file-pick .fp-s { font-size: 13px; color: var(--t2); margin-top: 2px; overflow-wrap: anywhere; }
.file-pick[aria-invalid="true"] { border-color: var(--red); background: rgba(224, 40, 79, .06); }
.done-card { text-align: center; padding: 40px 24px; }
.done-card > .ms { font-size: 48px; color: var(--green); }
@media (max-width: 640px) {
  .apply-wrap { padding: 20px 16px 48px; }
  .apply-title { font-size: 22px; }
  .film-row .poster { width: 56px; }
}

/* ---------- Studio portal: hero, KPIs, charts, wallet ---------- */
.studio-hero {
  position: relative; overflow: hidden; border-radius: var(--r24); padding: 24px; margin-bottom: 16px;
  background:
    radial-gradient(90% 140% at 0% 0%, oklch(0.45 0.15 var(--h, 350) / .55), transparent 62%),
    radial-gradient(70% 120% at 100% 100%, rgba(224, 40, 79, .16), transparent 60%),
    var(--s1);
  border: 1px solid var(--line2);
}
.studio-hero-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.studio-hero-name { font: 700 26px/1.15 Unbounded, sans-serif; letter-spacing: -.6px; overflow-wrap: anywhere; }
.studio-hero-hello { color: var(--soft); font-size: 14px; margin-bottom: 4px; }
.studio-hero-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.studio-hero-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 22px; border-radius: var(--r16); overflow: hidden; background: var(--line); }
.hero-stats > div { background: rgba(11, 10, 13, .55); padding: 14px 16px; backdrop-filter: blur(6px); }
.hero-stats b { display: block; font: 700 20px/1.2 Unbounded, sans-serif; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 12px; color: var(--t2); }
.kpi { position: relative; overflow: hidden; }
.kpi .spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42px; opacity: .9; pointer-events: none; }
.kpi.has-spark { padding-bottom: 40px; }
.delta { display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--s2); color: var(--t2); font-variant-numeric: tabular-nums; }
.delta .ms { font-size: 15px; }
.delta.up { background: var(--green-tint); color: var(--green); }
.delta.down { background: var(--red-tint); color: var(--red-t); }
.period { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.achart { position: relative; display: flex; flex-direction: column; padding-left: 52px; }
.achart-plot { position: relative; flex: 1; min-height: 0; cursor: crosshair; touch-action: pan-y; }
.achart-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.achart-gl { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(255, 255, 255, .07); }
.achart-gl span { position: absolute; right: calc(100% + 10px); top: -8px; font-size: 11px; font-weight: 600; color: var(--t3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.achart-x { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; font-weight: 600; color: var(--t3); font-variant-numeric: tabular-nums; }
.achart-x span { flex: 1; text-align: center; min-width: 0; }
.achart-x span:first-child { text-align: left; }
.achart-x span:last-child { text-align: right; }
.achart-cursor { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .18); pointer-events: none; }
.achart-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px rgba(0, 0, 0, .5), 0 0 14px var(--c); pointer-events: none; }
.achart-tip { position: absolute; padding: 8px 10px; border-radius: 10px; background: #242128; border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); pointer-events: none; white-space: nowrap; font-size: 12px; color: var(--t2); display: flex; flex-direction: column; gap: 2px; z-index: 2; }
.achart-tip b { color: var(--t1); font-size: 14px; font-variant-numeric: tabular-nums; }
.chart-head-val { font: 700 22px Unbounded, sans-serif; letter-spacing: -.5px; font-variant-numeric: tabular-nums; text-align: right; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.grid-2 > .span-all { grid-column: 1 / -1; }
.completion { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.completion .pbar { width: 64px; }
.top-ep { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.top-ep:last-child { border-bottom: 0; }
.top-ep .n { width: 22px; font: 800 15px Onest, sans-serif; color: var(--t3); text-align: center; flex: none; }
.top-ep .n.hot { color: var(--red-t); }

/* Wallet */
.wallet {
  position: relative; overflow: hidden; border-radius: var(--r24); padding: 24px;
  background: radial-gradient(90% 140% at 100% 0%, rgba(246, 185, 59, .28), transparent 60%), radial-gradient(70% 120% at 0% 100%, rgba(224, 40, 79, .14), transparent 60%), var(--s1);
  border: 1px solid rgba(246, 185, 59, .28);
}
.wallet-l { color: var(--soft); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.wallet-v { font: 700 40px/1.1 Unbounded, sans-serif; letter-spacing: -1.2px; color: var(--gold-t); margin-top: 10px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wallet-v small { font: 600 18px Onest, sans-serif; letter-spacing: 0; color: var(--soft); margin-left: 6px; }
.wallet-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.wallet-row > div { background: rgba(11, 10, 13, .45); border-radius: var(--r12); padding: 12px 14px; }
.wallet-row b { display: block; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.wallet-row span { font-size: 12px; color: var(--t2); }
.wallet-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.op-day { font-size: 13px; font-weight: 700; color: var(--t2); margin: 18px 0 6px; }
.op-day:first-child { margin-top: 4px; }
.op-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.op-row:last-child { border-bottom: 0; }
.op-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; }
.op-ico.in { background: var(--green-tint); color: var(--green); }
.op-ico.out { background: var(--gold-tint); color: var(--gold); }
.op-ico.wait { background: var(--s2); color: var(--soft); }
.op-ico.no { background: var(--red-tint); color: var(--red-t); }
.op-main { flex: 1; min-width: 0; }
.op-title { font-weight: 600; }
.op-sub { font-size: 13px; color: var(--t2); margin-top: 2px; overflow-wrap: anywhere; }
.op-amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.op-amt.in { color: var(--green); }
.op-amt.void { color: var(--t3); text-decoration: line-through; }
.side-balance {
  display: flex; flex-direction: column; gap: 2px; margin: 8px 12px 12px; padding: 12px 14px; border-radius: var(--r16);
  background: radial-gradient(100% 140% at 100% 0%, rgba(246, 185, 59, .2), transparent 60%), var(--s2); border: 1px solid rgba(246, 185, 59, .2);
  color: var(--t1); text-decoration: none;
}
.side-balance:hover { border-color: rgba(246, 185, 59, .45); }
.side-balance .sb-l { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--t2); font-weight: 600; }
.side-balance .sb-l .ms { font-size: 16px; color: var(--gold); }
.side-balance .sb-v { font: 700 18px Unbounded, sans-serif; letter-spacing: -.4px; color: var(--gold-t); font-variant-numeric: tabular-nums; }
.side-balance .sb-v small { font: 600 12px Onest, sans-serif; color: var(--t2); margin-left: 4px; letter-spacing: 0; }
.side-balance .sb-p { font-size: 11px; color: var(--t2); }
.amount-in { font: 700 22px Unbounded, sans-serif !important; letter-spacing: -.4px; height: 56px !important; }
.quick-amts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.req-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .studio-hero { padding: 18px; }
  .studio-hero-name { font-size: 21px; }
  .studio-hero-actions { margin-left: 0; width: 100%; }
  .wallet-v { font-size: 30px; }
  .wallet-row { grid-template-columns: minmax(0, 1fr); }
  .req-grid { grid-template-columns: minmax(0, 1fr); }
  .achart { padding-left: 44px; }
}
.top-ep .list-sub .ms, .hero-stats b .ms { font-size: 14px; vertical-align: -2px; }
.hero-stats b .ms { font-size: 18px; }

/* ---------- Studio tools: bell, notifications, statements, team, promo ---------- */
.bell { position: relative; margin-left: auto; }
.bell[data-count]:not([data-count=""])::after {
  content: attr(data-count); position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.note-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.note-row:last-child { border-bottom: 0; }
.note-row.unread .note-t::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 1px; }
.note-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--s2); color: var(--soft); }
.note-ico.green { background: var(--green-tint); color: var(--green); }
.note-ico.red { background: var(--red-tint); color: var(--red-t); }
.note-ico.gold { background: var(--gold-tint); color: var(--gold); }
.note-t { font-weight: 700; }
.note-b { color: var(--soft); font-size: 14px; margin-top: 2px; line-height: 1.5; }
.note-m { font-size: 12px; color: var(--t3); margin-top: 4px; }
.statement { background: #fff; color: #111; border-radius: var(--r16); padding: 32px; font-size: 13px; line-height: 1.5; }
.statement h2 { font: 700 18px Onest, sans-serif; text-align: center; margin: 0 0 4px; }
.statement .st-sub { text-align: center; color: #555; margin-bottom: 20px; }
.statement table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; }
.statement th, .statement td { border: 1px solid #c9c9c9; padding: 6px 8px; text-align: left; vertical-align: top; }
.statement th { background: #f1f1f1; font-weight: 700; }
.statement td.r, .statement th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.statement .st-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 12px; }
.statement .st-sign { margin-top: 40px; border-top: 1px solid #333; padding-top: 4px; font-size: 12px; color: #444; }
.statement .st-total { font-weight: 700; background: #fafafa; }
.statement h3 { font: 700 14px Onest, sans-serif; margin: 18px 0 4px; }
.member-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.member-row:last-child { border-bottom: 0; }
.cover-pv { position: relative; height: 150px; border-radius: var(--r16); overflow: hidden; background-size: cover; background-position: center; border: 1px solid var(--line2); }
.cover-pv .studio-mark, .cover-pv .logo-img { position: absolute; left: 16px; bottom: -0px; }
.logo-img { width: 72px; height: 72px; border-radius: 20px; object-fit: cover; border: 2px solid rgba(255, 255, 255, .15); background: var(--s2); }
.studio-mark.has-img { background-size: cover !important; background-position: center !important; color: transparent; text-shadow: none; }
.hist { display: flex; align-items: flex-end; gap: 4px; height: 120px; margin-top: 8px; }
.hist > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.hist i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #FF5C7A, #E0284F); min-height: 2px; }
.hist span { font-size: 11px; color: var(--t3); font-variant-numeric: tabular-nums; }
.share-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.share-row .pbar { flex: 1; }
.share-row b { width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.share-row span:first-child { width: 120px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-tag { display: inline-flex; }
.sched-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sched-list .tag { font-variant-numeric: tabular-nums; }
@media print {
  body { background: #fff !important; }
  .sidebar, .mhead, .topbar, .no-print, .toasts, .scrim { display: none !important; }
  .shell, .main, .view { display: block !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .statement { border-radius: 0; padding: 0; }
}
