:root { --ink:#f5f7fb; --muted:#9ca8ba; --subtle:#6f7c90; --bg:#0b1020; --surface:#12192a; --surface-2:#182033; --line:#2a354b; --accent:#a2ff68; --accent-ink:#12200b; --violet:#8c8cff; --red:#ff8383; --amber:#f5c25b; --radius:7px; font-family:"Noto Sans SC",system-ui,sans-serif; color:var(--ink); background:var(--bg); }
* { box-sizing:border-box; } html { scroll-behavior:smooth; } body { margin:0; min-width:320px; background:radial-gradient(ellipse at 73% -20%,#202257 0,transparent 32%),var(--bg); } button,input,textarea,select { font:inherit; } button { cursor:pointer; } button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline:3px solid #c6c5ff; outline-offset:2px; } svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.topbar { height:65px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; padding:0 32px; background:rgba(11,16,32,.78); backdrop-filter:blur(12px); position:sticky; top:0; z-index:5; }
.brand { color:var(--ink); font:600 14px "DM Mono",monospace; letter-spacing:0; text-decoration:none; display:flex; align-items:center; gap:11px; } .brand b { color:var(--accent); font-weight:500; } .brand-mark { display:grid; place-items:center; width:25px; height:25px; border:1px solid var(--accent); color:var(--accent); font-size:15px; }
.topbar-actions { display:flex; align-items:center; gap:14px; } .api-status { color:var(--muted); font-size:13px; display:flex; align-items:center; gap:7px; } .api-status::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--amber); } .api-status.ready::before { background:var(--accent); box-shadow:0 0 12px var(--accent); } .api-status.error::before { background:var(--red); }
.icon-button,.menu-button { border:0; color:var(--muted); background:transparent; display:grid; place-items:center; width:40px; height:40px; border-radius:6px; } .icon-button:hover,.menu-button:hover { background:var(--surface-2); color:var(--ink); }
.layout { display:grid; grid-template-columns:208px minmax(0,1fr); min-height:calc(100dvh - 65px); }.sidebar { border-right:1px solid var(--line); padding:25px 16px; display:flex; flex-direction:column; justify-content:space-between; }.nav { display:grid; gap:5px; }.nav-item { height:43px; padding:0 11px; display:flex; align-items:center; gap:11px; color:var(--muted); text-decoration:none; font-size:14px; border-radius:5px; }.nav-item svg { width:17px; }.nav-item:hover { color:var(--ink); background:var(--surface); }.nav-item.active { color:var(--ink); background:#20293e; }.nav-count { margin-left:auto; font:12px "DM Mono",monospace; color:var(--accent); }.sidebar-info { border-top:1px solid var(--line); padding:18px 5px 3px; display:grid; gap:5px; }.sidebar-info p { margin:0; font-size:11px; color:var(--subtle); }.sidebar-info strong { font-size:12px; font-weight:600; }.sidebar-info span { font-size:11px; color:var(--muted); }
.content { width:min(1120px,100%); margin:0 auto; padding:52px 44px 90px; }.page-heading { display:flex; justify-content:space-between; gap:32px; padding-bottom:37px; }.eyebrow { margin:0 0 9px; color:var(--accent); font:12px "DM Mono",monospace; }.page-heading h1 { font-size:28px; line-height:1.25; margin:0; letter-spacing:0; }.page-heading > div > p:last-child { margin:10px 0 0; color:var(--muted); font-size:14px; }.stats { display:flex; align-self:center; border:1px solid var(--line); }.stats div { min-width:87px; padding:10px 14px; border-left:1px solid var(--line); display:grid; gap:2px; }.stats div:first-child { border-left:0; }.stats span { color:var(--subtle); font-size:11px; }.stats strong { font:500 18px "DM Mono",monospace; color:var(--ink); }
.composer { border:1px solid var(--line); border-radius:var(--radius); background:rgba(18,25,42,.85); padding:25px; }.section-head { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:20px; }.section-head h2 { margin:0; font-size:17px; letter-spacing:0; }.section-head p { margin:6px 0 0; font-size:13px; color:var(--muted); }.duration { color:#d8ffd0; background:#1d3221; padding:5px 8px; font:11px "DM Mono",monospace; border:1px solid #37593b; white-space:nowrap; }.field-label, label { color:#d5dceb; font-size:13px; font-weight:500; display:grid; gap:8px; }.field-label span,label span { color:var(--subtle); font-size:11px; font-weight:400; }.field-label { margin-bottom:8px; } textarea,input,select { width:100%; border:1px solid #344059; border-radius:5px; color:var(--ink); background:#0e1525; padding:10px 11px; transition:border-color .18s ease,background .18s ease; } textarea { min-height:151px; resize:vertical; line-height:1.65; font-size:13px; } textarea::placeholder,input::placeholder { color:#627087; } textarea:focus,input:focus,select:focus { border-color:var(--violet); background:#101a2d; outline:none; }.form-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-top:16px; } select { height:42px; appearance:auto; font-size:13px; }.advanced-row { margin-top:16px; }.advanced { margin-top:18px; border-top:1px solid var(--line); padding-top:15px; }.advanced summary { color:var(--muted); font-size:13px; cursor:pointer; }.advanced[open] summary { color:var(--ink); }.advanced-grid { display:grid; grid-template-columns:2fr 1fr; gap:14px; margin-top:15px; }.submit-row { margin-top:21px; display:flex; align-items:center; justify-content:space-between; gap:16px; }.form-message { margin:0; font-size:13px; color:var(--muted); }.form-message.error { color:var(--red); }.primary-button { min-height:43px; display:inline-flex; align-items:center; gap:8px; border:0; border-radius:5px; background:var(--accent); color:var(--accent-ink); padding:0 17px; font-size:13px; font-weight:700; transition:transform .18s ease,filter .18s ease; }.primary-button:hover { filter:brightness(1.08); transform:translateY(-1px); }.primary-button:disabled { opacity:.48; cursor:not-allowed; transform:none; }.primary-button svg { width:16px; }
.history-section { padding-top:51px; }.filters { display:flex; border:1px solid var(--line); border-radius:5px; overflow:hidden; }.filter { color:var(--muted); background:var(--surface); border:0; border-left:1px solid var(--line); min-height:31px; padding:0 10px; font-size:12px; }.filter:first-child { border-left:0; }.filter:hover { color:var(--ink); }.filter.active { color:var(--ink); background:#28334a; }.job-list { display:grid; gap:10px; }.job { border:1px solid var(--line); border-radius:var(--radius); background:rgba(18,25,42,.58); padding:16px 17px; }.job-top { display:flex; justify-content:space-between; gap:16px; }.job-main { min-width:0; display:flex; gap:10px; align-items:flex-start; }.status-dot { flex:0 0 auto; width:8px; height:8px; margin-top:6px; border-radius:50%; background:var(--subtle); }.job[data-status="completed"] .status-dot { background:var(--accent); box-shadow:0 0 10px #7cff5b77; }.job[data-status="failed"] .status-dot { background:var(--red); }.job[data-status="queued"] .status-dot,.job[data-status="in_progress"] .status-dot,.job[data-status="submitting"] .status-dot { background:var(--amber); }.job-prompt { margin:0; overflow-wrap:anywhere; font-size:14px; line-height:1.55; }.menu-button { flex:0 0 auto; width:30px; height:30px; margin-top:-6px; }.menu-button svg { width:16px; }.job-meta { color:var(--subtle); display:flex; flex-wrap:wrap; gap:7px; padding-left:18px; margin-top:6px; font:11px "DM Mono",monospace; }.status-label { color:#cbd3df; }.progress-wrap { margin:13px 0 0 18px; display:flex; align-items:center; gap:9px; }.progress-bar { flex:1; height:4px; background:#253047; overflow:hidden; }.progress-bar span { height:100%; display:block; background:var(--violet); transition:width .25s ease; }.job[data-status="completed"] .progress-bar span { background:var(--accent); }.job[data-status="failed"] .progress-bar span { background:var(--red); }.progress-value { color:var(--subtle); width:32px; font:11px "DM Mono",monospace; text-align:right; }.job-error { margin:10px 0 0 18px; color:#ffb0b0; font-size:12px; line-height:1.5; }.job-actions { display:none; gap:8px; margin:14px 0 0 18px; }.job[data-status="completed"] .job-actions,.job[data-status="failed"] .job-actions { display:flex; }.job-actions a,.job-actions button { color:var(--muted); background:transparent; border:1px solid #37445b; border-radius:4px; min-height:31px; padding:0 9px; display:inline-flex; gap:6px; align-items:center; text-decoration:none; font-size:12px; }.job-actions a:hover,.job-actions button:hover { color:var(--ink); border-color:#667795; }.job-actions svg { width:14px; height:14px; }.watch-button { color:#d6caff !important; border-color:#534d87 !important; }.retry-button { color:#ffca7e !important; }.empty-state { min-height:124px; display:grid; place-items:center; border:1px dashed #35435b; color:var(--muted); font-size:13px; }.hidden { display:none; } code { font-family:"DM Mono",monospace; color:#c9d5ea; font-size:11px; }
 .image-inputs { display:grid; grid-template-columns:minmax(190px,.8fr) 27px minmax(0,1.2fr); gap:12px; align-items:end; }.upload-picker { min-height:74px; border:1px dashed #566581; border-radius:5px; background:#101827; padding:11px; display:flex; align-items:center; gap:10px; cursor:pointer; transition:border-color .18s ease,background .18s ease; }.upload-picker:hover { border-color:var(--accent); background:#15211a; }.upload-picker:focus-within { border-color:var(--violet); }.upload-picker input { position:absolute; inline-size:1px; block-size:1px; opacity:0; pointer-events:none; }.upload-picker b { display:block; color:var(--ink); font-size:13px; }.upload-picker small { display:block; color:var(--subtle); font-size:11px; margin-top:3px; font-weight:400; }.upload-icon { display:grid; place-items:center; width:32px; height:32px; color:var(--accent); background:#203627; border:1px solid #3f6c48; flex:0 0 auto; }.upload-icon svg { width:17px; }.or-divider { align-self:center; color:var(--subtle); font-size:11px; text-align:center; padding-top:12px; }.upload-note { margin:9px 0 0; color:var(--amber); font-size:12px; }.upload-note.ready { color:var(--muted); }
@media (max-width:800px) { .topbar { padding:0 17px; }.layout { display:block; }.sidebar { display:none; }.content { padding:33px 16px 65px; }.page-heading { display:grid; gap:20px; padding-bottom:27px; }.stats { justify-self:start; }.form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.advanced-grid,.image-inputs { grid-template-columns:1fr; }.or-divider { padding:0; }.section-head { display:grid; }.filters { width:max-content; }.composer { padding:18px; }.history-section { padding-top:37px; } }
.job[data-status="pending"] .status-dot { background:var(--amber); }
.job-id { color:#b9c9e4; overflow-wrap:anywhere; }
.job-details { margin:15px 0 0 18px; border-top:1px solid var(--line); padding-top:12px; }.job-details summary { display:flex; align-items:center; justify-content:space-between; color:var(--muted); cursor:pointer; font-size:12px; }.job-details[open] summary { color:var(--ink); margin-bottom:10px; }.job-log-count { color:var(--subtle); font:11px "DM Mono",monospace; margin-left:8px; }.job-log-list { margin-left:2px; border-left:1px solid #35435b; }.job-log-entry { position:relative; padding:9px 0 9px 13px; margin-left:10px; border-bottom:1px solid #253149; }.job-log-entry:last-child { border-bottom:0; }.job-log-entry::before { content:""; position:absolute; left:-4px; top:15px; width:7px; height:7px; background:var(--violet); border:2px solid var(--surface); border-radius:50%; }.job-log-entry p { margin:0; color:#dbe3f0; font-size:12px; }.job-log-meta { margin-top:4px; color:var(--subtle); font:11px "DM Mono",monospace; }.job-log-empty { margin:0 0 0 12px; color:var(--subtle); font-size:12px; }.job-debug { margin-top:8px; }.job-debug summary { display:block; color:var(--muted); font-size:11px; }.job-debug pre { white-space:pre-wrap; overflow-wrap:anywhere; margin:8px 0 0; padding:10px; color:#d8e2ee; background:#0b1220; border-left:2px solid #53617b; font:11px/1.6 "DM Mono",monospace; }
.preview-dialog { width:min(920px,calc(100vw - 32px)); color:var(--ink); background:#11192b; border:1px solid #3a4863; border-radius:8px; padding:0; box-shadow:0 28px 90px #000b; }.preview-dialog::backdrop { background:rgba(4,7,16,.82); backdrop-filter:blur(4px); }.preview-header { display:flex; justify-content:space-between; align-items:flex-start; padding:20px 22px 14px; }.preview-header .eyebrow { margin-bottom:5px; }.preview-header h2 { font-size:17px; margin:0; }.preview-dialog video { width:100%; max-height:calc(100dvh - 240px); display:block; background:#05080e; }.preview-footer { display:flex; align-items:center; justify-content:space-between; padding:15px 22px 19px; }.secondary-button { min-height:34px; color:var(--muted); background:transparent; border:1px solid #3c4960; border-radius:4px; padding:0 11px; font-size:12px; }.secondary-button:hover { color:var(--ink); border-color:#71809a; }
.key-dialog { width:min(520px,calc(100vw - 32px)); color:var(--ink); background:#11192b; border:1px solid #3a4863; border-radius:8px; padding:0; box-shadow:0 28px 90px #000b; }.key-dialog::backdrop { background:rgba(4,7,16,.82); backdrop-filter:blur(4px); }.key-dialog form { padding:20px 22px; }.key-dialog-header { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:20px; }.key-dialog-header .eyebrow { margin-bottom:5px; }.key-dialog-header h2 { margin:0; font-size:17px; }.key-dialog label { margin-bottom:8px; }.key-dialog textarea { min-height:132px; font:12px/1.6 "DM Mono",monospace; }.key-config-note,.key-config-message { min-height:19px; margin:9px 0 0; font-size:12px; line-height:1.5; }.key-config-note { color:var(--muted); }.key-config-message { color:var(--accent); }.key-config-message.error { color:var(--red); }.key-dialog-footer { display:flex; justify-content:flex-end; gap:9px; margin-top:20px; }.key-dialog-footer .primary-button { min-height:38px; }
@media (max-width:440px) { .api-status { font-size:11px; }.page-heading h1 { font-size:24px; }.form-grid { grid-template-columns:1fr; }.submit-row { align-items:stretch; flex-direction:column; }.primary-button { justify-content:center; }.job-meta,.progress-wrap,.job-actions,.job-error,.job-details { margin-left:0; padding-left:0; } .job-actions { flex-wrap:wrap; } }
@media (max-width:440px) { .key-dialog form { padding:18px; }.key-dialog-footer { display:grid; grid-template-columns:1fr; }.key-dialog-footer button { justify-content:center; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; transition:none !important; } }
.batch-count { color:var(--subtle); margin:7px 0 0; font:11px "DM Mono",monospace; }.batch-count.over-limit { color:var(--red); }.form-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
.default-note { margin:7px 0 0; color:var(--muted); font-size:12px; line-height:1.55; }
.error-log-panel { margin:0 0 14px; border:1px solid #714a4a; background:#211922; }.error-log-panel summary { display:flex; align-items:center; justify-content:space-between; min-height:39px; padding:0 13px; color:#ffb3ae; cursor:pointer; font-size:12px; }.error-log-panel[open] summary { border-bottom:1px solid #563d45; }.error-log-panel summary span { color:#d78e8c; font:11px "DM Mono",monospace; }.error-log-list { display:grid; }.error-log-entry { width:100%; display:grid; grid-template-columns:94px minmax(0,1fr) auto; align-items:center; gap:12px; min-height:50px; padding:8px 13px; color:var(--ink); text-align:left; border:0; border-bottom:1px solid #40303a; background:transparent; }.error-log-entry:last-child { border-bottom:0; }.error-log-entry:hover { background:#30212b; }.error-log-entry strong { color:#ffbbb6; font:500 11px "DM Mono",monospace; }.error-log-entry span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }.error-log-entry small { color:#a88e97; font:11px "DM Mono",monospace; text-align:right; }.error-log-entry:focus-visible { outline-offset:-3px; }
.job[data-status="cancelled"] .status-dot { background:var(--subtle); }.job[data-status="cancelled"] .progress-bar span { background:var(--subtle); }.job[data-status="completed"] .job-actions,.job[data-status="failed"] .job-actions,.job[data-status="cancelled"] .job-actions,.job[data-status="waiting"] .job-actions,.job[data-status="submitting"] .job-actions,.job[data-status="queued"] .job-actions,.job[data-status="pending"] .job-actions,.job[data-status="in_progress"] .job-actions { display:flex; }.cancel-button { color:#ffaaa4 !important; border-color:#774847 !important; }
@media (max-width:800px) { .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:650px) { .error-log-entry { grid-template-columns:1fr; gap:4px; }.error-log-entry small { text-align:left; } }
@media (max-width:440px) { .form-grid { grid-template-columns:1fr; } }
