/* Mobile field workflows. Keep desktop design and report/print styling intact. */
.dashboard-mobile-note { display:none; }
.tablet-design-drawers { display: none; }
@media (max-width:767px), (hover:none) and (pointer:coarse) {
  .dashboard-home-v176 .dashboard-mobile-note { display:block; margin-top:10px; padding:8px 10px; border-left:3px solid var(--blue); border-radius:4px; color:var(--muted); background:var(--surface-solid); font-size:12px; line-height:1.5; }
}

/* Tablet Design: keep one bounded drawing surface. Phone field layouts above
   and mouse/trackpad desktop layouts retain their existing behaviour. */
@media (min-width:600px) and (any-pointer:coarse), (min-width:600px) and (hover:none) {
  html:is([data-workspace=floor],[data-workspace=schematic],[data-workspace=plant-room-planner],[data-workspace=three]),
  html:is([data-workspace=floor],[data-workspace=schematic],[data-workspace=plant-room-planner],[data-workspace=three]) body { height:100%; overflow:hidden; }
  html:is([data-workspace=floor],[data-workspace=schematic],[data-workspace=plant-room-planner],[data-workspace=three]) .studio-shell {
    width:100%; max-width:100%; min-width:0; height:100dvh; min-height:0; overflow:hidden;
    grid-template-rows:auto auto minmax(0,1fr) auto;
  }
  html:is([data-workspace=floor],[data-workspace=schematic],[data-workspace=plant-room-planner],[data-workspace=three]) .studio-shell > .topbar {
    position:relative; display:flex; flex-wrap:wrap; gap:4px 8px; padding:6px 10px; min-height:0; height:auto;
  }
  html:is([data-workspace=floor],[data-workspace=schematic],[data-workspace=plant-room-planner],[data-workspace=three]) .studio-shell > .topbar .top-actions {
    width:100%; max-width:100%; min-width:0; flex:1 1 100%; justify-content:flex-start; overflow-x:auto; overflow-y:hidden; flex-wrap:nowrap;
  }
  html:is([data-workspace=floor],[data-workspace=schematic],[data-workspace=plant-room-planner],[data-workspace=three]) .top-actions > * { flex-shrink:0; }
  html:is([data-workspace=floor],[data-workspace=schematic],[data-workspace=plant-room-planner],[data-workspace=three]) .studio-shell > .modebar {
    position:relative; top:auto; display:flex; flex-direction:row; flex-wrap:wrap; gap:4px 8px; padding:6px 10px; height:auto; min-height:0;
  }
  html:is([data-workspace=floor],[data-workspace=schematic],[data-workspace=plant-room-planner],[data-workspace=three]) .modebar > :is(.mode-tabs,.modebar-controls) { width:auto; flex:1 1 auto; min-width:0; flex-wrap:wrap; gap:5px; }
  html:is([data-workspace=floor],[data-workspace=schematic],[data-workspace=plant-room-planner],[data-workspace=three]) .studio-shell > .workspace {
    position:relative; min-width:0; min-height:0; height:100%; width:100%; overflow:hidden; padding:6px; box-sizing:border-box;
  }
  html:is([data-workspace=floor],[data-workspace=three]) .studio-shell > .workspace {
    grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr); grid-template-areas:none; gap:6px;
  }
  html:is([data-workspace=floor],[data-workspace=three]) .workspace > .canvas-stage { grid-area:auto; grid-column:1; grid-row:2; grid-template-columns:minmax(0,1fr); height:100%; width:100%; max-width:100%; min-height:0; min-width:0; }
  html:is([data-workspace=floor],[data-workspace=three]) .workspace:not(:has(.tablet-design-drawers)) { grid-template-rows:minmax(0,1fr); }
  html:is([data-workspace=floor],[data-workspace=three]) .workspace:not(:has(.tablet-design-drawers)) > .canvas-stage { grid-row:1; }
  html[data-workspace=floor] .canvas-scroll { min-height:0; min-width:0; padding:24px; overflow:hidden; }
  .tablet-design-drawers { grid-row:1; grid-column:1; display:flex; gap:6px; align-items:center; }
  .tablet-design-drawers button { min-height:44px; padding:7px 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface-solid); font-weight:750; }
  .tablet-design-drawers button[aria-expanded=true] { color:var(--blue); border-color:var(--blue); background:var(--blue-soft); }
  html:is([data-workspace=floor],[data-workspace=three]) .workspace > :is(.left-rail,.tool-palette,.inspector,.product-panel,.pipe-panel,.results-panel) {
    position:absolute; z-index:35; top:56px; bottom:8px; right:8px; left:auto; width:min(340px,calc(100% - 16px)); max-height:calc(100% - 64px);
    grid-area:auto; overflow:auto; margin:0; background:var(--surface-solid); box-shadow:var(--shadow);
  }
  html:is([data-workspace=floor],[data-workspace=three]) .workspace > :is(.left-rail,.tool-palette) { display:none; left:8px; right:auto; }
  html:is([data-workspace=floor],[data-workspace=three]) .workspace[data-tablet-drawer=project] > .left-rail { display:block; }
  html[data-workspace=floor] .workspace[data-tablet-drawer=tools] > .tool-palette { display:flex; flex-direction:column; align-items:stretch; width:min(280px,calc(100% - 16px)); }
  html[data-workspace=floor] .workspace > .closed-panel { display:none; }
  html:is([data-workspace=floor],[data-workspace=schematic],[data-workspace=plant-room-planner],[data-workspace=three]) .studio-shell > .bottombar {
    position:relative; bottom:auto; display:flex; flex-wrap:nowrap; width:100%; min-width:0; height:auto; min-height:56px; gap:12px; padding:6px 10px max(6px,env(safe-area-inset-bottom));
    overflow-x:auto; overflow-y:hidden; justify-content:flex-start; box-sizing:border-box;
  }
  html:is([data-workspace=floor],[data-workspace=schematic],[data-workspace=plant-room-planner],[data-workspace=three]) .studio-shell > .bottombar > :is(.bottom-tools,.zoom-tools,.view-tools) {
    display:flex; flex:0 0 auto; width:auto; max-width:none; flex-wrap:nowrap; gap:5px; overflow:visible;
  }
  html:is([data-workspace=floor],[data-workspace=schematic],[data-workspace=plant-room-planner],[data-workspace=three]) .studio-shell :is(.bottombar,.topbar,.modebar) :is(button,select) { min-height:44px; }
  html:is([data-workspace=floor],[data-workspace=schematic],[data-workspace=plant-room-planner],[data-workspace=three]) .studio-shell .bottombar button { min-width:44px; }
  html:is([data-workspace=floor],[data-workspace=schematic],[data-workspace=plant-room-planner],[data-workspace=three]) .workspace :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { font-size:16px; min-height:44px; }
  html[data-workspace=schematic] .workspace.schematic-workspace-v171 { --schematic-columns:minmax(0,1fr); min-height:0; }
  html[data-workspace=schematic] .schematic-stage { min-height:0; padding:8px; gap:6px; }
  html[data-workspace=schematic] .studio-shell.schematic-shell:has(.schematic-workspace-v171) > .schematic-bottombar { flex-wrap:nowrap; justify-content:flex-start; }
  html[data-workspace=schematic] .studio-shell.schematic-shell:has(.schematic-workspace-v171) > .schematic-bottombar > :is(.bottom-tools,.zoom-tools,.view-tools) { flex:0 0 auto; width:auto; max-width:none; flex-wrap:nowrap; }
  html[data-workspace=schematic] .studio-shell.schematic-shell:has(.schematic-workspace-v171) > .schematic-bottombar button { min-width:44px; min-height:44px; }
  html[data-workspace=schematic] .schematic-canvas-wrap { min-height:120px; }
  html[data-workspace=schematic] .schematic-canvas-head dl { display:none; }
  html[data-workspace=schematic] .schematic-canvas-head > div:first-child > :is(span,small) { display:none; }
  html[data-workspace=schematic] :is(.schematic-tool-btn,.schematic-workbench-actions > button,.schematic-mode-switch button) { min-height:44px; }
  html[data-workspace=schematic] .schematic-workspace-v171 > :is(.schematic-library-panel,.schematic-selection-panel) { position:absolute; z-index:35; top:8px; bottom:8px; right:8px; width:min(340px,calc(100% - 16px)); max-height:calc(100% - 16px); box-shadow:var(--shadow); }
  html[data-workspace=schematic] .schematic-workspace-v171 > .schematic-library-panel { left:8px; right:auto; }
  html[data-workspace=plant-room-planner] :is(.plant-room-planner-stage,.plant-room-planner-shell,.plant-room-planner-canvas) { min-height:0; }
  html[data-workspace=plant-room-planner] .plant-room-planner-canvas.is-2d.has-right-panel { padding-right:8px; }
  html[data-workspace=plant-room-planner] .plant-room-tool-grid { flex-wrap:nowrap; overflow-x:auto; max-width:100%; }
  html[data-workspace=plant-room-planner] .plant-room-tool-grid > button { flex-shrink:0; min-height:44px; }
  html[data-workspace=plant-room-planner] .plant-room-workbench-actions { margin-left:0; }
  html[data-workspace=floor] .canvas-workbench-bar { flex-wrap:nowrap; overflow-x:auto; justify-content:flex-start; }
  html[data-workspace=floor] .canvas-workbench button { min-width:44px; min-height:44px; }
  html[data-workspace=floor] .canvas-workbench-hint { display:none; }
  html[data-workspace=three]:has(.three-workspace-v173) .studio-shell > .three-bottombar { flex-wrap:nowrap; }
  html[data-workspace=three]:has(.three-workspace-v173) .studio-shell > .three-bottombar > :is(.bottom-tools,.view-tools) { flex:0 0 auto; width:auto; max-width:none; flex-wrap:nowrap; }
  html[data-workspace=three]:has(.three-workspace-v173) .three-bottombar :is(button,.heat-map-mode-menu) { flex:0 0 auto; width:auto; white-space:nowrap; }
  html[data-workspace=three]:has(.three-workspace-v173) .three-bottombar :is(#heatMapModeSelect,#threeFloorViewSelect) { width:auto; min-width:140px; }
  html #projectSetupForm :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { font-size:16px; min-height:44px; }
  html #projectSetupForm :is(button,summary) { min-height:44px; }
}
.mobile-design-notice { position:relative; z-index:1; width:100%; height:100vh; height:100dvh; overflow:auto; padding:max(20px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); box-sizing:border-box; background:var(--app-bg); color:var(--text); }
.mobile-design-brand { max-width:480px; margin:4px auto 28px; }
.mobile-design-brand .brand-logo-wordmark { width:126px; }
html[data-theme=dark] .mobile-design-brand .brand-logo-image-light { display:none; }
html[data-theme=dark] .mobile-design-brand .brand-logo-image-dark { display:block; filter:none; opacity:1; }
.mobile-design-card { max-width:480px; margin:auto; padding:26px; border:1px solid var(--line); border-radius:18px; background:var(--surface-solid); box-shadow:var(--shadow); }
.mobile-design-icon { display:block; width:44px; height:44px; color:var(--blue); margin-bottom:20px; }
.mobile-design-eyebrow { color:var(--blue); font:750 11px/1.5 var(--font-ui,system-ui,sans-serif); text-transform:uppercase; letter-spacing:.06em; }
.mobile-design-card h1 { margin:8px 0 14px; font-size:27px; line-height:1.15; letter-spacing:-.035em; }
.mobile-design-card p { font-size:14px; line-height:1.6; color:var(--muted); }
.mobile-design-card .mobile-design-project { margin:22px 0 8px; color:var(--text); font-weight:700; overflow-wrap:anywhere; }
.mobile-design-card .mobile-design-hint { font-size:13px; }
.mobile-design-actions { display:grid; gap:10px; margin-top:24px; }
.mobile-design-actions button { min-height:46px; width:100%; justify-content:center; white-space:normal; padding:10px; line-height:1.4; font-size:14px; }
.mobile-design-actions button:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }

/* Phone design review is a separate read-only surface, not a hidden editor.
   This dataset also covers landscape phones with a wider viewport. */
html[data-workspace=mobile-design-review],
html[data-workspace=mobile-design-review] body { height:100%; overflow:hidden; }
html[data-workspace=mobile-design-review] #app { height:100%; min-width:0; }
.mobile-design-review { position:relative; display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; height:100vh; height:100dvh; width:100%; min-width:0; overflow:hidden; color:var(--text); background:var(--app-bg); }
.mobile-design-review-header { display:flex; align-items:center; gap:10px; padding:max(7px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) 7px max(10px,env(safe-area-inset-left)); border-bottom:1px solid var(--line); background:var(--surface-solid); min-width:0; }
.mobile-design-review-header > button { display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px; padding:0; border:1px solid var(--line); border-radius:10px; color:var(--blue); background:var(--surface-soft); }
.mobile-design-review-header > button svg { width:20px; height:20px; }
.mobile-design-review-header > div { display:grid; gap:3px; min-width:0; }
.mobile-design-review-header strong { font-size:14px; font-weight:750; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.mobile-design-review-header span { display:flex; gap:8px; align-items:center; color:var(--muted); font-size:11px; }
.mobile-design-review-header small { padding:2px 6px; border-radius:5px; color:var(--blue); background:var(--blue-soft); font-size:10px; font-weight:750; }
.mobile-design-review-brand { width:92px; flex:0 0 92px; }
.mobile-design-review-brand .brand-logo-wordmark { width:92px; }
.mobile-design-review-navigation { display:flex; align-items:center; gap:6px; padding:6px max(10px,env(safe-area-inset-right)) 6px max(10px,env(safe-area-inset-left)); background:var(--surface-solid); border-bottom:1px solid var(--line); min-width:0; }
.mobile-design-review-navigation select { height:44px; min-width:0; width:0; flex:1 1 0; padding:6px 8px; border:1px solid var(--line); border-radius:8px; color:var(--text); background:var(--surface-soft); font:inherit; font-size:16px; }
.mobile-design-review-navigation > span { flex:1; min-width:0; color:var(--muted); font-size:11px; }
.mobile-design-review-canvas { position:relative; width:100%; height:100%; min-height:0; min-width:0; overflow:hidden; touch-action:none; overscroll-behavior:none; user-select:none; -webkit-user-select:none; }
.mobile-design-review-canvas > .my-day-native-svg { display:block; width:100%!important; height:100%!important; max-width:none!important; transform:none!important; margin:0!important; overflow:hidden; touch-action:none; }
.mobile-design-review-canvas > .my-day-three-review,
.mobile-design-review-canvas .my-day-three-canvas { display:block; position:absolute; inset:0; width:100%; height:100%; min-height:0; touch-action:none; }
.mobile-design-review-canvas :is(.my-day-three-toolbar,.my-day-three-status) { display:none; }
.mobile-design-review-navigation-buttons { position:absolute; z-index:2; right:max(10px,env(safe-area-inset-right)); bottom:calc(42px + env(safe-area-inset-bottom)); display:flex; gap:3px; padding:3px; border:1px solid var(--line); border-radius:10px; background:var(--surface-solid); box-shadow:0 2px 8px #0f172a18; }
.mobile-design-review-navigation-buttons button { height:44px; min-width:44px; padding:0 10px; border:0; border-radius:7px; background:var(--surface-soft); color:var(--blue); font:inherit; font-weight:750; }
.mobile-design-review-navigation-buttons button:disabled { opacity:.45; }
.mobile-design-inspection { position:absolute; z-index:3; left:max(8px,env(safe-area-inset-left)); right:max(8px,env(safe-area-inset-right)); bottom:calc(98px + env(safe-area-inset-bottom)); max-height:42vh; max-height:min(42dvh,340px); overflow:auto; overscroll-behavior:contain; padding:12px; box-sizing:border-box; border:1px solid var(--blue); border-radius:14px; background:var(--surface-solid); color:var(--text); box-shadow:0 5px 24px #0f172a24; }
.mobile-design-inspection header { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }
.mobile-design-inspection header > div { display:grid; gap:3px; min-width:0; }
.mobile-design-inspection header span { color:var(--blue); font-size:10px; font-weight:700; }
.mobile-design-inspection header strong { font-size:14px; line-height:1.35; overflow-wrap:anywhere; }
.mobile-design-inspection header button { display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px; padding:0; border:0; border-radius:9px; background:var(--blue-soft); color:var(--blue); font-size:25px; }
.mobile-design-inspection dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 12px; margin:8px 0 0; }
.mobile-design-inspection dl > div { display:block; min-width:0; }
.mobile-design-inspection dt { font-size:10px; color:var(--muted); }
.mobile-design-inspection dd { display:block; width:auto; margin:3px 0 0; text-align:left; font-size:13px; font-weight:700; overflow-wrap:anywhere; }
.mobile-design-inspection p { margin:8px 0 0; color:var(--muted); font-size:12px; }
.mobile-design-review [hidden] { display:none!important; }
.mobile-design-review-status { margin:0; padding:6px 8px max(6px,env(safe-area-inset-bottom)); border-top:1px solid var(--line); color:var(--muted); background:var(--surface-solid); font-size:10px; text-align:center; overflow-wrap:anywhere; }
.mobile-design-review-empty { display:grid; align-content:center; justify-items:center; height:100%; gap:8px; padding:24px; text-align:center; box-sizing:border-box; }
.mobile-design-review-empty strong { font-size:16px; }
.mobile-design-review-empty p { max-width:300px; margin:0; color:var(--muted); font-size:13px; line-height:1.5; }
.mobile-design-review :is(button,select,.mobile-design-review-canvas):focus-visible { outline:2px solid var(--blue); outline-offset:-2px; }
html[data-workspace=mobile-design-review] :is(.axio-shortcuts,.axio-shortcut-launcher,[data-workspace-utilities],[data-project-collaboration],#workspaceAssistantRoot,#workspaceCommentsRoot) { display:none!important; }

/* Optional read-only phone 3D controls belong to the private review runtime.
   They never expose the desktop editor or alter saved project settings. */
.mobile-design-review-canvas .my-day-three-review[data-display-controls=true] .my-day-three-toolbar { position:absolute; z-index:4; top:8px; right:max(8px,env(safe-area-inset-right)); display:flex; gap:0; padding:0; border:0; background:transparent; }
.mobile-design-review-canvas .my-day-three-review[data-display-controls=true] .my-day-three-toolbar > button:not([data-review-display-open]) { display:none; }
.mobile-design-review-canvas [data-review-display-open] { min-width:76px; min-height:44px; padding:8px 12px; border:1px solid var(--line); border-radius:10px; color:var(--blue); background:var(--surface-solid); font:inherit; font-size:13px; font-weight:750; box-shadow:0 2px 8px #0f172a18; }
.mobile-design-review-canvas .my-day-three-display-panel { position:absolute; z-index:5; top:60px; right:max(8px,env(safe-area-inset-right)); left:max(8px,env(safe-area-inset-left)); max-width:340px; max-height:calc(100% - 76px); overflow:auto; overscroll-behavior:contain; touch-action:pan-y; margin-left:auto; padding:12px; border:1px solid var(--line); border-radius:12px; color:var(--text); background:var(--surface-solid); box-shadow:0 5px 24px #0f172a24; box-sizing:border-box; }
.mobile-design-review-canvas .my-day-three-display-panel header { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.mobile-design-review-canvas .my-day-three-display-panel header strong { font-size:14px; }
.mobile-design-review-canvas .my-day-three-display-panel header button { width:44px; height:44px; flex:0 0 44px; padding:0; border:0; border-radius:9px; color:var(--blue); background:var(--blue-soft); font-size:24px; }
.mobile-design-review-canvas .my-day-three-display-panel p { margin:4px 0 10px; color:var(--muted); font-size:11px; line-height:1.5; }
.mobile-design-review-canvas .my-day-three-display-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.mobile-design-review-canvas .my-day-three-display-options button { min-width:0; min-height:44px; padding:8px; border:1px solid var(--line); border-radius:8px; color:var(--muted); background:var(--surface-soft); font:inherit; font-size:13px; font-weight:700; }
.mobile-design-review-canvas .my-day-three-display-options button[aria-pressed=true] { color:var(--blue); border-color:var(--blue); background:var(--blue-soft); }
.mobile-design-review-canvas .my-day-three-display-options button:disabled, .mobile-design-review-canvas [data-review-display-open]:disabled { opacity:.45; }
.mobile-design-review-canvas:has(.my-day-three-display-panel:not([hidden])) { touch-action:auto; }

@media (max-width:767px), (max-width:1024px) and (hover:none) and (pointer:coarse) {
  /* Two full header rows when needed, never fixed-height text clipping. */
  .studio-shell:is(.my-day-shell,.my-day-review-shell,.commissioning-shell) { height:100vh; height:100dvh; min-height:0; grid-template-rows:auto auto minmax(0,1fr); overflow:hidden; }
  .studio-shell:not(.dashboard-shell) > .topbar { display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; height:auto; min-height:60px; gap:8px; padding:8px 10px; padding-top:max(8px,env(safe-area-inset-top)); overflow:visible; }
  .studio-shell:not(.dashboard-shell) > .topbar .brand-lockup { flex:1 1 auto; min-width:0; }
  .studio-shell:not(.dashboard-shell) > .topbar .top-actions { display:flex; flex-direction:row; flex-wrap:nowrap; flex:0 1 auto; max-width:100%; min-height:44px; }
  .studio-shell.commissioning-shell > .topbar .top-actions { flex:1 1 100%; flex-wrap:wrap; justify-content:flex-start; gap:6px; }
  .studio-shell:not(.dashboard-shell) > .topbar .brand-menu-button { width:auto; min-width:112px; max-width:138px; min-height:44px; padding:7px; }
  .studio-shell:not(.dashboard-shell) > .topbar .brand-logo-wordmark { width:94px; flex:0 0 94px; }
  .studio-shell:not(.dashboard-shell) > .modebar { position:relative; top:auto; min-height:0; height:auto; flex-direction:column; }
  .studio-shell:not(.dashboard-shell) > .modebar .mode-tabs { flex-wrap:wrap; height:auto; min-width:0; }
  .studio-shell:not(.dashboard-shell) .project-workspace-switcher { min-width:0; flex:1 1 140px; }
  .studio-shell:not(.dashboard-shell) .project-workspace-switcher select { min-width:0; width:100%; }
  .studio-shell > .topbar .topbar-profile-avatar { display:inline-flex; }
  .studio-shell > .topbar .topbar-profile-button { flex-shrink:0; min-width:48px; min-height:44px; }
  .studio-shell .topbar :is(button,select), .studio-shell .modebar :is(button,select) { min-height:44px; }

  /* Grid auto-sizing previously expanded the whole register beyond the phone. */
  .studio-shell.dashboard-shell { min-width:0; height:100vh; height:100dvh; min-height:0; grid-template-rows:auto minmax(0,1fr); overflow:hidden; }
  .studio-shell.dashboard-shell.dashboard-quick-tool-shell { grid-template-rows:minmax(0,1fr); }
  .dashboard-commissioning-workspace .dashboard-commissioning-shell { min-width:0; grid-template-columns:minmax(0,1fr); grid-auto-rows:max-content; padding:10px; padding-bottom:max(16px,env(safe-area-inset-bottom)); }
  .dashboard-commissioning-shell > *, .dashboard-commissioning-actions > * { min-width:0; max-width:100%; box-sizing:border-box; }
  .dashboard-commissioning-shell .dashboard-commissioning-summary { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:8px; }
  .dashboard-commissioning-summary article { padding:12px; }
  .dashboard-commissioning-shell .dashboard-commissioning-actions { display:grid; grid-template-columns:minmax(0,1fr); align-items:stretch; padding:12px; }
  .dashboard-commissioning-actions .dashboard-commissioning-lead-card { min-width:0; width:100%; grid-template-columns:minmax(0,1fr); }
  .dashboard-commissioning-actions .dashboard-commissioning-customer-report-actions { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); width:100%; }
  .dashboard-commissioning-customer-report-actions :is(a,button) { min-width:0; white-space:normal; overflow-wrap:anywhere; justify-content:center; text-align:center; padding:8px; }
  .dashboard-commissioning-workspace .dashboard-commissioning-topbar-actions, .dashboard-commissioning-workspace .dashboard-commissioning-project-select { min-width:0; width:100%; }
  .dashboard-commissioning-workspace :is(input,select,textarea) { min-width:0; max-width:100%; }
  .dashboard-commissioning-workspace button { white-space:normal; height:auto; line-height:1.4; }
  .dashboard-commissioning-workspace .dashboard-commissioning-task-actions { flex-wrap:wrap; }
  .dashboard-commissioning-workspace .commissioning-review-card form label { flex-basis:100%; }

  /* Forms stay legible without iOS input-focus zoom; touch targets are 44px. */
  :is(.dashboard-shell,.my-day-shell,.commissioning-shell,.equipment-passport-workspace) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { font-size:16px; }
  :is(.dashboard-home-v176,.dashboard-commissioning-workspace,.my-day-workspace,.equipment-passport-workspace) :is(button,select,summary) { min-height:44px; }
  .dashboard-home-v176 :is(.dashboard-project-view-controls button,.dashboard-project-view-controls select,.dashboard-project-actions > button,.dashboard-favourite) { min-height:44px; }
  .dashboard-home-v176 .dashboard-favourite { min-width:44px; }
  .dashboard-home-v176 .dashboard-project-view-controls { gap:8px; }
  .dashboard-home-v176 .dashboard-project-view-controls label { flex-wrap:wrap; }
  .dashboard-home-v176 .dashboard-project-stage-track { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-home-v176 .dashboard-project-stage-track button { min-height:44px; }
  .dashboard-home-v176 .dashboard-project-stage-track button span { font-size:12px; }
  .dashboard-home-v176 .dashboard-quick-tools-grid .dashboard-app-tool strong { font-size:12px; }

  .equipment-passport-workspace { width:calc(100vw - 16px); height:calc(100vh - 16px); height:calc(100dvh - max(16px,env(safe-area-inset-top) + env(safe-area-inset-bottom))); margin:auto; }
  .equipment-passport-workspace .ep-tabs { display:flex; flex-wrap:wrap; overflow:visible; gap:6px; }
  .equipment-passport-workspace .ep-tabs > button { flex:1 1 auto; min-height:44px; }
  .equipment-passport-workspace .ep-form { grid-template-columns:minmax(0,1fr); }
  .equipment-passport-workspace :is(.ep-file-button,.ep-stats button,.ep-list-meta button) { min-height:44px; }
  .equipment-passport-workspace .ep-header button { flex-basis:44px; min-width:44px; }
  .equipment-passport-workspace .ep-footer { flex-wrap:wrap; gap:6px; padding-bottom:max(12px,env(safe-area-inset-bottom)); }

  /* Catalogue: an ordinary stacked flow, not desktop rows with zero-height results. */
  .dashboard-product-library-workspace.mail-mode { display:block; min-width:0; min-height:0; height:100%; overflow:auto; padding:0 8px 16px; }
  .dashboard-product-library-workspace .dashboard-product-mail { display:block; height:auto; overflow:visible; }
  .dashboard-product-library-workspace .dashboard-product-mail-layout { display:block; height:auto; overflow:visible; }
  .dashboard-product-library-workspace .dashboard-product-mail-list-pane,
  .dashboard-product-library-workspace .dashboard-product-mail-results-surface { display:block; height:auto; overflow:visible; }
  .dashboard-product-library-workspace .dashboard-product-mail-list { height:auto; max-height:420px; overflow:auto; }
  .dashboard-product-library-workspace .dashboard-product-mail-reader { height:auto; overflow:visible; border-top:1px solid var(--line); }
  .dashboard-product-library-workspace .dashboard-product-mail-sidebar { display:block; overflow:visible; padding:10px; }
  .dashboard-product-library-workspace .dashboard-product-mail-sidebar-controls { display:flex; margin-bottom:8px; }
  .dashboard-product-library-workspace .dashboard-product-mail-sidebar-toggle { position:static; transform:none; min-width:44px; min-height:44px; }
  .dashboard-product-library-workspace #dashboardProductLibraryCategories { max-height:180px; overflow:auto; gap:8px; }
  .dashboard-product-library-workspace .sidebar-collapsed #dashboardProductLibraryCategories { display:none; }
  .dashboard-product-library-workspace .dashboard-product-mailbox-section { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; min-width:0; }
  .dashboard-product-library-workspace .dashboard-product-mailbox-subcategories { display:grid; grid-column:1/-1; grid-template-columns:repeat(2,minmax(0,1fr)); min-width:0; }
  .dashboard-product-library-workspace .dashboard-product-mailbox-row { min-width:0; max-width:100%; width:100%; min-height:44px; white-space:normal; grid-template-columns:20px minmax(0,1fr) auto; padding:7px; }
  .dashboard-product-library-workspace .dashboard-product-mailbox-row strong { white-space:normal; overflow-wrap:anywhere; }
  .dashboard-product-library-workspace .dashboard-product-mailbox-row.is-summary { grid-column:1/-1; }
  .dashboard-product-library-workspace .dashboard-product-mail-item { content-visibility:visible; contain-intrinsic-size:none; height:auto; }
  .dashboard-product-library-workspace :is(input,select) { font-size:16px; min-height:44px; }
  .dashboard-unit-workspace .dashboard-unit-slider { display:flex; flex-wrap:wrap; height:auto; overflow:visible; }
  .dashboard-unit-workspace .dashboard-unit-slider button { flex:1 1 100px; min-width:0; min-height:44px; white-space:normal; }
}
