@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("assets/fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("assets/fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #09090b;
  --panel: #121216;
  --panel-2: #17171c;
  --field: #1d1d23;
  --line: #303039;
  --line-soft: #24242b;
  --text: #f5f5f7;
  --muted: #aaaab4;
  --muted-2: #878791;
  --orange: #ff762f;
  --orange-2: #ff9a45;
  --red: #ff4f3f;
  --green: #55d798;
  --danger: #ff6878;
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 1120px; min-height: 100vh; color: var(--text); background: var(--bg); font-size: 15px; }
button, input, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 3px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.page-shell { width: min(1220px, calc(100% - 48px)); margin: 0 auto; }

.topnav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 76px; border-bottom: 1px solid var(--line-soft); }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--orange); color: #111; font-size: 18px; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; }
.brand small { margin-top: 3px; color: var(--muted-2); font-size: 10px; }
.topnav-note { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
.status-light { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.topnav-note .status-light { background: var(--green); }
.engine-chip { justify-self: end; display: flex; align-items: center; gap: 10px; min-width: 190px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); text-align: left; cursor: pointer; }
.engine-chip small, .engine-chip strong { display: block; }
.engine-chip small { color: var(--muted-2); font-size: 9px; letter-spacing: .09em; }
.engine-chip strong { margin-top: 3px; font-size: 11px; }
.engine-connected .status-light { background: var(--green); }

.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) 380px; align-items: center; gap: 100px; min-height: 490px; padding: 72px 20px 80px; }
.eyebrow { margin: 0; color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 8px; color: #d7d7dc; }
.hero-copy .eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 { margin: 18px 0 18px; font-size: 58px; line-height: .98; letter-spacing: -.055em; }
.hero h1 span { color: var(--orange-2); }
.hero-copy > p:not(.eyebrow) { max-width: 690px; margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.hero-copy > small { display: block; margin-top: 12px; color: var(--muted-2); font-size: 10px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 45px; padding: 0 17px; border: 1px solid var(--orange); border-radius: 7px; background: var(--orange); color: #17100c; font-size: 12px; font-weight: 800; text-decoration: none; cursor: pointer; }
.primary-button:hover:not(:disabled) { background: var(--orange-2); }
.primary-button:disabled { border-color: var(--line); background: #24242a; color: var(--muted-2); cursor: not-allowed; }
.primary-button svg { width: 16px; }
.hero-button { width: max-content; }

.hero-status { padding: 18px; border: 1px solid rgba(255,118,47,.35); border-radius: 18px; background: linear-gradient(145deg, rgba(255,118,47,.07), rgba(255,79,63,.025)), var(--panel); }
.hero-status-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.hero-status-head b { color: var(--orange); }
.status-visual { display: flex; align-items: center; justify-content: center; gap: 30px; min-height: 190px; }
.status-disc { display: grid; place-items: center; align-content: center; width: 126px; height: 126px; border: 1px solid rgba(255,118,47,.65); border-radius: 50%; box-shadow: 0 0 0 9px rgba(255,118,47,.035), 0 0 0 18px rgba(255,118,47,.02); }
.status-disc span { color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.status-disc strong { margin-top: 4px; color: var(--orange); font-size: 25px; }
.status-bars { display: flex; align-items: center; gap: 7px; height: 90px; }
.status-bars i { width: 3px; border-radius: 3px; background: var(--orange); }
.status-bars i:nth-child(1) { height: 30px; }.status-bars i:nth-child(2) { height: 62px; }.status-bars i:nth-child(3) { height: 42px; }.status-bars i:nth-child(4) { height: 74px; }.status-bars i:nth-child(5) { height: 48px; }
.hero-status dl { display: grid; gap: 7px; margin: 0; }
.hero-status dl div { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px; border-radius: 6px; background: #0e0e11; }
.hero-status dt { color: var(--muted); font-size: 10px; }
.hero-status dd { margin: 0; font-size: 10px; font-weight: 800; }
.safe-text { color: var(--green); }

.production-stats { position: relative; overflow: hidden; margin-bottom: 22px; padding: 20px 26px 14px; border: 1px solid rgba(255,118,47,.34); border-radius: 18px; background: radial-gradient(circle at 8% 0%, rgba(255,118,47,.1), transparent 35%), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px), #111115; background-size: auto, 56px 56px, 56px 56px, auto; }
.production-stats::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--orange), transparent); opacity: .55; }
.production-stats-head, .production-stats-foot { display: flex; align-items: center; justify-content: space-between; }
.production-stats-head { padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.production-stats-head .eyebrow { display: flex; align-items: center; gap: 9px; color: var(--muted-2); }
.production-stats-head .eyebrow span { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 14px rgba(255,118,47,.8); }
.stats-live { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.stats-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(85,215,152,.85); }
.production-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 16px 0; }
.production-stat-card { display: flex; align-items: center; gap: 18px; min-height: 108px; padding: 16px 20px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(10,10,13,.92); }
.production-stat-card:first-child { position: relative; }
.production-stat-card:first-child::after { content: ""; position: absolute; top: 18px; right: -16px; width: 1px; height: 72px; background: var(--line); }
.production-stat-icon { position: relative; display: grid; flex: none; place-items: center; width: 64px; height: 64px; border: 1px solid rgba(255,118,47,.45); border-radius: 50%; color: var(--orange); background: radial-gradient(circle, rgba(255,118,47,.12), transparent 62%); box-shadow: 0 0 0 7px rgba(255,118,47,.035), inset 0 0 18px rgba(255,118,47,.06); }
.production-stat-icon::before { content: ""; position: absolute; inset: 5px; border: 1px dashed rgba(255,118,47,.42); border-radius: inherit; }
.production-stat-icon.secondary { color: var(--orange-2); border-color: rgba(255,154,69,.45); }
.production-stat-icon svg { width: 23px; height: 23px; }
.production-stat-card > div:last-child { display: grid; }
.production-stat-card strong { font-size: 38px; line-height: 1; letter-spacing: -.05em; transition: color 180ms ease, transform 180ms ease; }
.production-stat-card strong.updated { color: var(--orange-2); transform: translateY(-2px); }
.production-stat-card span { margin-top: 7px; font-size: 12px; font-weight: 800; }
.production-stat-card small { margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.production-stats-foot { padding-top: 11px; border-top: 1px solid rgba(255,255,255,.07); color: var(--muted-2); font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.production-stats-foot span:last-child { font-weight: 500; letter-spacing: 0; }

.tool-section, .how-section, .results-section { margin-bottom: 22px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.section-heading, .results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.section-heading h2, .results-heading h2 { margin: 7px 0 0; font-size: 26px; letter-spacing: -.03em; }
.section-heading > span { color: var(--muted); font-size: 12px; }
.tool-grid { display: grid; grid-template-columns: minmax(620px, 1fr) 360px; gap: 18px; }
.source-panel { min-width: 0; }
#videoInput, #faceInput { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.video-drop { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 410px; border: 1px dashed rgba(255,118,47,.55); border-radius: 10px; background: #0b0b0d; }
.video-drop.dragging { border-color: var(--orange-2); background: rgba(255,118,47,.025); }
.video-drop video { display: none; width: 100%; height: 410px; object-fit: contain; background: #050506; }
.video-drop.has-video video { display: block; }
.video-drop.has-video .video-empty { display: none; }
.video-empty { display: flex; flex-direction: column; align-items: center; padding: 35px; text-align: center; }
.upload-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 19px; border: 1px solid rgba(255,118,47,.45); border-radius: 50%; color: var(--orange); }
.video-empty small { color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.video-empty strong { margin-top: 8px; font-size: 23px; }
.video-empty > span:not(.upload-icon) { margin: 6px 0 19px; color: var(--muted); font-size: 12px; }
.file-button { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--field); color: var(--text); font-size: 11px; font-weight: 700; cursor: pointer; }
.file-button:hover { border-color: var(--orange); }
.local-badge { position: absolute; top: 12px; left: 12px; display: none; padding: 5px 7px; border-radius: 4px; background: rgba(9,9,11,.85); color: var(--green); font-size: 9px; font-weight: 800; }
.has-video .local-badge { display: block; }
.file-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; padding: 11px 13px; border: 1px solid var(--line-soft); border-radius: 7px; background: var(--panel-2); }
.summary-name { min-width: 0; }
.summary-name small, .summary-name strong { display: block; }
.summary-name small, .file-summary dt { color: var(--muted-2); font-size: 9px; font-weight: 700; }
.summary-name strong { overflow: hidden; margin-top: 4px; max-width: 390px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.file-summary dl { display: flex; gap: 24px; margin: 0; }
.file-summary dl div { min-width: 75px; }
.file-summary dd { margin: 3px 0 0; font-size: 11px; font-weight: 700; }
.mode-decision { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 13px; border: 1px solid rgba(255, 122, 47, .38); border-radius: 7px; background: linear-gradient(90deg, rgba(255, 122, 47, .09), rgba(255, 122, 47, .025)); }
.mode-decision[data-mode="browser"] { border-color: rgba(71, 225, 148, .35); background: linear-gradient(90deg, rgba(71, 225, 148, .08), rgba(71, 225, 148, .02)); }
.mode-decision-icon { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: var(--orange); font-size: 11px; font-weight: 800; }
.mode-decision[data-mode="browser"] .mode-decision-icon { color: var(--green); }
.mode-decision small, .mode-decision strong { display: block; }
.mode-decision small { color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.mode-decision strong { margin-top: 3px; font-size: 12px; }
.mode-decision p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.mode-decision-limit { padding: 6px 8px; border-radius: 5px; background: rgba(255,255,255,.045); color: var(--text); font-size: 9px; font-weight: 800; white-space: nowrap; }
.mode-decision-actions { display: grid; justify-items: end; gap: 6px; }
.mode-decision-actions button { padding: 6px 8px; border: 1px solid rgba(255, 122, 47, .45); border-radius: 5px; background: transparent; color: var(--orange); font-size: 9px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.mode-decision-actions button:hover { border-color: var(--orange); background: rgba(255, 122, 47, .10); }
.update-notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 12px 13px; border: 1px solid rgba(255, 122, 47, .48); border-radius: 7px; background: rgba(255, 122, 47, .08); }
.update-notice[hidden] { display: none; }
.update-notice small, .update-notice strong { display: block; }
.update-notice small { color: var(--orange); font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.update-notice strong { margin-top: 4px; font-size: 10px; }
.update-notice button { padding: 8px 10px; border: 0; border-radius: 5px; background: var(--orange); color: #0a0a0b; font-size: 9px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.mode-decision-actions button:disabled, .update-notice button:disabled { opacity: .55; cursor: wait; }
.face-source { position: relative; display: grid; min-height: 290px; margin-top: 10px; place-items: center; overflow: hidden; border: 1px dashed rgba(255,118,47,.55); border-radius: 10px; background: #0b0b0d; transition: border-color 160ms ease, background 160ms ease; }
.face-source.dragging { border-color: var(--orange-2); background: rgba(255,118,47,.035); }
.face-source > img { display: none; width: 100%; height: 290px; object-fit: cover; object-position: center 34%; background: #050506; }
.face-source.has-image > img { display: block; }
.face-empty { display: flex; flex-direction: column; align-items: center; max-width: 520px; padding: 34px; text-align: center; }
.face-empty small, .face-empty strong, .face-empty > span:not(.upload-icon) { display: block; }
.face-empty small { color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.face-empty strong { overflow: hidden; max-width: 100%; margin-top: 8px; font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }
.face-empty > span:not(.upload-icon) { margin: 6px 0 19px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.face-local-badge { position: absolute; top: 12px; left: 12px; display: none; padding: 5px 7px; border-radius: 4px; background: rgba(9,9,11,.86); color: var(--green); font-size: 9px; font-weight: 800; }
.face-change-button { position: absolute; top: 12px; right: 12px; display: none; background: rgba(9,9,11,.86); backdrop-filter: blur(8px); }
.face-source.has-image .face-empty { position: absolute; right: 0; bottom: 0; left: 0; align-items: flex-start; max-width: none; padding: 46px 16px 15px; background: linear-gradient(transparent, rgba(5,5,7,.94)); text-align: left; pointer-events: none; }
.face-source.has-image .face-empty .upload-icon, .face-source.has-image .face-primary-button { display: none; }
.face-source.has-image .face-empty strong { max-width: calc(100% - 140px); font-size: 14px; }
.face-source.has-image .face-empty > span:not(.upload-icon) { margin: 4px 0 0; font-size: 10px; }
.face-source.has-image .face-local-badge, .face-source.has-image .face-change-button { display: block; }

.settings-panel { padding: 18px; border: 1px solid rgba(255,118,47,.22); border-radius: 10px; background: #101014; }
.settings-head { display: flex; justify-content: space-between; margin-bottom: 17px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.settings-head b { color: var(--green); }
.setting-block { position: relative; display: block; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.setting-block > span { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.setting-block small, .audio-row small, .folder-row small { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 700; }
.setting-block output { font-size: 13px; font-weight: 800; }
.setting-block i { color: var(--muted-2); font-size: 10px; font-style: normal; }
.setting-block em { color: var(--muted-2); font-size: 9px; font-style: normal; }
.setting-block em:last-child { float: right; }
input[type="range"] { width: 100%; height: 4px; margin: 4px 0 7px; accent-color: var(--orange); }
.number-box { display: grid; grid-template-columns: 40px 1fr 40px; overflow: hidden; height: 42px; border: 1px solid var(--line); border-radius: 6px; }
.number-box button, .number-box input { border: 0; background: var(--field); color: var(--text); text-align: center; }
.number-box button { color: var(--muted); font-size: 19px; cursor: pointer; }
.number-box input { min-width: 0; border-right: 1px solid var(--line); border-left: 1px solid var(--line); font-weight: 800; outline: 0; }
.number-box input::-webkit-inner-spin-button { appearance: none; }
select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--field); color: var(--text); font-size: 11px; outline: 0; }
.audio-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.audio-row small, .audio-row strong { display: block; }
.audio-row strong { margin-top: 4px; font-size: 11px; }
.cpu-row { padding-top: 12px; }
.cpu-row strong { color: var(--muted); }
.cpu-row.enabled strong { color: var(--orange); }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch > span { position: relative; display: block; width: 38px; height: 22px; border-radius: 12px; background: #35353d; cursor: pointer; }
.switch > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #aaaab2; transition: 150ms ease; }
.switch input:focus-visible + span { outline: 2px solid var(--orange-2); outline-offset: 3px; }
.switch input:checked + span { background: var(--orange); }
.switch input:checked + span::after { left: 19px; background: white; }
.privacy-consent { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 10px; margin: 1px 0 12px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); cursor: pointer; }
.privacy-consent > input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--orange); }
.privacy-consent strong, .privacy-consent small { display: block; }
.privacy-consent strong { font-size: 10px; line-height: 1.35; }
.privacy-consent small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.privacy-consent button { padding: 2px 0; border: 0; background: transparent; color: var(--orange-2); font-size: 9px; font-weight: 700; cursor: pointer; }
.privacy-consent:focus-within { border-color: rgba(255,122,47,.55); }
.folder-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; margin: 2px 0 12px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); text-align: left; cursor: pointer; }
.folder-row svg, .folder-row > b { color: var(--orange); }
.folder-row span { min-width: 0; }
.folder-row small, .folder-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-row small { font-size: 8px; }
.folder-row strong { margin-top: 4px; font-size: 11px; }
.folder-row > b { font-size: 11px; }
.readiness { display: flex; align-items: center; gap: 8px; min-height: 39px; margin-bottom: 10px; padding: 9px 10px; border-radius: 6px; background: var(--field); color: var(--muted); font-size: 10px; line-height: 1.4; }
.readiness > span { color: var(--orange); font-weight: 800; }
.settings-panel > .primary-button { width: 100%; }
.sample-button { width: 100%; min-height: 34px; margin-top: 7px; border: 0; background: transparent; color: var(--muted-2); font-size: 10px; cursor: pointer; }

.process-row { display: grid; grid-template-columns: .85fr 1.15fr; margin-top: 18px; border: 1px solid var(--line-soft); border-radius: 8px; background: #0d0d10; }
.engine-copy, .progress-copy { padding: 15px 17px; }
.engine-copy { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 11px; border-right: 1px solid var(--line-soft); }
.engine-copy small, .engine-copy strong { display: block; }
.engine-copy small { color: var(--muted-2); font-size: 9px; font-weight: 800; }
.engine-copy strong { margin-top: 3px; font-size: 12px; }
.engine-copy p, .progress-copy p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.engine-copy button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--field); color: var(--muted); font-size: 10px; cursor: pointer; }
.progress-copy > div:first-child { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 11px; }
.progress-copy strong { color: var(--orange); }
.progress-actions { display: flex; align-items: center; gap: 9px; }
.progress-actions button { min-height: 27px; padding: 0 9px; border: 1px solid rgba(255,122,47,.42); border-radius: 5px; background: rgba(255,122,47,.09); color: #ff9b61; font-size: 9px; font-weight: 800; cursor: pointer; }
.progress-actions button:disabled { opacity: .55; cursor: wait; }
.progress-track, .render-track { overflow: hidden; height: 5px; border-radius: 3px; background: #292930; }
.progress-track span, .render-track span { display: block; width: 0; height: 100%; background: var(--orange); transition: width 180ms linear; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.how-grid article { min-height: 150px; padding: 17px; border: 1px solid var(--line-soft); border-radius: 8px; background: #0d0d10; }
.how-grid b { display: block; margin-bottom: 28px; color: var(--orange); font-size: 11px; }
.how-grid strong { font-size: 14px; }
.how-grid p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.results-heading p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.results-heading p.warning { color: var(--orange-2); }
.result-actions { display: flex; gap: 8px; }
.result-actions .primary-button { min-width: 190px; }
.ghost-button { min-height: 43px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.render-status { margin-bottom: 17px; padding: 14px 15px; border: 1px solid rgba(255,118,47,.28); border-radius: 8px; background: #0e0e11; }
.render-status-top, .render-status-bottom { display: flex; align-items: center; justify-content: space-between; }
.render-status-top { margin-bottom: 10px; }
.render-status-top small, .render-status-top strong { display: block; }
.render-status-top small { color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.render-status-top strong { margin-top: 3px; font-size: 12px; }
.render-status-controls { display: flex; align-items: center; gap: 12px; }
.render-status-controls b { font-size: 18px; }
.render-status-controls button { min-height: 32px; padding: 0 11px; border: 1px solid rgba(255,104,120,.4); border-radius: 6px; background: rgba(255,104,120,.08); color: #ff8996; font-size: 10px; font-weight: 700; cursor: pointer; }
.render-status-controls button:disabled { color: var(--muted-2); cursor: wait; }
.render-status-bottom { margin-top: 9px; color: var(--muted); font-size: 10px; }
.render-status-bottom strong { color: var(--text); }
.scene-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.scene-card { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 8px; background: #0e0e11; }
.scene-card.selected { border-color: rgba(255,118,47,.78); }
.scene-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #070708; }
.scene-media img { width: 100%; height: 100%; object-fit: cover; }
.scene-empty { display: grid; place-items: center; width: 100%; height: 100%; padding: 20px; color: var(--muted-2); font-size: 10px; line-height: 1.5; text-align: center; }
.scene-index, .scene-duration { position: absolute; top: 8px; padding: 4px 6px; border-radius: 4px; background: rgba(7,7,8,.86); font-size: 9px; font-weight: 800; }
.scene-index { left: 8px; }.scene-duration { right: 8px; }
.scene-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; background: transparent; cursor: pointer; }
.scene-play span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(8,8,10,.72); opacity: 0; transition: opacity 130ms ease; }
.scene-media:hover .scene-play span { opacity: 1; }
.scene-body { padding: 10px; }
.scene-title-row { display: flex; justify-content: space-between; gap: 8px; }
.scene-title-row strong { font-size: 11px; }.scene-title-row > span { color: var(--green); font-size: 9px; }
.scene-body p { margin: 5px 0 10px; color: var(--muted); font-size: 9px; }
.scene-actions { display: flex; justify-content: space-between; }
.scene-actions button { border: 0; background: transparent; font-size: 10px; cursor: pointer; }
.scene-preview-button { padding: 0; color: var(--muted); }
.scene-select { padding: 5px 7px; border-radius: 4px !important; background: #25252b !important; color: var(--muted) !important; }
.scene-card.selected .scene-select { background: rgba(255,118,47,.1) !important; color: var(--orange-2) !important; }
.video-only-note { margin-top: 15px; padding: 10px 12px; border-left: 3px solid var(--green); background: #0e0e11; color: var(--muted); font-size: 10px; }
.video-only-note span { margin-right: 8px; color: var(--green); font-weight: 800; }

.preview-dialog { width: min(900px, calc(100vw - 120px)); padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); box-shadow: 0 20px 70px rgba(0,0,0,.7); }
.preview-dialog::backdrop { background: rgba(0,0,0,.75); }
.preview-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.preview-dialog-head small, .preview-dialog-head strong { display: block; }
.preview-dialog-head small { color: var(--orange); font-size: 9px; font-weight: 800; }.preview-dialog-head strong { margin-top: 3px; font-size: 13px; }
.preview-dialog-head button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; background: var(--field); color: var(--muted); font-size: 20px; cursor: pointer; }
.preview-dialog video { display: block; width: 100%; max-height: 68vh; background: #050506; }
.preview-dialog > p { margin: 0; padding: 11px 16px; color: var(--muted); font-size: 11px; }
.privacy-dialog { width: min(620px, calc(100vw - 120px)); padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); box-shadow: 0 20px 70px rgba(0,0,0,.7); }
.privacy-dialog::backdrop { background: rgba(0,0,0,.78); }
.privacy-dialog-body { padding: 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.privacy-dialog-body p { margin: 0 0 12px; }
.privacy-dialog-body p:last-child { margin: 12px 0 0; color: var(--text); }
.privacy-dialog-body ul { margin: 0; padding-left: 20px; }
.privacy-dialog-body li + li { margin-top: 6px; }
.professional-dialog { width: min(720px, calc(100vw - 100px)); max-height: calc(100vh - 70px); padding: 0; overflow: hidden; border: 1px solid rgba(255,122,47,.5); border-radius: 14px; background: #101014; color: var(--text); box-shadow: 0 28px 90px rgba(0,0,0,.78), 0 0 0 1px rgba(255,122,47,.08); }
.professional-dialog::backdrop { background: rgba(3,3,5,.82); backdrop-filter: blur(7px); }
.professional-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid var(--line-soft); background: linear-gradient(90deg, rgba(255,122,47,.1), transparent 55%); }
.professional-dialog-head small, .professional-dialog-head strong { display: block; }
.professional-dialog-head small { color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.professional-dialog-head strong { margin-top: 4px; font-size: 16px; }
.professional-dialog-head button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); color: var(--muted); font-size: 21px; cursor: pointer; }
.professional-dialog-body { max-height: calc(100vh - 145px); padding: 20px; overflow: auto; }
.professional-reason { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 13px; border: 1px solid rgba(255,122,47,.28); border-radius: 9px; background: rgba(255,122,47,.055); }
.professional-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--orange); border-radius: 50%; color: var(--orange); font-size: 12px; font-weight: 800; }
.professional-reason strong { display: block; font-size: 12px; }
.professional-reason p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.professional-reason > b { padding: 7px 9px; border-radius: 6px; background: rgba(255,255,255,.045); font-size: 9px; white-space: nowrap; }
.professional-trust { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px; margin: 20px 1px 15px; }
.trust-shield { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(71,225,148,.36); border-radius: 10px; background: rgba(71,225,148,.07); color: var(--green); }
.trust-shield svg { width: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.professional-trust small { color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.professional-trust h3 { margin: 4px 0 0; font-size: 17px; }
.professional-trust p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.professional-signature-notice { margin: 0 0 12px; padding: 11px 12px; border: 1px solid rgba(255,176,71,.42); border-radius: 8px; background: rgba(255,176,71,.07); }
.professional-signature-notice[hidden] { display: none; }
.professional-signature-notice strong { color: #ffb047; font-size: 10px; }
.professional-signature-notice p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.professional-safety-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 0; padding: 0; list-style: none; }
.professional-safety-list li { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 8px; min-height: 89px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: #0c0c0f; }
.professional-safety-list li > span { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: rgba(71,225,148,.1); color: var(--green); font-size: 10px; font-weight: 800; }
.professional-safety-list strong { font-size: 10px; }
.professional-safety-list p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.professional-dialog-actions { display: grid; grid-template-columns: 135px 1fr; gap: 9px; margin-top: 17px; }
.professional-dialog-actions .ghost-button, .professional-dialog-actions .primary-button { width: 100%; }
.professional-dialog-actions button:disabled { opacity: .55; cursor: wait; }
.professional-verification { margin: 9px 0 0; color: var(--muted-2); font-size: 8px; line-height: 1.5; text-align: center; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; max-width: 440px; padding: 12px 15px; border: 1px solid rgba(255,118,47,.38); border-radius: 7px; background: #202025; box-shadow: 0 12px 34px rgba(0,0,0,.5); font-size: 11px; line-height: 1.5; opacity: 0; transform: translateY(12px); pointer-events: none; transition: 160ms ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
footer { display: flex; justify-content: space-between; padding: 10px 2px 28px; color: var(--muted-2); font-size: 10px; }

@media (max-width: 1320px) {
  .hero { gap: 65px; }
  .tool-grid { grid-template-columns: minmax(560px, 1fr) 340px; }
  .scene-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
