@font-face {
  font-family: "Pretendard Variable";
  src: url("/assets/fonts/PretendardVariable.woff2?v=1.3.9-2") format("woff2-variations");
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --bg: #0d0f12;
  --panel: #15181d;
  --panel-soft: #1a1e24;
  --line: #2b3038;
  --text: #f1f2f3;
  --muted: #9aa1ad;
  --faint: #626a77;
  --accent: #d8ff61;
  --accent-ink: #172000;
  --danger: #ff8c91;
  --radius: 18px;
  --shadow: 0 18px 60px rgb(0 0 0 / 0.25);
}

* { box-sizing: border-box; }

html { background: var(--bg); scrollbar-gutter: stable; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% -8%, rgb(216 255 97 / 0.07), transparent 32rem),
    radial-gradient(circle at 98% 18%, rgb(91 114 255 / 0.07), transparent 28rem),
    var(--bg);
  font-family: "Segoe UI", "Malgun Gothic", sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: keep-all;
}

button, a, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 36px;
  border-bottom: 1px solid rgb(43 48 56 / 0.65);
  background: rgb(13 15 18 / 0.9);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgb(216 255 97 / 0.45);
  border-radius: 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.brand.is-clapperboard .brand-mark {
  border-color: rgb(159 138 255 / 0.65);
  border-radius: 10px 4px 10px 4px;
  background: rgb(159 138 255 / 0.13);
  color: #c7bcff;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: 0.03em; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }

.header-actions { display: inline-flex; align-items: center; gap: 14px; }
.service-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgb(21 24 29 / 0.74);
}
.service-switcher-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.service-switcher-button:hover { color: var(--text); }
.service-switcher-button[aria-selected="true"] { background: rgb(216 255 97 / 0.14); color: var(--accent); }
.service-switcher-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.install-button {
  padding: 8px 12px;
  border: 1px solid rgb(216 255 97 / 0.42);
  border-radius: 9px;
  background: rgb(216 255 97 / 0.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.install-button:hover { background: rgb(216 255 97 / 0.16); }

.health-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.health-badge::before { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); content: ""; }
.health-badge.ready { color: var(--accent); }
.health-badge.ready::before { background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.health-badge.error { color: var(--danger); }
.health-badge.error::before { background: var(--danger); }

.page-shell { max-width: 1400px; margin: 0 auto; padding: 42px 36px 80px; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: clamp(32px, 7vw, 120px); align-items: start; margin-bottom: 54px; }
.hero { max-width: 760px; margin-bottom: 0; }
.eyebrow, .card-kicker { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 0.2em; }
.hero h1 { margin: 12px 0 18px; font-size: clamp(42px, 6vw, 76px); font-weight: 500; letter-spacing: -0.07em; line-height: 0.98; }
.hero h1 em { color: var(--accent); font-style: normal; }

.terms-banner {
  max-width: 560px;
  margin: 18px 0 0;
  padding: 22px 26px;
  border: 1px solid rgb(216 255 97 / 0.18);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgb(216 255 97 / 0.07), rgb(21 24 29 / 0.9));
  box-shadow: var(--shadow);
}
.terms-banner h2 { margin-top: 6px; font-size: 22px; }
.terms-list { display: grid; gap: 7px; margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; }
.terms-list li::marker { color: var(--accent); }
.terms-emphasis { margin: 12px 0 0; color: var(--accent); font-size: 12px; font-weight: 700; }

.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.main-column { display: grid; gap: 24px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgb(21 24 29 / 0.88); box-shadow: var(--shadow); }
.panel { padding: 26px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading > div { display: flex; align-items: baseline; gap: 13px; }
.progress-meta { display: flex; align-items: center; gap: 12px; }
.step-number { color: var(--accent); font-family: Consolas, monospace; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.035em; }
.hint, .job-label { color: var(--muted); font-size: 11px; }
.progress-elapsed { color: var(--accent); font-family: Consolas, monospace; font-size: 11px; white-space: nowrap; }
.selection-badge { padding: 6px 10px; border: 1px solid rgb(216 255 97 / 0.28); border-radius: 99px; color: var(--accent); font-size: 11px; }
.section-heading > .preset-selection { align-items: center; gap: 5px; }

.filter-stack-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 10px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgb(103 213 255 / 0.06);
  cursor: pointer;
}
.filter-stack-option input { width: 18px; height: 18px; accent-color: var(--accent); }
.filter-stack-option span { display: grid; gap: 3px; }
.filter-stack-option small, .filter-stack-order { color: var(--muted); }
.filter-stack-order { margin: 0 0 12px; font-size: 0.82rem; }
.relight-prompt-mode { display: grid; gap: 10px; margin: -2px 0 20px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); }
.relight-prompt-mode > strong { font-size: 12px; }
.lighting-simulation { display: grid; gap: 14px; }
.simulation-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.simulation-heading strong { font-size: 14px; }
.simulation-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.simulation-choice-stage { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-soft); }
.simulation-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.simulation-choice { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 76px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--muted); cursor: pointer; transition: border-color 140ms ease, background 140ms ease; }
.simulation-choice:hover { border-color: rgb(103 213 255 / 0.55); }
.simulation-choice.is-selected { border-color: var(--accent); background: rgb(103 213 255 / 0.1); color: var(--text); }
.simulation-choice input { position: absolute; opacity: 0; pointer-events: none; }
.simulation-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.simulation-choice-swatch { width: 18px; height: 40px; border-radius: 99px; box-shadow: 0 0 16px currentColor; }
.simulation-choice-swatch[data-temperature="4300"] { color: #ffd6dc; background: #ffd6dc; }
.simulation-choice-swatch[data-temperature="6700"] { color: #94cfff; background: #94cfff; }
.simulation-choice > span:nth-of-type(2) { display: grid; gap: 4px; }
.simulation-choice strong { color: var(--text); font-size: 13px; }
.simulation-choice small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.simulation-choice-spec { color: var(--muted); font-family: Consolas, monospace; font-size: 9px; white-space: nowrap; }
.simulation-stage-wrap { display: grid; gap: 8px; }
.simulation-background-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.simulation-background-options legend { grid-column: 1 / -1; margin-bottom: 2px; padding: 0; color: var(--text); font-size: 12px; font-weight: 700; }
.simulation-background-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); color: var(--muted); cursor: pointer; }
.simulation-background-option:has(input:focus-visible) { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(216 255 97 / 0.12); }
.simulation-background-option input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); }
.simulation-background-option span { display: grid; gap: 3px; }
.simulation-background-option strong { color: var(--text); font-size: 13px; }
.simulation-background-option small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.simulation-stage-toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; }
.simulation-stage-toolbar strong { color: var(--text); font-size: 12px; }
.simulation-stage-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.simulation-stage { position: relative; min-height: 660px; overflow: hidden; border: 1px solid #26364c; border-radius: 18px; background: #080d16; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05), 0 18px 45px rgb(0 0 0 / 0.2); touch-action: none; }
.simulation-stage-scene, .simulation-stage-pods { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.simulation-stage-scene { pointer-events: none; }
.simulation-stage-scene svg { display: block; width: 100%; height: 100%; }
.simulation-stage-pods { z-index: 2; }
.simulation-stage .simulation-facing-label { fill: #7e93b0; font-family: Consolas, monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-anchor: middle; }
.simulation-perspective-plane { fill: rgb(42 58 82 / 0.16); stroke: rgb(110 137 174 / 0.2); stroke-width: 1; }
.simulation-grid-line { fill: none; stroke: rgb(115 143 181 / 0.12); stroke-width: 1; }
.simulation-subject { stroke: rgb(219 233 255 / 0.62); stroke-width: 2; }
.simulation-subject-detail { fill: none; stroke: rgb(231 240 255 / 0.64); stroke-width: 2; stroke-linecap: round; }
.simulation-subject-highlight { fill: none; stroke: rgb(255 255 255 / 0.34); stroke-width: 5; stroke-linecap: round; }
.simulation-figure-target { fill: rgb(94 182 255 / 0.08); stroke: rgb(121 198 255 / 0.58); stroke-width: 2; }
.simulation-subject-shadow { fill: rgb(0 0 0 / 0.56); }
.simulation-light-cone { stroke-linejoin: round; }
.simulation-spotlight { pointer-events: none; }
.simulation-camera { fill: #26364b; stroke: #83a0c7; stroke-width: 1.5; }
.simulation-camera circle { fill: #080d16; }
.simulation-light-pod { --light-color: #fff; position: absolute; z-index: 2; display: grid; width: 172px; gap: 8px; padding: 10px; border: 1px solid rgb(116 137 166 / 0.34); border-radius: 13px; background: rgb(11 18 29 / 0.88); box-shadow: 0 12px 30px rgb(0 0 0 / 0.34), inset 0 1px 0 rgb(255 255 255 / 0.04); color: #e8eef8; transform: translate(-50%, -50%) scale(var(--pod-scale, 1)); transform-origin: center; backdrop-filter: blur(16px); transition: border-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease, transform 140ms ease; }
.simulation-light-pod[data-simulation-pod^="rear"] { --pod-scale: 0.9; }
.simulation-light-pod[data-simulation-pod^="front"] { --pod-scale: 1.02; }
.simulation-light-pod[data-simulation-position="front_left"] { left: 17.3077%; top: 68.2692%; }
.simulation-light-pod[data-simulation-position="front"] { left: 50%; top: 87.5%; }
.simulation-light-pod[data-simulation-position="front_right"] { left: 82.6923%; top: 68.2692%; }
.simulation-light-pod[data-simulation-position="rear_left"] { left: 17.3077%; top: 31.7308%; }
.simulation-light-pod[data-simulation-position="rear"] { left: 50%; top: 12.5%; }
.simulation-light-pod[data-simulation-position="rear_right"] { left: 82.6923%; top: 31.7308%; }
.simulation-light-pod[data-temperature="4300"] { --light-color: #ffd08a; }
.simulation-light-pod[data-temperature="5500"] { --light-color: #fff; }
.simulation-light-pod[data-temperature="6700"] { --light-color: #94cfff; }
.simulation-light-pod:hover, .simulation-light-pod:focus-within, .simulation-light-pod.is-selected { z-index: 4; border-color: color-mix(in srgb, var(--light-color) 72%, #6b7d96); box-shadow: 0 16px 38px rgb(0 0 0 / 0.42), 0 0 24px color-mix(in srgb, var(--light-color) 24%, transparent); }
.simulation-light-pod:not(.is-active) { opacity: 0.54; }
.simulation-light-pod:not(.is-active):hover, .simulation-light-pod:not(.is-active):focus-within { opacity: 1; }
.simulation-pod-heading { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 7px; align-items: center; }
.simulation-drag-handle { display: grid; width: 22px; height: 22px; padding: 0; place-items: center; border: 0; border-radius: 7px; background: rgb(255 255 255 / 0.06); color: #91a5c2; cursor: grab; }
.simulation-drag-handle:active { cursor: grabbing; }
.simulation-drag-handle:focus-visible { outline: 2px solid var(--light-color); outline-offset: 2px; }
.simulation-pod-title { display: flex; min-width: 0; align-items: center; gap: 6px; }
.simulation-pod-title strong { overflow: hidden; color: #f7f9fc; font-size: 10px; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.simulation-pod-color { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--light-color); box-shadow: 0 0 10px var(--light-color); }
.simulation-pod-power { position: relative; display: block; width: 28px; height: 17px; }
.simulation-pod-power input { position: absolute; opacity: 0; pointer-events: none; }
.simulation-pod-power span { position: absolute; inset: 0; border: 1px solid #4a5870; border-radius: 99px; background: #202b3b; cursor: pointer; transition: background 140ms ease, border-color 140ms ease; }
.simulation-pod-power span::after { position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #91a0b5; content: ""; transition: transform 140ms ease, background 140ms ease; }
.simulation-pod-power input:checked + span { border-color: var(--light-color); background: color-mix(in srgb, var(--light-color) 40%, #152033); }
.simulation-pod-power input:checked + span::after { background: #fff; transform: translateX(11px); }
.simulation-pod-power input:focus-visible + span { outline: 2px solid var(--light-color); outline-offset: 2px; }
.simulation-pod-brightness { display: grid; gap: 4px; }
.simulation-pod-brightness > span { display: flex; justify-content: space-between; color: #91a0b5; font-size: 9px; }
.simulation-pod-brightness output { color: #e8eef8; font-family: Consolas, monospace; }
.simulation-pod-brightness input { width: 100%; accent-color: var(--light-color); }
.simulation-pod-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.simulation-pod-selects label { display: grid; gap: 3px; color: #788ba7; font-size: 8px; }
.simulation-pod-selects select { width: 100%; min-width: 0; height: 26px; padding: 0 5px; border: 1px solid #2d3d54; border-radius: 7px; background: #101a29; color: #e7edf7; font: inherit; font-size: 9px; outline: none; }
.simulation-pod-selects select:focus { border-color: var(--light-color); }

.drop-zone { display: grid; min-height: 210px; place-items: center; align-content: center; gap: 8px; padding: 28px; border: 1px dashed #4b535f; border-radius: 14px; color: var(--muted); text-align: center; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.dragging { border-color: var(--accent); background: rgb(216 255 97 / 0.05); outline: none; transform: translateY(-1px); }
.drop-zone strong { color: var(--text); font-size: 15px; }
.drop-zone span { font-size: 12px; }
.upload-icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgb(216 255 97 / 0.4); border-radius: 50%; color: var(--accent); font-size: 28px; font-weight: 300; line-height: 1; }
.source-card { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-soft); }
.source-card img { width: 104px; height: 82px; border-radius: 9px; object-fit: cover; }
.source-meta { min-width: 0; }
.source-meta strong, .source-meta span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-meta strong { font-size: 13px; }
.source-meta span { margin-top: 4px; color: var(--muted); font-size: 11px; }

.clapperboard-column { width: 100%; }
.clapperboard-field { display: grid; gap: 8px; color: var(--muted); font-size: 12px; }
.clapperboard-field > span:first-child { color: var(--text); font-size: 12px; font-weight: 700; }
.clapperboard-field textarea {
  width: 100%;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #111419;
  color: var(--text);
  line-height: 1.55;
}
.clapperboard-field textarea::placeholder { color: var(--faint); }
.clapperboard-field textarea:focus { border-color: rgb(216 255 97 / 0.65); box-shadow: 0 0 0 3px rgb(216 255 97 / 0.08); }
.clapperboard-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.inline-note { margin: 0; color: var(--muted); font-size: 12px; }
.clapperboard-mode-switcher { display: flex; flex-wrap: wrap; gap: 9px; }
.clapperboard-mode-button { min-height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.clapperboard-mode-button:hover:not(:disabled) { border-color: rgb(216 255 97 / 0.5); color: var(--text); }
.clapperboard-mode-button.is-selected { border-color: rgb(216 255 97 / 0.7); background: rgb(216 255 97 / 0.13); color: var(--accent); }
.clapperboard-mode-button:disabled { cursor: not-allowed; opacity: 0.5; }
.drop-zone.is-disabled { cursor: not-allowed; opacity: 0.55; }
.clapperboard-output-options { display: flex; align-items: end; flex-wrap: wrap; gap: 12px 18px; margin-top: 17px; }
.clapperboard-megapixels, .clapperboard-duration, .clapperboard-rtx-option { min-height: 74px; }
.clapperboard-megapixels { width: 144px; }
.clapperboard-duration { width: 148px; }
.clapperboard-duration select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: #111419;
  color: var(--text);
  font: inherit;
}
.clapperboard-duration select:focus { border-color: rgb(216 255 97 / 0.65); box-shadow: 0 0 0 3px rgb(216 255 97 / 0.08); }
.clapperboard-rtx-option {
  display: flex;
  flex: 1 1 360px;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111419;
  color: var(--muted);
  cursor: pointer;
}
.clapperboard-rtx-option:has(input:focus-visible) { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(198 160 255 / 0.12); }
.clapperboard-rtx-option:has(input:disabled) { cursor: not-allowed; opacity: 0.55; }
.clapperboard-rtx-option input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); }
.clapperboard-rtx-option span { display: grid; gap: 2px; }
.clapperboard-rtx-option strong { color: var(--text); font-size: 13px; }
.clapperboard-rtx-option small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.input-with-suffix { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #111419; }
.input-with-suffix:focus-within { border-color: rgb(216 255 97 / 0.65); box-shadow: 0 0 0 3px rgb(216 255 97 / 0.08); }
.input-with-suffix input { width: 82px; padding: 10px 10px; border: 0; outline: 0; background: transparent; color: var(--text); }
.input-with-suffix > span { padding-right: 10px; color: var(--accent); font-family: Consolas, monospace; font-size: 12px; }
.clapperboard-generate-panel { display: grid; gap: 10px; margin-top: 22px; }
.clapperboard-generate-panel .primary-button { margin-top: 0; }
.clapperboard-progress-track span { width: 0; }
.clapperboard-progress-track.stage-queued span { width: 8%; }
.clapperboard-progress-track.running span { background: linear-gradient(90deg, var(--accent), #95a7ff, var(--accent)); background-size: 200% 100%; }
.clapperboard-progress-track.indeterminate span { width: 22%; animation: clapperboard-progress 1.8s ease-in-out infinite; }
.clapperboard-progress-track.completed span { width: 100%; }
.clapperboard-progress-track.failed span { width: 100%; background: var(--danger); }
.clapperboard-video { display: block; width: 100%; max-height: min(70vh, 760px); border: 1px solid var(--line); border-radius: 13px; background: #090a0c; object-fit: contain; }

@keyframes clapperboard-progress {
  from { transform: translateX(-120%); background-position: 0 0; }
  to { transform: translateX(460%); background-position: 200% 0; }
}

.preset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.preset-card { position: relative; min-height: 92px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #111419; cursor: pointer; opacity: 0.48; transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease; }
.preset-card:has(input:checked) { border-color: rgb(216 255 97 / 0.35); background: rgb(216 255 97 / 0.05); opacity: 1; }
.preset-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.preset-card input { position: absolute; top: 12px; right: 12px; accent-color: var(--accent); }
.preset-card:has(input:disabled) { cursor: default; }
.preset-card .preset-index { color: var(--accent); font-family: Consolas, monospace; font-size: 10px; }
.preset-card strong, .preset-card span { display: block; }
.preset-card strong { margin-top: 6px; font-size: 12px; font-weight: 600; }
.preset-card span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.generate-panel .primary-button { margin-top: 0; }

.primary-button, .secondary-button, .danger-button, .text-button, .icon-button { border: 0; border-radius: 10px; transition: opacity 160ms ease, transform 160ms ease, background 160ms ease; }
.primary-button:hover:not(:disabled), .secondary-button:hover, .danger-button:hover, .text-button:hover, .icon-button:hover { transform: translateY(-1px); }
.primary-button:focus-visible, .secondary-button:focus-visible, .danger-button:focus-visible, .text-button:focus-visible, .icon-button:focus-visible, .clapperboard-mode-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.primary-button { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: 22px; padding: 16px 18px; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.primary-button:disabled, .secondary-button:disabled { cursor: not-allowed; opacity: 0.35; transform: none; }
.secondary-button { display: inline-flex; align-items: center; padding: 10px 12px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; text-decoration: none; }
.danger-button { padding: 10px 12px; background: transparent; color: var(--danger); font-size: 12px; }
.danger-button:disabled, .text-button:disabled { cursor: not-allowed; opacity: 0.4; transform: none; }
.text-button { padding: 5px; background: transparent; color: var(--accent); font-size: 12px; white-space: nowrap; }
.icon-button { width: 36px; height: 36px; background: var(--panel-soft); color: var(--text); font-size: 25px; line-height: 1; }

.progress-track { height: 6px; overflow: hidden; border-radius: 99px; background: #292e35; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width 240ms ease; }
.preset-progress { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.preset-progress-step { display: grid; height: 26px; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: var(--faint); font-family: Consolas, monospace; font-size: 10px; }
.preset-progress-step.done { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.preset-progress-step.current { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 1px rgb(216 255 97 / 0.2); }
.preset-progress-step.skipped { opacity: 0.3; text-decoration: line-through; }
.progress-message { margin: 15px 0 0; color: var(--muted); font-size: 13px; }
.progress-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.stop-job-button { padding: 9px 12px; border: 1px solid rgb(255 140 145 / 0.7); border-radius: 9px; background: rgb(255 140 145 / 0.1); color: var(--danger); font-size: 12px; font-weight: 700; }
.stop-job-button:hover:not(:disabled) { background: rgb(255 140 145 / 0.18); transform: translateY(-1px); }
.stop-job-button:focus-visible { outline: 2px solid var(--danger); outline-offset: 3px; }
.stop-job-button:disabled { cursor: wait; opacity: 0.68; }
.stop-job-note { flex: 1 1 260px; margin: 0; color: var(--muted); font-size: 11px; }

.results-heading { align-items: center; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.result-groups { display: grid; gap: 22px; }
.result-group { padding-top: 20px; border-top: 1px solid var(--line); }
.result-group:first-child { padding-top: 0; border-top: 0; }
.result-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.result-group-title { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.result-group-title .preset-index { color: var(--accent); font-family: Consolas, monospace; font-size: 11px; }
.result-group-title h3 { overflow: hidden; margin: 0; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.result-group-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.result-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #111419; }
.result-card.base-result-card { border-color: rgb(216 255 97 / 0.32); }
.result-preview-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.result-preview-button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.result-card img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.result-card-body { padding: 11px; }
.result-card-body strong { display: block; font-size: 11px; }
.result-card-body .result-card-kicker { margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.result-card-actions { display: flex; gap: 7px; margin-top: 9px; }
.result-card-actions a, .result-card-actions button { flex: 1; padding: 7px 4px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); font-size: 10px; text-align: center; text-decoration: none; }
.result-card-actions a:hover, .result-card-actions button:hover { border-color: var(--accent); color: var(--accent); }
.expiry-note { margin: 18px 0 0; color: var(--faint); font-size: 11px; }

.card-kicker { display: block; }

.modal { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 0.8); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(100%, 960px); max-height: calc(100vh - 48px); overflow: auto; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-header h2 { margin-top: 5px; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare-grid figure { margin: 0; }
.compare-grid img { display: block; width: 100%; max-height: 70vh; border-radius: 10px; background: #090a0c; object-fit: contain; }
.compare-grid figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; text-align: center; }
#compare-modal.is-preview .modal-card { width: min(100%, 1440px); }
#compare-modal.is-preview .compare-grid { grid-template-columns: 1fr; }
#compare-modal.is-preview .compare-grid figure:first-child { display: none; }
#compare-modal.is-preview .compare-grid img { max-height: calc(100vh - 180px); }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: 360px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: #252b32; color: var(--text); box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 160ms ease, transform 160ms ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.is-hidden { display: none !important; }

@media (max-width: 980px) {
  .hero-row { grid-template-columns: 1fr; gap: 0; }
  .hero { margin-bottom: 34px; }
  .terms-banner { max-width: none; margin-top: 0; }
  .studio-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .simulation-stage { display: grid; min-height: 0; overflow: hidden; touch-action: auto; }
  .simulation-stage-scene { position: relative; top: auto; right: auto; bottom: auto; left: auto; height: 330px; }
  .simulation-stage-pods { position: relative; top: auto; right: auto; bottom: auto; left: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; background: #080d16; }
  .simulation-stage .simulation-light-pod { position: relative; top: auto; left: auto; width: auto; transform: none; }
  .simulation-drag-handle { display: none; }
}

@media (max-width: 640px) {
  .site-header, .page-shell { padding-right: 18px; padding-left: 18px; }
  .site-header { flex-wrap: wrap; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
  .header-actions { gap: 8px; }
  .service-switcher { order: 3; width: 100%; margin: 0; }
  .service-switcher-button { flex: 1; }
  .install-button { padding: 7px 9px; font-size: 10px; }
  .page-shell { padding-top: 30px; }
  .hero h1 { font-size: 49px; }
  .terms-banner { padding: 18px; }
  .panel { padding: 18px; }
  .section-heading { display: block; }
  .section-heading .hint, .job-label { display: inline-block; margin: 9px 0 0 25px; }
  .section-heading > .preset-selection { justify-content: flex-start; margin: 9px 0 0 25px; }
  .progress-meta { margin: 9px 0 0 25px; }
  .progress-actions { display: grid; grid-template-columns: 1fr; }
  .stop-job-button, .progress-actions .text-button { width: 100%; }
  .preset-progress { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .preset-grid, .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-group-heading { align-items: flex-start; }
  .results-heading { display: block; }
  .result-actions { margin-top: 13px; }
  .source-card { grid-template-columns: 72px minmax(0, 1fr); }
  .source-card img { width: 72px; height: 72px; }
  .source-card .text-button { grid-column: 2; justify-self: start; }
  .compare-grid { grid-template-columns: 1fr; }
  .clapperboard-output-options { align-items: start; }
  .clapperboard-actions .secondary-button { width: 100%; justify-content: center; }
  .modal { padding: 12px; }
}

@media (max-width: 480px) {
  .simulation-stage-toolbar { display: grid; gap: 3px; }
  .simulation-stage-actions { justify-content: space-between; }
  .simulation-stage-scene { height: 260px; }
  .simulation-stage-pods { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .clapperboard-megapixels,
  .clapperboard-duration,
  .clapperboard-rtx-option { min-height: 90px; }
}

/* Product-site visual layer: spacious, light, and intentionally restrained. */
:root {
  --bg: #fbfbfa;
  --panel: #ffffff;
  --panel-soft: #f6f6f4;
  --line: #e7e7e3;
  --text: #101010;
  --muted: #747474;
  --faint: #a0a0a0;
  --accent: #111111;
  --accent-ink: #ffffff;
  --danger: #b94540;
  --radius: 20px;
  --shadow: 0 20px 50px rgb(20 20 20 / 0.045);
}

html { background: var(--bg); }
body {
  position: relative;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Segoe UI", "Malgun Gothic", sans-serif;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% -20%, rgb(90 105 255 / 0.09), transparent 36rem);
  content: "";
}
body.is-clapperboard::before {
  background: radial-gradient(circle at 50% -20%, rgb(114 83 255 / 0.11), transparent 38rem);
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  max-width: 1440px;
  padding: 18px 34px;
  border-bottom-color: rgb(16 16 16 / 0.08);
  background: rgb(251 251 250 / 0.86);
  backdrop-filter: blur(16px);
}
.brand { gap: 10px; }
.brand-mark {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  font-size: 10px;
  letter-spacing: 0.05em;
}
.brand.is-clapperboard .brand-mark {
  border: 0;
  border-radius: 9px;
  background: #5447d9;
  color: #ffffff;
}
.brand strong { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
.brand small { color: var(--faint); font-size: 9px; letter-spacing: 0.14em; }
.service-switcher {
  justify-self: center;
  padding: 3px;
  border-color: #e7e7e3;
  border-radius: 999px;
  background: #f4f4f2;
}
.service-switcher-button {
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #727272;
}
.service-switcher-button:hover { color: var(--text); }
.service-switcher-button[aria-selected="true"] { background: #111111; color: #ffffff; }
.header-actions { justify-self: end; gap: 12px; }
.install-button {
  border-color: #ddddda;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
}
.install-button:hover { background: #f3f3f1; }
.health-badge { color: #707070; }
.health-badge.ready { color: #2b7b54; }
.health-badge.ready::before { background: #2b7b54; box-shadow: none; }

.page-shell { max-width: 1280px; padding: 0 34px 100px; }
.hero-row {
  grid-template-columns: 1fr;
  gap: 26px;
  max-width: 1050px;
  margin: 84px auto 58px;
  text-align: center;
}
.hero { max-width: 940px; margin: 0 auto; }
.eyebrow, .card-kicker { color: #777777; font-size: 10px; letter-spacing: 0.17em; }
.hero h1 {
  margin: 15px 0 0;
  font-size: clamp(46px, 7vw, 90px);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.94;
}
.hero h1 em {
  color: var(--text);
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: #8d82ff;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.11em;
}
.terms-banner {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 24px;
  border-color: #e8e8e5;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.76);
  box-shadow: none;
  text-align: left;
}
.terms-banner h2 { margin-top: 5px; font-size: 18px; }
.terms-list { gap: 4px; color: #717171; font-size: 11px; }
.terms-list li::marker { color: #8d82ff; }
.terms-emphasis { color: #555555; font-size: 11px; }

.main-column { gap: 18px; }
.panel {
  border-color: #e7e7e3;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.88);
  box-shadow: var(--shadow);
}
.panel { padding: 28px; }
.section-heading { margin-bottom: 20px; }
.step-number, .progress-elapsed { color: #777777; }
h2 { font-size: 19px; font-weight: 650; letter-spacing: -0.045em; }
.hint, .job-label { color: #858585; }
.selection-badge { border-color: #ddddda; color: #555555; background: #f7f7f5; }

.drop-zone {
  min-height: 228px;
  border-color: #d7d7d3;
  border-radius: 16px;
  background: #fcfcfb;
  color: #818181;
}
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.dragging {
  border-color: #111111;
  background: #f4f4f1;
}
.drop-zone strong { color: #171717; }
.upload-icon { border-color: #111111; background: #111111; color: #ffffff; }
.source-card { border-color: #e5e5e1; border-radius: 14px; background: #f7f7f5; }
.clapperboard-field { color: #777777; }
.clapperboard-field > span:first-child { color: #222222; }
.clapperboard-field textarea,
.clapperboard-duration select,
.input-with-suffix {
  border-color: #deded9;
  border-radius: 12px;
  background: #ffffff;
  color: #151515;
}
.clapperboard-field textarea:focus,
.clapperboard-duration select:focus,
.input-with-suffix:focus-within {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgb(17 17 17 / 0.08);
}
.input-with-suffix > span { color: #555555; }
.clapperboard-mode-button {
  min-height: 42px;
  border-color: #deded9;
  border-radius: 999px;
  background: #ffffff;
  color: #686868;
}
.clapperboard-mode-button:hover:not(:disabled) { border-color: #111111; color: #111111; }
.clapperboard-mode-button.is-selected { border-color: #111111; background: #111111; color: #ffffff; }
.inline-note { color: #777777; }
.clapperboard-video { border-color: #e4e4e0; border-radius: 16px; background: #f4f4f2; }

.preset-grid, .filter-grid { gap: 12px; }
.preset-card {
  min-height: 96px;
  border-color: #e5e5e1;
  border-radius: 14px;
  background: #ffffff;
  opacity: 0.64;
}
.preset-card:has(input:checked) { border-color: #111111; background: #f6f6f4; opacity: 1; }
.preset-card .preset-index, .result-group-title .preset-index { color: #777777; }
.preset-card input { accent-color: #111111; }

.primary-button, .secondary-button, .danger-button, .text-button, .icon-button { border-radius: 999px; }
.generate-panel { display: flex; justify-content: flex-end; }
.primary-button {
  width: min(100%, 290px);
  margin-top: 0;
  padding: 14px 18px;
  background: #111111;
  color: #ffffff;
}
.secondary-button { border: 1px solid #111111; background: #111111; color: #ffffff; }
.text-button { color: #333333; }
.icon-button { background: #f2f2ef; color: #111111; }
.danger-button { color: var(--danger); }
.progress-track { background: #ebebe8; }
.progress-track span, .preset-progress-step.done { background: #111111; color: #ffffff; }
.preset-progress-step.current { border-color: #111111; color: #111111; box-shadow: 0 0 0 1px rgb(17 17 17 / 0.12); }
.clapperboard-progress-track.running span { background: linear-gradient(90deg, #111111, #777777, #111111); }
.stop-job-button { border-color: rgb(185 69 64 / 0.4); background: #fff7f6; color: var(--danger); }

.result-card { border-color: #e5e5e1; border-radius: 14px; background: #ffffff; }
.result-card.base-result-card { border-color: #111111; }
.result-card-actions a, .result-card-actions button { border-color: #dfdfdb; color: #606060; }
.result-card-actions a:hover, .result-card-actions button:hover { border-color: #111111; color: #111111; }
.modal-backdrop { background: rgb(17 17 17 / 0.34); }
.modal-card { border-color: #e7e7e3; background: #ffffff; }
.compare-grid img { background: #f2f2ef; }
.toast { border-color: #222222; border-radius: 14px; background: #111111; color: #ffffff; box-shadow: 0 18px 45px rgb(17 17 17 / 0.18); }

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; gap: 12px; }
  .service-switcher { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .service-switcher-button { flex: 1; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .hero-row { margin-top: 58px; }
}

@media (max-width: 640px) {
  .site-header, .page-shell { padding-right: 18px; padding-left: 18px; }
  .site-header { display: grid; padding-top: 15px; padding-bottom: 15px; }
  .header-actions { gap: 8px; }
  .health-badge { font-size: 10px; }
  .hero-row { margin-top: 46px; margin-bottom: 38px; }
  .hero h1 { font-size: clamp(42px, 13vw, 60px); }
  .terms-banner { padding: 17px; }
  .panel { padding: 19px; }
  .generate-panel, .clapperboard-generate-panel { display: grid; }
  .primary-button { width: 100%; }
}

/* Director's Console: a compact, cinematic alternative to the centered light layout. */
:root {
  --bg: #0d1420;
  --panel: #151f2e;
  --panel-soft: #101a28;
  --line: #26384f;
  --text: #edf5ff;
  --muted: #9eafc4;
  --faint: #63768e;
  --accent: #67d5ff;
  --accent-ink: #08131f;
  --danger: #ff9d9d;
  --radius: 11px;
  --shadow: 0 18px 48px rgb(0 0 0 / 0.24);
}
body.is-clapperboard {
  --accent: #c6a0ff;
  --accent-ink: #180e28;
}
html { background: var(--bg); }
body {
  color: var(--text);
  background:
    linear-gradient(rgb(7 13 23 / 0.74), rgb(7 13 23 / 0.92)),
    radial-gradient(circle at 16% -8%, rgb(103 213 255 / 0.15), transparent 31rem),
    var(--bg);
  font-family: "Segoe UI", "Malgun Gothic", sans-serif;
}
body.is-clapperboard {
  background:
    linear-gradient(rgb(11 10 24 / 0.72), rgb(11 10 24 / 0.94)),
    radial-gradient(circle at 84% -6%, rgb(198 160 255 / 0.16), transparent 33rem),
    var(--bg);
}
body::before { display: none; }

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  max-width: 1440px;
  padding: 19px 34px;
  border-bottom-color: rgb(126 161 201 / 0.19);
  background: rgb(10 18 30 / 0.86);
  backdrop-filter: blur(16px);
}
.brand { gap: 11px; color: var(--text); }
.brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid rgb(103 213 255 / 0.82);
  border-radius: 8px;
  background: rgb(103 213 255 / 0.08);
  color: #93e3ff;
  font-size: 10px;
}
.brand.is-clapperboard .brand-mark {
  border: 1px solid #c6a0ff;
  border-radius: 8px 2px 8px 2px;
  background: rgb(198 160 255 / 0.16);
  box-shadow: 0 0 0 1px rgb(198 160 255 / 0.16), 0 0 14px rgb(198 160 255 / 0.12);
  color: #d6c0ff;
}
.brand strong { color: var(--text); font-size: 14px; letter-spacing: 0.02em; }
.brand small { color: var(--faint); font-size: 9px; letter-spacing: 0.16em; }
.service-switcher {
  justify-self: center;
  padding: 3px;
  border-color: rgb(126 161 201 / 0.28);
  border-radius: 8px;
  background: rgb(9 17 28 / 0.76);
}
.service-switcher-button {
  min-height: 32px;
  border-radius: 6px;
  color: var(--muted);
}
.service-switcher-button:hover { color: var(--text); }
.service-switcher-button[aria-selected="true"] { background: rgb(103 213 255 / 0.16); color: #a6e7ff; }
body.is-clapperboard .service-switcher-button[aria-selected="true"] { background: rgb(198 160 255 / 0.17); color: #dccbff; }
.header-actions { justify-self: end; gap: 12px; }
.install-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: rgb(103 213 255 / 0.48);
  border-radius: 7px;
  background: transparent;
  color: #67d5ff;
}
.install-button::before {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  content: "";
  -webkit-mask: url("/assets/icons/relight-mark-64.png?v=20260814-1") center / contain no-repeat;
  mask: url("/assets/icons/relight-mark-64.png?v=20260814-1") center / contain no-repeat;
}
.install-button:hover { background: rgb(103 213 255 / 0.12); }
body.is-clapperboard .install-button { border-color: rgb(198 160 255 / 0.48); color: #c6a0ff; }
body.is-clapperboard .install-button:hover { background: rgb(198 160 255 / 0.12); }
.health-badge { color: var(--muted); }
.health-badge.ready { color: #92e4bf; }
.health-badge.ready::before { background: #67dba0; box-shadow: 0 0 12px rgb(103 219 160 / 0.55); }

.page-shell { max-width: 1320px; padding: 42px 34px 92px; }
.hero-row {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: start;
  max-width: none;
  margin: 0 0 42px;
  text-align: left;
}
.hero { max-width: 760px; margin: 0; }
.eyebrow, .card-kicker { color: var(--accent); font-size: 10px; letter-spacing: 0.2em; }
.hero h1 {
  margin: 13px 0 0;
  color: var(--text);
  font-family: "Pretendard Variable", "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: clamp(43px, 5.5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 1;
}
.hero h1 em { color: var(--accent); font-weight: 800; text-decoration: none; }
#relight-view .hero h1,
.clapperboard-view .hero h1,
.origami-page .hero h1 {
  font-size: clamp(30px, 3vw, 40px);
  white-space: nowrap;
}
.terms-banner {
  max-width: 500px;
  margin: 0;
  padding: 22px 24px;
  border-color: rgb(126 161 201 / 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgb(103 213 255 / 0.09), rgb(16 26 40 / 0.94));
  box-shadow: var(--shadow);
}
body.is-clapperboard .terms-banner { background: linear-gradient(135deg, rgb(198 160 255 / 0.1), rgb(20 17 37 / 0.94)); }
.terms-banner h2 { color: var(--text); font-size: 19px; }
.terms-list { color: var(--muted); font-size: 11px; }
.terms-list li::marker { color: var(--accent); }
.terms-emphasis { color: var(--accent); font-size: 11px; }

.main-column { gap: 18px; }
.panel {
  padding: 25px;
  border-color: rgb(126 161 201 / 0.24);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgb(24 35 51 / 0.95), rgb(16 25 38 / 0.96));
  box-shadow: var(--shadow);
}
.section-heading { margin-bottom: 19px; }
.step-number, .progress-elapsed { color: var(--accent); }
h2 { color: var(--text); font-size: 19px; }
.hint, .job-label { color: var(--muted); }
.selection-badge { border-color: rgb(103 213 255 / 0.35); background: rgb(103 213 255 / 0.08); color: var(--accent); }

.drop-zone {
  min-height: 216px;
  border-color: rgb(126 161 201 / 0.45);
  border-radius: 8px;
  background: rgb(8 15 26 / 0.45);
  color: var(--muted);
}
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.dragging { border-color: var(--accent); background: rgb(103 213 255 / 0.08); }
body.is-clapperboard .drop-zone:hover, body.is-clapperboard .drop-zone:focus-visible, body.is-clapperboard .drop-zone.dragging { background: rgb(198 160 255 / 0.1); }
.drop-zone strong, .clapperboard-field > span:first-child { color: var(--text); }
.upload-icon { border-color: var(--accent); border-radius: 8px; background: rgb(103 213 255 / 0.08); color: var(--accent); }
.source-card { border-color: rgb(126 161 201 / 0.26); border-radius: 8px; background: rgb(9 16 27 / 0.62); }
.relight-prompt-mode { border-color: rgb(126 161 201 / 0.26); border-radius: 8px; background: rgb(9 16 27 / 0.62); }
.clapperboard-field { color: var(--muted); }
.clapperboard-field textarea,
.clapperboard-duration select,
.input-with-suffix {
  border-color: rgb(126 161 201 / 0.35);
  border-radius: 7px;
  background: rgb(7 14 24 / 0.68);
  color: var(--text);
}
.clapperboard-field textarea:focus,
.clapperboard-duration select:focus,
.input-with-suffix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(103 213 255 / 0.1); }
body.is-clapperboard .clapperboard-field textarea:focus,
body.is-clapperboard .clapperboard-duration select:focus,
body.is-clapperboard .input-with-suffix:focus-within { box-shadow: 0 0 0 3px rgb(198 160 255 / 0.12); }
.input-with-suffix > span { color: var(--accent); }
.clapperboard-mode-button {
  border-color: rgb(126 161 201 / 0.32);
  border-radius: 7px;
  background: rgb(8 15 25 / 0.58);
  color: var(--muted);
}
.clapperboard-mode-button:hover:not(:disabled) { border-color: var(--accent); color: var(--text); }
.clapperboard-mode-button.is-selected { border-color: var(--accent); background: rgb(103 213 255 / 0.13); color: var(--accent); }
body.is-clapperboard .clapperboard-mode-button.is-selected { background: rgb(198 160 255 / 0.15); }
.inline-note { color: var(--muted); }

.preset-card, .result-card { border-color: rgb(126 161 201 / 0.24); border-radius: 8px; background: rgb(8 15 25 / 0.56); }
.preset-card:has(input:checked) { border-color: var(--accent); background: rgb(103 213 255 / 0.09); }
body.is-clapperboard .preset-card:has(input:checked) { background: rgb(198 160 255 / 0.1); }
.preset-card .preset-index, .result-group-title .preset-index { color: var(--accent); }
.primary-button, .secondary-button, .danger-button, .text-button, .icon-button { border-radius: 7px; }
.generate-panel { display: flex; justify-content: flex-end; }
.primary-button { width: min(100%, 330px); padding: 14px 17px; background: var(--accent); color: var(--accent-ink); }
.secondary-button { border: 0; background: var(--accent); color: var(--accent-ink); }
.text-button { color: var(--accent); }
.icon-button { background: rgb(103 213 255 / 0.1); color: var(--accent); }
.progress-track { background: rgb(4 10 17 / 0.74); }
.progress-track span, .preset-progress-step.done { background: var(--accent); color: var(--accent-ink); }
.clapperboard-progress-track.running span { background: linear-gradient(90deg, var(--accent), #d4efff, var(--accent)); }
body.is-clapperboard .clapperboard-progress-track.running span { background: linear-gradient(90deg, var(--accent), #ece1ff, var(--accent)); }
.stop-job-button { border-color: rgb(255 157 157 / 0.45); background: rgb(255 157 157 / 0.08); color: var(--danger); }
.modal-backdrop { background: rgb(3 8 15 / 0.72); }
.modal-card { border-color: var(--line); background: var(--panel); }
.compare-grid img, .clapperboard-video { background: #060c15; }
.toast { border-color: rgb(103 213 255 / 0.48); border-radius: 8px; background: #0c1725; color: var(--text); }
.turnstile-container { position: fixed; z-index: 120; right: 24px; bottom: 24px; }
.turnstile-container:empty { display: none; }

@media (max-width: 980px) {
  .hero-row { grid-template-columns: 1fr; gap: 22px; }
  .terms-banner { max-width: none; }
  #relight-view .hero h1,
  .clapperboard-view .hero h1,
  .origami-page .hero h1 { font-size: clamp(18px, 5vw, 46px); }
}
@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; gap: 12px; }
  .service-switcher { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .service-switcher-button { flex: 1; }
  .header-actions { grid-column: 2; grid-row: 1; }
}
@media (max-width: 640px) {
  .site-header, .page-shell { padding-right: 18px; padding-left: 18px; }
  .site-header { padding-top: 15px; padding-bottom: 15px; }
  .page-shell { padding-top: 30px; }
  .panel { padding: 18px; }
  .generate-panel, .clapperboard-generate-panel { display: grid; justify-content: stretch; }
  .primary-button { width: 100%; }
  #clapperboard-view .clapperboard-mode-switcher { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  #clapperboard-view .clapperboard-mode-button { min-width: 0; padding: 0 6px; font-size: 12px; }
  .clapperboard-output-options { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .clapperboard-megapixels, .clapperboard-duration, .clapperboard-rtx-option { width: 100%; }
  .simulation-heading { align-items: flex-start; }
  .simulation-choice-grid { grid-template-columns: 1fr; }
  .simulation-choice { grid-template-columns: auto minmax(0, 1fr); }
  .simulation-choice-spec { grid-column: 2; white-space: normal; }
}
