:root { --bg:#0f1115; --card:#181b22; --line:#2a2f3a; --text:#e8eaf0; --muted:#9aa3b2; --accent:#ffd400; --danger:#ff5c5c; --ok:#3ddc84; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.45 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background:var(--bg); color:var(--text); }
.top { display:flex; justify-content:space-between; align-items:center; padding:14px 20px; border-bottom:1px solid var(--line); }
.brand { font-weight:800; font-size:20px; letter-spacing:.5px; }
.brand span { font-weight:400; color:var(--muted); font-size:13px; margin-left:8px; }
main { max-width:1100px; margin:0 auto; padding:20px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px 18px; margin-bottom:18px; }
h1, h2 { margin:0 0 10px; font-size:18px; }
label { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--muted); }
label.check { flex-direction:row; align-items:center; gap:8px; }
input, select, textarea { background:#0f1218; border:1px solid var(--line); color:var(--text); border-radius:8px; padding:8px 10px; font:inherit; }
textarea { resize:vertical; }
button, .button { background:#2b3140; color:var(--text); border:0; border-radius:8px; padding:9px 14px; font:inherit; cursor:pointer; text-decoration:none; display:inline-block; }
button.primary { background:var(--accent); color:#111; font-weight:700; }
button.danger { background:#3a1e22; color:#ffb3b3; }
button.link { background:none; color:var(--muted); padding:0; }
.new { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:12px; }
.new .wide { grid-column:1 / -1; }
.muted { color:var(--muted); font-size:13px; margin:4px 0; }
.error { color:var(--danger); }
.cost { font-weight:600; margin:4px 0 0; }
.badge { font-size:12px; padding:2px 8px; border-radius:99px; background:#2b3140; vertical-align:middle; }
.badge.on, .st-done { background:#173b2a; color:var(--ok); }
.badge.boot, .st-running, .st-sending, .st-composing, .st-queued { background:#3b3417; color:var(--accent); }
.badge.off { background:#2b3140; color:var(--muted); }
.st-error { background:#3a1e22; color:#ffb3b3; }
.gpu-row { display:flex; justify-content:space-between; gap:16px; align-items:center; flex-wrap:wrap; }
.gallery { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:16px; }
.job video { width:100%; aspect-ratio:9/16; background:#000; border-radius:10px; }
.job-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; font-size:13px; }
.job-actions { display:flex; gap:8px; margin-top:8px; }
.script { font-style:italic; font-size:14px; }
.progress { height:8px; background:#0f1218; border-radius:99px; overflow:hidden; }
.progress div { height:100%; background:var(--accent); transition:width .5s; }
form.inline { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
form.inline input[type=number] { width:70px; }
.login { max-width:360px; margin:60px auto; display:flex; flex-direction:column; gap:12px; }
details summary { cursor:pointer; color:var(--muted); font-size:13px; }
