/* Ad Engine Studio — electric blue on deep navy, cyan + violet accents */
:root {
  --bg: #040817;
  --bg-2: #070d22;
  --panel: rgba(13, 22, 52, 0.62);
  --panel-solid: #0b1430;
  --panel-2: rgba(20, 34, 78, 0.55);
  --line: rgba(120, 160, 255, 0.14);
  --line-2: rgba(120, 160, 255, 0.26);
  --blue: #2f7bff;
  --blue-2: #5b9bff;
  --blue-deep: #1a4fd6;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --mint: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --text: #e8eeff;
  --text-2: #b6c3e6;
  --muted: #7f90bd;
  --radius: 16px;
  --radius-sm: 10px;
  --glow: 0 0 0 1px rgba(47, 123, 255, .35), 0 8px 30px -8px rgba(47, 123, 255, .55);
  --grad: linear-gradient(135deg, #22d3ee 0%, #2f7bff 55%, #8b5cf6 120%);
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text); font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(47, 123, 255, .45); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(120, 160, 255, .18); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(91, 155, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 155, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 0%, #000 30%, transparent 75%);
}
.bg-glow {
  position: fixed; inset: -20% -10% auto auto; width: 70vw; height: 70vh; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(47, 123, 255, .22), transparent), radial-gradient(closest-side at 30% 60%, rgba(139, 92, 246, .14), transparent);
  filter: blur(20px);
}

/* ---------- shell ---------- */
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 240px 1fr; height: 100vh; }
.sidebar {
  display: flex; flex-direction: column; gap: 22px; padding: 22px 16px;
  background: linear-gradient(180deg, rgba(8, 15, 38, .9), rgba(5, 10, 26, .9));
  border-right: 1px solid var(--line); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; position: relative; flex: none;
  background: var(--grad); box-shadow: 0 0 24px rgba(47, 123, 255, .6);
}
.brand-mark::after {
  content: ''; position: absolute; inset: 9px 8px 8px; background: #050b1f;
  clip-path: polygon(50% 0, 100% 100%, 70% 100%, 50% 55%, 30% 100%, 0 100%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--display); }
.brand-text b { font-size: 15px; letter-spacing: .14em; }
.brand-text small { font-size: 10px; letter-spacing: .5em; color: var(--cyan); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--text-2); font-weight: 500; transition: .15s;
}
.nav a:hover { background: rgba(47, 123, 255, .08); color: var(--text); }
.nav a.active { background: linear-gradient(90deg, rgba(47, 123, 255, .22), rgba(47, 123, 255, .04)); color: #fff; box-shadow: inset 2px 0 0 var(--cyan); }
.nav svg { width: 18px; height: 18px; }
.nav .nav-cta { margin-top: 10px; background: var(--grad); color: #fff; justify-content: center; font-weight: 600; box-shadow: var(--glow); }
.nav .nav-cta:hover { filter: brightness(1.1); background: var(--grad); }
.sidebar-foot { margin-top: auto; }
.storage-pill { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-size: 12px; color: var(--text-2); }
.storage-pill svg { width: 18px; height: 18px; flex: none; }
.storage-pill b { display: block; color: var(--text); font-size: 12.5px; }
.storage-pill.on svg { color: var(--mint); }
.storage-pill.off svg { color: var(--amber); }

.main { overflow-y: auto; height: 100vh; }
.page { padding: 34px 40px 80px; max-width: 1320px; margin: 0 auto; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -.01em; }
h1 { font-size: 34px; line-height: 1.1; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
.eyebrow { font: 600 11px/1 var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--cyan); }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); }

/* ---------- primitives ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(14px); padding: 22px; position: relative;
}
.card.glow::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(34, 211, 238, .55), rgba(47, 123, 255, .1) 40%, rgba(139, 92, 246, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h3 { display: flex; align-items: center; gap: 10px; }
.card-head h3 svg { width: 18px; height: 18px; color: var(--blue-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--line-2); background: rgba(20, 34, 78, .5); cursor: pointer;
  font-weight: 600; font-size: 13.5px; transition: .15s; white-space: nowrap; color: var(--text);
}
.btn:hover { border-color: rgba(91, 155, 255, .6); background: rgba(47, 123, 255, .14); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: rgba(47, 123, 255, .1); color: var(--text); }
.btn.danger:hover { border-color: rgba(251, 113, 133, .6); background: rgba(251, 113, 133, .12); color: var(--rose); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 13px; }
.btn.icon { width: 36px; padding: 0; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--text-2); letter-spacing: .02em; }
.input, .select, .textarea {
  width: 100%; background: rgba(4, 9, 26, .65); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; outline: none; transition: .15s;
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 123, 255, .2); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%237f90bd' stroke-width='2'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.select option { background: var(--panel-solid); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line-2); background: rgba(20, 34, 78, .5); color: var(--text-2); white-space: nowrap; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.blue { color: var(--blue-2); border-color: rgba(47, 123, 255, .4); background: rgba(47, 123, 255, .12); }
.chip.cyan { color: var(--cyan); border-color: rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .1); }
.chip.mint { color: var(--mint); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .1); }
.chip.amber { color: var(--amber); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .1); }
.chip.rose { color: var(--rose); border-color: rgba(251, 113, 133, .35); background: rgba(251, 113, 133, .1); }
.chip.violet { color: #b49cff; border-color: rgba(139, 92, 246, .4); background: rgba(139, 92, 246, .12); }
.chip.pulse .dot { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }

.grid { display: grid; gap: 18px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* ---------- home ---------- */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: stretch; margin-bottom: 26px;
}
.hero-main { padding: 34px; overflow: hidden; }
.hero-main h1 { font-size: 40px; margin: 12px 0 12px; }
.hero-main p { color: var(--text-2); max-width: 520px; margin: 0 0 24px; font-size: 15px; }
.hero-orb {
  position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, rgba(34, 211, 238, .55), rgba(47, 123, 255, .25) 45%, transparent 70%);
  filter: blur(4px); animation: float 8s ease-in-out infinite;
}
.hero-orb::after { content: ''; position: absolute; inset: 60px; border-radius: 50%; border: 1px solid rgba(34, 211, 238, .35); animation: spin 18s linear infinite; border-top-color: transparent; }
@keyframes float { 50% { transform: translate(-14px, 12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.flow-step { text-align: center; font-size: 11.5px; color: var(--muted); }
.flow-step i { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 8px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(47, 123, 255, .1); color: var(--blue-2); }
.flow-step svg { width: 18px; height: 18px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { padding: 18px 20px; }
.stat b { display: block; font: 700 30px/1.1 var(--display); margin-top: 6px; }
.stat small { color: var(--muted); font-size: 12px; }
.stat .ico { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(47, 123, 255, .12); color: var(--blue-2); }
.stat .ico svg { width: 17px; height: 17px; }

.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.job-card { padding: 0; overflow: hidden; cursor: pointer; transition: .2s; }
.job-card:hover { transform: translateY(-3px); border-color: rgba(91, 155, 255, .45); box-shadow: 0 18px 40px -20px rgba(47, 123, 255, .6); }
.job-cover { height: 130px; background: linear-gradient(135deg, #0d1a44, #172a66); position: relative; overflow: hidden; }
.job-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.job-cover .chip { position: absolute; left: 12px; top: 12px; backdrop-filter: blur(8px); background: rgba(4, 9, 26, .72); }
.job-del { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line-2);
  background: rgba(4, 9, 26, .75); color: var(--text-2); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: .15s; backdrop-filter: blur(8px); }
.job-del svg { width: 15px; height: 15px; }
.job-card:hover .job-del, .job-del:focus-visible { opacity: 1; }
.job-del:hover { color: var(--rose); border-color: rgba(251, 113, 133, .6); background: rgba(60, 10, 25, .85); }
@media (hover: none) { .job-del { opacity: 1; } }
.job-cover .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(91, 155, 255, .4); }
.job-cover .ph svg { width: 40px; height: 40px; }
.job-body { padding: 16px; }
.job-body h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 6px; }
.progress { height: 4px; border-radius: 4px; background: rgba(120, 160, 255, .12); overflow: hidden; margin-top: 14px; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: inherit; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty svg { width: 44px; height: 44px; color: var(--blue-2); opacity: .6; }

/* ---------- job page ---------- */
.job-head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 22px; }
.job-head .title-input { background: transparent; border: 0; outline: none; font: 700 30px/1.15 var(--display); width: 100%; padding: 4px 0; border-bottom: 1px dashed transparent; }
.job-head .title-input:focus { border-bottom-color: var(--line-2); }
.stepper { display: flex; gap: 6px; margin-bottom: 26px; padding: 6px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(10px); overflow-x: auto; }
.step { flex: 1; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 11px; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; border: 0; background: transparent; min-width: 120px; }
.step .n { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; font: 700 12px var(--display); border: 1px solid var(--line-2); }
.step.done { color: var(--text-2); }
.step.done .n { background: rgba(52, 211, 153, .14); border-color: rgba(52, 211, 153, .4); color: var(--mint); }
.step.current { background: linear-gradient(90deg, rgba(47, 123, 255, .28), rgba(47, 123, 255, .08)); color: #fff; }
.step.current .n { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 14px rgba(47, 123, 255, .7); }
.step.locked { opacity: .45; cursor: default; }
.step svg { width: 14px; height: 14px; }

.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.sticky { position: sticky; top: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-4 { grid-column: span 4; }

.drop {
  border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 22px; text-align: center; cursor: pointer;
  background: rgba(4, 9, 26, .4); transition: .15s; color: var(--text-2);
}
.drop:hover, .drop.over { border-color: var(--cyan); background: rgba(34, 211, 238, .06); }
.drop .ico { width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 10px; display: grid; place-items: center; background: rgba(47, 123, 255, .14); color: var(--blue-2); }
.drop .ico svg { width: 20px; height: 20px; }
.drop b { color: var(--text); }
.drop small { display: block; color: var(--muted); margin-top: 4px; font-size: 12px; }
.drop.uploading { border-color: var(--blue); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-solid); }
.thumb .media { aspect-ratio: 1; display: grid; place-items: center; background: #050b1f; color: var(--blue-2); }
.thumb .media img, .thumb .media video { width: 100%; height: 100%; object-fit: cover; }
.thumb .media svg { width: 28px; height: 28px; }
.thumb .cap { padding: 6px 8px; font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb input { width: 100%; border: 0; border-top: 1px solid var(--line); background: rgba(4, 9, 26, .8); padding: 7px 8px; font-size: 11.5px; outline: none; }
.thumb input:focus { background: rgba(47, 123, 255, .12); }
.thumb .x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 8px; border: 0; background: rgba(4, 9, 26, .8); color: var(--text-2); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: .15s; }
.thumb:hover .x { opacity: 1; }
.thumb .x:hover { color: var(--rose); }
.thumb .x svg { width: 13px; height: 13px; }
.files { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(4, 9, 26, .5); font-size: 13px; }
.file-row svg { width: 16px; height: 16px; color: var(--blue-2); flex: none; }
.file-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.checklist { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(4, 9, 26, .4); }
.check .st { width: 24px; height: 24px; border-radius: 8px; flex: none; display: grid; place-items: center; }
.check .st svg { width: 14px; height: 14px; }
.check.ok .st { background: rgba(52, 211, 153, .15); color: var(--mint); }
.check.missing { border-color: rgba(251, 113, 133, .3); }
.check.missing .st { background: rgba(251, 113, 133, .15); color: var(--rose); }
.check.recommended .st { background: rgba(251, 191, 36, .14); color: var(--amber); }
.check b { display: block; font-size: 13px; }
.check small { color: var(--muted); font-size: 12px; line-height: 1.4; display: block; }
.check.ok small { display: none; }
.assistant { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(47, 123, 255, .16), rgba(139, 92, 246, .1)); border: 1px solid rgba(91, 155, 255, .3); margin-bottom: 14px; }
.assistant .av { width: 34px; height: 34px; border-radius: 11px; flex: none; background: var(--grad); display: grid; place-items: center; box-shadow: 0 0 16px rgba(47, 123, 255, .6); }
.assistant .av svg { width: 17px; height: 17px; color: #fff; }
.assistant p { margin: 0; font-size: 13px; color: var(--text-2); }
.assistant p b { color: var(--text); }

/* style picker */
.style-group { margin-bottom: 26px; }
.style-group > .eyebrow { margin-bottom: 12px; display: block; }
.styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.style-card {
  position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; border: 1px solid var(--line);
  background: var(--panel); transition: .2s; text-align: left; padding: 0;
}
.style-card:hover { transform: translateY(-3px); border-color: rgba(91, 155, 255, .5); }
.style-card.sel { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 14px 40px -14px rgba(34, 211, 238, .6); }
.style-art { height: 112px; position: relative; display: grid; place-items: center; overflow: hidden; }
.style-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 25% 20%, var(--c1), transparent 60%), radial-gradient(circle at 85% 90%, var(--c2), transparent 60%), #071030; opacity: .9; }
.style-art::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 16px 16px; mask-image: linear-gradient(180deg, transparent, #000); }
.style-art svg { position: relative; z-index: 1; width: 42px; height: 42px; color: #fff; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .5)); transition: .3s; }
.style-card:hover .style-art svg { transform: scale(1.12) rotate(-4deg); }
.style-body { padding: 12px 14px 14px; }
.style-body b { font: 600 14.5px var(--display); display: block; }
.style-body small { color: var(--muted); font-size: 12px; line-height: 1.4; display: block; margin-top: 3px; min-height: 34px; }
.style-card .tick { position: absolute; top: 10px; right: 10px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: var(--cyan); color: #04122a; display: none; place-items: center; }
.style-card.sel .tick { display: grid; }
.style-card .tick svg { width: 15px; height: 15px; }

/* plan */
.plan-hooks { display: grid; gap: 8px; }
.hook { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(4, 9, 26, .4); font-weight: 500; }
.hook i { font: 700 12px var(--display); color: var(--cyan); font-style: normal; }
.scenes { display: grid; gap: 12px; }
.scene { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(4, 9, 26, .45); }
.scene-n { border-radius: 12px; background: linear-gradient(160deg, rgba(47, 123, 255, .3), rgba(139, 92, 246, .15)); display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 18px var(--display); }
.scene-n small { font: 500 11px var(--mono); color: var(--cyan); }
.scene .lbl { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 8px 0 3px; }
.scene .lbl:first-child { margin-top: 0; }
.scene [contenteditable] { outline: none; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; }
.scene [contenteditable]:hover { background: rgba(47, 123, 255, .06); }
.scene [contenteditable]:focus { background: rgba(47, 123, 255, .12); box-shadow: 0 0 0 1px var(--blue); }
.scene .vo { font-size: 14px; color: var(--text); }
.scene .prompt { font: 12px/1.5 var(--mono); color: var(--text-2); white-space: pre-wrap; }

/* run console */
.console { border-radius: 14px; border: 1px solid var(--line); background: #030716; font: 12.5px/1.6 var(--mono); padding: 14px 16px; max-height: 420px; overflow-y: auto; }
.console .ev { display: flex; gap: 12px; padding: 2px 0; }
.console .ev time { color: #3d4d7a; flex: none; }
.console .ev.tool span { color: var(--cyan); }
.console .ev.status span { color: var(--mint); }
.console .ev.error span { color: var(--rose); }
.console .ev.text span { color: var(--text-2); white-space: pre-wrap; font-family: var(--font); font-size: 13px; }
.working { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 14px; background: linear-gradient(90deg, rgba(47, 123, 255, .14), transparent); border: 1px solid rgba(47, 123, 255, .3); margin-bottom: 14px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(91, 155, 255, .2); border-top-color: var(--cyan); animation: spin .8s linear infinite; flex: none; }

/* review */
.review-grid { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.phone { border-radius: 28px; padding: 10px; background: linear-gradient(160deg, #1b2a5c, #0a1330); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -25px rgba(47, 123, 255, .5); }
.phone video { width: 100%; border-radius: 20px; display: block; background: #000; aspect-ratio: 9/16; object-fit: contain; }
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.verdict button { height: 76px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(4, 9, 26, .5); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 600; transition: .15s; }
.verdict button svg { width: 22px; height: 22px; }
.verdict .yes:hover, .verdict .yes.on { border-color: var(--mint); background: rgba(52, 211, 153, .1); color: var(--mint); }
.verdict .no:hover, .verdict .no.on { border-color: var(--rose); background: rgba(251, 113, 133, .1); color: var(--rose); }
.verdict .no svg { transform: scaleY(-1); }

/* modal + toast */
.modal-root:empty { display: none; }
.modal-root { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(2, 5, 15, .7); backdrop-filter: blur(6px); animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(520px, calc(100vw - 32px)); background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 18px; padding: 24px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7); }
.modal h3 { margin-bottom: 8px; }
.modal p { color: var(--text-2); margin: 0 0 16px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); font-size: 13px; display: flex; gap: 10px; align-items: center; animation: rise .2s; max-width: 380px; }
.toast svg { width: 16px; height: 16px; flex: none; }
.toast.ok svg { color: var(--mint); }
.toast.err svg { color: var(--rose); }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }
.list-table { width: 100%; border-collapse: collapse; }
.list-table td, .list-table th { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
.list-table th { color: var(--muted); font-weight: 600; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
.list-table tr:hover td { background: rgba(47, 123, 255, .05); cursor: pointer; }

@media (max-width: 1100px) {
  .hero, .layout-2, .review-grid { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .page { padding: 20px 16px 60px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .span-4 { grid-column: span 2; }
  body { overflow: auto; }
}
