/* Vision Engine look for the public app (Vnusual 3D Directing Studio). Injected by tools/build-product.mjs only;
   the internal tool keeps its own colours. Source of the system: Gudmuf/Vision Engine deck
   (Archivo 500 wide for headings, DM Sans 300/400 body, #0F0F0F / #1F1F1F monochrome, glass cards, one sage accent #BFD5CF). */
:root {
  --bg: #0F0F0F; --panel: #171717; --panel2: #262626; --line: rgba(255,255,255,0.14); --text: #FFFFFF; --dim: #A3A3A3;
  --accent: #BFD5CF; --accent-ink: #0F0F0F; --r: 9px;
  --row-sel: #262626; --row-alt: #1B1B1B;
  --font-ui: 'DM Sans'; --font-head: 'Archivo';
}
html, body { font: 13px/1.4 'DM Sans', system-ui, sans-serif; letter-spacing: .005em; }
button { background: #222; border-color: var(--line); }
button:hover { border-color: rgba(255,255,255,0.32); }
button.on, button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 500; }
input[type=text], input[type=number], select { background: #121212; }

/* top bar: Vision Engine wordmark style */
.top { background: #0F0F0F; border-bottom-color: var(--line); }
.brand { font-family: 'Archivo', sans-serif; font-stretch: 112.5%; font-weight: 500; letter-spacing: -.01em; font-size: 14px; }
.brand i { width: 16px; height: 16px; border-radius: 4px; background: #FFFFFF; }
.brand i::after { inset: 4px; border: 2px solid #0F0F0F; border-radius: 2px; }
.brand small { font-family: 'DM Sans', sans-serif; font-stretch: 100%; font-weight: 400; color: #C9C9C9; font-size: 13px; }
.tabs { background: #171717; border: 1px solid var(--line); border-radius: 10px; }
.tabs button.on { background: #2E2E2E; font-weight: 500; }
.lictag { background: rgba(191,213,207,0.16) !important; color: var(--accent) !important; border: 1px solid rgba(191,213,207,0.4); font-weight: 500 !important; }
.lictag.free { background: rgba(255,255,255,0.08) !important; color: #C9C9C9 !important; border-color: var(--line); }
.menu .drop { background: rgba(30,30,30,0.96); backdrop-filter: blur(10px); border-color: var(--line); border-radius: 12px; }
.drop button:hover { background: rgba(255,255,255,0.06); }

/* side panel: section labels like the deck's small grey kickers, headings in Archivo */
.side { background: #141414; }
.side section { padding: 12px 14px; }
.side h3 { font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 12px; text-transform: none; letter-spacing: 0; color: #C9C9C9; }
.item { background: #1B1B1B; border-radius: 8px; }
.chips button { border-radius: 99px; }
.chips button.on { background: var(--accent); }

/* stage overlays as glass cards */
.badge, .stagebar label { background: rgba(48,48,48,0.78); border-color: rgba(255,255,255,0.22); backdrop-filter: blur(6px); }
#viewName { font-family: 'Archivo', sans-serif; font-stretch: 112.5%; font-weight: 500; }
#viewName b { color: var(--accent); }
#pipLabel { border-color: var(--accent); }

/* timeline + shot strip */
.bottom { background: #141414; }
.shot { background: #1B1B1B; border-radius: 10px; }
.shot.cur { border-color: var(--accent); }
.shot .meta b { font-family: 'Archivo', sans-serif; font-stretch: 112.5%; font-weight: 500; }
#busy div { background: rgba(30,30,30,0.96); border-color: rgba(255,255,255,0.22); border-radius: 12px; }
.brand, .brand small { white-space: nowrap; }
@media (max-width: 1100px) { .brand small { display: none; } }

/* store dialogs (js/store.js): welcome, help, buy, licence */
#btnHelp { width: 30px; padding: 5px 0; font-weight: 500; }
.vs-back { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.62); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.vs-modal { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: rgba(30,30,30,0.98); border: 1px solid rgba(255,255,255,0.22); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,0.6); color: #fff; }
.vs-modal.wide { width: min(600px, 100%); }
.vs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 6px; }
.vs-head h2 { margin: 0; font-family: 'Archivo', sans-serif; font-stretch: 112.5%; font-weight: 500; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.vs-x { background: none; border: 0; font-size: 22px; line-height: 1; color: #C9C9C9; padding: 0 2px; }
.vs-body { padding: 6px 22px 8px; font-size: 14px; line-height: 1.55; color: #E4E4E4; }
.vs-body p { margin: 8px 0; }
.vs-body a { color: var(--accent); }
.vs-note { color: #A3A3A3; font-size: 13px; }
.vs-note b { color: var(--accent); font-weight: 500; }
.vs-steps { margin: 10px 0; padding-left: 20px; }
.vs-steps li { margin-bottom: 6px; }
.vs-steps b { font-weight: 500; color: #fff; }
.vs-field { display: grid; gap: 5px; margin: 10px 0; }
.vs-field span, .vs-label { font-size: 12px; color: #C9C9C9; margin: 0; }
.vs-field input, .vs-key { width: 100%; background: #121212; border: 1px solid rgba(255,255,255,0.18); border-radius: 9px; padding: 9px 11px; color: #fff; font: inherit; }
.vs-key { font: 12px/1.5 'JetBrains Mono', monospace; resize: vertical; word-break: break-all; }
.vs-field input:focus, .vs-key:focus { outline: none; border-color: var(--accent); }
.vs-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; padding: 12px; border: 1px solid rgba(191,213,207,0.45); border-radius: 10px; background: rgba(191,213,207,0.06); font-size: 13px; color: #E4E4E4; cursor: pointer; }
.vs-check input { margin-top: 3px; accent-color: var(--accent); }
.vs-msg { color: #f0b4a8; font-size: 13px; min-height: 1em; }
.vs-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 22px 20px; }
.vs-actions button { padding: 9px 14px; border-radius: 9px; }
.vs-keys { width: 100%; border-collapse: collapse; font-size: 13px; }
.vs-keys td { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.08); vertical-align: top; }
.vs-keys td:first-child { width: 130px; }
.vs-keys kbd { font: 11px 'JetBrains Mono', monospace; background: #262626; border: 1px solid rgba(255,255,255,0.18); border-radius: 5px; padding: 2px 6px; }
