/* App-specific layout on top of the kit's base.css + Bay Air tokens.css */
h1, h2, h3, .stat-v { letter-spacing: .01em; }
h1 { color: var(--brand); }
.side-foot { margin-top: auto; padding: 16px 12px 4px; font: italic 600 .85rem var(--font-head); color: #ffd7dc; opacity: .9; }
.topbar .greet h1 { font-size: 1.25rem; margin: 0; color: inherit; }
.topbar .greet .small { margin: 0; }
.topbar .who { display: flex; align-items: center; gap: 6px; }
.topbar .who select { width: auto; min-height: 36px; padding: 4px 8px; font-size: .85rem; }
.devtag { font-size: .7rem; font-weight: 700; background: var(--warn-bg); color: var(--warn); border-radius: 4px; padding: 1px 6px; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--brandred); color: #fff; font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.topbar .greet { min-width: 0; flex: 1 1 auto; }
.topbar .greet h1, .topbar .greet p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .sp { flex: 0 1 0; }
.banner > div { min-width: 0; overflow-wrap: anywhere; }
.quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .topbar .greet h1 { font-size: 1.05rem; }
  .topbar .who select { max-width: 112px; }
  #wxbanner .banner { padding: 8px 16px; font-size: .88rem; }
  #wxbanner .btxt { display: none; }
  .topbar .greet .small { color: #dbe4f3; }
  .topbar .who select { background: var(--brand2); color: #fff; border-color: transparent; max-width: 140px; }
  .devtag { display: none; }
}
#wxbanner .banner { border-radius: 0; }
#wxbanner .banner + .banner { border-top: 1px solid rgba(0,0,0,.06); }
.banner .wxi { font-size: 1.3rem; line-height: 1; }

/* phone home */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.quick a { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 72px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.quick a span { font-size: 1.3rem; }

/* notes */
.post { display: grid; grid-template-columns: 40px 1fr; gap: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--info-bg); color: var(--info); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-head); }
.post .meta { font-size: .82rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.post .body { white-space: pre-wrap; word-wrap: break-word; margin: 4px 0 6px; }
.post .body .mention { color: var(--info); font-weight: 600; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.thumbs img { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.replies { border-left: 3px solid var(--line); padding-left: 12px; margin-top: 8px; }
.reply { padding: 6px 0; }
.pending { opacity: .85; border-style: dashed; }
.composer textarea { min-height: 84px; }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.cal .dow { background: var(--panel2); font-size: .75rem; font-weight: 700; color: var(--muted); padding: 6px; text-align: center; }
.cal .day { background: var(--panel); min-height: 104px; padding: 4px; font-size: .78rem; }
.cal .day.other { background: var(--panel2); color: var(--faint); }
.cal .day.today { box-shadow: inset 0 0 0 2px var(--brandred); }
.cal .num { font-weight: 700; margin-bottom: 2px; }
.ev { display: block; border-radius: 4px; padding: 1px 5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ev.federal_holiday { background: var(--panel3); color: var(--muted); }
.ev.company_holiday { background: var(--bad-bg); color: var(--bad); }
.ev.on_call { background: var(--info-bg); color: var(--info); }
.ev.pto { background: var(--good-bg); color: var(--good); }
.ev.training, .ev.general, .ev.company { background: var(--warn-bg); color: var(--warn); }
.cal .wx { float: right; font-size: .72rem; color: var(--muted); }
.legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: .8rem; margin: 8px 0 12px; }
.legend .ev { display: inline-block; }
@media (max-width: 820px) { .cal-month { display: none; } }
@media (min-width: 821px) { .cal-agenda.phone-only { display: none; } }

/* manual */
.manual { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.toc { position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow: auto; padding: 10px; }
.toc a { display: block; padding: 5px 8px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: .88rem; }
.toc a.l1 { font-weight: 700; color: var(--brand); margin-top: 6px; }
.toc a.l2 { padding-left: 18px; } .toc a.l3 { padding-left: 32px; color: var(--muted); font-size: .82rem; }
.toc a[aria-current] { background: var(--info-bg); }
.doc { line-height: 1.65; font-size: 1rem; }
.doc h2 { color: var(--brand); margin-top: 1.4rem; } .doc h3 { margin-top: 1.1rem; }
.doc mark.proposed { background: #fff3b0; color: inherit; padding: 0 2px; border-bottom: 2px solid #e0b400; }
.doc .tablewrap { overflow-x: auto; margin: 10px 0; }
.doc table.t td, .doc table.t th { font-size: .9rem; }
.doc ul { padding-left: 1.3rem; }
@media (max-width: 900px) { .manual { grid-template-columns: 1fr; } .toc { position: static; max-height: none; } .toc.collapsed { display: none; } }


/* company */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--brandred); }
.timeline li { padding: 4px 0 12px 16px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -8px; top: 9px; width: 13px; height: 13px; border-radius: 50%; background: var(--panel); border: 3px solid var(--brand); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.values div { text-align: center; padding: 16px 8px; border-radius: var(--radius); background: var(--brand); color: #fff; font: 700 1.15rem var(--font-head); }
.more-link { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); font-weight: 600; width: 100%; }


/* message board */
.board { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.chans { position: sticky; top: 84px; padding: 12px; }
.chan { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.chan:hover { background: var(--panel2); }
.chan.on { background: var(--info-bg); color: var(--brand); }
.badge { background: var(--brandred); color: #fff; border-radius: 99px; font-size: .72rem; padding: 1px 7px; font-weight: 700; }
.chat { min-width: 0; }
.chathead { margin-bottom: 10px; }
.pinned { padding: 10px 14px; margin-bottom: 10px; } .pinned summary { cursor: pointer; font-weight: 600; }
.msgs { display: flex; flex-direction: column; gap: 2px; }
.mday { text-align: center; margin: 14px 0 6px; font-size: .75rem; color: var(--muted); font-weight: 600; }
.mday span { background: var(--bg); padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line); }
.msg { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.msg.grouped { margin-top: 2px; }
.mav { width: 38px; height: 38px; border-radius: 50%; background: var(--info-bg); color: var(--info); display: flex; align-items: center; justify-content: center; font: 700 .85rem var(--font-head); }
.msg.grouped .mav { background: none; height: 0; }
.mhead { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 2px; }
.mhead b { color: var(--ink); font-size: .9rem; }
.bubble { display: inline-block; max-width: min(680px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 8px 12px; box-shadow: var(--shadow); }
.mtext { white-space: pre-wrap; overflow-wrap: anywhere; }
.mtext .mention { color: var(--info); font-weight: 700; }
.mtag { font-size: .78rem; color: var(--muted); margin-bottom: 2px; }
.msg.mine { grid-template-columns: minmax(0, 1fr) 38px; }
.msg.mine .mav { order: 2; background: var(--brand); color: #fff; }
.msg.mine.grouped .mav { background: none; }
.msg.mine .mbody { text-align: right; }
.msg.mine .mhead { justify-content: flex-end; }
.msg.mine .bubble { background: #e8eefa; border-color: #cdd9f0; border-radius: 14px 4px 14px 14px; text-align: left; }
.msg.pending .bubble { border-style: dashed; opacity: .85; }
.mfoot { display: flex; gap: 10px; align-items: center; min-height: 22px; }
.msg.mine .mfoot { justify-content: flex-end; }
.linkbtn { background: none; border: 0; padding: 2px 4px; color: var(--info); cursor: pointer; font: inherit; min-height: 28px; }
.linkbtn.danger { color: var(--bad); }
.mphotos { display: grid; gap: 4px; margin-top: 6px; max-width: 420px; }
.mphotos.n1 { grid-template-columns: 1fr; } .mphotos.n2, .mphotos.n4 { grid-template-columns: 1fr 1fr; } .mphotos.n3 { grid-template-columns: 1fr 1fr 1fr; }
.mphoto { display: block; padding: 0; border: 0; background: var(--panel3); border-radius: 8px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.mphotos.n1 .mphoto { aspect-ratio: auto; max-height: 340px; }
.mphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.threadline { margin: 12px 0 4px 46px; font-size: .8rem; color: var(--muted); font-weight: 600; border-top: 1px solid var(--line); padding-top: 8px; }
.composer2 { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0 12px; margin-top: 10px; z-index: 4; }
.composer2.drop { outline: 3px dashed var(--info); outline-offset: 4px; }
.crow { display: flex; gap: 6px; align-items: flex-end; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); }
.crow textarea { border: 0; min-height: 44px; max-height: 160px; resize: none; padding: 11px 8px; flex: 1; }
.crow textarea:focus { outline: none; }
.crow:focus-within { border-color: var(--brand); }
.cpreview { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.cthumb { position: relative; } .cthumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.cthumb button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: .7rem; }
.ctag { font-size: .85rem; margin-bottom: 6px; color: var(--muted); }
.chanchips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.chanchips .chan { white-space: nowrap; background: var(--panel); border: 1px solid var(--line); min-height: 38px; gap: 6px; }
.chanchips .chan.on { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 820px) {
  .board { grid-template-columns: 1fr; }
  .chans { display: none; }
  .composer2 { bottom: 58px; padding-bottom: 8px; }
  .msg .bubble { max-width: 100%; }
}

/* phone list */
.list > li.pe { flex-wrap: wrap; }
.pe .grow { flex: 1 1 220px; }
.pe > .row { flex: 0 1 auto; margin-left: auto; }
@media (max-width: 560px) { .pe > .row { margin-left: 0; justify-content: flex-start !important; } }

/* vault */
.vcode { display: inline-block; font: 700 1.5rem ui-monospace, Consolas, monospace; letter-spacing: .06em; background: var(--warn-bg); color: var(--ink); border: 1px solid var(--warn); border-radius: 8px; padding: 4px 12px; margin-top: 4px; user-select: all; overflow-wrap: anywhere; }

.vphotos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.vphotos .mphoto { width: 84px; height: 84px; aspect-ratio: auto; }

/* tech support by manufacturer */
details.maker > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; list-style: none; min-height: 32px; flex-wrap: wrap; }
details.maker > summary::-webkit-details-marker { display: none; }
details.maker > summary::before { content: '▸'; color: var(--muted); margin-right: 6px; }
details.maker[open] > summary::before { content: '▾'; }
details.maker .mk-name { flex: 1; min-width: 180px; }
details.maker { padding: 12px 16px; }

.vcode.sm { font-size: 1.05rem; padding: 2px 10px; margin-top: 2px; }
/* manufacturer hubs */
.cov { display: flex; gap: 3px; margin-top: 8px; }
.cov i { flex: 1; height: 8px; border-radius: 3px; background: var(--panel3); }
.cov i.on { background: var(--good); }
.cov.big { margin: 10px 0 0; } .cov.big i { height: 12px; }

/* manuals */
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.codes .code { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: inherit; background: var(--panel2); }
.codes .code b { display: block; font-size: 1.05rem; color: var(--brand); }
.codes .code span { font-size: .85rem; }
.modelset { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.modelset summary { cursor: pointer; }

/* tool checkout pictures */
.tool-thumb { width: 56px; height: 56px; flex: none; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: var(--panel2); }
.tool-art { display: inline-flex; align-items: center; justify-content: center; color: var(--brand); padding: 8px; box-sizing: border-box; }
.tool-art svg { width: 100%; height: 100%; }
.tool-hero { margin: 4px 0 12px; }
.tool-big { display: block; width: 100%; max-width: 360px; aspect-ratio: 4/3; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); background: var(--panel2); }
.tool-big.tool-art { padding: 36px; }

/* how-to guides */
.howto-card { display: flex; gap: 12px; text-decoration: none; color: inherit; align-items: flex-start; }
.howto-card img, .howto-noimg { width: 84px; height: 84px; flex: none; border-radius: 10px; object-fit: cover; background: var(--panel2); border: 1px solid var(--line); }
.howto-noimg { display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.howto-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.howto-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 8px; }
.howto-photos figure { margin: 0; }
.howto-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.howto-photos figcaption { margin-top: 4px; }
@media print { .howto-step { break-inside: avoid; } }

/* QR labels */
.qr-sheet { display: grid; gap: 12px; }
.qr-sheet.lg { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.qr-sheet.sm { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.qr-label { display: flex; gap: 12px; align-items: center; background: #fff; color: #111; border: 1.5px dashed #999; border-radius: 10px; padding: 12px; break-inside: avoid; }
.qr-label img { width: 120px; height: 120px; flex: none; image-rendering: pixelated; }
.qr-sheet.sm .qr-label img { width: 72px; height: 72px; }
.qr-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qr-text b { font-size: 1.05rem; color: #16356E; }
.qr-sheet.sm .qr-text b { font-size: .85rem; }
.qr-text span { font-size: .85rem; }
.qr-text small { font-size: .7rem; color: #555; margin-top: 4px; }
@media print {
  body * { visibility: hidden; }
  #sheet, #sheet * { visibility: visible; }
  #sheet { position: absolute; left: 0; top: 0; width: 100%; }
  .noprint { display: none; }
}

/* skill matrix */
.skillmx th.tc, .skillmx td.tc { text-align: center; white-space: nowrap; }
.skillmx tr.cat th { background: var(--panel2); text-align: left; font-size: .85rem; }
.lvcell { position: relative; display: inline-block; min-width: 34px; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-weight: 700; cursor: pointer; }
.lvcell.lv0 { background: #f1f1f1; color: #666; }
.lvcell.lv1 { background: #fde7e7; color: #8a1c1c; border-color: #f2b8b8; }
.lvcell.lv2 { background: #fff1d6; color: #7a4d00; border-color: #f3d39a; }
.lvcell.lv3 { background: #e2f3e6; color: #1f6b35; border-color: #a9d9b5; }
.lvcell.lv4 { background: #16356E; color: #fff; border-color: #16356E; }
.lvcell .dot { position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--brandred); }
.lvpick { display: inline-flex; gap: 4px; align-items: center; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); cursor: pointer; }
.lvpick.lv1 { background: #fde7e7; } .lvpick.lv2 { background: #fff1d6; } .lvpick.lv3 { background: #e2f3e6; } .lvpick.lv4 { background: #16356E; color: #fff; }
.skillmx td:first-child { min-width: 230px; }
.lvcell .cap { font-size: .7rem; margin-left: 2px; }

/* people photos */
.avatar { border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); background: var(--panel2); }
.avatar.ini { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: var(--brand); border: 0; }

.face { vertical-align: middle; margin-right: 6px; }
.who { display: inline-flex; align-items: center; white-space: nowrap; }
.mhead .face { margin-right: 8px; }
.meface { display: inline-block; text-decoration: none; }
.skillmx thead .face { margin: 0 0 2px; }
.mav img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.meface .avatar.ini { background: #fff; color: var(--brand); }
.meface .avatar { margin-right: 10px; border: 2px solid rgba(255,255,255,.8); }

/* locations */
.locrow { display: flex; align-items: center; gap: 10px; padding: 10px 2px; min-height: 44px; text-decoration: none; color: inherit; }
.locrow b { overflow-wrap: anywhere; }
.locpin { width: 28px; text-align: center; font-size: 1.2rem; flex: none; }

/* tool reports */
.report { background: #fff; color: #111; padding: 12px; border-radius: 8px; }
.rep img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; margin-right: 3px; }
.rep td, .rep th { vertical-align: top; }
@media print { .report { padding: 0; } .rep tr { break-inside: avoid; } }

/* ---- phone, in the field (Tim 2026-11-25): one hand, gloves, sun, hurry ---- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .small { font-size: .9rem; }                                 /* ~14.4px, readable in sun */
  .btn.sm { min-height: 44px; padding: 0 14px; font-size: .95rem; }
  .btn { min-height: 48px; }
  input, select, textarea { font-size: 16px; }                 /* under 16px iPhone zooms in on every field */
  input[type=checkbox], input[type=radio] { width: 22px; height: 22px; min-height: 0; }
  label.row:has(> input[type=checkbox]), label.row:has(> input[type=radio]) { min-height: 44px; }
  #app > p:first-child > a:first-child { display: inline-block; padding: 10px 14px 10px 0; font-size: 1rem; }   /* "← Back" links */
  .linkbtn { padding: 8px 4px; }
  .chip { font-size: .8rem; }
  .card-h h2 { font-size: 1.1rem; }
  .toc a { padding: 11px 8px; font-size: .95rem; } .toc a.l3 { font-size: .9rem; }      /* manual contents */
  #types .chip, button.chip { min-height: 40px; padding: 0 12px; }                          /* supply house filters */
  .chanchips .chan { min-height: 44px; display: inline-flex; align-items: center; }       /* message channels */
  #tl li .grow > a { display: inline-block; padding: 6px 0; }                              /* tool names (checkout) */
  #tl li > a .tool-thumb { width: 56px; height: 56px; }
}

.bigaction { display: flex; width: 100%; min-height: 56px; font-size: 1.05rem; margin: 0 0 12px; }

/* update bar and no-signal card */
.updbar { position: fixed; left: 12px; right: 12px; bottom: 76px; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--brand); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.updbar .btn { background: #fff; color: var(--brand); border: 0; }
.nosignal h2 { margin-top: 0; }
@media (min-width: 761px) { .updbar { left: auto; right: 20px; bottom: 20px; max-width: 360px; } }

/* ---- phone navigation (review step 2) ---- */
.ptitle { flex: 1 1 auto; min-width: 0; font-family: var(--font-head, inherit); font-weight: 700; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pback { font-size: 1.6rem; min-width: 44px; margin-left: -8px; }
.more-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 6px; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.more-tile { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.more-tile .ic { font-size: 1.4rem; width: 30px; text-align: center; flex: none; }
.more-tile span > b { display: block; } .more-tile .small { display: block; }
.quick a.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 820px) {
  .topbar .who .devtag { display: none; } .topbar .who select { max-width: 92px; min-height: 34px; }
  #app > h1:first-child { display: none; }   /* the title is in the header */
  .tabbar a { font-size: .8rem; }
}
#pback[hidden] { display: none !important; }
.ptitle:first-child, #pback[hidden] + .ptitle { padding-left: 2px; }

/* ---- fast answers at the site (review step 3) ---- */
details.vsite { margin-bottom: 8px; padding: 0 14px; }
details.vsite > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; cursor: pointer; list-style: none; }
details.vsite > summary::-webkit-details-marker { display: none; }
details.vsite > summary::after { content: '›'; font-size: 1.3rem; color: var(--muted); transition: transform .15s; }
details.vsite[open] > summary::after { transform: rotate(90deg); }
details.vsite[open] { padding-bottom: 12px; }
.actrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.actrow .btn { justify-content: flex-start; }
/* ghost = secondary: always a visible outline (it read as plain text on desktop) */
.btn.ghost { border: 1px solid var(--line); background: var(--panel); } .btn.ghost:hover { border-color: var(--muted); }
.topbar .btn.ghost, .tabbar .btn.ghost, .nk-dialog-h .btn.ghost, .linkbtn { border: 0; background: transparent; }
.card-h { flex-wrap: wrap; gap: 6px; } .card-h .btn { white-space: nowrap; }
@media (max-width: 820px) { #app > p:first-child:has(> a:only-child) { display: none; } }   /* the header has Back */

/* ---- forms that do not lose work (review step 4) ---- */
.draftbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; border-radius: 8px; }
@media (max-width: 820px) {
  .stickybar { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); z-index: 20; background: var(--bg); padding: 10px 0; margin: 0 -2px; border-top: 1px solid var(--line); }
  .stickybar .btn.primary { flex: 1; }
}

/* ---- reading and tools on a phone (review step 5) ---- */
@media (max-width: 820px) {
  :root { --muted: #47505c; --faint: #5b6573; }                 /* darker greys: readable in sun (7:1 and 5.6:1 on the page background) */
  .ft-verdict { position: sticky; top: 58px; z-index: 15; box-shadow: 0 4px 12px rgba(0,0,0,.18); }   /* the calculator's answer stays in view while typing */
  .topbar .greet .small, .topbar .muted { color: #dbe4f3; }
}

/* wide matrices (skills, trucks by item): the first column stays put while the rest scrolls */
.skillmx tbody td:first-child, .skillmx thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--panel); box-shadow: 1px 0 0 var(--line); }
.skillmx tr.cat th { position: sticky; left: 0; }

/* ---- SOS (tech support needed) ---- */
.sosbar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #B0202F; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); animation: sospulse 1.2s ease-in-out infinite alternate; }
.sosbar a { color: #fff; text-decoration: none; display: flex; flex-direction: column; min-width: 0; }
.sosbar a span { font-size: .85rem; opacity: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sosbar .sos-ic { font-size: 1.6rem; }
.sosbar .btn { background: #fff; color: #B0202F; border-color: #fff; flex: none; }
@keyframes sospulse { from { background: #B0202F; } to { background: #d6283a; } }
@media (prefers-reduced-motion: reduce) { .sosbar { animation: none; } }
.sos-card { border: 2px solid var(--bad); }
.sos-card h2 { color: var(--bad); }
.sosbar a { flex: 1 1 auto; } .sosbar a b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sosbar .btn { min-width: 44px; padding: 0 10px; font-size: 1.1rem; }

/* ---- site equipment survey ---- */
.unit-map { height: 260px; border-radius: 8px; margin: 6px 0 10px; border: 1px solid var(--line); }
.unit-pin span { display: inline-block; transform: translate(-50%, -50%); background: #B0202F; color: #fff; font: 700 .75rem/1 system-ui, sans-serif; padding: 4px 6px; border-radius: 6px; border: 2px solid #fff; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.unit-pin.big span { font-size: .9rem; padding: 6px 9px; }
.uphgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.uph { margin: 0; background: var(--panel2); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.uph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.uph figcaption { padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.uph select { font-size: 16px; min-height: 36px; }
.capsteps { display: flex; gap: 6px; overflow-x: auto; margin: 8px 0 10px; padding-bottom: 4px; }
.capstep { flex: 1 0 64px; min-height: 58px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.capstep span { font-size: .7rem; font-weight: 500; color: var(--muted); }
.capstep.on { border: 2px solid var(--brand); }
.capstep.done { background: #e2f3e6; }
.capcard p { font-size: 1.05rem; }
.capbtn { min-height: 56px; font-size: 1.05rem; flex: 1 1 140px; justify-content: center; }

/* ---- start-up report ---- */
.su-sec { margin-top: 10px; }
.su-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.su-row:last-child { border-bottom: 0; }
.su-l { flex: 1 1 auto; } .su-v { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.su-v input { width: 110px; font-size: 16px; min-height: 44px; text-align: right; }
.su-check { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.su-check:last-child { border-bottom: 0; }
.su-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.su-grid input { font-size: 16px; min-height: 44px; width: 100%; }
.su-rep { border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin: 8px 0; }

.nk-modal .su-grid { grid-template-columns: 1fr 1fr; }

/* app guide (wiki) */
.wiki-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; align-items: start; margin-top: 10px; }
.wiki-side { position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow: auto; }
@media (max-width: 860px) { .wiki-grid { grid-template-columns: 1fr; } .wiki-side { position: static; max-height: none; } }
.wiki { line-height: 1.55; overflow-wrap: anywhere; }
.wiki h1 { margin-top: 0; } .wiki h2 { margin-top: 22px; border-bottom: 1px solid var(--line); padding-bottom: 4px; } .wiki h3 { margin-top: 16px; }
.wiki h2, .wiki h3 { scroll-margin-top: 70px; }
.wiki code { background: var(--soft, rgba(127,127,127,.12)); padding: 1px 4px; border-radius: 4px; font-size: .92em; }
.wiki pre { background: var(--soft, rgba(127,127,127,.12)); padding: 10px; border-radius: 8px; overflow-x: auto; } .wiki pre code { background: none; padding: 0; }
.wiki blockquote { border-left: 4px solid var(--brand, #16356E); margin: 10px 0; padding: 6px 12px; background: var(--soft, rgba(127,127,127,.08)); border-radius: 0 8px 8px 0; }
.wiki .tablewrap { overflow-x: auto; margin: 10px 0; } .wiki table.t { min-width: 420px; }
.wiki ul, .wiki ol { padding-left: 22px; } .wiki li { margin: 3px 0; }
.wiki-toc { list-style: none; padding: 0; margin: 0 0 10px; } .wiki-toc li { margin: 4px 0; } .wiki-toc li.l3 { padding-left: 12px; font-size: .92em; }
.wiki-toc a[aria-current="page"] { font-weight: 700; }

/* tutorial screenshots: phone and PC side by side when there is room */
.wiki figure.shot { display: inline-block; vertical-align: top; margin: 8px 12px 8px 0; text-align: center; }
.wiki figure.shot img { display: block; border: 1px solid var(--line); border-radius: 10px; cursor: zoom-in; box-shadow: 0 2px 8px rgba(0,0,0,.08); max-height: 640px; object-fit: cover; object-position: top; }
.wiki figure.shot.phone img { width: 220px; } .wiki figure.shot.pc img { width: 520px; max-width: 100%; }
.wiki figure.shot figcaption { font-size: .8rem; color: var(--muted); margin-top: 3px; }
@media (max-width: 600px) { .wiki figure.shot.pc { display: none; } .wiki figure.shot.phone img { width: 100%; max-width: 300px; } }
.shot-missing { width: 220px; height: 120px; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: .85rem; padding: 8px; }

/* brand families: overview map of parent companies, then a tree per family (parent > division > brands) */
.bmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.bmap-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 74px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card, #fff); text-decoration: none; color: inherit; text-align: center; font-size: .82rem; font-weight: 600; }
.bmap-tile img { max-height: 30px; max-width: 100px; object-fit: contain; }
.btree-root { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btree-logo { height: 40px; max-width: 160px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
.btree { list-style: none; margin: 10px 0 0 8px; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.btree > li { position: relative; margin: 10px 0; }
.btree > li::before { content: ''; position: absolute; left: -16px; top: 12px; width: 12px; border-top: 2px solid var(--line); }
.btree-group { padding: 2px 0; }
.btree-group.same { color: inherit; }
.btree-brands { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; padding: 6px; border-radius: 8px; }
.btree-group.same + .btree-brands { background: color-mix(in srgb, var(--good, #2e7d32) 9%, transparent); border: 1px dashed color-mix(in srgb, var(--good, #2e7d32) 45%, transparent); }
.btree-brand { display: flex; align-items: center; justify-content: center; min-height: 36px; min-width: 64px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #18212b; font-weight: 600; font-size: .85rem; }
.btree-brand img { height: 26px; max-width: 110px; object-fit: contain; }
.btree-brand.hit { outline: 3px solid var(--brand, #16356E); outline-offset: 2px; }
.btree-note { color: var(--muted); max-width: 70ch; }

/* Home: a small "Miles" button pinned to the truck card (PC), separate from the card's link */
.stwrap { position: relative; display: flex; } .stwrap > * { flex: 1; } .stwrap > a { padding-bottom: 44px; } .stbtn { position: absolute; right: 10px; bottom: 8px; }

/* tool checkout: videos for the tool model */
.tdvids { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tdvid a { text-decoration: none; color: inherit; display: block; } .tdvid img, .tdvid-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 2rem; background: var(--soft, rgba(127,127,127,.1)); }

/* About Bay Air: the Cycle of Value circle */
.card.cov { display: block; }
.cov-ring { position: relative; width: min(440px, 88vw); aspect-ratio: 1; margin: 12px auto 18px; border-radius: 50%; background-size: 78%; background-position: center; background-repeat: no-repeat; }
.cov-arrows { position: absolute; inset: 7%; border-radius: 50%; border: 3px dashed color-mix(in srgb, var(--brand, #16356E) 35%, transparent); }
.cov-center { position: absolute; left: 50%; top: 50%; width: 44%; transform: translate(-50%, -50%); background: rgba(255,255,255,.92); border-radius: 12px; padding: 6px; }
.cov-center img { width: 100%; display: block; }
.cov-step { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 86px; padding: 6px 8px; border-radius: 12px; background: #fff; color: #16356E; border: 2px solid #16356E; text-decoration: none; font-size: .82rem; line-height: 1.15; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.cov-step span { font-size: 1.2rem; }
.cov-step:hover, .cov-step:focus { background: #16356E; color: #fff; }
.cov-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cov-item { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; transition: box-shadow .3s; } .cov-item h3 { margin: 2px 0 4px; color: var(--brand, #16356E); }
.cov-item.flash { box-shadow: 0 0 0 3px #B0202F; }
@media (max-width: 420px) { .cov-step { min-width: 70px; font-size: .72rem; padding: 4px 6px; } }

/* site page: building files behind a tap */
.lfiles > summary { cursor: pointer; padding: 2px 0; }
.lfiles .card { box-shadow: none; border: 1px solid var(--line); }

/* site page: building documents by kind */
.sdocs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.sdoc-kind { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; } .sdoc-kind.empty { opacity: .6; }

/* site briefing */
.brief-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 2px 0 6px; } .brief-bar span { display: block; height: 100%; background: var(--good, #2e7d32); }
.brief-glance th { width: 30%; white-space: nowrap; }
.brief-full > summary { cursor: pointer; padding: 6px 0; }
.brief-sec { border-top: 1px solid var(--line); padding: 10px 0; }
.brief-sec h3 { font-size: 1rem; }

/* large sites: grouped equipment */
.ugroup { border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; margin: 6px 0; } .ugroup > summary { cursor: pointer; padding: 4px 0; }
.ugroup.sub { margin-left: 8px; border-style: dashed; }

/* certification board */
.cboard li { padding: 8px 4px; } .cboard li.me { background: color-mix(in srgb, var(--brand, #16356E) 8%, transparent); border-radius: 8px; }
.crank { width: 2.2rem; text-align: center; font-weight: 700; font-size: 1.1rem; } .cpts { font-size: 1.4rem; font-weight: 800; color: var(--brand, #16356E); min-width: 3rem; text-align: right; }

/* ---- desktop and tablet layouts (Tim 2026-11-25: phone looks right, desktop needs its own layout) ---- */
.side > * { flex-shrink: 0; }            /* a long menu must scroll, not squash the logo and links */
/* two columns on wide screens: main work on the left, reference on the right. On phones the columns dissolve
   (display: contents) and each panel's order puts the page back in its phone sequence. */
.two-col { display: flex; flex-direction: column; }
.two-col > .col-main, .two-col > .col-side { display: contents; }
@media (min-width: 1100px) {
  .content { max-width: 1560px; }
  .two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); gap: 0 16px; align-items: start; }
  .two-col > .col-main, .two-col > .col-side { display: block; min-width: 0; }
  .two-col > .col-side { position: sticky; top: 76px; max-height: calc(100vh - 90px); overflow-y: auto; padding-right: 2px; }
  .two-col > .col-side > div > .card:first-child, .two-col > .col-side > div > section:first-child { margin-top: 10px; }
}

/* desktop Home: one even row of stat tiles, then the day's work left and quick actions / my things right */
.home-stats { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important; margin-bottom: 14px; }
.home-cols > .col-main.stack, .home-cols > .col-side.stack { gap: 12px; }
.home-cols > .col-side { position: static !important; max-height: none !important; overflow: visible !important; }
@media (min-width: 1100px) { .home-cols > .col-main, .home-cols > .col-side { display: flex !important; flex-direction: column; gap: 12px; } }
.desk-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.desk-quick a { min-height: 64px; font-size: .9rem; }
@media (max-width: 1300px) { .desk-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- desktop look (Tim 2026-11-25: "still hate the card system" on PC). Phones keep their cards. On a wide screen
   the page is one white surface: sections are separated by thin rules instead of floating boxes, the Home stats are
   one strip, and the right-hand column reads as a side pane. ---- */
@media (min-width: 1100px) {
  body, .main { background: var(--panel); }
  .content .card { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 16px 2px 18px; }
  .content .card .card { border-top: 0; padding: 8px 0; }
  .content .card h2 { font-size: 1.05rem; }
  .content .card.sos-card { background: var(--bad-bg, #fdecee); border: 1px solid var(--bad, #b0202f); border-radius: 10px; padding: 14px 16px; }
  .content .banner { border-radius: 8px; }
  .two-col { gap: 0 32px; }
  .two-col > .col-side { border-left: 1px solid var(--line); padding-left: 24px; }
  .two-col > .col-main > div:first-child > .card:first-child, .two-col > .col-side > div:first-child > .card:first-child,
  .home-cols > div > .card:first-child, .home-cols > div > section:first-child { border-top: 0; padding-top: 4px; }
  /* Home: the stats as one strip */
  .home-stats { display: flex !important; gap: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); overflow: hidden; margin-bottom: 18px; }
  .home-stats > .card, .home-stats > .stwrap { flex: 1 1 0; min-width: 0; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; padding: 12px 16px; margin: 0; }
  .home-stats > .stwrap > .card { border: 0; padding: 0; background: transparent; }
  .home-stats > :last-child { border-right: 0; }
  .home-stats a.stat:hover { background: var(--panel); }
  /* quick actions as a compact toolbar */
  .desk-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; gap: 6px; }
  .desk-quick a { flex-direction: row; align-items: center; min-height: 42px; padding: 6px 10px; font-size: .88rem; background: var(--panel2); border-radius: 8px; }
  .desk-quick a span { font-size: 1.05rem; }
  .home-cols > div > .card, .home-cols > div > section, .home-cols > div > a.card { margin: 0 !important; }
}
@media (min-width: 1100px) {
  /* a section a page draws as a deliberate box (its own border or tinted background: an open agreement, the coverage
     terms, a summary) keeps its padding and corners in the flat desktop look */
  .content .card[style*="border:"] { border-radius: 10px; padding: 16px 20px; margin-top: 12px; }
  .content .card[style*="background"] { border: 0; border-radius: 8px; padding: 12px 16px; }
  /* inputs inside tables size to their content instead of stretching across the row */
  .content table input, .content table select { width: auto; min-width: 150px; max-width: 260px; }
}

/* site photos: the building photo large, more beside it */
.sphotos { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 10px 0 4px; }
.sphoto-cover { margin: 0; } .sphoto-cover img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 10px; display: block; background: var(--panel2); }
.sphoto-cover figcaption { margin-top: 4px; color: var(--muted); }
.sphoto-strip { display: flex; gap: 8px; overflow-x: auto; align-items: flex-start; }
.sphoto-strip figure { margin: 0; flex: 0 0 auto; } .sphoto-strip img { width: 110px; height: 80px; object-fit: cover; border-radius: 6px; display: block; }
.sphoto-strip figcaption { max-width: 110px; color: var(--muted); }
.sphoto-add { align-self: center; flex: 0 0 auto; }
.sphoto-empty { margin: 10px 0 4px; }
.sphoto-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; max-height: 300px; overflow: auto; margin-top: 6px; }
.sphoto-pick button { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; } .sphoto-pick button:hover { border-color: var(--brand); }
.sphoto-pick img { width: 100%; height: 70px; object-fit: cover; border-radius: 4px; display: block; }
@media (min-width: 1100px) {
  .sphotos { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .sphoto-cover img { max-height: 360px; }
  .sphoto-strip { flex-wrap: wrap; overflow: visible; align-content: flex-start; }
}

/* announcements from management on Home */
.ann-board { margin-bottom: 12px; }
.ann { border-left: 3px solid var(--brand); padding: 6px 0 6px 10px; margin: 6px 0; }
.ann > summary { cursor: pointer; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; list-style: none; }
.ann > summary::-webkit-details-marker { display: none; }
.ann-important { border-left-color: var(--warn); } .ann-urgent { border-left-color: var(--bad); background: var(--bad-bg, #fdecee); border-radius: 0 8px 8px 0; padding-right: 10px; }
.ann-b { margin-top: 6px; } .ann-b p:last-child { margin-bottom: 0; }

/* full forecast (kit weather ui) inside the office card: flat inner sections */
.wx-full .nwx .card { margin: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; } .seg button { min-height: 38px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: inherit; cursor: pointer; font: inherit; } .seg button.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* on-call cover needed: stands out like tech support needed */
.cover-card { border-left: 4px solid var(--warn); }

/* About Bay Air: phone keeps one column; desktop puts identity beside contact, the cycle ring beside its steps,
   and the history across the page */
.co-logo { max-width: 300px; width: 100%; display: block; margin: 0 auto 8px; }
.co-what { text-align: center; max-width: 720px; margin: 0 auto 12px; }
@media (min-width: 1100px) {
  .co-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 28px; align-items: start; margin-bottom: 12px; }
  .co-hero .co-logo { margin: 0 0 10px; max-width: 340px; } .co-hero .co-what { text-align: left; margin: 0 0 14px; font-size: 1.05rem; }
  .co-contact { border-left: 1px solid var(--line); padding-left: 24px !important; }
  .cov-side .cov-wrap { display: grid; grid-template-columns: minmax(380px, 460px) minmax(0, 1fr); gap: 28px; align-items: start; }
  .cov-side .cov-ring { margin: 0; position: sticky; top: 90px; }
  .cov-side .cov-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
  .co-history .timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 0; border-left: 0; }
  .co-history .timeline li { border-top: 3px solid var(--brandred); padding: 16px 18px 0 0; }
  .co-history .timeline li::before { left: 0; top: -9px; }
}

/* page could not open: managers only / no signal */
.card.denied { text-align: center; padding: 32px 16px; max-width: 520px; margin: 24px auto; } .card.denied h2 { margin: 6px 0; } .denied-ic { font-size: 2rem; }
/* calendar toolbar: month nav on one line, filters on one line (it wrapped onto three rows on phones) */
.calnav { flex-wrap: nowrap; } .calnav h2 { min-width: 150px; white-space: nowrap; }
@media (max-width: 760px) { .calbar { gap: 8px; } .calnav { width: 100%; } .calnav h2 { flex: 1; min-width: 0; font-size: 1.05rem; } .calfilt { width: 100%; flex-wrap: nowrap; } .calfilt select { flex: 1; min-width: 0; width: auto !important; } }
/* desktop: the big greeting only on Home; other pages get a slim header so the page starts higher */
@media (min-width: 761px) { body:not(.on-home) .topbar .greet p { display: none; } body:not(.on-home) .topbar .greet h1 { font-size: 1rem; } body:not(.on-home) .topbar { padding-top: 6px; padding-bottom: 6px; } }
/* touch screens: small text links still get a 40px+ target (Reply, "All", card-header links, weather links, breadcrumbs, document rows, skill cells) */
@media (pointer: coarse), (max-width: 760px) {
  .taplink, .card-h a:not(.btn), nav.small a, .sdocs a:not(.btn) { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; }
  .taplist a { display: block; padding: 10px 0; }
  .lvcell { min-width: 40px; min-height: 40px; }
}

/* start-up: pressure test / evacuation / charge */
.su-h3 { font-size: .95rem; margin: 12px 0 4px; }
.su-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.su-grid3 { display: grid; grid-template-columns: 60px 1.4fr 1fr 1fr; gap: 6px; align-items: end; margin-bottom: 4px; }
@media (max-width: 520px) { .su-grid3 { grid-template-columns: 1fr 1fr; } .su-grid3 > b { grid-column: 1 / -1; } }
.su-ptres { background: var(--wash, #F3F6FB); border-left: 3px solid var(--brand, #203D75); padding: 8px 10px; margin: 10px 0 6px; border-radius: 4px; }
.su-graph svg { display: block; margin: 6px 0; background: #fff; border: 1px solid #E1E6EE; border-radius: 4px; }
.su-plate { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; } .su-plate img { width: 160px; height: 120px; object-fit: cover; border: 1px solid #E1E6EE; border-radius: 6px; }
.su-noplate { width: 160px; height: 90px; border: 1px dashed #C9D2DE; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: .8rem; color: #8A93A3; }
.su-bar { display: inline-block; margin-left: 6px; vertical-align: middle; }
/* everything for this unit */
.kit-bar { height: 8px; background: #EEF1F6; border-radius: 4px; margin: 10px 0 4px; overflow: hidden; } .kit-bar > div { height: 100%; background: var(--good, #1F6B40); }
.kit-item { border-bottom: 1px solid #EEF1F6; padding: 6px 0; } .kit-item summary { cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: center; }
.kit-dot { width: 10px; height: 10px; border-radius: 5px; background: #C9D2DE; flex: none; } .kit-item.have .kit-dot { background: var(--good, #1F6B40); }
.kit-item.missing summary b { color: #5A6472; font-weight: 600; } .kit-item ul { margin: 6px 0 2px 18px; }
.kit-chips { display: flex; flex-wrap: wrap; gap: 6px; } .kit-chips .chip { text-decoration: none; }
.lvcell sup.selfv { font-size: .62em; color: var(--muted, #5A6472); margin-left: 2px; font-weight: 400; }
/* LinkedIn-style profiles and people cards */
.li-top { padding: 0; overflow: hidden; } .li-banner { height: 96px; background: linear-gradient(120deg, #14243F, #203D75 60%, #2A4C8F); border-bottom: 3px solid #97151F; }
.li-head { display: flex; gap: 16px; align-items: flex-end; padding: 0 18px 16px; margin-top: -56px; flex-wrap: wrap; }
.li-av { border-radius: 50%; border: 4px solid var(--card, #fff); object-fit: cover; background: #EEF1F6; flex: none; }
.li-ini { display: inline-flex; align-items: center; justify-content: center; background: #203D75; color: #fff; font-weight: 700; }
.li-id { min-width: 0; padding-top: 60px; flex: 1; } .li-id h1 { margin: 0; font-size: 1.5rem; } .li-title { font-size: 1rem; } .li-meta { font-size: .85rem; color: var(--muted, #5A6472); margin-top: 2px; }
.li-list { list-style: none; margin: 0; padding: 0; } .li-cert { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line, #E1E6EE); } .li-cert:last-child { border-bottom: 0; }
.li-logo { flex: none; border-radius: 6px; border: 1px solid var(--line, #E1E6EE); background: #fff; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; padding: 4px; }
.li-logo img { max-width: 100%; max-height: 100%; object-fit: contain; } .li-badge { color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .5px; border: 0; }
.li-txt { min-width: 0; flex: 1; } .li-name { font-weight: 700; } .li-iss { font-size: .9rem; } .li-dates { font-size: .82rem; color: var(--muted, #5A6472); margin-top: 2px; }
.li-old summary { cursor: pointer; color: var(--muted, #5A6472); margin-top: 8px; }
.li-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 12px; }
.li-card { padding: 0 12px 12px; overflow: hidden; text-align: center; text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.li-cbanner { height: 44px; background: linear-gradient(120deg, #14243F, #2A4C8F); margin: 0 -12px -36px; align-self: stretch; }
.li-card .li-av { border-width: 3px; } .li-cname { font-weight: 700; margin-top: 4px; } .li-ctitle { font-size: .82rem; color: var(--muted, #5A6472); min-height: 1.2em; }
.li-clogos { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; margin: 6px 0 2px; } .li-clogos .li-logo { padding: 2px; } .li-clogos .li-badge { font-size: 8px; }
.kit-chips .chip.on { background: var(--brand, #203D75); color: #fff; }
.li-facts th { width: 38%; color: var(--muted, #5A6472); font-weight: 600; }
.ann.celebrate { background: linear-gradient(90deg, #FFF7E6, transparent); border-left: 4px solid #E0A526; padding: 8px 10px; border-radius: 6px; margin-bottom: 8px; }
/* Manage console and Admin system */
.mg-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; } .mg-strip div { display: flex; flex-direction: column; } .mg-strip b { font-size: 1.05rem; }
.mg-cols { display: grid; gap: 12px; } @media (min-width: 1000px) { .mg-cols { grid-template-columns: 3fr 2fr; align-items: start; } }
.mg-cols > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mg-g { font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted, #5A6472); margin: 12px 0 4px; }
.mg-list { list-style: none; margin: 0; padding: 0; } .mg-list li { border-bottom: 1px solid var(--line, #E1E6EE); display: flex; align-items: center; gap: 8px; padding: 6px 0; } .mg-list li:last-child { border-bottom: 0; }
.mg-list a { display: flex; align-items: center; gap: 10px; width: 100%; color: inherit; text-decoration: none; min-height: 40px; } .mg-i { font-size: 1.2rem; width: 1.6em; text-align: center; flex: none; }
.mg-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.mg-tool { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border: 1px solid var(--line, #E1E6EE); border-radius: 8px; color: inherit; text-decoration: none; } .mg-tool span span { display: block; } .mg-tool:hover { border-color: var(--brand, #203D75); }
.mg-ann { margin: 6px 0; } .mg-bar { height: 6px; background: var(--line, #E1E6EE); border-radius: 3px; overflow: hidden; margin-top: 3px; } .mg-bar i { display: block; height: 100%; background: var(--brand, #203D75); }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } .mg-team td, .mg-perm td { vertical-align: middle; } .mg-team td:first-child { min-width: 200px; }
.mg-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; } .mg-ini { display: inline-flex; align-items: center; justify-content: center; background: #203D75; color: #fff; font-size: 13px; font-weight: 700; }
.mg-ph td { background: var(--soft, #F3F5F9); font-weight: 700; } .mg-pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; background: var(--soft, #F3F5F9); padding: 8px; border-radius: 6px; max-height: 40vh; overflow: auto; }
/* ⓘ how-to-take-this-reading button on report fields (Tim 2026-11-27) */
.rhelp { border: 0; background: none; color: var(--brand); font-size: 1rem; padding: 0 6px; min-width: 32px; min-height: 32px; cursor: pointer; vertical-align: middle; }
.rhelp-body ol li { margin: 3px 0; }
/* desktop chat (Tim 2026-11-27): conversations on the left, the open conversation on the right; one pane at a time when narrow */
.chatwrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); height: calc(100vh - 120px); min-height: 420px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card, #fff); }
.chatlist { border-right: 1px solid var(--line); overflow-y: auto; }
.chsec { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #667); padding: 10px 10px 4px; }
.chrow { display: flex; align-items: center; gap: 8px; padding: 7px 10px; color: inherit; text-decoration: none; width: 100%; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; min-height: 36px; }
.chrow:hover { background: var(--soft, #eef2f8); } .chrow.on { background: var(--soft, #eef2f8); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }
.chrow .badge { background: var(--brand); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #b9c1cc; flex: none; } .dot.live { background: #2f9e44; }
.chatconv { display: flex; flex-direction: column; min-width: 0; }
.chhead { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.chback { display: none; }
.chmsgs { flex: 1; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 10px; }
.chday { text-align: center; font-size: .75rem; color: var(--muted, #667); margin: 6px 0; }
.chmsg { display: flex; gap: 8px; align-items: flex-start; } .chbody { min-width: 0; max-width: 80%; }
.chtext { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--soft, #eef2f8); padding: 6px 10px; border-radius: 10px; margin-top: 2px; }
.chmsg.mine .chtext { background: color-mix(in srgb, var(--brand) 14%, transparent); }
.chimg { max-width: 240px; max-height: 240px; border-radius: 8px; margin-top: 4px; display: block; }
.chcompose { display: flex; gap: 6px; align-items: flex-end; padding: 8px 10px; border-top: 1px solid var(--line); }
.chcompose textarea { flex: 1; resize: none; min-height: 40px; font: inherit; }
@media (max-width: 720px) {
  .chatwrap { grid-template-columns: 1fr; height: calc(100vh - 150px); }
  .chatwrap.has-conv .chatlist { display: none; } .chatwrap:not(.has-conv) .chatconv { display: none; }
  .chback { display: inline-flex; }
}
/* popped-out chat window: just the chat */
body.popchat .side, body.popchat .topbar, body.popchat .tabbar, body.popchat #wxbanner { display: none !important; }
body.popchat .content { padding: 0 !important; max-width: none !important; }
body.popchat .chatwrap { height: 100vh; border: 0; border-radius: 0; }
/* Signed out, or still on a temporary password (Tim, 2026-12-01): no menu, tab bar, top bar or banners.
   Phone: navy page (PIP cover gradient), white card with the colour logo, big fields.
   PC (900px+), North Star layout: dark page, tall navy brand panel (white logo, SERVICE DASHBOARD, red rule,
   BUILDING CONFIDENCE) beside a dark form card. */
body.signed-out .side, body.signed-out .tabbar, body.signed-out #wxbanner, body.signed-out .topbar { display: none !important; }
body.signed-out .shell { display: block !important; grid-template-columns: 1fr !important; }
body.signed-out .main, body.signed-out .content { margin: 0 !important; padding: 0 !important; max-width: none !important; background: transparent !important; }
.signin-wrap { position: fixed; inset: 0; overflow: auto; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px; box-sizing: border-box;
  background: linear-gradient(160deg, #14243F 0%, #16356E 55%, #2A4C8F 100%); }
.signin-pair { width: 100%; display: flex; justify-content: center; }
.signin-brand { display: none; }
.signin-card { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(5, 15, 35, .45); padding: 28px 24px 22px; box-sizing: border-box; }
.signin-card .logo { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto 12px; }
.signin-card .rule, .signin-brand .rule { width: 52px; height: 3px; background: var(--brandred); border-radius: 2px; margin: 0 auto 14px; }
.signin-card .kicker { text-align: center; font: 700 .72rem var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--brandred); }
.signin-card h1 { text-align: center; font: 600 1.6rem var(--font-head); color: var(--brand); margin: 2px 0 6px; }
.signin-card .lead { text-align: center; color: var(--muted); font-size: .92rem; margin: 0 0 18px; }
.signin-card label.f { font-weight: 600; }
.signin-card input { font-size: 16px; padding: 12px; border-radius: 10px; }   /* 16px stops iPhones zooming in */
.signin-card .remember { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .88rem; margin: 2px 0 4px; cursor: pointer; }
.signin-card .remember input { width: 18px; height: 18px; padding: 0; accent-color: var(--brand); }
.signin-card form .btn.primary { width: 100%; padding: 13px; font-size: 1.02rem; border-radius: 10px; margin-top: 4px; background: var(--brand); border-color: var(--brand); }
.signin-card .help { text-align: center; font-size: .82rem; color: var(--muted); margin: 16px 0 0; }
.signin-foot { margin-top: 18px; text-align: center; color: rgba(255,255,255,.75); font-size: .76rem; line-height: 1.6; }
.signin-foot b { color: #fff; letter-spacing: .18em; text-transform: uppercase; font: 700 .74rem var(--font-head); }
@media (min-width: 900px) {
  .signin-wrap { background: radial-gradient(ellipse at 70% 0%, #14263d 0%, #0b1622 55%, #08111b 100%); }
  .signin-pair { gap: 56px; align-items: center; }
  .signin-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 300px; height: 380px; flex: none; box-sizing: border-box; padding: 28px;
    background: radial-gradient(circle at 50% 30%, #2A4C8F 0%, #16356E 50%, #14243F 100%); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
  .signin-brand .biglogo { width: 250px; height: auto; margin-bottom: 26px; }   /* white artwork made from the .ai source */
  .signin-brand .bname { color: #fff; font: 700 1.1rem var(--font-head); letter-spacing: .24em; text-transform: uppercase; text-align: center; }
  .signin-brand .rule { margin: 0 auto 12px; width: 64px; }
  .signin-brand .btag { color: rgba(255,255,255,.8); font: 500 .8rem var(--font-head); letter-spacing: .24em; text-transform: uppercase; }
  .signin-card { max-width: 340px; background: rgba(22, 38, 58, .82); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 50px rgba(0,0,0,.5); padding: 28px 26px 22px; color: #e8eef6; backdrop-filter: blur(6px); }
  .signin-card .logo, .signin-card .rule.m, .signin-card .lead { display: none; }
  .signin-card .kicker { display: none; }
  .signin-card h1 { color: #fff; font-size: 1.15rem; margin: 0 0 16px; }
  .signin-card label.f { color: #c9d4e2; font-size: .82rem; }
  .signin-card input:not([type=checkbox]) { background: #0d1825; border: 1px solid rgba(255,255,255,.14); color: #fff; padding: 10px 12px; font-size: 14px; }
  .signin-card input:focus { border-color: #5aa0ff; outline: none; box-shadow: 0 0 0 2px rgba(90,160,255,.25); }
  .signin-card .remember { color: #c9d4e2; font-size: .8rem; } .signin-card .remember .muted { color: #8796ab; }
  .signin-card [data-show] { color: #c9d4e2; background: transparent; border: 0; box-shadow: none; }
  .signin-card [data-show]:hover { color: #fff; background: rgba(255,255,255,.08); }
  .signin-card form .btn.primary { background: #2f6fd6; border-color: #2f6fd6; color: #fff; font-size: .95rem; padding: 11px; box-shadow: 0 6px 18px rgba(47,111,214,.35); }
  .signin-card .help { color: #8796ab; font-size: .76rem; }
  .signin-card .callout.bad { background: rgba(176,32,47,.18); color: #ffd3d8; border-color: rgba(176,32,47,.5); }
  .signin-foot { color: rgba(255,255,255,.45); }
}

/* first paint, before main.js knows who is signed in (no menu flash on refresh) */
html.boot-out .side, html.boot-out .tabbar, html.boot-out .topbar, html.boot-out #wxbanner { display: none !important; }
html.boot-out .shell { display: block !important; }
html.boot-out body { background: linear-gradient(160deg, #14243F 0%, #16356E 55%, #2A4C8F 100%) fixed; min-height: 100vh; }
@media (min-width: 900px) { html.boot-out body { background: radial-gradient(ellipse at 70% 0%, #14263d 0%, #0b1622 55%, #08111b 100%) fixed; } }
html.boot-out #app > * { visibility: hidden; }
