/* Convert Run — premium application shell */
:root {
  --brand-300: #dfff74;
  --brand-400: #c9f34f;
  --brand-500: #b7e436;
  --brand-600: #98c01f;
  --brand-700: #739112;
  --accent-500: #eef9c7;
  --accent-600: #d6ee7c;
  --brand-gradient: linear-gradient(135deg, #dfff74 0%, #a8d72f 100%);
  --brand-glow: 0 14px 48px rgba(183, 228, 54, .16);
  --surface-base: #0b0c0a;
  --surface-raised: #12140f;
  --surface-overlay: #181b14;
  --surface-sunken: #070806;
  --surface-hover: #1d2117;
  --surface-active: #252a1d;
  --border-subtle: rgba(239, 247, 224, .06);
  --border-default: rgba(239, 247, 224, .11);
  --border-strong: rgba(223, 255, 116, .22);
  --text-primary: #f2f4ed;
  --text-secondary: #a0a595;
  --text-tertiary: #6b7164;
  --sidebar-width: 264px;
  --topbar-height: 72px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

body::before {
  background: radial-gradient(ellipse 55% 35% at 92% 0%, rgba(183,228,54,.07), transparent 70%);
}

.app-content { padding: 32px clamp(22px, 3.4vw, 52px) 64px; }
.sidebar {
  border-right: 1px solid var(--border-subtle);
  background: #090a08;
}
.sidebar__brand { height: 72px; padding-inline: 22px; border-bottom-color: var(--border-subtle); }
.sidebar__logo {
  background: var(--brand-400) !important; color: #10120c !important;
  box-shadow: 0 0 0 5px rgba(201,243,79,.08); border-radius: 10px !important;
}
.sidebar__wordmark { color: var(--text-primary) !important; background: none; letter-spacing: .12em; font-size: 12px; }
.sidebar__nav { padding: 20px 14px; gap: 3px; }
.sidebar__group-label { padding: 22px 12px 8px; color: #53584d; letter-spacing: .14em; }
.nav-item { min-height: 44px; border-radius: 10px; padding-inline: 12px; color: #858b7c; }
.nav-item:hover { background: rgba(255,255,255,.035); color: var(--text-primary); }
.nav-item.active { background: #1b1f15; color: #e8f9b8; box-shadow: inset 3px 0 0 var(--brand-400); }
.nav-item__icon { color: currentColor; font-size: 16px; }
.topbar {
  height: 72px; padding-inline: clamp(18px, 3vw, 40px); background: rgba(11,12,10,.82);
  border-bottom: 1px solid var(--border-subtle); backdrop-filter: blur(18px);
}
.topbar__title { display: flex; align-items: baseline; gap: 3px; font-size: 14px; }
.topbar__title small { color: var(--text-tertiary); font-weight: 500; }
.btn--primary { color: #10120c !important; box-shadow: 0 8px 26px rgba(183,228,54,.12); }

.dashboard-hero {
  position: relative; overflow: hidden; margin: -32px calc(clamp(22px, 3.4vw, 52px) * -1) 30px;
  padding: 52px clamp(22px, 3.4vw, 52px) 42px; border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(105deg, rgba(183,228,54,.065), transparent 42%);
}
.dashboard-hero::after {
  content: ""; position: absolute; right: 7%; top: -65px; width: 290px; aspect-ratio: 1;
  border: 1px solid rgba(201,243,79,.10); border-radius: 50%; box-shadow: 0 0 0 45px rgba(201,243,79,.025), 0 0 0 90px rgba(201,243,79,.018);
}
.dashboard-hero .page-header { position: relative; z-index: 1; margin: 0; align-items: flex-end; }
.dashboard-hero .page-header__title { margin: 9px 0 10px; font-size: clamp(30px,4vw,50px); font-weight: 600; letter-spacing: -.045em; }
.dashboard-kicker { display: flex; align-items: center; gap: 8px; color: var(--brand-400); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.dashboard-kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-400); box-shadow: 0 0 12px var(--brand-400); }
.dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dashboard-stats .stat { min-height: 154px; padding: 22px; border: 1px solid var(--border-subtle); background: linear-gradient(145deg, #141610, #0f110d); border-radius: 16px; box-shadow: none; }
.dashboard-stats .stat--primary { background: var(--brand-400); border-color: var(--brand-400); }
.dashboard-stats .stat--primary * { color: #14170d !important; }
.dashboard-stats .stat__label { text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.dashboard-stats .stat__value { margin-top: auto; font-size: clamp(27px,3vw,38px); font-weight: 580; letter-spacing: -.05em; }
.dashboard-stats .stat__value small { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--text-tertiary); }
.dashboard-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:16px; }
.dashboard-section-head h2 { margin-top:6px; font-size:22px; font-weight:600; }
.card, .video-card { border-color: var(--border-subtle); background: #11130f; box-shadow: none; }
.video-card { border-radius: 15px; overflow: hidden; transition: transform .25s ease, border-color .25s ease; }
.video-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.video-card__preview { background: #080906; }

@media (max-width: 900px) { .dashboard-stats { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .dashboard-stats { grid-template-columns: 1fr; } .dashboard-hero::after { display:none; } .topbar__title small { display:none; } }

:root[data-theme="light"] {
  --surface-base:#f4f5ef; --surface-raised:#fff; --surface-overlay:#fff; --surface-sunken:#eceee5;
  --surface-hover:#eef0e7; --surface-active:#e4e8db; --text-primary:#171914; --text-secondary:#62685b; --text-tertiary:#909687;
}
:root[data-theme="light"] .sidebar { background:#f8f9f4; }
:root[data-theme="light"] .topbar { background:rgba(244,245,239,.82); }
:root[data-theme="light"] .dashboard-stats .stat { background:#fff; }
:root[data-theme="light"] .card, :root[data-theme="light"] .video-card { background:#fff; }

/* Light-only professional direction */
:root, :root[data-theme="light"] {
  --surface-base: #f5f6f2;
  --surface-raised: #ffffff;
  --surface-overlay: #ffffff;
  --surface-sunken: #ecefe8;
  --surface-hover: #f0f2ec;
  --surface-active: #e6eadf;
  --border-subtle: rgba(27, 39, 50, .07);
  --border-default: rgba(27, 39, 50, .12);
  --border-strong: rgba(91, 112, 44, .25);
  --text-primary: #18232d;
  --text-secondary: #647078;
  --text-tertiary: #929b9f;
  --brand-300: #bdd873;
  --brand-400: #a8c85a;
  --brand-500: #8eae42;
  --brand-600: #718f2e;
  --brand-gradient: linear-gradient(135deg, #b9d66b, #91b13f);
}
body { background:#f5f6f2; }
body::before { background:radial-gradient(ellipse 55% 38% at 92% 0%, rgba(168,200,90,.12), transparent 70%); }
.sidebar, :root[data-theme="light"] .sidebar { background:#fbfcf8; border-right-color:rgba(27,39,50,.08); }
.sidebar__logo { background:#afcc62 !important; color:#18232d !important; box-shadow:0 0 0 5px rgba(142,174,66,.10); }
.sidebar__wordmark { color:#18232d !important; }
.nav-item { color:#727d82; }
.nav-item:hover { background:#f0f2ec; color:#18232d; }
.nav-item.active { background:#e9efdc; color:#435b1d; box-shadow:inset 3px 0 0 #8eae42; }
.topbar, :root[data-theme="light"] .topbar { background:rgba(250,251,247,.88); border-bottom-color:rgba(27,39,50,.08); }
.dashboard-hero { background:linear-gradient(105deg, rgba(168,200,90,.17), rgba(255,255,255,.2) 58%); border-bottom-color:rgba(27,39,50,.07); }
.dashboard-hero::after { border-color:rgba(113,143,46,.14); box-shadow:0 0 0 45px rgba(142,174,66,.04),0 0 0 90px rgba(142,174,66,.025); }
.dashboard-kicker { color:#718f2e; }
.dashboard-kicker i { background:#8eae42; box-shadow:none; }
.dashboard-stats .stat, :root[data-theme="light"] .dashboard-stats .stat { background:#fff; border-color:rgba(27,39,50,.08); box-shadow:0 8px 30px rgba(32,44,38,.045); }
.dashboard-stats .stat--primary, :root[data-theme="light"] .dashboard-stats .stat--primary { background:#dce9bb; border-color:#cfdfa6; }
.dashboard-stats .stat--primary * { color:#26331e !important; }
.card, .video-card, :root[data-theme="light"] .card, :root[data-theme="light"] .video-card { background:#fff; border-color:rgba(27,39,50,.08); box-shadow:0 8px 30px rgba(32,44,38,.04); }
.video-card__preview { background:#eef0e9; }

/* Neutral enterprise panel: white, slate and restrained cobalt */
:root, :root[data-theme="light"] {
  --surface-base:#f6f7f9;
  --surface-sunken:#eef1f5;
  --surface-hover:#f1f4f8;
  --surface-active:#e8edf4;
  --border-subtle:rgba(23,37,61,.07);
  --border-default:rgba(23,37,61,.12);
  --border-strong:rgba(37,99,235,.25);
  --text-primary:#162033;
  --text-secondary:#667085;
  --text-tertiary:#98a2b3;
  --brand-300:#93b4fb;
  --brand-400:#4f7ee8;
  --brand-500:#3568d4;
  --brand-600:#2855b6;
  --brand-gradient:linear-gradient(135deg,#4778e5,#315fc5);
  --brand-glow:0 12px 32px rgba(53,104,212,.14);
  --accent-500:#5b8def;
  --accent-600:#3568d4;
  --success-500:#087ea4;
  --success-bg:rgba(8,126,164,.10);
}
body { background:#f6f7f9; }
body::before { display:none; }
.sidebar, :root[data-theme="light"] .sidebar { background:#fff; border-right:1px solid #e7eaf0; }
.sidebar__logo { background:#3568d4 !important; color:#fff !important; box-shadow:none; }
.sidebar__wordmark { color:#172033 !important; }
.sidebar__group-label { color:#98a2b3; }
.nav-item { color:#667085; }
.nav-item:hover { background:#f5f7fa; color:#172033; }
.nav-item.active { background:#eef3ff; color:#2855b6; box-shadow:none; font-weight:600; }
.nav-item.active .nav-item__icon { color:#3568d4; }
.topbar, :root[data-theme="light"] .topbar { background:rgba(255,255,255,.92); border-bottom:1px solid #e7eaf0; }
.dashboard-hero { margin-top:-32px; padding-top:42px; padding-bottom:34px; background:#fff; border-bottom:1px solid #e7eaf0; }
.dashboard-hero::after { display:none; }
.dashboard-hero .page-header__title { font-size:clamp(28px,3.4vw,40px); letter-spacing:-.035em; }
.dashboard-kicker { color:#3568d4; }
.dashboard-kicker i { background:#3568d4; }
.dashboard-stats { gap:16px; }
.dashboard-stats .stat,
:root[data-theme="light"] .dashboard-stats .stat,
.dashboard-stats .stat--primary,
:root[data-theme="light"] .dashboard-stats .stat--primary {
  min-height:142px; background:#fff; border:1px solid #e7eaf0; box-shadow:0 1px 2px rgba(16,24,40,.025); color:inherit;
}
.dashboard-stats .stat--primary * { color:inherit !important; }
.dashboard-stats .stat__value { color:#172033; }
.dashboard-stats .stat__value small { color:#98a2b3; }
.card,.video-card,:root[data-theme="light"] .card,:root[data-theme="light"] .video-card { border-color:#e7eaf0; box-shadow:0 1px 3px rgba(16,24,40,.035); }
.btn--primary { background:#3568d4; border-color:#3568d4; color:#fff !important; box-shadow:0 4px 12px rgba(53,104,212,.18); }
.btn--primary:hover { background:#2855b6; border-color:#2855b6; }
