/* Shared responsive layer. No functionality is removed at phone widths. */
:root{--touch:44px}html{scroll-padding-top:16px}body{overflow-wrap:break-word}main,section,article,nav,form,fieldset,dialog,button{min-width:0}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:#e7753533;touch-action:manipulation}button,input,select,summary,.capture-button{min-height:var(--touch)}button{white-space:normal}.primary-button,.secondary-button,.filter-button{justify-content:center;font-size:13px;line-height:1.35}button:disabled{opacity:.65;cursor:wait}.close-button{flex:none;width:44px;height:44px;font-size:26px}.avatar{width:44px;height:44px}.topbar{gap:12px}.crumb{min-width:0;overflow-wrap:anywhere}.top-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}.search-box{height:44px}.search-box input{min-width:0;min-height:42px;font-size:14px}.field-label{font-size:13px}.field-label input,.field-label textarea,.field-label select{font-size:16px;max-width:100%;min-width:0}.field-label small,.detail-hint{line-height:1.6}.field-label input[type=file]{white-space:normal;padding:10px 5px;font-size:13px}.field-label input::file-selector-button{min-height:44px;border:1px solid #ccd7df;background:#edf3f7;border-radius:5px;color:#26465e;margin-right:6px}.form-error{font-size:13px;line-height:1.5}.job-dialog{max-height:calc(100dvh - 28px);overflow:auto;overscroll-behavior:contain;scroll-padding-block:75px}.dialog-head{gap:10px}.dialog-head>div{min-width:0}.dialog-head h2,.dialog-head p{overflow-wrap:anywhere}.dialog-actions{position:sticky;bottom:-1px;background:#fff;z-index:2;padding:12px 0 max(12px,env(safe-area-inset-bottom));margin-bottom:-10px;box-shadow:0 -5px 10px #ffffffed}.dialog-status{position:sticky;bottom:0;padding:12px;border-radius:7px;background:#e6f4ed;color:#246143;font-size:13px;line-height:1.5;z-index:3}.dialog-status:empty{display:none}.route-fields{min-width:0}.route-fields label{min-height:44px;padding:4px;margin:2px 8px 2px 0;cursor:pointer}.route-fields input[type=checkbox]{min-height:24px;min-width:24px;accent-color:#dc773b}.station-identity select,.station-identity input{font:16px 'DM Sans',sans-serif;min-width:0;width:100%}.station-identity label{min-width:0;flex:1 1 150px}.queue-row>*{min-width:0;overflow-wrap:anywhere}.job-open{min-height:44px}.row-actions{align-items:stretch}.row-actions button{flex:1 1 110px;min-height:48px}.detail-summary>*{min-width:0}.detail-summary strong,.hold-banner,.detail-notes{overflow-wrap:anywhere}.detail-actions button{min-height:48px}.capture-button{margin:0 0 12px}.photo-preview button{min-width:44px;min-height:44px;box-shadow:0 1px 5px #142b4033}.photo-preview img{width:100px;height:100px}.photo-library-heading{flex-wrap:wrap}.photo-gallery{grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr))}.visit-events li p,.visit-events li small{overflow-wrap:anywhere}.timeline-photo-link{min-height:44px;display:inline-flex;align-items:center}.station-visit summary{min-height:60px}.station-visit[open] summary,.station-visit summary:active{background:#edf3f7}.nav-item{min-height:48px}.skip-link{position:fixed;top:-100px;left:16px;z-index:100;background:#fff;padding:14px;border:2px solid #dc773b;border-radius:6px}.skip-link:focus{top:8px}.toast{max-width:calc(100vw - 32px);font-size:13px;line-height:1.5;overflow-wrap:anywhere}.report-table td,.report-table th{overflow-wrap:anywhere}.report-chart{display:flex;overflow-x:auto;overflow-y:hidden;padding-top:10px}.report-day{flex:0 0 38px}.daily-output-svg{display:block;width:100%;height:auto;max-height:230px}.report-legend{flex-wrap:wrap;line-height:1.5}.report-filters{gap:12px}.report-filters input,.report-filters select,.report-drill-search input{font-size:16px;min-height:44px;min-width:0;max-width:100%;width:100%}.report-filters label{min-width:0;flex:1 1 150px}.report-filters button{min-height:44px}.report-panel details summary,.report-panel>summary{min-height:44px;display:flex;align-items:center}.report-panel summary:focus-visible{outline:3px solid #dc773b;outline-offset:2px}.report-table button{min-height:44px}.reason-row{min-height:64px}.metric-card,.forecast-grid article{min-width:0;overflow-wrap:anywhere}.metric-card .stat-label{min-width:0}.metric-card{box-shadow:0 1px 3px #142b4006}.metric-card:focus-visible,.metric-card:active{border-color:#dc773b;background:#fff6ef}.metric-open{display:block}.report-drill-search{max-width:none}.table-cell-value{min-width:0}.report-empty-cell{white-space:normal}.traveler-button{min-height:48px!important}
@media(max-width:1100px) and (min-width:701px){.sidebar{width:186px;align-items:stretch;padding:20px 12px}.brand{padding-bottom:25px}.brand-logo{width:64px;height:64px}.side-label{display:block;font-size:9px}.sidebar nav{width:100%}.sidebar .nav-item,.sidebar .nav-item.active,.sidebar .nav-item:not(.active){width:auto;font-size:13px;padding:0 10px;justify-content:flex-start}.sidebar .nav-count{position:static;margin-left:auto;font-size:10px}.sidebar-note>span:last-child{display:block}.main-content{margin-left:186px;padding:0 20px 30px}.queue-row{grid-template-columns:1fr 1fr}.queue-heading{display:none}.queue-row .row-actions{grid-column:1/-1}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.station-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
 body{min-width:0}.sidebar{inset:auto 0 0;width:100%;height:auto;min-height:66px;padding:6px 8px max(6px,env(safe-area-inset-bottom));background:#142b40;align-items:stretch;border-top:1px solid #27465e;box-shadow:0 -3px 15px #142b4020;z-index:20}.sidebar .brand,.sidebar .side-label,.sidebar-spacer,.sidebar-note,.side-footer{display:none}.sidebar nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:100%}.sidebar .nav-item,.sidebar .nav-item.active,.sidebar .nav-item:not(.active){font-size:12px;width:auto;height:auto;min-height:52px;padding:6px 4px;margin:0;display:flex;flex-direction:column;justify-content:center;gap:3px;text-align:center;position:relative}.sidebar .nav-icon{font-size:18px;line-height:20px;width:auto}.sidebar .nav-count{position:absolute;top:3px;right:9px;margin:0;font-size:9px;padding:2px 5px}.main-content{margin-left:0;width:100%;padding:0 16px calc(94px + env(safe-area-inset-bottom));max-width:none}.topbar{height:auto;min-height:66px;padding:10px 0;align-items:center}.top-actions{flex-wrap:nowrap}.crumb{font-size:11px;max-width:46%}.today,.avatar{display:none}.top-actions #qr-help-open{padding:9px;font-size:12px}.page-heading{gap:12px;align-items:flex-start;padding:22px 0 18px}.page-heading>div{min-width:0}.page-heading h1{font-size:24px}.subheading{font-size:13px;line-height:1.5;max-width:none}.page-heading .primary-button{flex:none;min-height:48px;padding:10px;font-size:13px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-label{font-size:12px}.stat-foot{font-size:11px;line-height:1.5}.stat-card{padding:14px;min-width:0}.section-heading{display:block}.section-heading>div:first-child{flex-wrap:wrap}.board-tools{width:100%;justify-content:flex-start;margin-top:12px;flex-wrap:wrap}.search-box{width:auto;flex:1 1 180px}.filter-button{height:44px;font-size:12px}.queue-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;padding:16px}.queue-row strong{font-size:14px}.queue-row small{font-size:12px}.queue-row .row-actions{grid-column:1/-1;justify-content:stretch}.queue-row .row-actions button{min-height:48px}.queue-heading{display:none}.station-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.station-tile{min-height:112px}.station-tile span{font-size:14px}.station-tile small{font-size:12px;line-height:1.5}.station-identity{padding:14px;gap:12px}.station-identity label{flex:1 1 100%}.station-identity span{font-size:12px;line-height:1.5}.insights-card{padding:16px;grid-template-columns:1fr}.bar-row{grid-template-columns:90px minmax(0,1fr) 50px}.bar-label,.bar-hours{font-size:10px}.insight-callout{padding-left:0}.insight-callout strong,.insight-callout p{font-size:12px}.job-dialog,.detail-dialog,.report-drilldown{position:fixed;inset:0;margin:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0;padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));overflow-y:auto;overflow-x:visible}.dialog-head{position:sticky;top:calc(-1 * max(16px,env(safe-area-inset-top)));background:#fff;padding:10px 0;z-index:4;border-bottom:1px solid #edf1f3}.dialog-head h2{font-size:21px}.dialog-head p{font-size:13px}.dialog-intro{font-size:13px;line-height:1.6}.form-row{grid-template-columns:1fr}.field-label{margin:16px 0}.route-fields label{font-size:14px}.detail-summary{grid-template-columns:1fr 1fr;gap:14px;padding:14px}.detail-summary small{font-size:12px}.detail-summary strong{font-size:14px}.detail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.detail-actions button{font-size:13px;padding:12px 8px;width:100%}.detail-dialog p{font-size:13px}.detail-dialog h3{font-size:16px}.photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-gallery img{height:130px}.photo-gallery strong{font-size:12px}.photo-gallery time,.photo-gallery small{font-size:11px}.photo-library-heading button{width:100%}.visit-heading{display:none}.station-visit summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:14px;gap:10px;font-size:13px}.visit-station{font-size:14px;grid-column:1/-1}.visit-station small{font-size:12px}.station-visit summary time{font-size:12px}.station-visit summary time::before{display:block;font-size:10px;font-weight:600;color:#7b8f9d;margin-bottom:4px}.station-visit summary time:first-of-type::before{content:'Time in'}.station-visit summary time:last-of-type::before{content:'Time out'}.visit-duration{grid-column:1/-1;font-size:13px;border-top:1px solid #e6ecef;padding-top:8px}.visit-duration::before{content:'Elapsed';font-weight:400;color:#758a98}.visit-events li>div{flex-direction:column}.visit-events li>div,.visit-events time,.visit-events small,.visit-events p{font-size:12px}.visit-breakdown{font-size:12px;gap:14px}.toast{bottom:calc(84px + env(safe-area-inset-bottom));width:max-content}.dialog-actions{gap:10px}.dialog-actions button{flex:1;min-height:48px;font-size:14px}.report-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric-card .stat-label{font-size:12px;line-height:1.5}.metric-card .stat-value{font-size:27px}.metric-foot,.metric-comparison,.metric-open{font-size:11px}.report-panel{padding:16px}.report-panel h2{font-size:18px;line-height:1.4}.report-note{font-size:13px}.report-filters{padding:14px;gap:14px}.report-filters label{flex:1 1 100%;font-size:13px}.report-filters button{width:100%;min-height:48px}.forecast-grid{grid-template-columns:1fr}.forecast-grid small,.forecast-grid span{font-size:13px}.report-panel li,.report-panel dd,.report-panel summary{font-size:13px}.reason-grid{grid-template-columns:1fr}.reason-row{font-size:13px}.reason-row small{font-size:12px}.report-table-wrap{overflow:visible}.report-table,.report-table tbody{display:block;width:100%;white-space:normal}.report-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.report-table tr{display:block;margin:12px 0;padding:8px 12px;border:1px solid #dce5eb;border-radius:8px;background:#f9fbfc}.report-table tbody th,.report-table tbody td{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:12px;align-items:center;border-bottom:1px solid #e8eef2;padding:9px 0;text-align:right;min-height:40px;white-space:normal;font-size:13px;line-height:1.5}.report-table tbody th::before,.report-table tbody td::before{content:attr(data-label);text-align:left;font-weight:400;color:#6a8192;font-size:12px}.report-table tbody td[colspan]{display:block;text-align:left}.report-table tr>:last-child{border-bottom:0}.report-table button{width:100%;min-width:0;overflow-wrap:anywhere;white-space:normal;font-size:13px}.report-legend{font-size:12px;gap:10px}.report-drill-search{font-size:13px}.report-chart svg text{font-size:11px}.report-callout{font-size:13px}.report-table td:empty::after{content:'—'}
}
@media(max-width:360px){.main-content{padding-left:12px;padding-right:12px}.report-metrics{grid-template-columns:1fr}.detail-summary{grid-template-columns:1fr}.photo-gallery{grid-template-columns:1fr}.page-heading{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

#report-filter-panel>summary{display:none}
@media(max-width:700px){
  .station-identity{padding:12px;gap:8px;margin-bottom:12px;align-items:flex-end}
  .station-identity label{flex:1 1 0;min-width:0;font-size:12px}
  .station-identity select,.station-identity input{font-size:16px;padding:8px;width:100%;min-height:44px}
  .station-identity span{font-size:11px;line-height:1.3}
  #report-filter-panel{margin-top:10px}
  #report-filter-panel>summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:12px 14px;background:#fff;border:1px solid #dfe6eb;border-radius:8px;color:#29465b;font-size:13px;font-weight:700;cursor:pointer;list-style:none}
  #report-filter-panel>summary::-webkit-details-marker{display:none}
  #report-filter-panel>summary::after{content:'⌄';font-size:18px;line-height:1}
  #report-filter-panel[open]>summary{border-radius:8px 8px 0 0}
  #report-filter-panel[open]>summary::after{transform:rotate(180deg)}
  #report-filter-panel .report-filters{border-radius:0 0 8px 8px;border-top:0;margin-top:0}
}
/* Keep the data view visible on both shop desktops and station phones. */
.workspace-switch{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:11px;font-weight:600;color:#526475}
.workspace-switch button{width:52px;height:32px;min-height:32px;flex:none;border:0;border-radius:20px;background:#b8c4cd;padding:3px;cursor:pointer;transition:background .2s}
.workspace-switch button span{display:block;width:26px;height:26px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .2s}
.workspace-switch button[aria-checked="true"]{background:#e77535}
.workspace-switch button[aria-checked="true"] span{transform:translateX(20px)}
.workspace-switch button:focus-visible{outline:3px solid #2f79aa;outline-offset:2px}
.sample-workspace .topbar{box-shadow:inset 0 -3px #e77535}
.sample-workspace .live-dot{background:#e77535;box-shadow:0 0 0 4px #564233}
@media(max-width:700px){.topbar .crumb{display:none}.topbar .top-actions{width:100%;justify-content:space-between}.workspace-switch{font-size:11px;gap:7px}.top-actions .avatar{display:none}}
@media(max-width:420px){.topbar .top-actions{flex-wrap:wrap}.workspace-switch{order:2;width:100%;justify-content:center}.top-actions #qr-help-open{display:inline-flex}.top-actions .avatar{display:grid}}
