/* Palette copied verbatim from the Manus app's "studio darkroom" theme (client/src/index.css)
   — warm charcoal canvas, ivory text, single amber accent. */
:root {
  color-scheme: dark;
  --background: oklch(0.18 0.006 60);
  --card: oklch(0.215 0.007 60);
  --popover: oklch(0.205 0.007 60);
  --foreground: oklch(0.92 0.012 80);
  --muted: oklch(0.255 0.007 62);
  --muted-foreground: oklch(0.66 0.014 75);
  --secondary: oklch(0.27 0.008 65);
  --accent-soft: oklch(0.3 0.02 70);
  --primary: oklch(0.78 0.14 70);
  --primary-foreground: oklch(0.2 0.03 60);
  --border: oklch(0.31 0.008 65);
  --ok: oklch(0.6 0.1 150);
  --qa: oklch(0.62 0.13 290);
  --destructive: oklch(0.62 0.2 25);
  --radius: 0.5rem;
  --shadow: 0 16px 50px oklch(0 0 0 / 0.45);
  --display: Fraunces, Georgia, serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

/* subtle warm ambient glow (amber only, to match the mono-accent feel) */
.aurora {
  position: fixed; inset: -25% -10% auto -10%; height: 60vh; z-index: 0; pointer-events: none;
  background: radial-gradient(45% 60% at 30% 0%, oklch(0.78 0.14 70 / 0.10), transparent 70%),
              radial-gradient(40% 55% at 80% 5%, oklch(0.78 0.14 70 / 0.06), transparent 70%);
}

/* ---------- top bar (translucent, sticky — matches Brand.tsx TopBar) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: 64px;
  display: flex; align-items: center; gap: 20px; padding: 0 24px;
  background: oklch(0.18 0.006 60 / 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(0.31 0.008 65 / 0.7);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--radius);
  background: var(--primary); color: var(--primary-foreground); box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.2px; }
.topbar-right { margin-left: auto; }
.badge {
  font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--primary);
  border: 1px solid oklch(0.78 0.14 70 / 0.4); padding: 4px 10px; border-radius: 999px;
}

/* ---------- stepper ---------- */
.stepper { display: flex; gap: 4px; margin: 0 auto; }
.step {
  display: flex; align-items: center; gap: 8px; background: transparent; border: 0;
  color: var(--muted-foreground); cursor: pointer; font: inherit; font-size: 13.5px;
  padding: 8px 13px; border-radius: var(--radius); transition: color .2s, background .2s;
}
.step i {
  display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%;
  font-style: normal; font-size: 12px; border: 1px solid var(--border); transition: all .2s;
}
.step:hover { color: var(--foreground); background: var(--secondary); }
.step.done i { background: var(--ok); color: oklch(0.2 0.03 150); border-color: transparent; }
.step.current { color: var(--foreground); }
.step.current i { background: var(--primary); color: var(--primary-foreground); border-color: transparent;
  box-shadow: 0 0 0 4px oklch(0.78 0.14 70 / 0.15); }

/* ---------- layout / screens ---------- */
main { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; }
.screen { display: none; animation: rise .45s cubic-bezier(.2,.7,.2,1); }
.screen.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.screen-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.screen-head h2 { font-family: var(--display); font-weight: 600; font-size: 28px; margin: 0 0 4px; letter-spacing: -.2px; }
.muted { color: var(--muted-foreground); margin: 0; }

/* ---------- hero / step 1 ---------- */
.hero { max-width: 720px; margin: 16px auto 0; }
.eyebrow { color: var(--primary); font-size: 13px; letter-spacing: .3px; margin: 0 0 14px; font-weight: 500; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: 46px; line-height: 1.06; margin: 0 0 16px; letter-spacing: -.5px; }
.hero h1 em { font-style: italic; color: var(--primary); }
.lede { color: var(--muted-foreground); font-size: 16.5px; line-height: 1.6; margin: 0 0 28px; max-width: 600px; }

.dropzone {
  position: relative; border: 1.5px dashed var(--border); border-radius: var(--radius);
  background: var(--card); padding: 34px; cursor: pointer; transition: border-color .2s, background .2s;
}
.dropzone:hover { border-color: oklch(0.78 0.14 70 / 0.6); }
.dropzone.drag { border-color: var(--primary); background: oklch(0.78 0.14 70 / 0.07); }
.dz-inner { display: flex; align-items: center; gap: 18px; }
.dz-icon { width: 50px; height: 50px; border-radius: var(--radius); display: grid; place-items: center;
  font-size: 20px; background: oklch(0.78 0.14 70 / 0.14); color: var(--primary); }
.dz-text { display: flex; flex-direction: column; gap: 2px; }
.dz-text strong { font-size: 15.5px; }
.dz-text span { color: var(--muted-foreground); font-size: 13.5px; }
.dz-file { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.dz-file .pill { background: oklch(0.78 0.14 70 / 0.16); color: var(--primary); padding: 4px 10px; border-radius: 999px; font-family: var(--mono); font-size: 12px; }

.field-row { display: flex; gap: 12px; margin: 22px 0 6px; flex-wrap: wrap; }
.field { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 7px; }
.field span { font-size: 12.5px; color: var(--muted-foreground); }
.field input, .field select {
  background: var(--card); border: 1px solid var(--border); color: var(--foreground);
  border-radius: var(--radius); padding: 11px 13px; font: inherit; font-size: 14.5px; transition: border-color .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px oklch(0.78 0.14 70 / 0.15); }

.advanced { margin: 18px 0 24px; border: 1px solid var(--border); border-radius: var(--radius); padding: 2px 16px; background: var(--card); }
.advanced summary { cursor: pointer; padding: 13px 0; color: var(--muted-foreground); font-size: 14px; }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.check input { accent-color: var(--primary); width: 16px; height: 16px; }
.fineprint { color: var(--muted-foreground); font-size: 13px; margin: 14px 0 0; opacity: .8; }

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; color: var(--foreground);
  background: var(--secondary); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 17px; transition: transform .12s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); background: var(--accent-soft); }
.btn:active { transform: none; }
.btn.primary { background: var(--primary); color: var(--primary-foreground); border: 0; box-shadow: 0 6px 18px oklch(0.78 0.14 70 / 0.22); }
.btn.primary:hover { background: oklch(0.82 0.14 70); box-shadow: 0 10px 26px oklch(0.78 0.14 70 / 0.32); }
.btn.big { font-size: 15.5px; padding: 14px 24px; margin-top: 8px; }

/* ---------- shot grid (review) ---------- */
.shotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.shotcard {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px;
  display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s;
}
.shotcard:hover { border-color: var(--muted-foreground); transform: translateY(-2px); }
.shotcard .row { display: flex; align-items: center; gap: 9px; }
.shotcard .num { font-family: var(--mono); font-size: 12px; color: var(--primary-foreground);
  background: var(--primary); border-radius: 6px; padding: 3px 8px; }
.shotcard .type { font-size: 11px; letter-spacing: .5px; color: var(--muted-foreground); text-transform: uppercase; }
.shotcard .staging { margin-left: auto; font-size: 10px; color: var(--primary); border: 1px solid oklch(0.78 0.14 70 / 0.4); padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; }
.shotcard textarea {
  background: transparent; border: 0; border-left: 2px solid var(--border); padding: 2px 0 2px 11px;
  color: var(--foreground); font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; min-height: 42px;
}
.shotcard textarea:focus { outline: none; border-left-color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted-foreground); }

/* ---------- boards ---------- */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.panel { background: var(--popover); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.panel .img { aspect-ratio: 9 / 16; background: #fff center/cover no-repeat; position: relative; }
.panel .img.empty { background: repeating-linear-gradient(45deg, oklch(0.215 0.007 60), oklch(0.215 0.007 60) 12px, oklch(0.235 0.007 60) 12px, oklch(0.235 0.007 60) 24px); }
.panel .img.empty::after { content: attr(data-state); position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-foreground); font-size: 12px; letter-spacing: .3px; }
.panel .cap { padding: 9px 12px; font-size: 12px; color: var(--muted-foreground); line-height: 1.4; border-top: 1px solid var(--border); }
.statusdot { position: absolute; top: 10px; left: 10px; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(0,0,0,.25); }
.statusdot.gen { background: var(--primary); animation: pulse 1.1s infinite; }
.statusdot.qa { background: var(--qa); animation: pulse 1.1s infinite; }
.statusdot.pass { background: var(--ok); }
.statusdot.fail { background: var(--destructive); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- progress ---------- */
.progresswrap { margin-bottom: 26px; }
.progressbar { height: 8px; border-radius: 999px; background: var(--secondary); overflow: hidden; }
.progressfill { height: 100%; width: 0%; border-radius: 999px; background: var(--primary); transition: width .6s ease; }
.progressmeta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--muted-foreground); font-family: var(--mono); }

/* ---------- storyboard pages ---------- */
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.pages img { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; cursor: zoom-in; transition: transform .12s, border-color .2s; }
.pages img:hover { transform: translateY(-3px); border-color: var(--muted-foreground); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; cursor: zoom-out; padding: 28px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 95vh; border-radius: 6px; }

.hidden { display: none !important; }

/* ---------- top bar icon button / nav ---------- */
.brand { cursor: pointer; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.iconbtn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius);
  background: transparent; border: 1px solid var(--border); color: var(--muted-foreground); cursor: pointer; transition: all .2s; }
.iconbtn:hover { color: var(--foreground); background: var(--secondary); }
.iconbtn svg { width: 17px; height: 17px; }
.iconbtn.muted-state { color: var(--destructive); border-color: oklch(0.62 0.2 25 / 0.4); }
.head-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- projects ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pcard {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: transform .15s, border-color .2s; display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--muted-foreground); }
.pcard .cover { aspect-ratio: 16/10; background: var(--popover) center/cover no-repeat; border-bottom: 1px solid var(--border); position: relative; }
.pcard .cover.empty { background: repeating-linear-gradient(45deg, oklch(0.215 0.007 60), oklch(0.215 0.007 60) 14px, oklch(0.235 0.007 60) 14px, oklch(0.235 0.007 60) 28px); }
.pcard .pstatus { position: absolute; top: 10px; right: 10px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px;
  padding: 3px 9px; border-radius: 999px; background: oklch(0.18 0.006 60 / 0.8); border: 1px solid var(--border); }
.pcard .pstatus.done { color: var(--ok); border-color: oklch(0.6 0.1 150 / 0.5); }
.pcard .pstatus.working { color: var(--primary); border-color: oklch(0.78 0.14 70 / 0.5); }
.pcard .pbody { padding: 13px 15px; }
.pcard .pname { font-family: var(--display); font-weight: 600; font-size: 16px; margin: 0 0 3px; }
.pcard .pmeta { color: var(--muted-foreground); font-size: 12.5px; }
.kebab-wrap { position: absolute; top: 10px; right: 10px; }
.kebab { background: transparent; border: 0; color: var(--muted-foreground); cursor: pointer; font-size: 18px; line-height: 1; padding: 4px 8px; border-radius: 8px; }
.kebab:hover { color: var(--foreground); background: var(--secondary); }
.pmenu { position: absolute; top: 30px; right: 0; z-index: 10; min-width: 130px; background: var(--popover); border: 1px solid var(--border); border-radius: var(--radius); padding: 5px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pmenu button { background: transparent; border: 0; color: var(--foreground); font: inherit; font-size: 13.5px; text-align: left; padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.pmenu button:hover { background: var(--secondary); }
.pmenu .pm-delete { color: var(--destructive); }
.pmenu .pm-delete:hover { background: oklch(0.62 0.2 25 / 0.12); }
.pcard.new { display: grid; place-items: center; min-height: 200px; border-style: dashed; color: var(--muted-foreground); }
.pcard.new:hover { color: var(--primary); border-color: oklch(0.78 0.14 70 / 0.6); }
.pcard.new .plus { font-size: 30px; font-weight: 300; }

/* ---------- split-screen analyzing ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.split-pane { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; min-height: 380px; }
.analyzer { position: relative; height: 200px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--popover); margin-bottom: 16px; }
.analyzer-doc { position: absolute; inset: 16px; display: flex; flex-direction: column; gap: 7px; opacity: .5; }
.analyzer-doc span { height: 7px; border-radius: 3px; background: var(--secondary); }
.scanner { position: absolute; left: 0; right: 0; height: 40px; z-index: 2;
  background: linear-gradient(180deg, transparent, oklch(0.78 0.14 70 / 0.18), transparent);
  animation: scan 2.2s ease-in-out infinite; }
@keyframes scan { 0% { top: -40px; } 100% { top: 200px; } }
.analyze-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.analyze-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted-foreground); font-size: 14px; transition: color .3s; }
.analyze-steps li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); flex: none; transition: all .3s; }
.analyze-steps li.active { color: var(--foreground); }
.analyze-steps li.active::before { border-color: var(--primary); box-shadow: 0 0 0 3px oklch(0.78 0.14 70 / 0.15); }
.analyze-steps li.done { color: var(--foreground); }
.analyze-steps li.done::before { background: var(--ok); border-color: transparent; }
.live-head { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 14px; }
.livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: pulse 1.1s infinite; }
.live-list { display: flex; flex-direction: column; gap: 9px; max-height: 420px; overflow: auto; }
.live-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: var(--popover); border: 1px solid var(--border);
  border-radius: var(--radius); animation: rise .4s ease; }
.live-row .num { font-family: var(--mono); font-size: 11px; color: var(--primary-foreground); background: var(--primary); border-radius: 5px; padding: 2px 7px; height: fit-content; }
.live-row .lr-body { font-size: 13px; line-height: 1.45; }
.live-row .lr-type { font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted-foreground); }

/* ---------- QA reason on panels ---------- */
.panel.fail { border-color: oklch(0.62 0.2 25 / 0.55); }
.panel .reason { padding: 9px 12px; font-size: 11.5px; line-height: 1.45; color: oklch(0.78 0.12 25); border-top: 1px solid oklch(0.62 0.2 25 / 0.3); background: oklch(0.62 0.2 25 / 0.08); }
.panel .reason b { color: var(--destructive); font-weight: 600; }

/* ---------- lightbox nav ---------- */
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  background: oklch(0.215 0.007 60 / 0.85); border: 1px solid var(--border); color: var(--foreground); font-size: 26px;
  cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-nav:hover { background: var(--secondary); }
.lb-prev { left: 22px; } .lb-next { right: 22px; }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: var(--mono);
  font-size: 13px; color: var(--muted-foreground); background: oklch(0.18 0.006 60 / 0.7); padding: 5px 12px; border-radius: 999px; }

/* ---------- review shot list (Manus-style) ---------- */
.review-title { font-family: var(--display); font-weight: 600; font-size: 34px; letter-spacing: -.3px; margin: 6px 0 10px; }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted-foreground); font-size: 14px; margin: 0 0 14px; }
.review-meta .dot { opacity: .5; }
.review-desc { max-width: 720px; line-height: 1.6; font-size: 14.5px; margin: 0 0 24px; }

.legend-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 22px; }
.legend-head { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-foreground); margin-bottom: 14px; }
.legend-head svg { width: 16px; height: 16px; }
.legend-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.legend-chips:empty { display: none; }
.char-chip { display: inline-flex; align-items: center; gap: 9px; background: var(--popover); border: 1px solid var(--border); border-radius: 999px; padding: 5px 8px 5px 6px; font-size: 13.5px; }
.char-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 600; }
.char-chip .x { cursor: pointer; color: var(--muted-foreground); padding: 0 2px; }
.char-chip .x:hover { color: var(--destructive); }
.legend-add { display: flex; gap: 10px; }
.legend-add input { flex: 1; background: var(--popover); border: 1px solid var(--border); color: var(--foreground); border-radius: var(--radius); padding: 10px 13px; font: inherit; font-size: 14px; }
.legend-add input:focus { outline: none; border-color: var(--primary); }

/* shot cards */
.shotlist { display: flex; flex-direction: column; gap: 16px; }
.shotcard2 { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.sc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.sc-top .drag { color: var(--muted-foreground); cursor: grab; font-size: 16px; letter-spacing: -2px; user-select: none; }
.sc-top .num { font-family: var(--mono); font-weight: 600; color: var(--primary); background: oklch(0.78 0.14 70 / 0.16); border: 1px solid oklch(0.78 0.14 70 / 0.3); border-radius: var(--radius); padding: 8px 12px; font-size: 14px; }
.sc-type { display: flex; flex-direction: column; gap: 5px; }
.sc-type label, .fieldblock label, .sc-chars > label { font-size: 12px; color: var(--muted-foreground); }
.type-input { background: var(--popover); border: 1px solid var(--border); color: var(--foreground); border-radius: var(--radius); padding: 9px 14px; font-family: var(--mono); font-size: 14px; letter-spacing: .5px; min-width: 240px; }
.sc-top .del { margin-left: auto; background: transparent; border: 0; color: var(--muted-foreground); cursor: pointer; padding: 6px; border-radius: 8px; }
.sc-top .del:hover { color: var(--destructive); background: oklch(0.62 0.2 25 / 0.1); }
.sc-top .del svg { width: 18px; height: 18px; }
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 16px; }
@media (max-width: 720px) { .sc-grid { grid-template-columns: 1fr; } }
.fieldblock { display: flex; flex-direction: column; gap: 6px; }
.fieldblock textarea, .fieldblock input { background: var(--popover); border: 1px solid var(--border); color: var(--foreground); border-radius: var(--radius); padding: 11px 13px; font: inherit; font-size: 14px; line-height: 1.55; resize: vertical; }
.fieldblock textarea:focus, .fieldblock input:focus, .type-input:focus { outline: none; border-color: var(--primary); }
.sc-chars { display: flex; flex-direction: column; gap: 8px; }
.sc-chars .chiprow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mini-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--popover); border: 1px solid var(--border); border-radius: 999px; padding: 4px 7px; font-size: 13px; }
.mini-chip .char-dot { width: 18px; height: 18px; font-size: 10px; }
.mini-chip .x { cursor: pointer; color: var(--muted-foreground); }
.sc-chars .addchar { background: var(--popover); border: 1px solid var(--border); color: var(--muted-foreground); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; width: 130px; }
.imgprompt { margin-top: 14px; }
.imgprompt summary { color: var(--muted-foreground); font-size: 13px; cursor: pointer; }
.imgprompt textarea { width: 100%; margin-top: 10px; background: var(--popover); border: 1px solid var(--border); color: var(--muted-foreground); border-radius: var(--radius); padding: 11px 13px; font: inherit; font-size: 13px; line-height: 1.5; resize: vertical; min-height: 80px; }

.addshot { width: 100%; margin-top: 16px; background: transparent; border: 1.5px dashed var(--border); color: var(--muted-foreground); border-radius: var(--radius); padding: 18px; font: inherit; font-size: 14.5px; cursor: pointer; transition: all .2s; }
.addshot:hover { border-color: oklch(0.78 0.14 70 / 0.6); color: var(--primary); }
.addshot .plus { font-size: 17px; }

.footerbar { position: sticky; bottom: 0; margin: 26px -24px -80px; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  background: oklch(0.18 0.006 60 / 0.9); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }

/* ===== hero (two-column) ===== */
.herowrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; margin-top: 8px; }
@media (max-width: 900px) { .herowrap { grid-template-columns: 1fr; gap: 28px; } }
.herocol h1 { font-family: var(--display); font-weight: 600; font-size: 52px; line-height: 1.03; letter-spacing: -1px; margin: 14px 0 18px; }
.herocol h1 em { font-style: normal; color: var(--primary); }
.herocol .lede { color: var(--muted-foreground); font-size: 15.5px; line-height: 1.65; margin: 0 0 28px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.feat .fi { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: oklch(0.78 0.14 70 / 0.14); color: var(--primary); font-size: 15px; margin-bottom: 10px; }
.feat h4 { margin: 0 0 6px; font-size: 14.5px; }
.feat p { margin: 0; color: var(--muted-foreground); font-size: 12.8px; line-height: 1.5; }

.startcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.startcard h3 { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 0 0 3px; }
.muted.small { font-size: 13.5px; margin: 0 0 16px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--popover); border: 1px solid var(--border); border-radius: 10px; padding: 5px; margin-bottom: 14px; }
.tab { background: transparent; border: 0; color: var(--muted-foreground); font: inherit; font-size: 14px; font-weight: 500; padding: 9px; border-radius: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; }
.tab.active { background: var(--primary); color: var(--primary-foreground); }
.note { color: var(--muted-foreground); font-size: 12.5px; line-height: 1.5; margin: 0 0 14px; display: flex; gap: 6px; }
.note::before { content: "›"; color: var(--primary); }
.dz-inner.col { flex-direction: column; text-align: center; gap: 10px; }
.dz-text.center { align-items: center; }
.btn.block { width: 100%; justify-content: center; display: flex; }
.startcard .field { margin: 8px 0 6px; }
.startcard .field em { color: var(--muted-foreground); font-style: normal; }

/* ===== projects (text cards) ===== */
.pcard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; position: relative; cursor: pointer; transition: border-color .2s, transform .15s; display: block; }
.pcard:hover { transform: translateY(-3px); border-color: var(--muted-foreground); }
.pcard .kebab { position: absolute; top: 14px; right: 14px; background: transparent; border: 0; color: var(--muted-foreground); cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.pcard .kebab:hover { background: var(--secondary); }
.pcard .pname { font-family: var(--display); font-weight: 600; font-size: 19px; margin: 0 0 2px; padding-right: 24px; }
.pcard .ploc { color: var(--muted-foreground); font-size: 13px; margin: 0 0 12px; }
.pcard .pstatus-line { display: flex; align-items: center; gap: 7px; font-size: 13.5px; margin: 0 0 14px; }
.pstatus-line.ready { color: var(--qa); } .pstatus-line.stopped { color: var(--muted-foreground); }
.pstatus-line.error { color: var(--destructive); } .pstatus-line.done { color: var(--ok); }
.ppanels { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted-foreground); margin-bottom: 8px; }
.pbar { height: 5px; border-radius: 999px; background: var(--secondary); overflow: hidden; margin-bottom: 14px; }
.pbar .pfill { height: 100%; background: var(--primary); border-radius: 999px; }
.pfoot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 12px; font-size: 13px; color: var(--muted-foreground); }
.pfoot .open { color: var(--primary); font-weight: 500; }
.pcard.new { display: grid; place-items: center; min-height: 180px; border-style: dashed; color: var(--muted-foreground); text-align: center; }
.pcard.new:hover { color: var(--primary); border-color: oklch(0.78 0.14 70 / 0.6); }
.pcard.new .plus { font-size: 28px; }

/* ===== drawing panels ===== */
.genstatus { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 24px; }
.genstatus-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 14.5px; }
.gencounts { display: flex; gap: 16px; font-size: 13.5px; }
.gencounts .ok { color: var(--ok); font-weight: 500; } .gencounts .fail { color: var(--destructive); font-weight: 500; }
.genprog-label { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted-foreground); margin-bottom: 8px; }
.genprog-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted-foreground); margin-top: 8px; font-family: var(--mono); }
.genstatus-actions { display: flex; gap: 10px; margin-top: 16px; }
.panelgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gpanel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.gpanel.fail { border-color: oklch(0.62 0.2 25 / 0.5); }
.gpanel .gimg { position: relative; aspect-ratio: 9/16; background: #fff center/cover no-repeat; cursor: zoom-in; }
.gpanel .gimg.empty { cursor: default; background: repeating-linear-gradient(45deg, oklch(0.215 0.007 60), oklch(0.215 0.007 60) 12px, oklch(0.235 0.007 60) 12px, oklch(0.235 0.007 60) 24px); }
.gpanel .gimg.empty::after { content: attr(data-state); position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-foreground); font-size: 12px; }
.gnum { position: absolute; top: 10px; left: 10px; font-family: var(--mono); font-size: 11px; background: oklch(0.18 0.006 60 / 0.85); border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px; }
.gmeta { padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gtype { font-size: 11px; letter-spacing: .4px; text-transform: uppercase; color: var(--muted-foreground); }
.gright { display: flex; align-items: center; gap: 7px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 9px; border-radius: 999px; }
.pill.approved { color: var(--ok); background: oklch(0.6 0.1 150 / 0.12); }
.pill.flagged { color: var(--destructive); background: oklch(0.62 0.2 25 / 0.12); }
.pill.gen { color: var(--primary); background: oklch(0.78 0.14 70 / 0.12); }
.regen { background: var(--secondary); border: 1px solid var(--border); color: var(--foreground); font: inherit; font-size: 11.5px; padding: 4px 9px; border-radius: 7px; cursor: pointer; }
.regen:hover { background: var(--accent-soft); }
.greason { padding: 0 13px 12px; font-size: 11.5px; line-height: 1.4; color: oklch(0.78 0.12 25); display: flex; gap: 6px; }
.greason::before { content: "⚠"; }
.gactions { display: flex; gap: 6px; padding: 0 12px 12px; flex-wrap: wrap; }
.gact { background: var(--secondary); border: 1px solid var(--border); color: var(--foreground); font: inherit; font-size: 11.5px; padding: 6px 10px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.gact:hover { background: var(--accent-soft); }
.gact.primary { background: var(--primary); color: var(--primary-foreground); border: 0; }
.geditor { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.geditor label { font-size: 11.5px; color: var(--muted-foreground); }
.geditor .gprompt, .geditor .gfeedback { background: var(--popover); border: 1px solid var(--border); color: var(--foreground); border-radius: var(--radius); padding: 9px 11px; font: inherit; font-size: 12.5px; line-height: 1.5; }
.geditor .gprompt { resize: vertical; color: var(--muted-foreground); }
.geditor .gprompt:focus, .geditor .gfeedback:focus { outline: none; border-color: var(--primary); color: var(--foreground); }

/* ===== staging (edit / regenerate / upload) ===== */
.spanel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.spanel .simg { aspect-ratio: 9/16; background: #fff center/cover no-repeat; position: relative; cursor: zoom-in; }
.spanel .simg.empty { cursor: default; background: repeating-linear-gradient(45deg, oklch(0.215 0.007 60), oklch(0.215 0.007 60) 12px, oklch(0.235 0.007 60) 12px, oklch(0.235 0.007 60) 24px); }
.spanel .simg.empty::after { content: attr(data-state); position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-foreground); font-size: 12px; }
.smeta { padding: 9px 12px; font-size: 12px; color: var(--muted-foreground); border-top: 1px solid var(--border); }
.sactions { display: flex; gap: 6px; padding: 10px 12px 12px; flex-wrap: wrap; }
.sbtn { background: var(--secondary); border: 1px solid var(--border); color: var(--foreground); font: inherit; font-size: 12px; padding: 6px 10px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.sbtn:hover { background: var(--accent-soft); }
.sbtn.primary { background: var(--primary); color: var(--primary-foreground); border: 0; }
.seditor { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.seditor label { font-size: 12px; color: var(--muted-foreground); }
.seditor textarea { background: var(--popover); border: 1px solid var(--border); color: var(--foreground); border-radius: var(--radius); padding: 9px 11px; font: inherit; font-size: 13px; line-height: 1.5; resize: vertical; }
.seditor textarea:focus { outline: none; border-color: var(--primary); }

/* loading shimmer for panels being generated (staging + drawing) */
.gimg.empty.loading, .simg.empty.loading {
  background-image: linear-gradient(100deg, oklch(0.215 0.007 60) 28%, oklch(0.30 0.013 60) 50%, oklch(0.215 0.007 60) 72%) !important;
  background-size: 220% 100%; animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 220% 0; } to { background-position: -220% 0; } }

/* shotlist: move up/down + insert-below controls */
.movebtns { display: inline-flex; flex-direction: column; gap: 3px; }
.mv { width: 24px; height: 16px; line-height: 1; padding: 0; background: var(--secondary); border: 1px solid var(--border); color: var(--muted-foreground); border-radius: 5px; cursor: pointer; font-size: 11px; }
.mv:hover { color: var(--foreground); background: var(--accent-soft); }
.sc-top .ins { margin-left: auto; background: var(--secondary); border: 1px solid var(--border); color: var(--muted-foreground); font: inherit; font-size: 12px; padding: 6px 11px; border-radius: 8px; cursor: pointer; }
.sc-top .ins:hover { color: var(--primary); border-color: oklch(0.78 0.14 70 / 0.5); }
.sc-top .del { margin-left: 8px; }

@media (max-width: 720px) { .stepper { display: none; } .herocol h1 { font-size: 36px; } main { padding: 28px 18px 60px; } .head-actions { flex-wrap: wrap; } .review-title { font-size: 26px; } .features { grid-template-columns: 1fr; } }
