/* Team Member big-button home (Oct 10 2026, Terry-approved mockup). Min 64px targets; light + dark. */
.mh { --mblue: #1d5fd1; --mgreen: #15803d; --mgreen-bg: #eaf7ef; display: flex; flex-direction: column; min-height: 100%; }
:root[data-theme="dark"] .mh { --mblue: #78a9ff; --mgreen: #4fcf86; --mgreen-bg: #10291c; }
body.mh-on .appbar { display: none; }
body.mh-home #livebar, body.mh-home #syncbar { display: none !important; }
body.mh-home.has-live #view { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px); }
.mh-top { padding: calc(16px + env(safe-area-inset-top)) 20px 4px; display: flex; align-items: center; gap: 12px; }
.mh-top h1, .mh-h h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.mh-top p { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); }
.mh-avl { margin-left: auto; width: 64px; height: 64px; display: grid; place-items: center; text-decoration: none; margin-right: -8px; flex: none; }
.mh-av { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); display: grid; place-items: center; font-weight: 800; color: var(--navy-900); text-decoration: none; flex: none; }
.mh-av.lg { width: 84px; height: 84px; font-size: 28px; margin: 0 auto 8px; }
.mh-main { flex: 1; padding: 8px 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.mh.act .mh-main { gap: 10px; }
.mh-alert { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; border-radius: 16px; border: 2px solid; font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; text-align: left; width: 100%; cursor: pointer; }
.mh-alert svg { width: 28px; height: 28px; flex: none; } .mh-alert small { display: block; font-weight: 500; font-size: 14px; color: var(--ink-2); } .mh-alert .go { margin-left: auto; font-size: 26px; }
.mh-alert.red { background: var(--red-bg); border-color: var(--red-line); color: var(--red); } .mh-alert.amber { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber-ink); }
.mh-dep { background: var(--surface); border: 3px solid var(--mblue); border-radius: 20px; overflow: hidden; flex: none; }
.mh-dep .hd { display: flex; gap: 14px; padding: 12px 14px; align-items: center; }
.mh-ph { width: 96px; height: 64px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); overflow: hidden; } .mh-ph svg { width: 34px; height: 34px; }
.mh-dep .k { font-size: 13px; font-weight: 800; color: var(--mblue); text-transform: uppercase; letter-spacing: .06em; }
.mh-dep b { display: block; font-size: 26px; font-weight: 800; line-height: 1.15; } .mh-dep .hd span { font-size: 15px; color: var(--ink-2); }
.mh-live { display: flex; align-items: center; gap: 10px; margin: 0 14px; padding: 4px 4px 4px 12px; border-radius: 12px; font-weight: 700; font-size: 16px; min-height: 52px; }
.mh-live.on { background: var(--mgreen-bg); color: var(--mgreen); } .mh-live.off, .mh-live.other { background: var(--surface-2); color: var(--ink-2); }
.mh-dot { width: 12px; height: 12px; border-radius: 50%; background: currentColor; flex: none; } .mh-live.on .mh-dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--mgreen) 25%, transparent); }
.mh-lbtn { margin-left: auto; min-height: 44px; min-width: 88px; border-radius: 10px; border: 2px solid var(--border); background: var(--surface); color: var(--navy-900); font: inherit; font-weight: 800; font-size: 16px; padding: 0 14px; cursor: pointer; }
.mh-dep .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 14px 14px; }
.mh-btn { min-height: 64px; border-radius: 16px; font: inherit; font-size: 19px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; border: 2px solid var(--border); background: var(--surface-2); color: var(--navy-900); text-decoration: none; cursor: pointer; }
.mh-btn svg { width: 24px; height: 24px; } .mh-btn.blue { background: var(--blue, #1d5fd1); border-color: var(--blue, #1d5fd1); color: #fff; }
:root[data-theme="dark"] .mh-btn.blue, :root[data-theme="dark"] .mh-scan { background: #2d5ea8; border-color: #2d5ea8; }
.mh-btn.wide { width: 100%; margin-top: 14px; } .mh-btn.danger { color: var(--red); border-color: var(--red-line); background: var(--red-bg); }
.mh-scan { min-height: 150px; border-radius: 24px; background: #0b1f3a; color: #fff; display: flex; align-items: center; gap: 18px; padding: 0 24px; border: 0; box-shadow: 0 6px 20px rgba(11,31,58,.25); font: inherit; text-align: left; width: 100%; cursor: pointer; flex: none; }
.mh-scan svg { width: 60px; height: 60px; flex: none; } .mh-scan b { font-size: 30px; font-weight: 800; display: block; } .mh-scan span { font-size: 16px; opacity: .85; }
.mh-scan.sm { min-height: 84px; } .mh-scan.sm b { font-size: 24px; } .mh-scan.sm svg { width: 44px; height: 44px; }
.mh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Tiles: solid colours, white icon + label (all >= 4.5:1 with white). */
.mh-tile { position: relative; min-height: 140px; border-radius: 20px; border: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; font: inherit; font-size: 19px; font-weight: 800; padding: 12px; color: #fff; text-decoration: none; cursor: pointer; box-shadow: 0 3px 10px rgba(11,31,58,.18); }
.mh-tile svg { width: 44px; height: 44px; color: #fff; stroke-width: 2; }
.mh-tile:nth-child(1) { background: #0F766E; } .mh-tile:nth-child(2) { background: #4338CA; } .mh-tile:nth-child(3) { background: #B45309; } .mh-tile:nth-child(4), .mh-tile.red { background: #B91C1C; }
.mh-tile .bd { position: absolute; top: 10px; right: 10px; min-width: 32px; height: 32px; border-radius: 16px; background: #fff; color: #92400e; font-size: 17px; display: grid; place-items: center; padding: 0 8px; }
:root[data-theme="dark"] .mh-tile { box-shadow: none; outline: 1px solid rgba(255,255,255,.08); }
.mh.act .mh-tile { min-height: 84px; flex-direction: row; font-size: 17px; gap: 8px; text-align: left; padding-right: 24px; } .mh.act .mh-tile svg { width: 32px; height: 32px; flex: none; } .mh.act .mh-tile br { display: none; }
.mh.act .mh-tile .bd { top: 6px; right: 6px; min-width: 26px; height: 26px; font-size: 14px; }
.mh-car { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; flex: none; }
.mh-car::-webkit-scrollbar { display: none; } .mh-car .mh-dep { flex: 0 0 100%; scroll-snap-align: center; }
.mh-dots { display: flex; justify-content: center; gap: 8px; margin-top: -4px; } .mh-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong, #c7cfda); } .mh-dots i.on { background: var(--mblue); width: 22px; border-radius: 5px; }
/* Sub pages */
.mh-page { padding: calc(10px + env(safe-area-inset-top)) 16px 20px; }
.mh-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; } .mh-back { width: 56px; height: 56px; display: grid; place-items: center; font-size: 40px; line-height: 1; text-decoration: none; color: var(--navy-900); margin-left: -10px; }
.mh-note { font-size: 16px; color: var(--ink-2); margin: 0 0 12px; }
.mh-lbl { display: block; font-size: 16px; font-weight: 700; margin: 12px 0 6px; }
.mh-in { width: 100%; min-height: 64px; font-size: 24px; font-weight: 700; padding: 0 16px; border-radius: 16px; border: 2px solid var(--border-strong, #d3dae4); background: var(--surface); color: var(--navy-900); box-sizing: border-box; }
.mh-in:focus { outline: 3px solid var(--mblue); border-color: transparent; }
.mh-rows { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.mh-row { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 10px 14px; border-radius: 16px; border: 2px solid var(--border); background: var(--surface); color: var(--navy-900); font: inherit; text-align: left; width: 100%; cursor: pointer; }
.mh-row b { display: block; font-size: 20px; font-weight: 800; } .mh-row span { font-size: 15px; color: var(--ink-2); } .mh-row .go { margin-left: auto; font-size: 18px; font-weight: 800; color: var(--mblue); }
.mh-rt { width: 64px; height: 40px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); overflow: hidden; } .mh-rt svg { width: 24px; height: 24px; }
.mh-empty { padding: 24px; text-align: center; font-size: 17px; color: var(--ink-2); }
.mh-prof { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 0 8px; text-align: center; } .mh-prof b { font-size: 22px; } .mh-prof span { color: var(--ink-2); font-size: 16px; } .mh-prof .role { font-weight: 700; color: var(--mblue); }
@media (max-width: 760px) {
  body.mh-member .tabbar { grid-template-columns: repeat(3, 1fr); height: calc(76px + env(safe-area-inset-bottom)); padding-top: 4px; }
  body.mh-member .tabbar a { font-size: 15px; font-weight: 700; gap: 4px; min-height: 64px; justify-content: center; } body.mh-member .tabbar a svg { width: 30px; height: 30px; }
  body.mh-member .tabbar a.on svg { color: var(--mblue, #1d5fd1); }
  body.mh-member .scroller { padding-bottom: calc(76px + env(safe-area-inset-bottom) + 8px); }
}
@media (max-height: 800px) { .mh-scan { min-height: 120px; } .mh-tile { min-height: 116px; } .mh-top { padding-top: calc(10px + env(safe-area-inset-top, 0px)); } }
@media (max-height: 800px) { .mh.act .mh-tile { min-height: 72px; } .mh.act .mh-scan.sm { min-height: 72px; } .mh.act .mh-main { gap: 8px; } .mh-dep .hd { padding: 10px 12px; } .mh-dep .acts { padding: 8px 12px 12px; } }
.mh:not(.act) .mh-grid { flex: 1; grid-auto-rows: 1fr; max-height: 400px; }
.mh-scan.sm span { display: none; }
@media (max-width: 380px) {
  .mh-ph { width: 72px; height: 52px; } .mh-dep b { font-size: 22px; } .mh-dep .k { font-size: 12px; } .mh-dep .hd span { font-size: 14px; }
  .mh-scan.sm b { font-size: 22px; } .mh.act .mh-tile { font-size: 15px; padding: 10px 18px 10px 12px; } .mh.act .mh-tile svg { width: 26px; height: 26px; }
  .mh-scan b { font-size: 26px; } .mh-tile { font-size: 17px; } .mh-live { font-size: 15px; }
}
/* Search screen (Oct 10 2026) */
.mh-f[hidden] { display: none; } .mh-f { scroll-margin-top: 8px; }
.mh-fin { position: relative; } .mh-fin .mh-in { padding-right: 64px; }
.mh-x { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); font-size: 34px; line-height: 1; cursor: pointer; }
.mh-x[hidden] { display: none; }
#mfind { padding-bottom: 50vh; }
/* Unit pick choice + member unit page bar (Oct 10 2026) */
.mh-choose { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 8px; }
.mh-btn.big { min-height: 96px; justify-content: flex-start; padding: 0 20px; gap: 16px; text-align: left; font-size: 22px; }
.mh-btn.big svg { width: 34px; height: 34px; flex: none; } .mh-btn.big b { display: block; font-size: 24px; } .mh-btn.big small { display: block; font-size: 15px; font-weight: 600; opacity: .85; }
.mh-ubar { display: flex; align-items: center; gap: 10px; padding: 6px 14px 8px; }
.mh-ubar .mh-back { border: 0; background: none; cursor: pointer; font: inherit; font-size: 40px; }
.mh-btn.red-o { flex: 1; min-height: 56px; font-size: 17px; color: #fff; background: #B91C1C; border-color: #B91C1C; }
.mh-btn.red-o svg { width: 22px; height: 22px; }
@media (max-width: 760px) { body.mh-member .crumb { display: none; } }
/* Apparatus Deploy / Maintenance choice: full-screen above the member tab bar (dvh). */
.mch { position: fixed; z-index: 70; left: 0; right: 0; top: 0; bottom: calc(76px + env(safe-area-inset-bottom)); background: var(--bg); display: flex; flex-direction: column; gap: 12px;
  padding: calc(8px + env(safe-area-inset-top)) 14px 12px; height: calc(100dvh - 76px - env(safe-area-inset-bottom)); box-sizing: border-box; }
.mch-h { display: flex; align-items: center; gap: 10px; min-height: 56px; flex: none; }
.mch-h b { font-size: 22px; font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mch-x { width: 48px; height: 56px; border: 0; background: none; color: var(--navy-900); font-size: 40px; line-height: 1; cursor: pointer; }
.mch-c { min-height: 48px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); color: var(--navy-900); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.mch-ph { width: 64px; height: 40px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); overflow: hidden; } .mch-ph svg { width: 24px; height: 24px; }
.mch-b { flex: 1 1 0; min-height: 37dvh; border: 0; border-radius: 24px; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font: inherit; cursor: pointer; padding: 16px; text-align: center; box-shadow: 0 6px 18px rgba(11,31,58,.22); }
.mch-b svg { width: 72px; height: 72px; stroke-width: 1.8; } .mch-b b { font-size: 34px; font-weight: 800; line-height: 1.1; } .mch-b span { font-size: 18px; font-weight: 600; opacity: .95; }
.mch-b.dep { background: #1d4ed8; } .mch-b.mnt { background: #0F766E; }
:root[data-theme="dark"] .mch-b { box-shadow: none; outline: 1px solid rgba(255,255,255,.1); }
@media (max-height: 800px) { .mch-b svg { width: 64px; height: 64px; } .mch-b b { font-size: 30px; } }
/* Member big-button Deploy (Oct 11): photo, per-unit Pre-trip / Inventory state buttons, blue Deploy at the bottom. */
.md { padding-bottom: 8px; }
.md-ph { width: 100%; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #0b1f3a; }
.md-ph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.md-name { font-size: 28px; font-weight: 800; margin: 10px 2px 4px; color: var(--navy-900); }
.md-ci { margin-left: auto; width: 56px; height: 56px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-3); } .md-ci svg { width: 30px; height: 30px; }
.md-sec { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.md-uh { display: flex; align-items: center; gap: 10px; padding: 8px 2px 0; border-top: 2px solid var(--border); }
.md-uh b { display: block; font-size: 20px; color: var(--navy-900); } .md-uh small { color: var(--ink-3); font-size: 14px; } .md-uh > div { flex: 1; min-width: 0; }
.md-ut { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-3); } .md-ut svg { width: 24px; height: 24px; }
.md-x { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 2px solid var(--border); background: var(--surface); color: var(--ink-2); font: inherit; font-weight: 700; cursor: pointer; }
.md-b { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 84px; padding: 12px 16px; border-radius: 18px; border: 0; font: inherit; text-align: left; cursor: pointer; color: #fff; background: #4b5563; }
.md-b.prog { background: #B45309; } .md-b.done { background: #15803D; }
.md-i { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; } .md-i svg { width: 30px; height: 30px; stroke-width: 2.4; }
.md-t { flex: 1; min-width: 0; } .md-t b { display: block; font-size: 21px; font-weight: 800; } .md-t small { display: block; font-size: 15px; opacity: .95; }
.md-s { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: rgba(0,0,0,.22); padding: 6px 9px; border-radius: 99px; white-space: nowrap; }
.md-add { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 64px; margin: 10px 0 0; border-radius: 16px; border: 2px dashed var(--border-2, var(--border)); background: var(--surface); color: var(--navy-900); font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
.md-add svg { width: 24px; height: 24px; }
.md-skip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 4px; color: var(--ink-3); font-size: 15px; }
.md-foot { position: sticky; bottom: 0; padding: 12px 0 8px; background: linear-gradient(to top, var(--bg) 75%, transparent); margin-top: 8px; text-align: center; }
.md-foot small { display: block; color: var(--ink-3); font-size: 14px; margin-top: 6px; }
.md-go { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 72px; border-radius: 18px; border: 0; background: #1d4ed8; color: #fff; font: inherit; font-size: 24px; font-weight: 800; cursor: pointer; margin-top: 12px; }
.md-go svg { width: 30px; height: 30px; } .md-go:disabled { background: #94a3b8; cursor: not-allowed; }
:root[data-theme="dark"] .md-go:disabled { background: #334155; color: #cbd5e1; }
:root[data-theme="dark"] .md-b { background: #374151; }
:root[data-theme="dark"] .md-b.prog { background: #B45309; } :root[data-theme="dark"] .md-b.done { background: #15803D; }
/* v40: choice is a route (anchors). */
.mch-x, .mch-c { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; } .mch-b { text-decoration: none; }
/* Member F-972 pre-trip (Oct 11): big Pass / Problem / N/A per item, progress bar, inline problem note + photo. */
.m9-t h1 { margin: 0; font-size: 24px; } .m9-t span { color: var(--ink-3); font-size: 15px; font-weight: 600; } .m9-t small { font-size: 12px; font-weight: 800; letter-spacing: .05em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.m9-prog { position: sticky; top: var(--sat, 0px); z-index: 4; background: var(--bg); padding: 8px 0 10px; font-size: 16px; color: var(--ink-2); }
.m9-prog b { color: var(--navy-900); font-size: 18px; }
.m9-bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 6px; } .m9-bar i { display: block; height: 100%; width: 0; background: #15803D; transition: width .2s; }
.m9-warn { margin: 4px 0 6px; }
.m9-sec { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 18px 2px 8px; }
.m9-i { background: var(--surface); border: 2px solid var(--border); border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.m9-i.pass { border-color: #15803D; } .m9-i.fail { border-color: #B91C1C; } .m9-i.na { opacity: .85; }
.m9-l { font-size: 18px; font-weight: 700; color: var(--navy-900); margin-bottom: 10px; line-height: 1.3; } .m9-star { color: #B91C1C; margin-left: 4px; font-size: 20px; }
.m9-pf { display: grid; grid-template-columns: 1fr 1fr 72px; gap: 8px; }
.m9-b { min-height: 56px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface-2); color: var(--ink-2); font: inherit; font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.m9-b svg { width: 22px; height: 22px; }
.m9-b.pass.on { background: #15803D; border-color: #15803D; color: #fff; } .m9-b.fail.on { background: #B91C1C; border-color: #B91C1C; color: #fff; } .m9-b.na.on { background: #475569; border-color: #475569; color: #fff; }
.m9-fail { margin-top: 10px; } .m9-note { min-height: 80px; resize: vertical; } .m9-ph { margin-top: 8px; } .m9-ph .ph-add { min-height: 48px; font-size: 16px; }
.m9 #m9by { margin-bottom: 8px; }
/* Keyboard open (js/kb.js): sticky footers and the bottom nav step aside. */
body.kb-open .tabbar { display: none !important; }
/* v45: keyboard open -> the Finish / Deploy footer drops into the page flow at the end of the content (not sticky),
   with room below so it can be scrolled above the keyboard. Same button, same handler and enabled state. */
body.kb-open .md-foot { position: static !important; box-shadow: none; margin-top: 16px; }
body.kb-open .mh-page { padding-bottom: 45vh; }
body.mh-member input, body.mh-member textarea { scroll-margin-top: 110px; }
/* Member inventory big cards (Oct 11). */
.mi-n { display: block; font-size: 14px; font-weight: 500; color: var(--ink-3); margin-top: 2px; }
.mi-pf { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mi-st { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; align-items: center; }
.mi-st .m9-b[data-dec], .mi-st .m9-b[data-inc] { font-size: 28px; }
.mi-st .m9-b[data-all] { grid-column: 1 / -1; }
.mi-c { text-align: center; font-size: 28px; color: var(--navy-900); } .mi-c small { font-size: 16px; color: var(--ink-3); font-weight: 600; } .mi-c.short { color: #B91C1C; }
.m9-opt { font-weight: 600; color: var(--ink-3); font-size: 13px; } .m9-hint { font-size: 14px; color: var(--ink-3); margin: 4px 2px 12px; } .m9-hint.bad { color: #B91C1C; font-weight: 700; }
.ck-note { color: var(--ink-2); }
/* Cancel / discard (Oct 11). */
.md-cancel { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; margin: 14px 0 4px; border-radius: 14px; border: 2px solid #B91C1C; background: transparent; color: #B91C1C; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; }
.md-cancel svg { width: 20px; height: 20px; }
:root[data-theme="dark"] .md-cancel { color: #FCA5A5; border-color: #F87171; }
.md-disc { align-self: flex-end; min-height: 44px; margin-top: -4px; padding: 0 6px; border: 0; background: none; color: #B91C1C; font: inherit; font-size: 15px; font-weight: 700; text-decoration: underline; cursor: pointer; }
:root[data-theme="dark"] .md-disc { color: #FCA5A5; }
/* Member Maintenance (Oct 11). */
a.md-b, a.md-add { text-decoration: none; }
.md-b.red { background: #B91C1C; } .md-b.amber { background: #B45309; } .mm-rep { background: #B91C1C; }
.md-b.ro { cursor: default; min-height: 72px; } .md-b.ro .md-t b { font-size: 18px; } .md-b.ro .md-i { width: 44px; height: 44px; } .md-b.ro .md-i svg { width: 24px; height: 24px; }
:root[data-theme="dark"] .md-b.red, :root[data-theme="dark"] .mm-rep { background: #B91C1C; } :root[data-theme="dark"] .md-b.amber { background: #B45309; }
.mm-noph { display: flex; align-items: center; gap: 12px; } .mm-noph .md-ci { margin: 0; } .mm-noph .md-name { margin: 0; }
.mm-alert { display: flex; gap: 12px; margin: 12px 0; padding: 14px; border-radius: 16px; background: #FEF2F2; border: 2px solid #B91C1C; color: #7F1D1D; }
.mm-alert > svg { width: 28px; height: 28px; flex: none; color: #B91C1C; } .mm-alert p { margin: 0 0 6px; font-size: 16px; line-height: 1.35; } .mm-alert p:last-child { margin: 0; } .mm-alert small { color: #991B1B; }
:root[data-theme="dark"] .mm-alert { background: #3B0D0D; color: #FECACA; border-color: #F87171; } :root[data-theme="dark"] .mm-alert small { color: #FCA5A5; }
.mm .card { border-radius: 16px; }
/* v48: My maintenance units tile (full width), Return unit button. */
.mh-tile.mnt { grid-column: 1 / -1; min-height: 72px; flex-direction: row; background: #334155 !important; font-size: 18px; }
.mh-tile.mnt svg { width: 32px; height: 32px; }
.mm-ret { background: #1D4ED8 !important; min-height: 88px; } .mm-ret .md-t b { font-size: 22px; }
.mm-th { overflow: hidden; } .mm-th img, .mm-th .uimg { width: 100%; height: 100%; object-fit: cover; }
#mhome .mh-main:has(.mh-tile.mnt) { padding-bottom: calc(var(--tabbar-h, 72px) + env(safe-area-inset-bottom) + 16px); } .mh.act .mh-tile.mnt { min-height: 64px; }

/* Oct 11: Help & manual + FAQ */
.hlp .hlp-b { justify-content: flex-start; text-align: left; padding: 10px 18px; gap: 14px; }
.hlp .hlp-b span { display: flex; flex-direction: column; } .hlp .hlp-b small { font-size: 14px; font-weight: 600; opacity: .8; }
.hlp-h { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2, #64748b); margin: 22px 2px 6px; }
.hlp-n { color: var(--text-2, #64748b); font-size: 14px; margin-top: 18px; }
.hlp-q { width: 100%; margin: 4px 0 6px; }
.hlp-qa { background: var(--surface-2); border: 2px solid var(--border); border-radius: 14px; margin: 8px 0; padding: 0 14px; }
.hlp-qa summary { min-height: 56px; display: flex; align-items: center; font-weight: 800; font-size: 17px; cursor: pointer; }
.hlp-qa p { margin: 0 0 8px; font-size: 16px; line-height: 1.45; }
.hlp-qa a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--blue, #1d5fd1); text-decoration: none; }
.hlp-qa a svg { width: 18px; height: 18px; }
.hlp-v { display: flex; flex-direction: column; }
.hlp-f { flex: 1; width: 100%; min-height: calc(100dvh - 190px); border: 0; border-radius: 12px; background: #fff; }
.hlp-pdf { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 700; color: var(--blue, #1d5fd1); text-decoration: none; }
.hlp-pdf svg { width: 20px; height: 20px; }
/* Phone return screen (Oct 12): big live card, Out since line; #livebar hidden here (the card replaces it). */
body.no-livebar #livebar { display: none !important; }
.mr-out { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--ink-2); margin: 4px 2px 14px; } .mr-out svg { width: 22px; height: 22px; flex: none; }
.mr-live { border-radius: 18px; padding: 16px; margin-bottom: 16px; color: #fff; background: #4b5563; }
.mr-live.green { background: #15803D; } .mr-live.amber { background: #B45309; } .mr-live.other { background: #1e3a5f; }
.mr-lh { display: flex; align-items: center; gap: 14px; } .mr-lh b { display: block; font-size: 21px; font-weight: 800; } .mr-lh small { display: block; font-size: 14.5px; opacity: .92; margin-top: 2px; }
.mr-dot { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.mr-live.off .mr-dot { background: #cbd5e1; }
.mr-live.red { background: #b42318; } .mr-live.red .mr-dot { background: #fff; }
.mr-live.lo .lo-help { color: #fff; } .mr-live.lo .lo-steps b { color: #fff; }
.mr-live.green .mr-dot::after, .mr-live.amber .mr-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(255,255,255,.7); animation: lppulse 1.8s ease-out infinite; }
.mr-lb { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 60px; margin-top: 14px; border-radius: 14px; border: 2px solid rgba(255,255,255,.85); background: rgba(255,255,255,.12); color: #fff; font: inherit; font-size: 20px; font-weight: 800; cursor: pointer; }
.mr-lb.primary { background: #1d4ed8; border-color: #1d4ed8; } .mr-lb svg { width: 24px; height: 24px; }
.mr-also { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--ink-2); margin: 12px 2px; } .mr-also svg { width: 20px; height: 20px; flex: none; }
@media (prefers-reduced-motion: reduce) { .mr-live .mr-dot::after { animation: none; transform: scale(1.6); opacity: .45; } }
.mr .md-t b { font-size: 19px; }
/* Oct 12: phone pages scroll clear of the bottom nav (and the live bar above it); sticky footers (.md-foot, .sp-acts)
   then stop above the nav. --tabbar-h matches each role's nav height. */
@media (max-width: 760px) {
  body.mh-member { --tabbar-h: 76px; } body.mh-admin { --tabbar-h: 72px; }
  body.mh-on:not(.mh-home) #view { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  body.mh-on.has-live:not(.no-livebar):not(.mh-home) #view { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 76px); }
  body.kb-open #view { padding-bottom: 0; }
}
/* Compact inventory rows (Oct 12): checkout Inventory + Post-checkout list on phones. */
.ic-sum { position: sticky; top: var(--sat, 0px); z-index: 4; background: var(--bg); padding: 8px 2px; font-size: 18px; font-weight: 800; color: var(--navy-900); }
.ic-hint { font-size: 14px; color: var(--ink-3); margin: 0 2px 8px; }
.ic-list { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.ic-r { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--border); border-left: 4px solid transparent; }
.ic-r:last-child { border-bottom: 0; }
.ic-r.short { background: rgba(245,158,11,.14); border-left-color: #D97706; } .ic-r.extra { background: rgba(37,99,235,.11); border-left-color: #2563EB; }
.ic-t { flex: 1; min-width: 0; line-height: 1.25; } .ic-t b { display: block; font-size: 16.5px; color: var(--navy-900); }
.ic-t small { display: block; font-size: 13.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-t em { display: inline-block; margin-top: 2px; font-style: normal; font-size: 12.5px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: #B45309; color: #fff; }
.ic-r.extra .ic-t em { background: #1D4ED8; }
.ic-st { display: flex; align-items: center; gap: 4px; flex: none; }
.ic-st button { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface-2); color: var(--navy-900); font: inherit; font-size: 24px; font-weight: 700; line-height: 1; cursor: pointer; }
.ic-c { min-width: 52px; text-align: center; font-size: 14px; color: var(--ink-3); font-weight: 600; } .ic-c b { font-size: 20px; color: var(--navy-900); }
.ic-r.short .ic-c b { color: #B45309; } .ic-r.extra .ic-c b { color: #1D4ED8; }
.ic-tog { flex: none; width: 44px; height: 44px; margin-right: 52px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface-2); display: grid; place-items: center; cursor: pointer; color: #fff; }
.ic-tog.on { background: #15803D; border-color: #15803D; } .ic-tog svg { width: 26px; height: 26px; }
:root[data-theme="dark"] .ic-r.short { background: rgba(245,158,11,.16); } :root[data-theme="dark"] .ic-r.extra { background: rgba(59,130,246,.18); }
:root[data-theme="dark"] .ic-r.short .ic-c b { color: #FBBF24; } :root[data-theme="dark"] .ic-r.extra .ic-c b { color: #93C5FD; }
/* v100 (Oct 19): staff phone chooser has three buttons (Deploy / Maintenance / Inventory) */
.mch.three .mch-b { min-height: 0; } .mch.three .mch-b svg { width: 56px; height: 56px; } .mch.three .mch-b b { font-size: 30px; }
.mch-b.inv { background: #7c3aed; }
/* v100 (Oct 19): staff phone Maintenance page: due checks, Tires status (+ picture), Issues & alerts */
.mi-none { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--ink-2, var(--ink)); font-weight: 600; font-size: 16px; }
.mi-none.ok svg { color: #15803d; width: 24px; height: 24px; flex: none; }
.mm-rest { margin-top: 2px; } .mm-rest summary { cursor: pointer; padding: 12px 4px; font-weight: 700; color: var(--navy-900); font-size: 15px; list-style: none; }
.mm-rest summary::before { content: '▸ '; } .mm-rest[open] summary::before { content: '▾ '; } .mm-rest .md-b { margin-bottom: 10px; }
.tst-h { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.tst-i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #dcfce7; color: #15803d; } .tst-i svg { width: 24px; height: 24px; }
.tst.bad .tst-i { background: #fee2e2; color: #b91c1c; }
.tst-t { display: flex; flex-direction: column; min-width: 0; } .tst-t b { font-size: 18px; font-weight: 800; color: #15803d; } .tst.bad .tst-t b { color: #b91c1c; }
.tst-t small { font-size: 13px; color: var(--ink-3); }
.tst-l { margin: 0 16px 10px; padding: 10px 12px; border-radius: 12px; background: #fef2f2; border: 1px solid #fca5a5; color: #7f1d1d; font-size: 14px; }
.tst-l p { margin: 2px 0; } .tst-l small { color: #991b1b; }
.mm-s .tires-card, .mm-s .tst { margin: 12px 0; }
.mi-sec { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.mi-r { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); border-left: 6px solid #b45309; text-decoration: none; color: var(--ink); }
.mi-r.red { border-left-color: #b91c1c; }
.mi-i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fef3c7; color: #b45309; } .mi-r.red .mi-i { background: #fee2e2; color: #b91c1c; } .mi-i svg { width: 20px; height: 20px; }
.mi-t { display: flex; flex-direction: column; min-width: 0; } .mi-t small { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.mi-t b { font-size: 16px; } .mi-t span { font-size: 13px; color: var(--ink-3); }
:root[data-theme="dark"] .tst-i { background: #14532d; color: #86efac; } :root[data-theme="dark"] .tst.bad .tst-i { background: #450a0a; color: #fca5a5; }
:root[data-theme="dark"] .tst-t b { color: #86efac; } :root[data-theme="dark"] .tst.bad .tst-t b { color: #fca5a5; }
:root[data-theme="dark"] .tst-l { background: #3b0d0d; border-color: #7f1d1d; color: #fecaca; } :root[data-theme="dark"] .tst-l small { color: #fca5a5; }
:root[data-theme="dark"] .mi-i { background: #451a03; color: #fcd34d; } :root[data-theme="dark"] .mi-r.red .mi-i { background: #450a0a; color: #fca5a5; }
/* v100: pre-trip tire problem prompt (which tire + reason + PSI) */
.m9-tire { margin: 4px 0 6px; } .m9-tp { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.m9-tc { min-height: 44px; padding: 0 14px; border-radius: 22px; border: 2px solid var(--border); background: var(--surface); color: var(--navy-900); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.m9-tc.on { background: #1d4ed8; border-color: #1d4ed8; color: #fff; } .m9-tc.r.low.on { background: #b45309; border-color: #b45309; } .m9-tc.r.worn.on { background: #b91c1c; border-color: #b91c1c; } .m9-tc.r.other.on { background: #4b5563; border-color: #4b5563; }
.m9-psi { max-width: 160px; }
/* v105 Search Fleet: one wide tile (was Find by shop # + Pick from list); Report a problem full width under it (My count tasks removed) */
.mh-tile.wide, .mh-tile.row { grid-column: 1 / -1; min-height: 104px; flex-direction: row; gap: 14px; font-size: 22px; }
.mh-tile.wide { background: #0F766E !important; }
.mh-tile.wide svg, .mh-tile.row svg { width: 40px; height: 40px; }
.mh.act .mh-tile.wide, .mh.act .mh-tile.row { min-height: 72px; font-size: 18px; }
@media (max-height: 800px) { .mh-tile.wide, .mh-tile.row { min-height: 88px; } }
#msfleet .sf-in { position: sticky; top: var(--sat, 0px); z-index: 2; background: var(--bg, #fff); padding: 4px 0 8px; display: flex; align-items: center; gap: 8px; }
#msfleet .sf-in .mh-in { flex: 1; font-size: 20px; min-height: 56px; }
#msfleet .mh-x { width: 48px; height: 48px; border-radius: 24px; background: var(--surface-2); border: 1px solid var(--border); font-size: 26px; line-height: 1; color: var(--navy-900); } /* Oct 31: was undefined --line (light in dark theme) */
#msfleet .mh-meta { font-size: 14px; color: var(--muted, #64748b); margin: 2px 2px 8px; }
#msfleet .mh-rows { padding-bottom: calc(var(--tabbar-h, 72px) + env(safe-area-inset-bottom) + 16px); }

/* Oct 29 2026 (Terry): Team Member + Fleet Tech phone landing: three large buttons, Deploy / Inventory / Maintenance.
   System UI font (works offline, no web font download), large and semibold. Sidebar colours; white on each is >= 5:1 (WCAG AA). */
.ml { --ml-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Inter, Arial, sans-serif; font-family: var(--ml-font); }
.ml .mh-top h1 { font-family: var(--ml-font); font-weight: 700; letter-spacing: -.01em; }
.ml .mh-main { padding-bottom: calc(var(--tabbar-h, 72px) + env(safe-area-inset-bottom) + 16px); }
.ml-bs { display: flex; flex-direction: column; gap: 14px; }
.ml-b { display: flex; align-items: center; gap: 16px; min-height: 112px; padding: 16px 18px 16px 16px; border-radius: 20px; color: #fff; text-decoration: none; box-shadow: 0 4px 14px rgba(11,31,58,.2); -webkit-tap-highlight-color: transparent; transition: transform .08s ease, filter .08s ease; }
.ml-b:active { transform: scale(.985); filter: brightness(.93); }
.ml-b:focus-visible { outline: 4px solid var(--mblue, #1d5fd1); outline-offset: 3px; }
.ml-b.dep { background: #a15c07; } .ml-b.inv { background: #6b4fa0; } .ml-b.mnt { background: #0f766e; }
.ml-i { width: 60px; height: 60px; border-radius: 16px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.ml-i svg { width: 34px; height: 34px; color: #fff; stroke-width: 2; }
.ml-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ml-t b { font-family: var(--ml-font); font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.005em; }
.ml-t small { font-family: var(--ml-font); font-size: 16px; font-weight: 500; line-height: 1.3; color: #fff; }
.ml-go { margin-left: auto; font-size: 34px; font-weight: 600; line-height: 1; opacity: .9; flex: none; }
:root[data-theme="dark"] .ml-b { box-shadow: none; outline: 1px solid rgba(255,255,255,.14); }
:root[data-theme="dark"] .ml-b:focus-visible { outline: 4px solid var(--mblue, #78a9ff); }
/* Compact alert strip (Fleet Tech open alerts) and secondary links under the buttons. */
.ml-al { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-radius: 14px; border: 2px solid var(--red-line); background: var(--red-bg); color: var(--red); text-decoration: none; font-family: var(--ml-font); }
.ml-al svg { width: 26px; height: 26px; flex: none; } .ml-al b { display: block; font-size: 17px; font-weight: 700; } .ml-al small { display: block; font-size: 14px; color: var(--ink-2); } .ml-al .go { margin-left: auto; font-size: 26px; }
.ml .mh-alert { min-height: 56px; padding: 8px 14px; }
.ml-more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ml-lk { flex: 1 1 0; min-width: 0; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 10px; border-radius: 14px; border: 2px solid var(--border); background: var(--surface); color: var(--navy-900); font-family: var(--ml-font); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.ml-lk svg { width: 22px; height: 22px; flex: none; } .ml-lk.red { color: var(--red); border-color: var(--red-line); background: var(--red-bg); }
.ml-scan { margin-bottom: 4px; }
/* With an active deployment card on top, keep all three buttons on screen. */
.ml.act .ml-b { min-height: 88px; padding-top: 12px; padding-bottom: 12px; } .ml.act .ml-t b { font-size: 26px; } .ml.act .ml-i { width: 52px; height: 52px; } .ml.act .ml-i svg { width: 30px; height: 30px; }
@media (max-height: 760px) { .ml-b { min-height: 96px; } .ml-bs { gap: 12px; } }
@media (max-width: 380px) {
  .ml-b { gap: 12px; padding-left: 12px; padding-right: 12px; } .ml-i { width: 50px; height: 50px; } .ml-i svg { width: 28px; height: 28px; }
  .ml-t b { font-size: 26px; } .ml-t small { font-size: 15px; } .ml-go { font-size: 28px; }
  .ml-lk { font-size: 15px; gap: 6px; padding: 0 6px; } .ml-lk svg { width: 20px; height: 20px; }
}

/* ---- Oct 31 2026 (Terry): safe areas for the installed home-screen app (iPad + phone) ----
   index.html uses viewport-fit=cover + apple-mobile-web-app-status-bar-style=black-translucent, so in the installed app
   the page runs under the status bar (clock, date, battery) whose text is WHITE. env(safe-area-inset-*) is 0 in a normal
   browser tab, so none of this changes the look there.
   1. A fixed strip behind the status bar, always dark (brand navy in light theme, app background in dark), so the white
      clock text is readable on both themes and content scrolling underneath never shows through.
   2. iPad / desktop shell (left rail + main): the whole shell starts below the status bar and clears the side / home
      indicator insets. Phone pages already pad their own top (.appbar, .mh-top, .mh-page, .mch); on the shell those are
      reset so the inset is not counted twice.
   3. --sat = the top inset for sticky headers inside the phone scroller (0 on the shell, which is already padded). */
:root { --sat: env(safe-area-inset-top, 0px); }
body::before { content: ""; position: fixed; z-index: 5000; top: 0; left: 0; right: 0; height: env(safe-area-inset-top, 0px); background: #0b1f3a; pointer-events: none; }
:root[data-theme="dark"] body::before { background: var(--bg); }
@media (min-width: 761px) {
  :root { --sat: 0px; }
  .app { box-sizing: border-box; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
  .main .mh-top { padding-top: 16px; }
  .main .mh-page { padding-top: 10px; }
}
@media (min-width: 761px) and (max-height: 800px) { .main .mh-top { padding-top: 10px; } }
.mm-log { background: #1D4ED8; } :root[data-theme="dark"] .mm-log { background: #1D4ED8; }
