:root{--wb-card:#fff;--wb-soft:#faf8f6;--wb-input:#e1d7d0;--wb-good:#36735a;--wb-good-soft:#edf5ef;--wb-warn:#966236;--wb-warn-soft:#faf1e6;--wb-bad:#b04c44;--wb-bad-soft:#fcf0ee;--wb-header-ink:#302b27;--wb-backdrop:#241c1860}
.dark{--wb-card:#241f1b;--wb-soft:#2c2520;--wb-input:#58493f;--wb-good:#94c7ac;--wb-good-soft:#25392d;--wb-warn:#e0b681;--wb-warn-soft:#3e3022;--wb-bad:#efa69e;--wb-bad-soft:#402924;--wb-backdrop:#090706aa}
.workspace-heading{margin-bottom:20px}.workspace-heading h1,.page-heading h1{font-size:22px;font-weight:600;letter-spacing:-.02em}.workspace-layout{grid-template-columns:290px minmax(0,1fr);gap:20px}.workspace-layout>*{min-width:0}.task-form-card{position:sticky;top:24px;padding:20px}.form-toolbar{padding-bottom:18px}.form-toolbar h2{font-size:16px;font-weight:600;margin:0}.text-button{border:0;background:transparent;color:var(--clay);padding:4px 0;font-size:12px;white-space:nowrap}.text-button:hover{text-decoration:underline}.form-grid{grid-template-columns:1fr;gap:18px;padding-top:20px}.field label,.label-row label{font-size:12px;font-weight:500}.field input{height:40px;padding:9px 11px;background:var(--wb-card);border-color:var(--wb-input)}.season-toggle{height:30px;top:5px}.style-field{margin-top:20px;padding-top:18px}.style-editor{margin-top:8px;min-height:94px;border:1px solid var(--wb-input);border-radius:6px;padding:7px;background:var(--wb-card)}.style-editor:focus-within{border-color:var(--clay);box-shadow:0 0 0 2px color-mix(in srgb,var(--clay) 12%,transparent)}.style-editor .chips{padding:0;min-height:0;background:transparent;gap:5px;max-height:190px;overflow-y:auto}.style-editor .chip{padding:2px 3px 2px 7px;font-size:12px;background:var(--wb-soft);border-color:var(--line);color:var(--ink)}.style-editor .chip button{width:20px;height:20px;color:var(--muted)}.style-entry{margin:0;border:0;padding-right:0}.style-entry:focus-within{box-shadow:none}.style-entry input{padding:8px 3px;min-width:0;font-size:13px;height:37px}.style-entry kbd{border:0;background:transparent;font-size:14px;color:var(--muted)}.style-meta{margin:8px 0 0;font-size:11px;gap:8px}.style-meta span:last-child{font-size:10px}.input-error{font-size:12px;color:var(--wb-bad);margin:8px 0 0}.form-footer{margin:20px -20px -20px;padding:16px 20px;background:var(--wb-soft)}.form-footer .primary-button{width:100%;height:42px;justify-content:center;border-radius:6px;gap:10px}.primary-button{border-radius:6px}.primary-button:hover{background:color-mix(in srgb,var(--clay) 88%,var(--ink))}.ghost-button:disabled,.text-button:disabled{opacity:.45;cursor:default}.header-rail .nav-item.active{color:var(--wb-header-ink)}
.queue-card{padding:20px;overflow:hidden}.queue-heading{gap:12px;align-items:center;flex-wrap:nowrap}.queue-heading h2{display:flex;align-items:center;gap:8px;font-size:16px}.count-badge{font-size:11px;min-width:22px;height:22px;background:var(--wb-soft);color:var(--muted)}.clear-finished{font-size:12px}.task-list-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0 12px}.task-filters{display:flex;flex-wrap:wrap;gap:3px}.task-filters button{display:flex;gap:5px;align-items:center;border:0;border-radius:5px;padding:6px 8px;font-size:12px;background:transparent;color:var(--muted);white-space:nowrap}.task-filters button.active{background:var(--wb-soft);color:var(--ink);font-weight:600}.task-filters button:hover{color:var(--ink);background:var(--wb-soft)}.task-filters button span{font-size:10px;font-weight:400;font-variant-numeric:tabular-nums;opacity:.75}.task-search{height:33px;width:180px;min-width:0;border:1px solid var(--wb-input);border-radius:6px;padding:0 10px;color:var(--ink);background:var(--wb-card);font:12px var(--font)}.selection-toolbar{border:0;border-radius:6px;margin:0 0 12px;padding:9px 10px;gap:8px;background:var(--wb-soft);min-height:48px}.selection-toolbar label{font-size:12px}.selection-toolbar .selection-count{font-size:11px}.selection-toolbar .selection-download{margin-left:auto}.selection-toolbar .selection-count{margin-right:0}.selection-toolbar .primary-button{border-radius:5px}.task-queue{padding:0}.task-queue .table-wrap{margin:0;max-height:calc(100dvh - 325px);min-height:220px;overflow:auto}.task-table{width:100%;min-width:655px;table-layout:auto}.task-table th{font-size:11px;font-weight:500;background:var(--wb-soft);color:var(--muted);position:sticky;top:0;z-index:1;padding:9px 8px}.task-table th:first-child{width:32px;font-size:0}.task-table td{padding:12px 8px;font-size:12px;vertical-align:middle;border-color:var(--line)}.task-table td:first-child{width:32px}.task-table td:nth-child(2){min-width:115px}.task-table td:nth-child(3){width:62px}.task-table td:nth-child(4){min-width:82px}.task-table td:last-child{width:83px}.task-row:hover{background:var(--wb-soft)}.style-link{font-size:13px;font-weight:600;letter-spacing:.01em;padding:0;border:0;background:transparent;color:var(--ink);white-space:nowrap}.style-link:hover{color:var(--clay);text-decoration:underline;text-underline-offset:3px}.row-meta{display:block;font-size:10px;color:var(--muted);margin-top:4px;font-variant-numeric:tabular-nums;white-space:nowrap}.season-tag{font-size:11px;color:var(--ink);background:var(--wb-soft);border:1px solid var(--line);border-radius:4px;padding:3px 5px}.task-status{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--muted);white-space:nowrap}.task-status.success{color:var(--wb-good)}.task-status.failed{color:var(--wb-bad)}.task-status.checking,.task-status.running,.task-status.searching,.task-status.opening,.task-status.generating,.task-status.waiting{color:var(--clay)}.row-checks{display:flex;flex-wrap:wrap;gap:4px;max-width:190px}.check-pill{display:inline-flex;align-items:center;gap:5px;padding:2px 5px;background:var(--wb-soft);color:var(--muted);font-size:10px;border-radius:4px;white-space:nowrap}.check-pill b{font-weight:500}.check-pill.present{background:var(--wb-good-soft);color:var(--wb-good)}.check-pill.not_found,.check-pill.review{background:var(--wb-warn-soft);color:var(--wb-warn)}.check-pending{color:var(--muted);font-size:12px}.row-actions{display:flex;justify-content:flex-end;align-items:center;gap:5px}.row-actions .file-download{width:31px;height:31px;border-radius:6px;background:var(--clay)}.row-actions .file-download svg{width:19px;height:19px}.row-more{border:1px solid var(--line);background:transparent;color:var(--muted);border-radius:5px;font-size:18px;line-height:1;width:27px;height:31px;padding:0}.row-more:hover{background:var(--wb-card);color:var(--ink)}.row-retry{padding:0;border:0;color:var(--clay);background:transparent;white-space:nowrap;font-size:11px}.row-retry:disabled{opacity:.5;cursor:default}.task-empty{height:200px;text-align:center}.task-empty strong{display:block;color:var(--muted);font-size:13px;font-weight:400;margin-bottom:8px}.list-summary{padding-top:12px;color:var(--muted);font-size:11px}.history-card .table-wrap{margin:0}.history-card .task-table{min-width:760px}.history-card .row-checks{max-width:none}.history-card h2{font-size:16px}.status-pulse{width:5px;height:5px;border-radius:50%;background:currentColor;animation:taskPulse 1.5s infinite}@keyframes taskPulse{50%{opacity:.35}}
.task-details{inset:0;margin:0 0 0 auto;padding:0;border:0;border-left:1px solid var(--line);width:500px;max-width:100vw;height:100dvh;max-height:100dvh;background:var(--wb-card);color:var(--ink);box-shadow:-12px 0 40px var(--wb-backdrop)}.task-details::backdrop{background:var(--wb-backdrop)}.detail-heading{display:flex;justify-content:space-between;align-items:center;padding:25px 26px;border-bottom:1px solid var(--line);gap:18px}.detail-heading span{font-size:12px;color:var(--muted)}.detail-heading h2{font-size:23px;letter-spacing:-.01em;margin:5px 0 0;font-weight:600}.detail-close{width:32px;height:32px;flex:none;border:1px solid var(--line);border-radius:6px;background:transparent;color:var(--muted);font-size:23px;line-height:1}.detail-close:hover{background:var(--wb-soft);color:var(--ink)}.detail-body{padding:24px 26px;overflow-y:auto;max-height:calc(100dvh - 112px)}.detail-file{padding:16px;border:1px solid var(--line);background:var(--wb-soft);border-radius:8px}.detail-file p{font-size:12px;color:var(--muted);overflow-wrap:anywhere;white-space:normal;margin:8px 0 13px}.detail-file-actions{display:flex;align-items:center;gap:8px}.preview-button{display:inline-flex;align-items:center;text-decoration:none;height:36px;background:var(--wb-card);font-size:12px}.detail-file-actions .file-download{height:36px;width:36px;border-radius:6px;background:var(--clay)}.detail-section{margin-top:26px}.detail-section h3{font-size:14px;font-weight:600;margin:0 0 13px}.detail-section .inspection{padding-top:0;margin-top:0;border:0;min-width:0}.detail-section .inspection-row{padding:10px 0;margin:0;border-bottom:1px solid var(--line);font-size:13px}.detail-section .inspection-row b{font-size:12px}.detail-section .inspection details{margin-top:14px}.detail-section .inspection-evidence{max-width:none;padding-top:8px;font-size:12px}.detail-section .inspection-present{color:var(--wb-good)}.detail-section .inspection-not_found,.detail-section .inspection-review{color:var(--wb-warn)}.detail-notice{font-size:13px;line-height:1.7;padding:14px;background:var(--wb-soft);border-radius:6px;color:var(--muted);overflow-wrap:anywhere}.detail-muted{font-size:12px;color:var(--muted)}.version-list{border:1px solid var(--line);border-radius:7px;overflow:hidden}.version-row{display:flex;align-items:center;padding:13px 14px;gap:12px;border-bottom:1px solid var(--line);font-size:12px}.version-row:last-child{border-bottom:0}.version-row strong{font-weight:600}.version-row span{color:var(--muted);margin-right:auto}.version-row .ghost-button{height:31px;font-size:12px;padding:0 10px;background:var(--wb-card);color:var(--clay);border-color:var(--wb-input)}.detail-bottom{display:flex;justify-content:space-between;gap:12px;margin-top:30px;padding-top:16px;border-top:1px solid var(--line);align-items:center}.detail-bottom>span{font-size:11px;color:var(--muted)}.danger{color:var(--wb-bad)}.error-details{margin-top:24px;font-size:12px;color:var(--muted)}.error-details summary{cursor:pointer}.error-details p{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:1000px){.workspace-layout{grid-template-columns:250px minmax(0,1fr);gap:16px}.task-list-controls{align-items:stretch}.task-search{width:100%}.queue-card{padding:16px}.task-filters button{padding:6px}.task-queue .table-wrap{max-height:calc(100dvh - 360px)}}
@media(max-width:800px){.workspace-layout{grid-template-columns:1fr}.task-form-card{position:static}.form-grid{grid-template-columns:1fr 1fr}.task-form-card .style-field{margin-top:18px}.style-editor{min-height:65px}.style-editor .chips{max-height:130px}.form-footer .primary-button{width:auto;min-width:180px}.task-queue .table-wrap{max-height:65dvh}.task-list-controls{align-items:center}.task-search{width:180px}.header-rail nav{overflow-x:auto}.header-rail nav button{flex-shrink:0}.inspection-evidence p{line-height:1.7}}
@media(max-width:480px){.page-rail{padding:22px 16px 40px}.workspace-heading{margin-bottom:16px}.workspace-heading h1{font-size:20px}.task-form-card,.queue-card,.history-card{padding:16px}.form-toolbar{padding-bottom:14px}.form-grid{padding-top:16px;gap:12px}.field label,.label-row label{font-size:11px}.form-footer{margin:18px -16px -16px;padding:14px 16px}.form-footer .primary-button{width:100%}.style-field{padding-top:16px}.task-list-controls{gap:10px}.task-search{width:100%}.task-filters{width:100%;justify-content:space-between;gap:0}.task-filters button{font-size:11px;padding:6px 5px;gap:4px}.selection-toolbar{gap:7px}.selection-toolbar .selection-count{font-size:10px}.selection-toolbar .ghost-button{padding:0 6px;font-size:11px}.detail-heading{padding:20px}.detail-body{padding:20px}.task-details{width:100%}.task-queue .table-wrap{min-height:150px}.detail-heading h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){.status-pulse{animation:none}}

/* Shared readable type scale across the workbench and task details. */
body{font-size:16px}
.brand-cluster strong,.header-rail .nav-item,.header-tools button.language,.header-tools button.user{font-size:16px}
.workspace-heading h1,.page-heading h1{font-size:25px}
.form-toolbar h2,.queue-heading h2,.history-card h2{font-size:18px}
.field label,.label-row label{font-size:14px}
.field input,.style-entry input{font-size:16px;height:44px}
.season-toggle{height:34px}.season-list button{height:42px;font-size:15px}.season-list span{font-size:13px}
.style-editor .chip{font-size:14px}.style-editor .chip button{width:23px;height:23px;font-size:16px}
.style-meta,.style-meta span:last-child,.row-meta,.count-badge,.list-summary{font-size:12px}
.text-button,.clear-finished,.task-filters button,.task-search,.selection-toolbar label,.selection-toolbar .selection-count{font-size:14px}
.task-filters button span{font-size:12px}.task-search{height:38px;width:200px}
.selection-toolbar .primary-button,.selection-toolbar .ghost-button{font-size:14px;height:35px}
.form-footer .primary-button{font-size:16px;height:46px}
.task-table{min-width:735px}.task-table th{font-size:13px;padding:11px 9px}.task-table th:first-child{font-size:0}
.task-table td{font-size:14px;padding:14px 9px}.style-link{font-size:16px}.row-meta{margin-top:5px}
.season-tag,.task-status{font-size:13px}.check-pill{font-size:12px;padding:3px 6px}.check-pending,.row-retry{font-size:14px}
.row-actions .file-download,.row-more{height:35px}.row-actions .file-download{width:35px}
.task-empty strong,.input-error,.detail-file p,.preview-button,.detail-section .inspection-evidence,.detail-muted,.version-row,.version-row .ghost-button,.error-details{font-size:14px}
.detail-heading span,.detail-bottom>span{font-size:13px}.detail-heading h2{font-size:25px}
.detail-section h3,.detail-section .inspection-row,.detail-notice{font-size:16px}.detail-section .inspection-row b,.inspection summary{font-size:14px}
.history-card .task-table{min-width:850px}
.row-retry{display:grid;place-items:center;width:35px;height:35px;padding:0;border:1px solid var(--wb-input);border-radius:6px;background:var(--wb-card);color:var(--clay)}.row-retry:hover{background:var(--wb-soft)}.row-retry svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:800px){.task-search{width:200px}}
@media(max-width:480px){.task-search{width:100%}.task-filters{justify-content:flex-start;gap:4px}.task-filters button{padding:7px 8px}.field label,.label-row label{font-size:13px}.workspace-heading h1{font-size:23px}.selection-toolbar .selection-count{font-size:13px}.selection-toolbar .ghost-button{font-size:13px}}
