/* Only Maintenance — coordinated remaining-tab desktop improvements, 2026-11-23.
   Layout only. Preserve Today, Insights, request permissions and mobile behavior.
   All new rules live above mobile breakpoint; no overlay of save/status behavior. */
@media (min-width:1025px) {
  /* Give list-driven screens room; keep detailed forms a comfortable reading width. */
  main.shell:not(.guest-shell) > .page-head {
    align-items:flex-end;gap:24px;margin-top:12px;margin-bottom:26px;
  }
  main.shell:not(.guest-shell) > .page-head .head-actions,
  main.shell:not(.guest-shell) > .page-head .actions {display:flex;flex-wrap:wrap;gap:10px;align-items:center}
  main.shell:not(.guest-shell) > .page-head .subhead {max-width:760px}
  main.shell:not(.guest-shell) > .two-panel:not(.loc-layout):not(.people-layout):not(.om-mobile-request-layout) {
    grid-template-columns:minmax(0,1.62fr) minmax(350px,.94fr);gap:24px;align-items:start;
  }
  main.shell:not(.guest-shell) > .two-panel.wide-left:not(.people-layout) {
    grid-template-columns:minmax(0,1.7fr) minmax(340px,.9fr);
  }
  main.shell:not(.guest-shell) > .two-panel.people-layout {
    grid-template-columns:minmax(0,1.85fr) minmax(340px,.85fr);gap:24px;
  }
  /* Locations: creation takes the smaller left column; the facility tree gets priority. */
  main.shell:not(.guest-shell) > .two-panel.loc-layout {
    grid-template-columns:minmax(315px,.83fr) minmax(0,1.55fr);gap:24px;
  }
  main.shell:not(.guest-shell) > .two-panel.om-mobile-request-layout {
    grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px;
  }
  main.shell:not(.guest-shell) > .two-panel > .panel {min-width:0}
  /* Asset and parts catalog lists are the main activity, not the add-new form. */
  main.shell:not(.guest-shell) > .om-asset-scan-shortcut + .two-panel {
    grid-template-columns:minmax(0,1.72fr) minmax(340px,.9fr);gap:24px;
  }
  main.shell:not(.guest-shell) .om-compact-list,
  main.shell:not(.guest-shell) .om-po-list,
  main.shell:not(.guest-shell) .people-list {min-width:0}
  main.shell:not(.guest-shell) .om-compact-row,
  main.shell:not(.guest-shell) .om-po-row {min-width:0}
  /* My Work: two readable cards per row, without changing job state/actions. */
  main.shell:not(.guest-shell) .tech-shell.om-phone-work-index {
    width:100%;max-width:1340px;margin-inline:auto;padding:10px 0 32px;
  }
  main.shell:not(.guest-shell) .om-phone-work-index .tech-hero {margin-bottom:24px}
  main.shell:not(.guest-shell) .om-phone-work-index .tech-hero h1 {font-size:clamp(36px,3.3vw,50px)}
  main.shell:not(.guest-shell) .om-phone-work-index .tech-summary {
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0 30px;
  }
  main.shell:not(.guest-shell) .om-phone-work-index .tech-job-list {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch;
  }
  main.shell:not(.guest-shell) .om-phone-work-index .tech-job {height:100%;min-width:0}
  main.shell:not(.guest-shell) .om-phone-work-index .tech-empty {grid-column:1/-1}
  main.shell:not(.guest-shell) .om-phone-work-index .tech-recent {max-width:none}
  main.shell:not(.guest-shell) .tech-shell.tech-detail {max-width:1060px;width:100%}
  /* Work Orders: allow filters and results to use the wider workspace. */
  main.shell:not(.guest-shell) .om-work-list-page {
    max-width:1360px;width:100%;margin-inline:auto;
  }
  main.shell:not(.guest-shell) .om-work-list-page .wo-queue {width:100%;min-width:0}
  main.shell:not(.guest-shell) .om-work-list-page .wo-search-row {display:flex;align-items:stretch;gap:12px;flex-wrap:wrap}
  main.shell:not(.guest-shell) .om-work-list-page .wo-search-row input {flex:1 1 350px;min-width:0}
  main.shell:not(.guest-shell) .om-work-list-page .wo-person-filters {
    display:flex;align-items:end;flex-wrap:wrap;gap:12px 18px;
  }
  main.shell:not(.guest-shell) .om-work-list-page .wo-person-filters label {min-width:180px;flex:1 1 220px}
  main.shell:not(.guest-shell) .om-work-list-page .wo-person-actions {flex:0 1 auto}
  main.shell:not(.guest-shell) .om-work-list-page .wo-views {display:flex;flex-wrap:wrap;gap:8px}
  main.shell:not(.guest-shell) .om-work-list-page .wo-result {gap:24px}
  main.shell:not(.guest-shell) .om-work-list-page .wo-result-content {min-width:0;flex:1}
  /* Create/edit: wider outer frame but don't stretch text-entry fields excessively. */
  main.shell:not(.guest-shell) .om-new-work-wrap {width:100%;max-width:1030px;margin-inline:auto}
  main.shell:not(.guest-shell) .om-new-work-form {padding:28px 34px}
  /* Requests, purchase orders, vendor lists, and support history share visual rhythm. */
  main.shell:not(.guest-shell) > .om-incoming-page,
  main.shell:not(.guest-shell) > .support-shell {width:100%;max-width:1360px;margin-inline:auto}
  main.shell:not(.guest-shell) > .om-request-only {width:100%;max-width:1360px;margin-inline:auto}
  main.shell:not(.guest-shell) .om-po-panel {width:100%;min-width:0}
  main.shell:not(.guest-shell) .om-po-panel .om-po-row {gap:24px}
  main.shell:not(.guest-shell) .om-po-panel .om-po-search {max-width:980px}
  main.shell:not(.guest-shell) .om-request-history-panel {min-width:0}
  /* Keep the useful full-width panels, but prevent them from growing without structure. */
  main.shell:not(.guest-shell) .panel-head {flex-wrap:wrap;gap:12px}
  main.shell:not(.guest-shell) .form-stack input,
  main.shell:not(.guest-shell) .form-stack select,
  main.shell:not(.guest-shell) .form-stack textarea {max-width:100%}
}
@media (min-width:761px) and (max-width:1024px) {
  /* Laptop widths: favor legibility over squeezing two columns. */
  main.shell:not(.guest-shell) .tech-shell.om-phone-work-index {width:100%;max-width:none}
  main.shell:not(.guest-shell) .om-work-list-page {max-width:none}
  main.shell:not(.guest-shell) .om-new-work-wrap {max-width:900px}
  main.shell:not(.guest-shell) > .two-panel.loc-layout,
  main.shell:not(.guest-shell) > .two-panel.people-layout {grid-template-columns:1fr;gap:18px}
}
@media (prefers-reduced-motion:reduce) {
  main.shell:not(.guest-shell) .om-phone-work-index .tech-job {transition:none}
}
