:root {
  --ph-teal: #0f766e;
  --ph-teal-dark: #0b5f59;
  --ph-teal-soft: #d9f3ef;
  --ph-bg: #e6ebf2;
  --ph-bg-mid: #eef2f7;
  --ph-bg-deep: #d5dde8;
  --ph-surface: #fff;
  --ph-ink: #132033;
  --ph-muted: #5a6b7c;
  --ph-line: #c5d0de;
  --ph-radius: 14px;
  --ph-font: "Source Sans 3", "Segoe UI", sans-serif;
  --ph-sidebar-w: 250px;
  --ph-glow-a: rgba(37, 99, 235, .12);
  --ph-glow-b: rgba(15, 118, 110, .10);
  --op-teal: #0d8a74;
  --op-teal-dark: #0a6b5a;
  --op-teal-soft: #e7f6f2;
  --op-ink: #1f2d3d;
  --op-muted: #6b7c85;
  --op-line: #e3eaee;
}
html[data-ph-theme="ocean"], body[data-ph-theme="ocean"] {
  --ph-teal: #0369a1; --ph-teal-dark: #075985; --ph-teal-soft: #d7ebf8;
  --op-teal: #0369a1; --op-teal-dark: #075985; --op-teal-soft: #d7ebf8;
  --ph-glow-a: rgba(3, 105, 161, .16);
}
html[data-ph-theme="forest"], body[data-ph-theme="forest"] {
  --ph-teal: #166534; --ph-teal-dark: #14532d; --ph-teal-soft: #d9f0e1;
  --op-teal: #166534; --op-teal-dark: #14532d; --op-teal-soft: #d9f0e1;
}
html[data-ph-theme="sunset"], body[data-ph-theme="sunset"] {
  --ph-teal: #b45309; --ph-teal-dark: #92400e; --ph-teal-soft: #f6e6d4;
  --op-teal: #b45309; --op-teal-dark: #92400e; --op-teal-soft: #f6e6d4;
}
html[data-ph-theme="slate"], body[data-ph-theme="slate"] {
  --ph-teal: #334155; --ph-teal-dark: #1e293b; --ph-teal-soft: #e2e8f0;
  --op-teal: #334155; --op-teal-dark: #1e293b; --op-teal-soft: #e2e8f0;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.ph-body.is-studio { height: 100%; overflow: hidden; }
html.ph-body, body.ph-body {
  background-color: var(--ph-bg) !important;
  background-image:
    radial-gradient(900px 420px at 0% 0%, var(--ph-glow-a), transparent 55%),
    radial-gradient(800px 380px at 100% 0%, var(--ph-glow-b), transparent 50%),
    linear-gradient(180deg, var(--ph-bg-mid) 0%, var(--ph-bg) 45%, var(--ph-bg-deep) 100%) !important;
  background-attachment: fixed !important;
  color: var(--ph-ink);
  font-family: var(--ph-font);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
ion-icon { display: inline-block; vertical-align: -0.15em; pointer-events: none; width: 1em; height: 1em; }

.login-shell {
  min-height: 100dvh;
  display: grid; place-items: center;
  padding: 24px;
}
.login-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--op-line);
  border-radius: 22px;
  padding: 36px 32px 28px;
  box-shadow: 0 18px 40px rgba(15, 40, 50, .08);
}
.login-mark {
  width: 64px; height: 64px; object-fit: cover; border-radius: 50%; margin-bottom: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}
.login-word { height: 26px; width: auto; max-width: 180px; margin-bottom: 14px; }
.login-card h1 { font-size: 26px; letter-spacing: -.02em; color: var(--op-ink); }
.login-card .lede { color: var(--op-muted); margin: 8px 0 22px; line-height: 1.45; }
#loginForm { display: grid; gap: 12px; }
#loginForm .btn-op { justify-self: start; }
.login-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--op-teal); margin-bottom: 8px;
}

.ph-shell { display: block; min-height: 100vh; }
body.ph-body.is-studio .ph-shell { height: 100vh; overflow: hidden; }
.ph-sidebar {
  width: var(--ph-sidebar-w);
  background: linear-gradient(180deg, #0b1220 0%, #111827 42%, #0f172a 100%);
  color: #e5e7eb;
  display: flex; flex-direction: column;
  padding: 8px 8px 8px;
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 50;
  border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: 4px 0 24px rgba(15, 23, 42, .12);
  overflow: hidden;
  transition: transform .2s ease;
}
.ph-sidebar::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--ph-teal) 0%, #14b8a6 45%, transparent 100%);
  pointer-events: none;
}
.ph-sidebar .brand {
  display: flex; align-items: center; gap: 10px;
  margin: 0 4px 6px; padding: 8px 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex: 0 0 auto;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
  background: #000;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
  overflow: hidden;
}
.brand-mark img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: .9rem; font-weight: 800; color: #f8fafc; line-height: 1.15; }
.brand-sub { font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }
.ph-side-nav {
  display: flex; flex-direction: column; gap: 1px;
  flex: 1 1 auto; min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 4px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,.7) transparent;
}
.ph-side-nav::-webkit-scrollbar { width: 8px; }
.ph-side-nav::-webkit-scrollbar-track { background: transparent; }
.ph-side-nav::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,.45);
  border-radius: 99px;
}
.ph-nav-label {
  display: flex; align-items: center; gap: 6px;
  margin: 8px 6px 4px;
  font-size: .64rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #5eead4;
}
.ph-nav-label:first-child { margin-top: 2px; }
.ph-nav-label ion-icon { font-size: .9rem; }
.vid-audit { margin: 4px 0 0; color: var(--op-muted); font-size: 12px; font-weight: 700; }
.vid-audit a { color: var(--op-teal-dark); }
.talent-preview { margin: 4px 0 14px; }
.talent-preview > p { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pay-mute); }
.tp-hero { position: relative; min-height: 168px; border-radius: 16px; overflow: hidden; background: #12141b; color: #fff; }
.tp-cover { position: absolute; inset: 0; background: linear-gradient(160deg, #243044, #12141b); }
.tp-cover img { width: 100%; height: 100%; object-fit: cover; }
.tp-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,16,20,.12), rgba(15,16,20,.88)); }
.tp-face { position: relative; z-index: 1; display: grid; place-items: center; width: 72px; height: 96px; margin: 18px 0 0 16px; border-radius: 12px; overflow: hidden; border: 2px solid rgba(232,195,74,.75); background: #1c1e27; }
.tp-face img { width: 100%; height: 100%; object-fit: cover; }
.tp-dots { position: absolute; left: 0; right: 0; bottom: 5px; z-index: 2; display: flex; justify-content: center; gap: 3px; }
.tp-dots b { width: 4px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.5); }
.tp-dots b.on { width: 10px; background: #fff; }
.tp-face b { font-size: 28px; font-weight: 800; color: #f4e19a; }
.tp-copy { position: relative; z-index: 1; padding: 10px 16px 16px; }
.tp-copy strong { display: block; font-size: 22px; line-height: 1.1; }
.tp-copy em { display: block; margin-top: 4px; font-style: normal; font-weight: 700; color: #f4e19a; }
.tp-copy small { display: block; margin-top: 4px; color: rgba(255,255,255,.72); font-size: 12px; }
.login-table { min-width: 860px; }
.sub-master { min-width: 3200px; }
.sub-master td, .sub-master th { white-space: nowrap; }
.sub-master th:first-child,
.sub-master td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 8px 0 12px -10px rgba(15,27,42,.35); }
.sub-master th:first-child { z-index: 3; background: #f8f9fb; }
.sub-master tbody tr:hover td:first-child { background: #f6fbfa; }
.sub-actions { display: flex; align-items: center; gap: 10px; }
.sub-refresh {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border: 1px solid #d5ebe7; border-radius: 12px; background: #fff; color: #0f766e;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.sub-refresh:hover { background: #f3fbf9; }
.sub-refresh ion-icon { font-size: 18px; }
#panel-subscribers .pay-tabs { flex-wrap: nowrap; }
#panel-subscribers .pay-who .pay-sub { display: block; }
.login-table small { display: block; margin-top: 3px; color: var(--pay-mute); font-size: 12px; font-weight: 600; }
.login-table small a { color: var(--pay-brand); font-weight: 700; }
.login-list { display: grid; gap: 10px; margin-top: 12px; }
.login-row {
  display: grid; gap: 8px 16px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--op-line); border-radius: 16px;
}
.login-row strong { display: block; }
.login-row p { margin: 3px 0 0; color: var(--op-muted); font-size: 13px; }
@media (min-width: 860px) { .login-row { grid-template-columns: 1.1fr .9fr 1.4fr; align-items: start; } }
.nav-ico[hidden], .ph-nav-label[hidden] { display: none !important; }
.nav-ico {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left; padding: 7px 10px; border-radius: 10px;
  color: #cbd5e1; font-weight: 650; font-size: .86rem;
  position: relative; flex: 0 0 auto;
  line-height: 1.2;
}
.nav-ico span { min-width: 0; white-space: nowrap; overflow: visible; }
.nav-ico ion-icon { font-size: 1.05rem; color: #94a3b8; flex: 0 0 auto; }
.nav-ico:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-ico.on {
  background: rgba(5, 150, 105, .24);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .35);
  color: #f0fdfa; font-weight: 700;
}
.nav-ico.on::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
  border-radius: 0 3px 3px 0; background: #34d399;
}
.nav-ico.on ion-icon { color: #6ee7b7; }
.ph-side-foot {
  flex: 0 0 auto;
  padding: 8px 4px 2px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, transparent, rgba(15,23,42,.88) 18%);
}
.nav-logout { color: #fda4af; }
.nav-logout ion-icon { color: #fda4af; }

html.ph-sidebar-collapsed, body.ph-sidebar-collapsed { --ph-sidebar-w: 0px; }
html.ph-sidebar-collapsed .ph-sidebar, body.ph-sidebar-collapsed .ph-sidebar {
  transform: translateX(-100%); pointer-events: none;
}

.ph-mnavbar {
  position: fixed; top: 0; left: var(--ph-sidebar-w); right: 0; z-index: 45;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  height: 46px; padding: 0 12px;
  background: linear-gradient(90deg, #0b3d91 0%, #1565c0 55%, #1976d2 100%);
  color: #fff; box-shadow: 0 2px 10px rgba(11, 61, 145, .28);
  transition: left .2s ease;
}
.ph-mnav-left, .ph-mnav-center, .ph-mnav-right { display: flex; align-items: center; min-width: 0; }
.ph-mnav-left { gap: 8px; }
.ph-mnav-center { flex: 1; justify-content: center; font-weight: 800; letter-spacing: .02em; gap: 8px; }
.ph-mnav-right { gap: 8px; }
.ph-mnav-burger, .ph-mnav-ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
}
.ph-mnav-burger:hover, .ph-mnav-ico:hover { background: rgba(255,255,255,.2); }
.ph-mnav-help {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; opacity: .92;
}
.ph-user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; height: 32px; padding: 0 10px 0 4px;
  max-width: 180px;
}
.ph-user-av {
  width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #0b3d91;
  display: grid; place-items: center; font-size: .7rem; font-weight: 800;
}
.ph-user-meta { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.ph-user-meta strong { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-user-meta small { font-size: .58rem; opacity: .8; text-transform: uppercase; letter-spacing: .04em; }
.op-theme-picker { display: flex; align-items: center; gap: 6px; }
.op-theme-swatch {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.op-theme-swatch.t-teal { background: #0f766e; }
.op-theme-swatch.t-ocean { background: #0369a1; }
.op-theme-swatch.t-forest { background: #166534; }
.op-theme-swatch.t-sunset { background: #b45309; }
.op-theme-swatch.t-slate { background: #334155; }
.op-theme-swatch.on { box-shadow: 0 0 0 2px #fff; }

.ph-main {
  margin-left: var(--ph-sidebar-w);
  padding: 64px 20px 48px;
  transition: margin-left .2s ease;
  min-height: 100vh;
}
body.ph-body.is-studio .ph-main {
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.op-dash-hero {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; flex-wrap: wrap; overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 42%, transparent 78%),
    linear-gradient(135deg, #fff 0%, var(--op-teal-soft) 100%);
  border: 1px solid var(--op-line);
  border-radius: 22px;
  padding: 26px 28px 24px;
  box-shadow: 0 18px 40px rgba(15, 40, 50, .06);
  margin-bottom: 22px;
}
.op-dash-hero-art {
  position: absolute; right: -40px; top: -50px; width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 55%),
              radial-gradient(circle at 70% 60%, var(--op-teal), transparent 62%);
  opacity: .18; pointer-events: none;
}
.op-dash-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--op-teal); margin-bottom: 8px;
}
.op-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22,163,74,.45);
  animation: opPulse 1.8s ease infinite;
}
@keyframes opPulse {
  0% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); }
  70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
.op-dash-title {
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  font-weight: 700; letter-spacing: -.015em; color: var(--op-ink);
  margin: 0 0 8px; max-width: 24ch; line-height: 1.25;
}
.op-dash-sub { color: var(--op-muted); font-size: .98rem; max-width: 520px; margin: 0 0 14px; }
.op-dash-sub strong { color: var(--op-ink); }
.op-dash-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.op-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--op-line);
  border-radius: 999px; padding: .35rem .7rem;
  font-size: .75rem; font-weight: 600; color: var(--op-ink);
}
.op-chip ion-icon { color: var(--op-teal); }
.op-chip-soft { background: var(--op-teal-soft); border-color: transparent; color: var(--op-teal-dark); }
.op-dash-hero-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  position: relative; z-index: 1;
}

.op-section { margin-bottom: 22px; }
.op-section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 12px; }
.op-section-kicker {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--op-teal); margin-bottom: 2px;
}
.op-section-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }

.op-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.op-kpi {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--op-line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(15,40,50,.045);
  position: relative; overflow: hidden;
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.op-kpi:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(15,40,50,.08); }
.op-kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--op-teal);
}
.op-kpi.k-waiting::before { background: #f59e0b; }
.op-kpi.k-ongoing::before { background: #0284c7; }
.op-kpi.k-done::before { background: #16a34a; }
.op-kpi.k-fee::before { background: #b45309; }
.op-kpi.k-rate::before { background: #0ea5e9; }
.op-kpi-icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--op-teal-soft); color: var(--op-teal); font-size: 1.15rem;
}
.op-kpi.k-waiting .op-kpi-icon { background: #fff7ed; color: #c2410c; }
.op-kpi.k-ongoing .op-kpi-icon { background: #e0f2fe; color: #0369a1; }
.op-kpi.k-done .op-kpi-icon { background: #dcfce7; color: #15803d; }
.op-kpi.k-fee .op-kpi-icon { background: #ffedd5; color: #b45309; }
.op-kpi.k-rate .op-kpi-icon { background: #e0f2fe; color: #0284c7; }
.op-kpi-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--op-muted); }
.op-kpi-value { font-size: 1.55rem; font-weight: 700; line-height: 1.15; color: var(--op-ink); margin: 3px 0; }
.op-kpi-foot { font-size: .72rem; color: var(--op-muted); }

.quick-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.quick-card {
  background: #fff; border: 1px solid var(--op-line); border-radius: 16px;
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 8px 24px rgba(15, 40, 50, .05);
}
.quick-card ion-icon { font-size: 1.35rem; color: var(--op-teal); }
.quick-card strong { font-size: .95rem; }
.quick-card span { color: var(--op-muted); font-size: .8rem; line-height: 1.35; }

.op-card {
  background: #fff;
  border: 1px solid var(--op-line);
  border-radius: var(--ph-radius);
  box-shadow: 0 8px 24px rgba(15, 40, 50, .05);
  padding: 22px;
  max-width: 860px;
}
.op-card h2 { font-size: 1.05rem; font-weight: 700; color: var(--op-ink); }
.reel-how {
  display: grid; gap: 10px; max-width: 860px; margin: 0 0 14px;
}
@media (min-width: 720px) { .reel-how { grid-template-columns: repeat(3, 1fr); } }
.reel-how article {
  background: #fff; border: 1px solid var(--op-line); border-radius: 16px; padding: 14px 16px;
  display: grid; gap: 4px; box-shadow: 0 8px 24px rgba(15, 40, 50, .05);
}
.reel-how b { color: var(--op-ink); font-size: .92rem; }
.reel-how span { color: var(--op-muted); font-size: .8rem; line-height: 1.4; }
.reel-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px;
}
.reel-card {
  background: #f8fafc; border: 1px solid var(--op-line); border-radius: 16px; padding: 8px;
  display: grid; gap: 6px;
}
.reel-card-shot { position: relative; border-radius: 12px; overflow: hidden; background: #0f1014; }
.reel-card-shot img { width: 100%; aspect-ratio: 9/14; object-fit: cover; display: block; }
.reel-card-shot span {
  position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.55); color: #fff;
  font-size: 10px; font-weight: 800; border-radius: 999px; padding: 3px 8px;
}
.reel-queue { display: grid; gap: 10px; margin-top: 12px; }
.reel-row {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center;
  background: #f8fafc; border: 1px solid var(--op-line); border-radius: 14px; padding: 10px;
}
@media (min-width: 860px) {
  .reel-row { grid-template-columns: 72px 1fr auto; }
}
.reel-row img { width: 72px; height: 96px; object-fit: cover; border-radius: 10px; background: #0f1014; }
.reel-row strong { display: block; font-size: 15px; line-height: 1.3; }
.reel-row p { margin: 4px 0; color: var(--op-muted); font-size: 13px; }
.reel-row .item-actions { flex-wrap: wrap; }
.reel-badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; border-radius: 999px; padding: 3px 8px;
}
.reel-badge.is-pending { background: #fef3c7; color: #92400e; }
.reel-badge.is-approved { background: #d1fae5; color: #065f46; }
.reel-badge.is-rejected { background: #fee2e2; color: #991b1b; }
.reel-card strong { font-size: 13px; line-height: 1.3; }
.reel-card small { color: var(--op-muted); font-size: 11px; }
.panel { display: none !important; }
.panel.on { display: block !important; }

.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 12px; font-weight: 700; color: var(--op-muted); letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; background: #f8fafc; border: 1px solid var(--op-line); border-radius: 12px;
  padding: 11px 13px; outline: none; color: var(--op-ink);
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--op-teal); background: #fff; }
.row2 { display: grid; gap: 12px; }
@media (min-width: 720px) { .row2 { grid-template-columns: 1fr 1fr; } }
.checks { display: grid; gap: 10px; }
@media (min-width: 720px) { .checks { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 720px) { .checks.pair { grid-template-columns: 1fr 1fr; } }
.ad-rules { margin: 4px 0 12px; }
.ad-rules > p {
  margin: 14px 0 8px; font-weight: 800; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--op-muted);
}
.ad-rules > p:first-child { margin-top: 8px; }
.field-note { margin: -6px 0 12px; color: var(--op-muted); font-size: 12px; line-height: 1.45; }
.pin-box {
  background: #f8fafc; border: 1px solid var(--op-line); border-radius: 16px;
  padding: 14px 16px; margin: 0 0 16px;
}
.check {
  display: flex; align-items: center; gap: 10px;
  background: #f8fafc; border: 1px solid var(--op-line); border-radius: 12px;
  padding: 12px 14px; font-weight: 700; font-size: 13px;
}
.check input { width: 16px; height: 16px; accent-color: var(--op-teal); }
.access-board { display: grid; gap: 16px; }
.access-group {
  background: #f8fafc;
  border: 1px solid var(--op-line);
  border-radius: 18px;
  padding: 12px;
}
.access-head {
  display: flex; align-items: center; gap: 10px;
  margin: 2px 4px 10px;
}
.access-head strong {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--op-ink);
}
.access-head [data-access-count] {
  margin-left: auto; font-size: 11px; font-weight: 800; color: var(--op-muted);
}
.access-head button {
  border: 0; background: #fff; color: var(--op-teal-dark);
  border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 800;
  box-shadow: inset 0 0 0 1px var(--op-line); cursor: pointer;
}
.access-head button:hover { background: var(--op-teal); color: #fff; }
.access-grid { display: grid; gap: 10px; }
@media (min-width: 720px) { .access-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .access-grid { grid-template-columns: 1fr 1fr 1fr; } }
.access-switch { position: relative; display: block; cursor: pointer; }
.access-switch input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.access-face {
  display: flex; align-items: center; gap: 12px; min-height: 72px;
  background: #fff; border: 1px solid var(--op-line); border-radius: 16px;
  padding: 12px 14px;
  transition: border-color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
}
.access-switch:hover .access-face {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}
.access-knob {
  width: 44px; height: 26px; border-radius: 999px; background: #e2e8f0;
  position: relative; flex: none; transition: background .25s ease;
}
.access-knob::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .18);
  transition: transform .32s cubic-bezier(.34, 1.56, .64, 1);
}
.access-ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: #f1f5f9; color: #64748b;
  transition: background .22s ease, color .22s ease, transform .32s cubic-bezier(.34, 1.56, .64, 1);
}
.access-ico ion-icon { font-size: 18px; }
.access-copy { display: grid; gap: 2px; min-width: 0; }
.access-copy b { font-size: 14px; line-height: 1.2; }
.access-copy small { color: var(--op-muted); font-size: 12px; font-weight: 600; line-height: 1.3; }
.access-switch input:checked + .access-face {
  border-color: var(--op-teal);
  background: linear-gradient(160deg, #fff 0%, var(--op-teal-soft) 100%);
  box-shadow: 0 0 0 3px rgba(13, 138, 116, .12);
}
.access-switch input:checked + .access-face .access-knob { background: var(--op-teal); }
.access-switch input:checked + .access-face .access-knob::after { transform: translateX(18px); }
.access-switch input:checked + .access-face .access-ico {
  background: var(--op-teal); color: #fff; transform: scale(1.06);
}
.access-switch input:focus-visible + .access-face { outline: 2px solid var(--op-teal); outline-offset: 2px; }
.desk-card {
  display: grid; gap: 14px;
  border: 1px solid var(--op-line); border-radius: 18px;
  padding: 16px; margin-bottom: 14px; background: #fff;
}
.desk-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; cursor: pointer; }
.desk-card-top strong { font-size: 16px; }
.desk-card-top span { color: var(--op-muted); font-size: 12px; font-weight: 700; }
.desk-card > form { display: grid; gap: 14px; margin-top: 12px; }
.access-head { cursor: pointer; list-style: none; }
.access-head::-webkit-details-marker { display: none; }
.org-chain {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin: 0 0 16px; padding: 0; list-style: none;
}
.org-chain li {
  background: #fff; border: 1px solid var(--op-line); border-radius: 16px;
  padding: 14px 16px; box-shadow: 0 1px 2px rgba(15, 27, 42, .04);
}
.org-chain b { display: block; font-size: 14px; }
.org-chain span { display: block; margin-top: 4px; color: var(--op-muted); font-size: 12.5px; line-height: 1.4; }
.org-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.org-tabs button {
  border: 1px solid var(--op-line); background: #fff; color: var(--op-ink);
  border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 800;
}
.org-tabs button.on { background: #0f766e; border-color: #0f766e; color: #fff; }
.org-pane { max-width: 920px; }
.org-pane .op-card { max-width: none; }
#panel-admins [hidden] { display: none !important; }
#panel-admins .op-card { max-width: none; }
.access-face, .access-copy { min-width: 0; }
.org-lead { margin: 0 0 4px; color: var(--op-ink); }
.org-jobs { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .org-jobs { grid-template-columns: 1fr; } }
.org-jobs label { display: block; cursor: pointer; }
.org-jobs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.org-jobs span {
  display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--op-line); background: #fff;
}
.org-jobs b { font-size: 14px; }
.org-jobs small { color: var(--op-muted); font-weight: 650; }
.org-jobs input:checked + span { border-color: var(--op-teal); background: var(--op-teal-soft); box-shadow: 0 0 0 3px rgba(13, 138, 116, .12); }
.org-jobs input:focus-visible + span { outline: 2px solid var(--op-teal); outline-offset: 2px; }
.org-bureau { border: 1px solid var(--op-line); border-radius: 16px; padding: 12px; margin-top: 12px; background: #f8fafc; }
.org-bureau-head, .org-person-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.org-bureau-head span, .org-person small { color: var(--op-muted); font-size: 12px; font-weight: 700; }
.org-team { display: grid; gap: 8px; margin-top: 10px; }
.org-person { background: #fff; border: 1px solid var(--op-line); border-radius: 12px; padding: 10px 12px; }
.org-person.is-off { background: #f8fafc; }
.org-person.is-off b { color: #64748b; }
.org-person b { font-size: 14px; }
.org-person-side, .org-tools { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.org-act {
  height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid #d7dee6;
  background: #fff; color: #0f1b2a; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
}
.org-act:hover { border-color: #0f766e; color: #0f766e; }
.org-edit { display: grid; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--op-line); }
.org-pill.is-on { background: #e4f6ee; color: #0f9d6b; }
.org-pill.is-off { background: #fdece6; color: #dc4a26; }
.org-pill {
  font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #eef2f6; color: #475569;
}
.org-pill.is-bureau { background: #e7f6f2; color: #0a6b5a; }
.org-pill.is-reporter { background: #e8f1fb; color: #1d4e89; }
.org-pill.is-admin { background: #f8efe2; color: #92400e; }
.org-kicker { margin: 18px 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--op-muted); }
@media (max-width: 980px) {
  .org-chain, .org-layout { grid-template-columns: 1fr; }
  .org-create { position: static; }
}
.drop {
  border: 1px dashed rgba(13, 138, 116, .35);
  background: var(--op-teal-soft);
  border-radius: 16px; padding: 16px;
}
.drop strong { display: block; margin-bottom: 6px; }
.drop span { color: var(--op-muted); font-size: 13px; }
.err { color: #dc2626; min-height: 18px; font-size: 13px; margin: 4px 0 0; }
.ok { color: #15803d; }
.up-progress {
  margin: 12px 0 8px;
  background: #f8fafc;
  border: 1px solid var(--op-line);
  border-radius: 14px;
  padding: 12px 14px;
}
.up-progress[hidden] { display: none !important; }
.up-progress-bar {
  height: 10px; border-radius: 99px; background: #e2e8f0; overflow: hidden;
}
.up-progress-bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--op-teal), var(--op-teal-dark));
  transition: width .12s linear;
}
.up-progress-label {
  margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--op-ink);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.up-progress-label strong { color: var(--op-teal); font-variant-numeric: tabular-nums; }
.hint { color: var(--op-muted); font-size: 12px; margin-top: 16px; text-align: center; }
.hint a, .login-card .hint a { color: var(--op-teal); font-weight: 700; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 72px; width: 100%; }
.pass-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--op-muted); font-size: 12px; font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 8px 18px; font-weight: 800;
  min-height: 40px; height: 40px; width: auto; white-space: nowrap;
}
.btn.gold, .btn-op {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: auto; min-width: 0; height: 40px; min-height: 40px;
  padding: 8px 20px; justify-self: start; white-space: nowrap;
  background: linear-gradient(180deg, var(--op-teal), var(--op-teal-dark));
  color: #fff; box-shadow: 0 8px 16px rgba(13, 138, 116, .18);
}
.btn-op-soft {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: var(--op-teal-dark);
  border: 1px solid var(--op-line); font-weight: 700;
  padding: 8px 16px; border-radius: 10px;
  width: auto; min-width: 0; min-height: 40px; height: 40px;
  justify-self: start; white-space: nowrap;
}
.btn-op-soft:hover { background: #d8f3ec; }
.btn.danger { background: #fee2e2; color: #b91c1c; padding: 8px 12px; width: auto; height: auto; min-height: 36px; }
.btn-op-hero { padding: 8px 18px; width: auto; min-width: 0; }
.btn-op.is-busy, .btn.is-busy, .btn-op-soft.is-busy {
  pointer-events: none;
  opacity: .88;
}
.btn-spin-dot {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin .7s linear infinite;
  flex-shrink: 0;
}
.btn-op-soft.is-busy .btn-spin-dot,
.btn.ghost.is-busy .btn-spin-dot,
.btn.danger.is-busy .btn-spin-dot {
  border-color: rgba(13, 138, 116, .28);
  border-top-color: var(--op-teal-dark);
}
.btn-spin, .is-busy ion-icon {
  animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.list { display: grid; gap: 10px; margin-top: 18px; }
.vid-row {
  display: grid; grid-template-columns: 72px 92px minmax(0, 1fr) auto;
  gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--op-line); border-radius: 16px; padding: 10px 12px;
}
.vid-order { display: grid; gap: 2px; justify-items: center; margin: 0; }
.vid-order span {
  font-size: 10px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--op-muted);
}
.vid-order input {
  width: 64px; height: 40px; text-align: center; font-weight: 800; font-size: 16px;
  border-radius: 12px; border: 1px solid var(--op-line); background: #f8fafc; color: var(--op-ink);
}
.vid-row img, .vid-row .item-mark { width: 92px; height: 52px; object-fit: cover; border-radius: 10px; }
.vid-play {
  position: relative; padding: 0; border: 0; background: transparent;
  width: 92px; height: 52px; border-radius: 10px; overflow: hidden; cursor: pointer;
}
.vid-play img, .vid-play .item-mark { width: 100%; height: 100%; display: block; }
.vid-play-ico {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(15, 23, 42, .28); color: #fff; font-size: 1.35rem;
  opacity: 0; transition: opacity .15s ease;
}
.vid-play:hover .vid-play-ico, .vid-play:focus-visible .vid-play-ico { opacity: 1; }
.play-modal {
  position: fixed; inset: 0; z-index: 2100;
  display: grid; place-items: center; padding: 18px;
  background: rgba(10, 18, 32, .72);
  backdrop-filter: blur(6px);
}
.play-modal[hidden] { display: none !important; }
.play-modal-card {
  width: min(920px, 100%);
  background: #0f172a; color: #fff;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.play-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 14px 16px 10px;
}
.play-modal-kicker {
  margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.62);
}
.play-modal-head h2 { margin: 2px 0 0; font-size: 1.05rem; font-weight: 800; }
.play-modal-close {
  width: 32px; height: 32px; border: 0; border-radius: 999px; cursor: pointer; flex: 0 0 auto;
  background: rgba(255,255,255,.14) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center / .55rem no-repeat;
}
.play-modal-close:hover { background-color: rgba(255,255,255,.28); }
.play-modal video {
  display: block; width: 100%; max-height: min(72vh, 640px); background: #000;
}
.play-modal-note {
  margin: 0; padding: 28px 18px 32px; text-align: center; color: rgba(255,255,255,.86); font-weight: 650;
}
.play-modal-note[hidden] { display: none !important; }
body.play-open { overflow: hidden; }
.vid-copy { min-width: 0; }
.vid-copy strong { display: block; font-size: 15px; line-height: 1.3; }
.vid-copy p { margin: 3px 0 0; color: var(--op-muted); font-size: 12px; line-height: 1.4; }
.vid-row .item-actions { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) {
  .vid-row { grid-template-columns: 64px 72px minmax(0, 1fr); }
  .vid-row .item-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .vid-play, .vid-row img, .vid-row .item-mark { width: 72px; }
}
.item {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center;
  background: #f8fafc; border: 1px solid var(--op-line); border-radius: 14px; padding: 10px 12px;
}
.item.cat-row { grid-template-columns: 64px 52px minmax(0, 1fr) auto; }
.item.cat-row .item-actions { flex-wrap: wrap; justify-content: flex-end; }
#panel-category .vid-order input { width: 56px; height: 40px; border-radius: 11px; font-size: 15px; background: #fff; }
@media (max-width: 860px) {
  .item.cat-row { grid-template-columns: 64px 52px minmax(0, 1fr); }
  .item.cat-row .item-actions { grid-column: 1 / -1; }
}
.item.wide { grid-template-columns: 92px 1fr auto; }
.item img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: #e2e8f0; }
.item-mark {
  width: 52px; height: 52px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
  background: #0f766e; color: #fff; font-weight: 800; font-size: 18px;
}
.item-mark[data-mark="T"], .item-mark[data-mark="W"] { background: #0369a1; }
.item-mark[data-mark="S"], .item-mark[data-mark="D"] { background: #b45309; }
.item-mark[data-mark="C"], .item-mark[data-mark="B"] { background: #7c3aed; }
.item-mark[data-mark="R"], .item-mark[data-mark="H"] { background: #be123c; }
.item.wide img { width: 92px; height: 52px; }
.now-ad { margin-bottom: 12px; border-radius: 14px; overflow: hidden; border: 1px solid var(--op-line); background: #0f172a; }
.now-ad img { width: 100%; max-height: 160px; object-fit: cover; display: block; }
.item p { color: var(--op-muted); font-size: 12px; }
.tag {
  display: inline-block; margin-right: 6px;
  background: var(--op-teal-soft); color: var(--op-teal-dark);
  border-radius: 999px; padding: 2px 8px; font-size: 10px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--op-teal-soft); color: var(--op-teal-dark);
  border-radius: 999px; padding: 8px 12px; font-weight: 700;
}
.chip .chip-edit {
  border: 0; background: transparent; color: inherit; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
}
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.thumb { background: #f8fafc; border: 1px solid var(--op-line); border-radius: 14px; overflow: hidden; }
.thumb img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.thumb.wide img { aspect-ratio: 16/9; }
.thumb div { padding: 10px; }
.thumb strong { display: block; font-size: 13px; }
.thumb span { color: var(--op-muted); font-size: 11px; }
.slider-note { color: var(--op-muted); font-size: 13px; line-height: 1.45; margin-bottom: 16px; }
.hint-inline { display: block; margin-top: 6px; color: var(--op-muted); font-size: 12px; font-weight: 500; }
.art-preview {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  background: #f8fafc;
  border: 1px dashed var(--op-line);
  border-radius: 14px;
  padding: 12px;
  margin: 4px 0 8px;
}
.art-preview figure { margin: 0; }
.art-preview img { width: 100%; border-radius: 10px; object-fit: cover; background: #e2e8f0; cursor: pointer; }
.art-preview figure:first-child img { aspect-ratio: 2 / 3; }
.art-preview figure:nth-child(2) img { aspect-ratio: 16 / 9; }
.art-preview figcaption { margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--op-muted); }
.art-preview p { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--op-muted); }
.art-busy p { display: flex; align-items: center; gap: 8px; }
.art-busy ion-icon { animation: btn-spin .7s linear infinite; }
.art-preview.solo { grid-template-columns: 110px; }
.art-preview figure, .now-art figure { position: relative; }
.art-edit {
  margin-top: 8px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #0f172a; color: #fff;
  border-radius: 10px; padding: 8px 10px;
  font-size: 12px; font-weight: 800;
}
.art-edit:hover { background: var(--op-teal-dark); }
.now-art .art-edit {
  position: absolute; left: 6px; right: 6px; bottom: 28px;
  margin: 0; width: auto; padding: 6px 8px; font-size: 10px;
  background: rgba(15, 23, 42, .82);
}
.now-art figcaption { margin-bottom: 0; }
.crop-overlay {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(15, 23, 42, .72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  overflow: auto;
  backdrop-filter: blur(6px);
}
@media (min-height: 720px) {
  .crop-overlay { align-items: center; }
}
.crop-overlay[hidden] { display: none !important; }
.crop-sheet {
  width: min(640px, 100%);
  max-height: min(96dvh, 920px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  padding: 16px 16px 0;
  box-shadow: 0 28px 70px rgba(0,0,0,.32);
  overflow: hidden;
}
.crop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-shrink: 0; }
.crop-kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--op-teal); margin-bottom: 2px; }
.crop-head h3 { font-size: 1.15rem; }
.crop-x {
  width: 36px; height: 36px; border-radius: 12px;
  background: #f1f5f9; color: #334155; font-size: 1.2rem;
  display: grid; place-items: center;
}
.crop-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; flex-shrink: 0; }
.crop-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border-radius: 12px; font-weight: 800;
  background: #f8fafc; color: var(--op-muted); border: 1px solid var(--op-line);
}
.crop-tab.on { background: var(--op-teal-soft); color: var(--op-teal-dark); border-color: rgba(13,138,116,.35); }
.crop-stage-wrap {
  position: relative;
  display: grid; place-items: center;
  background: #0f172a;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
  min-height: 140px;
  max-height: min(38dvh, 340px);
  flex: 1 1 auto;
  overflow: hidden;
}
.crop-src-video {
  position: absolute;
  width: 160px;
  height: 90px;
  left: 8px;
  top: 8px;
  opacity: .01;
  pointer-events: none;
}
.crop-stage-wrap.is-landscape {
  min-height: 200px;
  max-height: min(42dvh, 320px);
}
.crop-stage-wrap.is-portrait canvas {
  aspect-ratio: 2 / 3;
}
.crop-stage-wrap.is-landscape canvas {
  aspect-ratio: 16 / 9;
  width: min(100%, 560px) !important;
  height: auto !important;
  max-height: min(38dvh, 280px);
}
.crop-stage-wrap canvas {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,.18);
}
.crop-stage-wrap canvas:active { cursor: grabbing; }
.crop-drag-hint {
  position: absolute; left: 16px; bottom: 12px; z-index: 2;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.7);
  pointer-events: none;
}
.crop-ctrl {
  display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: center;
  margin-bottom: 8px; font-size: 12px; font-weight: 800; color: var(--op-muted);
  text-transform: uppercase; letter-spacing: .05em;
  flex-shrink: 0;
}
.crop-ctrl input[type="range"],
.crop-timeline input[type="range"] { width: 100%; accent-color: var(--op-teal); }
.crop-timeline {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.crop-timeline[hidden] { display: none !important; }
.crop-play {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--op-teal-soft); color: var(--op-teal-dark);
  display: grid; place-items: center; font-size: 1.15rem;
}
.crop-time {
  font-size: 12px; font-weight: 800; color: var(--op-ink);
  min-width: 92px; text-align: right; font-variant-numeric: tabular-nums;
}
.crop-note { font-size: 12px; color: var(--op-muted); line-height: 1.45; margin: 0 0 8px; flex-shrink: 0; }
.crop-actions {
  display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap;
  flex-shrink: 0;
  position: sticky; bottom: 0;
  background: #fff;
  padding: 10px 0 16px;
  border-top: 1px solid var(--op-line);
  z-index: 3;
}
.crop-actions .btn-op, .crop-apply { width: auto; min-width: 0; padding: 8px 18px; }

.page-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.page-sub { color: var(--op-muted); margin-bottom: 16px; }
.push-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.push-preview {
  background: #14161c; color: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.push-preview img { width: 100%; height: 168px; object-fit: cover; display: block; background: #0b0c10; }
.push-preview div { padding: 12px 14px 14px; }
.push-preview strong { display: block; font-size: 15px; }
.push-preview span { display: block; margin-top: 4px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.35; }
.push-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--op-line); }
.push-row img { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; background: #111; flex: none; }
.push-row span { display: block; color: var(--op-muted); font-size: 12px; }
@media (max-width: 860px) { .push-layout { grid-template-columns: 1fr; } }
.ph-toast-wrap {
  position: fixed; top: 16px; right: 16px; z-index: 2200;
  pointer-events: none;
}
.ph-toast {
  min-width: min(340px, calc(100vw - 32px)); max-width: min(440px, calc(100vw - 32px));
  color: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 40, 50, .22);
  background: linear-gradient(135deg, #0d8a74 0%, #0a6b5a 100%);
  pointer-events: auto;
  opacity: 0;
  transform: translateX(24px) translateY(-8px);
  visibility: hidden;
}
.ph-toast.toast-ok { background: linear-gradient(135deg, #0d8a74 0%, #0a6b5a 100%); }
.ph-toast.toast-err { background: linear-gradient(135deg, #e11d48 0%, #be123c 100%); }
.ph-toast-inner {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px 12px;
}
.ph-toast-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.18);
  display: grid; place-items: center;
  font-size: 1.25rem; flex-shrink: 0; color: #fff;
}
.ph-toast.show .ph-toast-icon { animation: phToastPop .45s cubic-bezier(.2,.9,.2,1); }
.ph-toast-content { flex: 1; min-width: 0; padding-top: 1px; }
.ph-toast-title {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; opacity: .9; margin-bottom: 2px;
}
.ph-toast-msg { font-size: .92rem; font-weight: 600; line-height: 1.4; }
.ph-toast-close {
  margin-top: 2px; flex: 0 0 auto;
  width: 1.15rem; height: 1.15rem; border: 0; padding: 0; cursor: pointer;
  border-radius: 999px;
  background: rgba(0,0,0,.22) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center / .55rem no-repeat;
}
.ph-toast-close:hover { background-color: rgba(0,0,0,.38); }
.ph-toast-progress {
  height: 3px; background: rgba(255,255,255,.35);
  transform-origin: left center; transform: scaleX(1);
}
.ph-toast.show .ph-toast-progress { animation: phToastProgress 4.2s linear forwards; }
.ph-toast.show {
  visibility: visible; opacity: 1;
  transform: translateX(0) translateY(0);
  animation: phToastSlideIn .4s cubic-bezier(.2,.9,.2,1);
}
@keyframes phToastSlideIn {
  from { opacity: 0; transform: translateX(28px) translateY(-10px) scale(.98); }
  to { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
}
@keyframes phToastPop {
  0% { transform: scale(.6); opacity: .3; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes phToastProgress {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.auto-name { margin: 0; font-size: 13px; color: var(--op-muted); }
.auto-name strong { color: var(--op-ink); }
.dur-auto {
  display: grid; gap: 2px;
  background: #f8fafc; border: 1px solid var(--op-line); border-radius: 12px;
  padding: 12px 14px;
}
.dur-auto strong { font-size: 16px; color: var(--op-ink); font-weight: 800; }
.dur-auto small { color: var(--op-muted); font-size: 12px; line-height: 1.4; }
.dur-auto.ok { border-color: rgba(13, 138, 116, .45); background: var(--op-teal-soft); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  background: #f8fafc; border: 1px solid var(--op-line); color: var(--op-ink);
  border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 700;
}
.pill:hover { background: var(--op-teal-soft); border-color: rgba(13,138,116,.45); color: var(--op-teal-dark); }
.pill.on, .pill.on:hover, .pill:active {
  background: var(--op-teal-dark);
  border-color: var(--op-teal-dark);
  color: #fff;
  box-shadow: 0 6px 16px rgba(8, 60, 52, .28);
}
.type-cards {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
.type-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #f8fafc; border: 1px solid var(--op-line); border-radius: 14px;
  padding: 12px 8px; font-weight: 800; font-size: 12px; color: var(--op-muted);
}
.type-card ion-icon { font-size: 1.35rem; color: var(--op-teal); }
.type-card.on { background: var(--op-teal-soft); border-color: var(--op-teal); color: var(--op-teal-dark); }
.stepper {
  display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; align-items: center;
}
.stepper button {
  height: 44px; border-radius: 12px; background: #f1f5f9; font-size: 1.2rem; font-weight: 800;
}
.stepper input { text-align: center; pointer-events: none; }
.more-box {
  background: #f8fafc; border: 1px solid var(--op-line); border-radius: 14px; padding: 4px 12px 12px;
}
.more-box summary {
  cursor: pointer; font-weight: 800; font-size: 13px; color: var(--op-teal-dark);
  padding: 10px 0; list-style: none;
}
.more-box summary::-webkit-details-marker { display: none; }
.more-box .field { margin-top: 8px; }
.cat-fold {
  border: 1px solid var(--op-line);
  border-radius: 16px;
  background: #f8fafc;
  margin: 0 0 18px;
}
.cat-fold > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.cat-fold > summary::-webkit-details-marker { display: none; }
.cat-fold-ico {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--op-teal-soft); color: var(--op-teal-dark);
}
.cat-fold-ico ion-icon { font-size: 1.15rem; }
.cat-fold-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.cat-fold-copy strong { font-size: 15px; color: var(--op-ink); }
.cat-fold-copy small { font-weight: 650; font-size: 12px; color: var(--op-muted); }
.cat-fold > summary::after {
  content: '';
  width: 8px; height: 8px; flex: 0 0 auto;
  border-right: 2px solid var(--op-muted);
  border-bottom: 2px solid var(--op-muted);
  transform: rotate(45deg);
  margin: 0 8px 4px 0;
}
.cat-fold[open] > summary { border-bottom: 1px solid var(--op-line); }
.cat-fold[open] > summary::after { transform: rotate(-135deg); margin: 6px 8px 0 0; }
.cat-fold > .form, .cat-fold > .list { margin: 0; padding: 14px 16px 4px; }
.cat-fold > .list { padding-bottom: 8px; }

.file-warn {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff7ed; border: 1px solid #fdba74; color: #9a3412;
  border-radius: 14px; padding: 12px 14px; margin: 0 0 16px;
  font-size: 13px; line-height: 1.45; font-weight: 650;
}
.file-warn ion-icon { font-size: 1.2rem; margin-top: 1px; flex: 0 0 auto; }
.mode-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: #f1f5f9; border: 1px solid var(--op-line);
  border-radius: 16px; padding: 6px; margin-bottom: 16px;
}
.mode-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 14px; border-radius: 12px; font-weight: 800; color: var(--op-muted);
}
.mode-btn ion-icon { font-size: 1.15rem; }
.mode-btn:hover { color: var(--op-ink); background: rgba(255,255,255,.7); }
.mode-btn.on {
  background: #fff; color: var(--op-teal-dark);
  box-shadow: 0 8px 18px rgba(15, 40, 50, .08);
}
.desk-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  list-style: none; padding: 0; margin: 0 0 16px;
}
.desk-steps li {
  display: flex; align-items: center; gap: 8px;
  background: #f8fafc; border: 1px solid var(--op-line);
  border-radius: 12px; padding: 10px 12px;
  font-size: 12px; font-weight: 700; color: var(--op-muted);
}
.desk-steps li.on { border-color: rgba(13,138,116,.35); background: var(--op-teal-soft); color: var(--op-teal-dark); }
.desk-steps span {
  width: 22px; height: 22px; border-radius: 999px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: #e2e8f0; color: #334155; font-size: 11px;
}
.desk-steps li.on span { background: var(--op-teal); color: #fff; }
.desk-wide { max-width: none !important; }
.desk-layout { display: grid; gap: 18px; }
@media (min-width: 1100px) {
  .desk-layout.with-rail { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: start; }
}
.pick {
  position: relative; display: block; cursor: pointer;
  border: 1.5px dashed rgba(13, 138, 116, .4);
  background: linear-gradient(180deg, #f4fbf9 0%, #eef6f8 100%);
  border-radius: 16px; overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pick input[type="file"] {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2;
}
.pick-visual {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; pointer-events: none;
  position: relative; min-height: 76px;
}
.pick.has-thumb .pick-visual { color: #fff; }
.pick.has-thumb [data-pick-thumb] {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
}
.pick.has-thumb .pick-ico,
.pick.has-thumb .pick-copy,
.pick.has-thumb .pick-btn { position: relative; z-index: 1; }
.pick.has-thumb .pick-copy strong { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.pick.has-thumb .pick-copy small { color: rgba(255,255,255,.88); text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.pick.has-thumb::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(15,23,42,.55), rgba(15,23,42,.12) 55%, rgba(15,23,42,.4));
}
.pick-ico {
  width: 44px; height: 44px; border-radius: 14px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: #fff; color: var(--op-teal); font-size: 1.35rem;
  box-shadow: 0 8px 16px rgba(13, 138, 116, .12);
}
.pick-copy { min-width: 0; flex: 1; }
.pick-copy strong { display: block; font-size: 13px; color: var(--op-ink); }
.pick-copy small { display: block; margin-top: 3px; color: var(--op-muted); font-size: 12px; font-weight: 600; }
.pick-btn {
  background: var(--op-teal); color: #fff; border-radius: 999px;
  padding: 8px 12px; font-size: 12px; font-weight: 800; white-space: nowrap;
}
.pick:hover, .pick.over { border-color: var(--op-teal); box-shadow: 0 10px 24px rgba(13, 138, 116, .12); transform: translateY(-1px); }
.pick.has-file { border-style: solid; border-color: var(--op-teal); background: #fff; }
.now-file {
  display: flex; gap: 12px; align-items: flex-start;
  background: #ecfdf5; border: 1px solid #6ee7b7;
  border-radius: 16px; padding: 14px 16px; margin: 6px 0 10px;
}
.now-file ion-icon { font-size: 1.55rem; flex: 0 0 auto; color: #059669; margin-top: 2px; }
.now-file strong { display: block; font-size: 14px; color: #064e3b; }
.now-file span { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; color: #065f46; word-break: break-all; }
.cat-bar {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px;
}
.cat-chip {
  border: 1px solid var(--op-line); background: #fff; color: var(--op-ink);
  border-radius: 999px; padding: .4rem .9rem; font-size: 13px; font-weight: 700; cursor: pointer;
}
.cat-chip:hover { background: var(--op-teal); color: #fff; border-color: var(--op-teal); }
.cat-chip.on, .cat-chip.on:hover, .cat-chip:active { background: var(--op-teal-dark); color: #fff; border-color: var(--op-teal-dark); box-shadow: 0 6px 16px rgba(8, 60, 52, .28); }
.video-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 12px;
}
.video-toolbar .btn-op { white-space: nowrap; }
.cat-split { border: 0; border-top: 1px solid var(--op-line); margin: 22px 0 18px; }
.pick-poster .pick-ico { color: #7c3aed; }
.pick-backdrop .pick-ico { color: #0369a1; }
.now-art {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px;
  align-items: end; background: #0f172a; color: #e2e8f0;
  border-radius: 16px; padding: 12px; margin-bottom: 4px;
}
.now-art img { width: 100%; border-radius: 10px; object-fit: cover; background: #1e293b; cursor: pointer; }
.now-art figure { margin: 0; }
.now-art figure:first-child img { aspect-ratio: 2 / 3; }
.now-art figure:nth-child(2) img { aspect-ratio: 16 / 9; }
.now-art figcaption { margin-top: 6px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; }
.now-art .now-meta { grid-column: 1 / -1; font-size: 12px; color: #cbd5e1; }
.now-art .now-meta strong { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.slide-rail { display: grid; gap: 10px; }
.slide-rail h3 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--op-muted); }
.slide-card {
  position: relative; display: block; width: 100%; text-align: left;
  border-radius: 16px; overflow: hidden; background: #0f172a; color: #fff;
  border: 2px solid transparent; padding: 0;
}
.slide-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.slide-card-body { padding: 10px 12px 12px; }
.slide-card-body strong { display: block; font-size: 14px; }
.slide-card-body span { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.slide-card-edit {
  position: absolute; top: 10px; right: 10px;
  background: rgba(15,23,42,.78); color: #fff;
  border-radius: 999px; padding: 6px 10px; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 4px;
}
.slide-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(15,23,42,.16); }
.slide-card.on { border-color: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.25); }
.slide-card-actions { display: flex; gap: 8px; padding: 0 12px 12px; }
.slide-card-actions .btn { width: auto; padding: 7px 10px; font-size: 12px; }
.pin-well {
  display: grid; gap: 12px;
  background: #f8fafc; border: 1px solid var(--op-line);
  border-radius: 16px; padding: 16px; margin-top: 8px;
}
.pin-well p { color: var(--op-muted); font-size: 13px; margin-top: 4px; }
.pin-well form { display: grid; gap: 10px; }
@media (min-width: 720px) {
  .pin-well form { grid-template-columns: 1fr auto; align-items: end; }
  .pin-well .btn-op { width: auto; min-width: 0; padding: 8px 18px; }
}
.btn.ghost {
  background: #fff; color: var(--op-teal-dark); border: 1px solid var(--op-line);
  padding: 8px 12px; width: auto;
}
.item-actions { display: flex; gap: 6px; }

@media (max-width: 1199.98px) {
  .op-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .ph-sidebar { transform: translateX(-100%); }
  html:not(.ph-sidebar-collapsed) .ph-sidebar { transform: none; }
  .ph-main { margin-left: 0; padding: 64px 14px 32px; }
  .ph-mnavbar { left: 0; }
  .op-kpi-grid { grid-template-columns: 1fr 1fr; }
  .ph-mnav-center, .op-theme-picker { display: none; }
  .desk-steps { grid-template-columns: 1fr; }
  .mode-switch { grid-template-columns: 1fr; }
  .now-art { grid-template-columns: 1fr; }
  .type-cards { grid-template-columns: 1fr 1fr; }
}
.ltv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: 1100px; }
.ltv-pill {
  flex: none; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
.ltv-pill.go { background: #d9f3ef; color: #0b5f59; }
.ltv-pill.wait { background: #f6e6d4; color: #92400e; }
.ltv-obs {
  max-width: 1100px; margin: 14px 0 16px; padding: 14px 16px;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  background: #132033; color: #f4f7fb; border-radius: 16px;
}
.ltv-obs small { display: block; color: rgba(244,247,251,.62); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ltv-obs strong { font-size: 1.05rem; font-weight: 750; word-break: break-all; }
.ltv-obs p { grid-column: 1 / -1; margin: 6px 0 0; color: rgba(244,247,251,.72); font-size: .84rem; }
.ltv-obs .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.ltv-board { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 16px; max-width: 1100px; align-items: start; }
.ltv-lineup, .ltv-form {
  background: #fff; border: 1px solid var(--op-line); border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 40, 50, .05); padding: 16px;
}
.ltv-lineup-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ltv-form-top { margin-bottom: 4px; }
.ltv-form-top > strong { display: block; margin-bottom: 10px; font-size: 1.05rem; }
.ltv-lineup-top span { color: var(--op-muted); font-size: .8rem; }
.ltv-form-top .mode-switch { margin: 0 0 8px; }
.ltv-lineup-top .btn-op { width: auto; min-width: 0; padding: 8px 14px; }
.ltv-list { display: grid; gap: 10px; }
.ltv-card {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center;
  padding: 12px; border: 1px solid var(--op-line); border-radius: 14px; background: #f8fafc;
}
.ltv-card.is-on { border-color: var(--op-teal); background: var(--op-teal-soft); box-shadow: inset 3px 0 0 var(--op-teal); }
.ltv-logo-wrap { position: relative; }
.ltv-num {
  position: absolute; left: 4px; bottom: 4px;
  background: rgba(8, 16, 24, .78); color: #fff; border-radius: 6px;
  padding: 1px 5px; font-size: 11px; font-weight: 800; line-height: 1.4;
}
.ltv-logo { width: 72px; height: 48px; object-fit: cover; border-radius: 8px; background: #111; display: block; }
.ltv-logo.mark { display: grid; place-items: center; color: #fff; font-weight: 800; background: #0d8a74; font-size: 1.1rem; }
.ltv-meta { min-width: 0; }
.ltv-meta strong, .ltv-meta span { display: block; }
.ltv-meta strong { font-size: .95rem; }
.ltv-meta span { color: var(--op-muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ltv-state {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  font-style: normal; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 8px;
}
.ltv-state.go { background: #d9f3ef; color: #0b5f59; }
.ltv-state.go::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0d8a74;
  box-shadow: 0 0 0 0 rgba(13, 138, 116, .55); animation: ltv-pulse 1.6s infinite;
}
.ltv-state.wait { background: #eef2f6; color: #5a6b7c; }
@keyframes ltv-pulse {
  70% { box-shadow: 0 0 0 6px rgba(13, 138, 116, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 138, 116, 0); }
}
.ltv-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.ltv-actions .btn { width: auto; }
.ltv-block { border-top: 1px solid var(--op-line); padding-top: 12px; margin-top: 8px; }
.ltv-block > p { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--op-muted); }
.ltv-slots { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ltv-slot h2 { margin: 0 0 12px; font-size: 1.05rem; }
@media (min-width: 980px) {
  .ltv-slots { grid-template-columns: 1fr 1fr; }
  .ltv-slots .ltv-slot:last-child { grid-column: 1 / -1; max-width: calc(50% - 8px); }
}
.ltv-preview { width: 100%; max-width: 280px; height: 120px; object-fit: cover; border-radius: 12px; display: block; margin: 8px 0 10px; background: #111; }
.ltv-preview-logo { width: 72px; height: 72px; object-fit: contain; background: #0c0e14; }
.ltv-arts .field-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--op-muted, rgba(244,241,232,.62)); }
.ltv-copyrow, .ltv-foot { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.ltv-saved { margin: 0 0 16px; padding: 14px; background: #fff; border: 1px solid #e6e8ee; border-radius: 14px; }
.ltv-rec { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 14px; align-items: center; margin-top: 12px; }
.ltv-rec-thumb { position: relative; }
.ltv-rec-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: #1f6b4a; color: #fff; font-style: normal;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px;
}
.ltv-rec video, .ltv-rec-mini { width: 100%; max-height: 180px; background: #000; border-radius: 10px; display: block; }
.ltv-rec strong { display: block; }
.ltv-rec span { display: block; margin: 4px 0 8px; color: #667; font-size: 12px; word-break: break-all; }
@media (max-width: 720px) { .ltv-rec { grid-template-columns: 1fr; } }
.ltv-show { margin: 0 0 8px; }
.ltv-form .btn-op { margin-top: 8px; }
@media (max-width: 900px) {
  .ltv-board { grid-template-columns: 1fr; }
  .ltv-head { align-items: flex-start; flex-direction: column; }
}
.partner-card { max-width: none; margin-bottom: 18px; }
.partner-form-head, .partner-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid #eef0f4;
}
.partner-form-head h3, .partner-toolbar h3 { margin: 2px 0 0; font-size: 18px; color: #14202b; }
.partner-form-head .btn { width: auto; }
.partner-form .crop-kicker { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #0f766e; }
.partner-form.is-editing { box-shadow: inset 4px 0 0 #0f766e; padding-left: 14px; border-radius: 4px; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 14px; }
.partner-grid select {
  width: 100%; height: 44px; border-radius: 10px; border: 1px solid #dfe3ea; background: #f7f8fb;
  padding: 0 12px; font: inherit; color: #14202b;
}
.pick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pick {
  min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #dfe3ea; background: #f7f8fb;
  font: inherit; font-size: 13px; font-weight: 700; color: #14202b; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.pick:hover { border-color: #0f766e; }
.pick.on { background: #0f766e; border-color: #0f766e; color: #fff; }
.partner-form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 18px; }
.partner-form-foot .err { margin: 0 auto 0 0; }
.partner-form-foot .btn-op { width: auto; min-width: 170px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.partner-toolbar small { color: #6b7785; font-size: 12px; font-weight: 600; }
.partner-search {
  display: flex; align-items: center; gap: 8px; width: min(360px, 100%);
  height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid #dfe3ea; background: #f7f8fb;
  transition: border-color .2s, box-shadow .2s;
}
.partner-search:focus-within { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15,118,110,.12); background: #fff; }
.partner-search ion-icon { color: #6b7785; font-size: 17px; flex: none; }
.partner-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: #14202b; }
.partner-table-wrap { overflow-x: auto; border: 1px solid #eef0f4; border-radius: 12px; }
.partner-table { width: 100%; border-collapse: collapse; min-width: 980px; font-size: 13px; }
.partner-table th, .partner-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid #eef0f4; white-space: nowrap; vertical-align: middle; }
.partner-table thead th {
  position: sticky; top: 0; z-index: 1; background: #f7f9fb;
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #5c6b7a; font-weight: 800;
}
.partner-table tbody tr { transition: background .15s; }
.partner-table tbody tr:hover { background: #f3faf9; }
.partner-table tbody tr:last-child td { border-bottom: 0; }
.partner-table tr[hidden] { display: none; }
.partner-table .p-id { color: #6b7785; font-weight: 700; }
.partner-table .p-name { font-weight: 700; color: #14202b; }
.partner-table td.partner-actions { width: 1%; }
.partner-actions { white-space: nowrap; }
.p-act {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 4px;
  border-radius: 9px; border: 1px solid #dfe3ea; background: #fff; color: #0f766e; cursor: pointer;
  font-size: 16px; transition: background .15s, border-color .15s, transform .15s;
}
.p-act.p-act-text { width: auto; padding: 0 10px; font-size: 12px; font-weight: 700; }
.p-act:hover { background: #e8f5f3; border-color: #0f766e; transform: translateY(-1px); }
.p-act.danger { color: #c2410c; }
.p-act.danger:hover { background: #fdeee7; border-color: #c2410c; }
.p-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.p-status.on { background: #e3f6ee; color: #11845b; }
.p-status.off { background: #f1f2f5; color: #6b7785; }
.p-status.wait { background: #fff4dc; color: #a15c07; }
.p-status.bad { background: #fdeee7; color: #c2410c; }
#panel-live, #panel-video, #panel-library, #panel-brief, #panel-support, #panel-payments, #panel-subscribers { --pay-ink: #0f1b2a; --pay-mute: #6b7785; --pay-line: #e9edf2; --pay-ok: #0f9d6b; --pay-wait: #d48806; --pay-bad: #dc4a26; --pay-brand: #0f766e; }
.pay-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pay-head .page-sub { margin-bottom: 0; }
.pay-export {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, #0f766e, #0b5f59); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(15,118,110,.8); transition: transform .15s, box-shadow .15s;
}
.pay-export:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(15,118,110,.9); }
.pay-export ion-icon { font-size: 18px; }

.pay-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 1100px) { .pay-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pay-stats { grid-template-columns: 1fr; } }
.pay-stat { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--pay-line); box-shadow: 0 1px 2px rgba(15,27,42,.04); }
.pay-stat-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 22px; }
.pay-stat small { display: block; color: var(--pay-mute); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pay-stat strong { display: block; margin: 4px 0 2px; font-size: 26px; line-height: 1.1; color: var(--pay-ink); letter-spacing: -.02em; }
.pay-stat p { margin: 0; color: var(--pay-mute); font-size: 12.5px; }
.pay-stat.is-money .pay-stat-ico { background: #e6f4f2; color: var(--pay-brand); }
.pay-stat.is-paid .pay-stat-ico { background: #e4f6ee; color: var(--pay-ok); }
.pay-stat.is-pending .pay-stat-ico { background: #fff4de; color: var(--pay-wait); }
.pay-stat.is-cancelled .pay-stat-ico { background: #fdece6; color: var(--pay-bad); }

.pay-card { background: #fff; border: 1px solid var(--pay-line); border-radius: 18px; box-shadow: 0 1px 2px rgba(15,27,42,.04); overflow: hidden; }
.pay-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 18px 0; }
.pay-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #f2f4f7; flex-wrap: wrap; }
.pay-tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: #4b5663; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.pay-tab b { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #e3e7ed; color: #4b5663; font-size: 11.5px; text-align: center; }
.pay-tab:hover { color: var(--pay-ink); }
.pay-tab.on { background: #fff; color: var(--pay-ink); box-shadow: 0 1px 3px rgba(15,27,42,.12); }
.pay-tab.on b { background: var(--pay-brand); color: #fff; }
.pay-live { display: inline-flex; align-items: center; gap: 7px; color: var(--pay-mute); font-size: 12.5px; font-weight: 600; }
.pay-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--pay-ok); box-shadow: 0 0 0 3px rgba(15,157,107,.18); animation: payLive 1.6s ease-in-out infinite; }
@keyframes payLive { 50% { opacity: .35; } }

.pay-filters { display: flex; gap: 12px; flex-wrap: wrap; padding: 14px 18px 16px; border-bottom: 1px solid var(--pay-line); }
.pay-search, .pay-range { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid #dfe3ea; border-radius: 11px; background: #fafbfc; transition: border-color .15s, box-shadow .15s; }
.pay-search { flex: 1 1 320px; }
.pay-search:focus-within, .pay-range:focus-within { border-color: var(--pay-brand); box-shadow: 0 0 0 3px rgba(15,118,110,.12); background: #fff; }
.pay-search ion-icon, .pay-range ion-icon { color: var(--pay-mute); font-size: 17px; flex: none; }
.pay-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--pay-ink); }
.pay-range input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; color: var(--pay-ink); }
.pay-range span { color: var(--pay-mute); font-size: 12.5px; font-weight: 600; }

.pay-table-wrap { overflow-x: auto; }
.pay-table { width: 100%; min-width: 1180px; border-collapse: collapse; font-size: 13px; }
.pay-table th { position: sticky; top: 0; padding: 12px 16px; background: #f8f9fb; color: var(--pay-mute); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: left; border-bottom: 1px solid var(--pay-line); white-space: nowrap; }
.pay-table td { padding: 14px 16px; border-bottom: 1px solid #f0f2f5; vertical-align: middle; color: var(--pay-ink); }
.pay-table tbody tr { transition: background .15s; }
.pay-table tbody tr:hover { background: #f6fbfa; }
.pay-table tbody tr:last-child td { border-bottom: 0; }
.pay-row { box-shadow: inset 3px 0 0 transparent; }
.pay-row.is-paid { box-shadow: inset 3px 0 0 var(--pay-ok); }
.pay-row.is-pending { box-shadow: inset 3px 0 0 var(--pay-wait); }
.pay-row.is-cancelled td { color: #5b6673; }

.pay-who { display: flex; align-items: center; gap: 12px; }
.pay-who strong { display: block; font-size: 13.5px; }
.pay-avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff; font-size: 13px; font-weight: 800; }
.pay-row.is-cancelled .pay-avatar { background: #cfd5dd; }
.pay-plan { display: block; font-size: 13.5px; }
.pay-kind { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 6px; background: #e6f4f2; color: var(--pay-brand); font-size: 11px; font-weight: 700; }
.pay-kind.is-old { background: #f1f2f5; color: var(--pay-mute); }
.pay-amt { font-size: 15px; font-weight: 800; white-space: nowrap; }
.pay-row.is-cancelled .pay-amt { color: #9aa3ae; text-decoration: line-through; text-decoration-thickness: 1px; }

.pay-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pay-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pay-chip.is-paid { background: #e4f6ee; color: var(--pay-ok); }
.pay-chip.is-pending { background: #fff4de; color: var(--pay-wait); }
.pay-chip.is-pending i { animation: payLive 1.2s ease-in-out infinite; }
.pay-chip.is-cancelled { background: #fdece6; color: var(--pay-bad); }
.pay-access { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--pay-mute); white-space: nowrap; }
.pay-access ion-icon { font-size: 16px; }
.pay-access.is-on { color: var(--pay-ok); }
.pay-access.is-wait { color: var(--pay-wait); }
.pay-dash { color: #c3c9d1; }

.pay-wallet { min-width: 150px; }
.pay-wallet span { font-weight: 700; }
.pay-wallet em { font-style: normal; color: var(--pay-mute); font-weight: 500; }
.pay-wallet i { display: block; height: 5px; margin: 6px 0 2px; border-radius: 999px; background: #edf0f3; overflow: hidden; }
.pay-wallet b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f766e, #14b8a6); }

.pay-ids span { display: flex; align-items: baseline; gap: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; color: #394552; white-space: nowrap; }
.pay-ids span + span { margin-top: 3px; }
.pay-ids em { width: 38px; font-family: Inter, system-ui, sans-serif; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--pay-mute); text-transform: uppercase; }
.pay-date-cell strong { display: block; font-size: 13px; white-space: nowrap; }
.pay-sub { display: block; margin-top: 2px; color: var(--pay-mute); font-size: 12px; font-weight: 500; }
.pay-err { color: var(--pay-bad); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-empty { display: grid; place-items: center; gap: 6px; padding: 48px 16px; color: var(--pay-mute); text-align: center; }
.pay-empty[hidden] { display: none; }
.pay-empty ion-icon { font-size: 34px; color: #c3c9d1; }
.pay-empty p { margin: 0; font-size: 14px; }

.pay-stat strong em { font-style: normal; font-size: 15px; color: var(--pay-mute); font-weight: 700; margin-left: 2px; }
.pay-stat.is-brand .pay-stat-ico { background: #eef0ff; color: #4f46e5; }
.vd-card { margin-bottom: 18px; }
.vd-cats { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 18px 0; padding: 4px; border-radius: 12px; background: #f2f4f7; }
.vd-langs { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 18px 0; padding: 4px; border-radius: 12px; background: #f4f7f8; }
.vd-langs .pay-tab { height: 32px; font-size: 12.5px; }
.news-cat-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 18px 0; }
.news-cat-actions .btn { width: auto; }
.vd-note { display: inline-flex; align-items: center; gap: 8px; color: var(--pay-mute); font-size: 12.5px; }
.vd-note ion-icon { font-size: 16px; color: var(--pay-brand); }
.vd-note b { color: var(--pay-ink); }
.vd-list { margin: 0; gap: 0; }
#panel-video .vid-row, #panel-library .vid-row { grid-template-columns: 70px 136px minmax(0, 1fr) auto; gap: 16px; padding: 14px 18px; border: 0; border-bottom: 1px solid var(--op-line, #e9edf2); border-radius: 0; background: #fff; transition: background .15s; }
#panel-video .vid-row:hover, #panel-library .vid-row:hover { background: #fafbfc; }
#panel-video .vid-row:last-child { border-bottom: 0; }
#panel-video .vid-order input, #panel-library .vid-order input { width: 56px; height: 40px; border-radius: 11px; font-size: 15px; background: #f6f8fa; border: 1px solid #dfe3ea; }
#panel-video .vid-order input:focus, #panel-library .vid-order input:focus { outline: 0; border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15,118,110,.12); background: #fff; }
#panel-video .vid-play, #panel-library .vid-play { width: 136px; height: 78px; border-radius: 12px; background: #eef1f5; box-shadow: 0 1px 2px rgba(15,27,42,.08); }
#panel-video .vid-play img, #panel-library .vid-play img, #panel-video .vid-play .item-mark, #panel-library .vid-play .item-mark { width: 100%; height: 100%; border-radius: 0; }
.vid-play-ico ion-icon { width: 38px; height: 38px; padding: 9px; box-sizing: border-box; border-radius: 50%; background: rgba(255,255,255,.92); color: #0f1b2a; }
.vid-dur { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(15,27,42,.78); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
#panel-video .vid-copy strong, #panel-library .vid-copy strong { font-size: 15px; color: #0f1b2a; }
#panel-video .vid-copy p, #panel-library .vid-copy p { font-size: 12.5px; text-transform: capitalize; }
.vr-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.vr-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: #f2f4f7; color: #4b5663; font-size: 11px; font-weight: 700; }
.vr-tag ion-icon { font-size: 12px; }
.vr-tag.is-cat { background: #e6f4f2; color: #0f766e; }
.vr-tag.is-hero { background: #fff4de; color: #b36b00; }
.vr-tag.is-premium { background: #eef0ff; color: #4f46e5; }
.vr-actions { gap: 6px; flex-wrap: nowrap !important; }
.vr-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid #dfe3ea; border-radius: 10px; background: #fff; color: #0f1b2a; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.vr-btn ion-icon { font-size: 16px; }
.vr-btn:hover { border-color: #0f766e; color: #0f766e; }
.vr-btn.is-del { padding: 0 10px; color: #dc4a26; }
.vr-btn.is-del:hover { border-color: #dc4a26; background: #fdece6; color: #dc4a26; }
.vd-form { padding: 20px; overflow: visible; margin-bottom: 18px; }
.talent-queue { padding: 18px 20px; margin: 18px 0; }
.talent-request {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--pay-line);
}
.talent-request img, .talent-request > span {
  width: 72px; height: 72px; border-radius: 14px; object-fit: cover;
  display: grid; place-items: center; background: #f2f4f7; color: var(--pay-ink); font-weight: 800;
}
.talent-request strong { display: block; color: var(--pay-ink); font-size: 15px; }
.talent-request small, .talent-request p { display: block; color: var(--pay-mute); font-size: 12.5px; margin: 2px 0 0; }
.talent-request p { max-width: 520px; }
.talent-request-acts { display: flex; gap: 8px; align-items: center; }
.talent-request-acts .btn-op, .talent-request-acts .btn { height: 36px; padding: 0 14px; }
.vd-form .form { margin-top: 14px; }
.vd-compose { gap: 16px; }
.vd-block {
  display: grid; gap: 14px;
  background: #f8fafc; border: 1px solid var(--op-line); border-radius: 16px;
  padding: 16px;
}
.vd-block-head { display: flex; align-items: center; gap: 12px; }
.vd-block-head strong { display: block; font-size: 15px; color: var(--op-ink); }
.vd-block-head small { display: block; margin-top: 2px; color: var(--op-muted); font-size: 12.5px; font-weight: 600; }
.vd-step {
  width: 28px; height: 28px; border-radius: 9px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--op-teal); color: #fff; font-size: 13px; font-weight: 800;
}
.vd-dest {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: #fff; border: 1px solid #a7f3d0;
}
.vd-dest > span { display: inline-flex; align-items: center; gap: 8px; color: var(--op-muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.vd-dest strong { color: var(--op-teal-dark); font-size: 15px; text-align: right; }
.vd-flags { grid-template-columns: 1fr 1fr; }
.vd-media { background: #fff; }
.vd-submit-row { display: grid; gap: 8px; }
.vd-submit { width: 100%; height: 48px; min-height: 48px; border-radius: 12px; font-size: 15px; justify-self: stretch; }
@media (max-width: 820px) {
  #panel-video .vid-row, #panel-library .vid-row { grid-template-columns: 56px 104px minmax(0, 1fr); padding: 12px; gap: 12px; }
  #panel-video .vid-play, #panel-library .vid-play { width: 104px; height: 62px; }
  .vr-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
.br-grid { display: grid; grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1180px) { .br-grid { grid-template-columns: 1fr; } }
.br-compose { padding: 18px; overflow: visible; position: sticky; top: 16px; }
@media (max-width: 1180px) { .br-compose { position: static; } }
.br-compose .form { margin-top: 14px; }
.br-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.br-card-head strong { display: block; color: var(--pay-ink); font-size: 16px; }
.br-card-head small { display: block; color: var(--pay-mute); font-size: 12.5px; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-card-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #e6f4f2; color: var(--pay-brand); font-size: 20px; }
.br-field-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.br-field-top em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: none; padding: 2px 8px; border-radius: 999px; background: #f2f4f7; color: var(--pay-mute); }
.br-field-top em.is-ok { background: #e4f6ee; color: var(--pay-ok); }
.br-field-top em.is-long { background: #fdece6; color: var(--pay-bad); }
.br-stories { min-width: 0; }
.br-list { display: grid; max-height: 1100px; overflow-y: auto; }
.br-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--pay-line); transition: background .15s; }
.br-row[hidden] { display: none; }
.br-row:hover { background: #fafbfc; }
.br-row.is-editing { background: #f0faf8; box-shadow: inset 3px 0 0 var(--pay-brand); }
.br-thumb { position: relative; width: 112px; height: 84px; border-radius: 12px; overflow: hidden; background: #eef1f5; }
.br-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.br-mark { display: grid; place-items: center; width: 100%; height: 100%; font-size: 28px; font-weight: 800; color: #9aa4b1; }
.br-count { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; background: rgba(15,27,42,.72); color: #fff; font-size: 11px; font-weight: 700; }
.br-count ion-icon { font-size: 12px; }
.br-main { min-width: 0; display: grid; gap: 5px; align-content: start; }
.br-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.br-desk { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: #e6f4f2; color: var(--pay-brand); }
.br-desk.is-my { background: #e8f7ee; color: #047857; }
.br-desk.is-national { background: #fff4de; color: #b36b00; }
.br-desk.is-international { background: #eef0ff; color: #4f46e5; }
.br-loc { display: inline-flex; align-items: center; gap: 3px; color: var(--pay-mute); font-size: 12px; font-weight: 600; }
.br-loc ion-icon { font-size: 13px; }
.br-editing { padding: 2px 8px; border-radius: 999px; background: var(--pay-brand); color: #fff; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.br-title { color: var(--pay-ink); font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.br-body { margin: 0; color: #4b5663; font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.br-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--pay-mute); font-size: 12px; }
.br-meta span + span::before { content: '·'; margin-right: 12px; color: #c3c9d1; }
.br-meta .is-long { color: var(--pay-bad); font-weight: 700; }
.br-side { display: grid; justify-items: end; align-content: space-between; gap: 12px; }
.br-eng { display: flex; gap: 12px; color: var(--pay-mute); font-size: 12.5px; font-weight: 700; }
.br-eng span { display: inline-flex; align-items: center; gap: 4px; }
.br-eng ion-icon { font-size: 15px; }
.br-actions { display: flex; gap: 6px; }
.br-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid #dfe3ea; border-radius: 10px; background: #fff; color: var(--pay-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.br-btn ion-icon { font-size: 15px; }
.br-btn:hover { border-color: var(--pay-brand); color: var(--pay-brand); }
.br-btn.is-del { padding: 0 10px; color: var(--pay-bad); }
.br-btn.is-del:hover { border-color: var(--pay-bad); background: #fdece6; color: var(--pay-bad); }
@media (max-width: 640px) {
  .br-row { grid-template-columns: 84px minmax(0, 1fr); }
  .br-thumb { width: 84px; height: 68px; }
  .br-side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
}

.sp-table { min-width: 1100px; }
.sp-row { cursor: pointer; }
.sp-ticket { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; color: var(--pay-brand); }
.sp-topic { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-last { max-width: 280px; color: #394552; white-space: normal; line-height: 1.4; }
.sp-stars { color: #f5a524; letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.sp-stars em { font-style: normal; color: #dfe3ea; }
.sp-select { border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; color: var(--pay-ink); cursor: pointer; }
.sp-drawer { position: fixed; inset: 0; z-index: 1200; }
.sp-scrim { position: absolute; inset: 0; background: rgba(15,27,42,.45); animation: spFade .2s ease both; }
.sp-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); display: flex; flex-direction: column; overflow: hidden; background: #fff; box-shadow: -20px 0 50px -20px rgba(15,27,42,.35); animation: spSlide .25s cubic-bezier(.2,.8,.2,1) both; }
html.sp-open, body.sp-open { overflow: hidden; }
.sp-head { display: flex; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--pay-line); }
.sp-kicker { margin: 0; color: var(--pay-brand); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sp-head h3 { margin: 4px 0 2px; font-size: 19px; color: var(--pay-ink); }
.sp-head small { color: var(--pay-mute); font-size: 12.5px; }
.sp-x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--pay-line); border-radius: 50%; background: #fff; color: var(--pay-mute); font-size: 20px; cursor: pointer; }
.sp-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 22px; border-bottom: 1px solid var(--pay-line); color: var(--pay-mute); font-size: 12.5px; }
.sp-log { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; background: #f6f8fa; }
.sp-msg { display: grid; gap: 4px; max-width: 85%; }
.sp-msg.is-user { align-self: flex-end; justify-items: end; }
.sp-bubble { padding: 10px 14px; border-radius: 16px 16px 16px 5px; background: #fff; border: 1px solid var(--pay-line); color: var(--pay-ink); font-size: 13.5px; line-height: 1.45; }
.sp-msg.is-user .sp-bubble { border-radius: 16px 16px 5px 16px; background: var(--pay-brand); border-color: var(--pay-brand); color: #fff; }
.sp-msg small { color: var(--pay-mute); font-size: 11px; }
.sp-loading { margin: auto; display: grid; justify-items: center; gap: 6px; color: var(--pay-mute); text-align: center; }
.sp-loading strong { color: var(--pay-ink); font-size: 14.5px; }
.sp-loading small { font-size: 12.5px; }
.sp-loading > ion-icon { font-size: 34px; color: var(--pay-bad); }
.sp-loading .sp-ghost { margin-top: 8px; }
.sp-spin { width: 38px; height: 38px; margin-bottom: 6px; border-radius: 50%; border: 3px solid #dbe7e5; border-top-color: var(--pay-brand); animation: spSpin .8s linear infinite; }
@keyframes spSpin { to { transform: rotate(360deg); } }
.sp-foot { display: flex; gap: 10px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--pay-line); }
.sp-ghost { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid #dfe3ea; border-radius: 12px; background: #fff; color: var(--pay-ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.sp-ghost:hover { border-color: var(--pay-brand); color: var(--pay-brand); }
@keyframes spFade { from { opacity: 0; } }
@keyframes spSlide { from { transform: translateX(40px); opacity: 0; } }
.partner-empty { margin: 0; padding: 26px 12px; text-align: center; color: #6b7785; font-size: 14px; }
.partner-empty[hidden] { display: none; }
.partner-qr { position: fixed; inset: 0; z-index: 40; background: rgba(8,10,16,.72); display: grid; place-items: center; padding: 20px; }
.partner-qr[hidden] { display: none; }
.partner-qr-card { position: relative; width: min(360px, 100%); background: #fff; color: #14202b; border-radius: 16px; padding: 22px 18px 16px; text-align: center; }
.partner-qr-card p { margin: 0 0 10px; font-weight: 800; }
.partner-qr-card img { width: 220px; height: 220px; margin: 0 auto; }
.partner-qr-link { font-weight: 500; font-size: 12px; word-break: break-all; color: #4d5d6c; }
.partner-qr-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #eef2f6; cursor: pointer; }
.brief-photos { border: 1px solid #e4efec; background: #f7fbfa; border-radius: 14px; padding: 12px; }
.brief-photos[hidden] { display: none; }
.brief-photos-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.brief-photos-head strong { font-size: 13px; color: #14202b; }
.brief-photos-head small { font-size: 12px; color: #6b7785; font-weight: 600; }
.brief-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.brief-thumb { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #0f1014; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.brief-thumb.is-new { outline: 2px solid #0f766e; outline-offset: -2px; }
.brief-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brief-thumb-tag { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: rgba(15,16,20,.78); color: #fff; }
.brief-thumb-tag.new { background: #0f766e; }
.brief-thumb-x { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(194,65,12,.92); color: #fff; font-size: 15px; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.3); transition: transform .15s; }
.brief-thumb-x:hover { transform: scale(1.08); }

#panel-live .ltv-obs { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; max-width: none; margin: 0 0 18px; padding: 20px 22px; border-radius: 18px; background: linear-gradient(135deg, #0f1b2a 0%, #13293b 60%, #0f3b3a 100%); color: #fff; box-shadow: 0 16px 34px -22px rgba(15,27,42,.8); }
#panel-live .ltv-obs-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.1); color: #5eead4; font-size: 26px; }
#panel-live .ltv-obs small { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.6); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
#panel-live .ltv-obs strong { display: block; margin: 6px 0 10px; font-family: ui-monospace, Consolas, monospace; font-size: 18px; font-weight: 700; letter-spacing: .01em; }
#panel-live .ltv-pill { padding: 3px 10px; border-radius: 999px; font-size: 10.5px; letter-spacing: .06em; font-style: normal; }
#panel-live .ltv-pill.go { background: rgba(34,197,94,.18); color: #86efac; }
#panel-live .ltv-pill.wait { background: rgba(245,158,11,.18); color: #fcd34d; }
#panel-live .ltv-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
#panel-live .ltv-steps li { counter-increment: st; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.82); font-size: 12px; }
#panel-live .ltv-steps li::before { content: counter(st); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #0f766e; color: #fff; font-size: 10.5px; font-weight: 800; }
#panel-live .ltv-obs .btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 12px; background: #fff; color: #0f1b2a; border: 0; font-weight: 800; }
#panel-live .ltv-saved, #panel-live .ltv-lineup, #panel-live .ltv-form { max-width: none; margin: 0 0 18px; padding: 18px; background: #fff; border: 1px solid var(--pay-line); border-radius: 18px; box-shadow: 0 1px 2px rgba(15,27,42,.04); }
#panel-live .ltv-board { max-width: none; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 18px; }
#panel-live .ltv-board > * { margin-bottom: 0; }
#panel-live .ltv-lineup { position: sticky; top: 16px; }
#panel-live .ltv-lineup-top { margin-bottom: 14px; }
#panel-live .ltv-list { gap: 10px; }
#panel-live .ltv-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--pay-line); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
#panel-live .ltv-card:hover { border-color: #cfd6df; box-shadow: 0 6px 16px -10px rgba(15,27,42,.3); }
#panel-live .ltv-card.is-on { border-color: #0f766e; background: #f0faf8; box-shadow: inset 3px 0 0 #0f766e; }
#panel-live .ltv-logo { width: 84px; height: 56px; border-radius: 10px; object-fit: cover; }
#panel-live .ltv-num { border: 2px solid #fff; }
#panel-live .ltv-meta strong { color: var(--pay-ink); font-size: 14.5px; }
#panel-live .ltv-meta span { color: var(--pay-mute); font-size: 12px; margin: 2px 0 6px; }
#panel-live .ltv-actions { gap: 6px; padding-top: 10px; border-top: 1px dashed var(--pay-line); }
#panel-live .ltv-rec { grid-template-columns: minmax(200px, 300px) 1fr; gap: 16px; margin-top: 14px; padding: 12px; border: 1px solid var(--pay-line); border-radius: 14px; }
#panel-live .ltv-rec video { border-radius: 10px; }
#panel-live .ltv-saved > .slider-note { margin: 12px 0 0; padding: 18px; border: 1px dashed #dfe3ea; border-radius: 12px; background: #fafbfc; color: var(--pay-mute); text-align: center; }
#panel-live .ltv-form-top .mode-switch { margin: 0 0 6px; }
#panel-live .ltv-block { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--pay-line); }
#panel-live .ltv-block > p { color: var(--pay-brand); font-size: 11.5px; }
@media (max-width: 1100px) { #panel-live .ltv-board { grid-template-columns: 1fr; } #panel-live .ltv-lineup { position: static; } }
@media (max-width: 640px) { #panel-live .ltv-obs { grid-template-columns: 1fr; } #panel-live .ltv-obs-ico { display: none; } #panel-live .ltv-rec { grid-template-columns: 1fr; } }

/* Shared studio design system: every panel except the dashboard */
.panel.ds { --pay-ink: #0f1b2a; --pay-mute: #6b7785; --pay-line: #e9edf2; --pay-ok: #0f9d6b; --pay-wait: #d48806; --pay-bad: #dc4a26; --pay-brand: #0f766e; }
.ds-head { justify-content: flex-start; align-items: center; gap: 14px; }
.ds-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(140deg, #0f766e, #14b8a6); color: #fff; font-size: 24px; box-shadow: 0 10px 22px -12px rgba(15,118,110,.9); }
.ds-copy { min-width: 0; flex: 1; }
.ds-copy .page-title { margin-bottom: 2px; }
.panel.ds .page-title { font-size: 1.35rem; letter-spacing: -.01em; color: var(--pay-ink); }
.panel.ds .page-sub { max-width: 820px; line-height: 1.5; }
.panel.ds .op-card { max-width: none; padding: 22px; border: 1px solid var(--pay-line); border-radius: 18px; box-shadow: 0 1px 2px rgba(15,27,42,.04); }
.panel.ds .op-card + .op-card { margin-top: 18px; }
#panel-password .op-card, #panel-admins .op-card, #panel-mail .op-card, #panel-app .op-card, #panel-free .op-card, #panel-push .op-card { max-width: 820px; }
.apk-file {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #d7efe9;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbfa, #fff);
}
.apk-mark {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: #e7f6f2; color: #0d8a74; font-size: 26px;
}
.apk-copy { min-width: 0; }
.apk-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.apk-copy p { margin: 3px 0 0; color: var(--op-ink); font-size: 13px; font-weight: 700; }
.apk-copy small { display: block; margin-top: 4px; color: var(--op-muted); font-size: 12.5px; line-height: 1.4; }
.apk-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.apk-actions .btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; font-weight: 700; }
@media (min-width: 720px) {
  .apk-file { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .apk-actions { grid-column: auto; justify-content: flex-end; }
}
.panel.ds .op-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1rem; font-weight: 800; color: var(--pay-ink); }
.panel.ds .op-card h2::before { content: ''; width: 4px; height: 18px; border-radius: 4px; background: var(--pay-brand); }
.panel.ds .field span { color: var(--pay-mute); font-size: 11.5px; }
.panel.ds .field input, .panel.ds .field select, .panel.ds .field textarea { border-radius: 11px; border-color: #dfe3ea; background: #fafbfc; transition: border-color .15s, box-shadow .15s, background .15s; }
.panel.ds .field input:focus, .panel.ds .field select:focus, .panel.ds .field textarea:focus { outline: 0; border-color: var(--pay-brand); background: #fff; box-shadow: 0 0 0 3px rgba(15,118,110,.12); }
.panel.ds .btn-op { border-radius: 12px; box-shadow: 0 10px 22px -12px rgba(15,118,110,.9); }
.panel.ds .mode-switch { padding: 4px; border-radius: 12px; background: #f2f4f7; border: 0; }
.panel.ds .mode-btn { border-radius: 9px; font-weight: 700; color: #4b5663; }
.panel.ds .mode-btn.on { background: #fff; color: var(--pay-ink); box-shadow: 0 1px 3px rgba(15,27,42,.12); }
.panel.ds .cat-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: #f2f4f7; }
.panel.ds .cat-chip { height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: #4b5663; font-weight: 700; box-shadow: none; }
.panel.ds .cat-chip:hover { background: rgba(255,255,255,.7); color: var(--pay-ink); border: 0; }
.panel.ds .cat-chip.on, .panel.ds .cat-chip.on:hover { background: #fff; color: var(--pay-ink); box-shadow: 0 1px 3px rgba(15,27,42,.12); }
.panel.ds .pill { border-radius: 10px; }
.panel.ds .list { gap: 10px; }
.panel.ds .item { background: #fff; border: 1px solid var(--pay-line); border-radius: 14px; padding: 12px 14px; gap: 14px; transition: border-color .15s, box-shadow .15s; }
.panel.ds .item:hover { border-color: #cfd6df; box-shadow: 0 8px 20px -14px rgba(15,27,42,.35); }
.panel.ds .item img, .panel.ds .item .item-mark { border-radius: 10px; box-shadow: 0 1px 2px rgba(15,27,42,.08); }
.panel.ds .item.wide img, .panel.ds .item.wide .item-mark { width: 104px; height: 60px; }
.panel.ds .item strong { color: var(--pay-ink); font-size: 14.5px; }
.panel.ds .item p { margin-top: 3px; color: var(--pay-mute); font-size: 12.5px; }
.panel.ds .btn.ghost, .panel.ds .btn.danger { display: inline-flex; align-items: center; gap: 6px; width: auto; height: 36px; min-height: 36px; padding: 0 12px; border: 1px solid #dfe3ea; border-radius: 10px; background: #fff; color: var(--pay-ink); font-size: 13px; font-weight: 700; box-shadow: none; transition: border-color .15s, color .15s, background .15s; }
.panel.ds .btn.ghost:hover { border-color: var(--pay-brand); color: var(--pay-brand); background: #fff; }
.panel.ds .btn.danger { color: var(--pay-bad); }
.panel.ds .btn.danger:hover { border-color: var(--pay-bad); background: #fdece6; }
.panel.ds .slider-note { color: var(--pay-mute); }
.panel.ds .list > .slider-note, .panel.ds .list > .hint { margin: 0; padding: 22px; border: 1px dashed #dfe3ea; border-radius: 12px; background: #fafbfc; text-align: center; }
.panel.ds .pick { border-radius: 14px; }
.panel.ds .check { border-radius: 11px; }
@media (max-width: 640px) { .ds-ico { width: 40px; height: 40px; font-size: 20px; border-radius: 12px; } }

.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 2px rgba(15,23,42,.9); animation: navBadgeIn .3s cubic-bezier(.2,.8,.2,1) both; }
.nav-badge[hidden] { display: none; }
.nav-ico[data-tab="payments"] .nav-badge { background: #10b981; }
@keyframes navBadgeIn { from { transform: scale(.4); opacity: 0; } }

.reel-row .btn.rs-ok { color: #047857; border-color: rgba(16,185,129,.45); background: rgba(16,185,129,.08); }
.reel-row .btn.rs-ok:hover { background: #10b981; color: #fff; border-color: #10b981; }
.reel-row .btn.rs-no { color: #b45309; border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.08); }
.reel-row .btn.rs-no:hover { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.reel-row .btn.rs-wait { color: #475569; }

.nav-ico[data-tab="reel"] .nav-badge { background: #f59e0b; color: #1a1408; }
.reel-cm { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; font-size: 12px; font-weight: 700; color: #64748b; }
.reel-cm select { height: 26px; padding: 0 6px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; font: inherit; font-size: 12px; color: #0f172a; }

.ask-modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(15, 23, 32, 0.46);
  opacity: 0;
  transition: opacity .16s ease;
}
.ask-modal.is-on { opacity: 1; }
.ask-modal .ask-card {
  width: min(420px, 100%);
  padding: 28px 26px 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--op-line);
  box-shadow: 0 24px 60px rgba(15, 40, 50, 0.18);
  text-align: center;
  transform: translateY(8px) scale(.98);
  transition: transform .18s ease;
}
.ask-modal.is-on .ask-card { transform: none; }
.ask-ico {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 26px;
}
.ask-ico ion-icon { width: 28px; height: 28px; color: #b91c1c; }
.ask-modal h2 { font-size: 22px; letter-spacing: -0.02em; color: var(--op-ink); }
.ask-modal p { margin-top: 8px; color: var(--op-muted); font-size: 15px; line-height: 1.45; }
.ask-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.ask-actions .btn { min-width: 120px; height: 42px; border-radius: 12px; }
.ask-modal .ask-card.is-form { width: min(480px, 100%); text-align: left; }
.ask-modal .ask-card.is-form h2, .ask-modal .ask-card.is-form p { text-align: left; }
.ask-modal .ask-card.is-form .field { display: block; margin-top: 12px; text-align: left; }
.ask-modal .ask-card.is-form .field span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--op-muted); }
.ask-modal .ask-card.is-form .field input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--op-line); border-radius: 10px; font: inherit; }
.ask-modal .ask-card.is-form .err { min-height: 0; margin-top: 8px; }
.ask-go.is-teal { background: #0f766e; }
.ask-go.is-teal:hover { background: #0b5f59; }
#panel-subscribers .sub-master th.sub-act,
#panel-subscribers .sub-master td.sub-act {
  position: sticky; left: 0; z-index: 3; background: #fff;
  box-shadow: 8px 0 12px -10px rgba(15, 27, 42, .35);
}
#panel-subscribers .sub-master thead th.sub-act { z-index: 4; background: #f4f7f8; }
#panel-subscribers .sub-acts { display: flex; align-items: center; gap: 6px; }
#panel-subscribers .sub-master th.sub-act,
#panel-subscribers .sub-master td.sub-act { min-width: 292px; }
.sub-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px; background: #fff; border-top: 1px solid #e9edf2; position: sticky; left: 0; }
.sub-pager .sub-range { color: #6b7785; font-size: 13px; font-weight: 700; }
.sub-pager .sub-pages { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sub-pager .sub-gap { color: #6b7785; font-weight: 700; padding: 0 2px; }
.sub-jump { display: inline-flex; align-items: center; gap: 6px; color: #6b7785; font-size: 13px; font-weight: 700; }
.sub-jump input { width: 64px; height: 36px; padding: 0 8px; border: 1px solid #e2e8f0; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 700; color: #0f1b2a; }
.sub-page { height: 36px; min-width: 36px; padding: 0 10px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #0f1b2a; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.sub-page.on { background: #0f766e; border-color: #0f766e; color: #fff; }
.sub-page:disabled { opacity: .4; cursor: default; }

.st-board { margin-top: 4px; }
.st-sort { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 14px; border: 1px solid #dfe3ea; border-radius: 11px; background: #fafbfc; color: var(--pay-mute); }
.st-sort ion-icon { font-size: 17px; }
.st-sort select { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: var(--pay-ink); }
.st-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid #f0f2f5; }
.st-row:hover { background: #f6fbfa; }
.st-row:last-child { border-bottom: 0; }
.st-thumb { width: 112px; height: 68px; object-fit: cover; border-radius: 10px; background: #151b24; display: block; }
.st-thumb.is-reel { width: 68px; height: 96px; margin-left: 22px; }
.st-thumb.is-empty { display: grid; place-items: center; color: #d5dbe3; font-size: 26px; }
.st-copy { min-width: 0; }
.st-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.st-copy span { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-width: 0; color: var(--pay-mute); font-size: 12.5px; }
.st-copy span em + * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-kind { flex: none; padding: 2px 7px; border-radius: 6px; font-style: normal; font-size: 11px; font-weight: 800; }
.st-kind.is-video { background: #e6f4f2; color: var(--pay-brand); }
.st-kind.is-reel { background: #eef0ff; color: #4f46e5; }
.st-kind.is-brief { background: #fff4de; color: #b45309; }
.st-metrics { display: flex; gap: 22px; }
.st-metrics div { min-width: 68px; text-align: right; }
.st-metrics small { display: block; color: var(--pay-mute); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.st-metrics b { font-size: 15px; }
@media (max-width: 760px) {
  .st-row { grid-template-columns: 88px minmax(0, 1fr); }
  .st-thumb { width: 88px; height: 56px; }
  .st-metrics { grid-column: 1 / -1; justify-content: space-between; }
}
