/* Shared page and deal-bar geometry only. Compact rows and semantic colors retained. */
@media screen and (min-width: 701px) {
 body .page { width: 100%; max-width: 1500px; margin-inline: auto; padding-inline: 24px; }
 body:has(.workbench-deal) .page { max-width: 1148px; }
 body .workbench-deal, body .workbench-deal[data-ledger=true] { width: 100%; max-width: 1100px; margin-inline: auto; }
 body .workbench-deal[data-ledger] .sticky-save { left: max(24px, calc((100vw - 1100px) / 2)); right: max(24px, calc((100vw - 1100px) / 2)); width: auto; margin-inline: 0; padding-inline: 18px; }
 body .page > .tabs { max-width: 100%; overflow-x: auto; }
 body .page > .tabs > button { flex-shrink: 0; }
 body .page > .upload-panel { max-width: none; }
}

@media screen and (max-width: 700px) {
 body .workbench-deal[data-ledger] .sticky-save { left: 12px; right: 12px; width: auto; padding-inline: 12px; }
}

@media screen and (min-width: 1101px) {
 body .page { font-size: 17.6px; }
 body .page :is(input,select,textarea) { font-size: 17.6px; }
 body .workbench-deal .scope-bar select { font-size: 15.4px; }
 body .workbench-deal .deal-heading h1 { font-size: 26.4px; }
 body .workbench-deal .step-rail > button { font-size: 17.6px; min-height: 57.2px; }
 body .workbench-deal .step-number { width: 41.8px; min-width: 41.8px; height: 41.8px; font-size: 17.6px; }
 body .workbench-deal[data-ledger=true] .transaction-table th:nth-child(2) { width: 110px; }
 body .workbench-deal[data-ledger=true] .transaction-table th:nth-child(4),
 body .workbench-deal[data-ledger=true] .transaction-table th:nth-child(5) { width: 118.8px; }
 body .workbench-deal[data-ledger=true] .transaction-table th:nth-child(6) { width: 277.2px; }
 body .workbench-deal[data-ledger=true] .transaction-table th:nth-child(7) { width: 158.4px; }
 body .workbench-deal[data-ledger=true] .transaction-table td { font-size: 15.4px; padding: 4.4px 8.8px; }
 body .workbench-deal[data-ledger=true] .transaction-table td:nth-child(2) { font-size: 15.4px; }
 body .workbench-deal[data-ledger=true] .transaction-table td:nth-child(3) > textarea { font-size: 15.4px; line-height: 23.1px; min-height: 24.2px; max-height: 46.2px; }
 body .workbench-deal[data-ledger=true] .transaction-table td:nth-child(3) > textarea:focus { min-height: 46.2px; max-height: 198px; }
 body .workbench-deal[data-ledger=true] .transaction-table .amount-heat { font-size: 16.5px; }
 body .workbench-deal[data-ledger=true] .category-control button { font-size: 14.3px; min-height: 37.4px; height: 37.4px; }
 body .workbench-deal[data-ledger=true] .row-actions .compact-action { font-size: 12.1px; min-height: 33px; height: 33px; }
 body .workbench-deal[data-ledger=true] .ledger-header-columns > span { font-size: 14.3px; padding: 8.8px; }
 body .workbench-deal[data-ledger=true] .filter-grid :is(select,input,button) { min-height: 41.8px; height: 41.8px; font-size: 15.4px; }
 body .workbench-deal .sticky-save button { font-size: 16.5px; height: 48.4px; }
}
