/* Phone-only HomeBase. Desktop keeps its existing layout and saved tile order. */
.hb-mobile-nav,.hb-mobile-toolbar,.hb-mobile-inbox-tools,.hb-mobile-tools,.hb-mobile-key-toggle,.hb-mobile-van-peek,.hb-mobile-van-toggle,.hb-mobile-ppi-toggle,.hb-mobile-fleet-overview,.hb-mobile-van-header-state { display:none; }
@media (max-width:760px) {
  body.hb-mobile-office { height:100dvh; overflow:hidden; }
  body.hb-mobile-office .app-shell { height:100%; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
  body.hb-mobile-office .topbar { position:relative; flex:0 0 64px; height:64px; min-height:64px; padding:8px 14px; gap:10px; }
  body.hb-mobile-office .topbar .portal-links { display:none; }
  body.hb-mobile-office .topbar .brand { margin-right:auto; min-width:0; }
  body.hb-mobile-office .brand-mark,body.hb-mobile-office .brand-mark img { width:38px; height:38px; }
  body.hb-mobile-office .brand-copy strong { font-size:13px; }
  body.hb-mobile-office .topbar .avatar-button { min-width:44px; min-height:44px; }
  body.hb-mobile-office .topbar .avatar-button b { display:none; }
  body.hb-mobile-office .toast { bottom:calc(88px + env(safe-area-inset-bottom)); max-width:calc(100vw - 24px); }
  #homebaseView[data-mobile-ready] { display:flex; flex-direction:column; flex:1 1 0; min-height:0; overflow:hidden; padding-bottom:0; }
  #homebaseView[data-mobile-ready] .app-layout { display:block; flex:1 1 0; min-height:0; min-width:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior-y:contain; -webkit-overflow-scrolling:touch; }
  #homebaseView[data-mobile-ready] .app-sidebar { display:none; }
  #homebaseView[data-mobile-ready] .dashboard-content { display:flex; flex-direction:column; gap:14px; padding:18px 12px 28px; min-width:0; }
  #homebaseView[data-mobile-ready] .command-dashboard-tiles,#homebaseView[data-mobile-ready] .command-grid { display:contents; }
  #homebaseView[data-mobile-ready] [data-mobile-area] { display:none !important; }
  #homebaseView[data-mobile-view="today"] [data-mobile-area="today"]:not([hidden]),
  #homebaseView[data-mobile-view="vans"] [data-mobile-area="vans"]:not([hidden]),
  #homebaseView[data-mobile-view="ppi"] [data-mobile-area="ppi"]:not([hidden]),
  #homebaseView[data-mobile-view="inbox"] [data-mobile-area="inbox"]:not([hidden]),
  #homebaseView[data-mobile-view="more"] [data-mobile-area="more"]:not([hidden]) { display:block !important; }
  #homebaseView[data-mobile-ready] .hb-mobile-toolbar { display:grid; order:-10; gap:14px; }
  #homebaseView[data-mobile-ready] .hb-mobile-toolbar span { font-size:11px; font-weight:850; color:#33724d; letter-spacing:.14em; }
  #homebaseView[data-mobile-ready] .hb-mobile-toolbar h2 { margin:4px 0; font-size:30px; letter-spacing:-.035em; line-height:1.12; color:#102c1f; outline:none; }
  #homebaseView[data-mobile-ready] .hb-mobile-toolbar p { margin:0; font-size:14px; color:#5e7265; line-height:1.4; }
  #homebaseView[data-mobile-ready] .hb-mobile-quick-actions { display:grid; grid-template-columns:1.4fr 1fr; gap:8px; }
  #homebaseView[data-mobile-ready] .hb-mobile-quick-actions button { min-height:46px; border-radius:11px; border:1px solid #adc5b5; background:#fff; color:#145b33; font-size:15px; font-weight:800; }
  #homebaseView[data-mobile-ready] .hb-mobile-quick-actions button:first-child { background:#117a3e; border-color:#117a3e; color:#fff; }
  #homebaseView[data-mobile-ready] .command-heading { display:none; }
  #homebaseView[data-mobile-view="more"] .command-heading { display:block; order:1; padding:14px; margin:0; border-radius:14px; }
  #homebaseView[data-mobile-view="more"] .command-heading > div:first-child { display:none; }
  #homebaseView[data-mobile-view="more"] .command-heading .dashboard-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
  #homebaseView[data-mobile-view="more"] .command-search,#homebaseView[data-mobile-view="more"] .command-new-request { display:none; }
  #homebaseView[data-mobile-ready] .command-layout-toolbar,#homebaseView[data-mobile-ready] .command-size-controls,#homebaseView[data-mobile-ready] .command-tile-size-controls,#homebaseView[data-mobile-ready] .command-tile-size,#homebaseView[data-mobile-ready] .command-layout-handle { display:none !important; }
  #homebaseView[data-mobile-ready] .command-scroll-region { max-height:none !important; height:auto !important; overflow:visible; }
  #homebaseView[data-mobile-view="today"] .command-summary { display:grid !important; order:0; grid-template-columns:1fr 1fr; gap:8px; margin:0; }
  #homebaseView[data-mobile-ready] .command-summary > button { min-height:84px; padding:12px; display:flex; align-items:center; gap:9px; border-radius:13px; }
  #homebaseView[data-mobile-ready] .command-summary .fleet { display:none; }
  #homebaseView[data-mobile-ready] .command-summary > button.today { grid-column:1/-1; min-height:66px; order:2; }
  #homebaseView[data-mobile-ready] .command-summary strong { font-size:26px; }
  #homebaseView[data-mobile-ready] .command-summary p { font-size:13px; line-height:1.25; margin:3px 0 0; }
  #homebaseView[data-mobile-ready] .command-summary small { display:none; }
  #homebaseView[data-mobile-ready] .command-summary-icon { width:30px; height:30px; flex-basis:30px; font-size:18px; }
  #homebaseView[data-mobile-ready] .command-panel { min-width:0; margin:0; border-radius:14px; }
  #homebaseView[data-mobile-ready] .command-panel-heading { padding:15px; gap:10px; flex-wrap:wrap; }
  #homebaseView[data-mobile-ready] .command-panel-heading > div { min-width:0; }
  #homebaseView[data-mobile-ready] .command-panel-heading h2 { font-size:20px; line-height:1.25; }
  #homebaseView[data-mobile-ready] .command-panel-heading > div > p { font-size:13px; margin:5px 0 0; line-height:1.4; }
  #homebaseView[data-mobile-ready] .command-panel-heading > div > span { font-size:10px; }
  #homebaseView[data-mobile-ready] .command-panel-heading > button { min-height:44px; padding:9px 12px; font-size:13px; }
  #homebaseView[data-mobile-ready] .command-field-updates { order:1; }
  #homebaseView[data-mobile-ready] .command-today-panel { order:2; }
  #homebaseView[data-mobile-ready] .command-next-stops { order:1; }
  #homebaseView[data-mobile-ready] .command-team-panel { order:2; }
  #homebaseView[data-mobile-ready] .ppi-upload-health-panel { order:1; }
  #homebaseView[data-mobile-ready] .command-completed-panel { order:2; }
  #homebaseView[data-mobile-ready] .command-priority-panel { order:1; }
  #homebaseView[data-mobile-ready] .hb-mobile-inbox-tools { order:0; }
  #homebaseView[data-mobile-ready] .command-tools { order:0; }
  #homebaseView[data-mobile-ready] .hb-mobile-tools { order:2; }
  #homebaseView[data-mobile-ready] .command-battery-overview { order:3; }
  #homebaseView[data-mobile-ready] .command-tech-access { order:4; }
  #homebaseView[data-mobile-ready] .command-alert-dock { position:fixed; bottom:calc(82px + env(safe-area-inset-bottom)); left:12px; right:12px; width:auto; max-width:none; z-index:45; order:9; }
  #homebaseView[data-mobile-ready] .command-alert-dock-body { max-height:50dvh; overflow:auto; }
  #homebaseView[data-mobile-ready] .command-alert-dock > summary { min-height:44px; }
  #homebaseView[data-mobile-ready] .field-van-grid,#homebaseView[data-mobile-ready] .command-live-van-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
  #homebaseView[data-mobile-ready] .field-van-card { padding:14px; }
  #homebaseView[data-mobile-ready] .field-van-card h3 { font-size:19px; }
  #homebaseView[data-mobile-ready] .field-van-card p,#homebaseView[data-mobile-ready] .field-van-state { font-size:14px; line-height:1.4; }
  #homebaseView[data-mobile-ready] .field-van-buttons { display:flex; flex-wrap:wrap; gap:8px; }
  #homebaseView[data-mobile-ready] .field-van-buttons button { min-height:44px; flex:1; }
  #homebaseView[data-mobile-ready] .command-live-van-card { min-width:0; padding:13px; }
  #homebaseView[data-mobile-ready] .command-live-van-card > header { gap:7px; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-peek { display:grid; gap:4px; margin:12px 0 8px; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-peek b { font-size:16px; line-height:1.3; overflow-wrap:anywhere; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-peek span { font-size:14px; color:#41624e; font-weight:700; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-toggle,#homebaseView[data-mobile-ready] .hb-mobile-ppi-toggle { display:block; width:100%; min-height:44px; padding:10px 12px; border-radius:9px; background:#edf7f0; color:#146136; border:1px solid #b3d2bd; font-size:14px; font-weight:800; margin:8px 0; text-align:left; }
  #homebaseView[data-mobile-ready] .command-live-van-card:not([data-mobile-van-expanded]) > :not(header):not(.hb-mobile-van-peek):not(.hb-mobile-van-toggle):not(.command-van-fuel-panel):not(.command-van-gps-warning):not([data-command-van-alerts]) { display:none !important; }
  #homebaseView[data-mobile-ready] .command-van-fuel { min-height:58px; padding:10px; }
  #homebaseView[data-mobile-ready] .command-van-fuel strong { font-size:24px; }
  #homebaseView[data-mobile-ready] .command-van-fuel-source { font-size:11px; white-space:normal; }
  #homebaseView[data-mobile-ready] .command-today-row,#homebaseView[data-mobile-ready] .command-priority-row { padding:14px; gap:10px; }
  #homebaseView[data-mobile-ready] .command-today-copy,#homebaseView[data-mobile-ready] .command-priority-copy { min-width:0; }
  #homebaseView[data-mobile-ready] .command-today-copy b,#homebaseView[data-mobile-ready] .command-priority-copy b { font-size:16px; line-height:1.35; white-space:normal; }
  #homebaseView[data-mobile-ready] .command-today-copy p,#homebaseView[data-mobile-ready] .command-priority-copy p { font-size:13px; line-height:1.4; white-space:normal; }
  #homebaseView[data-mobile-ready] .command-day-tools { display:flex; flex-wrap:wrap; gap:7px; width:100%; }
  #homebaseView[data-mobile-ready] .command-day-tools > button { min-height:44px; }
  #homebaseView[data-mobile-ready] .command-day-tools label { min-width:0; flex:1 1 130px; }
  #homebaseView[data-mobile-ready] input:not([type=checkbox]):not([type=radio]):not([type=file]),#homebaseView[data-mobile-ready] select,#homebaseView[data-mobile-ready] textarea { font-size:16px; min-width:0; max-width:100%; }
  #homebaseView[data-mobile-ready] .ppi-upload-health-title { align-items:flex-start; gap:10px; }
  #homebaseView[data-mobile-ready] .ppi-upload-health-title > b { min-width:0; font-size:17px; line-height:1.3; overflow-wrap:anywhere; }
  #homebaseView[data-mobile-ready] .ppi-upload-health-title button { min-height:44px; }
  #homebaseView[data-mobile-ready] .ppi-active-meta { font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
  #homebaseView[data-mobile-ready] .ppi-upload-health-job:not([data-mobile-ppi-expanded]) .ppi-active-actions,#homebaseView[data-mobile-ready] .ppi-upload-health-job:not([data-mobile-ppi-expanded]) .ppi-active-scan { display:none; }
  #homebaseView[data-mobile-ready] .ppi-active-actions { flex-wrap:wrap; }
  #homebaseView[data-mobile-ready] .ppi-active-actions button { min-height:44px; font-size:13px; }
  #homebaseView[data-mobile-ready] .command-scan-tools,#homebaseView[data-mobile-ready] .command-scan-status { min-width:0; max-width:100%; overflow-wrap:anywhere; word-break:break-word; }
  #homebaseView[data-mobile-ready] .command-scan-tools a,#homebaseView[data-mobile-ready] .command-scan-tools button { min-height:44px; display:inline-flex; align-items:center; padding:8px; }
  #homebaseView[data-mobile-ready] .hb-mobile-key-toggle { display:block; margin:0 14px 14px; min-height:44px; padding:9px 12px; border:1px solid #b5cbbb; border-radius:9px; background:#f5faf6; color:#265d3c; font-weight:750; font-size:14px; }
  #homebaseView[data-mobile-ready] .ppi-upload-health-key { display:none; }
  #homebaseView[data-mobile-ready] [data-mobile-key-open] .ppi-upload-health-key { display:block; }
  #homebaseView[data-mobile-ready] .command-tools-grid { grid-template-columns:minmax(0,1fr); gap:8px; }
  #homebaseView[data-mobile-ready] .command-tool { min-height:64px; padding:12px; display:grid; grid-template-columns:32px minmax(0,1fr) auto; gap:3px 10px; align-items:center; border-radius:11px; }
  #homebaseView[data-mobile-ready] .command-tool .command-tool-icon { grid-row:1/3; width:30px; height:30px; }
  #homebaseView[data-mobile-ready] .command-tool b { font-size:15px; }
  #homebaseView[data-mobile-ready] .command-tool small { grid-column:2; font-size:12px; }
  #homebaseView[data-mobile-ready] .command-tool-arrow { grid-column:3; grid-row:1/3; }
  #homebaseView[data-mobile-ready] .hb-mobile-tools,#homebaseView[data-mobile-ready] .hb-mobile-inbox-tools { padding:14px; border:1px solid #d1e0d6; border-radius:14px; background:#fff; }
  #homebaseView[data-mobile-ready] .hb-mobile-tools h2 { font-size:19px; margin:0 0 12px; }
  #homebaseView[data-mobile-ready] .hb-mobile-tools > div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; }
  #homebaseView[data-mobile-ready] .hb-mobile-tools a,#homebaseView[data-mobile-ready] .hb-mobile-tools button,#homebaseView[data-mobile-ready] .hb-mobile-inbox-tools button { display:flex; align-items:center; justify-content:flex-start; min-height:48px; border:1px solid #c6d9cd; border-radius:9px; color:#145e34; background:#f8fbf9; padding:10px; font-size:14px; font-weight:750; text-decoration:none; text-align:left; }
  #homebaseView[data-mobile-ready] .hb-mobile-inbox-tools button { width:100%; margin-bottom:8px; }
  #homebaseView[data-mobile-ready] .hb-mobile-inbox-tools button:last-child { margin-bottom:0; }
  #homebaseView[data-mobile-ready] .hb-mobile-nav { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); position:relative; inset:auto; flex:0 0 auto; height:calc(64px + min(24px, env(safe-area-inset-bottom, 0px))); max-height:calc(64px + min(24px, env(safe-area-inset-bottom, 0px))); padding:4px 8px calc(4px + min(24px, env(safe-area-inset-bottom, 0px))); background:#fff; border-top:1px solid #ccddd2; box-shadow:0 -4px 20px #0b2b1610; z-index:50; }
  #homebaseView[data-mobile-ready] .hb-mobile-nav button { position:relative; min-width:0; min-height:52px; border:0; background:transparent; border-radius:11px; color:#667b6e; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:4px; font-size:11px; font-weight:800; padding:6px 2px; }
  #homebaseView[data-mobile-ready] .hb-mobile-nav button > span { position:relative; display:block; height:23px; }
  #homebaseView[data-mobile-ready] .hb-mobile-nav svg { width:23px; height:23px; }
  #homebaseView[data-mobile-ready] .hb-mobile-nav [aria-current=page] { color:#086d34; background:#e6f4eb; }
  #homebaseView[data-mobile-ready] .hb-mobile-nav b { position:absolute; top:-5px; left:15px; padding:2px 5px; min-width:17px; border-radius:10px; background:#b82b32; color:#fff; font-size:10px; line-height:1.2; }
  #homebaseView[data-mobile-ready] :is(button,a,summary):focus-visible { outline:3px solid #23864a; outline-offset:2px; }
  #homebaseView[data-mobile-ready] .module-content,#homebaseView[data-mobile-ready] .homebase-notifications-content { padding:18px 12px 30px; }
  #homebaseView[data-mobile-ready] dialog { max-width:calc(100vw - 20px); max-height:calc(100dvh - 24px); overflow:auto; }
  @media (prefers-reduced-motion:reduce) { #homebaseView[data-mobile-ready] * { scroll-behavior:auto; } }
}

@media (max-width:760px) {
  #homebaseView[data-mobile-ready] .command-row-actions :is(button,a),#homebaseView[data-mobile-ready] .command-action-tray :is(button,a),#homebaseView[data-mobile-ready] .command-van-appointment-detail > summary { min-height:44px; }
  #homebaseView[data-mobile-ready] .command-van-appointment-detail > summary { padding-top:10px; padding-bottom:10px; }
  #homebaseView[data-mobile-ready] .command-van-appointment-copy { min-width:0; }
  #homebaseView[data-mobile-ready] .command-van-appointment-copy b { white-space:normal; font-size:15px; line-height:1.35; }
}

@media (max-width:760px) {
  #homebaseView[data-mobile-ready] .command-scan-status.is-secured { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  #homebaseView[data-mobile-ready] .field-van-activity > summary,#homebaseView[data-mobile-ready] .field-van-other > summary,#homebaseView[data-mobile-ready] .field-finished > summary { min-height:44px; padding-top:12px; }
}

/* The collapsed Vans view is an operational summary; full controls open below it. */
@media (max-width:760px) {
  #homebaseView[data-mobile-ready] .command-next-stops { display:flex; flex-direction:column; }
  #homebaseView[data-mobile-ready] .command-next-stops > .command-panel-heading { display:none; }
  #homebaseView[data-mobile-ready] .command-next-stops-list { order:-2; padding:10px; }
  #homebaseView[data-mobile-ready] .command-next-stops > .command-dispatch-composer { order:-1; margin:0 10px 12px; }
  #homebaseView[data-mobile-ready] .hb-mobile-fleet-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; margin:0 0 10px; padding:10px 5px; border:1px solid #d1e3d6; border-radius:11px; background:#fff; }
  #homebaseView[data-mobile-ready] .hb-mobile-fleet-overview span { display:flex; align-items:center; justify-content:center; gap:4px; padding:1px 3px; border-right:1px solid #d4e4d9; color:#25603d; font-size:10px; font-weight:900; white-space:nowrap; }
  #homebaseView[data-mobile-ready] .hb-mobile-fleet-overview span:nth-child(2) { color:#a85907; }
  #homebaseView[data-mobile-ready] .hb-mobile-fleet-overview span:last-child { border:0; }
  #homebaseView[data-mobile-ready] .hb-mobile-fleet-overview b { font-size:15px; }
  #homebaseView[data-mobile-ready] .command-live-van-grid { gap:9px; }
  #homebaseView[data-mobile-ready] .command-live-van-card { padding:10px 12px; background:#fff; border-width:1px; border-left:5px solid var(--van-color); border-radius:12px; }
  #homebaseView[data-mobile-ready] .command-live-van-card > header { margin:0; gap:7px; }
  #homebaseView[data-mobile-ready] .command-live-van-card > header,#homebaseView[data-mobile-ready] .hb-mobile-van-peek { cursor:pointer; }
  #homebaseView[data-mobile-ready] .command-live-van-card > header .command-live-van-icon { display:none; }
  #homebaseView[data-mobile-ready] .command-live-van-card > header strong { font-size:16px; }
  #homebaseView[data-mobile-ready] .command-live-van-card > header .command-van-at-shop,
  #homebaseView[data-mobile-ready] .command-live-van-card > header .command-van-tracking,
  #homebaseView[data-mobile-ready] .command-live-van-card > header small { display:none; }
  #homebaseView[data-mobile-ready] .command-live-van-card > header .hb-mobile-van-header-state { display:inline-flex; align-items:center; padding:4px 8px; min-height:22px; border-radius:7px; background:#e6f3e9; color:#12673c; font-size:10px; line-height:1.2; font-weight:900; }
  #homebaseView[data-mobile-ready] .command-live-van-card > header .hb-mobile-van-header-state.is-traveling,#homebaseView[data-mobile-ready] .command-live-van-card > header .hb-mobile-van-header-state.is-pending { background:#fff0dc; color:#a25900; }
  #homebaseView[data-mobile-ready] .command-live-van-card .hb-mobile-van-peek { display:grid; gap:6px; margin:8px 0 0; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-line { display:flex; align-items:center; justify-content:space-between; gap:8px; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-line { justify-content:flex-end; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-state,#homebaseView[data-mobile-ready] .hb-mobile-van-fuel { display:inline-flex; align-items:center; min-height:23px; padding:3px 8px; border-radius:7px; background:#e7f4eb; color:#14643a; font-size:11px; font-weight:900; line-height:1.2; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-state.is-traveling,#homebaseView[data-mobile-ready] .hb-mobile-van-fuel.is-caution { background:#fff0db; color:#a45700; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-fuel.is-low { background:#ffe9e9; color:#b8202a; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-fuel.is-old { border:1px dashed currentColor; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-peek .hb-mobile-van-headline { font-size:15px; line-height:1.3; overflow-wrap:anywhere; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-peek .hb-mobile-van-vehicle { font-size:12px; line-height:1.3; color:#45634e; font-weight:700; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-meta { display:flex; gap:3px 8px; flex-wrap:wrap; color:#506c59; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-peek .hb-mobile-van-meta span { font-size:11px; font-weight:650; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-meta span + span::before { content:'·'; margin-right:8px; color:#90a99a; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-live { display:grid; grid-template-columns:minmax(112px,.95fr) minmax(0,1fr); gap:8px; margin-top:2px; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-live > span { display:grid; align-content:center; gap:2px; min-width:0; padding:7px 9px; border-radius:8px; background:#eaf5ee; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-live > span:first-child small { font-size:9px; font-weight:900; letter-spacing:.06em; color:#3e7652; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-live > span:first-child strong { font-size:19px; line-height:1.1; color:#0c6c37; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-live .hb-mobile-van-progress-meta { background:#f1f5f2; font-size:11px; color:#26543a; font-weight:850; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-progress-meta small { display:block; font-size:10px; color:#61796a; font-weight:600; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-peek .hb-mobile-van-schedule,#homebaseView[data-mobile-ready] .hb-mobile-van-next { font-size:11px; color:#587060; font-weight:650; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-issue { color:#ad2d31; font-size:11px; font-weight:850; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-ppi { min-width:0; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-ppi .command-van-ppi-link { width:100%; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-toggle { margin:1px 0 0; min-height:32px; padding:4px 0; border:0; background:transparent; color:#5e7765; font-size:11px; font-weight:700; text-align:left; }
  #homebaseView[data-mobile-ready] .hb-mobile-van-toggle:focus-visible { outline:3px solid #23864a; }
  #homebaseView[data-mobile-ready] .command-live-van-card:not([data-mobile-van-expanded]) > .command-van-fuel-panel { display:none !important; }
  #homebaseView[data-mobile-ready] .command-live-van-card[data-mobile-van-expanded] > .command-van-fuel-panel { display:block; }
}
/* Request cards must override the desktop table's minimum width. */
@media (max-width:760px) {
  #homebaseView .request-queue-card,
  #homebaseView .request-queue-card .responsive-table,
  #homebaseView .request-queue-card .responsive-table table,
  #homebaseView .request-queue-card .responsive-table tbody {
    min-width:0;
    width:100%;
    max-width:100%;
  }
  #homebaseView .request-queue-card .responsive-table { overflow:visible; }
  #homebaseView .request-queue-card table,
  #homebaseView .request-queue-card tbody { display:block; }
  #homebaseView .request-queue-card thead { display:none; }
  #homebaseView .request-queue-card tr.request-queue-row {
    display:grid;
    grid-template-columns:24px minmax(0,1fr);
    gap:10px;
    min-width:0;
    width:100%;
    padding:16px;
    border-top:1px solid #dce7df;
  }
  #homebaseView .request-queue-card tr[hidden] { display:none !important; }
  #homebaseView .request-queue-card .responsive-table td {
    display:block;
    min-width:0;
    max-width:100%;
    padding:0;
    border:0;
    overflow-wrap:anywhere;
  }
  #homebaseView .request-queue-card .select-column { grid-column:1; grid-row:1; }
  #homebaseView .request-queue-card .request-vehicle-cell { grid-column:2; }
  #homebaseView .request-queue-card :is(.request-technician-cell,.request-state-cell,.request-action-cell) { grid-column:1 / -1; }
  #homebaseView .request-queue-card .request-action-cell > .request-next-action,
  #homebaseView .request-queue-card .request-row-details :is(button,a) {
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-width:0;
    max-width:100%;
    min-height:44px;
    padding:10px 12px;
    white-space:normal;
    overflow-wrap:anywhere;
    text-align:center;
    line-height:1.35;
  }
  #homebaseView .request-queue-card .request-row-details { min-width:0; }
  #homebaseView .request-queue-card .request-row-details > div { padding:10px; }
  #homebaseView .request-queue-card .request-queue-pagination {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    padding:12px;
  }
  #homebaseView .request-queue-pagination > span,
  #homebaseView .request-queue-pagination > label { grid-column:1 / -1; width:auto; margin:0; }
  #homebaseView .request-queue-pagination > label { justify-content:space-between; }
  #homebaseView .request-queue-pagination button { min-width:0; min-height:44px; white-space:normal; }
}
