:root{
  --bg:#f6f7fb;
  --panel:#ffffff;
  --panel-soft:#f9fafc;
  --text:#172033;
  --text-strong:#0f172a;
  --muted:#6b7280;
  --muted-2:#94a3b8;
  --line:#e5e9f0;
  --line-strong:#d6dce7;
  --primary:#315cf5;
  --primary-strong:#2448d8;
  --primary-soft:#eef2ff;
  --success:#138a55;
  --success-soft:#eaf8f1;
  --danger:#d33a2c;
  --danger-soft:#fff0ef;
  --warning:#a46b00;
  --warning-soft:#fff7df;
  --shadow-sm:0 8px 26px rgba(20,33,61,.06);
  --shadow-md:0 16px 48px rgba(20,33,61,.10);
  --shadow-lg:0 28px 90px rgba(15,23,42,.18);
  --radius-sm:12px;
  --radius:18px;
  --radius-lg:24px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}
body.app-authenticated{padding-bottom:0}
a{color:var(--primary);text-decoration:none}
button,input,textarea{font:inherit}
button{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,label:focus-within{outline:3px solid rgba(49,92,245,.18);outline-offset:2px}
svg{display:block}

.page{width:min(1360px,100%);margin:0 auto;padding:38px 28px 80px}
.content-narrow{max-width:780px;margin:0 auto}
.content-wide{max-width:1240px;margin:0 auto}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}
.hidden{display:none!important}
.muted{color:var(--muted)}

/* navigation */
.topbar{height:72px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50;backdrop-filter:blur(14px)}
.topbar-inner{height:100%;width:min(1360px,100%);margin:0 auto;padding:0 28px;display:flex;align-items:center;gap:30px}
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--text-strong);font-size:20px;font-weight:900;letter-spacing:-.55px;white-space:nowrap}
.brand-mark{width:34px;height:34px;border-radius:11px;background:linear-gradient(145deg,#365ffc,#2349d4);color:#fff;display:grid;place-items:center;font-weight:900;box-shadow:0 8px 18px rgba(49,92,245,.22)}
.desktop-nav{display:flex;align-items:center;gap:6px;margin-left:16px}
.nav-link{height:40px;padding:0 13px;border-radius:11px;display:inline-flex;align-items:center;gap:8px;color:#647084;font-size:13px;font-weight:750;transition:.16s}
.nav-link svg,.mobile-nav-link svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.nav-link:hover{background:#f5f7fb;color:var(--text)}
.nav-link.active{background:var(--primary-soft);color:var(--primary-strong)}
.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:12px}
.account-email{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#748094;font-size:12px}
.quiet-button{border:1px solid var(--line);background:#fff;color:#536071;border-radius:10px;padding:8px 12px;font-weight:750;cursor:pointer}.quiet-button:hover{background:#f8fafc}
.inline-form{display:inline}
.mobile-nav{display:none}

/* feedback */
.flash-stack{display:grid;gap:10px;margin-bottom:20px}.flash{padding:13px 15px;border-radius:13px;border:1px solid;font-size:13px;font-weight:650}.flash.error{background:var(--danger-soft);border-color:#ffd1cc;color:#a52d23}.flash.success{background:var(--success-soft);border-color:#bee9d0;color:#0b6a3f}

/* typography / generic controls */
.eyebrow{display:inline-block;font-size:10px;font-weight:900;letter-spacing:1.55px;color:var(--primary);margin-bottom:7px}
h1,h2,h3{color:var(--text-strong)}
h1{font-size:clamp(30px,3.5vw,44px);line-height:1.04;letter-spacing:-1.6px;margin:0}
h2{font-size:24px;line-height:1.15;letter-spacing:-.7px;margin:0}
h3{margin:0}
.section-heading p,.creator-copy p,.panel-heading p{color:var(--muted);margin:8px 0 0;line-height:1.55}
.primary,.secondary,.ghost{min-height:42px;border:0;border-radius:12px;padding:10px 16px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .15s,background .15s,border-color .15s,box-shadow .15s}
.primary{background:var(--primary);color:#fff;box-shadow:0 8px 18px rgba(49,92,245,.16)}.primary:hover{background:var(--primary-strong);transform:translateY(-1px)}
.secondary{background:var(--primary-soft);color:var(--primary-strong)}.secondary:hover{background:#e3e9ff}
.ghost{background:#fff;border:1px solid var(--line);color:#556176}.ghost:hover{border-color:#cbd4e1;background:#fafbfc}
.primary:disabled,.secondary:disabled,.ghost:disabled,.icon-btn:disabled{opacity:.48;cursor:not-allowed;transform:none}
.primary-large{min-height:48px;padding:12px 20px;border-radius:13px}.primary-large svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.small{min-height:34px;padding:7px 11px;font-size:12px}.button-link{display:inline-flex}
.step-badge{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:999px;background:var(--primary-soft);color:var(--primary-strong);font-size:9px;font-weight:900;letter-spacing:1px;margin-bottom:9px}

/* dashboard header */
.creator-header{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:28px}
.creator-copy{max-width:760px}.creator-copy h1{max-width:720px}.creator-copy p{font-size:15px;max-width:680px}
.usage-card{width:230px;flex:0 0 230px;background:#111b33;color:#fff;border-radius:18px;padding:17px 18px;box-shadow:0 14px 30px rgba(17,27,51,.16)}
.usage-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.usage-card-top span{font-size:11px;color:#aeb9cf;font-weight:700}.usage-card-top strong{font-size:14px}
.usage-track{height:6px;border-radius:999px;background:#2b3852;margin:12px 0 8px;overflow:hidden}.usage-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7190ff,#fff);max-width:100%}.usage-card small{color:#aeb9cf;font-size:11px}

.setup-warning{background:#fffaf0;border:1px solid #f0d69a;border-radius:18px;padding:17px 18px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px}.setup-warning-icon{width:38px;height:38px;border-radius:12px;background:#fff1c9;color:#8b6200;display:grid;place-items:center;font-weight:900}.setup-warning-copy strong{display:block;color:#6f4e00}.setup-warning-copy p{margin:4px 0 0;color:#7b6b48;font-size:13px}

/* progress */
.flow-steps{display:grid;grid-template-columns:auto 1fr auto 1fr auto;align-items:center;gap:12px;margin:0 0 18px;padding:0 4px}
.flow-step{display:flex;align-items:center;gap:10px;min-width:0}.flow-step>span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;background:#e9edf4;color:#718096;font-size:12px;font-weight:900;transition:.2s}.flow-step div{display:grid;gap:1px}.flow-step strong{font-size:12px;color:#49566c}.flow-step small{font-size:10px;color:#93a0b3}.flow-step.active>span{background:var(--primary);color:#fff;box-shadow:0 7px 16px rgba(49,92,245,.2)}.flow-step.active strong{color:var(--primary-strong)}.flow-step.complete>span{background:var(--success);color:#fff}.flow-step.complete>span::after{content:'✓';font-size:13px}.flow-step.complete>span{font-size:0}.flow-line{height:1px;background:#dfe4ec}.flow-line.complete{background:#9fd8bd}

/* add video */
.add-video-panel{padding:24px 26px;margin-bottom:30px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.panel-heading h2{font-size:22px}.panel-heading p{font-size:13px}
.source-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.source-tab{border:1px solid var(--line);background:#fff;border-radius:15px;padding:13px 15px;display:flex;align-items:center;gap:12px;text-align:left;color:#566176;cursor:pointer;transition:.16s}.source-tab:hover{background:#fafbfc;border-color:#d4dbe6}.source-tab.active{background:var(--primary-soft);border-color:#b7c5ff;color:var(--primary-strong)}.source-tab>svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.source-tab span{display:grid;gap:2px}.source-tab strong{font-size:13px}.source-tab small{font-size:10px;color:#8692a5}.source-tab.active small{color:#6b7fc8}
.source-pane{display:none}.source-pane.active{display:block}.field-label{display:flex;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:12px;font-weight:800;color:#465267}.field-label span{font-weight:600;color:#94a0b2}
.source-pane textarea{width:100%;resize:vertical;border:1px solid var(--line-strong);border-radius:14px;padding:14px 15px;min-height:118px;background:#fbfcfe;color:var(--text);line-height:1.45}.source-pane textarea:focus,.job-caption:focus,.stack-form input:focus{outline:none;border-color:#8ba5ff;box-shadow:0 0 0 4px rgba(49,92,245,.10);background:#fff}
.source-action-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px}.status-line{font-size:12px;color:var(--muted);min-height:18px}.status-line.success{color:var(--success)}.status-line.error{color:var(--danger)}.status-line.loading{color:var(--primary)}.status-line.centered{text-align:center;margin-top:10px}
.drop-zone{border:1.5px dashed #bdc7d7;border-radius:17px;min-height:190px;display:grid;place-items:center;align-content:center;gap:5px;cursor:pointer;background:#fbfcfe;text-align:center;padding:24px;transition:.16s}.drop-zone:hover,.drop-zone.drag-over{border-color:#7f9cff;background:#f6f8ff}.drop-zone input{display:none}.drop-zone-icon{width:48px;height:48px;border-radius:15px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;margin-bottom:5px}.drop-zone-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.drop-zone strong{font-size:14px;color:#344156}.drop-zone>span:not(.drop-zone-icon){font-size:12px;color:#7b8798}.drop-zone small{font-size:10px;color:#9aa5b4;margin-top:5px}

/* workspace */
.work-section{margin-top:8px}.inline-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:16px}.inline-heading h2{font-size:25px}.inline-heading p{font-size:13px}.heading-actions{display:flex;gap:9px;flex-wrap:wrap}.dashboard-shell:not(.has-jobs) .heading-actions{display:none}
.jobs-grid{display:grid;grid-template-columns:1fr;gap:18px}.empty-state{border:1.5px dashed #ccd4e0;border-radius:20px;min-height:220px;display:grid;place-items:center;align-content:center;gap:7px;color:var(--muted);background:rgba(255,255,255,.55);text-align:center}.empty-state-icon{width:48px;height:48px;border-radius:15px;background:#edf1f7;color:#748196;display:grid;place-items:center;margin-bottom:3px}.empty-state-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}.empty-state strong{color:#3c485a;font-size:14px}.empty-state span{font-size:12px}
.workspace-note{margin-top:12px;padding:10px 12px;border-radius:11px;background:#f9fafc;border:1px solid var(--line);color:#718096;font-size:11px;line-height:1.45;display:flex;align-items:flex-start;gap:8px}.workspace-note svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;flex:0 0 auto;margin-top:1px}

/* job editor */
.job-card{background:#fff;border:1px solid var(--line);border-radius:21px;overflow:hidden;box-shadow:var(--shadow-sm)}
.job-head{min-height:56px;display:flex;justify-content:space-between;align-items:center;padding:13px 18px;border-bottom:1px solid var(--line);gap:14px}.job-title-wrap{display:flex;align-items:center;gap:10px;min-width:0}.job-number{width:28px;height:28px;border-radius:9px;background:#f0f3f8;color:#69778b;display:grid;place-items:center;font-size:11px;font-weight:900;flex:0 0 auto}.job-name{font-size:13px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#344156}.status-chip{flex:0 0 auto;font-size:10px;font-weight:850;padding:6px 9px;border-radius:999px;background:#eef2f7;color:#5f6878}.status-chip.ready{background:var(--success-soft);color:#137247}.status-chip.done{background:#e8efff;color:#244fb6}.status-chip.error{background:#ffeded;color:#b12a22}.status-chip.rendering,.status-chip.analyzing,.status-chip.importing,.status-chip.queued{background:var(--warning-soft);color:#875e00}
.job-body{padding:18px;display:grid;grid-template-columns:minmax(280px,.92fr) minmax(360px,1.08fr);gap:22px;align-items:start}.job-media-column,.job-controls-column{min-width:0}.job-media-column{display:grid;gap:12px}.media-label,.control-label{font-size:10px;font-weight:900;letter-spacing:.75px;color:#8490a3;text-transform:uppercase}.frame-wrap{position:relative;background:#0f1115;border-radius:15px;overflow:hidden;margin:0 auto;max-width:100%;touch-action:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05)}.frame-wrap.placeholder-wrap{width:100%;min-height:270px;display:grid;place-items:center;background:#f0f3f7}.frame-wrap img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}.frame-placeholder{color:#7d8797;font-size:13px;text-align:center;padding:40px}.crop-box{position:absolute;border:2px solid #2b83ff;box-shadow:0 0 0 9999px rgba(0,0,0,.10);cursor:move;touch-action:none}.crop-handle{position:absolute;width:18px;height:18px;border-radius:50%;background:#2b83ff;border:2px solid #fff;right:-9px;bottom:-9px;cursor:nwse-resize;touch-action:none;box-shadow:0 3px 8px rgba(0,0,0,.18)}.confidence{position:absolute;left:8px;bottom:8px;background:rgba(15,23,42,.82);backdrop-filter:blur(5px);color:#fff;font-size:9px;font-weight:750;padding:5px 7px;border-radius:7px}
.result-block{display:grid;gap:7px;padding-top:2px}.result-preview{width:100%;border-radius:14px;background:#000;max-height:520px;box-shadow:0 8px 24px rgba(15,23,42,.10)}
.job-controls-column{display:grid;gap:14px}.editor-block{border:1px solid var(--line);border-radius:15px;background:#fcfcfd;padding:14px}.editor-block-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}.editor-block-title{display:grid;gap:2px}.editor-block-title strong{font-size:12px;color:#3e4a5e}.editor-block-title small{font-size:10px;color:#8b96a8}.job-caption{width:100%;min-height:98px;resize:vertical;border:1px solid var(--line-strong);border-radius:12px;padding:11px 12px;line-height:1.45;background:#fff;color:var(--text)}
.text-button{border:0;background:transparent;color:var(--primary);font-size:11px;font-weight:800;cursor:pointer;padding:5px 3px}.text-button:hover{text-decoration:underline}.text-button:disabled{opacity:.5;cursor:not-allowed;text-decoration:none}
.job-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.option-toggle{min-height:48px;display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:9px 10px;font-size:11px;font-weight:750;color:#465267;cursor:pointer;user-select:none;transition:.15s}.option-toggle:hover{border-color:#c9d2e0;background:#fafbfc}.option-toggle input{margin:0;accent-color:var(--primary);width:15px;height:15px}.option-toggle:has(input:checked){background:var(--primary-soft);border-color:#b7c5ff;color:#244fb6}.option-toggle.option-warning:has(input:checked){background:#fff7e9;border-color:#f2d6a0;color:#8a5d00}.option-copy{display:grid;gap:1px}.option-copy small{font-size:9px;font-weight:600;color:#8994a5;line-height:1.25}.option-toggle:has(input:checked) .option-copy small{color:#6f7fb8}.option-hint{font-size:10px;line-height:1.45;color:#8a95a7;margin-top:8px}
.job-error{background:var(--danger-soft);border:1px solid #ffd4d0;color:#a12d25;border-radius:11px;padding:10px 11px;font-size:11px;line-height:1.45}.job-toolbar{display:flex;align-items:center;gap:8px;padding-top:1px}.job-toolbar .spacer{flex:1}.icon-btn{min-height:38px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 11px;cursor:pointer;font-weight:750;font-size:11px;color:#566176;display:inline-flex;align-items:center;justify-content:center}.icon-btn:hover{background:#f8fafc}.icon-btn.danger{color:#b2332a}.generate-one{min-height:44px;padding:10px 18px;min-width:140px}.download-btn{color:var(--primary-strong);border-color:#ccd7ff;background:#f7f9ff}

/* modal */
.generation-modal{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:18px}.generation-modal.is-open{display:flex}.generation-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.48);backdrop-filter:blur(3px)}.generation-modal-card{position:relative;width:min(440px,100%);background:#fff;border:1px solid rgba(255,255,255,.75);border-radius:24px;box-shadow:var(--shadow-lg);padding:30px;text-align:center;animation:generationModalIn .18s ease-out}.generation-modal-close{position:absolute;right:13px;top:11px;width:36px;height:36px;border:0;border-radius:50%;background:#f3f5f8;color:#647084;font-size:22px;line-height:1;cursor:pointer}.generation-modal-close:hover{background:#e9edf3}.generation-modal-icon{width:62px;height:62px;margin:0 auto 15px;border-radius:20px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);font-size:28px;font-weight:900}.generation-modal-card h3{font-size:23px;letter-spacing:-.55px;margin:2px 0 8px}.generation-modal-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}.generation-modal-status{margin:17px 0 18px;padding:11px 12px;border-radius:11px;background:#f7f9fc;border:1px solid var(--line);font-size:11px;font-weight:750;color:#526075}.generation-modal-action{width:100%}.generation-spinner{width:26px;height:26px;border:3px solid #cddafe;border-top-color:var(--primary);border-radius:50%;animation:generationSpin .8s linear infinite}.generation-modal.is-done .generation-modal-icon{background:var(--success-soft);color:var(--success)}.generation-modal.is-error .generation-modal-icon{background:var(--danger-soft);color:#b12a22}@keyframes generationSpin{to{transform:rotate(360deg)}}@keyframes generationModalIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}

/* settings */
.settings-shell{max-width:1040px;margin:0 auto}.settings-heading{margin-bottom:22px}.settings-heading h1{font-size:36px}.settings-heading p{max-width:700px}.settings-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;align-items:start}.brand-summary-card{padding:24px;text-align:center;position:sticky;top:96px}.brand-avatar-large{width:92px;height:92px;border-radius:50%;overflow:hidden;background:linear-gradient(145deg,#eef2ff,#e6eaf2);display:grid;place-items:center;margin:8px auto 13px;color:#5e6f9b;font-size:31px;font-weight:900;border:4px solid #fff;box-shadow:0 8px 22px rgba(15,23,42,.10)}.brand-avatar-large img{width:100%;height:100%;object-fit:cover}.brand-summary-card>strong{display:block;font-size:17px}.brand-summary-card>span:not(.step-badge){display:block;color:var(--muted);font-size:12px;margin-top:3px}.brand-status-list{display:grid;gap:9px;border-top:1px solid var(--line);margin-top:20px;padding-top:17px;text-align:left;font-size:11px;color:#617087}.brand-status-list div{display:flex;align-items:center;gap:8px}.status-dot{width:8px;height:8px;border-radius:50%;background:#cbd3df}.status-dot.ok{background:var(--success)}
.settings-form{padding:24px;gap:22px}.form-section{display:grid;gap:14px}.form-section+.form-section{border-top:1px solid var(--line);padding-top:22px}.form-section-title{display:grid;gap:3px}.form-section-title strong{font-size:13px;color:#344156}.form-section-title span{font-size:11px;color:#8792a4}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.stack-form{display:grid;gap:16px}.stack-form label:not(.check-row):not(.file-field){display:grid;gap:7px;font-size:11px;font-weight:800;color:#4b586d}.stack-form input[type=text],.stack-form input[type=email],.stack-form input[type=password],.stack-form input[type=number],.stack-form input:not([type]){width:100%;min-height:44px;border:1px solid var(--line-strong);border-radius:11px;padding:10px 12px;background:#fff;color:var(--text)}.file-field{min-height:66px;border:1px solid var(--line);border-radius:13px;padding:11px 12px;display:flex;align-items:center;justify-content:space-between;gap:14px}.file-field>span{display:grid;gap:2px}.file-field strong{font-size:11px;color:#435067}.file-field small{font-size:9px;color:#909bac}.file-field input{max-width:250px;font-size:10px;color:#6a7587}.check-row{display:flex!important;align-items:flex-start;gap:9px!important;font-size:11px!important;font-weight:600!important;color:#566176}.check-row input{margin-top:2px;accent-color:var(--primary)}.switch-row>span{display:grid;gap:2px}.switch-row small{font-size:9px;color:#8d98aa}.danger-check{color:#a52820!important}.settings-actions{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--line);padding-top:20px}

/* auth */
.auth-page{min-height:100vh;max-width:none;width:100%;padding:0;background:#f3f5f9;display:grid;place-items:center}.auth-shell{width:min(1040px,100%);min-height:640px;background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow-md);overflow:hidden;display:grid;grid-template-columns:1.08fr .92fr}.auth-showcase{position:relative;padding:34px 38px;background:radial-gradient(circle at 22% 20%,rgba(112,143,255,.28),transparent 32%),linear-gradient(145deg,#18233d,#0e1730);color:#fff;display:flex;flex-direction:column}.auth-showcase::after{content:'';position:absolute;right:-70px;bottom:-100px;width:330px;height:330px;border:1px solid rgba(255,255,255,.11);border-radius:50%;box-shadow:0 0 0 55px rgba(255,255,255,.025),0 0 0 110px rgba(255,255,255,.018)}.auth-brand{display:inline-flex;align-items:center;gap:10px;color:#fff;font-weight:900;font-size:18px;position:relative;z-index:1}.auth-showcase-content{margin:auto 0;max-width:500px;position:relative;z-index:1}.auth-showcase .eyebrow{color:#9db4ff}.auth-showcase h1{color:#fff;font-size:42px;line-height:1.05}.auth-showcase p{color:#b8c3d9;line-height:1.6;font-size:14px}.auth-benefits{display:flex;gap:9px;flex-wrap:wrap;margin-top:24px}.auth-benefits span{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);border-radius:999px;padding:8px 11px;font-size:10px;color:#dbe3f3}.auth-benefits b{color:#fff;margin-right:4px}.auth-card{padding:58px 48px;display:flex;flex-direction:column;justify-content:center}.auth-card h2{font-size:30px;margin:0}.auth-card>p{margin:8px 0 24px;color:var(--muted);font-size:13px}.auth-form{gap:15px}.auth-form label{font-size:11px!important}.auth-form input{min-height:48px!important}.auth-footer{text-align:center;margin:19px 0 0!important;font-size:11px!important;color:var(--muted)}.auth-footer a{font-weight:800}.mobile-auth-brand{display:none}.terms-check{line-height:1.45}

/* admin/legal */
.admin-page .section-heading{margin-bottom:20px}.admin-page .section-heading h1{font-size:36px}.table-wrap{overflow:auto}.table-wrap table{border-collapse:collapse;width:100%;min-width:860px}.table-wrap th,.table-wrap td{text-align:left;padding:14px 15px;border-bottom:1px solid var(--line);font-size:12px}.table-wrap th{color:#7b8798;font-size:9px;text-transform:uppercase;letter-spacing:.75px}.table-wrap tr:last-child td{border-bottom:0}.admin-inline{display:flex;align-items:center;gap:9px}.admin-inline input[type=text]{width:110px;padding:8px;border:1px solid var(--line);border-radius:9px}.admin-inline input[type=number]{width:82px;padding:8px;border:1px solid var(--line);border-radius:9px}.pill{display:inline-block;margin-left:6px;padding:3px 6px;border-radius:999px;background:#e9efff;color:#3152ae;font-size:9px;font-weight:800}.usage-inline{font-weight:800;color:#4e5b70}.legal{background:#fff;border:1px solid var(--line);border-radius:20px;padding:32px;line-height:1.65;box-shadow:var(--shadow-sm)}.legal h1{font-size:34px}.legal h2{font-size:20px;margin-top:26px}.legal p{color:#586477}

/* responsive */
@media(max-width:980px){
  .job-body{grid-template-columns:1fr}.job-media-column{max-width:620px;width:100%;margin:0 auto}.settings-layout{grid-template-columns:240px minmax(0,1fr)}.account-email{display:none}.desktop-nav{margin-left:0}
}

@media(max-width:760px){
  body.app-authenticated{padding-bottom:78px}.topbar{height:58px}.topbar-inner{padding:0 16px}.brand-mark{width:31px;height:31px;border-radius:10px}.brand-name{font-size:17px}.desktop-nav,.topbar-actions{display:none}.mobile-nav{position:fixed;left:0;right:0;bottom:0;z-index:70;height:calc(66px + env(safe-area-inset-bottom));padding:5px 10px env(safe-area-inset-bottom);display:flex;align-items:center;justify-content:space-around;background:rgba(255,255,255,.96);border-top:1px solid var(--line);backdrop-filter:blur(14px);box-shadow:0 -8px 28px rgba(15,23,42,.06)}.mobile-nav-link{flex:1;min-width:0;height:54px;border:0;background:transparent;border-radius:12px;color:#7b8799;display:grid;place-items:center;align-content:center;gap:3px;font-size:9px;font-weight:750}.mobile-nav-link svg{width:20px;height:20px}.mobile-nav-link.active{color:var(--primary);background:#f4f6ff}.mobile-logout-form{flex:1;display:flex}.mobile-logout-form .mobile-nav-link{width:100%}
  .page{padding:24px 14px 36px}.creator-header{display:grid;gap:18px;margin-bottom:22px}.creator-copy h1{font-size:32px;letter-spacing:-1.15px}.creator-copy p{font-size:13px}.usage-card{width:100%;flex:unset;padding:15px 16px}.usage-card-top strong{font-size:13px}
  .setup-warning{grid-template-columns:auto 1fr}.setup-warning .button-link{grid-column:1/-1;width:100%}
  .flow-steps{grid-template-columns:1fr 18px 1fr 18px 1fr;gap:5px;padding:0;margin-bottom:14px}.flow-step{justify-content:center;gap:6px}.flow-step>span{width:27px;height:27px;font-size:10px}.flow-step small{display:none}.flow-step strong{font-size:10px}.flow-line{width:100%}
  .add-video-panel{padding:18px 15px;border-radius:19px}.panel-heading{margin-bottom:14px}.panel-heading h2{font-size:20px}.source-tabs{gap:7px}.source-tab{padding:10px;border-radius:13px;gap:8px}.source-tab>svg{width:19px;height:19px}.source-tab strong{font-size:11px}.source-tab small{display:none}.source-pane textarea{min-height:110px;font-size:16px}.source-action-row{display:grid;gap:8px}.source-action-row .primary{width:100%;grid-row:1}.source-action-row .status-line{grid-row:2;text-align:center}.drop-zone{min-height:180px;padding:20px 14px}
  .inline-heading{display:grid;gap:12px}.inline-heading h2{font-size:22px}.heading-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.heading-actions button{width:100%}.jobs-grid{gap:14px}.empty-state{min-height:190px}.workspace-note{font-size:10px}
  .job-card{border-radius:18px}.job-head{padding:12px 13px}.job-number{display:none}.job-name{font-size:11px}.status-chip{font-size:9px;padding:5px 7px}.job-body{padding:13px;gap:15px}.job-media-column{max-width:none}.media-label{display:none}.frame-wrap{border-radius:13px}.result-preview{border-radius:12px}.editor-block{padding:12px;border-radius:13px}.job-caption{font-size:16px;min-height:92px}.job-options{grid-template-columns:1fr}.option-toggle{min-height:46px}.option-hint{display:none}.job-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:7px}.job-toolbar .spacer{display:none}.job-toolbar .generate-one{grid-column:1/-1;grid-row:1;width:100%;min-height:48px}.job-toolbar .download-btn{grid-column:1/-1;grid-row:2}.job-toolbar .delete-one{grid-column:1}.job-toolbar .reread-mobile-action{grid-column:2}.icon-btn{min-height:42px}.generation-modal{align-items:flex-end;padding:12px}.generation-modal-card{width:100%;border-radius:24px 24px 18px 18px;padding:28px 20px 20px;animation:generationModalMobileIn .2s ease-out}.generation-modal-icon{width:56px;height:56px}.generation-modal-card h3{font-size:21px}@keyframes generationModalMobileIn{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
  .settings-heading h1{font-size:31px}.settings-layout{grid-template-columns:1fr}.brand-summary-card{position:static;padding:20px}.brand-avatar-large{width:78px;height:78px}.settings-form{padding:18px 15px}.form-grid{grid-template-columns:1fr}.file-field{align-items:flex-start;flex-direction:column}.file-field input{max-width:100%}.settings-actions{display:grid;grid-template-columns:1fr 1fr}.settings-actions>*{width:100%}
  .auth-page{width:100%;max-width:none;min-height:100dvh;padding:0;background:#fff;display:flex;align-items:stretch;justify-content:center}.auth-shell{width:100%;min-height:100dvh;border:0;border-radius:0;box-shadow:none;display:flex;align-items:center;justify-content:center;background:#fff;padding:max(22px,env(safe-area-inset-top)) 0 max(22px,env(safe-area-inset-bottom))}.auth-showcase{display:none}.auth-card{width:min(100%,440px);min-height:0;margin:0 auto;padding:28px 22px;justify-content:center}.mobile-auth-brand{display:flex;align-items:center;justify-content:center;gap:9px;margin:0 auto 34px;text-align:center}.mobile-auth-brand strong{font-size:18px}.auth-card>.eyebrow{display:block;text-align:center}.auth-card h2{font-size:29px;text-align:center}.auth-card>p{text-align:center;margin:8px auto 24px}.auth-form{width:100%}.auth-form input{font-size:16px;width:100%}.auth-form .primary{width:100%}.auth-footer{text-align:center}.legal{padding:22px 18px;border-radius:16px}.legal h1{font-size:30px}
}

@media(max-width:420px){
  .source-tab{justify-content:center}.source-tab>svg{display:none}.job-toolbar{grid-template-columns:1fr}.job-toolbar .generate-one,.job-toolbar .download-btn,.job-toolbar .delete-one,.job-toolbar .reread-mobile-action{grid-column:1}.settings-actions{grid-template-columns:1fr}.flow-step div{display:none}.flow-steps{grid-template-columns:auto 1fr auto 1fr auto}.flow-step>span{width:30px;height:30px}.source-tabs{grid-template-columns:1fr 1fr}
}

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* transient notifications */
.toast-stack{position:fixed;right:18px;top:88px;z-index:120;display:grid;gap:8px;width:min(360px,calc(100vw - 28px));pointer-events:none}.toast{transform:translateY(-6px);opacity:0;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-md);padding:11px 13px;color:#465267;font-size:11px;font-weight:700;line-height:1.4;transition:.2s}.toast.show{transform:none;opacity:1}.toast.success{border-color:#bfe8d1;background:#f3fcf7;color:#0c7043}.toast.error{border-color:#ffd1cc;background:#fff5f4;color:#aa3126}@media(max-width:760px){.toast-stack{top:70px;right:14px;left:14px;width:auto}.toast{font-size:11px}}


/* v1.8 - guide / stronger navigation */
.nav-link{font-weight:850;color:#4f5d73}
.nav-link.active{font-weight:900;box-shadow:inset 0 0 0 1px rgba(49,92,245,.10)}

.guide-shell{max-width:1120px;margin:0 auto}
.guide-hero{padding:8px 0 28px;max-width:790px}
.guide-hero h1{font-size:42px}
.guide-hero p{font-size:15px;line-height:1.65;color:var(--muted);margin:11px 0 0}
.guide-flow{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:38px}
.guide-step-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;display:flex;gap:13px;align-items:flex-start;box-shadow:var(--shadow-sm)}
.guide-step-number{width:34px;height:34px;border-radius:11px;background:var(--primary);color:#fff;display:grid;place-items:center;font-weight:900;flex:0 0 auto}
.guide-step-card strong{font-size:14px;color:var(--text-strong)}
.guide-step-card p{font-size:11px;line-height:1.55;color:var(--muted);margin:5px 0 0}
.guide-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin:0 0 16px}
.guide-section-heading h2{font-size:28px}
.guide-section-heading>p{margin:0 0 2px;color:var(--muted);font-size:12px}
.guide-section-heading.compact{margin-top:38px}
.feature-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.feature-guide-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;display:grid;grid-template-columns:44px 1fr;gap:14px;box-shadow:var(--shadow-sm)}
.feature-guide-card.recommended{border-color:#c8d3ff;background:linear-gradient(180deg,#fff,#fbfcff)}
.feature-guide-card.warning{border-color:#f1dfae;background:linear-gradient(180deg,#fff,#fffdfa)}
.feature-guide-icon{width:44px;height:44px;border-radius:13px;background:#f3f5fa;display:grid;place-items:center;font-size:21px}
.feature-guide-card.recommended .feature-guide-icon{background:var(--primary-soft)}
.feature-guide-card.warning .feature-guide-icon{background:var(--warning-soft)}
.feature-guide-copy h3{font-size:15px;letter-spacing:-.2px}
.feature-guide-copy>p{margin:7px 0 0;color:#5d687a;font-size:12px;line-height:1.6}
.feature-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.feature-title-row>span{font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.7px;background:#eef2ff;color:#3152ae;padding:4px 7px;border-radius:999px}
.warning .feature-title-row>span{background:var(--warning-soft);color:#8c5b00}
.feature-note{margin-top:10px;padding:9px 10px;border-radius:10px;background:#f7f8fb;color:#707b8e;font-size:10px;line-height:1.5}
.feature-note b{color:#4a5568}
.guide-tips{margin-top:30px;padding:22px}
.guide-tips-head{display:flex;align-items:center;gap:12px;margin-bottom:17px}.guide-tips-head h2{font-size:20px}.guide-tips-head p{margin:3px 0 0;font-size:11px;color:var(--muted)}
.guide-tips-icon{width:38px;height:38px;border-radius:12px;background:var(--success-soft);color:var(--success);display:grid;place-items:center;font-weight:1000}
.guide-tip-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.guide-tip-list>div{padding:13px;border-radius:13px;background:var(--panel-soft);display:grid;gap:4px}.guide-tip-list b{font-size:11px;color:#3d4a5f}.guide-tip-list span{font-size:10px;line-height:1.5;color:#778296}
.guide-faq details{background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:9px;padding:0 15px;box-shadow:0 3px 14px rgba(20,33,61,.035)}
.guide-faq summary{cursor:pointer;list-style:none;padding:14px 24px 14px 0;font-size:12px;font-weight:850;color:#3d495d;position:relative}.guide-faq summary::-webkit-details-marker{display:none}.guide-faq summary::after{content:'+';position:absolute;right:0;top:11px;font-size:19px;color:#8390a5;font-weight:500}.guide-faq details[open] summary::after{content:'–'}.guide-faq details p{border-top:1px solid var(--line);margin:0;padding:12px 0 14px;color:var(--muted);font-size:11px;line-height:1.6}
.guide-cta{display:flex;justify-content:flex-end;gap:9px;margin-top:24px}

@media(max-width:760px){
  body.app-authenticated{padding-bottom:88px}
  .mobile-nav{height:calc(76px + env(safe-area-inset-bottom));padding:6px 6px env(safe-area-inset-bottom);gap:2px}
  .mobile-nav-link{height:62px;border-radius:14px;font-size:10px;font-weight:900;color:#657188;gap:4px;padding:3px 2px;line-height:1.05}
  .mobile-nav-link span{white-space:normal;text-align:center;max-width:78px}
  .mobile-nav-link svg{width:22px;height:22px;stroke-width:2.15}
  .mobile-nav-link.active{color:var(--primary-strong);background:#eef2ff;box-shadow:inset 0 0 0 1px rgba(49,92,245,.10)}
  .mobile-logout-form{min-width:0}
  .guide-page{padding-top:22px}
  .guide-hero{padding:0 2px 22px}.guide-hero h1{font-size:32px}.guide-hero p{font-size:13px}
  .guide-flow{grid-template-columns:1fr;gap:9px;margin-bottom:29px}.guide-step-card{padding:14px}.guide-step-card p{font-size:11px}
  .guide-section-heading{display:block;margin-bottom:13px}.guide-section-heading h2{font-size:23px}.guide-section-heading>p{margin-top:6px;font-size:11px}
  .feature-guide-grid{grid-template-columns:1fr;gap:10px}.feature-guide-card{padding:14px;grid-template-columns:40px 1fr;gap:11px}.feature-guide-icon{width:40px;height:40px;font-size:19px}.feature-guide-copy>p{font-size:11px}.feature-note{font-size:10px}
  .guide-tips{margin-top:22px;padding:16px}.guide-tip-list{grid-template-columns:1fr;gap:7px}.guide-tip-list>div{padding:11px}
  .guide-section-heading.compact{margin-top:28px}.guide-faq details{padding:0 13px}.guide-faq summary{font-size:11px;padding-top:13px;padding-bottom:13px}.guide-faq details p{font-size:10.5px}
  .guide-cta{display:grid;grid-template-columns:1fr;gap:8px;margin-top:18px}.guide-cta a{width:100%}
}

@media(max-width:390px){
  .mobile-nav-link{font-size:9px}.mobile-nav-link span{max-width:70px}.mobile-nav-link svg{width:21px;height:21px}
}
