:root {
  color-scheme: dark;
  --ink: #edf0f7;
  --muted: #a3aec0;
  --accent: #236efa;
  --accent-dark: #81afff;
  --line: #293141;
  --bg: #0c1018;
  --white: #151c28;
  --sidebar: #0f141e;
}
.sidebar { border-right: 1px solid var(--line); }
.brand-icon { background: linear-gradient(145deg, #6ba5ff, #236afa); }
.nav a[aria-current] { color: #edf4ff; background: #1d2a40; box-shadow: inset 0 0 0 1px #355584; }
.nav a[aria-current] svg { color: #85b3ff; }
.button, .period-select, .tool-form :is(input, select, textarea) { color: var(--ink); background: #1c2534; border-color: var(--line); }
.button:hover { color: #dfeaff; background: #223654; border-color: #4677be; }
.button-primary { background: #236efa; border-color: #236efa; color: white; }
.button-primary:hover { background: #195fdf; color: white; }
.button-chat { color: #bbd6ff; background: #182948; }
.demo-pill { color: #b9d3ff; border-color: #364d70; background: #1c2c43; }
.live-pill { color: #a5e7c9; border-color: #386257; background: #1a3430; }
.profile-options { background: #151e2d; border-color: var(--line); }
.profile-options button, .profile-bar > span, .period-select { color: var(--muted); }
.profile-options button[aria-pressed="true"], .profile-options button:hover { color: #c8dfff; background: #223557; border-color: #375d95; }
.metric-card.metric-selected { background: #192941; border-color: #355586; }
.metric-label, .metric-delta span, .compare, .source-list li, th, .crumb { color: var(--muted); }
.metric-delta { color: #76dbad; }
.metric-delta.negative { color: #f09aaa; }
.chart-gridline { stroke: #293445; }
.chart-svg text { fill: #a4adc0; }
.donut div, th { background: #1d2635; }
.format-tag, .tool-result, .local-chat-log article { background: #202f47; color: #d2e1f8; }
dialog { background: #151c28; }
.goals-card, .goals-button, .goals-switch, .goals-editor, .upload-item { color: var(--ink); background: #171f2d; border-color: var(--line); }
.goals-info, .goals-metric, .goals-field input, .local-chat-form textarea { color: var(--ink); background: #1a2535; border-color: var(--line); }
.goals-metric-value strong, .goals-card-header h3 { color: var(--ink); }
.catalog-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.catalog-toolbar input, .catalog-toolbar select, .feed-composer textarea { color: var(--ink); background: #181f2c; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; resize: vertical; }
.catalog-toolbar input { width: min(420px, 70vw); }
.feed-column { max-width: 670px; display: grid; gap: 14px; margin-inline: auto; }
.feed-intro { padding: 34px 0 18px; text-align: center; }
.feed-intro h2 { font-size: clamp(25px, 3vw, 34px); margin-bottom: 13px; }
.feed-composer { display: grid; justify-items: end; gap: 8px; padding: 12px; border: 1px solid var(--line); background: #151c28; border-radius: 15px; }
.feed-composer textarea { width: 100%; }
.feed-chips { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.feed-chips a { text-decoration: none; }
.workspace-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.workspace-kpis > div { text-align: center; padding: 16px; }
.workspace-kpis small { display: block; color: var(--muted); }
.workspace-kpis strong { display: block; margin-top: 5px; font: 800 clamp(22px, 4vw, 34px) var(--heading); }
.workspace-block { padding: 16px; }
.workspace-block-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.workspace-block p, .workspace-note { color: var(--muted); margin-bottom: 8px; }
[data-opt-pending] { margin-top: 22px; }
[data-opt-pending] h2 { font-size: 16px; }
[data-opt-pending] p { color: var(--muted); margin: 4px 0 12px; }
.workspace-block a, .gallery-card a { color: #90baff; }
.feed-comment { padding: 10px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.feed-comment p { margin-block: 5px 8px; }
.video-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 13px; margin-bottom: 14px; align-items: start; }
.gallery-card { padding: 0; width: 100%; color: inherit; text-align: left; border: 1px solid var(--line); background: #151c28; border-radius: 11px; overflow: hidden; }
.gallery-card:hover, .gallery-card:focus-visible { border-color: #5793ff; }
.gallery-poster { position: relative; aspect-ratio: 16/9; background: #1a2638; overflow: hidden; }
.vertical-card .gallery-poster { aspect-ratio: 4/5; }
.gallery-poster img, .workspace-poster-preview { width: 100%; height: 100%; object-fit: cover; display: block; }
.workspace-poster-preview { background-image: url('video-thumbnails.png'); background-size: 200% 200%; }
.gallery-content { padding: 8px 10px; display: grid; gap: 5px; }
.gallery-content small, .gallery-content span { color: var(--muted); font-size: 11px; }
.gallery-content strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 12px; }
.research-layout .feed-chips { justify-content: start; margin: 0 0 10px; }
.recent-data { margin-top: 14px; }
.recent-data ul { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin-bottom: 0; list-style: none; }
.retention-chart { width: 100%; height: auto; }
.retention-chart line { stroke: var(--line); }
.retention-chart polyline { fill: none; stroke: #6ca7ff; stroke-width: 2; }
.retention-chart circle { fill: #9dc5ff; }
.retention-chart text { fill: var(--muted); font-size: 10px; }
@media(max-width: 455px) {
  .sidebar .nav { display: flex; overflow-x: auto; }
  .sidebar .nav a { min-width: 58px; }
  .feed-intro { padding-top: 10px; }
  .video-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
