@font-face { font-family: "Overpass"; src: url(../fonts/overpass-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Overpass"; src: url(../fonts/overpass-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Overpass"; src: url(../fonts/overpass-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(../fonts/ahn-ext-400.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url(../fonts/ahn-ext-700.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(../fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

/* Fieldnote. Type: Overpass (from Highway Gothic road signage). A lift car, read as an interface: brushed steel, black glass, amber floor-indicator LEDs, hazard tape for risk. */
:root {
  --ink: #15181B;
  --ink-2: #4C545B;
  --ink-3: #646C73;
  --line: #DADEE1;
  --line-2: #C3C9CE;
  --steel: #EEF0F1;
  --paper: #FFFFFF;
  --desk: #D3D7DA;
  --graphite: #22272B;
  --graphite-2: #5E666D;
  --amber: #FFB300;
  --amber-ink: #8A5A00;
  --amber-soft: #FFF1CC;
  --red: #C42A1E;
  --red-soft: #FBE9E7;
  --blue: #2A5B8E;
  --green: #1E6E45;
  --green-soft: #DCEBE2;
  --sans: "Overpass", "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --time: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "Overpass", "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --hatch: repeating-linear-gradient(135deg, var(--amber) 0 6px, var(--ink) 6px 12px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); color: var(--ink); font: 400 16px/1.45 var(--sans); }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--ink); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
dl, dd { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mono { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.muted { color: var(--ink-3); }
.num { text-align: right; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 90; background: var(--amber); color: var(--ink); padding: 10px 14px; font-weight: 700; border-radius: 8px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--amber); }
[hidden] { display: none !important; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hatch { background: var(--hatch); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px; border: 0; border-radius: 12px;
  background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); font-weight: 700; text-decoration: none; text-align: center; line-height: 1.2;
  transition: transform .12s ease, background-color .12s ease; }
.btn:hover { background: #F7F8F9; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-amber { background: var(--amber); box-shadow: none; }
.btn-amber:hover { background: #F2A800; }
.btn-quiet { background: transparent; box-shadow: none; }
.btn-quiet:hover { background: rgba(21, 24, 27, .06); }
.btn-block { width: 100%; }
.btn-grow { flex: 1; }
.btn-icon { width: 54px; padding: 0; }
.btn-line { background: transparent; }
.btn .i { width: 20px; height: 20px; }

/* ---------- page layout ---------- */
.desk { display: grid; grid-template-columns: minmax(420px, 460px) 1fr; min-height: calc(100vh - var(--concept-bar)); }
.device-col { position: sticky; top: 0; height: calc(100vh - var(--concept-bar)); display: flex; align-items: center; justify-content: center; padding: 60px 24px 20px; }
.console { position: relative; min-width: 0; background: #F6F7F8; box-shadow: -1px 0 0 var(--line-2); min-height: calc(100vh - var(--concept-bar)); }

/* ---------- device frame (desktop and tablet) ---------- */
.device { --h: min(844px, calc(100vh - 84px - var(--concept-bar))); position: relative; height: var(--h); aspect-ratio: 402 / 870; padding: 11px; border-radius: calc(var(--h) * .068);
  background: #0F1214; box-shadow: 0 0 0 1.5px #50575D, 0 0 0 3.5px #22272B, 0 50px 80px -50px rgba(15, 20, 25, .65); }
.device::before, .device::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2C3237; }
.device::before { left: -4px; top: 18%; height: 7%; box-shadow: 0 calc(var(--h) * .1) 0 #2C3237; }
.device::after { right: -4px; top: 25%; height: 11%; }
.device-screen { position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--h) * .058); background: var(--steel); }

/* ---------- the app ---------- */
.app { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--steel); font-size: 17px; overflow: hidden; }
.sb { flex: none; position: relative; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 36px; }
.sb-time { font: 700 17px var(--time); letter-spacing: .02em; }
.sb-island { position: absolute; left: 50%; top: 11px; width: 31%; height: 33px; margin-left: -15.5%; border-radius: 20px; background: #000; }
.sb-right { display: flex; align-items: center; gap: 6px; }
.sb-sig { width: 18px; height: 12px; fill: currentColor; }
.sb-bat { width: 26px; height: 13px; fill: currentColor; }
.sb-plane { width: 17px; height: 17px; fill: currentColor; display: none; }
.sb-net { font: 700 14px var(--time); }
.app.is-air .sb-plane { display: block; }
.app.is-air .sb-sig { display: none; }
.app.is-offline:not(.is-air) .sb-sig { opacity: .25; }
.home-ind { position: absolute; left: 50%; bottom: 8px; width: 36%; height: 5px; margin-left: -18%; border-radius: 3px; background: var(--ink); z-index: 50; pointer-events: none; }

.netbar { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 28px; padding: 3px 12px; font-size: 13px; font-weight: 700; }
.netbar.is-ok { position: absolute; width: 1px; height: 1px; min-height: 0; overflow: hidden; clip-path: inset(50%); padding: 0; }
.netbar.is-off { background: var(--graphite); color: #fff; }
.netbar.is-wait { background: var(--amber); color: var(--ink); }
.netbar.is-done { background: var(--green); color: #fff; }

.navbar { flex: none; position: relative; z-index: 5; display: flex; align-items: center; gap: 4px; height: 46px; padding: 0 12px 0 6px; transition: box-shadow .15s, background-color .15s; }
.nav-back { display: inline-flex; align-items: center; gap: 0; min-width: 44px; min-height: 44px; padding: 0 8px 0 2px; border: 0; background: none; font-weight: 700; color: var(--ink); border-radius: 10px; }
.nav-back .i { width: 26px; height: 26px; stroke-width: 2.2; }
.nav-x { justify-content: center; padding: 0; width: 44px; background: rgba(21, 24, 27, .07); border-radius: 50%; margin-left: 8px; }
.nav-x .i { width: 20px; height: 20px; }
.nav-title { flex: 1; min-width: 0; font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.navbar > .nav-title:first-child { padding-left: 14px; }
.app.scrolled .navbar, .app.nav-solid .navbar { background: rgba(238, 240, 241, .97); box-shadow: 0 1px 0 var(--line); }
.app.scrolled .nav-title, .app.nav-solid .nav-title { opacity: 1; transform: none; }
.app.nav-solid.is-modal .navbar { background: var(--steel); }

.scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 24px; scroll-padding-bottom: 24px; }
.scroll:focus { outline: none; }
.scroll.enter { animation: enter .2s cubic-bezier(.2, .8, .3, 1); }
.scroll.enter-back { animation: enterback .2s cubic-bezier(.2, .8, .3, 1); }
@keyframes enter { from { opacity: .4; transform: translateX(18px); } }
@keyframes enterback { from { opacity: .4; transform: translateX(-18px); } }

.dock { flex: none; padding: 10px 16px 12px; background: var(--steel); box-shadow: 0 -1px 0 var(--line); }
.app.is-modal .dock { padding-bottom: 30px; }
.dock-row { display: flex; gap: 10px; align-items: stretch; }
.dock-row .slide { flex: 1; min-width: 0; }
.rp-title { white-space: nowrap; }
.dock-col { display: grid; gap: 10px; }
.step-error { color: var(--red); font-weight: 700; font-size: 15px; }
.step-error:not(:empty) { margin-bottom: 8px; }
.step-error.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

.tabbar { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 4px 6px 26px; background: rgba(246, 247, 248, .98); box-shadow: 0 -1px 0 var(--line); }
.tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 50px; border: 0; background: none; color: var(--ink-3); font-size: 12px; font-weight: 700; border-radius: 10px; }
.tabbar .i { width: 27px; height: 27px; stroke-width: 1.7; }
.tabbar [aria-current="page"] { color: var(--ink); }
.tabbar [aria-current="page"] .i { stroke-width: 2.2; }
.badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 13px; line-height: 19px; text-align: center; }
.app.is-modal .tabbar { display: none; }

/* large titles */
.lt-wrap { padding: 2px 20px 16px; }
.lt, .hero-b, .dw-h h3, .call-what h3, .map-km { text-wrap: balance; }
.lt { font-size: 32px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.lt:focus { outline: none; }
.lt:focus-visible { outline: 3px solid var(--ink); }
.lt-sub { margin-top: 6px; color: var(--ink-2); font-size: 15px; }

/* grouped lists */
.group-h { margin: 22px 32px 7px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.group-p { margin: 0 16px; padding: 12px 16px; background: var(--paper); border-radius: 12px; font-size: 16px; }
.group-f { margin: 7px 32px 0; font-size: 13px; color: var(--ink-3); }
.list { margin: 0 16px; background: var(--paper); border-radius: 12px; overflow: hidden; }
.list > li { position: relative; }
.list > li + li::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); z-index: 1; }
.row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; font-size: 16px; }
.row-l { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.row-v { color: var(--ink-2); }
.row-i { color: var(--ink-2); width: 22px; height: 22px; }
.row-btn { width: 100%; border: 0; background: none; text-align: left; }
.row-btn:active { background: var(--steel); }
.list-plain .row { align-items: flex-start; }
.list-plain .row-i { margin-top: 1px; }

.cell { width: 100%; display: grid; grid-template-columns: 58px 1fr auto 18px; align-items: center; gap: 12px; min-height: 68px; padding: 10px 12px 10px 16px; border: 0; background: none; text-align: left; }
.cell:active { background: var(--steel); }
.list > li + li .cell { }
.list > li:has(.cell) + li::before { left: 86px; }
.cell-time { display: flex; flex-direction: column; line-height: 1; }
.cell-time b { font: 600 23px/1 var(--time); font-variant-numeric: tabular-nums; }
.cell-time small { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.cell-call .cell-time small { color: var(--red); font-weight: 700; }
.k-breakdown.cell-call .cell-time small { color: var(--amber-ink); }
.cell-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cell-t { font-weight: 700; font-size: 17px; line-height: 1.25; }
.cell-s { font-size: 14px; color: var(--ink-2); }
.cell-end { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.cell-chev { width: 18px; height: 18px; color: var(--line-2); stroke-width: 2.4; }
.list-done .cell-t, .list-done .cell-time b { color: var(--ink-2); }

.st { font-size: 14px; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.st .i { width: 16px; height: 16px; stroke-width: 2.6; }
.st-assigned, .st-unassigned { color: var(--ink-3); font-weight: 400; }
.st-enroute { color: var(--blue); }
.st-onsite { color: var(--ink); }
.st-done { color: var(--green); }
.st-free { color: var(--green); }
.st-off { color: var(--ink-3); font-weight: 400; }

.sla { font-family: var(--mono); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sla-ok { color: var(--ink); }
.sla-warn { color: var(--amber-ink); font-weight: 700; }
.sla-breach, .sla-late { color: var(--red); font-weight: 700; }
.sla-met { color: var(--green); }
.pend { display: inline-flex; color: var(--amber-ink); }
.pend .i { width: 18px; height: 18px; stroke-width: 2.2; }
.kind { font-weight: 700; }
.kind-trapped { color: var(--red); }
.kind-breakdown { color: var(--amber-ink); }
.kind-amc { color: var(--ink-2); }

/* next-job hero: the one dark surface, lit like a floor indicator */
.hero { position: relative; margin: 0 16px; padding: 16px 16px 16px; border-radius: 18px; background: var(--graphite); color: #fff; overflow: hidden; }
.hero-hatch { position: absolute; top: 0; left: 0; right: 0; height: 7px; }
.hero-k { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.hero .kind { color: #C9CED3; }
.hero .kind-trapped { color: #FF8B80; }
.hero .kind-breakdown { color: var(--amber); }
.hero .pend { color: var(--amber); }
.hero-open { display: grid; width: 100%; margin: 6px 0 14px; padding: 0; border: 0; background: none; color: inherit; text-align: left; border-radius: 8px; }
.hero-time { font: 700 58px/0.95 var(--time); color: var(--amber); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.hero-when { margin-top: 2px; font-size: 15px; color: #C9CED3; }
.hero-b { margin-top: 12px; font-size: 22px; font-weight: 700; line-height: 1.2; }
.hero-m { margin-top: 3px; font-size: 15px; color: #C9CED3; }
.hero-drive { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: #fff; }
.hero-drive .i { width: 18px; height: 18px; }
.hero-sla { margin-top: 8px; font-size: 15px; color: #C9CED3; }
.hero .sla { font-size: 16px; color: #fff; }
.hero .sla-warn { color: var(--amber); }
.hero .sla-breach { color: #FF8B80; }
.hero .btn { box-shadow: none; }
.hero .btn:not(.btn-amber) { background: rgba(255, 255, 255, .12); color: #fff; }

/* slide to commit */
.slide { --p: 0; position: relative; height: 62px; border-radius: 31px; background: #DFE3E6; overflow: hidden; touch-action: pan-y; }
.hero .slide { background: rgba(255, 255, 255, .11); }
.slide::before { content: ""; position: absolute; inset: 0; background: var(--amber); opacity: calc(var(--p) * .35); transition: opacity .1s; }
.slide-l { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-left: 52px; font-weight: 700; font-size: 16px; color: var(--ink-2); opacity: calc(1 - var(--p) * 1.6); pointer-events: none; }
.hero .slide-l { color: #E2E6E9; }
.slide-k { position: absolute; left: 4px; top: 4px; width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center; touch-action: none; transition: transform .25s cubic-bezier(.3, .7, .4, 1); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.slide-k .i { width: 26px; height: 26px; stroke-width: 2.4; }
.slide-k.held { transition: none; }
.slide.is-done::before { opacity: 1; }
.slide.is-done .slide-l { opacity: 0; }
.slide.nudge .slide-k { animation: nudge .55s ease; }
@keyframes nudge { 30% { transform: translateX(34px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(8px); } }

/* job detail */
.jd-hatch { display: block; height: 7px; margin: 0 0 10px; }
.jd-kind { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 15px; }
.jd-kind .mono { color: var(--ink-3); font-size: 14px; }
.jd-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.jd-status .st { font-size: 15px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 16px 4px; }
.quick-b { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 76px; padding: 10px 4px; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.quick-b .i { width: 24px; height: 24px; }
.quick-b small { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.quick-b:active { background: #F7F8F9; }
.callout { margin: 14px 16px 0; padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.callout-red { background: var(--red-soft); color: #7A1A12; }
.callout-amber { background: var(--amber-soft); color: #5C3C00; }
.spec { margin: 0 16px; background: var(--paper); border-radius: 12px; padding: 4px 16px; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 15px; }
.spec div + div { border-top: 1px solid var(--line); }
.spec dt { color: var(--ink-2); }
.spec dd { text-align: right; font-weight: 700; }
.hist-d { flex: none; width: 52px; color: var(--ink-3); font-size: 13px; padding-top: 2px; }
.hist .row { font-size: 15px; }

/* work flow */
.steps { display: flex; gap: 4px; margin: 6px 20px 14px; }
.steps li { flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); }
.steps li.past { background: var(--ink); }
.steps li.now { background: var(--amber); }
.lt-step .lt { font-size: 30px; }
.step-of { font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.step-meta { margin: 0 32px 8px; font-size: 14px; color: var(--ink-2); }
.ticks { margin: 0 16px; background: var(--paper); border-radius: 12px; overflow: hidden; }
.tick { position: relative; display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 14px; min-height: 62px; padding: 12px 16px; cursor: pointer; }
.ticks .tick + .tick::before { content: ""; position: absolute; top: 0; left: 62px; right: 0; height: 1px; background: var(--line); }
.tick:active { background: #F7F8F9; }
.tick-in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick-box { width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); display: grid; place-items: center; color: transparent; transition: background-color .15s, box-shadow .15s; }
.tick-box .i { width: 20px; height: 20px; stroke-width: 3; }
.tick-in:checked + .tick-box { background: var(--green); box-shadow: none; color: #fff; animation: pop .22s ease; }
.tick-in:focus-visible + .tick-box { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--amber); }
.tick-l { font-size: 17px; line-height: 1.3; }
.tick-in:checked ~ .tick-l { color: var(--ink-2); }
.tick-small { margin: 14px 16px 0; padding: 12px 16px; background: var(--paper); border-radius: 12px; }
.tick-small .tick-l { font-size: 15px; }
@keyframes pop { 50% { transform: scale(1.14); } }
.field { display: block; margin: 16px 16px 0; }
.field-l { display: block; margin: 0 16px 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field-in { width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 17px; resize: vertical; }
.field-in:focus { box-shadow: inset 0 0 0 2px var(--ink); outline: none; }
.field-num { width: 140px; font: 600 22px var(--mono); font-variant-numeric: tabular-nums; }
.ok-line { display: flex; align-items: center; gap: 6px; margin: 12px 32px 0; color: var(--green); font-weight: 700; font-size: 15px; }
.ok-line .i { width: 18px; height: 18px; stroke-width: 2.6; }

.readings-in { margin: 0 16px; background: var(--paper); border-radius: 12px; overflow: hidden; }
.reading { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 16px; }
.reading + .reading { border-top: 1px solid var(--line); }
.reading label { display: flex; flex-direction: column; gap: 2px; }
.rd-l { font-size: 16px; font-weight: 700; line-height: 1.25; }
.rd-lim { font-size: 13px; color: var(--ink-3); }
.rd-box { display: flex; align-items: center; gap: 6px; }
.rd-box input { width: 96px; height: 54px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--steel); box-shadow: inset 0 0 0 1.5px var(--line-2); font: 600 22px var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.rd-box input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); background: var(--paper); }
.rd-u { width: 28px; font-size: 14px; color: var(--ink-2); }
.reading .msg { grid-column: 1 / -1; font-size: 13px; }
.lvl-empty { color: var(--ink-3); }
.lvl-ok { color: var(--green); }
.lvl-warn { color: var(--amber-ink); font-weight: 700; }
.lvl-out, .lvl-invalid { color: var(--red); font-weight: 700; }
.lvl-wrap-out .rd-box input, .lvl-wrap-invalid .rd-box input { box-shadow: inset 0 0 0 2px var(--red); }
.lvl-wrap-out::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--hatch); }

.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 16px; }
.ph { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--paper); }
.ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ph figcaption { padding: 6px 10px 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-x { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(15, 18, 20, .62); color: #fff; display: grid; place-items: center; }
.ph-x .i { width: 18px; height: 18px; stroke-width: 2.4; }
.ph-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 4 / 3.6; border: 2px dashed var(--line-2); border-radius: 12px; background: transparent; color: var(--ink-2); font-weight: 700; font-size: 15px; }
.ph-add .i { width: 28px; height: 28px; }
.step-photos .step-meta { margin-top: 10px; }

.parts { margin-bottom: 12px; }
.part { justify-content: space-between; }
.part-n { display: flex; flex-direction: column; font-weight: 700; font-size: 16px; line-height: 1.25; min-width: 0; }
.part-n small { font-weight: 400; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.stepper { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--steel); display: grid; place-items: center; }
.stepper button:disabled { opacity: .35; }
.stepper b { min-width: 28px; text-align: center; font: 700 22px var(--time); }
.step-parts > .btn { margin: 0 16px; width: calc(100% - 32px); }
.step-parts > .group-p { margin-bottom: 12px; }
.low-w { color: var(--red) !important; font-weight: 700 !important; }

/* signature: ink on glass */
.glass { position: relative; margin: 14px 16px 0; height: 210px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, .06); overflow: hidden; }
.glass canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; z-index: 2; }
.glass-line { position: absolute; left: 30px; right: 30px; bottom: 54px; height: 1.5px; background: var(--line-2); }
.glass-x { position: absolute; left: 26px; bottom: 58px; font-size: 26px; line-height: 1; color: var(--ink-3); }
.glass-hint { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: 14px; color: var(--ink-3); transition: opacity .2s; }
.glass.inked .glass-hint { opacity: 0; }
.glass-clear { position: absolute; top: 6px; right: 6px; z-index: 3; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: rgba(238, 240, 241, .9); font-weight: 700; font-size: 14px; }
.signed { margin: 14px 16px 0; padding: 14px 16px; background: var(--paper); border-radius: 12px; }
.signed .ok-line { margin: 8px 0; }
.sig-img { max-width: 260px; height: auto; }

.done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 28px 0; }
.done-mark { width: 84px; height: 84px; fill: none; stroke: var(--green); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.done-mark path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .35s .15s ease-out forwards; }
.done-mark circle { stroke-dasharray: 183; stroke-dashoffset: 183; animation: draw .4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-s { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; font-size: 16px; }
.done-s .i { color: var(--amber-ink); }

.map-wrap { margin: 0 0 0; background: #ECEDEA; }
.map-wrap .map { width: 100%; height: auto; display: block; }
.map-card { margin: 14px 16px 0; padding: 16px; background: var(--paper); border-radius: 12px; }
.map-eta { font: 700 44px/1 var(--time); }
.map-km { margin-top: 4px; font-weight: 700; }
.map-addr { margin-top: 2px; font-size: 15px; }
.map-note { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

.stock { justify-content: space-between; }
.stock-n { display: flex; flex-direction: column; font-size: 16px; font-weight: 700; line-height: 1.25; }
.stock-n small { font-size: 13px; font-weight: 400; color: var(--ink-3); margin-top: 2px; }
.stock-q { font: 600 28px/1 var(--time); font-variant-numeric: tabular-nums; }
.stock.is-low .stock-q { color: var(--red); }

.outbox .row, .ob { align-items: flex-start; }
.ob-t { width: 46px; flex: none; font-size: 13px; color: var(--ink-3); padding-top: 2px; }
.ob-m { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 16px; }
.ob-m small { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.ob-n { font-weight: 400; color: var(--ink-3); }
.ob-s { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--amber-ink); padding-top: 2px; }
.ob-s .i { width: 16px; height: 16px; }
.step-body > .btn, .scroll > .btn-block { display: flex; margin: 14px 16px 0; width: calc(100% - 32px); }
.empty { margin: 10px 16px 0; padding: 32px 20px; text-align: center; background: var(--paper); border-radius: 16px; color: var(--ink-2); font-size: 15px; }
.empty-i { width: 36px; height: 36px; color: var(--green); stroke-width: 2.4; margin: 0 auto 8px; }
.empty-t { font-weight: 700; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

.row-sw { justify-content: space-between; }
.sw { position: relative; width: 56px; height: 34px; flex: none; border: 0; border-radius: 17px; background: #C3C9CE; transition: background-color .2s; }
.sw span { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: transform .2s; }
.sw[aria-checked="true"] { background: var(--green); }
.sw[aria-checked="true"] span { transform: translateX(22px); }

/* in-app notification and sheets */
.banner-slot { position: absolute; top: 54px; left: 8px; right: 8px; z-index: 30; }
.note-card { margin-bottom: 8px; padding: 12px 14px; border-radius: 18px; background: #FBFBFC; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 14px 32px -12px rgba(15, 20, 25, .45); animation: drop .3s cubic-bezier(.2, .8, .3, 1); }
.note-app { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.note-app .i { width: 16px; height: 16px; }
.note-app span { margin-left: auto; }
.note-t { margin-top: 4px; font-weight: 700; font-size: 16px; }
.note-trapped .note-t { color: var(--red); }
.note-b { margin-top: 2px; font-size: 15px; color: var(--ink-2); }
.note-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.note-act { min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--steel); font-weight: 700; font-size: 15px; }
.note-office .note-act { display: block; margin: 8px 0 0 auto; }
.note-go { background: var(--amber); }
@keyframes drop { from { transform: translateY(-24px); opacity: 0; } }
.sheet-layer { position: absolute; inset: 0; z-index: 40; display: flex; align-items: flex-end; background: rgba(15, 18, 20, .4); animation: fade .2s; }
.sheet { width: 100%; max-height: 82%; overflow-y: auto; padding: 8px 16px 30px; border-radius: 20px 20px 0 0; background: var(--steel); animation: rise .25s cubic-bezier(.2, .8, .3, 1); }
.grab { display: block; width: 38px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: var(--line-2); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-t { font-size: 20px; font-weight: 700; padding: 0 4px 10px; }
.sheet-head .sheet-t { padding-bottom: 0; }
.sheet-s { padding: 0 4px 10px; font-size: 14px; color: var(--ink-2); }
.sheet-list { background: var(--paper); border-radius: 14px; overflow: hidden; margin-bottom: 10px; }
.sheet-b { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 0 16px; border: 0; background: none; font-weight: 700; font-size: 17px; text-align: left; cursor: pointer; }
.sheet-b + .sheet-b { box-shadow: inset 0 1px 0 var(--line); }
.sheet-b:focus-within { outline: 3px solid var(--ink); outline-offset: -3px; }
.sheet .list { margin: 0; }
.pick-part { justify-content: space-between; }
.pick-part:disabled { opacity: .45; }
.pick-i { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--amber); stroke-width: 2.6; }
@keyframes rise { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- service report (paper) ---------- */
.rp-wrap { margin: 0 12px; }
.report { container: rp / inline-size; background: var(--paper); padding: 20px; font-size: 14px; line-height: 1.4; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.rp-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.rp-co-n { font-weight: 700; font-size: 17px; }
.rp-co p:last-child { color: var(--ink-2); font-size: 13px; }
.rp-no { text-align: right; font-size: 13px; }
.rp-title { font: 700 22px/1 var(--time); letter-spacing: .02em; margin-bottom: 4px; }
.rp-draft { margin-top: 10px; padding: 6px 10px; background: var(--amber-soft); color: #5C3C00; font-weight: 700; font-size: 13px; }
.rp-grid { width: 100%; margin-top: 12px; border-collapse: collapse; }
.rp-grid th, .rp-grid td { padding: 6px 8px; border: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.rp-grid th { width: 20%; font-weight: 400; font-size: 13px; color: var(--ink-2); background: #F7F8F9; }
.rp-late { color: var(--red); font-weight: 700; }
@container rp (max-width: 520px) {
  .rp-grid, .rp-grid tbody { display: block; border: 1px solid var(--line-2); }
  .rp-grid tr { display: grid; grid-template-columns: 30% 1fr; }
  .rp-grid th, .rp-grid td { width: auto; border: 0; border-top: 1px solid var(--line); }
  .rp-grid tr:first-child > :nth-child(-n+2) { border-top: 0; }
  .rp-head { flex-direction: column; gap: 6px; }
  .rp-no { text-align: left; }
}
.rp-sec { margin-top: 18px; }
.rp-sec h4 { font-size: 14px; padding-bottom: 4px; margin-bottom: 8px; border-bottom: 1px solid var(--ink); }
.rp-checks + .rp-checks { margin-top: 10px; }
.rp-checks h5 { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.rp-checks ul { columns: 2 220px; column-gap: 20px; }
.rp-checks li { display: flex; gap: 8px; padding: 2px 0; break-inside: avoid; font-size: 13px; }
.mk { flex: none; width: 16px; height: 16px; margin-top: 1px; border: 1px solid var(--ink-2); display: grid; place-items: center; font-size: 13px; line-height: 1; }
.mk-y { color: var(--green); font-weight: 700; }
.mk-n { color: var(--ink-3); }
.rp-table { width: 100%; border-collapse: collapse; }
.rp-table th, .rp-table td { padding: 6px 6px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.rp-table thead th { font-size: 13px; color: var(--ink-2); border-bottom-color: var(--line-2); }
.rp-table .num { text-align: right; }
.rp-table tfoot th, .rp-table tfoot td { font-weight: 700; border-bottom: 0; border-top: 1px solid var(--ink); }
.rp-table tr.rd-out td:last-child, .rp-table tr.rd-invalid td:last-child { color: var(--red); font-weight: 700; }
.rp-table tr.rd-out th { box-shadow: inset 6px 0 0 var(--amber); padding-left: 12px; }
.rp-table tr.rd-warn td:last-child { color: var(--amber-ink); font-weight: 700; }
.rp-notes { white-space: pre-wrap; }
.rp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.rp-photos figure { margin: 0; }
.rp-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rp-photos figcaption { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.rp-sigbox { min-height: 80px; display: flex; flex-direction: column; justify-content: flex-end; max-width: 340px; }
.rp-sig-img { max-width: 240px; height: auto; border-bottom: 1px solid var(--ink); }
.rp-typed { font-size: 22px; font-weight: 700; padding: 18px 0 4px; border-bottom: 1px solid var(--ink); }
.rp-sig-l { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.rp-foot { margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* ---------- maps ---------- */
.m-land { fill: #ECEDEA; }
.m-orr { fill: none; stroke: #C6CBCF; stroke-width: 3; stroke-dasharray: 2 6; }
.m-river { fill: none; stroke: #B5CDDB; stroke-width: 7; stroke-linecap: round; }
.m-lake { fill: #BFD5E1; }
.m-road { fill: none; stroke: #FFFFFF; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.m-road.major { stroke-width: 7; }
.m-label { font: 12px var(--sans); fill: #6A7279; text-anchor: middle; }
.m-water { font: 12px var(--sans); fill: #4E7189; text-anchor: middle; }
.m-route-casing { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.m-route { fill: none; stroke: var(--amber); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.m-me { fill: rgba(42, 91, 142, .22); }
.m-me-dot { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.m-pin { fill: var(--red); stroke: #fff; stroke-width: 1.5; }
.m-pin-dot { fill: #fff; }
.m-drive { stroke: var(--blue); stroke-width: 2.5; stroke-dasharray: 5 4; fill: none; }
.m-job { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.m-job.k-trapped { fill: var(--red); stroke: #fff; }
.m-job.k-breakdown { fill: var(--amber); }
.m-job.m-open { stroke-dasharray: 3 2; }
.m-job.m-sel { stroke: var(--ink); stroke-width: 4; }
.m-van circle { stroke: #fff; stroke-width: 2.5; }
.m-van text { font: 700 10px var(--sans); fill: #fff; text-anchor: middle; }
.v-free circle { fill: var(--green); }
.v-drive circle { fill: var(--blue); }
.v-onsite circle { fill: var(--graphite); }
.m-tag { fill: var(--ink); }
.m-tag-t { font: 700 12px var(--sans); fill: #fff; text-anchor: middle; }

/* ---------- console ---------- */
.console { --lnw: 168px; font-size: 15px; }
.c-bar { display: flex; align-items: center; gap: 22px; height: 52px; padding: 0 20px; background: var(--graphite); color: #fff; }
.c-brand { display: flex; align-items: center; gap: 9px; }
.c-mark { width: 24px; height: 24px; }
.c-mark rect { fill: var(--amber); }
.c-mark path { fill: var(--ink); }
.c-wm { font-weight: 700; font-size: 17px; }
.c-prod { font-size: 17px; color: #AEB5BB; }
.c-org { font-size: 14px; color: #AEB5BB; }
.c-when { margin-left: auto; font-size: 14px; color: #D5DADE; white-space: nowrap; }
.c-clock { font: 600 19px var(--time); color: #fff; margin-left: 6px; font-variant-numeric: tabular-nums; }
.c-tz { font-size: 13px; color: #AEB5BB; }
.c-user { font-size: 14px; padding-left: 18px; box-shadow: -1px 0 0 #3C4247; white-space: nowrap; }
.c-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px 12px; }
.c-tools h2 { font-size: 24px; font-weight: 700; margin-right: 8px; }
.c-tools h2:focus { outline: none; }
.c-search { position: relative; flex: 0 1 300px; }
.c-search .i { position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; color: var(--ink-3); }
.c-search input { width: 100%; height: 44px; padding: 0 12px 0 40px; border: 0; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; }
.c-search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.seg { display: inline-flex; padding: 0; border-radius: 10px; background: #E3E6E9; }
.seg button { min-height: 44px; min-width: 60px; padding: 0 14px; border: 0; border-radius: 10px; background: none; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(0, 0, 0, .08); }
.c-tools .btn { min-height: 44px; border-radius: 10px; margin-left: auto; font-size: 15px; }
.c-h { font-size: 14px; font-weight: 700; color: var(--ink-2); }

/* incoming call */
.c-call-slot:empty { display: none; }
.call { position: relative; display: grid; grid-template-columns: minmax(150px, 190px) 1fr minmax(150px, 190px) auto; gap: 20px; align-items: center; margin: 0 20px 14px; padding: 18px 18px 16px; border-radius: 12px;
  background: var(--paper); box-shadow: 0 0 0 2px var(--amber), 0 20px 40px -24px rgba(15, 20, 25, .5); overflow: hidden; animation: drop .3s cubic-bezier(.2, .8, .3, 1); }
.call.k-trapped { box-shadow: 0 0 0 2px var(--red), 0 20px 40px -24px rgba(15, 20, 25, .5); }
.call-hatch { position: absolute; top: 0; left: 0; right: 0; height: 6px; }
.call-k { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--red); }
.call-k .i { width: 18px; height: 18px; animation: ring 1.2s ease-in-out 3; }
.call-c { margin-top: 4px; font-weight: 700; }
.call-what h3 { font-size: 18px; }
.call-what p { margin-top: 4px; color: var(--ink-2); font-size: 14px; }
.call-sla { color: var(--ink) !important; }
.call-sug { padding-left: 18px; box-shadow: -1px 0 0 var(--line); }
.call-sl { font-size: 13px; color: var(--ink-3); }
.call-tn { font-weight: 700; font-size: 17px; }
.call-sug p:last-child { font-size: 13px; color: var(--ink-2); }
.call-acts { display: flex; flex-direction: column; gap: 6px; }
.call-acts .btn { min-height: 44px; font-size: 14px; border-radius: 10px; }
@keyframes ring { 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } 50% { transform: none; } }

/* unassigned queue */
.queue { display: flex; align-items: flex-start; gap: 14px; margin: 0 20px 14px; }
.q-head { display: flex; align-items: center; gap: 8px; min-height: 44px; flex: none; width: calc(var(--lnw) - 14px); }
.q-count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; line-height: 24px; text-align: center; }
.q-list { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; min-width: 0; }
.q-item { display: flex; min-width: 0; flex: 1 1 340px; max-width: 520px; background: var(--paper); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.q-item.is-sel { box-shadow: inset 0 0 0 2px var(--ink); }
.q-open { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border: 0; background: none; text-align: left; }
.q-l1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.q-kind { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.q-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-meta { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-open .sla { font-size: 13px; }
.q-assign { flex: none; display: flex; flex-direction: column; justify-content: center; min-width: 120px; padding: 0 14px; border: 0; background: none; box-shadow: -1px 0 0 var(--line); font-weight: 700; font-size: 14px; text-align: left; }
.q-assign small { font-weight: 400; font-size: 13px; color: var(--ink-3); }
.q-assign:hover, .q-open:hover { background: #F7F8F9; }
.q-empty { min-height: 44px; display: flex; align-items: center; color: var(--ink-3); }
.hatch-sw { width: 12px; height: 12px; border-radius: 2px; }

/* schedule board */
.board-wrap { margin: 0 20px; overflow-x: auto; background: var(--paper); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); }
.board { position: relative; min-width: 860px; }
.b-head { display: grid; grid-template-columns: var(--lnw) 1fr; height: 34px; align-items: end; box-shadow: 0 1px 0 var(--line-2); }
.ln-h { position: sticky; left: 0; z-index: 5; align-self: stretch; display: flex; align-items: flex-end; padding: 0 14px 7px; background: var(--paper); font-size: 13px; color: var(--ink-3); }
.hours { display: grid; grid-template-columns: repeat(var(--hours, 11), 1fr); height: 100%; }
.hours span { display: flex; align-items: flex-end; padding: 0 0 6px 5px; box-shadow: inset 1px 0 0 var(--line); font: 600 15px/1 var(--time); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lane { --rows: 1; display: grid; grid-template-columns: var(--lnw) 1fr; min-height: calc(12px + var(--rows) * 50px); }
.lane + .lane { box-shadow: 0 -1px 0 var(--line); }
.ln { position: sticky; left: 0; z-index: 5; display: flex; flex-direction: column; justify-content: center; padding: 8px 14px; background: var(--paper); box-shadow: 1px 0 0 var(--line-2); min-width: 0; }
.lane.is-off .ln { background: #F3F4F5; }
.ln-n { font-weight: 700; font-size: 15px; }
.ln-s { font-size: 13px; }
.ln-p { font-size: 13px; color: var(--ink-3); }
.ln-off { display: inline-flex; align-items: center; gap: 4px; color: var(--red); font-weight: 700; }
.ln-off .i { width: 14px; height: 14px; }
.track { position: relative; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / var(--hours, 11)) 100%; }
.lane.is-off .track { background-color: #F3F4F5; }
.off-l { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--ink-3); }
.bar { position: absolute; top: calc(9px + var(--row, 0) * 50px); height: 44px; min-width: 44px; padding: 0; border: 0; border-radius: 7px; overflow: hidden; text-align: left; font-size: 13px; line-height: 1.15; transition: opacity .15s, box-shadow .15s; }
.bar-in { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 0 7px; font-size: 13px; font-weight: 700; line-height: 16px; white-space: nowrap; overflow: hidden; }
.bar-time { font: 600 15px/1 var(--time); font-variant-numeric: tabular-nums; text-align: center; margin: 0 -3px; }
.bar-tip { position: absolute; z-index: 8; max-width: 260px; padding: 6px 9px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.b-assigned { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px #8E979E; }
.b-enroute { background: var(--blue); color: #fff; }
.b-onsite { background: var(--graphite); color: #fff; }
.b-done { background: var(--green-soft); color: #174E33; }
.bar.k-trapped::before, .bar.k-breakdown::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 2; }
.bar.k-trapped::before { background: var(--red); }
.bar.k-breakdown::before { background: var(--amber); }
.bar-fut { position: absolute; top: 0; bottom: 0; right: 0; background: var(--graphite-2); }
.bar-risk { position: absolute; bottom: 0; height: 8px; z-index: 2; }
.bar.is-sel { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4.5px var(--ink); z-index: 3; }
.bar.is-dim { opacity: .25; }
.bar:hover { filter: brightness(.97); }
.lead { position: absolute; top: calc(30px + var(--row, 0) * 50px); height: 0; border-top: 2px dashed var(--ink-3); }
.lead-go { border-top: 3px solid var(--blue); }
.lead::before { content: ""; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; color: var(--ink-3); }
.lead-go::before { color: var(--blue); top: -5.5px; }
.due { position: absolute; top: calc(4px + var(--row, 0) * 50px); height: 54px; width: 0; border-left: 2px dotted var(--red); }
.nowline { position: absolute; top: 30px; bottom: 0; left: calc(var(--lnw) + (100% - var(--lnw)) * var(--now, 0)); width: 2px; margin-left: -1px; background: var(--red); z-index: 4; pointer-events: none; }
.nowline span { position: absolute; top: -32px; height: 30px; display: flex; align-items: flex-end; left: 50%; transform: translateX(-50%); padding: 0 6px 6px; border-radius: 4px 4px 0 0; background: var(--red); color: #fff; font: 600 14px/1 var(--time); white-space: nowrap; }

/* lower row */
.c-lower { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; margin: 16px 20px 0; }
.c-mapbox, .c-panel { background: var(--paper); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); padding: 12px 14px 12px; min-width: 0; }
.c-mapbox .c-h { margin-bottom: 8px; }
.cmap { width: 100%; height: auto; display: block; border-radius: 6px; }
.c-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: -8px; }
.lg-free { background: var(--green); }
.lg-drive { background: var(--blue); }
.lg-onsite { background: var(--graphite); }
.lg-job { border-radius: 1px; box-shadow: inset 0 0 0 2px var(--ink); }
.tabs { display: flex; gap: 4px; margin: -4px 0 8px; box-shadow: inset 0 -1px 0 var(--line); }
.tabs button { min-height: 44px; padding: 0 12px; border: 0; background: none; font-weight: 700; font-size: 14px; color: var(--ink-3); box-shadow: inset 0 -2px 0 transparent; }
.tabs [aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--ink); }
.c-panel-body { max-height: 340px; overflow-y: auto; }
.c-panel-body:focus-visible { outline-offset: -3px; }
.conflict { margin-bottom: 10px; padding: 10px 12px; border-radius: 8px; background: var(--amber-soft); font-size: 14px; }
.cf-h { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.cf-h .i { width: 18px; height: 18px; }
.cf-h .mono { margin-left: auto; font-size: 13px; }
.feed li { display: grid; grid-template-columns: 46px 1fr; gap: 8px; padding: 7px 0; font-size: 14px; }
.feed li + li { box-shadow: 0 -1px 0 var(--line); }
.feed .mono { color: var(--ink-3); font-size: 13px; }
.van-pick { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.van-pick select { flex: 1; min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--steel); box-shadow: inset 0 0 0 1px var(--line-2); }
.stock-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.stock-t th, .stock-t td { padding: 6px 4px; text-align: left; font-weight: 400; box-shadow: inset 0 -1px 0 var(--line); }
.stock-t thead th { font-size: 13px; color: var(--ink-3); }
.stock-t .num { text-align: right; }
.stock-t tr.is-low th, .stock-t tr.is-low td { color: var(--red); }
.c-summary { margin: 16px 20px 0; padding: 0 0 28px; }
.c-summary dl { display: flex; flex-wrap: wrap; gap: 8px 40px; }
.c-summary dt { font-size: 13px; color: var(--ink-3); }
.c-summary dd { font: 600 26px/1.1 var(--time); font-variant-numeric: tabular-nums; }

/* drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(420px, 100%); overflow-y: auto; background: var(--paper); box-shadow: -1px 0 0 var(--line-2), -30px 0 60px -40px rgba(15, 20, 25, .5); animation: slidein .22s cubic-bezier(.2, .8, .3, 1); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.dw-in { padding: 0 0 24px; }
.dw-h { position: relative; padding: 20px 64px 14px 22px; box-shadow: 0 1px 0 var(--line); }
.dw-k { display: flex; gap: 10px; font-size: 14px; }
.dw-k .mono { color: var(--ink-3); }
.dw-h h3 { margin-top: 6px; font-size: 22px; }
.dw-h h3:focus { outline: none; }
.dw-a { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.dw-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--steel); display: grid; place-items: center; }
.dw-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 14px 22px; }
.dw-facts dt { font-size: 13px; color: var(--ink-3); }
.dw-facts dd { font-weight: 700; }
.dw-note { margin: 0 22px; padding: 10px 12px; background: var(--steel); border-radius: 8px; font-size: 14px; }
.dw-sec { padding: 14px 22px 0; }
.dw-sec h4 { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.pick { border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.pick li + li { box-shadow: 0 -1px 0 var(--line); }
.pick-b { display: grid; grid-template-columns: 1fr auto auto 22px; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 0 12px; border: 0; background: none; text-align: left; font-size: 14px; }
.pick-b:hover { background: #F7F8F9; }
.pick-n { font-weight: 700; }
.pick-s { font-size: 13px; }
.pick-m { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.pick-c { color: var(--green); }
.pick-c .i { width: 18px; height: 18px; stroke-width: 2.8; }
.pick-b.is-cur { background: #F3F7F4; }
.pick-un { grid-template-columns: 1fr; color: var(--red); font-weight: 700; }
.tl { position: relative; padding-left: 4px; }
.tl li { position: relative; display: grid; grid-template-columns: 50px 1fr; gap: 10px; padding: 0 0 12px 16px; font-size: 14px; }
.tl li::before { content: ""; position: absolute; left: 0; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.tl li::after { content: ""; position: absolute; left: 4px; top: 16px; bottom: 0; width: 1px; background: var(--line-2); }
.tl li:last-child::after { display: none; }
.tl li.tl-f::before { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink-3); }
.tl-t { color: var(--ink-3); font-size: 13px; }
.tl-b { display: flex; flex-direction: column; }
.tl-b small { color: var(--ink-2); font-size: 13px; }
.dw-parts li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; box-shadow: inset 0 -1px 0 var(--line); }
.dw-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dw-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.dw-sig { max-width: 240px; height: auto; border-bottom: 1px solid var(--ink); }
.drawer .spec { margin: 0; padding: 0; }
.drawer .spec div { font-size: 14px; padding: 7px 0; }
.dw-foot { padding: 18px 22px 0; }
.dw-foot .btn { min-height: 48px; }

/* ---------- demo control, run bar, tour, dialogs ---------- */
.demo { position: absolute; top: calc(var(--concept-bar) + 14px); left: 18px; z-index: 70; }
.demo-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 22px; background: rgba(255, 255, 255, .7); color: var(--ink-2); font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(21, 24, 27, .14); }
.demo-btn:hover, .demo-btn[aria-expanded="true"] { background: var(--paper); color: var(--ink); }
.demo-menu { position: absolute; top: 50px; left: 0; width: 260px; padding: 6px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 20px 44px -16px rgba(15, 20, 25, .45); animation: drop .18s ease-out; }
.demo-menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; padding: 0 12px; border: 0; border-radius: 9px; background: none; text-align: left; font-size: 15px; font-weight: 700; }
.demo-menu button:hover { background: var(--steel); }
.demo-menu [role="switch"]::after { content: ""; flex: none; width: 36px; height: 22px; margin-left: 10px; border-radius: 11px; background: #C3C9CE; box-shadow: inset -14px 0 0 2px #C3C9CE, inset 0 0 0 2px #C3C9CE; transition: background-color .2s; }
.demo-menu [role="switch"][aria-checked="true"]::after { background: #fff; box-shadow: inset 14px 0 0 2px var(--green), inset 0 0 0 2px var(--green); }
.demo-menu .demo-danger { color: var(--red); margin-top: 4px; box-shadow: 0 -1px 0 var(--line); border-radius: 0 0 9px 9px; }
.only-narrow { display: none !important; }

.run-bar { position: fixed; left: 50%; bottom: 18px; z-index: 75; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; width: min(760px, calc(100% - 24px)); padding: 12px 12px 12px 18px; border-radius: 14px; background: var(--graphite); color: #fff; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.run-step { flex: none; font: 600 16px var(--time); color: var(--amber); white-space: nowrap; }
#run-text { flex: 1; font-size: 15px; }
.run-bar .btn { min-height: 44px; flex: none; }
@media (min-width: 1100px) { .run-bar { left: auto; right: 20px; transform: none; width: min(760px, calc(100% - 520px)); } }
.run-flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 4px var(--amber); } 100% { box-shadow: 0 0 0 0 transparent; } }

.tour { position: fixed; right: 20px; bottom: 20px; z-index: 75; width: min(360px, calc(100% - 24px)); padding: 16px 18px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 24px 48px -20px rgba(15, 20, 25, .5); }
.tour-count { font: 600 15px var(--time); color: var(--amber-ink); }
.tour h2 { margin: 4px 0 6px; font-size: 19px; }
.tour p#tour-text { font-size: 15px; color: var(--ink-2); }
.tour-nav { display: flex; gap: 8px; margin-top: 14px; }
.tour-nav .btn { min-height: 44px; }
.tour-nav #tour-next { margin-left: auto; }
.tour-target { outline: 3px solid var(--amber) !important; outline-offset: 3px; }

.dlg { width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 32px); padding: 24px; border: 0; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.dlg::backdrop { background: rgba(15, 18, 20, .5); }
.dlg h2 { font-size: 22px; margin-bottom: 12px; }
.dlg h2:focus { outline: none; }
.dlg h3 { font-size: 16px; margin: 18px 0 6px; }
.dlg p { margin-bottom: 10px; color: var(--ink-2); }
.dlg-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.dlg-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.dlg-links a { display: inline-flex; align-items: center; min-height: 44px; }
.dlg-wide { width: min(860px, calc(100% - 24px)); padding: 0; background: var(--steel); }
.dlg-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 22px; background: var(--steel); box-shadow: 0 1px 0 var(--line); }
.dlg-bar h2 { margin: 0; font-size: 18px; }
.dlg-bar .btn { min-height: 44px; }
#report-body { padding: 16px; }
.update-bar { position: fixed; left: 18px; bottom: 18px; z-index: 80; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--graphite); color: #fff; font-size: 14px; }
.update-bar .btn { min-height: 44px; }

/* ---------- responsive ---------- */
@media (max-width: 1360px) {
  .console { --lnw: 140px; }
  .call { grid-template-columns: 1fr minmax(150px, 180px); }
  .call-who { grid-column: 1 / -1; display: flex; gap: 12px; align-items: baseline; }
  .call-who .call-c { margin: 0; }
  .call-acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 1099px) {
  .desk { display: block; }
  .device-col { position: static; height: auto; min-height: calc(100vh - var(--concept-bar)); padding: 70px 16px 24px; }
  .console { display: none; box-shadow: none; }
  body.m-console .console { display: block; }
  body.m-console .device-col { display: none; }
  .only-narrow { display: flex !important; }
  body.m-console .demo-menu [data-g="console"], body:not(.m-console) .demo-menu [data-g="phone"] { display: none !important; }
  .demo { left: auto; right: 14px; top: calc(var(--concept-bar) + 10px); }
  .demo-menu { left: auto; right: 0; }
  .c-bar { padding-right: 170px; gap: 14px; flex-wrap: wrap; height: auto; min-height: 64px; }
  .c-org, .c-user { display: none; }
  .c-when { margin-left: 0; }
  .dw-h { padding-top: 64px; }
  .dw-x { top: 58px; }
}
@media (max-width: 760px) {
  .c-lower { grid-template-columns: 1fr; }
  .queue { flex-direction: column; gap: 6px; }
  .q-head { width: auto; }
  .q-list { width: 100%; }
  .q-item { flex-basis: 100%; max-width: none; }
  .c-tools { padding: 14px 16px 10px; }
  .c-search { flex: 1 1 100%; order: 3; }
  .c-tools .btn { margin-left: auto; }
  .queue, .board-wrap, .c-lower, .c-summary, .call { margin-left: 12px; margin-right: 12px; }
  .call { grid-template-columns: 1fr; }
  .call-sug { padding-left: 0; box-shadow: none; }
  .drawer { width: 100%; }
}

/* A real phone: the app is the whole screen. */
@media (max-width: 560px) {
  .device-col { padding: 0; min-height: 0; display: block; }
  .device { height: calc(100vh - var(--concept-bar)); height: calc(100dvh - var(--concept-bar)); width: 100%; aspect-ratio: auto; padding: 0; border-radius: 0; background: var(--steel); box-shadow: none; }
  .device::before, .device::after, .home-ind, .sb { display: none; }
  .device-screen { border-radius: 0; }
  .app { padding-top: env(safe-area-inset-top); }
  .navbar { padding-right: 150px; }
  .netbar { justify-content: flex-start; padding: 4px 140px 4px 16px; min-height: 46px; text-align: left; }
  .banner-slot { top: calc(env(safe-area-inset-top) + 8px); }
  .tabbar { padding-bottom: calc(6px + env(safe-area-inset-bottom)); }
  .app.is-modal .dock, .sheet { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .demo { top: calc(var(--concept-bar) + 5px); right: 10px; }
  .demo-btn { min-height: 36px; padding: 0 12px; font-size: 13px; background: rgba(255, 255, 255, .85); }
  .demo-btn::before { content: ""; position: absolute; inset: -4px 0; }
  .run-bar { bottom: calc(92px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto; grid-template-areas: "step stop" "text text"; gap: 0 12px; padding: 8px 10px 10px 14px; }
  .run-step { grid-area: step; font-size: 14px; }
  .run-bar .btn { grid-area: stop; min-height: 40px; }
  #run-text { grid-area: text; font-size: 13px; line-height: 1.35; }
  .tour { bottom: calc(92px + env(safe-area-inset-bottom)); right: 12px; }
}
@media (max-width: 560px) and (display-mode: standalone) {
  .demo { display: none; }
  .navbar { padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .done-mark path, .done-mark circle { stroke-dashoffset: 0; }
}
