:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#eef2f6;color:#1f2933}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}input[type=checkbox]{width:auto}.shell{display:grid;grid-template-columns:248px 1fr;min-height:100vh}.sidebar{background:#16212f;color:#eef4f8;padding:20px;display:flex;flex-direction:column;gap:22px}.brand{display:flex;gap:12px;align-items:center}.brand span{display:block;color:#9fb0c1;font-size:13px;margin-top:4px}.brand-mark{width:40px;height:40px;display:grid;place-items:center;border-radius:8px;background:#f3c45c;color:#16212f;font-weight:800}.sidebar nav{display:grid;gap:8px}.sidebar nav button,.logout{border:0;background:transparent;color:inherit;padding:11px 12px;border-radius:8px;display:flex;align-items:center;gap:10px;cursor:pointer}.sidebar nav button.active,.sidebar nav button:hover,.logout:hover{background:#243449}.logout{margin-top:auto;color:#f6caca}.main{min-width:0;padding:24px}.topbar,.task-title,.panel-head,.card-head,.group-head,.actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.topbar{margin-bottom:18px}.topbar-actions{display:flex;align-items:center;gap:10px}.refresh-meta{color:#64748b;font-size:13px;white-space:nowrap}h1,h2,h3,h4,p{margin:0}.topbar p,.item-card p{margin-top:5px;color:#64748b}.panel,.task-detail{background:#fff;border:1px solid #d9e2ec;border-radius:8px;padding:18px;box-shadow:0 8px 24px #1f29330f}.grid.two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.button{border:1px solid #c8d4df;background:#fff;color:#1f2933;border-radius:8px;min-height:36px;padding:8px 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;white-space:nowrap}.button.primary{background:#1b6ca8;border-color:#1b6ca8;color:#fff}.button.danger{background:#a6423a;border-color:#a6423a;color:#fff}.button.ghost{background:#eef2f6}.button:disabled{cursor:not-allowed;opacity:.52}.tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.tabs button{border:1px solid #d4dee9;background:#f7fafc;border-radius:8px;min-height:38px;padding:8px 12px;display:flex;align-items:center;gap:7px;cursor:pointer}.tabs button.active{background:#d9ecff;border-color:#79b4e4}.table{display:grid;gap:8px;margin-top:14px}.table-row{display:grid;grid-template-columns:2fr 1fr .7fr .8fr 1fr;gap:12px;align-items:center;padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px}.table-row.header{background:#f4f7fa;color:#526577;font-weight:700}.table-row.queue-row{grid-template-columns:1fr 1.1fr .7fr 1.1fr minmax(0,2.2fr)}.table-row.log-row{grid-template-columns:1.1fr 1fr 1.2fr minmax(0,2fr)}.queue-payload{white-space:pre-wrap;overflow-wrap:anywhere}.export-file-cell{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.export-file-cell a{color:#1b6ca8;font-weight:700;text-decoration:none}.provider-status-list{display:grid;gap:10px;margin-top:14px}.sandbox-summary{margin-top:14px}.provider-status-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px;background:#fbfdff}.provider-status-item div{display:grid;gap:4px;min-width:0}.provider-status-item span:not(.badge){color:#64748b;font-size:13px;overflow-wrap:anywhere}.badge{display:inline-flex;align-items:center;justify-content:center;min-height:24px;width:fit-content;padding:3px 8px;border-radius:999px;background:#edf2f7;color:#465a69;font-size:12px;white-space:nowrap}.badge.info{background:#d9ecff;color:#1b5f93}.badge.success{background:#dff4e8;color:#247046}.badge.warning{background:#fff0c2;color:#805b10}.badge.danger{background:#ffe0de;color:#9f332d}.notice,.form-error{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:8px;background:#fff0c2;color:#805b10;margin-bottom:14px}.notice.compact{margin:12px 0 0}.auto-refresh-banner{display:flex;align-items:center;gap:8px;margin-top:14px;padding:9px 11px;border:1px solid #dce5ed;border-radius:8px;color:#64748b;background:#f8fafc;font-size:13px}.auto-refresh-banner.active{border-color:#9ec9ed;color:#1b5f93;background:#eef7ff}.auto-refresh-banner strong{margin-left:auto;font-weight:700;white-space:nowrap}.status-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:8px;margin-top:12px}.status-strip div{min-height:62px;padding:10px 12px;border:1px solid #dfe7ef;border-radius:8px;background:#fbfdff;display:grid;align-content:center;gap:3px}.status-strip strong{font-size:20px;line-height:1}.status-strip span{color:#64748b;font-size:12px}.inline-notice{margin-bottom:14px;padding:10px 12px;border-radius:8px;background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.login-screen{min-height:100vh;display:grid;place-items:center;background:#eef2f6}.login-panel{width:min(420px,calc(100vw - 32px));background:#fff;border:1px solid #d9e2ec;border-radius:8px;padding:24px;display:grid;gap:16px}label{display:grid;gap:7px;color:#526577;font-weight:650}input,select,textarea{width:100%;border:1px solid #c8d4df;border-radius:8px;padding:10px 11px;color:#1f2933;background:#fff}.form-grid{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(180px,1fr) 120px;gap:12px}.form-grid.prompt-grid{grid-template-columns:minmax(0,1fr) 140px}.form-grid.template-form-grid{grid-template-columns:minmax(220px,1fr) 140px minmax(180px,.7fr)}.form-grid.template-text-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}.create-task-form{display:grid;gap:12px;margin-top:16px;padding:14px;border:1px solid #dfe7ef;border-radius:8px;background:#f9fbfd}.upload-box{min-height:72px;border:1px dashed #9db3c7;border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;gap:10px;color:#1b5f93;cursor:pointer}.upload-box input{display:none}.file-pills{display:flex;flex-wrap:wrap;gap:8px}.file-pill{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #d4dee9;border-radius:999px;padding:5px 9px;background:#fff;color:#526577;font-size:12px}textarea{min-height:88px;resize:vertical}.kv{display:grid;grid-template-columns:120px 1fr;gap:9px 12px}.kv.compact{grid-template-columns:92px 1fr;font-size:13px}.kv dt{color:#64748b}.kv dd{margin:0;min-width:0;overflow-wrap:anywhere}.image-list,.strategy-grid,.prompt-list,.template-grid,.candidate-grid{display:grid;gap:12px;margin-top:14px}.strategy-grid,.template-grid,.candidate-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}.strategy-grid{grid-template-columns:repeat(auto-fit,minmax(340px,1fr))}.strategy-editor{display:grid;gap:10px;margin:12px 0}.field-block{display:grid;gap:8px;color:#526577;font-weight:650}.checkbox-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:7px}.checkline{min-height:34px;display:flex;align-items:center;gap:7px;padding:7px 8px;border:1px solid #d4dee9;border-radius:8px;background:#fff;color:#1f2933;font-weight:500}.checkline.inline-check{align-self:end;padding-bottom:9px}.item-card,.candidate-card,.mini-image,.candidate-group{border:1px solid #dfe7ef;border-radius:8px;padding:14px;background:#fbfdff}.candidate-card.selected{border-color:#1b6ca8;box-shadow:inset 0 0 0 2px #1b6ca833}.thumb,.candidate-preview{width:54px;height:54px;border-radius:8px;background:linear-gradient(135deg,#d9ecff,#f2df8f);display:grid;place-items:center;font-weight:800;color:#1f2933}.thumb.large{width:100%;height:120px;margin-bottom:10px}.thumb.has-image{overflow:hidden;background:#eef2f6}.thumb.has-image img{width:100%;height:100%;display:block;object-fit:cover}.candidate-preview{width:100%;height:150px;margin-bottom:12px}.candidate-preview.has-image{overflow:hidden;background:#eef2f6}.candidate-preview.has-image img{width:100%;height:100%;display:block;object-fit:cover}.candidate-issues{margin:10px 0 0;padding-left:18px;color:#9f1239;font-size:12px;line-height:1.5}.mini-image{display:grid;grid-template-columns:54px 1fr auto auto;align-items:center;gap:12px}.actions.wrap{justify-content:flex-start;flex-wrap:wrap}.empty{padding:18px;color:#64748b;background:#f7fafc;border-radius:8px}.dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#16212f9e;display:grid;place-items:center;padding:24px;z-index:10}.compare-dialog{width:min(1120px,100%);max-height:calc(100vh - 48px);overflow:auto;background:#fff;border-radius:8px;padding:18px}.compact-range{display:inline-flex;align-items:center;gap:8px;color:#526577;font-size:13px;white-space:nowrap}.compact-range input{width:120px}.compact-select{display:inline-flex;align-items:center;grid-template-columns:none;gap:8px;color:#526577;font-size:13px;white-space:nowrap}.compact-select select{width:118px;min-height:36px;padding:7px 9px}.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.compare-pane{display:grid;gap:8px}.compare-canvas{min-height:420px;overflow:auto;border-radius:8px;background:linear-gradient(90deg,rgba(27,108,168,.12) 1px,transparent 1px),linear-gradient(rgba(27,108,168,.12) 1px,transparent 1px),#eef5fb;background-size:24px 24px;display:grid;place-items:center;font-size:var(--zoom);font-weight:800;color:#1b5f93}.compare-canvas.has-image{place-items:start center;padding:16px}.compare-canvas.has-image img{width:var(--zoom);max-width:none;height:auto;display:block;border-radius:8px;box-shadow:0 10px 30px #1f293329}.compare-slider{position:relative;min-height:420px;margin-top:14px;overflow:auto;border-radius:8px;background:linear-gradient(90deg,rgba(27,108,168,.12) 1px,transparent 1px),linear-gradient(rgba(27,108,168,.12) 1px,transparent 1px),#eef5fb;background-size:24px 24px}.compare-slider img{width:var(--zoom);max-width:none;height:auto;display:block}.compare-slider-base{margin:16px auto;border-radius:8px;box-shadow:0 10px 30px #1f293329}.compare-slider-reveal{position:absolute;top:16px;left:50%;transform:translate(-50%);clip-path:var(--reveal-clip);border-radius:8px}.compare-slider-line{position:absolute;top:16px;bottom:16px;left:var(--reveal);width:2px;background:#fff;box-shadow:0 0 0 1px #1f293333,0 0 18px #1f29333d;pointer-events:none}@media (max-width: 900px){.shell{grid-template-columns:1fr}.sidebar{position:static}.grid.two,.form-grid,.compare-grid,.table-row{grid-template-columns:1fr}.topbar,.topbar-actions,.auto-refresh-banner{align-items:flex-start;flex-direction:column}.auto-refresh-banner strong{margin-left:0}}
