:root{color-scheme:dark;--bg:#0b0b0c;--surface:#141416;--surface-2:#1b1b1f;--surface-3:#24242a;--border:#2a2a30;--text:#f2f2f0;--muted:#9a9aa3;--faint:#767681;--accent:#b8ff2c;--accent-soft:#1c2609;--accent-line:#4a6a10;font-family:Onest,system-ui,sans-serif;background:var(--bg);color:var(--text);font-size:14px}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--border);border-radius:8px;min-height:40px;padding:9px 16px;background:var(--surface-2);color:var(--text);cursor:pointer;text-decoration:none;font-weight:500;line-height:20px}button:hover,.button:hover{border-color:var(--faint)}button:disabled{opacity:.5;cursor:not-allowed}button.primary,.button.primary{background:var(--accent);border-color:var(--accent);color:var(--bg)}button.primary:hover,.button.primary:hover{background:#cbff6a}a{color:inherit}img{display:block;flex-shrink:0}p{margin:0;line-height:1.5}h1,h2,h3{margin:0}h1,.page-title{font-family:Unbounded,system-ui,sans-serif;font-weight:600;letter-spacing:-.8px}h1{font-size:40px;line-height:46px}.page-title{font-size:26px;line-height:1.3;letter-spacing:-.26px;font-weight:500}h2{font-size:16px;line-height:22px}h3{font-size:17px}label{display:flex;flex-direction:column;gap:8px;font-size:13px}input,select,textarea{background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:11px 12px;max-width:100%;min-width:0}textarea{resize:vertical;line-height:1.6}input::placeholder,textarea::placeholder{color:var(--faint)}:focus-visible{outline:2px solid var(--accent);outline-offset:4px}[hidden]{display:none!important}.muted{color:var(--muted);font-size:13px}.eyebrow{font:500 11px/14px 'JetBrains Mono',monospace;letter-spacing:.66px;text-transform:uppercase;color:var(--faint)}.spacer{flex:1}
.shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;background:var(--surface);border-right:1px solid var(--border);padding:20px 16px 16px;display:flex;flex-direction:column;gap:20px}.logo{display:flex;align-items:center;gap:10px;text-decoration:none;font:600 14px Unbounded,system-ui,sans-serif;white-space:nowrap}.mark{height:22px;width:22px;background:var(--accent);border-radius:6px;flex-shrink:0}.sidebar .logo{padding-left:6px}.workspace-switch{display:flex;align-items:center;gap:10px;padding:8px;background:var(--surface-2);border:1px solid var(--border);border-radius:12px;min-width:0}.workspace-avatar{display:grid;place-items:center;background:var(--accent);color:var(--bg);font:600 13px Unbounded,system-ui;min-width:36px;height:36px;border-radius:8px}.workspace-switch label{gap:3px;color:var(--muted);font-size:10px;min-width:0;flex:1}.workspace-switch select{background:transparent;border:0;font-size:13px;padding:0;width:100%;color:var(--text)}nav{display:grid;gap:4px}nav a{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--muted);border-radius:8px;padding:10px;min-height:40px}nav a[aria-current=page],nav a:hover{background:var(--surface-2);color:var(--text)}.sidebar-bottom{margin-top:auto;display:grid;gap:20px}.user{display:flex;flex-wrap:wrap;gap:4px;align-items:center;color:var(--muted);font-size:12px}.user span{overflow:hidden;text-overflow:ellipsis;max-width:150px}.plain{background:transparent;border:0;padding:4px;min-height:32px;color:var(--muted);font-size:12px}.queue-item{display:block;padding:10px;background:var(--surface-2);border-radius:8px;text-decoration:none;font-size:12px;margin-top:8px;overflow-wrap:anywhere}.queue-item span{display:block;margin-top:4px;color:var(--accent)}main{padding:44px 56px;min-width:0}.view{max-width:1400px;margin:0 auto}
.home-heading{display:flex;gap:24px;align-items:flex-end;justify-content:space-between;margin-bottom:28px}.home-heading .eyebrow{margin-bottom:12px;color:var(--accent)}.metric{width:240px;flex-shrink:0;border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:16px}.metric .eyebrow{color:var(--faint);font-size:10px;display:block}.metric strong{font:500 26px Unbounded,system-ui}.metric small{font:13px Onest,system-ui;color:var(--muted)}.metric p{font-size:11px;color:var(--muted);margin-top:8px}.composer{padding:22px 24px 18px;border:1.5px solid var(--accent-line);border-radius:16px;box-shadow:0 0 40px #b8ff2b14;background:var(--surface);display:grid;gap:16px}.composer textarea{border:0;background:transparent;padding:0;min-height:66px;width:100%;font-size:15px}.dropzone{width:100%;border:1px dashed #3a3a42;border-radius:12px;min-height:78px;background:var(--bg);color:var(--muted);gap:12px}.dropzone small{font-size:12px;color:var(--faint)}.dropzone.drag{border-color:var(--accent);background:var(--accent-soft)}.composer-bottom{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.composer-bottom .muted{font-size:11px}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid var(--border);border-radius:999px;background:var(--surface-2);font-size:12px;color:var(--muted);min-height:32px;line-height:16px}.chip.selected{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent)}.quick{margin:28px 0}.quick .eyebrow{margin-bottom:12px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.subtle-link{color:var(--muted);font-size:13px;text-decoration:none}.subtle-link:hover{color:var(--text)}
.job-list{display:grid;gap:10px}.job-row{display:flex;align-items:center;gap:16px;border:1px solid var(--border);background:var(--surface);border-radius:12px;padding:12px 16px;min-height:72px;text-decoration:none}.job-row:hover{border-color:var(--accent-line)}.tile{display:grid;place-items:center;min-width:40px;width:40px;height:40px;border:1px solid var(--accent-line);background:var(--accent-soft);border-radius:12px}.job-copy{flex:1;min-width:0}.job-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;line-height:20px}.job-description{font-size:13px;color:var(--muted);margin-top:3px}.badge{font-size:12px;white-space:nowrap;border-radius:999px;padding:4px 9px;color:var(--accent);background:var(--accent-soft)}.badge.ready{color:#3ddc84;background:#0f2a1b}.badge.failed,.badge.unknown{color:#ffb020;background:#2e2108}.job-date{font:10px 'JetBrains Mono',monospace;color:var(--faint)}.empty{padding:28px;border:1px dashed var(--border);border-radius:12px;color:var(--muted);line-height:1.7}
.step-heading{display:flex;align-items:center;gap:20px;margin-bottom:32px}.recipe-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:32px}.panel{border:1px solid var(--border);border-radius:16px;background:var(--surface);padding:20px}.source-card{align-self:start;display:grid;gap:14px}.source-card .chip,.source-card .button{justify-self:start}.source-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:310px;overflow:auto;line-height:1.6}.recipe-main>.muted{margin:8px 0 20px}.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.recipe-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:12px;border-radius:16px;padding:16px;background:var(--surface);min-height:184px;min-width:0}.recipe-card[aria-pressed=true]{border-color:var(--accent);box-shadow:inset 0 0 0 .5px var(--accent)}.recipe-top{display:flex;align-items:center;justify-content:space-between;width:100%}.select-dot{width:20px;height:20px;border:1.5px solid #3a3a42;border-radius:100%;display:grid;place-items:center}.recipe-card[aria-pressed=true] .select-dot{background:var(--accent);border-color:var(--accent)}.recipe-card strong{font-size:16px}.recipe-card .eyebrow{margin-top:auto;font-size:10px}.recipe-card .muted{line-height:18px;font-weight:400}.recipe-settings{margin-top:24px}.settings-fields{display:flex;gap:16px}.voice-field{flex:1}.recipe-actions{margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.recipe-actions p{margin-top:5px}
.library-heading{display:flex;gap:16px;align-items:center;margin-bottom:24px;flex-wrap:wrap}.library-heading h1{margin-right:auto}#library-search{display:flex;gap:8px}#query{width:300px}#status-filters{margin-bottom:20px}#more{margin-top:20px}.task-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:24px}.task-heading .page-title{margin:12px 0;overflow-wrap:anywhere}.task-actions{display:flex;gap:8px;flex-wrap:wrap}.results{display:grid;gap:16px}.result-card{padding:24px;background:var(--surface);border:1px solid var(--border);border-radius:16px}.result-card h3{margin-bottom:14px}.result-card textarea{width:100%;min-height:180px;background:var(--bg);line-height:1.7}.result-actions{margin-top:14px;display:flex;gap:8px;flex-wrap:wrap}.result-actions button{font-size:12px}.progress-card{max-width:720px;margin:32px auto;padding:32px}.progress-card h2{font:500 24px Unbounded,system-ui;margin:16px 0}.progress-card p{margin:12px 0}.progress-bar{height:6px;background:var(--surface-3);border-radius:4px;overflow:hidden;margin:24px 0}.progress-bar:before{content:'';display:block;height:100%;width:35%;background:var(--accent);animation:progress 1.8s ease-in-out infinite}.steps{display:grid;gap:18px;margin-top:24px}.steps p{padding:12px 0;border-bottom:1px solid var(--border);margin:0}.steps strong{color:var(--accent);margin-right:12px}
.notice{position:fixed;z-index:10;bottom:24px;left:calc(50% + 100px);transform:translateX(-50%);background:#24242a;border:1px solid #4a4a56;border-radius:12px;box-shadow:0 8px 32px #0008;max-width:min(680px,calc(100vw - 32px));padding:14px 20px;line-height:1.6;white-space:pre-wrap}.notice:empty{display:none}.callout{border:1px solid var(--accent-line);background:var(--accent-soft);color:var(--text);padding:14px 18px;border-radius:12px;margin:0 auto 24px;max-width:1400px;font-size:13px}.signin{max-width:620px;padding:64px 32px;margin:5vh auto}.signin .logo{margin-bottom:64px}.signin h1{font-size:32px;line-height:1.35;margin:16px 0 24px}.signin form{display:grid;gap:18px;margin-top:32px;max-width:400px}.skip,.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip:focus{width:auto;height:auto;clip-path:none;background:var(--accent);color:var(--bg);padding:12px;z-index:20}
@keyframes progress{0%{transform:translateX(-100%)}100%{transform:translateX(390%)}}
.job-list,.results{grid-template-columns:minmax(0,1fr)}.result-card h3{overflow-wrap:anywhere}
@media(min-width:1600px){main{padding:44px 64px}}@media(max-width:1250px){main{padding:32px}.metric{display:none}.recipe-layout{grid-template-columns:260px minmax(0,1fr);gap:24px}.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.job-date{display:none}.dropzone{flex-wrap:wrap;padding:16px}.recipe-actions{align-items:flex-start;flex-direction:column}.job-row>img{display:none}}
@media(max-width:900px){.shell{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding:20px 12px}.logo{font-size:11px;gap:8px}main{padding:28px 24px}h1{font-size:30px;line-height:1.3}.recipe-layout{grid-template-columns:minmax(0,1fr)}.source-preview{max-height:100px}.source-card{gap:10px}.job-row{gap:12px}.job-row .badge{font-size:10px}.job-description{font-size:12px}.settings-fields{flex-wrap:wrap}.notice{left:50%}}
@media(max-width:640px){.shell{display:block}.sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--border);padding:16px;gap:16px;display:grid;grid-template-columns:1fr 1fr}.sidebar .logo{padding:0;font-size:11px}.workspace-switch{padding:6px;gap:6px}.workspace-avatar{display:none}.workspace-switch label{font-size:9px}nav{grid-column:1/-1;display:flex;gap:4px;justify-content:space-between}nav a{padding:8px;font-size:12px;gap:6px;min-height:40px}.sidebar-bottom{grid-column:1/-1;margin:0}.sidebar-bottom #queue{display:none}.user{justify-content:space-between}main{padding:24px 16px}.home-heading{margin-bottom:22px}h1{font-size:25px;line-height:1.35;letter-spacing:-.5px}.composer{padding:16px}.dropzone{flex-direction:column;gap:6px}.composer-bottom>.spacer{display:none}.composer-bottom{justify-content:space-between}.composer-bottom .primary{flex:1}.job-row{flex-wrap:wrap;padding:12px}.job-copy{flex-basis:calc(100% - 62px)}.job-row .badge{margin-left:52px}.recipe-grid{gap:10px}.recipe-card{padding:12px;min-height:190px}.recipe-card strong{font-size:14px}.recipe-card .muted{font-size:12px}.recipe-card .eyebrow{font-size:9px}.page-title{font-size:22px}.task-heading{flex-direction:column}.result-card{padding:16px}.step-heading{gap:12px}.step-heading .eyebrow{font-size:9px}.voice-field{flex-basis:100%}.library-heading{gap:16px}.library-heading .button{font-size:12px}#library-search{width:100%;order:2}#query{width:100%}.progress-card{padding:20px}.notice{bottom:12px}.signin{margin:0}.signin h1{font-size:28px}}
@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;scroll-behavior:auto!important}}
.video-entry{display:flex;align-items:center;gap:16px;padding:20px;margin-top:20px;border:1px solid var(--accent-line);border-radius:14px;background:var(--accent-soft);text-decoration:none}.video-entry>span:nth-child(2){flex:1;min-width:0}.video-entry strong{display:block;font-size:16px}.video-entry small{display:block;color:var(--muted);margin-top:6px;line-height:1.5}.video-intro{display:grid;gap:16px;margin-bottom:24px}.video-intro h1{overflow-wrap:anywhere}.video-form{display:grid;gap:20px;max-width:900px}.video-preview{display:block;width:100%;max-height:480px;border-radius:12px;background:#000}.video-settings{border:0;padding:0;margin:0;display:grid;gap:18px;min-width:0}.video-fields{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:16px}.video-audio{display:flex;flex-direction:row;align-items:center}.video-audio input{accent-color:var(--accent)}.video-form .button,.video-settings button{justify-self:start}@media(max-width:640px){.video-fields{grid-template-columns:1fr 1fr}.video-fields>label:last-child{grid-column:1/-1}.video-entry{padding:16px;gap:12px}.video-entry strong{font-size:14px}.video-preview{max-height:360px}}

#montage-view .step-heading { margin-bottom: 28px; }
#montage-view .step-back, #montage-view .step-heading .subtle-link {
  display: inline-flex; gap: 8px; align-items: center; border: 0; background: transparent;
  color: var(--muted); padding: 6px 12px; min-height: 32px; font-size: 12px;
}
.montage-layout { gap: 32px; }
.montage-source-preview { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--bg); }
.montage-source-media { display: block; width: 100%; }
video.montage-source-media { height: 100%; object-fit: contain; }
.montage-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; width: 48px; height: 48px; padding: 0; background: #0b0b0cdd; }
.montage-duration { position: absolute; left: 10px; bottom: 10px; padding: 3px 7px; border-radius: 999px; font-size: 12px; background: var(--surface-3); }
.montage-source-name { font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.montage-type { justify-self: start; min-height: 30px; padding: 4px 8px; }
.montage-source-info { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; font-size: 13px; }
.montage-source-info dt { color: var(--muted); }
.montage-source-info dd { margin: 0; text-align: right; }
.montage-source-note { padding: 10px 12px; background: var(--surface-2); border-radius: 8px; }
.montage-recipes .recipe-card { min-height: 182px; }
.montage-recipes .recipe-card:disabled { opacity: .65; }
.montage-recipes .recipe-top { align-items: flex-start; }
.montage-recipes .select-dot { flex: none; margin-top: 10px; }
.montage-recipes .montage-tile { width: 40px; height: 40px; min-width: 40px; }
.montage-options { display: grid; gap: 14px; margin-top: 16px; }
.montage-toggle { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.montage-toggle input { accent-color: var(--accent); }
#montage-view .recipe-main button[type=submit] { justify-self: start; }
.montage-drop { min-height: 126px; display: grid; justify-items: center; }
@media (max-width: 900px) {
  .montage-layout { gap: 20px; }
  .montage-source-preview { max-width: 320px; }
}
