/* =====================================================================================================================
   r6-app.css – what the live app adds to the Round 6 design CSS (r6.css, word for word). Only things a still picture
   can't show: real data lengths, hover / focus, the menus that open, the sticky left menu, the real map's controls, a few
   states. The look itself (colors, type, spacing, cards) is r6.css – nothing here restyles it.
   ===================================================================================================================== */
.hidden { display: none !important; }
html, body { margin: 0; }
body { background: #F2F3F6; }
html[data-theme='dark'] body { background: #0B0B0C; }
.pd { width: 100%; min-height: 100vh; min-height: 100dvh; position: relative; }
.pd .app { min-height: 100vh; min-height: 100dvh; grid-template-columns: 224px minmax(0, 1fr); }
.pd button { font-family: inherit; }
.pd .side { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; box-sizing: border-box; }
.pd .nav { background: none; width: 100%; text-align: left; font-size: 14px; cursor: pointer; font-family: inherit; }
.pd .nav:hover { background: var(--card); }
.pd .nav.hidden { display: none !important; }
.pd .stat { width: 100%; text-align: left; font-family: inherit; color: var(--ink); cursor: default; }
.pd button.stat { cursor: pointer; }
.pd .stat.off { border-color: #F3B4B4; }
.pd .stat.off .g { background: var(--late); box-shadow: 0 0 0 4px var(--lates); }
.pd .stat.soon .g { background: #98A2B3; box-shadow: none; }
.pd .stat.ai { background: var(--waits); border-color: var(--waitl); color: var(--wait); }
.pd .me { text-align: left; width: 100%; font-family: inherit; }
.pd .me button.mini { margin-left: auto; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--soft); display: grid; place-items: center; }
.pd .main { min-width: 0; }
.pd .top { flex-wrap: wrap; row-gap: 10px; }
.pd .top .search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; height: 40px; padding: 0 12px; width: 230px; color: var(--ink3); position: relative; }
.pd .top .search input { border: 0; outline: 0; background: none; width: 100%; font-size: 13.5px; color: var(--ink); height: 100%; }
.pd .top .search .res { position: absolute; left: 0; right: 0; top: 44px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px rgba(16, 24, 40, .18); z-index: 30; max-height: 360px; overflow: auto; padding: 6px; }
.pd .top .search .res button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 9px; font-size: 13px; }
.pd .top .search .res button:hover { background: var(--soft); }
.pd .ibtn { cursor: pointer; }
.pd .ibtn.off { opacity: .55; }
.pd .btn:disabled, .pd .btn.dis { opacity: .5; cursor: default; }
.pd .btn:hover:not(.pri):not(:disabled) { background: var(--soft); }
.cols3 { display: grid; grid-template-columns: 330px minmax(0, 1fr) 420px; gap: 18px; align-items: start; }
.cols3 > * { min-width: 0; }
.col-mid { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.col-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 1500px) { .cols3 { grid-template-columns: 310px minmax(0, 1fr) 380px; } }
@media (max-width: 1439px) { .cols3 { grid-template-columns: 310px minmax(0, 1fr); } .cols3 .col-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); align-items: start; } .cols3 .col-right > .row:first-child { grid-column: 1 / -1; } }
.page { min-width: 0; }
.page.hidden { display: none !important; }
.main { gap: 18px; }

/* driver rows */
.pd .dr { cursor: pointer; }
.pd .dr:hover { background: var(--soft); }
.pd .dr.drop-hover { background: var(--oks); box-shadow: inset 3px 0 0 var(--ok); }
.pd .dr .st { background: var(--ok); }
.pd .grp.fold { cursor: pointer; display: flex; align-items: center; gap: 6px; }
.pd .grp .n { margin-left: auto; font-weight: 550; }
.pd .dr .sub2 { font-size: 12.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd .dr .r .t { white-space: nowrap; }
.pd .dr .r .s { font-weight: 550; font-size: 12.5px; white-space: nowrap; }
.pd .dr.late .r .s, .pd .s.late { color: var(--late); }
.pd .s.ok { color: var(--ok); } .pd .s.wait { color: var(--wait); } .pd .s.pu { color: var(--pu); }
.pd .empty { color: var(--ink3); font-size: 13px; padding: 12px 18px; }

/* map card */
.pd .mapc { margin: 0 14px 14px; cursor: grab; touch-action: none; }
.pd .mapc.drag { cursor: grabbing; }
.pd .mapc svg.gmap { user-select: none; }
.pd .mapseg button, .pd .mapctl button { cursor: pointer; font-family: inherit; }
.pd .mapseg button:disabled { opacity: .45; cursor: default; }
.pd .mapctl button svg { width: 16px; height: 16px; }
.pd .mapc [data-driver], .pd .mapc [data-fac] { cursor: pointer; }
.pd .mapnote { position: absolute; right: 12px; bottom: 12px; max-width: 300px; font-size: 11.5px; color: var(--ink2); padding: 6px 10px; }
.pd .mapcard { position: absolute; right: 12px; top: 60px; width: 290px; padding: 12px 14px; z-index: 4; }
.pd .mapcard b { font-size: 14px; }
.pd .mapcard .x { position: absolute; right: 8px; top: 8px; border: 0; background: none; font-size: 16px; }

/* order queue */
.pd .qrow { cursor: default; }
.pd .qrow.sel { background: var(--soft); box-shadow: inset 3px 0 0 var(--navy); }
.pd .qrow .nos { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.pd .qrow .nos .row { gap: 8px; }
.pd .qrow .chipsel { display: inline-flex; gap: 4px; margin-left: 4px; }
.pd .qrow .chipsel button { height: 22px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--line2); background: var(--card); font-size: 11.5px; font-weight: 650; color: var(--ink2); cursor: pointer; }
.pd .qrow .chipsel button.on { background: var(--soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink3); }
.pd .qrow .more { width: 30px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.pd .qrow .sug .btn { height: 28px; }
.pd .qrow .sug .alts { color: var(--ink3); font-size: 12px; }
.pd .qrow .addno { display: flex; gap: 6px; margin-top: 8px; }
.pd .qrow .addno input { height: 32px; border: 1px solid var(--line2); border-radius: 9px; padding: 0 10px; background: var(--card); color: var(--ink); min-width: 0; }
.pd .qrow .addno input.qt { width: 54px; }
.pd .qrow.fresh { animation: neworder 1s ease-in-out 10; }
.pd .qbar { display: flex; align-items: center; gap: 10px; padding: 8px 18px; background: var(--soft); border-top: 1px solid var(--line); font-size: 13px; }
.pd .qrow .reading { display: flex; align-items: center; gap: 8px; }
.pd .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--ink); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.pd .sh { font-size: 11.5px; }

/* route cards, stop rows, the ⋯ menu */
.pd .rc { position: relative; }
.pd .rc.open-menu { overflow: visible; }
.pd .rs { position: relative; }
.pd .rs.late { background: var(--lates); }
.pd .rs .k { cursor: default; }
.pd .rs .photos { display: flex; gap: 6px; margin-top: 6px; }
.pd .rs .photos img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.pd .rs .chain { font-size: 12px; color: var(--ink2); margin-top: 3px; }
.pd .menu { right: 0; top: 40px; max-height: 70vh; overflow: auto; }
.pd .menu .mi { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; font-family: inherit; color: var(--ink); }
.pd .menu .mi:hover:not(:disabled) { background: var(--soft); }
.pd .menu .mi:disabled { opacity: .5; cursor: default; }
.pd .menu a.mi { text-decoration: none; }
.pd .menu .mi.red { color: var(--late); }
.pd .rbtns .btn.pri { background: var(--navy); color: #fff; border-color: var(--navy); }
.pd.dark .rbtns .btn.pri { color: #0B0B0C; }
.pd .stage.st-del { background: var(--oks); color: var(--ok); }
.pd .stage.st-warn { background: var(--waits); color: var(--wait); }
.pd .chipnote { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 11.5px; font-weight: 650; background: var(--soft); color: var(--ink2); border: 1px solid var(--line); }
.pd .chipnote.ok { background: var(--oks); color: var(--ok); border-color: transparent; }
.pd .chipnote.late { background: var(--lates); color: var(--late); border-color: transparent; }
.pd .chipnote.wait { background: var(--waits); color: var(--wait); border-color: transparent; }

/* the red banner (the two warnings) */
.pd .banner .x { border: 0; background: none; font-size: 16px; color: inherit; cursor: pointer; }
.pd .banner b { white-space: nowrap; }
.pd .banner > span:not(.sp) { min-width: 0; }
.pd .banner.red { animation: bannerglow 2.4s ease-in-out infinite; }

/* the "New order!" van */
.van-alert { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 60; border: 0; background: none; padding: 0; cursor: pointer; }
.van-bubble { display: inline-block; background: var(--navy); color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 14px; box-shadow: 0 10px 30px rgba(16, 24, 40, .25); animation: rise .35s ease-out; }
.pd.dark .van-bubble { color: #0B0B0C; }

/* popovers in pop-up land keep their own legacy look (.lg); the parts that live inside the Round 6 page: */
.pd .check-board { border-color: var(--waitl); }

/* the two sheets of a phone are built in the phone group; until then the page just stacks */
@media (max-width: 760px) {
  .pd .app { grid-template-columns: 1fr; }
  .pd .side { display: none; }
  .cols3 { grid-template-columns: 1fr; }
  .pd .main { padding: 14px 14px 90px; }
}

/* pop-ups, toasts and forms are the live board's own (legacy.css, under .lg): graphite when dark */
:root[data-theme='dark'] { --bg: #0B0B0C; --panel: #151517; --panel-2: #1C1C1F; --line: #2B2B30; --field-line: #3A3A41; --text: #F5F5F3; --muted: #A8A8AF; --brand: #0B0B0C; color-scheme: dark; }
.lg { color: var(--text); }
#loginView.lg, .lg > #loginView { color: var(--text); }

/* sign-in (stop-gap from group 1 – rebuilt to Round 6 #1 in its own step) */
.lg { --navy: #111A2E; --on-navy: #fff; --in: #2563EB; --in-soft: #E7EFFE; }
:root[data-theme='dark'] .lg { --navy: #F5F5F3; --on-navy: #0B0B0C; --in: #5B8CFF; --in-soft: #122142; --ink2: #D6D6D2; }

.lg .login-wrap { background: var(--bg); color: var(--text); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 480px); padding: 0; min-height: 100vh; min-height: 100dvh; }
.lg .login-hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #1C2433 0%, #0B0F17 70%); color: #EFEBE1; padding: 36px 40px; display: flex; flex-direction: column; justify-content: space-between; }
.lg .login-hero-brand { display: flex; gap: 12px; align-items: center; position: relative; z-index: 1; }
.lg .login-hero-brand .logo { background: linear-gradient(135deg, #FF9A3D, #E2600B); color: #1A0E05; }
.lg .login-hero-brand b { display: block; font-size: 17px; }
.lg .login-hero-brand span { font-size: 12.5px; color: #A8A8AF; }
.lg .login-hero-text { position: relative; z-index: 1; }
.lg .login-hero-text h1 { font-size: 44px; letter-spacing: -0.03em; margin: 0 0 8px; font-weight: 700; }
.lg .login-hero-text p { margin: 0; color: #C9C5BC; font-size: 15px; }
.lg .login-hero-map { position: absolute; inset: 10% -5% 0 5%; width: 100%; height: 90%; color: #F3C97A; }
.lg .login-hero-map .hub { fill: #E2600B; }
.lg .login-hero-map .hub-ring { fill: none; stroke: #E2600B; stroke-width: 2; opacity: 0.45; }
.lg .login { background: var(--panel); border-left: 1px solid var(--line); padding: 56px 44px; max-width: none; margin: 0; justify-content: center; gap: 14px; box-shadow: none; border-radius: 0; }
.lg .login-card-head { display: block; }
.lg .login-card-head h1 { font-size: 28px; margin: 4px 0 6px; letter-spacing: -0.02em; color: var(--text); }
.lg .login-kicker { font-size: 11.5px; letter-spacing: 0.12em; font-weight: 650; color: var(--muted); display: block; margin-bottom: 8px; }
.lg .login .people { display: flex; flex-wrap: wrap; gap: 8px; }
.lg .login .lfield span, .lg .login .vfield span { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.lg .login input { height: 46px; border-radius: 12px; background: var(--panel); color: var(--text); border: 1px solid var(--field-line); }
.lg .login-submit { height: 50px; border-radius: 14px; background: var(--navy); color: var(--on-navy); border: 0; font-weight: 650; font-size: 16px; }
.lg .faceid-btn { height: 46px; border-radius: 14px; background: var(--panel); color: var(--text); border: 1px solid var(--field-line); font-weight: 600; }
.lg .login-or { color: var(--muted); }
.lg .login-note, .lg .login-remember, .lg .login-view-note { color: var(--muted); }
.lg .login .err { color: var(--bad); }
.lg .login .people { display: flex; flex-wrap: wrap; gap: 8px; }
.lg .login .pchip span { flex-direction: row; gap: 8px; padding: 6px 14px 6px 6px; min-height: 44px; border-radius: 12px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.lg .login .pchip span::before { width: 30px; height: 30px; font-size: 13px; background: var(--field-line); color: var(--text); }
.lg .login .pchip input:checked + span { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.lg .login .pchip input:checked + span::before { background: rgba(255, 255, 255, 0.18); color: inherit; }
.lg .login .pchip input:focus-visible + span { outline: 2px solid var(--in); }
.lg .login .lfield input, .lg .login .vfield input { background: var(--panel); color: var(--text); border: 1px solid var(--field-line); }
.lg .login .lfield input:focus, .lg .login .vfield input:focus { outline: none; border-color: var(--in); box-shadow: 0 0 0 3px var(--in-soft); }
.lg .login-submit, .lg .login.has-faceid .login-submit { background: var(--navy); color: var(--on-navy); border: 0; }
.lg .faceid-btn { background: var(--panel); color: var(--text); border: 1px solid var(--field-line); font-size: 15px; min-height: 48px; }
.lg .login-or span { background: var(--line); }
.lg .login-remember { color: var(--muted); }
@media (min-width: 720px) {
.lg .login-remember { display: flex; }
}
.lg .login-remember input { accent-color: var(--navy); }
.lg .login-note { text-align: left; color: var(--muted); }

/* the Order Desk ("Paste order") is a side panel on laptops (the live board's phone sheet is kept) */
@media (min-width: 761px) {
  .lg #deskPanel.open { position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: 460px; max-width: 92vw; z-index: 70; overflow: auto; border-radius: 0; margin: 0; box-shadow: -20px 0 60px rgba(0, 0, 0, .28); padding-bottom: 20px; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pd .dr .sub2 { white-space: normal; overflow: visible; text-overflow: clip; }
.pd .legend { white-space: nowrap; flex-wrap: wrap; }
.pd .legend span { white-space: nowrap; }
.pd .stat.ai { font-size: 12.5px; font-weight: 600; padding: 9px 12px; }

.pd .ch h2, .pd .ch .lnk, .pd .ch .meta { white-space: nowrap; }
.pd .top .search { width: 250px; }
.pd .legend { max-width: calc(100% - 24px); }

.pd .inchold { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); cursor: pointer; }
.pd .inchold input { width: 16px; height: 16px; accent-color: var(--navy); }
/* the ⋯ menu opens to the left of its button and stays inside the screen */
.pd .menu { right: 0; left: auto; max-width: min(240px, calc(100vw - 24px)); }
.pd .rs .menu { right: 0; }
/* the ⋯ menu: as wide as its words (never wraps or clips a hint), opens to the left of its button, above the next card */
.pd .menu { width: max-content; min-width: 236px; max-width: min(340px, calc(100vw - 24px)); z-index: 40; }
.pd .menu .mi { white-space: nowrap; }
.pd .menu .mi .k { white-space: nowrap; padding-left: 14px; }
.pd .rc.open-menu { z-index: 30; }
.pd .qrow .menu { z-index: 40; }
/* hints inside the menu are plain words – not the timeline circle (.rs .k) */
.pd .rs .menu .mi .k { width: auto; height: auto; border: 0; border-radius: 0; background: none; display: inline; margin: 0 0 0 auto; padding-left: 14px; font-size: 11.5px; color: var(--ink3); font-weight: 500; place-items: unset; }

/* ---------- Round 6 pop-ups (public/js/popups.js) ---------- */
.pd .r6dim { position: fixed; inset: 0; z-index: 90; display: flex; padding: 4vh 16px; overflow: auto; background: rgba(15, 23, 40, .35); }
.pd.dark .r6dim { background: rgba(0, 0, 0, .58); }
.pd .r6modal { margin: auto; }
.pd .dcard { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: pointer; margin-bottom: 6px; background: var(--card); position: relative; }
.pd .dcard.sel { border: 2px solid var(--navy); padding: 9px 11px; }
.pd .dcard input { position: absolute; opacity: 0; pointer-events: none; }
.pd .asg-drivers { max-height: 210px; overflow: auto; }
.pd .asg-order { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; background: var(--soft); }
.pd .asg-order .x { border: 0; background: none; color: var(--ink3); cursor: pointer; font-size: 14px; }
.pd .asg-more { max-height: 160px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; margin: 6px 0; }
.pd .asg-pick { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.pd .r6modal .stp b { display: block; }
.pd .r6modal .stp > span:last-child { align-self: start; }
/* the whole screen edge pulses red (Round 6 #18) */
.pd.redge:after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 95; box-shadow: inset 0 0 0 5px #D92D20, inset 0 0 80px rgba(217, 45, 32, .35); animation: redpulse 1.4s ease-in-out infinite; }
/* a new order (Round 6 #18): purple pill, purple outline, the card shakes 10 s */
.pd .qrow.fresh { box-shadow: inset 0 0 0 2px #7C3AED; border-radius: 14px; }
.pd .newpill { display: flex; width: max-content; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; background: #7C3AED; color: #fff; font-size: 11.5px; font-weight: 700; margin-bottom: 6px; }
.pd .inchold { white-space: nowrap; }

/* the red window: the board is dimmed grey like Round 6 – the red is only the pulsing edge (a thin glow, never over the board) */
.pd.dark .r6dim { background: rgba(8, 9, 12, .55); }
.pd.redge:after { box-shadow: inset 0 0 0 5px #D92D20, inset 0 0 36px rgba(217, 45, 32, .28); animation: redpulse2 1.4s ease-in-out infinite; }
@keyframes redpulse2 { 0%, 100% { box-shadow: inset 0 0 0 5px #D92D20, inset 0 0 36px rgba(217, 45, 32, .28); } 50% { box-shadow: inset 0 0 0 9px #D92D20, inset 0 0 52px rgba(217, 45, 32, .42); } }
/* while a red window is open, nothing sits on top of it: the question pop-ups and toasts wait and show when it closes */
body.redopen #toasts { display: none; }

/* ---------- Edit order / Add a stop (Round 6 #4) ---------- */
.pd .eo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.pd .r6modal .inp { background: var(--card); }
.pd .r6modal input.inp { width: 100%; box-sizing: border-box; font-family: inherit; outline: none; }
.pd .r6modal .inp:focus, .pd .r6modal .inp:focus-within { border-color: var(--navy); }
.pd .r6modal input.mono, .pd .r6modal .inp.mono { font-family: "Geist Mono", ui-monospace, monospace; }
.pd .eo-bare { border: 0; outline: 0; background: none; font: inherit; color: inherit; padding: 0; }
.pd .eo-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.pd .eo-more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink2); }
.pd .eo-raw { white-space: pre-wrap; font-size: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0 0; max-height: 180px; overflow: auto; }
.pd .r6modal .lab { color: var(--ink); }
.pd .r6modal .ac-list { position: absolute; left: 0; right: 0; top: 48px; z-index: 8; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(16, 24, 40, .18); padding: 6px; max-height: 250px; overflow: auto; }
.pd .r6modal .ac-list.hidden { display: none; }
.pd .r6modal .ac-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 550; cursor: pointer; }
.pd .r6modal .ac-item.on { background: var(--soft); }
.pd .r6modal .ac-item small { display: block; font-weight: 400; font-size: 12px; color: var(--ink3); }
.pd .r6modal .ac-item small.miles { display: inline; white-space: nowrap; font-family: "Geist Mono", ui-monospace, monospace; }
.pd .r6modal .ac-item.ac-web { color: var(--ink2); }
.pd .fld.asp { cursor: pointer; align-items: center; gap: 10px; }
.pd .fld.asp.sel { border: 2px solid var(--navy); padding: 7px 11px; }
.pd .fld.asp:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.pd .r6modal .seg button { white-space: nowrap; padding: 0 10px; }

/* ---------- Driver panel, Check in, Order Desk (Round 6 pieces) ---------- */
.pd .av .st { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--card); }

.pd #checkinForm .ac-list { position: absolute; left: 0; right: 0; top: 48px; z-index: 8; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(16, 24, 40, .18); padding: 6px; max-height: 250px; overflow: auto; }
.pd .ac-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 550; cursor: pointer; }
.pd .ac-item.on { background: var(--soft); }
.pd .ac-item small { display: block; font-weight: 400; font-size: 12px; color: var(--ink3); }

/* the Order Desk: a drawer on the right (a card; the board stays visible and usable beside it) */
.pd #deskPanel { display: none; position: fixed; top: 96px; right: 12px; bottom: 12px; width: 440px; max-width: calc(100vw - 24px); z-index: 70; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(16, 24, 40, .22); overflow: auto; }
.pd #deskPanel.open { display: block; }
.pd #deskPanel > header { display: flex; align-items: center; gap: 8px; padding: 18px 20px 4px; }
.pd #deskPanel > header h2 { font-size: 18px; margin: 0; font-weight: 650; }
.pd #deskPanel > header .right { margin-left: auto; display: flex; gap: 6px; }
.pd #orderForm { display: flex; flex-direction: column; gap: 12px; padding: 10px 20px 20px; }
.pd #orderForm .lab { color: var(--ink); }
.pd #orderForm input:not([type=file]) { width: 100%; height: 44px; border: 1px solid var(--line2); border-radius: 12px; padding: 0 14px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; box-sizing: border-box; outline: none; }
.pd #orderForm input:focus { border-color: var(--navy); }
.pd #orderForm .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd #orderForm .grid3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; }
.pd #orderForm .ac { position: relative; }
.pd #orderForm .ac-list { position: absolute; left: 0; right: 0; top: 48px; z-index: 8; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(16, 24, 40, .18); padding: 6px; max-height: 250px; overflow: auto; }
.pd #orderForm .ac-list.hidden { display: none; }
.pd #orderForm .seg { width: 100%; }
.pd #orderForm .seg button { flex: 1; white-space: nowrap; padding: 0 10px; }
.pd #orderForm .dropzone { display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--line2); border-radius: 14px; padding: 14px; cursor: pointer; font-size: 13px; color: var(--ink2); background: var(--soft); }
.pd #orderForm .dropzone:hover, .pd #orderForm .dropzone.over, .pd #orderForm .dropzone:focus { border-color: var(--navy); color: var(--ink); outline: none; }
.pd #orderForm .dropzone img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.pd #orderForm .dropzone.busy { opacity: .6; pointer-events: none; }
.pd #orderForm .row { display: flex; gap: 8px; }
.pd #orderForm .btn.lg { height: 46px; justify-content: center; }
.pd #orderForm .small { font-weight: 500; font-size: 12px; opacity: .8; }
.pd .desk-back { position: fixed; inset: 0; z-index: 69; background: rgba(15, 23, 40, .35); }
.pd .ac-item small.miles { display: inline; white-space: nowrap; font-family: "Geist Mono", ui-monospace, monospace; }
.pd .ac-item > span { min-width: 0; }

/* ---------- Driver panel (rebuilt from the Round 6 driver card + route timeline) ---------- */
.pd .r6modal #dwBody { padding: 22px; }
.pd .dw-head { display: flex; gap: 14px; align-items: center; }
.pd .dw-name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.pd .dw-code { font-size: 14px; font-weight: 600; color: var(--ink2); background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 1px 8px; }
.pd .dw-status { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.pd .dw-sub { font-size: 13px; color: var(--ink2); }
.pd .dw-contact { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; font-size: 13px; color: var(--ink); }
.pd .dw-contact > span { display: inline-flex; align-items: center; gap: 6px; }
.pd .dw-contact .ic { color: var(--ink3); }
.pd .dw-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: var(--waits); color: var(--wait); font-size: 13px; }
.pd .dw-sec { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 20px; }
.pd .dw-sec .mut { font-weight: 500; font-size: 13px; }
.pd .dw-empty { margin-top: 10px; padding: 18px; border: 1px dashed var(--line2); border-radius: 14px; font-size: 13.5px; color: var(--ink2); text-align: center; }
.pd .dw-tl { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.pd .dw-tl .rs { padding: 10px 14px; }
.pd .dw-hn { font-size: 14.5px; font-weight: 650; color: var(--ink); }
.pd .dw-no { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.pd .dw-when { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.pd .rs .k.now { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(17, 26, 46, .1); }
.pd.dark .rs .k.now { box-shadow: 0 0 0 3px rgba(232, 237, 246, .15); }
.pd .dw-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.pd .dw-actions .sp { flex: 1; }
.pd .dw-fine { margin-top: 12px; font-size: 11.5px; color: var(--ink3); }

/* Check in: Driver (with its suggestions right below), then Time and the button – nothing covers anything */
.pd #checkinForm.ci { display: flex; flex-direction: column; gap: 14px; position: static; }
.pd #checkinForm .lab { color: var(--ink); font-weight: 650; }
.pd #checkinForm input { width: 100%; height: 48px; border: 1px solid var(--line2); border-radius: 12px; padding: 0 14px; background: var(--card); color: var(--ink); font: inherit; font-size: 15px; box-sizing: border-box; outline: none; }
.pd #checkinForm input:focus { border-color: var(--navy); }
.pd #checkinForm .ac-list { position: static; margin-top: 8px; max-height: 196px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 6px; box-shadow: none; }
.pd #checkinForm .ac-list.hidden { display: none; }
.pd #checkinForm .ci-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: end; }
.pd #checkinForm .ci-go { height: 48px; justify-content: center; font-size: 15px; }
.pd #checkinForm .btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 2px 8px rgba(17, 26, 46, .22); }
.pd.dark #checkinForm .btn.primary { color: #0B0B0C; }
.pd .ci-help { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font-size: 12.5px; color: var(--ink2); padding: 12px 14px; border-radius: 14px; background: var(--soft); margin-top: 16px; }
.pd .ci-help b { color: var(--ink); font-weight: 650; }

/* Order Desk: Transfer from → to, and the picture / what was read in the empty space */
.pd #orderForm .ft-arrow { text-align: center; font-size: 18px; font-weight: 700; color: var(--ink2); margin: -4px 0; }
.pd #orderForm .ft-arrow.hidden { display: none; }
.pd #deskRead { padding: 0 20px 20px; }
.pd .dr-empty { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 28px 18px; border: 1px dashed var(--line2); border-radius: 16px; color: var(--ink2); font-size: 13px; }
.pd .dr-empty b { color: var(--ink); font-size: 14.5px; }
.pd .dr-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.pd .dr-pic { background: var(--soft); display: grid; place-items: center; padding: 10px; border-bottom: 1px solid var(--line); }
.pd .dr-img { max-width: 100%; max-height: 300px; border-radius: 10px; object-fit: contain; cursor: zoom-in; }
.pd .dr-read { padding: 14px 16px; }
.pd .dr-read > b { font-size: 14.5px; color: var(--ink); }
.pd .dr-rows { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin-top: 10px; font-size: 13.5px; }
.pd .dr-k { color: var(--ink2); }
.pd .dr-v { color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.pd .dr-note { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--waits); color: var(--wait); font-size: 12.5px; }

.pd .ac-item.ci-item { padding: 8px 10px; }
.pd .ci-who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.pd .ci-who b { font-size: 14.5px; color: var(--ink); font-weight: 650; }
.pd .ci-code { font-size: 12.5px; color: var(--ink2); }
/* a stronger header for the driver panel and the other windows built in step 3 */
.pd .r6modal #dwBody { padding: 0; }
.pd .dw-band { padding: 22px 22px 16px; background: linear-gradient(180deg, var(--soft) 0%, var(--card) 100%); border-radius: 20px 20px 0 0; }
.pd .dw-main { padding: 0 22px 22px; }
.pd .dw-route-h { font-size: 15px; font-weight: 700; }
.pd .dw-miles { font-weight: 700; color: var(--ink); }
.pd #deskPanel > header { background: linear-gradient(180deg, var(--soft) 0%, var(--card) 100%); padding: 18px 20px 12px; border-radius: 20px 20px 0 0; }
.pd #orderForm .dropzone > span:last-child { font-size: 13.5px; color: var(--ink2); }
.pd #orderForm .dropzone b { color: var(--ink); }
.pd #orderForm .btn.lg { font-weight: 700; }

/* the Order Desk's main buttons: dark with white words (light), light with dark words (dark) – the label is always readable */
.pd #orderForm .btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 2px 8px rgba(17, 26, 46, .22); }
.pd #orderForm .btn.primary .small { color: inherit; opacity: .8; }
.pd.dark #orderForm .btn.primary, .pd.dark #checkinForm .btn.primary { background: var(--navy); color: #0B0B0C; border-color: var(--navy); }
.pd #orderForm .btn.lg:not(.primary) { background: var(--card); color: var(--ink); }
/* driver panel: the state's buttons on the first row, Edit driver and Call on the second – the same in every state */
.pd .dw-actions { flex-direction: column; align-items: stretch; gap: 10px; }
.pd .dw-actions .sp { display: none; }

/* Activity today: a panel at the right under the title bar; the board stays visible and readable beside it */
.pd .r6dim.side { justify-content: flex-start; align-items: flex-end; padding: 92px 14px 14px; background: transparent; pointer-events: none; }
.pd .r6dim.side .r6modal { margin: 0; pointer-events: auto; max-height: calc(100vh - 110px); overflow: auto; box-shadow: 0 24px 60px rgba(16, 24, 40, .25); }
.pd .act-head { display: flex; align-items: flex-start; gap: 10px; padding: 18px 20px 12px; background: linear-gradient(180deg, var(--soft) 0%, var(--card) 100%); border-radius: 20px 20px 0 0; position: sticky; top: 0; z-index: 1; }
.pd .act-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.pd .act-sub { font-size: 12.5px; margin-top: 2px; }
.pd .act-row { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 13.5px; }
.pd .act-row:first-child { border-top: 0; }
.pd .act-time { font-weight: 700; color: var(--ink); font-size: 13px; }
.pd .act-text { color: var(--ink); line-height: 1.4; overflow-wrap: anywhere; }
.pd .act-text .mono { font-weight: 700; }
.pd .act-by { display: inline-block; margin-left: 8px; font-size: 12px; color: var(--ink2); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; }

.pd select.inp { width: 100%; box-sizing: border-box; font-family: inherit; appearance: auto; }
.pd .r6modal select.inp { background: var(--card); color: var(--ink); }

/* ---------- Orders page (#7) ---------- */
.pd .ordpage { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 20px; align-items: start; }
.pd .ordcard { overflow: hidden; }
.pd .ordcard .ch { padding: 18px 20px 6px; }
.pd .ord-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 20px 16px; }
.pd .ord-chips .chip .n { font-weight: 600; opacity: .7; margin-left: 2px; }
.pd table.ord { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pd table.ord th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink3); padding: 10px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); white-space: nowrap; }
.pd table.ord td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pd table.ord tr.orw { cursor: pointer; }
.pd table.ord tr.orw:hover { background: var(--soft); }
.pd table.ord tr.orw.sel { background: var(--soft); box-shadow: inset 3px 0 0 var(--navy); }
.pd table.ord .orw-no { font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.pd table.ord .orw-n { font-weight: 700; color: var(--ink); text-align: center; }
.pd table.ord .orw-drv { font-weight: 550; color: var(--ink); white-space: nowrap; }
.pd table.ord .orw-st { text-align: right; white-space: nowrap; }
.pd table.ord .orw-who { color: var(--ink); font-size: 13px; }
.pd .orddet { padding: 18px 20px 20px; position: sticky; top: 12px; }
.pd .od-top { display: flex; align-items: center; gap: 8px; }
.pd .od-no { font-size: 15px; font-weight: 700; color: var(--ink); }
.pd .od-hn { font-size: 18px; font-weight: 700; margin-top: 12px; color: var(--ink); }
.pd .od-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.pd .od-tiles .fld { padding: 10px 12px; }
.pd .od-tiles .lbl { font-size: 11.5px; color: var(--ink2); font-weight: 550; }
.pd .ordtile { font-size: 20px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.pd .od-sec { font-size: 13px; font-weight: 700; margin: 16px 0 8px; color: var(--ink); }
.pd .od-pic { display: flex; gap: 12px; align-items: flex-start; }
.pd .od-thumb { width: 110px; flex: none; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--soft); display: grid; place-items: center; }
.pd .od-thumb img { max-width: 100%; max-height: 150px; object-fit: contain; }
.pd .od-read { font-size: 13px; color: var(--ink2); min-width: 0; }
.pd .orddet .sug { margin: 16px 0 12px; }
.pd .btn.danger { color: var(--late); border-color: #F2B8B5; }
.pd.dark .btn.danger { border-color: #7A2B28; }
@media (max-width: 1250px) { .pd .ordpage { grid-template-columns: 1fr; } .pd .orddet { position: static; } }
/* Orders table: fits the card also with the Handoff / Received by columns (Done today) */
.pd table.ord th, .pd table.ord td { padding-left: 10px; padding-right: 10px; }
.pd table.ord .orw-no { white-space: normal; overflow-wrap: anywhere; min-width: 118px; }
.pd table.ord td:nth-child(3) { min-width: 170px; }
.pd .ordpage { grid-template-columns: minmax(0, 1fr) 400px; }
.pd .ordtile { font-size: 18px; white-space: nowrap; }
.pd .od-from { color: var(--ink); font-size: 13px; line-height: 1.4; }
.pd .od-match { margin-top: 8px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.4; background: var(--soft); color: var(--ink2); border: 1px solid var(--line); }
.pd .od-match.ok { background: var(--oks); color: var(--ok); border-color: transparent; }
.pd .od-match.warn { background: var(--waits); color: var(--wait); border-color: transparent; }
.pd .od-match b { color: inherit; }
.pd .ft-arrow { text-align: center; font-size: 18px; font-weight: 700; color: var(--ink2); margin: 2px 0 6px; }
/* the small questions, toasts and the Undo bar sit above Round 6's windows so they can always be answered (found Nov 21: a question asked from a window sat behind its dim layer) */
.lg .modal-back.ask { z-index: 100; }
.lg #toasts, .lg .undo-bar { z-index: 96; }
.lg .lightbox { z-index: 98; }

/* Empty state of a page (Kam, Nov 25: "draw the empty states … then build") – an icon, a heading, one sentence, one button. */
.pd .empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pd .empty-state .es-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--ink2); }
.pd .empty-state .es-ico svg { width: 24px; height: 24px; }
.pd .empty-state .es-h { font-size: 17px; font-weight: 700; margin-top: 6px; }
.pd .empty-state .es-p { margin: 0 0 10px; max-width: 460px; color: var(--ink2); font-size: 14px; line-height: 1.5; }
/* "Driver app" part of a driver's window */
.pd .dw-app { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--card); }
/* a form opened on top of a Round 6 window (the driver's window stays open under it) */
.lg .modal-back.over-window { z-index: 95; }

/* ---------- The Needs attention page (Kam, Nov 25: approved as built) ---------- */
.pd .attnpage { max-width: 860px; }
.pd .attncard { padding: 0 0 14px; }
.pd .attncard .ch { padding-bottom: 8px; }
.pd .attncard .at { margin: 0 18px 12px; }
.pd .attncard .at .row { display: flex; align-items: baseline; gap: 10px; }
.pd .attncard .at p { margin: 4px 0 10px; font-size: 13.5px; }
.pd .attncard .attn-list { max-height: none; overflow: visible; padding: 0 18px; gap: 0; }
.pd .attncard #attnWarn .attn-item { margin: 0 18px 10px; }
.pd .attncard .later-sec { margin: 6px 0 14px; }
.pd .attncard .later-sec .later-h, .pd .attncard .exp-sec .later-h, .pd .attncard .later-sub b { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); }
.pd .attncard .later-sub { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 10px; }
.pd .attncard .later-sub span, .pd .attncard .later-note { font-size: 12.5px; color: var(--ink3); }
.pd .attncard .later-sec .toast.ask { margin-bottom: 12px; width: 100%; box-shadow: none; }
.pd .attncard .exp-sec { margin: 16px 0 6px; }
.pd .attncard .exp-sec .later-note { margin: -4px 0 10px; }
.pd .attncard .exp-row { background: var(--soft); border-radius: 14px; border-left: 3px solid var(--waitl); }
.pd .attncard .exp-row span { display: flex; flex-direction: column; gap: 2px; font-weight: 600; font-size: 13.5px; }
.pd .attncard .exp-row small { font-weight: 400; color: var(--ink3); font-size: 12px; }
.pd .attncard.attn-empty .ch { padding-bottom: 0; }
/* the question cards and expired notes inside the page (the pop-up cards' own look is under .lg; the page is not inside .lg) */
.pd .attncard .later-sec .toast.ask { position: relative; display: block; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 12px 16px; margin: 0 0 12px; max-width: none; font-size: 13.5px; animation: none; }
.pd .attncard .later-sec .toast.ask:before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--pu); }
.pd .attncard .later-sec .toast.ask .qhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.pd .attncard .later-sec .toast.ask .qhead b { font-size: 14px; font-weight: 650; }
.pd .attncard .later-sec .toast.ask .qhead span { font-size: 12px; color: var(--ink3); white-space: nowrap; }
.pd .attncard .later-sec .toast.ask .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.pd .attncard .later-sec .toast.ask .btn.later { display: none; }
.pd .attncard .exp-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; margin: 0 0 10px; }
.pd .attncard .exp-row .btn { margin-left: auto; flex: none; }
/* one-line rows in the page (a warning that is not one of the two red ones, "✓ fixed" for 5 s after something settles) */
.pd .attncard .attn-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 1px solid var(--line); border-left: 3px solid var(--waitl); border-radius: 12px; padding: 10px 12px; background: var(--card); }
.pd .attncard .attn-item.lvl-late { border-left-color: var(--late); }
.pd .attncard .attn-item.fixed { border-left-color: var(--ok); background: var(--oks); }
.pd .attncard .attn-go { display: flex; gap: 12px; flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.pd .attncard .attn-go:disabled { cursor: default; }
.pd .attncard .attn-age { color: var(--ink3); font-size: 12px; white-space: nowrap; }
.pd .attncard .attn-x { background: none; border: 0; color: var(--ink3); cursor: pointer; font-size: 15px; padding: 2px 6px; }
.pd .attncard .attn-near { width: 100%; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- The Drivers page ---------- */
.pd .drow-kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 7px 0; font-size: 13.5px; align-items: baseline; }
.pd .drow-kv .k { color: var(--ink2); }
.pd .drow-kv .v { color: var(--ink); overflow-wrap: anywhere; }
.pd table.ord td .av { flex: none; }

/* ---------- The Live routes page: the board's own route cards in columns ---------- */
.pd .routespage .rgrid { column-width: 400px; column-gap: 20px; }
.pd .routespage .rgrid .rc { break-inside: avoid; margin: 0 0 16px; width: 100%; }

/* ---------- The WhatsApp inbox page ---------- */
.pd .inb-list { border-top: 1px solid var(--line); }
.pd .inb-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pd .inb-row:hover { background: var(--soft); }
.pd .inb-row.sel { background: var(--soft); box-shadow: inset 3px 0 0 var(--navy); }
.pd .inb-th { width: 56px; height: 70px; flex: none; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); overflow: hidden; display: grid; place-items: center; color: var(--ink3); }
.pd .inb-th .inb-img { width: 100%; height: 100%; object-fit: cover; }
.pd .inb-main { min-width: 0; flex: 1; }
.pd .inb-meta { font-size: 12.5px; color: var(--ink2); }
.pd .inb-head { font-size: 14.5px; font-weight: 600; margin-top: 3px; overflow-wrap: anywhere; }
.pd .inb-pill { flex: none; }
.pd .inb-big { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--soft); max-height: 360px; display: grid; place-items: center; }
.pd .inb-big .inb-img.big { max-width: 100%; max-height: 360px; object-fit: contain; cursor: zoom-in; }

/* ---------- The System health page ---------- */
.pd .hl-row { display: flex; gap: 18px; align-items: flex-start; padding: 16px 20px; border-top: 1px solid var(--line); }
.pd .hl-main { min-width: 0; flex: 1; }
.pd .hl-name { font-size: 15px; }
.pd .hl-lines { margin-top: 6px; font-size: 13.5px; color: var(--ink2); display: grid; gap: 4px; }
.pd .hl-lines .mut { color: var(--ink3); font-size: 12.5px; }
.pd .hl-btn { flex: none; }
.pd .hl-result { margin-top: 8px; border-radius: 12px; padding: 10px 12px; font-size: 13px; display: grid; gap: 3px; }
.pd .hl-result.ok { background: var(--oks); color: var(--ink); }
.pd .hl-result.bad { background: var(--lates); color: var(--ink); }
@media (max-width: 760px) { .pd .hl-row { flex-direction: column; } }

/* Google live map (Nov 29, pick 1 A): pins amber after 10 min, grey after 30 */
.pd .mapnote[hidden] { display: none; }
.pd .mapc.glive { cursor: auto; }
.pd #mapG { background: var(--card); }
.pd .gpin { position: relative; display: flex; flex-direction: column; align-items: center; transform: translateY(50%); cursor: pointer; }
.pd .gpin .gdot { width: 28px; height: 28px; border-radius: 50%; background: var(--c, #98A2B3); border: 2.5px solid #fff; color: #fff; font: 800 10.5px/23px 'Plus Jakarta Sans', system-ui, sans-serif; text-align: center; box-shadow: 0 1px 4px rgba(16,24,40,.35); }
.pd .gpin.amber .gdot { border-color: #F59E0B; box-shadow: 0 0 0 3px rgba(245,158,11,.35); }
.pd .gpin.grey .gdot { background: #98A2B3; opacity: .85; }
.pd .gpin .gchip, .pd .gfac .gchip { margin-top: 3px; padding: 2px 8px; border-radius: 999px; background: var(--card); color: var(--ink); border: 1px solid var(--line); font: 700 11px/16px 'Plus Jakarta Sans', system-ui, sans-serif; white-space: nowrap; box-shadow: 0 1px 3px rgba(16,24,40,.2); }
.pd .gpin.amber .gchip { border-color: #F59E0B; color: #92400E; }
.pd .gpin.grey .gchip { color: var(--ink3); }
.pd .gfac { display: flex; flex-direction: column; align-items: center; transform: translateY(50%); cursor: pointer; }
.pd .gfac .gh { width: 12px; height: 12px; border-radius: 50%; background: var(--map-hosp, #2563EB); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(16,24,40,.4); }
.pd .gfac .gb { width: 26px; height: 26px; border-radius: 8px; background: var(--brand, #C8102E); color: #fff; font: 800 13px/26px 'Plus Jakarta Sans', system-ui, sans-serif; text-align: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(16,24,40,.35); }
