/* VideoText — global styles.
 *
 * Commit 2 adds design tokens + fonts under the handoff editorial aesthetic.
 * Palette is OKLCH-based (warm cream background, ink near-black, blue accent).
 * Tokens mirror the handoff bundle exactly; Tailwind is extended to expose them.
 */

:root {
  /* Surfaces */
  --bg:        #FBFAF7;  /* main app background — warm cream */
  --surface:   #FFFFFF;  /* cards, inputs */
  --panel:     #F3F0E9;  /* subtle callouts, hover fill */

  /* Text */
  --ink:       #17161A;  /* primary */
  --ink-2:     #2E2B33;  /* body */
  --mute:      #6B6770;  /* secondary / labels */
  --mute-2:    #9A959E;  /* tertiary / ghost */

  /* Lines */
  --line:      #E8E4DC;
  --line-2:    #D8D3C8;

  /* Semantic colors (OKLCH for perceptual uniformity across ramps) */
  --acc:       oklch(0.58 0.17 265);   /* brand blue */
  --acc-soft:  oklch(0.96 0.03 265);
  --acc-ink:   oklch(0.35 0.14 265);
  --ok:        oklch(0.62 0.14 155);   /* success green */
  --ok-soft:   oklch(0.95 0.04 155);
  --warn:      oklch(0.72 0.16 75);    /* warning amber */
  --warn-soft: oklch(0.96 0.05 75);
  --bad:       oklch(0.58 0.19 25);    /* error red */
  --bad-soft:  oklch(0.96 0.04 25);
}

/* ─── Global resets + typography ────────────────────────────────────── */

html {
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
::selection { background: var(--acc-soft); color: var(--acc-ink); }

[x-cloak] { display: none !important; }

.serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.mono {
  font-family: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;
  font-feature-settings: "zero";
}

/* Uppercase micro-label seen throughout the editorial layout */
.label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mute);
  font-weight: 600;
}

/* ─── Prose (brief / news detail bodies) ────────────────────────────── */

.prose h2 { margin: 1.5rem 0 0.4rem; font-weight: 600; font-size: 0.95rem; color: var(--ink); letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0.3rem 0 0.5rem 1.1rem; list-style: disc; }
.prose li { margin-bottom: 0.2rem; line-height: 1.55; }
.prose p { margin-bottom: 0.6rem; line-height: 1.6; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }

/* ─── Scrollbars ────────────────────────────────────────────────────── */

.scroll-thin::-webkit-scrollbar { width: 6px; height: 6px; }
.scroll-thin::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.scroll-thin::-webkit-scrollbar-track { background: transparent; }

.divider { height: 1px; background: var(--line); }

/* Inputs respect the accent on focus */
button { transition: all 120ms ease; }
/* Visible focus ring for keyboard nav (mouse clicks don't trigger :focus-visible) */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Skip-to-content link, hidden until focused via Tab */
.sr-skip {
  position: absolute; top: -40px; left: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px;
  font-size: 13px; text-decoration: none;
  transition: top 120ms;
}
.sr-skip:focus { top: 8px; }
/* Visually-hidden — for screen-reader-only labels */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
input, select, textarea { transition: border-color 120ms ease, box-shadow 120ms ease; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 4px var(--acc-soft);
}
input[type=range] { accent-color: var(--acc); }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); }

/* ─── Shared primitives (1:1 with handoff bundle) ───────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.01em;
  background: var(--panel); color: var(--ink-2);
  border: 1px solid var(--line);
}
.chip-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--mute-2); display: inline-block; }

.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px;
  background: var(--surface); color: var(--mute);
  border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 4px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 120ms ease;
}
.btn:hover { border-color: var(--line-2); background: var(--panel); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-primary:disabled:hover { background: var(--ink); }

.btn-acc { background: var(--acc); color: #fff; border-color: var(--acc); }
.btn-acc:hover { filter: brightness(1.05); }

.btn-ghost { background: transparent; border-color: transparent; color: var(--mute); }
.btn-ghost:hover { background: var(--panel); color: var(--ink); }

.text-input {
  width: 100%; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; color: var(--ink);
  outline: none;
  transition: all 120ms;
}
.text-input:focus { border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.text-input.mono { font-family: 'JetBrains Mono', monospace; font-size: 13px; }

/* A custom toggle that looks like iOS-ish. Click parent to flip .on. */
.toggle {
  position: relative; display: inline-block; width: 34px; height: 20px;
  background: var(--line-2); border-radius: 999px; transition: background 120ms;
  cursor: pointer; flex-shrink: 0;
}
.toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff; border-radius: 999px; transition: transform 160ms;
}
.toggle.on { background: var(--ink); }
.toggle.on::after { transform: translateX(14px); }

/* Hatched placeholder used while an image is being generated / missing. */
.placeholder-img {
  background:
    repeating-linear-gradient(135deg, var(--panel) 0 6px, transparent 6px 12px),
    var(--surface);
  border: 1px solid var(--line);
  color: var(--mute); font-family: 'JetBrains Mono', monospace; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}

/* Generic opacity pulse for activity indicators (uses currentColor, no theme tie-in) */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* Pulsing live-stream dot */
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--bad) 40%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in oklch, var(--bad) 0%, transparent); }
}
.live-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--bad);
  display: inline-block; animation: pulseDot 1.6s ease-out infinite;
}

/* Fade-in used on mount + tab switch */
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
.fade-in { animation: fadeSlide 200ms ease-out both; }

/* Row hover — used on history tables and link-like rows */
.row-h:hover { background: var(--panel); }

/* Editorial headline (used on tab entrances) */
.hair { background: var(--line); height: 1px; width: 100%; }

/* Modal backdrop + shell. Alpine drives visibility via x-show. */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: color-mix(in oklch, var(--ink) 25%, transparent);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.modal {
  background: var(--surface); border-radius: 16px;
  border: 1px solid var(--line);
  max-width: 780px; width: 100%; max-height: calc(100vh - 80px);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 30px 80px -20px color-mix(in oklch, var(--ink) 40%, transparent);
}

/* Segment separator dot — used inline in metadata strings */
.sep { color: var(--mute-2); margin: 0 6px; }

/* Assistant tab — sessions sidebar + chat area */
.vt-assistant-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 720px) {
  .vt-assistant-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Settings tab — left side-nav + content area */
.vt-settings-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 720px) {
  .vt-settings-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Settings field row: label / sub on left, control on right */
.vt-field {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.vt-field:first-of-type { border-top: none; padding-top: 0; }
.vt-field-label { min-width: 0; }
.vt-field-control { min-width: 0; }
@media (max-width: 720px) {
  .vt-field { grid-template-columns: 1fr; gap: 8px; }
}

/* News tab — single-column feed of cards (visual language + width matches stream cards) */
.vt-news-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* No max-width — stretch to the main content container (1280px minus padding),
     so news cards line up with stream cards above. */
}
.vt-news-card {
  padding: 22px 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 120ms, box-shadow 120ms, transform 120ms;
}
.vt-news-card:hover {
  border-color: var(--line-2);
  box-shadow: 0 4px 12px -4px color-mix(in oklch, var(--ink) 8%, transparent);
}
/* Headline slightly bigger in feed layout */
.vt-news-grid .vt-news-card > h3 {
  font-size: 24px !important;
  margin-bottom: 12px !important;
}
.vt-news-grid .vt-news-card > blockquote {
  font-size: 14.5px !important;
}

/* Streams tab — active stream card layout: info | sparkline | counters | actions */
.vt-stream-row {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 140px 200px auto;
  gap: 20px;
  align-items: center;
}
@media (max-width: 1024px) {
  .vt-stream-row { grid-template-columns: 1fr 1fr; }
  .vt-stream-row > *:nth-child(4) { grid-column: span 2; justify-content: flex-start; }
}

/* Streams tab — KPI strip across the top */
.vt-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.vt-stat { padding: 18px 22px; }
@media (max-width: 720px) {
  .vt-stats-strip { grid-template-columns: repeat(2, 1fr); }
  .vt-stat { border-left: none !important; border-top: 1px solid var(--line); }
  .vt-stat:nth-child(-n+2) { border-top: none; }
}

/* Video tab — transcript / brief side-by-side. Stacks on narrow screens. */
.vt-result-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .vt-result-grid { grid-template-columns: 1fr; }
}

/* Inline minimal-chrome select used in option strips below editorial inputs */
.vt-select-mini {
  border: none;
  border-bottom: 1px solid var(--line-2);
  background: transparent;
  padding: 2px 16px 2px 4px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'><path d='M1 3l3 3 3-3' stroke='%239A959E' fill='none' stroke-width='1.2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
}
.vt-select-mini:focus { outline: none; border-bottom-color: var(--acc); box-shadow: none; }

/* Spinner (inline, currentColor) */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 10px; height: 10px; border: 1.5px solid currentColor; border-top-color: transparent;
  border-radius: 999px; display: inline-block;
  animation: spin 0.9s linear infinite;
}

/* ─── Responsive overrides ──────────────────────────────────────────
 * Breakpoints:
 *   ≤900px — tablet: 2-col grids collapse, headlines shrink to 36px
 *   ≤640px — phone: top bar wraps, editorial h1 → 28px, padding tightens
 */

@media (max-width: 900px) {
  /* Editorial headlines */
  h1.serif { font-size: 36px !important; line-height: 1.1; }

  /* Sticky top bar — let the cluster wrap below tabs */
  header > div { flex-wrap: wrap; gap: 12px !important; padding: 10px 16px !important; }
  header nav { order: 3; flex: 0 0 100%; justify-content: flex-start !important; overflow-x: auto; padding-bottom: 4px; }

  /* Main content padding */
  main { padding: 24px 16px 80px !important; }

  /* Modal — full width with side margin */
  .modal { max-width: 95vw !important; max-height: 90vh !important; }
  .modal-backdrop { padding: 16px !important; }
}

@media (max-width: 640px) {
  body { font-size: 13px; }
  h1.serif { font-size: 28px !important; }
  .label { font-size: 9.5px; letter-spacing: 0.1em; }

  /* Card paddings get tighter */
  .card { border-radius: 10px; }

  /* Wordmark smaller */
  header .serif { font-size: 22px !important; }

  /* RU/EN pill stays visible but tighter */
  header .kbd { display: none; }  /* hide ⌘K hint on small screens */

  /* Footer wraps */
  footer { padding: 16px !important; flex-direction: column; align-items: flex-start !important; gap: 8px !important; }
}

/* ─── Loading skeletons ─────────────────────────────────────────────
 * Use `.skel` on a block to get a shimmering placeholder.
 * Pair with explicit width/height inline to get the shape.
 */
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}
.skel {
  background: linear-gradient(90deg, var(--panel) 0%, var(--line) 50%, var(--panel) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
  display: inline-block;
  color: transparent;
  user-select: none;
}

/* Slide-in assistant panel — full width on phones */
@media (max-width: 480px) {
  div[x-data="assistantPanel()"] > div[x-show="open"] {
    width: 100% !important;
    max-width: 100vw !important;
  }
}

/* AI Editor inline controls */
.editor-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border, #3a3a3a);
}

.editor-actions button {
  font-size: 12px;
  padding: 4px 8px;
  background: var(--btn-bg, #2a2a2a);
  color: var(--btn-fg, #e6e6e6);
  border: 1px solid var(--border, #3a3a3a);
  border-radius: 4px;
  cursor: pointer;
}

.editor-actions button:hover:not(:disabled) {
  background: var(--btn-bg-hover, #333);
}

.editor-actions button:disabled {
  opacity: 0.6;
  cursor: default;
}

.editor-preview {
  margin-top: 8px;
  padding: 8px;
  background: rgba(255, 235, 100, 0.06);
  border: 1px solid rgba(255, 235, 100, 0.28);
  border-radius: 4px;
}

.editor-preview-diff {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.editor-preview-before,
.editor-preview-after {
  display: flex;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 3px;
  font-size: 13px;
}

.editor-preview-before {
  background: rgba(255, 50, 50, 0.10);
}

.editor-preview-after {
  background: rgba(50, 200, 100, 0.10);
}

.editor-preview-label {
  flex: 0 0 36px;
  opacity: 0.7;
  font-weight: 600;
}

.editor-preview-text {
  flex: 1;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.editor-preview-actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
}

.editor-preview-actions button {
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
}

/* AI Editor settings page */
.editor-panel {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--border, #3a3a3a);
  border-radius: 4px;
}

.editor-panel h3 {
  margin: 0 0 10px 0;
}

.editor-history-box {
  max-height: 400px;
  overflow-y: auto;
}

.editor-history-row {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border, #3a3a3a);
}

.editor-history-row:last-child {
  border-bottom: none;
}

.editor-history-title {
  font-size: 13px;
  font-weight: 500;
}

.editor-history-meta {
  font-size: 11px;
  opacity: 0.6;
}

.editor-defaults-box .editor-default-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.editor-defaults-box label {
  font-size: 12px;
  font-weight: 500;
}

.editor-defaults-box input,
.editor-defaults-box select {
  padding: 4px 6px;
  font-size: 13px;
  background: var(--input-bg, #222);
  color: var(--input-fg, #e6e6e6);
  border: 1px solid var(--border, #3a3a3a);
  border-radius: 3px;
}

.editor-defaults-box button {
  margin-top: 4px;
  padding: 4px 12px;
  cursor: pointer;
}

.editor-save-hint {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 6px;
  min-height: 18px;
}

/* ════════════════════════════════════════════════════════════ */
/* AI Editor workspace — 2-column layout                       */
/* ════════════════════════════════════════════════════════════ */

.editor-workspace {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
  max-width: 1280px;
}

.editor-workspace-left {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: var(--panel-bg, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border, #3a3a3a);
  border-radius: 6px;
}

.editor-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editor-filters label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.editor-filter-label {
  font-size: 11px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.editor-filters select,
.editor-filters input {
  padding: 4px 6px;
  font-size: 13px;
  background: var(--input-bg, #222);
  color: var(--input-fg, #e6e6e6);
  border: 1px solid var(--border, #3a3a3a);
  border-radius: 3px;
}

.editor-items-meta {
  font-size: 11px;
  opacity: 0.6;
  padding: 4px 0;
  border-top: 1px dashed var(--border, #3a3a3a);
}

.editor-items-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.editor-item-row {
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s;
}

.editor-item-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border, #3a3a3a);
}

.editor-item-row.is-selected {
  background: rgba(100, 150, 255, 0.12);
  border-color: rgba(100, 150, 255, 0.5);
}

.editor-item-row-title {
  font-size: 13px;
  line-height: 1.3;
}

.editor-item-row-meta {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 2px;
}

.editor-workspace-right {
  min-height: 400px;
}

.editor-empty {
  padding: 80px 0;
  text-align: center;
  color: var(--mute, #888);
  font-size: 16px;
}

.editor-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border, #3a3a3a);
}

.editor-item-header h2 {
  margin: 0;
  font-size: 20px;
}

.editor-item-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--chip-bg, rgba(255, 255, 255, 0.08));
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.editor-item-status[data-status="approved"] { background: rgba(50, 180, 100, 0.25); }
.editor-item-status[data-status="rejected"] { background: rgba(220, 70, 70, 0.25); }
.editor-item-status[data-status="exported"] { background: rgba(100, 150, 255, 0.25); }

.editor-item-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.editor-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.editor-field-label {
  font-size: 11px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.editor-field-value {
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.editor-image-thumb {
  max-width: 240px;
  max-height: 180px;
  border-radius: 4px;
  border: 1px solid var(--border, #3a3a3a);
}

.editor-tz {
  margin: 14px 0 10px;
  padding: 10px 12px;
  border: 1px dashed var(--border, #3a3a3a);
  border-radius: 6px;
}

.editor-tz textarea {
  width: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  font-size: 13px;
  background: var(--input-bg, #222);
  color: var(--input-fg, #e6e6e6);
  border: 1px solid var(--border, #3a3a3a);
  border-radius: 3px;
  resize: vertical;
  font-family: inherit;
}

.editor-tz-hint {
  font-size: 11px;
  opacity: 0.55;
  margin-top: 4px;
}

.editor-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.editor-actions-bar button {
  padding: 6px 12px;
  font-size: 13px;
  background: var(--btn-bg, #2a2a2a);
  color: var(--btn-fg, #e6e6e6);
  border: 1px solid var(--border, #3a3a3a);
  border-radius: 4px;
  cursor: pointer;
}

.editor-actions-bar button:hover:not(:disabled) {
  background: var(--btn-bg-hover, #333);
}

.editor-preview-container {
  min-height: 0;
}

.editor-preview-loading,
.editor-preview-error,
.editor-preview-ok {
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 13px;
}

.editor-preview-loading { background: rgba(100, 150, 255, 0.1); }
.editor-preview-error   { background: rgba(220, 70, 70, 0.15); }
.editor-preview-ok      { background: rgba(50, 180, 100, 0.2); }

.editor-preview-card {
  padding: 12px;
  margin-bottom: 14px;
  background: rgba(255, 220, 100, 0.06);
  border: 1px solid rgba(255, 220, 100, 0.3);
  border-radius: 6px;
}

.editor-preview-field {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.editor-collapse {
  margin-top: 10px;
  border-top: 1px dashed var(--border, #3a3a3a);
  padding-top: 8px;
}

.editor-collapse summary {
  cursor: pointer;
  font-size: 13px;
  opacity: 0.85;
  padding: 6px 0;
  user-select: none;
}

.editor-collapse summary:hover { opacity: 1; }

.editor-collapse > :not(summary) {
  padding-top: 10px;
}

@media (max-width: 900px) {
  .editor-workspace {
    grid-template-columns: 1fr;
  }
  .editor-workspace-left {
    position: static;
    max-height: none;
  }
  .editor-field-row {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════════════════
   BILLING / SUBSCRIPTION layer (added with the credits + AI-News feature)
   Reuses :root tokens, .card and .btn from above.
   ════════════════════════════════════════════════════════════════════ */

/* header balance pill */
.vt-balance-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  font-size: 12px; cursor: pointer; transition: filter .15s;
}
.vt-balance-pill:hover { filter: brightness(1.12); }
.vt-balance-amt { font-weight: 700; letter-spacing: .01em; }
.vt-balance-plan {
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  background: rgba(255,255,255,.16); padding: 2px 7px; border-radius: 999px;
}

/* section headers */
.vt-head { margin-bottom: 28px; }
.vt-h1 { font-size: 32px; letter-spacing: -.02em; margin: 0 0 6px; }
.vt-h2 { font-size: 16px; font-weight: 600; margin: 0; }
.vt-sub { color: var(--mute); font-size: 14px; max-width: 720px; line-height: 1.5; }
.vt-mute { color: var(--mute); }
.vt-pad { padding: 22px; }
.vt-w100 { width: 100%; justify-content: center; }
.vt-rowhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.vt-empty { color: var(--mute-2); font-size: 13.5px; padding: 22px; text-align: center;
  border: 1px dashed var(--line-2); border-radius: 12px; }

/* form fields */
.vt-field { margin-bottom: 16px; }
.vt-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.vt-hint { font-size: 11.5px; color: var(--mute-2); margin-top: 5px; line-height: 1.4; }
.vt-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2);
  border-radius: 9px; background: var(--surface); font-size: 13.5px; color: var(--ink);
}
.vt-input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.vt-range { width: 100%; accent-color: var(--acc); }
.vt-range-val { font-size: 13px; color: var(--mute); margin-top: 4px; }

/* recognize layout */
.vt-reco-grid { display: grid; grid-template-columns: minmax(340px, 440px) 1fr; gap: 24px; align-items: start; }
@media (max-width: 880px) { .vt-reco-grid { grid-template-columns: 1fr; } }

/* cost breakdown */
.vt-cost { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.vt-cost-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.vt-cost-total { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700;
  margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.vt-flash { margin-top: 10px; font-size: 12.5px; color: var(--ok); font-weight: 500; }

/* jobs */
.vt-job { padding: 16px 18px; margin-bottom: 12px; }
.vt-job-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.vt-job-title { font-weight: 600; font-size: 14px; }
.vt-job-meta { font-size: 12px; color: var(--mute); margin-top: 5px; }
.vt-cost-tag { color: var(--bad); font-weight: 600; }
.vt-status { font-size: 11px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.vt-status-processing { background: var(--warn-soft); color: oklch(0.45 0.13 75); }
.vt-status-done { background: var(--ok-soft); color: oklch(0.38 0.12 155); }
.vt-bar { height: 5px; background: var(--line); border-radius: 999px; margin-top: 12px; overflow: hidden; }
.vt-bar-fill { height: 100%; background: var(--acc); border-radius: 999px; transition: width .8s ease; }
.vt-job-tx { margin-top: 12px; font-size: 12.5px; color: var(--ink-2); line-height: 1.55;
  background: var(--panel); padding: 12px 14px; border-radius: 8px; }

/* account hero */
.vt-hero { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  background: var(--ink); color: #fff; border-radius: 16px; padding: 28px 32px; margin-bottom: 22px; }
.vt-hero-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .6; }
.vt-hero-amt { font-size: 46px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0; }
.vt-hero-plan { font-size: 13px; opacity: .85; }
.vt-chip-addon { font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  background: var(--acc); padding: 2px 8px; border-radius: 999px; margin-left: 8px; }
.vt-hero-usage { display: flex; gap: 28px; align-items: flex-end; }
.vt-hero-usage > div { display: flex; flex-direction: column; gap: 3px; }
.vt-hero-usage .vt-mute { color: rgba(255,255,255,.55); font-size: 11.5px; }
.vt-hero-usage b { font-size: 18px; }

/* sub-nav */
.vt-subnav { display: flex; gap: 6px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.vt-subnav button { padding: 9px 14px; font-size: 13.5px; color: var(--mute);
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.vt-subnav button:hover { color: var(--ink); }
.vt-subnav-on { color: var(--ink) !important; border-bottom-color: var(--ink) !important; font-weight: 600; }

/* 3-up card grids */
.vt-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .vt-cards3 { grid-template-columns: 1fr; } }

/* top-up packs */
.vt-pack { padding: 24px; text-align: center; position: relative; }
.vt-pack-pop { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.vt-pack-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--acc); color: #fff; font-size: 10px; text-transform: uppercase;
  letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; }
.vt-pack-credits { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.vt-pack-bonus { font-size: 12px; color: var(--ok); margin-top: 2px; }
.vt-pack-price { font-size: 16px; color: var(--mute); margin: 12px 0 16px; }

/* plans */
.vt-plan { padding: 24px; display: flex; flex-direction: column; }
.vt-plan-on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.vt-plan-name { font-size: 18px; font-weight: 700; }
.vt-plan-price { margin: 6px 0 16px; }
.vt-plan-price b { font-size: 28px; letter-spacing: -.02em; }
.vt-plan-price span { color: var(--mute); font-size: 14px; }
.vt-plan-feats { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.vt-plan-feats li { font-size: 13px; color: var(--ink-2); padding: 6px 0 6px 22px; position: relative; }
.vt-plan-feats li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* gate / add-on */
.vt-gate { text-align: center; }
.vt-gate-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.vt-gate p { margin: 0 auto 16px; max-width: 460px; }
.vt-addon { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.vt-addon-title { font-size: 16px; font-weight: 600; margin-bottom: 3px; }

/* channels */
.vt-ch-add { display: flex; gap: 8px; }
.vt-ch-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.vt-ch { display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; }
.vt-ch-toggle { width: 34px; height: 20px; border-radius: 999px; background: var(--line-2);
  position: relative; flex-shrink: 0; transition: background .15s; }
.vt-ch-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: transform .15s; }
.vt-ch-toggle.on { background: var(--ok); }
.vt-ch-toggle.on::after { transform: translateX(14px); }
.vt-ch-info { flex: 1; min-width: 0; }
.vt-ch-name { font-weight: 600; font-size: 13.5px; }
.vt-ch-url { font-size: 11px; color: var(--mute-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* live feed */
.vt-live { font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 2px 8px;
  border-radius: 999px; background: var(--line-2); color: var(--mute); margin-left: 8px; vertical-align: middle; }
.vt-live.on { background: var(--bad-soft); color: var(--bad); }
.vt-live.on::before { content: '● '; }
.vt-warn { background: var(--warn-soft); color: oklch(0.42 0.13 75); font-size: 13px;
  padding: 10px 14px; border-radius: 9px; margin-bottom: 12px; }
.vt-feed { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.vt-feed-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); animation: vtFeedIn .35s ease; }
@keyframes vtFeedIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.vt-feed-head { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 4px; }
.vt-feed-ch { font-weight: 600; color: var(--acc-ink); }
.vt-feed-cost { color: var(--mute-2); }
.vt-feed-headline { font-size: 14px; color: var(--ink); line-height: 1.4; }

/* transactions */
.vt-tx-list { display: flex; flex-direction: column; }
.vt-tx { display: grid; grid-template-columns: 10px 1fr auto auto; align-items: center; gap: 14px;
  padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.vt-tx-kind { width: 8px; height: 8px; border-radius: 50%; background: var(--mute-2); }
.vt-tx-topup, .vt-tx-grant { background: var(--ok); }
.vt-tx-charge { background: var(--bad); }
.vt-tx-sub { background: var(--acc); }
.vt-tx-label { color: var(--ink-2); }
.vt-tx-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.vt-tx-amt.neg { color: var(--bad); }
.vt-tx-amt.pos { color: var(--ok); }
.vt-tx-bal { font-variant-numeric: tabular-nums; min-width: 80px; text-align: right; }

/* ════════════════════════════════════════════════════════════════════
   APP HEADER (refactored from inline styles) + USER MENU
   ════════════════════════════════════════════════════════════════════ */
.appbar { position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.appbar-inner { max-width: 1320px; margin: 0 auto; padding: 11px 28px;
  display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: 7px; flex-shrink: 0; }
.brand-name { font-size: 23px; letter-spacing: -.02em; color: var(--ink); }
.brand-ver { font-size: 10px; color: var(--mute-2); text-transform: uppercase; letter-spacing: .06em; }

.appnav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.appnav-btn { display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 9px; font-size: 13px; font-weight: 500;
  color: var(--mute); border: 1px solid transparent; transition: background .12s, color .12s; white-space: nowrap; }
.appnav-btn:hover { color: var(--ink); background: var(--panel); }
.appnav-btn.on { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.appnav-ico { width: 15px; height: 15px; display: inline-flex; }
.appnav-ico svg { width: 100%; height: 100%; }

.appbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.iconbtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px;
  border-radius: 9px; color: var(--mute); border: 1px solid transparent; }
.iconbtn:hover { background: var(--panel); color: var(--ink); }

.langtoggle { display: flex; background: var(--line-2); border-radius: 999px; padding: 3px; }
.langtoggle button { padding: 4px 11px; font-size: 11px; font-weight: 700; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.langtoggle button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.usermenu { position: relative; }
.useravatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff;
  font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.useravatar:hover { filter: brightness(1.15); }
.usermenu-pop { position: absolute; right: 0; top: 44px; width: 230px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 6px; z-index: 40; }
.usermenu-id { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.usermenu-name { font-weight: 600; font-size: 13.5px; }
.usermenu-email { font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; }
.usermenu-item { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px;
  font-size: 13px; color: var(--ink-2); }
.usermenu-item:hover { background: var(--panel); }
.usermenu-item.danger { color: var(--bad); }

@media (max-width: 1080px) {
  .appnav-btn span:not(.appnav-ico) { display: none; }   /* icons only on narrow */
  .appnav-btn { padding: 8px; }
}

/* ════════════════════════════════════════════════════════════════════
   PUBLIC LANDING
   ════════════════════════════════════════════════════════════════════ */
#public { background: var(--bg); }
.btn-lg { padding: 12px 22px; font-size: 14.5px; border-radius: 11px; }

.pub-bar { position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklch, var(--bg) 88%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.pub-bar-inner { max-width: 1100px; margin: 0 auto; padding: 16px 28px; display: flex; align-items: center; gap: 28px; }
.pub-links { display: flex; gap: 26px; flex: 1; }
.pub-links a { font-size: 14px; color: var(--mute); }
.pub-links a:hover { color: var(--ink); }
.pub-bar-actions { display: flex; gap: 10px; }
@media (max-width: 720px) { .pub-links { display: none; } }

.pub-hero { max-width: 880px; margin: 0 auto; padding: 80px 28px 40px; text-align: center; }
.pub-hero-badge { display: inline-block; font-size: 12px; font-weight: 600; color: var(--acc-ink);
  background: var(--acc-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 26px; }
.pub-hero-h1 { font-size: 54px; line-height: 1.08; letter-spacing: -.025em; margin: 0 0 22px; color: var(--ink); }
.pub-hero-sub { font-size: 18px; line-height: 1.55; color: var(--mute); max-width: 660px; margin: 0 auto 32px; }
.pub-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pub-hero-note { font-size: 13px; color: var(--mute-2); margin-top: 16px; }
@media (max-width: 640px) { .pub-hero-h1 { font-size: 36px; } .pub-hero { padding-top: 48px; } }

/* mock preview */
.pub-mock { max-width: 720px; margin: 56px auto 0; border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.10); background: var(--surface); }
.pub-mock-bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.pub-mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.pub-mock-body { padding: 22px; text-align: left; }
.pub-mock-live { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--bad); margin-bottom: 14px; }
.pub-mock-item { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 10px; }
.pub-mock-item b { font-size: 14px; font-weight: 500; color: var(--ink); }
.pub-mock-item span { font-size: 11.5px; color: var(--mute-2); white-space: nowrap; }

.pub-section { max-width: 1040px; margin: 0 auto; padding: 72px 28px; }
.pub-section-alt { max-width: none; background: var(--panel); }
.pub-section-alt > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.pub-section-head { text-align: center; margin-bottom: 44px; }
.pub-h2 { font-size: 36px; letter-spacing: -.02em; margin: 0 0 12px; color: var(--ink); }
.pub-lead { font-size: 16px; color: var(--mute); max-width: 600px; margin: 0 auto; line-height: 1.5; }

.pub-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pub-step { padding: 8px; }
.pub-step-num { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff;
  font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.pub-step h3 { font-size: 18px; margin: 0 0 8px; color: var(--ink); }
.pub-step p { font-size: 14px; color: var(--mute); line-height: 1.55; margin: 0; }
@media (max-width: 760px) { .pub-steps { grid-template-columns: 1fr; } }

.pub-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pub-feat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.pub-feat-ico { font-size: 26px; margin-bottom: 12px; }
.pub-feat h3 { font-size: 16px; margin: 0 0 7px; color: var(--ink); }
.pub-feat p { font-size: 13.5px; color: var(--mute); line-height: 1.5; margin: 0; }
@media (max-width: 820px) { .pub-feats { grid-template-columns: 1fr; } }

.pub-cta { text-align: center; padding: 80px 28px; }
.pub-cta h2 { font-size: 34px; letter-spacing: -.02em; margin: 0 0 10px; color: var(--ink); }
.pub-cta p { font-size: 16px; color: var(--mute); margin: 0 0 26px; }

.pub-footer { max-width: 1040px; margin: 0 auto; padding: 30px 28px 60px; display: flex;
  align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute-2); }
.pub-footer .serif { font-size: 18px; color: var(--ink); }
.pub-footer a { color: var(--mute); margin-left: auto; }
.pub-footer a:hover { color: var(--ink); }

/* ════════════════════════════════════════════════════════════════════
   AUTH MODAL
   ════════════════════════════════════════════════════════════════════ */
.auth-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(20,18,24,.5); backdrop-filter: blur(4px); padding: 20px; }
.auth-card { position: relative; width: 100%; max-width: 400px; background: var(--surface);
  border-radius: 18px; padding: 30px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.auth-close { position: absolute; top: 16px; right: 18px; font-size: 16px; color: var(--mute-2); }
.auth-close:hover { color: var(--ink); }
.auth-tabs { display: flex; gap: 4px; background: var(--panel); border-radius: 10px; padding: 4px; margin-bottom: 22px; }
.auth-tabs button { flex: 1; padding: 8px; font-size: 13.5px; font-weight: 600; border-radius: 7px; color: var(--mute); }
.auth-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.auth-title { font-size: 24px; margin: 0 0 20px; color: var(--ink); }
.auth-error { background: var(--bad-soft); color: var(--bad); font-size: 13px; padding: 9px 12px;
  border-radius: 9px; margin-bottom: 14px; }
.auth-submit { margin-top: 6px; padding: 11px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--mute); margin-top: 16px; }
.auth-switch a { color: var(--acc); cursor: pointer; font-weight: 600; }
.auth-note { text-align: center; font-size: 11.5px; color: var(--mute-2); margin-top: 14px; line-height: 1.4; }

/* ════════════════════════════════════════════════════════════════════
   CUSTOM DROPDOWNS — platform-styled boxed selects.
   One global rule restyles every <select> except the minimal editorial
   strip (.vt-select-mini). Specificity (0,1,1) beats Tailwind utilities.
   ════════════════════════════════════════════════════════════════════ */
select:not(.vt-select-mini),
.vt-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  font: inherit; font-size: 13px; line-height: 1.2; color: var(--ink);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none' stroke='%236B6770' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 12px;
  border: 1px solid var(--line-2); border-radius: 9px;
  padding: 8px 32px 8px 12px; cursor: pointer; min-width: 130px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
select:not(.vt-select-mini):hover,
.vt-select:hover { border-color: var(--mute-2); }
select:not(.vt-select-mini):focus,
.vt-select:focus,
select:not(.vt-select-mini):focus-visible {
  outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft);
}
select:not(.vt-select-mini):disabled { opacity: .5; cursor: not-allowed; }
/* options: at least apply platform font (panel itself stays OS-native) */
select:not(.vt-select-mini) option { color: var(--ink); background: var(--surface); }
