/* Page-owned compact workbench; navigation retains its higher stacking layer. */
body[data-scene="home"] .workbench-grid{grid-template-columns:minmax(0,1fr);gap:14px}
#compression-workbench{position:relative;min-width:0}
/* Avoid stale blurred layers when details resize while the toolbar is sticky. */
body[data-scene="home"] #compression-workbench .card{backdrop-filter:none}
#btn-retry-failed:disabled{display:none}
#result-overview{margin:8px 0 12px;min-width:0}
#result-overview .result-counts{margin:6px 0;color:var(--muted);font-size:13px}
#result-progress{width:100%;height:10px;display:block;margin:8px 0 12px;accent-color:var(--brand)}
.result-filters{display:flex;flex-wrap:wrap;gap:8px}
.result-filters button{min-height:44px;box-shadow:none}
.result-filters button[aria-pressed="true"]{outline:2px solid var(--brand);outline-offset:1px}
.result-size-note{display:block;color:var(--muted);margin-top:4px}
body[data-scene="home"] .drop{padding:24px 16px}
.workbench-actions{position:sticky;top:8px;z-index:20;display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px;margin-bottom:12px;border:1px solid var(--border);border-radius:14px;background:#fff;box-shadow:0 6px 22px #24345a20}
.workbench-actions .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;box-shadow:none;font-size:14px;line-height:1.4;text-align:center}
.workbench-tip{margin-left:auto;font-size:12px;color:var(--muted)}
.workbench-basics{grid-template-columns:1fr 1fr;align-items:center;gap:12px 24px}
.workbench-basics label{margin-top:0}
.workbench-basics input[type="range"]{min-height:36px}
#more-settings>.settings-disclosure-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 20px;padding-top:12px}
#more-settings .settings-core{display:block}
#more-settings .settings-core>div{margin-bottom:10px}
#more-settings #cloud-preset-settings{grid-column:1/-1}
.file-list-scroll{max-height:280px;overflow:auto}
.uploaded-files{margin-top:16px}
.uploaded-files>summary{cursor:pointer;color:var(--muted);padding:6px 0;font-weight:600}
#compression-results{scroll-margin-top:100px;margin-top:20px}
#compression-results:focus{outline:none}
#tbl-tasks{table-layout:fixed}
#tbl-tasks th:first-child{width:7%}
#tbl-tasks th:nth-child(2){width:23%}
#tbl-tasks th:nth-child(3),#tbl-tasks th:nth-child(4){width:8%}
#tbl-tasks th:nth-child(5){width:20%}
#tbl-tasks th:nth-child(6){width:10%}
#tbl-tasks th:last-child{width:24%}
#tbl-tasks td{overflow-wrap:anywhere;vertical-align:top}
#tbl-tasks .task-ops{display:flex;gap:6px;flex-wrap:wrap}
#tbl-tasks .task-ops a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:5px 9px;border:1px solid var(--border);border-radius:8px;background:#f0efff;color:#4338ca;font-weight:600}
body[data-scene="home"] .features-section{max-width:none;margin:20px 0}
body[data-scene="home"] .feature-card{padding:16px}
html[data-theme="dark"] .workbench-actions{background:#17213a;border-color:#3b4966}
html[data-theme="dark"] #tbl-tasks .task-ops a{background:#253051;color:#e0dcff;border-color:#526087}
[hidden]{display:none!important}
@media(max-width:680px){
  .workbench-actions{top:4px;padding:8px;gap:6px}
  .workbench-actions>.btn{flex:1 1 42%;min-width:0;padding:9px 8px}
  .workbench-tip{display:none}
  body[data-scene="home"] .workbench-basics{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
  #more-settings>.settings-disclosure-body{grid-template-columns:minmax(0,1fr)}
  #compression-results{scroll-margin-top:160px}
  #tbl-tasks,#tbl-tasks tbody{display:block;width:100%}
  #tbl-tasks thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  #tbl-tasks tbody tr:not(.empty-row){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;border:1px solid var(--border);border-radius:12px;padding:12px;margin-bottom:10px;background:var(--card)}
  #tbl-tasks td{display:block;border:0;padding:4px;min-width:0}
  #tbl-tasks td:first-child{display:none}
  #tbl-tasks td:nth-child(2),#tbl-tasks td:last-child{grid-column:1/-1}
  #tbl-tasks td:nth-child(2){font-weight:650}
  #tbl-tasks td[data-label]::before{content:attr(data-label);display:block;font-size:12px;color:var(--muted);margin-bottom:2px}
  html[lang="en"] #tbl-tasks td[data-label]::before{content:attr(data-label-en)}
  #tbl-tasks .task-ops a{min-height:44px;flex:1}
  #tbl-tasks .empty-row,#tbl-tasks .empty-row td{display:block}
  #tbl-images th:nth-child(2),#tbl-images td:nth-child(2){display:none}
  #tbl-images td{overflow-wrap:anywhere}
  .result-list{overflow:visible}
}
