:root{color-scheme:light;--bg:#f8fafc;--surface:#fff;--surface-alt:#f5f6fb;--text:#20243a;--muted:#737d91;--border:#e5e8f0;--primary:#4338ca;--primary2:#6366f1;--deep:#1e1b4b;--stage-fill:#e9ebf0;--shadow:0 3px 18px #24224b08;font:14px/1.48 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}
:root[data-theme="dark"]{color-scheme:dark;--bg:#131727;--surface:#1c2031;--surface-alt:#22283b;--text:#f0f1fb;--muted:#a0a9bd;--border:#343a50;--primary:#818cf8;--primary2:#a5b4fc;--deep:#1e1b4b;--stage-fill:#292d37;--shadow:none}
*{box-sizing:border-box}html,body,#app{height:100%;min-height:0;margin:0}body{background:var(--bg);color:var(--text)}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.47;cursor:not-allowed}button,select,input{accent-color:var(--primary)}button:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible,summary:focus-visible{outline:3px solid #818cf8;outline-offset:2px}svg{flex-shrink:0}p{margin:0}h1,h2,h3{margin:0;line-height:1.25;letter-spacing:-.035em}h1{font-size:20px;font-weight:680}h2{font-size:17px;font-weight:670}h3{font-size:13px;font-weight:680}small,.small-muted{font-size:12px;color:var(--muted)}[hidden]{display:none!important}
.topbar{height:64px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:relative;z-index:3}.brand{display:flex;align-items:center;gap:8px;font-size:19px;font-weight:760;letter-spacing:-.05em}.brand-mark{display:grid;place-items:center;background:var(--primary);color:white;width:33px;height:33px;border-radius:10px;margin-right:2px}.brand-accent{color:var(--primary)}.brand-tag{font-size:11px;color:var(--muted);border-left:1px solid var(--border);padding-left:14px;margin-left:10px;letter-spacing:0;font-weight:510}.top-actions{display:flex;align-items:center;gap:8px}.privacy{font-size:11px;color:var(--muted);margin-right:16px}.privacy:first-letter{color:#21aa83}.icon-btn{border:0;background:transparent;color:var(--muted);border-radius:8px;padding:8px;display:inline-grid;place-items:center}.icon-btn:hover,.tool:hover:not(:disabled){background:var(--surface-alt);color:var(--text)}.square{border:1px solid var(--border);background:var(--surface)}
.layout{height:calc(100% - 64px);min-height:0;display:grid;grid-template-columns:260px minmax(0,1fr) 316px}.sidebar,.inspector{min-height:0;background:var(--surface);display:flex;flex-direction:column}.sidebar{border-right:1px solid var(--border);padding:22px 15px 12px}.inspector{border-left:1px solid var(--border)}.panel-head{display:flex;align-items:center;justify-content:space-between;padding:0 7px 18px}.panel-head h2{margin-top:7px;display:flex;align-items:center;gap:8px}.eyebrow{color:var(--muted);font-weight:740;font-size:10px;letter-spacing:.12em}.count{font-size:11px;font-weight:700;display:inline-block;padding:2px 7px;background:var(--surface-alt);color:var(--muted);border-radius:6px;letter-spacing:0}.upload-zone{background:var(--surface-alt);border:1px dashed #b4b8cd;min-height:150px;border-radius:12px;color:var(--text);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;transition:border-color .15s,background .15s}.upload-zone:hover,.upload-zone.dragover{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 7%,var(--surface))}.upload-zone strong{font-size:13px;margin-top:6px}.upload-zone small{font-size:11px}.upload-icon{display:grid;place-items:center;color:var(--primary);background:var(--surface);border:1px solid var(--border);padding:10px;border-radius:11px}.files{flex:1;overflow-y:auto;min-height:0;padding-top:15px}.file-row{width:100%;display:flex;gap:10px;align-items:center;padding:10px 9px;border-radius:10px;position:relative;border:1px solid transparent;cursor:pointer}.file-row:hover{background:var(--surface-alt)}.file-row.selected{background:color-mix(in srgb,var(--primary) 8%,var(--surface));border-color:color-mix(in srgb,var(--primary) 16%,var(--border))}.file-icon{height:34px;width:34px;display:grid;place-items:center;color:var(--primary);background:var(--surface-alt);border-radius:8px}.file-icon svg{width:17px}.file-body{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.file-body strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:670}.file-body span{font-size:11px;color:var(--muted)}.file-body i{font-style:normal;padding:0 3px}.file-indicator{color:var(--muted);width:16px;display:grid;place-items:center}.file-indicator.done{color:#149d71}.file-indicator.error{color:#dc7532}.file-indicator svg{width:14px;height:14px}.file-indicator.analyzing{animation:spin 1.2s linear infinite}.file-remove{background:none;color:var(--muted);border:0;padding:5px;display:none;position:absolute;right:5px;top:3px}.file-remove svg{width:12px;height:12px}.file-row:hover .file-remove,.file-row:focus-within .file-remove{display:grid}.file-row:hover .file-indicator{visibility:hidden}.sidebar-foot{border-top:1px solid var(--border);display:flex;gap:10px;padding:17px 7px 4px;align-items:start}.sidebar-foot p{font-size:11px;color:var(--muted);line-height:1.6}.foot-icon{color:var(--primary);padding-top:2px}.foot-icon svg{width:16px;height:16px}
.main{display:flex;flex-direction:column;min-width:0;min-height:0}.workspace-bar{display:flex;justify-content:space-between;align-items:center;padding:21px 25px 18px;gap:16px}.workspace-heading{min-width:0}.workspace-heading h1{margin:6px 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100vw - 680px)}.workspace-heading p{font-size:12px;color:var(--muted)}.workspace-actions{display:flex;gap:9px;flex-shrink:0}.btn{border:1px solid var(--border);border-radius:9px;font-weight:650;padding:10px 14px;display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap}.btn svg{height:17px;width:17px}.btn.primary{color:#fff;background:#4338ca;border-color:#4338ca}.btn.primary:hover:not(:disabled){background:#3730a3}.btn.secondary{background:var(--surface);color:var(--text)}.btn.secondary:hover:not(:disabled){border-color:#a5a1dc;background:var(--surface-alt)}.stage-wrap{position:relative;flex:1;min-height:200px;margin:0 21px;background:var(--stage-fill);border:1px solid var(--border);overflow:hidden;border-radius:12px}.stage-wrap.dragover{outline:3px dashed var(--primary);outline-offset:-8px}.stage{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab}.stage:active{cursor:grabbing}.empty-stage{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:25px;pointer-events:none;background:var(--stage-fill)}.empty-stage h2{font-size:21px;letter-spacing:-.04em;margin:20px 0 10px}.empty-stage p{max-width:380px;color:var(--muted);font-size:13px;line-height:1.6;margin-bottom:20px}.empty-stage button{pointer-events:auto}.empty-stage small{margin-top:14px}.empty-art{height:108px;width:133px;display:grid;place-items:center;border:1px solid #c2c7db;background:var(--surface);border-radius:13px;box-shadow:0 16px 42px #25275b10;transform:rotate(-6deg);position:relative;color:var(--primary)}.empty-art>svg{height:44px;width:44px}.empty-art i{width:94%;height:94%;position:absolute;inset:5px;border:1px dashed #a9a8cc;border-radius:9px}.stage-progress{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);padding:17px 20px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 35px #0002;width:min(330px,90%)}.progress-title{font-weight:680;margin-bottom:10px}.track{height:6px;background:var(--surface-alt);border-radius:6px;overflow:hidden}.track>div{width:0;height:100%;background:var(--primary);transition:width .12s linear;border-radius:6px}.progress-meta{display:flex;justify-content:space-between;margin-top:9px;color:var(--muted);font-size:11px}.text-btn{padding:0;margin-top:12px;border:0;background:none;color:var(--primary);font-size:12px;font-weight:650}.viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px;padding:0 23px}.toolbar-group{display:flex;align-items:center;gap:4px}.tool{background:none;border:0;border-radius:7px;color:var(--text);font-weight:640;font-size:12px;height:32px;padding:0 10px;display:inline-flex;align-items:center;gap:6px}.tool svg{height:15px;width:15px}.zoom-label{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;min-width:48px;text-align:center}.toolbar-group select{width:80px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text);padding:6px}.toggle-wrap{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;white-space:nowrap;cursor:pointer}.toggle-wrap input{width:15px;height:15px}.statusbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:30px;padding:0 24px;border-top:1px solid var(--border);color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.statusbar span:last-child{max-width:42%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.inspector-top{padding:25px 20px 18px;border-bottom:1px solid var(--border)}.inspector-top h2{margin-top:7px;font-size:18px}.summary-stat{display:flex;align-items:center;gap:16px;margin-top:24px}.summary-number{font-size:52px;font-weight:680;line-height:1;letter-spacing:-.07em;color:var(--primary);font-variant-numeric:tabular-nums}.summary-stat div{display:flex;flex-direction:column;gap:5px;min-width:0}.summary-stat strong{font-size:13px}.summary-stat span:last-child{color:var(--muted);font-size:11px;line-height:1.5}.inspector-scroll{padding:0 20px;min-height:0;overflow-y:auto;flex:1}.section-heading{display:flex;align-items:center;justify-content:space-between;padding:19px 0 13px;gap:8px}.section-heading h3{display:flex;align-items:center;gap:7px}.section-heading>span{font-size:11px;color:var(--muted)}.issues{display:flex;flex-direction:column;gap:10px}.muted-panel{padding:18px;color:var(--muted);font-size:12px;background:var(--surface-alt);border-radius:9px;line-height:1.6}.muted-panel.error{color:#ce6d43}.clean-state{border:1px solid var(--border);border-radius:10px;text-align:center;padding:25px 15px}.clean-state>span{display:grid;place-items:center;width:36px;height:36px;background:#ddf8ec;color:#12966c;margin:0 auto 14px;border-radius:50%}.clean-state strong{font-size:13px}.clean-state p{font-size:12px;color:var(--muted);margin-top:10px;line-height:1.6}.issue-card{border:1px solid var(--border);border-radius:10px;padding:14px;transition:border-color .12s}.issue-card:hover,.issue-card.active{border-color:#a7a3ea}.issue-head{display:flex;align-items:center;gap:7px;margin-bottom:11px}.issue-number{width:24px;height:24px;display:grid;place-items:center;background:var(--surface-alt);font-size:11px;font-weight:730;border-radius:7px}.severity{text-transform:capitalize;font-size:10px;font-weight:690;padding:4px 7px;border-radius:5px;background:#f1f5f9;color:#64748b}.severity.high{background:#fff1e8;color:#bc5b22}.severity.medium{background:#fff6db;color:#97711e}.issue-score{margin-left:auto;font-weight:750;font-size:12px}.issue-link{background:none;border:0;padding:0;font-weight:740;color:var(--text);font-size:13px;line-height:1.45;text-align:left}.issue-link:hover{color:var(--primary);text-decoration:underline}.issue-metadata{font-size:11px;color:var(--muted);margin:7px 0 8px}.issue-metadata span{padding:0 3px}.issue-card p{font-size:11px;color:var(--muted);line-height:1.6}.review-label{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;align-items:center;gap:7px;margin-top:12px}.review-label select{width:157px;font-size:11px;padding:6px;background:var(--surface-alt);border:1px solid var(--border);color:var(--text);border-radius:6px}.signal-note{font-size:10px;color:var(--muted);line-height:1.4}.pixel-panel{margin-top:23px;border-top:1px solid var(--border)}.pixel-inner{display:flex;gap:14px;align-items:center;padding-bottom:22px}.pixel-inner canvas{height:105px;width:105px;border:1px solid var(--border);border-radius:7px;image-rendering:pixelated;background:repeating-conic-gradient(#dce0e7 0% 25%,#fff 0% 50%) 50%/16px 16px;flex-shrink:0}.pixel-values{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}.pixel-values strong{font-size:13px;color:var(--text)}.advanced{padding:16px 0;border-top:1px solid var(--border);margin-bottom:20px}.advanced summary{cursor:pointer;font-weight:690;font-size:12px;list-style:none;display:flex;justify-content:space-between;align-items:center}.advanced summary::-webkit-details-marker{display:none}.advanced summary svg{width:15px;height:15px}.advanced[open] summary svg{transform:rotate(180deg)}.advanced p{font-size:11px;color:var(--muted);margin:12px 0}.field{margin:12px 0}.field label{font-size:11px;color:var(--muted);display:block;margin-bottom:5px}.field select{border:1px solid var(--border);border-radius:7px;padding:7px;width:100%;background:var(--surface-alt);color:var(--text);font-size:12px}.check{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);margin:10px 0}.check input{margin:0}.inspector-foot{position:relative;border-top:1px solid var(--border);padding:14px 20px 13px}.full{width:100%}.inspector-foot p{color:var(--muted);font-size:10px;text-align:center;margin-top:10px}.export-menu{position:absolute;bottom:68px;left:20px;right:20px;border:1px solid var(--border);background:var(--surface);border-radius:10px;box-shadow:0 8px 30px #0003;padding:5px;z-index:5}.export-menu button{display:block;width:100%;border:0;background:none;text-align:left;color:var(--text);font-size:12px;padding:10px;border-radius:6px}.export-menu button:hover{background:var(--surface-alt)}
.modal{max-width:580px;width:calc(100% - 32px);border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:15px;padding:24px;box-shadow:0 24px 90px #0003}.modal::backdrop{background:rgba(11,16,40,.55);backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.modal>p{margin:14px 0;font-size:13px;line-height:1.7;color:var(--muted)}.modal>p strong{color:var(--text)}.modal>.btn{margin-top:8px}.compare-modal{max-width:1050px;width:94vw;max-height:93vh;overflow-y:auto}.compare-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.compare-controls>label:not(.check){font-size:11px;color:var(--muted);display:flex;align-items:center;gap:6px}.compare-controls input[type=number]{width:60px;padding:7px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text)}.compare-controls select{padding:7px;background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:6px}.file-label{cursor:pointer;font-size:12px!important;color:var(--text)!important}.compare-view{width:100%;height:min(59vh,570px);position:relative;margin-top:18px;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:repeating-conic-gradient(#dce0e7 0% 25%,#fff 0% 50%) 50%/20px 20px}.compare-view canvas{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:contain}.range-label{display:flex;align-items:center;gap:15px;font-size:12px;margin:16px 0}.range-label input{flex:1}.compare-modal #cmp-note{margin:6px 0;font-size:11px}.comparison-caution{font-size:11px!important}.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);max-width:90vw;padding:12px 17px;border-radius:9px;background:#252647;color:#fff;font-size:12px;z-index:20;box-shadow:0 8px 35px #0002}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1200px){.layout{grid-template-columns:225px minmax(0,1fr) 285px}.sidebar{padding-left:10px;padding-right:10px}.workspace-bar{padding:19px}.workspace-heading h1{max-width:calc(100vw - 630px)}.stage-wrap{margin:0 14px}.inspector-top,.inspector-scroll{padding-left:14px;padding-right:14px}.inspector-foot{padding-left:14px;padding-right:14px}}
@media(max-width:950px){html,body,#app{height:auto;min-height:100%}.layout{height:auto;min-height:calc(100dvh - 64px);grid-template-columns:1fr;display:flex;flex-direction:column}.sidebar{order:2;border:0;border-top:1px solid var(--border);padding:16px}.sidebar .upload-zone{min-height:90px}.sidebar .upload-zone .upload-icon{display:none}.sidebar .files{display:flex;gap:6px;overflow-x:auto}.sidebar .file-row{min-width:205px;max-width:240px}.sidebar-foot{display:none}.main{order:1;min-height:70vh}.stage-wrap{height:48vh;min-height:340px;flex:none}.workspace-heading h1{max-width:70vw}.inspector{order:3;border:0;border-top:1px solid var(--border);min-height:auto}.inspector-scroll{overflow:visible}.inspector-top{padding:18px}.inspector-top .summary-stat{margin-top:12px}.inspector-foot{padding:17px}.pixel-inner canvas{height:90px;width:90px}.topbar{padding:0 16px}}
@media(max-width:540px){.topbar{height:58px;padding:0 13px}.brand{font-size:17px}.brand-tag,.privacy{display:none}.layout{min-height:calc(100dvh - 58px)}.workspace-bar{align-items:start;gap:10px;padding:14px}.workspace-heading h1{font-size:16px;max-width:55vw}.workspace-heading p{font-size:11px}.workspace-actions{gap:5px}.workspace-actions .btn{padding:9px}.workspace-actions .btn span{display:none}.stage-wrap{margin:0 8px;min-height:290px;height:47vh}.empty-stage h2{font-size:18px}.empty-art{width:105px;height:80px}.empty-stage p{font-size:12px}.viewer-toolbar{padding:0 9px;min-height:55px}.toolbar-group{gap:0}.tool{padding:6px}.tool span{display:none}.toolbar-group select{width:65px}.toggle-wrap{font-size:11px}.statusbar{padding:0 10px;font-size:10px}.statusbar span:last-child{max-width:35%}.modal{padding:15px}.compare-controls{gap:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Design-element triage */
.filtered-toggle{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted);padding:8px 10px 12px;cursor:pointer}.filtered-toggle input{accent-color:var(--primary)}.issue-card[data-filtered="true"]{border-style:dashed}.severity.design{background:var(--surface-alt);color:var(--muted)}.filter-note{margin:4px 0 13px!important;font-size:10px!important;line-height:1.6}.filtered-toggle[hidden]{display:none}
