:root{font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#0d181d;background:#fff;font-synthesis:none;text-rendering:optimizeLegibility;--bg: oklch(1 0 0);--surface: oklch(.975 .006 230);--surface-strong: oklch(.94 .01 230);--ink: oklch(.2 .018 230);--muted: oklch(.46 .022 230);--line: oklch(.88 .012 230);--line-strong: oklch(.72 .028 230);--primary: oklch(.53 .155 230);--primary-dark: oklch(.45 .15 230);--primary-pale: oklch(.94 .04 230);--accent: oklch(.62 .16 28);--success: oklch(.54 .13 155);--danger: oklch(.55 .18 25);--focus: oklch(.72 .12 230);--radius: 8px}*{box-sizing:border-box;letter-spacing:0}html,body,#app{width:100%;min-width:320px;min-height:100%;margin:0}html,body{overflow-x:hidden}body{min-height:100vh;background:var(--bg)}.auth-checking{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:14px;color:var(--muted);background:var(--surface)}.auth-shell{min-height:100vh;display:grid;grid-template-rows:64px 1fr;background:var(--surface)}.auth-header{display:flex;align-items:center;padding:0 24px;border-bottom:1px solid var(--line);background:var(--bg)}.auth-content{display:grid;place-items:center;padding:32px 18px 64px}.login-panel{width:min(100%,390px);display:grid;gap:20px;padding:28px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg);box-shadow:0 18px 52px #0d181d1a}.login-lock{width:46px;height:46px;display:grid;place-items:center;border-radius:var(--radius);color:var(--primary-dark);background:var(--primary-pale)}.login-heading{display:grid;gap:5px}.login-heading h1,.login-heading p{margin:0}.login-heading h1{color:var(--ink);font-size:22px;line-height:1.25}.login-heading p{color:var(--muted);font-size:12px}.login-field{display:grid;gap:7px;color:var(--ink);font-size:12px;font-weight:700}.login-input{height:44px;display:flex;align-items:center;gap:9px;padding:0 11px;border:1px solid var(--line-strong);border-radius:var(--radius);color:var(--muted);background:var(--bg);transition:border-color .16s ease,box-shadow .16s ease}.login-input:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-pale)}.login-input input{min-width:0;height:100%;flex:1;padding:0;border:0;outline:0;color:var(--ink);background:transparent;font-size:14px}.password-toggle{width:30px;height:30px;display:grid;place-items:center;padding:0;border:0;border-radius:5px;color:var(--muted);background:transparent;cursor:pointer}.password-toggle:hover{color:var(--ink);background:var(--surface-strong)}.login-error{display:flex;align-items:flex-start;gap:8px;padding:10px 11px;border:1px solid oklch(.78 .09 25);border-radius:var(--radius);color:#8d1a1e;background:#ffece9;background:oklch(.96 .035 25);font-size:11px;line-height:1.5}.login-error svg{flex:0 0 auto}.login-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:var(--radius);color:#fff;background:var(--primary-dark);font-size:13px;font-weight:750;cursor:pointer}.login-button:hover:not(:disabled){background:#004c66;background:oklch(.39 .145 230)}button,input,textarea,select{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid color-mix(in oklch,var(--focus) 48%,transparent);outline-offset:1px}button:disabled{cursor:not-allowed;opacity:.46}.app-shell{min-height:100vh;background:var(--bg)}.topbar{position:sticky;top:0;z-index:30;height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid var(--line);background:color-mix(in oklch,var(--bg) 94%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.brand,.topbar-actions,.result-title,.canvas-actions,.section-heading,.reference-row,.file-row{display:flex;align-items:center}.brand{gap:11px}.brand-mark{width:36px;height:36px;display:grid;place-items:center;color:#fff;background:var(--primary);border-radius:8px}.brand>div:last-child{display:grid;gap:1px}.brand strong{font-size:15px;line-height:1.25}.brand span{color:var(--muted);font-size:11px}.topbar-actions{gap:12px}.nav-button{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 11px;border:0;border-radius:7px;color:var(--muted);background:transparent;font-size:11px;font-weight:700;cursor:pointer}.nav-button:hover{color:var(--ink);background:var(--surface)}.nav-button.active{color:var(--primary-dark);background:var(--primary-pale)}.connection-status{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.connection-status span,.status-dot{width:7px;height:7px;border-radius:50%;background:var(--success)}.workspace{display:grid;grid-template-columns:minmax(420px,480px) minmax(0,1fr);min-height:calc(100vh - 64px)}.control-pane{border-right:1px solid var(--line);background:var(--bg)}.control-pane form{padding:6px 24px 28px}.form-section{padding:20px 0;border-bottom:1px solid var(--line)}.form-section:last-of-type{border-bottom:0}.section-heading{justify-content:space-between;gap:16px;margin-bottom:10px}.section-heading>span:last-child,.section-heading>strong{color:var(--muted);font-size:11px;font-weight:600}.field-label,.section-heading label{color:var(--ink);font-size:12px;font-weight:700}.field-label em{margin-left:4px;color:var(--muted);font-size:10px;font-style:normal;font-weight:500}.label-spaced{margin-top:16px;margin-bottom:8px}.section-label{margin-bottom:10px}.prompt-section textarea{width:100%;min-height:116px;resize:vertical;padding:13px 14px;border:1px solid var(--line-strong);border-radius:var(--radius);color:var(--ink);background:var(--bg);font-size:14px;line-height:1.65;transition:border-color .18s ease,box-shadow .18s ease}.prompt-section textarea:hover,.prompt-section textarea:focus{border-color:var(--primary)}.prompt-section textarea:focus{box-shadow:0 0 0 3px var(--primary-pale);outline:0}::placeholder{color:#546066}.select-wrap{position:relative;margin-top:8px}.select-wrap select{width:100%;height:42px;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0 42px 0 12px;border:1px solid var(--line-strong);border-radius:var(--radius);color:var(--ink);background:var(--bg);font-size:13px;font-weight:600}.select-wrap svg{position:absolute;top:50%;right:12px;transform:translateY(-50%);pointer-events:none;color:var(--muted)}.field-hint,.empty-hint,.submit-area p{margin:7px 0 0;color:var(--muted);font-size:11px;line-height:1.5}.segmented-control,.quality-control,.reference-tabs{display:flex;gap:3px;padding:3px;border-radius:var(--radius);background:var(--surface-strong)}.segmented-control button,.reference-tabs button{min-height:34px;flex:1;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:6px;color:var(--muted);background:transparent;font-size:12px;font-weight:650;cursor:pointer}.segmented-control button.active,.reference-tabs button.active{color:var(--ink);background:var(--bg);box-shadow:0 1px 4px #0c181d1f}.quality-control{gap:0;padding:0;border:1px solid var(--line);background:var(--bg);overflow:hidden}.quality-control button{position:relative;min-height:52px;flex:1;display:grid;place-items:center;align-content:center;gap:2px;border:0;border-right:1px solid var(--line);background:var(--bg);cursor:pointer}.quality-control button:last-child{border-right:0}.quality-control button span{font-size:13px;font-weight:750}.quality-control button small{color:var(--muted);font-size:9px}.quality-control button.active{color:var(--primary-dark);background:var(--primary-pale)}.quality-control button.active small{color:var(--primary-dark)}.ratio-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.ratio-grid button{position:relative;min-width:0;height:72px;display:grid;place-items:center;align-content:center;gap:3px;padding:6px 3px;border:1px solid var(--line);border-radius:7px;background:var(--bg);cursor:pointer;transition:border-color .16s ease,background-color .16s ease}.ratio-grid button:hover{border-color:var(--line-strong);background:var(--surface)}.ratio-grid button.active{border-color:var(--primary);color:var(--primary-dark);background:var(--primary-pale)}.ratio-grid button>span:nth-of-type(2){font-size:11px;font-weight:750}.ratio-grid small{width:100%;overflow:hidden;color:var(--muted);font-size:7px;text-overflow:ellipsis;white-space:nowrap}.ratio-shape{display:block;max-width:27px;max-height:18px;border:1.5px solid currentColor;border-radius:2px}.ratio-check{position:absolute;top:5px;right:5px}.reference-panel{margin-top:10px}.url-input-row{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:7px}.url-input-row input{min-width:0;height:40px;padding:0 11px;border:1px solid var(--line-strong);border-radius:var(--radius);color:var(--ink);background:var(--bg);font-size:12px}.icon-button{width:38px;height:38px;flex:0 0 auto;display:inline-grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:7px;background:var(--bg);cursor:pointer}.icon-button:hover:not(:disabled){border-color:var(--line-strong);background:var(--surface)}.url-list,.file-list{display:grid;gap:6px;margin-top:8px}.reference-row{min-width:0;gap:8px;min-height:34px;padding:5px 7px 5px 10px;border:1px solid var(--line);border-radius:6px;color:var(--muted);background:var(--surface)}.reference-row span{min-width:0;flex:1;overflow:hidden;color:var(--ink);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.reference-row button,.file-row button,.error-message button{display:grid;place-items:center;padding:4px;border:0;border-radius:4px;color:var(--muted);background:transparent;cursor:pointer}.reference-row button:hover,.file-row button:hover,.error-message button:hover{color:var(--danger);background:#ffe8e6;background:oklch(.95 .035 25)}.drop-zone{width:100%;min-height:104px;display:grid;place-items:center;align-content:center;gap:5px;border:1px dashed var(--line-strong);border-radius:var(--radius);color:var(--primary-dark);background:var(--surface);cursor:pointer}.drop-zone:hover,.drop-zone.dragging{border-color:var(--primary);background:var(--primary-pale)}.drop-zone span{color:var(--ink);font-size:12px;font-weight:700}.drop-zone small{color:var(--muted);font-size:10px}.file-row{gap:9px;padding:6px;border:1px solid var(--line);border-radius:7px}.file-row img{width:34px;height:34px;border-radius:5px;object-fit:cover}.file-row>span{min-width:0;flex:1;display:grid;gap:2px}.file-row strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.file-row small{color:var(--muted);font-size:9px}.error-message{display:flex;align-items:flex-start;gap:9px;margin:12px 0 0;padding:10px 11px;border:1px solid oklch(.78 .09 25);border-radius:var(--radius);color:#8d1a1e;background:#ffece9;background:oklch(.96 .035 25);font-size:11px;line-height:1.5}.error-message span{flex:1}.submit-area{position:sticky;bottom:0;padding:16px 0 0;background:var(--bg)}.generate-button{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;gap:9px;padding:0 15px;border:0;border-radius:var(--radius);color:#fff;background:var(--primary-dark);font-size:13px;font-weight:750;cursor:pointer;transition:background-color .18s ease,transform .18s ease}.generate-button:hover:not(:disabled){background:#004c66;background:oklch(.39 .145 230)}.generate-button:active:not(:disabled){transform:translateY(1px)}.generate-button.stopping{background:var(--danger)}.generate-button>span{margin-left:auto;font-size:10px;font-weight:600;opacity:.78}.submit-area p{text-align:center}.result-pane{min-width:0;min-height:calc(100vh - 64px);display:block;padding:28px 32px 48px;background:var(--bg)}.result-toolbar{width:min(100%,1080px);display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 auto;padding-bottom:16px;border-bottom:1px solid var(--line)}.result-title{min-width:0;gap:10px}.status-dot{flex:0 0 auto;background:var(--line-strong)}.status-dot.ready{background:var(--success)}.status-dot.busy{background:var(--accent);animation:pulse 1.4s ease-in-out infinite}.result-title>div{min-width:0;display:grid;gap:2px}.result-title strong{font-size:13px}.result-title span{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.canvas-actions{gap:7px}.button{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;border:1px solid var(--line);border-radius:7px;background:var(--bg);font-size:11px;font-weight:700;cursor:pointer}.button:hover:not(:disabled){border-color:var(--line-strong);background:var(--surface)}.button.dark{border-color:var(--ink);color:#fff;background:var(--ink)}.button.dark:hover:not(:disabled){background:#1f2b31}.result-stage{position:relative;width:min(100%,1080px);min-height:460px;max-height:calc(100vh - 170px);min-width:0;display:grid;place-items:center;overflow:hidden;margin:24px auto 0;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.result-stage img{display:block;max-width:100%;max-height:calc(100vh - 220px);object-fit:contain}.result-stage.hasImage{padding:18px}.empty-stage,.loading-state{position:relative;z-index:2;display:grid;place-items:center;gap:8px;color:var(--muted);text-align:center}.empty-stage strong,.loading-state strong{color:var(--ink);font-size:14px}.empty-stage span,.loading-state span{font-size:11px}.viewfinder,.loading-frame{width:84px;height:84px;display:grid;place-items:center;margin-bottom:5px;border:1px solid var(--line-strong);border-radius:var(--radius);color:var(--primary);background:var(--bg)}.loading-frame{color:var(--accent)}.spin{animation:spin 1s linear infinite}.result-strip{width:min(100%,1080px);display:flex;gap:8px;margin:0 auto;padding-top:12px}.result-strip button{width:52px;height:52px;overflow:hidden;padding:2px;border:1px solid var(--line);border-radius:6px;background:var(--bg)}.result-strip button.active{border-color:var(--primary)}.result-strip img{width:100%;height:100%;border-radius:3px;object-fit:cover}.model-note{width:min(100%,1080px);margin-top:10px;margin-right:auto;margin-left:auto;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius);color:var(--muted);background:var(--bg);font-size:11px;line-height:1.6}.video-spec-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.video-spec-grid>div{min-width:0;display:grid;gap:4px;padding:11px 9px;text-align:center}.video-spec-grid>div+div{border-left:1px solid var(--line)}.video-spec-grid span{color:var(--muted);font-size:9px}.video-spec-grid strong{overflow:hidden;color:var(--ink);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.video-ratio-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.video-result-stage{min-height:520px;background:#070f12}.video-result-stage.hasVideo{padding:18px}.video-result-stage video{display:block;width:100%;max-width:100%;max-height:calc(100vh - 220px);border-radius:6px;background:#030608}.video-result-stage .empty-stage,.video-result-stage .loading-state{color:#a8b3b9}.video-result-stage .empty-stage strong,.video-result-stage .loading-state strong{color:#eef3f5}.video-result-stage .viewfinder,.video-result-stage .loading-frame{border-color:#3f5058;color:#36b6e9;background:#0e1a20}.video-loading-state{width:min(100%,360px)}.video-progress{width:min(100%,280px);height:5px;overflow:hidden;margin-top:8px;border-radius:999px;background:#243036}.video-progress span{display:block;height:100%;border-radius:inherit;background:var(--primary);transition:width .22s ease-out}.video-task-note{display:flex;align-items:center;justify-content:space-between;gap:18px}.video-task-note strong{color:var(--ink);font-size:10px}.video-task-note span{text-align:right}.history-page{width:min(100%,1440px);min-height:calc(100vh - 64px);margin:0 auto;padding:32px 32px 64px}.history-page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding-bottom:24px;border-bottom:1px solid var(--line)}.history-page-header>div{display:grid;gap:7px}.history-header-actions{display:flex!important;align-items:center;gap:10px!important}.history-media-tabs{display:flex;padding:3px;border-radius:7px;background:var(--surface-strong)}.history-media-tabs button{min-height:32px;display:inline-flex;align-items:center;gap:6px;padding:0 10px;border:0;border-radius:5px;color:var(--muted);background:transparent;font-size:10px;font-weight:700;cursor:pointer}.history-media-tabs button.active{color:var(--primary-dark);background:var(--bg)}.history-page-header h1,.history-page-header p,.history-results-heading h2,.history-detail h2,.history-detail p,.history-reference-detail h3,.history-reference-detail p{margin:0}.history-page-header h1{color:var(--ink);font-size:25px;line-height:1.2}.history-page-header p{color:var(--muted);font-size:12px}.back-link{width:fit-content;display:inline-flex;align-items:center;gap:6px;padding:0;border:0;color:var(--primary-dark);background:transparent;font-size:11px;font-weight:700;cursor:pointer}.back-link:hover{text-decoration:underline}.history-filter-bar{display:grid;grid-template-columns:minmax(190px,1.2fr) minmax(190px,1.2fr) minmax(180px,1fr) minmax(140px,.7fr) auto;align-items:end;gap:12px;padding:22px 0;border-bottom:1px solid var(--line)}.history-filter-bar label{min-width:0;display:grid;gap:7px;color:var(--ink);font-size:11px;font-weight:700}.history-filter-bar input,.history-filter-bar select{width:100%;min-width:0;height:40px;padding:0 10px;border:1px solid var(--line-strong);border-radius:7px;color:var(--ink);background:var(--bg);font-size:12px}.history-filter-actions{display:flex;gap:7px}.history-page-error,.history-detail-error{display:flex;align-items:flex-start;gap:9px;margin-top:16px;padding:11px 12px;border:1px solid oklch(.78 .09 25);border-radius:7px;color:#8d1a1e;background:#ffece9;background:oklch(.96 .035 25);font-size:11px;line-height:1.5}.history-page-error span,.history-detail-error span{flex:1}.history-page-error button{display:grid;place-items:center;padding:2px;border:0;color:inherit;background:transparent;cursor:pointer}.history-results{padding-top:24px}.history-results-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding-bottom:12px}.history-results-title{display:flex;align-items:baseline;gap:10px}.history-results-heading h2,.history-detail h2{color:var(--ink);font-size:16px;line-height:1.3}.history-results-heading span{color:var(--muted);font-size:10px}.history-results-summary{display:flex;align-items:center;gap:14px}.history-cost-summary{display:flex;align-items:baseline;gap:7px;padding:6px 9px;border-radius:6px;color:var(--primary-dark);background:var(--primary-pale)}.history-cost-summary span{color:inherit}.history-cost-summary strong{font-size:13px}.history-table-wrap{width:100%;max-width:100%;overflow-x:auto;border-top:1px solid var(--line-strong);border-bottom:1px solid var(--line)}.history-table{width:100%;min-width:1130px;border-collapse:collapse;table-layout:fixed}.history-table th,.history-table td{padding:12px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}.history-table th{color:var(--muted);background:var(--surface);font-size:10px;font-weight:750}.history-table th:nth-child(1){width:164px}.history-table th:nth-child(2){width:138px}.history-table th:nth-child(3){width:132px}.history-table th:nth-child(4){width:auto}.history-table th:nth-child(5){width:84px}.history-table th:nth-child(6){width:76px}.history-table th:nth-child(7){width:82px}.history-table th:nth-child(8){width:84px}.history-table th:nth-child(9){width:46px}.history-table tbody tr{transition:background-color .16s ease}.history-table tbody tr:hover,.history-table tbody tr.selected{background:var(--primary-pale)}.history-table td{color:var(--muted);font-size:10px}.history-table td strong,.history-table td small{display:block}.history-table td strong{overflow:hidden;color:var(--ink);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.history-table td small{margin-top:3px;color:var(--muted);font-size:9px}.history-time-cell{color:var(--ink)!important;white-space:nowrap}.history-cost-cell{color:var(--primary-dark)!important;font-weight:750;white-space:nowrap}.history-prompt-button{width:100%;overflow:hidden;padding:3px 0;border:0;color:var(--ink);background:transparent;font-size:11px;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.history-prompt-button:hover{color:var(--primary-dark);text-decoration:underline}.history-status{display:inline-flex;align-items:center;padding:3px 6px;border-radius:4px;color:var(--muted);background:var(--surface-strong);font-size:9px;font-weight:750;white-space:nowrap}.history-status.succeeded{color:var(--success);background:#ddf6e4}.history-status.failed{color:var(--danger);background:#ffece9;background:oklch(.96 .035 25)}.history-status.uploading{color:#7e5400;color:oklch(.48 .14 75);background:#fcedcd}.history-detail-button{width:32px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:6px;color:var(--muted);background:transparent;cursor:pointer}.history-detail-button:hover{color:var(--primary-dark);background:var(--bg)}.history-skeleton-row td span{display:block;width:80%;height:11px;border-radius:4px;background:var(--surface-strong);animation:skeleton-pulse 1.2s ease-in-out infinite}.history-empty{min-height:360px;display:grid;place-items:center;align-content:center;gap:8px;color:var(--muted);text-align:center}.history-empty strong{color:var(--ink);font-size:13px}.history-empty span{font-size:11px}.history-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:12px;color:var(--muted);font-size:10px}.history-pagination>div{display:flex;gap:6px}.history-detail{margin-top:32px;padding-top:24px;border-top:1px solid var(--line-strong)}.history-detail>header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:18px}.history-detail>header>div{display:grid;gap:3px}.history-detail>header span,.history-detail-prompt>span,.history-reference-group>span{color:var(--muted);font-size:10px;font-weight:700}.history-detail-prompt{display:grid;gap:8px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.history-detail-prompt p{max-width:75ch;color:var(--ink);font-size:13px;line-height:1.7;white-space:pre-wrap}.history-detail-grid{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));margin:0;border-bottom:1px solid var(--line)}.history-detail-grid>div{min-width:0;display:grid;gap:5px;padding:15px 14px 15px 0}.history-detail-grid dt{color:var(--muted);font-size:9px;font-weight:700}.history-detail-grid dd{min-width:0;overflow:hidden;margin:0;color:var(--ink);font-size:11px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.history-reference-detail{display:grid;gap:12px;padding:20px 0;border-bottom:1px solid var(--line)}.history-video-preview{display:grid;grid-template-columns:minmax(0,640px) auto;align-items:end;gap:16px;padding:20px 0;border-bottom:1px solid var(--line)}.history-video-preview video{width:100%;max-height:420px;border-radius:7px;background:#050a0d}.history-video-preview>div{display:grid;gap:8px}.history-video-preview a{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;border-radius:7px;color:#fff;background:var(--ink);font-size:11px;font-weight:700;text-decoration:none}.history-reference-detail h3{font-size:12px}.history-reference-detail>p{color:var(--muted);font-size:11px}.history-reference-group{display:grid;gap:7px}.history-reference-group a{width:fit-content;max-width:100%;overflow-wrap:anywhere;color:var(--primary-dark);font-size:11px}.history-file-meta{display:flex;align-items:baseline;gap:9px;color:var(--ink);font-size:11px}.history-file-meta small{color:var(--muted);font-size:9px}.history-payload{padding-top:18px}.history-payload summary{width:fit-content;color:var(--primary-dark);font-size:11px;font-weight:700;cursor:pointer}.history-payload pre{max-height:420px;overflow:auto;margin:12px 0 0;padding:16px;border-radius:7px;color:#dde6eb;background:#0d181d;font:11px/1.65 Consolas,SFMono-Regular,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;padding:0;margin:-1px;clip:rect(0,0,0,0);white-space:nowrap;border:0}.toast{position:fixed;z-index:80;left:50%;bottom:24px;display:flex;align-items:center;gap:8px;padding:10px 13px;border-radius:7px;color:#fff;background:var(--ink);font-size:11px;font-weight:650;transform:translate(-50%)}.toast-enter-active,.toast-leave-active{transition:opacity .18s ease,transform .18s ease}.toast-enter-from,.toast-leave-to{opacity:0;transform:translate(-50%,8px)}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.35;transform:scale(.8)}}@keyframes skeleton-pulse{50%{opacity:.42}}@media(max-width:1160px){.history-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.history-filter-actions{grid-column:1 / -1;justify-content:flex-end}.history-detail-grid{grid-template-columns:repeat(3,minmax(130px,1fr))}}@media(max-width:980px){.workspace{grid-template-columns:400px minmax(0,1fr)}.control-pane form{padding-inline:18px}.ratio-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.history-page{padding-inline:22px}}@media(max-width:780px){.topbar{padding:0 14px}.connection-status{display:none}.workspace{display:flex;flex-direction:column}.control-pane{border-right:0;border-bottom:1px solid var(--line)}.control-pane form{padding:4px 16px 22px}.result-pane{min-height:620px;padding:20px 16px 32px}.result-stage{min-height:480px;max-height:none}.result-stage img{max-height:620px}.submit-area{position:static}.history-page{padding:24px 16px 48px}.history-page-header{align-items:flex-start;flex-direction:column}.history-header-actions{width:100%;justify-content:space-between}.history-filter-bar{grid-template-columns:1fr}.history-filter-actions{grid-column:auto}.history-filter-actions .button{flex:1}.history-detail-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}.history-video-preview{grid-template-columns:1fr;align-items:stretch}.history-video-preview>div{grid-template-columns:repeat(2,minmax(0,1fr))}.video-task-note{align-items:flex-start;flex-direction:column;gap:4px}.video-task-note span{text-align:left}}@media(max-width:480px){.auth-header{padding:0 16px}.auth-content{align-items:start;padding-top:24px}.login-panel{padding:22px 18px}.brand span,.button.secondary span,.nav-button span{display:none}.nav-button,.topbar-actions .button.secondary{width:38px;padding:0}.ratio-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.result-toolbar{align-items:flex-start}.canvas-actions{gap:4px}.canvas-actions .button.dark{width:38px;padding:0;font-size:0}.result-pane{min-height:520px}.result-stage{min-height:400px}.history-page-header p{max-width:30ch}.history-detail-grid{grid-template-columns:1fr}.history-file-meta{align-items:flex-start;flex-direction:column;gap:3px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
