:root {
  --paper: #f2efe7;
  --paper-2: #e9e5da;
  --card: #fbfaf6;
  --ink: #191814;
  --ink-2: #57534a;
  --ink-3: #8a857a;
  --line: #d9d3c5;
  --line-2: #c8c1b0;
  --red: #e0412b;
  --red-ink: #b3301d;
  --ok: #2f7d4f;
  --warn: #b97d0b;
  --stage: #151412;
  --stage-2: #1e1c19;
  --stage-line: #34302a;
  --stage-ink: #ece7dc;
  --stage-ink-2: #9d968a;
  --display: "Bricolage Grotesque", "Noto Sans KR", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument Sans", "Noto Sans KR", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: #f7c9bf; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 0; letter-spacing: -.01em; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------- top bar */
.top {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 56px; padding: 0 24px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1 var(--display); letter-spacing: -.03em; text-decoration: none; justify-self: start; }
.mark { position: relative; width: 18px; height: 18px; display: inline-block; }
.mark i { position: absolute; left: 0; bottom: 3px; width: 8px; height: 8px; background: var(--ink); }
.mark b { position: absolute; right: 0; top: 0; width: 9px; height: 18px; background: var(--red); }
.steps { display: flex; gap: 4px; font-size: 13px; }
.steps span { padding: 4px 10px; color: var(--ink-3); border-radius: 99px; white-space: nowrap; }
.steps span.on { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.steps span.done { color: var(--ink-2); }
.steps span.done::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--ink-2); margin-right: 6px; vertical-align: 1px; }
.top-right { justify-self: end; display: flex; align-items: center; gap: 18px; font-size: 13px; }
.toplink { text-decoration: none; color: var(--ink-2); }
.toplink:hover { color: var(--ink); }
.balance { font-family: var(--mono); font-size: 12px; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }

main { min-height: calc(100vh - 56px); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 40px 24px 120px; }

/* ---------------------------------------------------------- buttons, chips */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--card);
  font-weight: 600; font-size: 14px; text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover { background: #000; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-ink); border-color: var(--red-ink); }
.btn.big { height: 48px; padding: 0 22px; font-size: 15px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); border-color: var(--line); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; font-weight: 500; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
kbd { font: 500 11px var(--mono); padding: 2px 5px; border-radius: 3px; background: rgba(255,255,255,.14); }
.btn:not(.primary):not(.red) kbd { background: var(--paper-2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: 13px; white-space: nowrap;
}
button.chip:hover { border-color: var(--ink-2); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--ink-3); }
.badge.impact::before { background: var(--red); }
.badge.none::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.badge.judge::before { background: var(--warn); }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }

/* ---------------------------------------------------------- idea screen */
.idea-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.idea h1 { font: 800 clamp(38px, 5vw, 60px)/1 var(--display); letter-spacing: -.035em; margin: 18px 0 28px; max-width: 14ch; }
.idea-box {
  position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -22px rgba(25,24,20,.35);
  transition: border-color .15s, box-shadow .15s;
}
.idea-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(25,24,20,.07), 0 12px 30px -22px rgba(25,24,20,.4); }
.idea-box textarea {
  display: block; width: 100%; min-height: 76px; resize: none; border: 0; outline: 0; background: transparent;
  padding: 22px 22px 8px; font: 500 22px/1.35 var(--body); letter-spacing: -.01em;
}
.idea-box textarea::placeholder { color: var(--ink-3); }
.idea-tools { display: flex; align-items: center; gap: 8px; padding: 8px 12px 12px 16px; }
.idea-tools .grow { flex: 1; }
.lang-chip { position: relative; }
.lang-chip select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lang-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.count { font: 12px var(--mono); color: var(--ink-3); }

.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 44px 0 14px; }
.section-h h2 { font: 650 18px/1.2 var(--display); letter-spacing: -.01em; margin: 0; }
.section-h p { margin: 0; font-size: 13px; color: var(--ink-2); }

.genres { display: grid; gap: 12px; }
.genre-main { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.genre {
  text-align: left; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); cursor: pointer;
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start;
  transition: border-color .15s, box-shadow .2s;
}
.genre:hover { border-color: var(--ink-2); }
.genre[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.genre .thumb { aspect-ratio: 9 / 16; border-radius: 2px; background: var(--paper-2) center/cover; }
.genre .body { display: grid; gap: 8px; align-content: start; padding: 2px 4px 2px 0; }
.genre .name { font: 650 17px/1.2 var(--display); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.genre .tag { font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; padding: 4px 6px; background: var(--red); color: #fff; border-radius: 2px; }
.genre .pitch { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.seg.mini button { padding: 5px 4px; font-size: 12px; }
.seg.mini { grid-template-columns: 1fr 1fr; }
.score { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin-top: 2px; }
.score .bar { height: 5px; background: var(--paper-2); position: relative; }
.score .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink-3); }
.genre[aria-pressed="true"] .score .bar i { background: var(--ink); }
.score .num { font: 500 20px/1 var(--mono); letter-spacing: -.03em; }
.score .num small { font-size: 11px; color: var(--ink-3); margin-left: 2px; }
.genre .why { font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.genre .why .badge { margin-left: 2px; }
.genre-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.genre-more .tier { margin: 0 2px 0 10px; }
.genre-more .tier:first-child { margin-left: 0; }
.genre .tag.mid { background: var(--ink-2); }
.gmini { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 10px; border: 1px dashed var(--line-2); border-radius: var(--r); background: transparent; font-size: 13px; color: var(--ink-2); }
.gmini:hover { border-color: var(--ink-2); color: var(--ink); }
.gmini[aria-pressed="true"] { border-style: solid; border-color: var(--ink); color: var(--ink); background: var(--card); }
.gmini small { font: 10.5px var(--mono); color: var(--ink-3); }
.gmini.absorbed { opacity: .7; cursor: help; }

.go-row { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.go-row .note { font-size: 13px; color: var(--ink-2); }

.preview-col { position: sticky; top: 80px; }
.phone {
  position: relative; aspect-ratio: 9 / 16; width: 100%; background: #000; border-radius: 6px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(25,24,20,.55), 0 0 0 1px rgba(25,24,20,.12);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-cap { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--ink-2); }

/* ---------------------------------------------------------- planning (loading) */
.planning { max-width: 560px; margin: 12vh auto 0; }
.planning h2 { font: 800 34px/1.05 var(--display); letter-spacing: -.03em; margin: 12px 0 24px; }
.plan-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.plan-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.plan-steps li.on { color: var(--ink); }
.plan-steps li.done { color: var(--ink-2); }
.plan-steps li i { width: 10px; height: 10px; border: 1.5px solid currentColor; }
.plan-steps li.on i { border-color: var(--red); animation: pulse 1s infinite alternate; }
.plan-steps li.done i { background: var(--ink-2); border-color: var(--ink-2); }
.plan-steps .t { margin-left: auto; font: 12px var(--mono); }
@keyframes pulse { from { background: transparent; } to { background: var(--red); } }

/* ---------------------------------------------------------- plan screen */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.title-input { display: block; width: 100%; border: 0; background: transparent; outline: 0; padding: 0; resize: none; overflow: hidden; font: 800 32px/1.1 var(--display); letter-spacing: -.03em; }
.title-input:focus { box-shadow: 0 2px 0 var(--ink); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.source-note { font-size: 12px; color: var(--ink-3); }

.script { border-top: 1px solid var(--ink); }
.cut {
  display: grid; grid-template-columns: 56px 64px minmax(0, 1fr) 56px; gap: 16px; align-items: start;
  padding: 14px 0; border-bottom: 1px solid var(--line); position: relative;
}
.cut .no { font: 500 12px/1.2 var(--mono); color: var(--ink-3); padding-top: 4px; }
.cut .no b { display: block; font: 650 20px/1 var(--display); color: var(--ink); margin-bottom: 4px; }
.cut .sb { aspect-ratio: 9 / 16; width: 64px; background: var(--paper-2) center/cover; border-radius: 2px; filter: grayscale(1) brightness(1.3) contrast(1.05); }
.cut textarea.line {
  width: 100%; border: 0; outline: 0; resize: none; background: transparent; padding: 2px 0; overflow: hidden;
  font: 500 19px/1.35 var(--body); letter-spacing: -.01em;
}
.cut .visual { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.cut .visual::before { content: "Camera  "; font: 500 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.cut .dur { font: 500 13px var(--mono); text-align: right; padding-top: 4px; }
.cut:focus-within { background: linear-gradient(90deg, transparent, rgba(224,65,43,.05) 40%, transparent); }
.cut:focus-within .no b { color: var(--red); }
.cut.flag::after { content: ""; position: absolute; left: -14px; top: 18px; width: 4px; height: 26px; background: var(--warn); }
.cut .wc { font: 11px var(--mono); color: var(--ink-3); text-align: right; margin-top: 6px; }
.cut .wc.over { color: var(--warn); }

.rail { position: sticky; top: 80px; display: grid; gap: 14px; max-height: calc(100vh - 170px); overflow-y: auto; padding-bottom: 8px; scrollbar-width: thin; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.panel > header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.panel > header h3 { margin: 0; font: 650 14px/1.2 var(--display); }
.panel .in { padding: 12px 14px; }
.check { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding: 8px 0; }
.check + .check { border-top: 1px solid var(--line); }
.light { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; background: var(--ok); box-shadow: 0 0 0 3px rgba(47,125,79,.15); }
.light.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(185,125,11,.18); }
.check b { display: block; font-weight: 600; font-size: 13.5px; }
.check span { font-size: 12.5px; color: var(--ink-2); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 8px 4px; font-size: 13px; font-weight: 500; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.hint { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; min-height: 18px; }

.mood-sum { width: 100%; text-align: left; border: 0; background: transparent; padding: 12px 14px; display: grid; gap: 4px; }
.mood-sum .row1 { display: flex; justify-content: space-between; align-items: center; }
.mood-sum h3 { margin: 0; font: 650 14px/1.2 var(--display); }
.mood-sum .vals { font-size: 13px; color: var(--ink-2); }
.mood-sum .caret { transition: transform .2s var(--ease); font-family: var(--mono); color: var(--ink-3); }
.mood[open] .mood-sum .caret { transform: rotate(90deg); }
.mood-body { border-top: 1px solid var(--line); }
.field { padding: 12px 14px; display: grid; gap: 8px; }
.field + .field { border-top: 1px solid var(--line); }
.field .lab { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.opt-list { display: grid; gap: 4px; }
.opt { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--r); border: 1px solid transparent; text-align: left; background: transparent; font-size: 13px; }
.opt:hover { border-color: var(--line); }
.opt[aria-pressed="true"] { border-color: var(--ink); background: var(--paper); }
.opt small { display: block; color: var(--ink-3); font-size: 11.5px; }
.play {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card);
  display: grid; place-items: center; flex: none;
}
.play::before { content: ""; border-left: 8px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.play.on::before { border: 0; width: 8px; height: 8px; background: var(--red); margin: 0; }
.pin { font: 11px var(--mono); color: var(--ink-3); }

.make-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; gap: 28px; padding: 12px 24px;
}
.make-bar .stat { display: grid; gap: 2px; }
.make-bar .stat small { font: 500 10.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: #a8a295; }
.make-bar .stat b { font: 500 16px var(--mono); }
.make-bar .grow { flex: 1; }
.make-bar .btn.ghost { color: #cfc9bc; }
.make-bar .btn.ghost:hover { color: #fff; border-color: #4a463e; }
.make-bar .turbo { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #cfc9bc; cursor: pointer; }
.make-bar .turbo span { font: 11px var(--mono); color: #a8a295; }
.make-bar .turbo input { accent-color: var(--red); }
.modes { display: inline-flex; gap: 2px; padding: 3px; background: var(--paper-2); border-radius: 99px; margin-bottom: 4px; }
.modes button { border: 0; background: transparent; padding: 6px 12px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.modes button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(25,24,20,.12); }
.modes small { font: 10px var(--mono); text-transform: uppercase; color: var(--ink-3); margin-left: 4px; }
.make-bar .warnline { font-size: 12.5px; color: #f3b9ad; }

/* ---------------------------------------------------------- studio */
.studio { background: var(--stage); color: var(--stage-ink); min-height: calc(100vh - 56px); }
.studio .wrap { padding-top: 28px; }
.st-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.st-head h1 { font: 800 30px/1.05 var(--display); letter-spacing: -.03em; margin: 8px 0 0; }
.st-head .eyebrow { color: var(--stage-ink-2); }
.st-progress { text-align: right; max-width: 520px; }
.st-progress .big { font: 500 26px/1 var(--mono); letter-spacing: -.02em; }
.st-progress .sub { font-size: 12.5px; color: var(--stage-ink-2); margin-top: 6px; }
.pbar { height: 3px; background: var(--stage-line); margin: 18px 0 0; position: relative; overflow: hidden; }
.pbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); transition: width .4s linear; }
.engine { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: 12.5px; color: var(--stage-ink-2); }
.engine .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(47,125,79,.25); }
.engine.sim .dot { background: var(--warn); box-shadow: 0 0 0 3px rgba(185,125,11,.25); }

.floor { position: relative; margin-top: 34px; padding: 30px 0 18px; }
.tiles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(110px, 1fr); gap: 12px; overflow-x: auto; padding: 4px 2px 40px; scrollbar-width: thin; }
.tile { position: relative; }
.tile .frame { position: relative; aspect-ratio: 9 / 16; border-radius: 3px; overflow: hidden; background: var(--stage-2); box-shadow: 0 0 0 1px var(--stage-line); }
.tile .frame img, .tile .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .sketch { filter: grayscale(1) contrast(1.9) brightness(1.35); opacity: .85; }
.tile .clay { filter: grayscale(1) sepia(.25) contrast(.85) brightness(1.08) blur(.4px); }
.tile .color { transition: clip-path .4s linear; }
.tile .scan { position: absolute; left: 0; right: 0; height: 2px; background: var(--red); box-shadow: 0 0 12px 2px rgba(224,65,43,.6); transition: top .4s linear; }
.tile .stage-lab { position: absolute; left: 6px; bottom: 6px; font: 500 10px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 4px 5px; background: rgba(0,0,0,.6); color: #e9e4d8; border-radius: 2px; }
.tile .stage-lab.done { background: var(--ok); color: #fff; }
.tile .cap { display: flex; justify-content: space-between; margin-top: 8px; font: 12px var(--mono); color: var(--stage-ink-2); }
.tile .cap b { color: var(--stage-ink); font-weight: 500; }
.tile .line { font-size: 12px; line-height: 1.35; color: var(--stage-ink-2); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile.active .frame { box-shadow: 0 0 0 1px var(--red), 0 0 0 4px rgba(224,65,43,.18); }
.tile .frame:hover .playhint { opacity: 1; }
.playhint { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.25); opacity: 0; transition: opacity .15s; font: 500 11px var(--mono); }
.sample-tag { position: absolute; top: 6px; right: 6px; font: 500 9.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: #cfc8b9; background: rgba(0,0,0,.55); padding: 3px 4px; border-radius: 2px; }

.cursor {
  position: absolute; top: 0; left: 0; z-index: 5; pointer-events: none;
  transition: transform .9s var(--ease), opacity .3s;
}
.cursor svg { display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.cursor .tag { position: absolute; left: 14px; top: 14px; white-space: nowrap; font: 600 11.5px/1 var(--body); padding: 4px 7px; border-radius: 2px; color: #111; }
.cursor .tag small { font: 400 10.5px var(--mono); opacity: .75; margin-left: 4px; }
.cursor.work .inner { animation: wobble 1.6s ease-in-out infinite; }
@keyframes wobble { 0%,100% { transform: translate(0,0); } 30% { transform: translate(6px,4px); } 60% { transform: translate(-3px,8px); } }

.bench { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--stage-line); padding-top: 14px; }
.bench .who { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--stage-ink-2); padding: 4px 8px 4px 4px; border-radius: 99px; background: var(--stage-2); }
.bench .who i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }
.bench .who b { color: var(--stage-ink); font-weight: 600; }
.bench .who.busy { box-shadow: inset 0 0 0 1px var(--stage-line); }

.st-lower { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; margin-top: 30px; }
.wait { background: var(--card); color: var(--ink); border-radius: var(--r); overflow: hidden; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; padding: 12px 16px; font-weight: 600; font-size: 13.5px; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--red); }
.tabpane { padding: 16px; }
.pick-group + .pick-group { margin-top: 18px; }
.pick-group > .lab { display: flex; justify-content: space-between; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.picks { display: grid; gap: 6px; }
.pickopt { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); text-align: left; font-size: 13.5px; }
.pickopt[aria-pressed="true"] { border-color: var(--ink); background: var(--paper); }
.pickopt .radio { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); margin-top: 2px; }
.pickopt[aria-pressed="true"] .radio { border: 4px solid var(--ink); }
.pickopt [contenteditable] { outline: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; aspect-ratio: 9 / 16; overflow: hidden; position: relative; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs button[aria-pressed="true"] { border-color: var(--red); }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; }
.side-card { border: 1px solid var(--stage-line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.side-card h3 { margin: 0; font: 650 15px var(--display); }
.side-card p { margin: 0; font-size: 13px; color: var(--stage-ink-2); }
.side-card .btn { background: transparent; color: var(--stage-ink); border-color: var(--stage-line); }
.side-card .btn:hover { border-color: var(--stage-ink-2); }
.log { font: 11.5px/1.6 var(--mono); color: var(--stage-ink-2); max-height: 160px; overflow: auto; }
.log div span { color: #6f695f; margin-right: 8px; }

/* ---------------------------------------------------------- result */
.result-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 48px; align-items: start; }
.result h1 { font: 800 40px/1.02 var(--display); letter-spacing: -.035em; margin: 8px 0 12px; }
.result .phone { box-shadow: 0 40px 80px -40px rgba(25,24,20,.6); }
.result .phone video::cue { font: 700 22px var(--body); background: transparent; text-shadow: 0 2px 0 #000, 0 0 6px #000; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.cutstrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.cutstrip .c { display: grid; gap: 6px; }
.cutstrip .f { aspect-ratio: 9/16; border-radius: 3px; overflow: hidden; background: var(--paper-2); position: relative; }
.cutstrip .f video, .cutstrip .f img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cutstrip .c small { font: 11px var(--mono); color: var(--ink-3); display: flex; justify-content: space-between; }
.kit { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.kit .lab { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); display: flex; justify-content: space-between; }
.kit p { margin: 0; }
.qa-v.pass { color: #2f7d4a; } .qa-v.warn { color: #a86b00; } .qa-v.fail { color: #b3261e; }
.qa-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.qa-list li { padding-left: 12px; border-left: 3px solid var(--line); line-height: 1.4; }
.qa-list li.fail { border-left-color: #b3261e; } .qa-list li.warn { border-left-color: #d89b2b; }
.qa-list li[data-seek] { cursor: pointer; } .qa-list li[data-seek]:hover b { text-decoration: underline; }
.qa-list .t { font: 500 11px var(--mono); color: var(--ink-3); }
.copy { font: 500 11px var(--mono); border: 0; background: none; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------- pricing */
.pricing h1 { font: 800 44px/1.02 var(--display); letter-spacing: -.035em; margin: 10px 0 10px; max-width: 18ch; }
.lede { font-size: 17px; color: var(--ink-2); max-width: 60ch; margin: 0 0 32px; }
table.plans { width: 100%; border-collapse: collapse; font-size: 14px; }
table.plans th, table.plans td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plans thead th { font: 650 18px var(--display); border-bottom: 1px solid var(--ink); }
table.plans thead th small { display: block; font: 500 13px var(--mono); color: var(--ink-2); margin-top: 4px; }
table.plans tbody th { font-weight: 500; color: var(--ink-2); width: 200px; }
table.plans td.num { font-family: var(--mono); }
table.plans .hl { background: var(--card); }
.calc { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; margin-top: 56px; align-items: start; }
.calc label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.calc input[type=range] { width: 100%; accent-color: var(--ink); }
.calc output { font: 500 13px var(--mono); color: var(--ink-2); }
table.cost { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.cost td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cost td:last-child { text-align: right; font-family: var(--mono); white-space: nowrap; }
table.cost td small { display: block; color: var(--ink-3); font-size: 12px; }
table.cost tr.total td { border-bottom: 2px solid var(--ink); font-weight: 600; }
.tag-est { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--warn); margin-left: 6px; }
.tag-meas { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ok); margin-left: 6px; }
.big-num { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 18px; }
.big-num div { display: grid; }
.big-num small { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.big-num b { font: 500 28px var(--mono); letter-spacing: -.03em; }

/* ---------------------------------------------------------- library */
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.lib a { text-decoration: none; display: grid; gap: 8px; }
.lib .f { aspect-ratio: 9/16; border-radius: 3px; background: var(--paper-2) center/cover; position: relative; overflow: hidden; }
.lib .st { font: 11px var(--mono); color: var(--ink-3); }
.empty { padding: 60px 0; color: var(--ink-2); }
.lib-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.seg.lib-filter { display: inline-grid; grid-template-columns: repeat(4, auto); margin-bottom: 22px; }
.lib-filter button { padding: 6px 14px; }
.lib-item { display: grid; gap: 6px; align-content: start; }
.lib-item .f { display: block; position: relative; }
.lib-item .stage-lab { position: absolute; left: 6px; bottom: 6px; font: 500 10px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 4px 5px; background: rgba(0,0,0,.6); color: #e9e4d8; border-radius: 2px; }
.lib-item .stage-lab.err { background: var(--red); color: #fff; }
.lib-item b { font-weight: 600; font-size: 14px; line-height: 1.3; }
.lib-item .copy { justify-self: start; }

/* ---------------------------------------------------------- account area */
.acct-top { display: flex; align-items: center; gap: 12px; position: relative; }
a.balance { text-decoration: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); font: 650 13px var(--display); }
.menu { position: absolute; right: 0; top: 40px; width: 230px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: 0 18px 40px -20px rgba(25,24,20,.4); padding: 6px; display: grid; z-index: 40; }
.menu[hidden] { display: none; }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; }
.menu-head span { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.menu a, .menu button { text-align: left; padding: 8px 10px; border-radius: 2px; border: 0; background: none; text-decoration: none; font-size: 13.5px; }
.menu a:hover, .menu button:hover { background: var(--paper); }
.page-h { font: 800 40px/1.02 var(--display); letter-spacing: -.035em; margin: 10px 0 24px; }
.proto-note { font: 11.5px/1.5 var(--mono); color: var(--ink-3); border-top: 1px dashed var(--line-2); padding-top: 10px; margin: 16px 0 0; }
.fine { font-size: 12px; color: var(--ink-3); margin: 10px 0 0; }
.fine a { color: var(--ink-2); }
.btn.wide { width: 100%; justify-content: center; }
.fl { display: grid; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.fl input, .fl select { height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); font-weight: 400; font-size: 15px; outline: 0; }
.fl input:focus, .fl select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(25,24,20,.07); }
.fl input:disabled { color: var(--ink-3); background: var(--paper); }
.row-end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* auth */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 56px); }
.auth-art { position: relative; background: var(--stage); overflow: hidden; }
.art-grid { position: absolute; inset: -40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform: rotate(-6deg) scale(1.08); opacity: .9; }
.art-grid div { aspect-ratio: 9 / 16; background: center/cover; border-radius: 4px; }
.art-grid div:nth-child(2n) { transform: translateY(60px); }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(21,20,18,.92)); }
.art-cap { position: absolute; left: 40px; right: 40px; bottom: 40px; z-index: 1; color: var(--stage-ink); display: grid; gap: 6px; }
.art-cap b { font: 800 32px/1.05 var(--display); letter-spacing: -.03em; }
.art-cap span { color: var(--stage-ink-2); font-size: 14px; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-form { width: 100%; max-width: 380px; }
.auth-form h2 { font: 800 32px/1.05 var(--display); letter-spacing: -.03em; margin: 0 0 8px; }
.auth-form > p.muted { margin: 0 0 22px; }
.auth-form.compact h2 { font-size: 26px; }
.or { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--ink-3); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 6px 0 16px; }
.code input { height: 52px; text-align: center; font: 500 22px var(--mono); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); outline: 0; min-width: 0; }
.code input:focus { border-color: var(--ink); }
.auth-form form .btn + .btn { margin-top: 8px; }

/* modal */
.modal-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(25,24,20,.45); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.modal-wrap.on { opacity: 1; }
.modal { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; background: var(--paper); border-radius: 4px; padding: 28px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); transform: translateY(10px); transition: transform .25s var(--ease); }
.modal-wrap.on .modal { transform: none; }
.modal h2 { font: 800 26px/1.1 var(--display); letter-spacing: -.02em; margin: 6px 0 10px; }
.modal-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 22px; color: var(--ink-3); width: 32px; height: 32px; }
.modal-x:hover { color: var(--ink); }
.handle { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); height: 46px; padding: 0 12px; }
.handle:focus-within { border-color: var(--ink); }
.handle span { font: 500 18px var(--mono); color: var(--ink-3); }
.handle input { flex: 1; border: 0; outline: 0; background: none; font: 500 17px var(--body); padding-left: 4px; min-width: 0; }

/* account */
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.bal { display: flex; align-items: baseline; gap: 10px; }
.bal b { font-size: 48px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.bal span { color: var(--ink-2); }
.meter { height: 6px; background: var(--paper-2); margin-top: 14px; position: relative; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
table.ledger td.plus { color: var(--ok); }

/* checkout */
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; margin-top: 18px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-size: 14px; }
.ticks li::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--ink); margin-right: 10px; vertical-align: 1px; }
.paddle { background: var(--card); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; box-shadow: 0 24px 50px -30px rgba(25,24,20,.45); }
.paddle-top { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.paddle-body { padding: 18px 16px 16px; }
.paddle-fake { display: grid; gap: 8px; margin: 6px 0 16px; }
.paddle-fake i { height: 40px; border-radius: var(--r); background: repeating-linear-gradient(90deg, var(--paper) 0 10px, var(--paper-2) 10px 11px); border: 1px dashed var(--line-2); }
.paddle-fake i.short { width: 60%; }

/* settings */
.set-list { display: grid; border-top: 1px solid var(--ink); }
.set-list section { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.set-list h3 { margin: 4px 0 0; font: 650 15px var(--display); }
.set-list section > div { max-width: 520px; }
.tog { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 10px; cursor: pointer; }
.tog input { width: 16px; height: 16px; accent-color: var(--ink); }
.conn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.set-list .danger .btn { margin-right: 8px; }

/* empty and error states */
.state { text-align: center; padding: 70px 16px; display: grid; justify-items: center; gap: 6px; }
.state h3 { font: 650 20px var(--display); margin: 14px 0 0; }
.state p { color: var(--ink-2); margin: 0 0 14px; max-width: 42ch; }
.state-art { display: flex; align-items: flex-end; gap: 6px; height: 56px; }
.state-art i { width: 22px; background: var(--ink); animation: bob 2.4s ease-in-out infinite; }
.state-art i:nth-child(1) { height: 22px; }
.state-art i:nth-child(2) { height: 44px; background: var(--red); animation-delay: .2s; }
.state-art i:nth-child(3) { height: 30px; animation-delay: .4s; }
.state.err .state-art i.off { background: transparent; box-shadow: inset 0 0 0 2px var(--red); transform: rotate(12deg); animation: none; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

@media (max-width: 1000px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .acct-grid, .co-grid { grid-template-columns: 1fr; }
  .set-list section { grid-template-columns: 1fr; gap: 10px; }
}

#toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); opacity: 0; transition: all .25s var(--ease); background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r); font-size: 13.5px; z-index: 50; pointer-events: none; max-width: 90vw; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

.fade-in { animation: fadeIn .35s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .idea-grid, .plan-grid, .st-lower, .result-grid, .calc, .st-head { grid-template-columns: 1fr; }
  .st-progress { text-align: left; }
  .st-head h1 { font-size: 24px; }
  .preview-col { display: none; }
  .genre-main { grid-template-columns: 1fr; }
  .rail { position: static; }
  .steps { display: none; }
  .top { grid-template-columns: 1fr auto; }
}
@media (max-width: 620px) {
  .wrap { padding: 24px 16px 140px; }
  .top { padding: 0 16px; }
  .top-right { gap: 12px; }
  .top-right > .toplink { display: none; }
  .balance { display: none; }
  .section-h { display: block; }
  .section-h p { margin-top: 4px; }
  .lib { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cut { grid-template-columns: 36px minmax(0, 1fr) 44px; }
  .cut .sb { display: none; }
  .make-bar { flex-wrap: wrap; gap: 14px; padding: 12px 16px; }
  table.plans { font-size: 12.5px; }
  table.plans th, table.plans td { padding: 8px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------- performance tracking */
.trk { max-width: 860px; }
.trk .lab { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); display: flex; justify-content: space-between; gap: 8px; margin: 22px 0 8px; }
.trk-facts { color: var(--ink-2); font-size: 13.5px; padding-left: 18px; }
.trk-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.trk-handle { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); padding-left: 10px; flex: 1 1 220px; }
.trk-handle span { color: var(--ink-3); font-family: var(--mono); }
.trk-handle input { border: 0; background: transparent; font: 15px var(--mono); padding: 9px 8px; width: 100%; outline: none; color: var(--ink); }
.trk-err { color: var(--red-ink); font-size: 13px; min-height: 1em; margin: 4px 0; }
.trk-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.trk-top h1 { margin: 6px 0; }
.trk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 18px 0; }
.trk-stats > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 4px; }
.trk-stats .lab { margin: 0; }
.trk-stats b { font-size: 26px; font-weight: 500; }
.trk-stats small { color: var(--ink-3); font-size: 12px; }
.trk-top3 { padding-left: 20px; font-size: 14px; }
.trk-top3 li { margin: 4px 0; }
.trk-top3 .mono { color: var(--ink-3); font-size: 12px; margin-left: 6px; }
.trk-video { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.trk-video .f { aspect-ratio: 9/16; border-radius: 3px; background: var(--paper-2) center/cover; }
.trk-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.st-weak .chip { border-color: var(--red); color: var(--red-ink); }
.st-strong .chip, .st-part2 .chip { border-color: var(--ok); color: var(--ok); }
.chip.warn { border-color: var(--warn); color: var(--warn); margin-left: 6px; }
.trk-bar { position: relative; height: 8px; background: var(--paper-2); border-radius: 4px; margin: 10px 0 6px; }
.trk-bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink-2); border-radius: 4px; }
.trk-bar i.lo { background: var(--red); }
.trk-bar i.hi { background: var(--ok); }
.trk-bar s { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.trk-bar s.w { background: var(--red-ink); opacity: .5; }
.trk-nums { font-size: 12.5px; color: var(--ink-3); margin: 4px 0; }
.trk blockquote { margin: 6px 0; padding: 6px 10px; border-left: 3px solid var(--line-2); color: var(--ink-2); font-size: 13.5px; }
.trk-review { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 14px 10px; margin-top: 10px; font-size: 14px; }
.trk-review .lab { margin-top: 12px; }
.trk-review ul, .trk-review ol { padding-left: 18px; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
@media (max-width: 560px) { .trk-video { grid-template-columns: 48px 1fr; } .trk-stats b { font-size: 22px; } }

/* series + making-of */
.nudge { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r); margin: 6px 0 4px; font-size: 13.5px; border: 1px solid var(--line); }
.nudge.strong { border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
.nudge.soft { box-shadow: inset 3px 0 0 var(--warn); }
.nudge span { color: var(--ink-2); }
.mk { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; margin-top: 4px; }
.mk video { width: 120px; aspect-ratio: 9 / 16; border-radius: var(--r); background: #111; object-fit: cover; }
.series-panel .cast { display: grid; gap: 8px; }
.castcard { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); font-size: 13.5px; }
.castcard .chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.castcard small { display: block; font-size: 12px; }

/* language note under the idea box, and request chips */
.lang-note { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line, #ddd); border-radius: 12px; font-size: 13.5px; }
.lang-note p { margin: 0 0 8px; }
.lang-req .chip[aria-pressed="true"] { border-color: var(--ink); opacity: .75; }
