/* WorkToolset · Audit Excel lot 8. Scoped fixes, leaves global app.css untouched. */
.tool-workspace .workbook-merge-layout,
.tool-workspace .workbook-split-layout {min-width:0}
.tool-workspace .workbook-merge-layout > *,
.tool-workspace .workbook-split-layout > * {min-width:0;max-width:100%}
.workbook-merge-picker .button,
.workbook-split-picker .button {min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.workbook-merge-target,.workbook-merge-target strong,.workbook-merge-check span,
.workbook-merge-check strong,.workbook-merge-signals {min-width:0;max-width:100%;overflow-wrap:anywhere}
.workbook-merge-plan,.workbook-merge-row {min-width:0;max-width:100%}
@media(max-width:900px){
 .tool-workspace > .workspace-grid,
 .tool-workspace .workbook-merge-layout,
 .tool-workspace .workbook-split-layout {grid-template-columns:minmax(0,1fr)!important}
 .workbook-merge-row {grid-template-columns:minmax(0,1fr)!important}
 .workbook-merge-target {overflow-wrap:anywhere}
 .workbook-merge-picker .button,
 .workbook-split-picker .button {min-height:44px}
}

/* Lot 353 FREE — workbook sheet inventory. The table scrolls on small screens. */
.workbook-overview-inventory{margin-block:1rem;min-width:0}
.workbook-overview-inventory .workbook-auditor-subhead{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}
.workbook-overview-inventory .table-wrap{max-height:18rem;overflow:auto}
.workbook-overview-inventory .data-table{min-width:540px}
.workbook-overview-inventory button[aria-current="true"]{font-weight:750;outline:2px solid currentColor;outline-offset:1px}
.workbook-overview-inventory td{overflow-wrap:anywhere}

/* Lot 423: coordinate-based overview, bounded grid, mobile navigation */
.wa-grid-tools{display:flex;align-items:flex-end;gap:.75rem;flex-wrap:wrap;margin:.8rem 0;min-width:0}
.wa-grid-tools .action-row{display:flex;flex-wrap:wrap;gap:.35rem}
.wa-cell-jump{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;min-width:0}
.wa-cell-jump input{width:8rem;max-width:100%;min-width:0}
.wa-grid-tools select{max-width:100%}
.wa-cell-grid td{max-width:18rem;white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.wa-cell-grid th{white-space:nowrap}
.wa-cell-grid .wa-error-cell{color:#b45309;font-weight:700}
.wa-cell-grid td small{display:block;font-style:italic}
@media(max-width:520px){.wa-grid-tools{align-items:stretch;flex-direction:column}.wa-grid-tools .action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.wa-grid-tools label{max-width:100%}}

/* Lot 435: sparse workbook search, scoped responsive controls and results. */
.wa-search-panel{margin:1rem 0;padding:.85rem;border:1px solid var(--border,#cbd5e1);border-radius:12px;min-width:0}
.wa-search-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;margin:.75rem 0}
.wa-search-form>label{display:flex;flex-direction:column;gap:.25rem;min-width:0;font-size:.88rem}
.wa-search-form input:not([type=checkbox]),.wa-search-form select{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.wa-search-checks,.wa-search-pages{display:flex;gap:.65rem;align-items:center;flex-wrap:wrap}
.wa-search-checks label{display:flex;align-items:center;gap:.3rem;font-size:.85rem}
.wa-search-table td{max-width:20rem;overflow-wrap:anywhere;white-space:normal}
.wa-search-table small{display:block}
.wa-search-pages{margin-top:.65rem}
.wa-cell-grid td.wa-search-target{outline:2px solid #2563eb;outline-offset:-2px}
@media(max-width:520px){.wa-search-form{grid-template-columns:minmax(0,1fr)}}

/* Lot 442: source layout indicators and bounded range export. */
.wa-export-range{flex:1 1 100%;min-width:0;margin:.4rem 0}
.wa-range-controls{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;margin-top:.35rem}
.wa-range-controls input{width:12rem;max-width:100%;min-width:0}
.wa-hidden-mark,.wa-merge-mark{display:block;font-size:.72rem;font-weight:600;color:var(--muted,#64748b)}
.wa-cell-grid td.wa-merge-cell{box-shadow:inset 0 0 0 1px #94a3b8}
.wa-fill-swatch{display:inline-block;width:.85rem;height:.85rem;margin-right:.35rem;vertical-align:middle;border:1px solid #94a3b8;border-radius:3px}
