:root {
  --bg: #0b0b0f;
  --surface: #121218;
  --surface-2: #17171e;
  --line: #2a2a33;
  --line-soft: #202028;
  --text: #f5f2ec;
  --muted: #96949e;
  --lime: #d8ff3e;
  --lime-dark: #99b51e;
  --danger: #ff6b6b;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "DM Sans", sans-serif; min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }
.topbar { height: 74px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 5vw, 76px); position: sticky; top: 0; z-index: 10; background: rgba(11,11,15,.88); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 800 16px "Manrope"; letter-spacing: .18em; }
.brand small { font: 500 9px "DM Sans"; color: var(--muted); letter-spacing: .2em; border-left: 1px solid var(--line); padding-left: 13px; }
.brand-mark { width: 24px; height: 24px; display: flex; gap: 2px; align-items: end; }
.brand-mark i { display: block; width: 6px; background: var(--lime); transform: skew(-15deg); }
.brand-mark i:nth-child(1) { height: 13px; }.brand-mark i:nth-child(2) { height: 21px; }.brand-mark i:nth-child(3) { height: 16px; }
.top-actions, .system-status { display: flex; align-items: center; gap: 13px; }
.system-status { color: var(--muted); font-size: 12px; }
.system-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); background: var(--surface); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.icon-button svg { width: 17px; fill: none; stroke: var(--muted); stroke-width: 1.5; }
.shell { max-width: 1420px; margin: auto; padding: 0 clamp(20px, 5vw, 76px) 90px; }
.hero { min-height: 365px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.eyebrow, .dialog-heading p, .section-title p { color: var(--lime); font: 700 10px "Manrope"; letter-spacing: .22em; margin: 0 0 18px; }
.hero h1 { font: 700 clamp(42px, 5.5vw, 74px)/.98 "Manrope"; letter-spacing: -.055em; margin: 0; max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero-copy { color: var(--muted); font-size: 16px; max-width: 580px; line-height: 1.6; margin: 28px 0 0; }
.hero-orbit { width: 280px; height: 280px; display: grid; place-items: center; position: relative; margin-right: 20px; flex: 0 0 auto; }
.orbit-ring { position: absolute; inset: 18px; border: 1px solid var(--line); border-radius: 50%; }
.orbit-ring::before,.orbit-ring::after { content:""; position:absolute; border-radius:50%; border:1px dashed #25252e; }
.orbit-ring::before { inset: 28px; }.orbit-ring::after { inset: 64px; }
.orbit-core { width: 90px; height: 90px; border-radius: 50%; background: var(--lime); color: #0b0b0f; display:grid; place-content:center; text-align:center; box-shadow: 0 0 80px rgba(216,255,62,.16); z-index:2; }
.orbit-core span { font: 800 27px "Manrope"; line-height:1; }.orbit-core small { font-size:8px; letter-spacing:.2em; margin-top:5px; }
.workspace { display:grid; grid-template-columns:210px minmax(0,1fr) 340px; gap:24px; padding-top:42px; align-items:start; }
.workspace>.studio-sidebar-nav { grid-column:1; grid-row:1; position:sticky; top:96px; }
.workspace>#videoForm { grid-column:2; grid-row:1; }
.workspace>.sidebar { grid-column:3; grid-row:1; }
.brief { display: grid; gap: 18px; }
.panel, .preview-card, .jobs-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.panel { padding: 30px; }
.panel-heading { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.step { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--lime); font-size: 10px; flex: 0 0 auto; }
.panel h2 { font: 700 20px "Manrope"; margin: 2px 0 4px; letter-spacing: -.02em; }
.panel-heading p { color: var(--muted); font-size: 13px; margin: 0; }
.url-importer { border:1px solid #3e481b; background:linear-gradient(110deg,rgba(216,255,62,.055),rgba(216,255,62,.015)); border-radius:13px; padding:15px; margin:-3px 0 20px; }
.url-importer-copy { display:flex;align-items:center;gap:11px;margin-bottom:12px; }.url-importer-copy>span{width:30px;height:30px;border-radius:8px;background:var(--lime);color:#111;display:grid;place-items:center;font-weight:700}.url-importer-copy div{display:grid;gap:2px}.url-importer-copy b{font-size:12px}.url-importer-copy small{color:var(--muted);font-size:10px}
.url-importer-form { display:grid;grid-template-columns:1fr auto;gap:8px; }.url-importer-form button{border:0;background:var(--lime);color:#111;border-radius:9px;padding:0 16px;font-size:11px;font-weight:700;cursor:pointer}.url-importer-form button:disabled{opacity:.5;cursor:wait}
.brief-preset-bar { display:grid; grid-template-columns:minmax(145px,1fr) minmax(180px,1.2fr) auto auto 34px; gap:8px; align-items:center; margin-bottom:14px; padding:12px; border:1px solid var(--line-soft); border-radius:12px; background:var(--surface-2); }
.brief-preset-bar>div { display:flex; flex-direction:column; gap:3px; }
.brief-preset-bar b { font-size:11px; }.brief-preset-bar small { color:var(--muted); font-size:9px; }
.brief-preset-bar select,.brief-preset-bar button { height:38px; }
.brief-preset-bar .secondary-button { padding:8px 11px; white-space:nowrap; font-size:10px; }
.danger-button { color:var(--danger); }
#urlAnalysisMessage { min-height:0;color:var(--muted);font-size:10px;margin-top:0;transition:.2s}#urlAnalysisMessage:not(:empty){margin-top:9px}#urlAnalysisMessage.error{color:var(--danger)}#urlAnalysisMessage.success{color:var(--lime)}
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; background: #0e0e13; border: 1px solid var(--line-soft); border-radius: 12px; margin-bottom: 22px; }
.segmented button { border: 0; background: transparent; color: var(--muted); border-radius: 9px; padding: 11px 14px; cursor: pointer; font-size: 13px; }
.segmented button.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.field-stack, .brief label { display: grid; gap: 8px; }
.field-stack { gap: 18px; margin-bottom: 18px; }
.field-hint { display:block; margin-top:-8px; color:var(--muted); font-size:10px; line-height:1.45; }
.field-hint.error { color:var(--danger); }
.expression-tools { display:grid; gap:8px; padding:11px; border:1px solid var(--line-soft); border-radius:10px; background:var(--surface-2); }
.expression-tools>small:first-child { color:var(--text); font-size:10px; }
.expression-tags { display:flex; flex-wrap:wrap; gap:6px; }
.expression-tags button { padding:6px 9px; border:1px solid var(--line); border-radius:20px; background:#111117; color:var(--muted); font-size:9px; cursor:pointer; }
.expression-tags button:hover { border-color:var(--lime); color:var(--lime); }
.enrich-script-button { justify-self:start; width:auto; min-height:34px; }
.brief label { font-size: 12px; color: #c8c6cd; }
.brief label span, .dialog-card label span { color: #676570; font-weight: 400; margin-left: 4px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); background: #0e0e13; color: var(--text); border-radius: 10px; padding: 12px 13px; outline: none; transition: .2s; }
textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: #65751e; box-shadow: 0 0 0 3px rgba(216,255,62,.07); }
::placeholder { color: #55545d; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { min-height: 82px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: #0f0f14; padding: 15px; cursor:pointer; display:grid; align-content:center; gap:5px; transition:.2s; }
.choice b { font-size: 13px; }.choice small { color: var(--muted); font-size: 11px; }
.choice:hover, .choice.active { border-color: #63731e; background: rgba(216,255,62,.045); }
.choice.active b { color: var(--lime); }
.brand-style { margin-top:20px;border:1px solid var(--line);border-radius:13px;background:#0f0f14;overflow:hidden; }
.brand-style summary { list-style:none;display:flex;justify-content:space-between;align-items:center;padding:15px;cursor:pointer; }.brand-style summary::-webkit-details-marker{display:none}.brand-style summary>span{display:flex;align-items:center;gap:11px}.brand-style summary i{width:32px;height:32px;border-radius:8px;background:rgba(216,255,62,.09);color:var(--lime);display:grid;place-items:center;font-style:normal}.brand-style summary span span{display:grid;gap:3px}.brand-style summary b{font-size:12px}.brand-style summary small{font-size:10px;color:var(--muted)}.brand-style summary em{font-style:normal;font-size:10px;color:var(--lime)}
.brand-style[open] summary{border-bottom:1px solid var(--line-soft)}.brand-fields{padding:0 16px 16px}.brand-fields>label{margin-top:16px}.brand-fields>p{font-size:9px;color:var(--muted);margin:13px 0 0}
.mode-list { display: grid; gap: 9px; }
.mode-card { width:100%; display:grid; grid-template-columns: 42px 1fr 16px; align-items:center; gap:13px; background:#0f0f14; border:1px solid var(--line); border-radius:13px; padding:14px; text-align:left; cursor:pointer; }
.mode-card .mode-icon { width:40px; height:40px; border-radius:10px; display:grid; place-items:center; background:var(--surface-2); color:var(--muted); font-size:18px; }
.mode-card span:nth-child(2) { display:grid; gap:4px; }.mode-card b { font-size:13px; }.mode-card small { color:var(--muted); font-size:11px; }
.mode-card i { width:10px; height:10px; border:1px solid #555; border-radius:50%; }
.mode-card.active { border-color:#63731e; background:rgba(216,255,62,.04); }
.mode-card.active .mode-icon { background:var(--lime); color:#111; }.mode-card.active i { border:3px solid var(--lime); }
.subpanel { margin-top:18px; border-top:1px solid var(--line-soft); padding-top:20px; }
.subpanel-title { display:flex; justify-content:space-between; margin-bottom:14px; font-size:12px; }.subpanel-title small { color:var(--muted); }
.provider-tabs { max-width:420px; }
.avatar-picker-row { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:end; }
.secondary-button,.primary-button { border-radius:10px; padding:12px 16px; cursor:pointer; }
.secondary-button { border:1px solid var(--line); background:var(--surface-2); }
.primary-button { border:0; background:var(--lime); color:#111; font-weight:700; }
.avatar-picker-row .secondary-button { height:42px; white-space:nowrap; }
.avatar-library-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }
.avatar-library-heading>div:first-child { display:flex; flex-direction:column; gap:3px; }
.avatar-library-heading small { color:var(--muted); font-size:11px; }
.avatar-library-heading>div:last-child { display:flex; align-items:center; gap:8px; }
.avatar-library-heading .secondary-button { padding:10px 14px; }
.avatar-library { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.avatar-card { min-width:0; border:1px solid var(--line-soft); border-radius:12px; background:var(--surface-2); color:inherit; padding:0; overflow:hidden; cursor:pointer; text-align:left; transition:border-color .2s,transform .2s,box-shadow .2s; }
.avatar-card:hover:not(:disabled) { transform:translateY(-2px); border-color:var(--lime); }
.avatar-card.selected { border-color:var(--lime); box-shadow:0 0 0 1px var(--lime); }
.avatar-card:disabled { cursor:not-allowed; opacity:.55; }
.avatar-preview { display:block; position:relative; height:128px; background:#15151b; overflow:hidden; }
.avatar-preview img { width:100%; height:100%; object-fit:cover; }
.avatar-placeholder { height:100%; display:grid; place-items:center; color:var(--muted); font-family:Manrope,sans-serif; font-size:24px; }
.avatar-check { display:none; position:absolute; right:8px; top:8px; width:24px; height:24px; border-radius:50%; background:var(--lime); color:#090a08; place-items:center; font-style:normal; font-weight:800; }
.avatar-card.selected .avatar-check { display:grid; }
.avatar-card-copy { display:flex; flex-direction:column; gap:4px; padding:10px; }
.avatar-card-copy b { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:12px; }
.avatar-card-copy small { color:var(--muted); font-size:10px; }
.avatar-library-state { grid-column:1/-1; padding:20px; border:1px dashed var(--line); border-radius:12px; color:var(--muted); text-align:center; font-size:12px; }
.look-section { margin-top:16px; padding-top:14px; border-top:1px solid var(--line-soft); }
.look-library { max-height:310px; overflow-y:auto; padding:2px; }
.catalog-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:18px 0 10px; }
.catalog-heading>div { display:flex; flex-direction:column; gap:3px; }
.catalog-heading small { color:var(--muted); font-size:11px; }
.choice-library { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.catalog-card { display:grid; grid-template-columns:38px 1fr auto; align-items:center; gap:10px; min-width:0; padding:10px; border:1px solid var(--line-soft); border-radius:11px; background:var(--surface-2); color:inherit; text-align:left; cursor:pointer; }
.catalog-card:hover { border-color:#66741f; }
.catalog-card.selected { border-color:var(--lime); box-shadow:0 0 0 1px var(--lime); }
.catalog-card-copy { display:flex; min-width:0; flex-direction:column; gap:3px; }
.catalog-card-copy b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.catalog-card-copy small { color:var(--muted); font-size:9px; }
.catalog-icon { width:36px; height:36px; border-radius:9px; background:#1b1b22; display:grid; place-items:center; overflow:hidden; color:var(--lime); font-weight:800; }
.catalog-icon img { width:100%; height:100%; object-fit:cover; }
.preview-audio { width:30px; height:30px; padding:0; border:1px solid var(--line); border-radius:50%; background:#111117; color:var(--text); cursor:pointer; }
.toggle-option { display:flex!important; grid-template-columns:none!important; align-items:center; gap:11px!important; margin-top:14px; padding:12px; border:1px solid var(--line-soft); border-radius:11px; background:var(--surface-2); cursor:pointer; }
.voice-over-notice { display:flex; flex-direction:column; gap:4px; margin-bottom:14px; padding:13px; border:1px solid #63731e; border-radius:11px; background:rgba(216,255,62,.045); }
.voice-over-notice b { color:var(--lime); font-size:11px; }.voice-over-notice small { color:var(--muted); font-size:10px; line-height:1.45; }
.toggle-option input { width:17px; height:17px; accent-color:var(--lime); }
.toggle-option>span { display:flex; flex-direction:column; gap:3px; }
.toggle-option b { font-size:11px; }
.toggle-option small { color:var(--muted); font-size:10px; }
.style-library .catalog-card { grid-template-columns:52px 1fr; }
.style-library .catalog-icon { width:50px; height:42px; }
.style-library { max-height:250px; overflow-y:auto; padding:2px 6px 2px 2px; scrollbar-color:var(--line) transparent; scrollbar-width:thin; }
.brand-catalog-heading { margin-top:0; }
.brand-kit-title { display:flex; flex-direction:column; gap:3px; margin-top:18px; padding-top:16px; border-top:1px solid var(--line-soft); }
.brand-kit-title b { font-size:11px; }
.brand-kit-title small { color:var(--muted); font-size:10px; }
.brand-kit-add { display:grid; grid-template-columns:1fr auto; gap:9px; align-items:end; }
.brand-kit-add .secondary-button { height:42px; }
.brand-kit-library { margin-top:10px; }
.brand-kit-library .catalog-card { grid-template-columns:36px 1fr auto; }
.remove-brand-kit { width:28px; height:28px; border:0; border-radius:7px; background:transparent; color:var(--muted); cursor:pointer; font-size:17px; }
.remove-brand-kit:hover { background:rgba(255,255,255,.06); color:var(--danger); }
.provider-badge { display:block; width:100%; padding:12px 16px; border:1px solid #63731e; border-radius:10px; background:rgba(216,255,62,.045); color:var(--lime); font-weight:700; text-align:center; }
.studio-sidebar-nav { border:1px solid var(--line); border-radius:14px; padding:12px; background:var(--surface); display:grid; gap:7px; }
.studio-sidebar-nav>p { margin:2px 7px 5px; color:var(--muted); font-size:9px; letter-spacing:.16em; }
.studio-sidebar-nav>button { width:100%; display:grid; grid-template-columns:34px 1fr; align-items:center; gap:9px; padding:10px; border:1px solid transparent; border-radius:10px; background:transparent; color:var(--text); text-align:left; cursor:pointer; }
.studio-sidebar-nav>button>span:first-child { width:32px; height:32px; display:grid; place-items:center; border-radius:8px; background:var(--surface-2); color:var(--muted); font-size:16px; }
.studio-sidebar-nav>button>span:last-child { display:flex; min-width:0; flex-direction:column; gap:3px; }
.studio-sidebar-nav b { font-size:11px; }
.studio-sidebar-nav small { color:var(--muted); font-size:9px; }
.studio-sidebar-nav>button.active { border-color:#63731e; background:rgba(216,255,62,.045); }
.studio-sidebar-nav>button.active>span:first-child { background:var(--lime); color:#111; }
.format-duration { display:grid; grid-template-columns:1.2fr 1fr; gap:35px; align-items:center; }
.format-options { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.format-options button { border:1px solid var(--line); background:#0f0f14; border-radius:11px; min-height:94px; display:grid; place-content:center; justify-items:center; gap:4px; cursor:pointer; }
.format-options button.active { border-color:#63731e; background:rgba(216,255,62,.04); color:var(--lime); }
.format-options small { color:var(--muted); font-size:9px; }.format-options b { font-size:11px; }
.ratio { display:block; border:1px solid currentColor; border-radius:2px; margin-bottom:3px; }.ratio.portrait{width:14px;height:22px}.ratio.landscape{width:25px;height:15px}.ratio.square{width:19px;height:19px}
.duration-control > div:first-child { display:flex; justify-content:space-between; align-items:center; }
.duration-control label { font-weight:600; }.duration-control output { color:var(--lime); font:700 18px "Manrope"; }
.checkbox-row{display:flex!important;align-items:flex-start!important;justify-content:flex-start!important;gap:.65rem;padding:.75rem;border:1px solid var(--line);border-radius:10px;cursor:pointer}.checkbox-row input{width:1rem;height:1rem;margin-top:.15rem}.checkbox-row span{display:grid;gap:.15rem}.checkbox-row small{color:var(--muted);font-weight:400}
input[type="range"] { padding:0; border:0; height:4px; accent-color:var(--lime); margin:20px 0 8px; }
.range-labels { display:flex; justify-content:space-between; color:var(--muted); font-size:9px; }
.submit-zone { display:flex; justify-content:space-between; align-items:center; border:1px solid #4c581a; border-radius:var(--radius); padding:18px 20px; background:linear-gradient(105deg,rgba(216,255,62,.06),rgba(216,255,62,.015)); }
.submit-zone p { margin:0 0 3px; font-weight:600; font-size:13px; }.submit-zone small { color:var(--muted); }
.generate-button { border:0; background:var(--lime); color:#0b0b0f; min-width:190px; padding:15px 18px; border-radius:11px; display:flex; justify-content:space-between; font-weight:700; cursor:pointer; }
.generate-button:hover { background:#e4ff75; }.generate-button:disabled { opacity:.45; cursor:wait; }
.sidebar { position:sticky; top:96px; display:grid; gap:18px; }
.preview-card { padding:14px; }
.preview-top { display:flex; justify-content:space-between; padding:3px 4px 13px; color:var(--muted); font-size:9px; letter-spacing:.16em; }
.preview-top i { width:6px;height:6px;border-radius:50%;background:var(--lime); }
.preview-frame { aspect-ratio:9/13; max-height:420px; border:1px solid var(--line); border-radius:11px; position:relative; overflow:hidden; background:radial-gradient(circle at 50% 45%,#282832,#101015 65%); margin:auto; }
.preview-grid { position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:28px 28px; }
.preview-center { position:absolute;inset:0;display:grid;place-content:center;text-align:center;gap:10px;color:var(--muted); }
.preview-center span { width:62px;height:62px;border-radius:50%;border:1px solid #3a3a43;display:grid;place-items:center;margin:auto;font:700 20px "Manrope";color:var(--lime); }
.preview-center small { font-size:10px; }
.preview-frame video { width:100%;height:100%;object-fit:cover; }
.video-speed-controls { display:grid;grid-template-columns:auto 78px 1fr;align-items:center;gap:8px;margin:12px 4px 2px; }
.video-speed-controls label { color:var(--muted);font-size:10px; }
.video-speed-controls select,.video-speed-controls button { height:34px;border:1px solid var(--line);border-radius:8px;background:#15151b;color:var(--text);font:600 10px "Manrope"; }
.video-speed-controls select { padding:0 8px; }
.video-speed-controls button { cursor:pointer;background:var(--lime);color:#0b0b0f;border-color:var(--lime); }
.video-speed-controls button:disabled { opacity:.55;cursor:wait; }
.preview-card dl { margin:14px 4px 3px; }
.preview-card dl div { display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line-soft);font-size:11px; }
.preview-card dl div:last-child { border:0; }.preview-card dt{color:var(--muted)}.preview-card dd{margin:0;text-align:right}
.brand-summary-row dd { display:flex;align-items:center;justify-content:flex-end;gap:5px;max-width:210px; }
.brand-summary-row dd>span:first-child { white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.brand-dot { width:9px;height:9px;border-radius:50%;border:1px solid rgba(255,255,255,.22);display:inline-block;flex:0 0 auto; }
.jobs-card { padding:20px; }
.section-title { display:flex;justify-content:space-between;align-items:start;margin-bottom:14px; }
.section-title p { margin-bottom:5px; }.section-title h3 { margin:0;font:700 16px "Manrope"; }
.section-title button { border:1px solid var(--line);background:transparent;border-radius:50%;width:30px;height:30px;cursor:pointer;color:var(--muted); }
.jobs-list { display:grid;gap:8px;max-height:380px;overflow:auto; }
.job { border:1px solid var(--line-soft);background:#0f0f14;border-radius:11px;padding:12px;cursor:pointer; }
.job-head { display:flex;justify-content:space-between;gap:10px;align-items:center; }.job-title { font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.status-pill { font-size:8px;text-transform:uppercase;letter-spacing:.08em;padding:4px 6px;border-radius:10px;background:#23232b;color:var(--muted); }
.status-pill.completed { color:#10120a;background:var(--lime); }.status-pill.failed{color:#fff;background:#8f3232}
.job-progress { height:3px;background:#272730;border-radius:2px;margin:10px 0 7px;overflow:hidden; }.job-progress i{display:block;height:100%;background:var(--lime);}
.job-meta { display:flex;justify-content:space-between;color:var(--muted);font-size:9px; }
.job-script-toggle { margin-top:10px;padding:0;border:0;background:transparent;color:var(--lime);font:600 10px "Manrope";cursor:pointer; }
.job-script-regenerate { margin:10px 0 0 12px;padding:0;border:0;background:transparent;color:var(--muted);font:600 10px "Manrope";cursor:pointer; }
.job-script-regenerate:hover { color:var(--text); }
.job-script-regenerate:disabled { opacity:.55;cursor:wait; }
.job-script { margin-top:10px;padding:11px;border:1px solid var(--line-soft);border-radius:9px;background:#15151b;cursor:default; }
.job-script-heading { display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:10px; }
.job-script-heading small,.job-script-pending { color:var(--muted);font-size:9px;line-height:1.5; }
.job-script-text { color:#d7d7dd;font-size:10px;line-height:1.6;white-space:pre-wrap;max-height:220px;overflow:auto; }
.empty-state { color:var(--muted);font-size:11px;text-align:center;padding:28px 5px; }
.hidden { display:none !important; }
dialog { border:0;padding:0;background:transparent;color:var(--text);width:min(92vw,560px); }
dialog::backdrop { background:rgba(0,0,0,.72);backdrop-filter:blur(8px); }
.dialog-card { background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:26px;box-shadow:0 24px 80px #000;display:grid;gap:17px; }
.dialog-heading { display:flex;justify-content:space-between;align-items:start; }.dialog-heading p{margin-bottom:5px}.dialog-heading h2{margin:0;font:700 22px "Manrope";}.dialog-heading button{border:0;background:transparent;color:var(--muted);font-size:25px;cursor:pointer}
.dialog-card > p { color:var(--muted);font-size:12px;line-height:1.5;margin:0; }.dialog-card label{display:grid;gap:8px;font-size:11px}
.dialog-actions { display:flex;justify-content:flex-end;gap:9px; }.dialog-message{font-size:11px;min-height:15px;color:var(--muted)}.dialog-message.error{color:var(--danger)}.dialog-message.success{color:var(--lime)}
.toast { position:fixed;right:24px;bottom:24px;padding:13px 17px;background:var(--text);color:#111;border-radius:10px;font-size:12px;z-index:50;transform:translateY(90px);opacity:0;transition:.3s;max-width:380px; }.toast.show{transform:none;opacity:1}.toast.error{background:var(--danger);color:white}
@media(max-width:1180px){.workspace{grid-template-columns:190px minmax(0,1fr)}.workspace>#videoForm,.workspace>.sidebar{grid-column:2}.workspace>.sidebar{grid-row:2;position:static;grid-template-columns:340px 1fr}.hero-orbit{display:none}.hero{min-height:320px}}
@media(max-width:720px){.topbar{padding:0 18px}.brand small,.system-status{display:none}.shell{padding:0 14px 60px}.hero{min-height:300px}.hero h1{font-size:42px}.workspace{grid-template-columns:1fr;padding-top:14px;gap:14px}.workspace>.studio-sidebar-nav,.workspace>#videoForm,.workspace>.sidebar{grid-column:1}.workspace>.studio-sidebar-nav{grid-row:1;top:82px;z-index:8;grid-template-columns:1fr;padding:7px;background:rgba(18,18,24,.94);backdrop-filter:blur(14px)}.studio-sidebar-nav>p{display:none}.studio-sidebar-nav>button{padding:7px;grid-template-columns:28px 1fr}.studio-sidebar-nav>button>span:first-child{width:27px;height:27px}.studio-sidebar-nav small{display:none}.workspace>#videoForm{grid-row:2}.workspace>.sidebar{grid-row:3}.panel{padding:21px}.choice-grid{grid-template-columns:1fr 1fr}.two-col,.format-duration,.sidebar{grid-template-columns:1fr}.submit-zone{align-items:stretch;flex-direction:column;gap:16px}.generate-button{width:100%}.sidebar{display:grid}.preview-frame{max-height:380px}.brief-preset-bar{grid-template-columns:1fr 1fr}.brief-preset-bar>div,.brief-preset-bar select{grid-column:1/-1}.brief-preset-bar .danger-button{width:38px}.avatar-picker-row,.url-importer-form,.brand-kit-add{grid-template-columns:1fr}.avatar-picker-row .secondary-button,.url-importer-form button,.brand-kit-add .secondary-button{width:100%;height:42px}.avatar-library{grid-template-columns:repeat(2,minmax(0,1fr))}.avatar-library-heading{align-items:flex-start;flex-direction:column}.avatar-library-heading>div:last-child{width:100%}.avatar-library-heading .secondary-button{flex:1}}

/* Ozaru One 2026 visual system */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f5f3f7;
  --line: #dedbe3;
  --line-soft: #ebe8ee;
  --text: #15151d;
  --muted: #74717b;
  --lime: #ae9aff;
  --lime-dark: #765ad8;
  --purple-soft: #f0ebff;
  --danger: #c6404f;
  --radius: 14px;
  --shadow-soft: 0 1px 2px rgba(15,23,42,.04), 0 12px 32px -22px rgba(15,23,42,.28);
  --shadow-pop: 0 28px 70px -30px rgba(44,25,75,.34);
}
html { color-scheme: light; }
body {
  background:
    radial-gradient(55% 34% at 10% 0%, rgba(217,179,255,.34), transparent 74%),
    radial-gradient(45% 30% at 92% 6%, rgba(255,218,175,.36), transparent 72%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}
button, input, textarea, select { font-family: inherit; }
button { transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
button:hover:not(:disabled) { transform: translateY(-1px); }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(174,154,255,.35);
  outline-offset: 2px;
}
.noise { opacity: .018; mix-blend-mode: multiply; }
.topbar {
  height: 78px;
  border-color: rgba(21,21,29,.09);
  background: rgba(251,250,247,.84);
  backdrop-filter: blur(18px) saturate(150%);
}
.brand { color: var(--text); font: 700 16px "Space Grotesk", sans-serif; letter-spacing: .08em; }
.brand small { color: var(--muted); border-color: var(--line); font: 500 9px "JetBrains Mono", monospace; letter-spacing: .12em; }
.brand-mark { width: 26px; height: 26px; gap: 3px; align-items: center; }
.brand-mark i { width: 6px; border-radius: 999px; background: var(--text); transform: rotate(28deg); }
.brand-mark i:nth-child(1) { height: 14px; }
.brand-mark i:nth-child(2) { height: 24px; background: var(--lime); }
.brand-mark i:nth-child(3) { height: 18px; }
.system-status { color: var(--ink-soft, #514e58); font-size: 11px; }
.system-status i { background: #43aa72; box-shadow: 0 0 0 4px rgba(67,170,114,.12); }
.icon-button { background: rgba(255,255,255,.76); border-color: var(--line); box-shadow: var(--shadow-soft); }
.icon-button:hover { border-color: var(--text); background: #fff; }
.icon-button svg { stroke: var(--text); }
.shell { max-width: 1480px; }
.hero { min-height: 390px; border-color: rgba(21,21,29,.1); }
.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: 2%;
  top: -34%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95), rgba(217,179,255,.62) 34%, rgba(174,154,255,.28) 58%, transparent 72%);
  filter: blur(4px);
}
.eyebrow, .dialog-heading p, .section-title p {
  color: #6746ce;
  font: 500 10px "JetBrains Mono", monospace;
  letter-spacing: .13em;
}
.hero h1 { color: var(--text); font: 600 clamp(43px,5.5vw,76px)/.98 "Space Grotesk", sans-serif; letter-spacing: -.055em; }
.hero h1 em { color: #765ad8; }
.hero-copy { color: #5e5b65; font-size: 15px; }
.hero-orbit { z-index: 1; }
.orbit-ring { border-color: rgba(21,21,29,.16); }
.orbit-ring::before, .orbit-ring::after { border-color: rgba(21,21,29,.14); }
.orbit-core { background: var(--text); color: #fff; box-shadow: 0 0 0 12px rgba(255,255,255,.45), 0 24px 70px rgba(118,90,216,.3); }
.orbit-core::after { content:""; position:absolute; width:12px; height:12px; border-radius:50%; background:var(--lime); transform:translate(58px,-58px); }
.orbit-core span { font-family: "Space Grotesk", sans-serif; }
.panel, .preview-card, .jobs-card, .studio-sidebar-nav {
  background: rgba(255,255,255,.9);
  border-color: var(--line-soft);
  box-shadow: var(--shadow-soft);
}
.panel { position: relative; overflow: hidden; }
.panel::before { content:""; position:absolute; inset:0 auto auto 0; width:100%; height:3px; background:linear-gradient(90deg,var(--lime),rgba(255,208,151,.75),transparent 72%); opacity:.78; }
.step { border: 0; border-radius: 9px; background: var(--purple-soft); color: #6746ce; font-family: "JetBrains Mono", monospace; }
.panel h2, .section-title h3, .dialog-heading h2 { color:var(--text); font-family:"Space Grotesk",sans-serif; }
.panel-heading p, .subpanel-title small, .avatar-library-heading small, .catalog-heading small { color:var(--muted); }
.url-importer, .submit-zone {
  border-color: rgba(118,90,216,.23);
  background: linear-gradient(115deg, rgba(240,235,255,.95), rgba(255,244,231,.72));
}
.url-importer-copy>span { background:var(--text); color:#fff; }
.url-importer-form button, .generate-button, .primary-button, .video-speed-controls button {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 20px -12px rgba(21,21,29,.8);
}
.url-importer-form button:hover, .generate-button:hover, .primary-button:hover, .video-speed-controls button:hover { background:#302f39; }
.brief-preset-bar, .expression-tools, .toggle-option { background:#faf9fb; border-color:var(--line-soft); }
.segmented { background:#f0eef3; border-color:#e5e1e8; }
.segmented button { color:#6f6b77; }
.segmented button.active { background:#fff; color:var(--text); box-shadow:0 1px 4px rgba(15,23,42,.09); }
.brief label { color:#34323a; font-weight:500; }
.brief label span, .dialog-card label span { color:#8c8892; }
input, textarea, select {
  border-color:#dcd8e0;
  background:#fff;
  color:var(--text);
  box-shadow:0 1px 1px rgba(15,23,42,.025);
}
input:focus, textarea:focus, select:focus { border-color:#9279eb; box-shadow:0 0 0 3px rgba(174,154,255,.2); }
::placeholder { color:#aaa6af; }
.expression-tags button, .choice, .mode-card, .format-options button, .brand-style, .catalog-card, .avatar-card, .job, .preview-audio {
  background:#fff;
  border-color:var(--line);
}
.expression-tags button { color:#67636d; }
.expression-tags button:hover { border-color:#9279eb; color:#6746ce; background:var(--purple-soft); }
.choice:hover, .choice.active, .mode-card.active, .format-options button.active, .studio-sidebar-nav>button.active {
  border-color:#ae9aff;
  background:#f7f4ff;
  box-shadow:0 0 0 1px rgba(174,154,255,.18);
}
.choice.active b, .format-options button.active { color:#6746ce; }
.mode-card .mode-icon, .studio-sidebar-nav>button>span:first-child { background:#f1eff4; color:#68646e; }
.mode-card.active .mode-icon, .studio-sidebar-nav>button.active>span:first-child { background:var(--text); color:#fff; }
.mode-card.active i { border-color:#765ad8; }
.brand-style summary i { background:var(--purple-soft); color:#6746ce; }
.brand-style summary em, .voice-over-notice b, .provider-badge, #urlAnalysisMessage.success { color:#6746ce; }
.voice-over-notice, .provider-badge { border-color:#c9bcf7; background:#f7f4ff; }
.avatar-card:hover:not(:disabled), .avatar-card.selected, .catalog-card:hover, .catalog-card.selected { border-color:#9279eb; }
.avatar-card.selected, .catalog-card.selected { box-shadow:0 0 0 2px rgba(174,154,255,.22); }
.avatar-preview, .catalog-icon { background:#f1eff4; }
.avatar-placeholder, .catalog-icon { color:#6746ce; }
.avatar-check { background:var(--text); color:#fff; }
.secondary-button { background:#fff; border-color:var(--line); color:var(--text); }
.secondary-button:hover { border-color:var(--text); }
.provider-badge { font-family:"Space Grotesk",sans-serif; }
.studio-sidebar-nav>p, .preview-top, .player-footer small { font-family:"JetBrains Mono",monospace; }
.studio-sidebar-nav>button.active { border-color:#d3c9f7; }
.duration-control output { color:#6746ce; font-family:"Space Grotesk",sans-serif; }
input[type="range"] { accent-color:#765ad8; }
.preview-top i { background:#43aa72; }
.preview-frame { border-color:#d8d2df; background:radial-gradient(circle at 50% 36%,#ede7ff,#d6c9ef 42%,#181720 100%); box-shadow:inset 0 0 0 7px rgba(255,255,255,.42); }
.preview-grid { background-image:linear-gradient(rgba(255,255,255,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.16) 1px,transparent 1px); }
.preview-center { color:rgba(255,255,255,.86); }
.preview-center span { border:1px solid rgba(255,255,255,.52); color:#fff; background:rgba(21,21,29,.38); backdrop-filter:blur(10px); }
.video-speed-controls select { background:#fff; color:var(--text); border-color:var(--line); }
.status-pill { background:#efedf1; color:#68646e; }
.status-pill.completed { background:#e2f4e9; color:#26704a; }
.job-progress { background:#ebe8ee; }
.job-progress i { background:linear-gradient(90deg,#765ad8,#ae9aff); }
.job-script-toggle { color:#6746ce; }
.job-script { background:#f7f5f8; }
.job-script-text { color:#47434c; }
dialog { color:var(--text); }
dialog::backdrop { background:rgba(29,23,41,.35); }
.dialog-card { background:#fff; border-color:var(--line-soft); box-shadow:var(--shadow-pop); }
.toast { background:var(--text); color:#fff; box-shadow:var(--shadow-pop); }
@media(max-width:720px) {
  .workspace>.studio-sidebar-nav { background:rgba(251,250,247,.9); }
  .hero::before { width:280px; height:280px; right:-30%; top:-10%; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
}
