/* FFG field app. Formal layout 13 Oct 2026 (Adam: "the wording looks tacky, not formal like any other application"):
   the look of the phone's own apps. Large titles, grouped white panels with small grey headings above them,
   label and value rows, one text family in three sizes, colour only where it means something (blue = tap, green = done
   or on site, orange = warning, red = urgent or not safe). Dark follows the phone. */
:root {
  --ink: #1c1c1e; --ink-2: #3a3a3c; --muted: #8e8e93; --line: #e5e5ea; --sep: #c6c6c8; --bg: #f2f2f7; --card: #fff; --sunk: #eeeef0;
  --bar: rgba(249,249,249,.94);
  --accent: #007aff; --accent-ink: #fff; --accent-soft: #e5f0ff;
  --ok: #248a3d; --ok-fill: #34c759; --ok-bg: #e8f7ec; --warn: #c93400; --warn-fill: #ff9500; --warn-bg: #fff4e5;
  --bad: #d70015; --bad-fill: #ff3b30; --bad-bg: #ffebea; --due-bg: #ffd6d3;
  --radius: 12px; --radius-sm: 10px;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #fff; --ink-2: #ebebf5; --muted: #8e8e93; --line: #38383a; --sep: #48484a; --bg: #000; --card: #1c1c1e; --sunk: #2c2c2e;
    --bar: rgba(22,22,24,.94); --accent: #0a84ff; --accent-soft: #0a2a4d;
    --ok: #30d158; --ok-fill: #30d158; --ok-bg: #0f2e18; --warn: #ffb340; --warn-fill: #ff9f0a; --warn-bg: #33240a;
    --bad: #ff6961; --bad-fill: #ff453a; --bad-bg: #3a1513; --due-bg: #5c1f1a; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, Roboto, sans-serif; letter-spacing: -.2px; -webkit-font-smoothing: antialiased; }
body { padding-bottom: env(safe-area-inset-bottom); }
.pad { padding: 16px; }
.muted, .sm { color: var(--muted); }
.small { font-size: 14px; }
h1 { font-size: 30px; line-height: 1.12; margin: 0; font-weight: 700; letter-spacing: -.6px; }
h2 { font-size: 13px; margin: 0 0 6px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: 0; display: flex; align-items: center; gap: 6px; }
h2 .ic { display: none; }
.row { display: flex; align-items: center; gap: 8px; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.err { color: var(--bad); }
a { color: var(--accent); text-decoration: none; }
pre.desc { white-space: pre-wrap; font: inherit; margin: 0; color: var(--ink); }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic.sm { width: 16px; height: 16px; } .ic.lg { width: 24px; height: 24px; }

/* ---------- the top: a large title on the page colour, or a slim bar with a back link ---------- */
.appbar { position: sticky; top: 0; z-index: 5; background: var(--bar); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: var(--ink); padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
.appbar h1 { color: var(--ink); }
.appbar .eyebrow { font-size: 14px; color: var(--muted); }
.appbar .sub { font-size: 15px; color: var(--muted); margin-top: 2px; }
#upd { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.3em; }   /* its own line, never wraps: saved -> updated cannot change the header's height (1 Dec 2026) */
.appbar.slim { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: .5px solid var(--sep); }
.appbar.slim h1 { font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.iconbtn { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; border: none; background: none; color: var(--accent); }
.backbtn { border: none; background: none; color: var(--accent); padding: 4px 6px 4px 0; min-height: 40px; font-weight: 400; gap: 2px; font-size: 17px; }

/* ---------- grouped panels (the page is a stack of them) ---------- */
.page { padding: 8px 16px 32px; display: flex; flex-direction: column; }
.page.withbar { padding-bottom: 170px; }
.list { padding: 0 16px 100px; display: flex; flex-direction: column; }
.sec-h { font-size: 13px; color: var(--muted); text-transform: uppercase; padding: 22px 16px 7px; }
.sec-f { font-size: 13px; color: var(--muted); padding: 7px 16px 0; }
.grp, .section { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.section { padding: 12px 16px; margin-top: 20px; }
.grp + .grp { margin-top: 20px; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 16px; min-height: 52px; position: relative; width: 100%; background: none; border: none; border-radius: 0; color: var(--ink); text-align: left; font-weight: 400; justify-content: flex-start; }
.li::after { content: ''; position: absolute; left: 16px; right: 0; bottom: 0; border-bottom: .5px solid var(--line); }
.li:last-child::after { display: none; }
.li.indent::after { left: 64px; }
.li .tm { width: 46px; flex: none; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; color: var(--ink); align-self: flex-start; padding-top: 1px; }
.li .bd { flex: 1; min-width: 0; }
.li .a { font-weight: 600; font-size: 16px; }
.li .s { font-size: 14px; color: var(--muted); margin-top: 1px; }
/* The card's line wraps to about two lines (30 Oct 2026); the words are cut on a whole word by field-api. */
.li .s.one { overflow-wrap: anywhere; }
.li .tags { font-size: 12px; margin-top: 5px; display: flex; gap: 6px; flex-wrap: wrap; }
.li .ch { color: var(--sep); }
.li .lead { color: var(--accent); }
.li.done { opacity: .45; }
.li.tap { cursor: pointer; }
.li.tap:active { background: var(--sunk); }
.li.blue { color: var(--accent); }
.li.red { color: var(--bad); }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 16px; position: relative; }
.kv::after { content: ''; position: absolute; left: 16px; right: 0; bottom: 0; border-bottom: .5px solid var(--line); }
.kv:last-child::after { display: none; }
.kv > span:first-child { color: var(--muted); flex: none; }
.kv > span:last-child { text-align: right; }
.tag-urgent { color: var(--bad); font-weight: 600; } .tag-warn { color: var(--warn); } .tag-ok { color: var(--ok); } .tag-blue { color: var(--accent); }
/* The marks on a card are one shape (31 Oct 2026): solid red for what stops him, so it stands out on a red card too. */
.li .tags span { display: inline-block; font-size: 12px; line-height: 18px; padding: 0 7px; border-radius: 6px; font-weight: 600; }
.li .tags .tag-urgent { background: var(--bad-fill); color: #fff; } .li .tags .tag-warn { background: var(--warn-bg); color: var(--warn); } .li .tags .tag-blue { background: var(--accent-soft); color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.warn { background: var(--warn-fill); } .dot.bad { background: var(--bad-fill); }
.empty { text-align: center; padding: 64px 24px; color: var(--muted); }
.empty .ic { width: 36px; height: 36px; margin-bottom: 10px; }
.empty strong { color: var(--ink); font-weight: 600; }
.skel { height: 64px; border-radius: var(--radius); background: var(--card); margin-top: 12px; opacity: .6; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.progress .bar { flex: 1; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress .bar span { display: block; height: 100%; background: var(--ok-fill); border-radius: 99px; transition: width .3s; }

/* ---------- the job ---------- */
.jobhead { padding: 4px 16px 0; }
.jobhead h1 { font-size: 26px; letter-spacing: -.5px; }
.jobhead .suburb { font-size: 17px; color: var(--ink-2); margin-top: 2px; }
.jobhead .meta { font-size: 15px; color: var(--muted); margin-top: 6px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.quick .btn { flex-direction: column; gap: 2px; background: var(--card); color: var(--accent); border: none; border-radius: var(--radius); min-height: 62px; font-size: 13px; font-weight: 500; }
.quick .btn .ic { width: 22px; height: 22px; }
.quick .btn.off { color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.status.on { color: var(--ok); } .status.way { color: var(--accent); }
.status .dot { background: currentColor; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 12px; }
.thumbs img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.thumbs img.tapme { outline: 2px solid var(--accent); outline-offset: 1px; }
.earlier { padding: 11px 16px; position: relative; }
.earlier::after { content: ''; position: absolute; left: 16px; right: 0; bottom: 0; border-bottom: .5px solid var(--line); }
.earlier:last-child::after { display: none; }
.earlier .thumbs { padding: 8px 0 0; }

/* ---------- the bar at the bottom: one main button, smaller choices under it ---------- */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--bar); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: .5px solid var(--sep); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 6px; }
.links { display: flex; justify-content: space-around; }
.links button { background: none; border: none; color: var(--accent); min-height: 40px; padding: 6px 10px; font-weight: 400; font-size: 16px; }
.links button.red { color: var(--bad); }
.links .way { color: var(--ok); font-size: 15px; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; }

/* ---------- buttons and inputs ---------- */
button, .btn { font: inherit; border: none; background: var(--card); color: var(--accent); border-radius: var(--radius); padding: 12px 14px; min-height: 50px; cursor: pointer; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; }
button:active, .btn:active { opacity: .7; }
button.primary { background: var(--accent); color: #fff; font-weight: 600; }
button.big { min-height: 52px; font-size: 17px; width: 100%; }
button.okb { background: var(--ok-fill); color: #fff; font-weight: 600; }
button.badb { color: var(--bad); }
button.on { background: var(--accent); color: #fff; }
button[disabled] { opacity: .45; }
.seg { display: inline-flex; background: var(--sunk); border-radius: 9px; padding: 2px; gap: 0; }
.seg button { min-height: 32px; background: none; color: var(--ink); padding: 4px 18px; border-radius: 7px; font-weight: 400; font-size: 15px; }
.seg button.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.choices { display: flex; flex-direction: column; }
.choices button { justify-content: flex-start; text-align: left; min-height: 50px; color: var(--ink); background: var(--card); border-radius: 0; font-weight: 400; position: relative; }
.choices button::after { content: ''; position: absolute; left: 16px; right: 0; bottom: 0; border-bottom: .5px solid var(--line); }
.choices button:first-child { border-radius: var(--radius) var(--radius) 0 0; } .choices button:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.choices button:last-child::after { display: none; }
/* Directions choice (2026-12-01.2): the sheet's links look like the sheet's buttons, a little taller for a gloved hand. */
.choices a.btn { justify-content: flex-start; text-align: left; min-height: 56px; font-size: 17px; color: var(--ink); border-radius: 0; font-weight: 400; position: relative; }
.choices a.btn::after { content: ''; position: absolute; left: 16px; right: 0; bottom: 0; border-bottom: .5px solid var(--line); }
.choices a.btn:first-child { border-radius: var(--radius) var(--radius) 0 0; } .choices a.btn:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.choices a.btn:last-child::after { display: none; }
.textbtn { background: none; color: var(--accent); padding: 6px 0; min-height: 40px; font-weight: 400; justify-content: flex-start; }
label { font-size: 15px; color: var(--muted); }
textarea, input[type=text], input[type=date] { font: inherit; width: 100%; border: none; border-radius: var(--radius); padding: 12px 16px; background: var(--card); color: var(--ink); }
textarea:focus, input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
textarea { min-height: 120px; }
input[type=checkbox] { accent-color: var(--accent); }

/* Inside a white panel, buttons and boxes sit on the light grey so they read as buttons. */
.section button { background: var(--sunk); }
.section .seg button { background: none; } .section .seg button.on { background: var(--card); }
.section button.primary, .section button.on { background: var(--accent); color: #fff; }
.section .textbtn { background: none; }
.section textarea, .section input[type=text], .section input[type=date] { background: var(--sunk); }
.section > h2:first-child { margin-top: 2px; }

/* ---------- bottom tabs ---------- */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bar); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: .5px solid var(--sep); display: flex; padding: 2px 0 calc(2px + env(safe-area-inset-bottom)); z-index: 6; }
.tabs button { flex: 1; border-radius: 0; background: none; color: var(--muted); font-size: 10px; font-weight: 500; flex-direction: column; gap: 2px; min-height: 50px; }
.tabs button .ic { width: 25px; height: 25px; }
.tabs button.cur { color: var(--accent); }

/* ---------- sheets, toast, queue bar ---------- */
.sheet { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.4); display: flex; align-items: flex-end; animation: fade .15s; }
.sheet-in { background: var(--bg); color: var(--ink); width: 100%; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 14px 14px 0 0; animation: up .22s ease-out; max-height: 90vh; overflow: auto; }
.sheet-in::before { content: ''; display: block; width: 36px; height: 5px; border-radius: 99px; background: var(--sep); margin: 0 auto 14px; }
.sheet-in h3 { margin: 0 0 4px; font-size: 20px; font-weight: 700; letter-spacing: -.4px; }
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 16px; right: 16px; bottom: 90px; background: rgba(28,28,30,.94); color: #fff; padding: 13px 16px; border-radius: 14px; z-index: 50; font-size: 15px; animation: up .2s ease-out; text-align: center; }
/* The top strip (15 Oct 2026): the manager's 'Viewing' banner and 'waiting to send', ABOVE the app bar (never over the
   Back arrow, audit 15 Oct 2026 item 6). The app bar sticks just below it (--strip, set by app.js). */
.strip { position: sticky; top: 0; z-index: 7; }
.strip-on .strip { padding-top: env(safe-area-inset-top); background: var(--bar); }
.strip-on .appbar { top: var(--strip, 0px); padding-top: 10px; }
.qbar { background: var(--warn-bg); color: var(--warn); font-size: 13px; font-weight: 600; text-align: center; padding: 4px 8px; }
/* A photo held in memory only (30 Nov 2026): red, as big as the photos bar. */
.qbar.notsaved { background: var(--bad-bg); color: var(--bad); font-size: 15px; font-weight: 700; padding: 8px; }
/* Photos waiting (4 Nov 2026): bigger, so a trade sees 'Keep the app open' before he closes it. */
.qbar.photos { font-size: 15px; font-weight: 700; padding: 8px; }
.vbar { background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; text-align: center; padding: 5px 8px; }
.viewpick { display: inline-block; margin-top: 6px; min-height: 32px; padding: 4px 12px; border-radius: 16px; border: 0; background: var(--accent-soft); color: var(--accent); font-size: 15px; font-weight: 600; }

/* ---------- on site and the tenant form ---------- */
.q { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; position: relative; }
.q::after { content: ''; position: absolute; left: 16px; right: 0; bottom: 0; border-bottom: .5px solid var(--line); }
.q:last-child::after { display: none; }
.sigpad { width: 100%; height: 170px; border: 1px dashed var(--sep); border-radius: var(--radius-sm); background: #fff; touch-action: none; display: block; }

/* ---------- Me ---------- */
.version { text-align: center; font-size: 12px; color: var(--muted); padding: 16px 0 0; }

/* ---------- camera (full screen) ---------- */
.cam { position: fixed; inset: 0; z-index: 40; background: #000; display: flex; flex-direction: column; }
.cam-view { flex: 1; min-height: 0; position: relative; overflow: hidden; touch-action: none; }   /* zoom (30 Nov 2026): the picture is enlarged inside this box */
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.cam-zoom { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 10px; }
.cam-zoom button { min-width: 56px; min-height: 48px; border-radius: 24px; border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 16px; font-weight: 600; padding: 0 12px; }
.cam-zoom button.on { background: #fff; color: #000; }
.cam-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; }
.cam .seg { display: flex; background: rgba(0,0,0,.5); border-radius: 12px; border: none; padding: 0; }
.cam .seg button, .cam-torch, .cam-done { background: rgba(0,0,0,.5); color: #fff; border: none; min-height: 44px; }
.cam .seg button.on, .cam-torch.on { background: #fff; color: #000; font-weight: 600; }
.cam-bottom { background: rgba(0,0,0,.6); color: #fff; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
.cam-thumbs { display: flex; gap: 6px; overflow-x: auto; min-height: 50px; margin-bottom: 8px; }
.cam-thumbs img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; }
.cam-shutter { width: 76px; height: 76px; border-radius: 50%; background: #fff; border: 5px solid rgba(255,255,255,.4); background-clip: padding-box; padding: 0; }
.cam-shutter:active { transform: scale(.92); }
.cam-count { font-size: 13px; min-width: 80px; }
/* Photos by work item (3 Nov 2026): the item the camera is taking photos for, under the top bar. */
.cam-label { position: absolute; top: calc(64px + env(safe-area-inset-top)); left: 12px; right: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 14px; line-height: 1.3; padding: 8px 12px; border-radius: 10px; }
.itembox { position: relative; padding: 0 16px 10px 60px; margin-top: -6px; }
.itembox::after { content: ''; position: absolute; left: 16px; right: 0; bottom: 0; border-bottom: .5px solid var(--line); }
.itembox:last-child::after { display: none; }
.li:has(+ .itembox)::after { display: none; }   /* the line goes under the item's box, so the box reads as part of its item */
.itembox .thumbs { padding: 6px 0 0; }
.itembox .photobtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; font-size: 14px; }
.itembox .pcount { font-size: 13px; color: var(--muted); margin-left: 8px; }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .12s; }
.cam-flash.go { opacity: .6; }
/* The drawing screen (11 Oct 2026) */
.mk { position: fixed; inset: 0; z-index: 45; background: #000; display: flex; flex-direction: column; }
.mk-top, .mk-bottom { display: flex; gap: 6px; padding: 8px; align-items: center; flex-wrap: wrap; background: #111; }
.mk-top { padding-top: calc(8px + env(safe-area-inset-top)); }
.mk-bottom { padding-bottom: calc(8px + env(safe-area-inset-bottom)); justify-content: space-between; }
.mk button { background: #222; color: #fff; border-color: #333; }
.mk button.primary { background: var(--accent); color: #fff; }
.mk-top button { min-height: 40px; padding: 6px 10px; }
.mk-top button.on { outline: 3px solid #4f8cff; }
.mk-col { width: 40px; min-width: 40px; border-radius: 50%; border: 2px solid #555; }
.mk-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mk-stage canvas { max-width: 100%; max-height: 100%; touch-action: none; }
.office-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.office-grid figure { margin: 0; cursor: pointer; }
.office-grid img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.office-grid figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
/* 12 Oct 2026: a tapped job card shows it is opening */
.card.opening { opacity: .55; pointer-events: none; }
/* 12 Oct 2026 (Adam): a long press on a button (Hold to talk) selected the page's text on an iPhone */
button, .btn, .card, .mk, .cam { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button, .btn { touch-action: manipulation; }
/* The day's weather above the run (weather.js, 13 Oct 2026). */
.wx { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--card, #fff); font-size: 15px; }
.wx[hidden] { display: none; }
.wx .wxi { font-size: 22px; line-height: 1; }
.wx .cr { font-size: 12px; color: var(--muted); margin-top: 2px; }
.wx.wet { background: #e8f1fb; }
.wx.heavy { background: #fdecea; }
@media (prefers-color-scheme: dark) { .wx.wet { background: #16304d; } .wx.heavy { background: #4a1f1c; } }
/* The time column: 'Meet at' a set time, or 'Between' the appointment's time frame (13 Oct 2026). */
.li .tm.two { width: 74px; font-size: 14px; line-height: 1.25; letter-spacing: -.3px; }
.li .tm.two small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
/* SR's pre-start check (13 Oct 2026, SR jobs only). */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 36px; padding: 6px 12px; border-radius: 18px; font-size: 14px; background: var(--sunk); color: var(--ink); font-weight: 500; }
.section .chips button.on { background: var(--accent); color: #fff; }
.rrow { padding: 8px 0; border-top: .5px solid var(--sep); }
.rrow:first-of-type { border-top: none; }
.rname { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.rsel { display: grid; grid-template-columns: 56px auto; gap: 6px 8px; align-items: center; justify-content: start; }
.rsel .seg button { padding: 4px 14px; font-size: 14px; }
.section .rsel .seg button.on, .section .q .seg button.on { background: var(--accent); color: #fff; }

/* Get help (14 Oct 2026) */
.helpbox { background: var(--blue-bg, rgba(10,132,255,.12)); border-radius: 14px; }
.toast .toasthelp { display: block; margin: 10px auto 0; min-height: 36px; padding: 6px 16px; border-radius: 10px; background: #fff; color: #111; font-weight: 600; border: 0; }

/* ---------- the refresh button and the van list tab (22 Oct 2026) ---------- */
/* Refresh: spins while it works, a green tick when done, red when it failed (Adam: "no indication"). */
.iconbtn .ic { transition: color .2s; }
.iconbtn.busy { pointer-events: none; }
.iconbtn.busy .ic { animation: spin .8s linear infinite; }
.iconbtn.ok { color: var(--ok); }
.iconbtn.fail { color: var(--bad); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .iconbtn.busy .ic { animation: pulse 1s ease-in-out infinite; } }
.vrow { padding-left: 4px; }
.vtick { background: none; min-height: 44px; padding: 0 6px 0 10px; color: inherit; }
.vrm { padding: 0 6px; min-height: 40px; font-size: 15px; flex: none; }
.vjob { min-height: 40px; }
.vhave { background: var(--sunk); border-radius: 10px; padding: 8px 12px; font-size: 15px; display: grid; gap: 4px; margin-top: 4px; }
.vwarn { display: flex; gap: 8px; align-items: flex-start; background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.vwarn[hidden] { display: none; }
.sheet select { font: inherit; width: 100%; border: none; border-radius: var(--radius); padding: 12px 16px; background: var(--card); color: var(--ink); margin-top: 4px; -webkit-appearance: none; appearance: none; }
.sheet label { display: block; }

/* The van list's day picker (30 Oct 2026): Today, Tomorrow, the six days after, Stock; scrolls sideways inside itself. */
.vchips { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; padding: 2px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; max-width: 100%; }
.vchips::-webkit-scrollbar { display: none; }
.vchips button { flex: none; min-height: 34px; padding: 4px 13px; border-radius: 17px; font-size: 14px; background: var(--sunk); color: var(--ink); font-weight: 500; }
.vchips button.on { background: var(--accent); color: #fff; font-weight: 600; }
/* Five tabs since 30 Oct 2026 (Week): the labels stay on one line on a 320 px phone. */
.tabs button { padding-left: 2px; padding-right: 2px; }
.tabs button span { white-space: nowrap; }

/* The access line on the job page (30 Oct 2026). */
.accessline { margin-top: 8px; font-weight: 600; color: var(--ink); }
.quick > :only-child { grid-column: 1 / -1; }
.li.vforget { padding-left: 16px; }
.vwarn.stale { margin-bottom: 12px; }
.onway { display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--ok); font-size: 15px; margin-bottom: 8px; }

/* The priority bar and the red for due today or past (Adam, 1 Nov 2026; the bar's colours are PRIORITY_COLOURS in config.js). */
.li.pbar, .jobhead.pbar { box-shadow: inset 5px 0 0 var(--pbar); }
.li.duered { background: var(--due-bg); }
.li.duered .s { color: var(--ink-2); }
.dueline { font-size: 14px; font-weight: 700; color: var(--bad); margin-top: 1px; }
.li .tags .tag-prio { background: var(--sunk); color: var(--ink); }
.li.duered .tags .tag-urgent { box-shadow: 0 0 0 1.5px #fff; }
/* A section heading that holds a street keeps its own capitals. */
.sec-h.plain { text-transform: none; font-size: 14px; }
.itemrow .ic.ch { transition: transform .15s; } .itemrow.open .ic.ch { transform: rotate(90deg); }
.fullwords { margin-top: 4px; }
/* The small links under a big button stay on one line. */
.links button { padding: 6px 4px; font-size: 15px; white-space: nowrap; }
/* The van list's three kinds of line (31 Oct 2026). */
.vlabel { font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 16px 2px; }
.vline { font-size: 14px; color: var(--ink-2); padding: 1px 16px 3px; }
.vline:last-of-type { padding-bottom: 8px; }
/* STAFF HOURS (built OFF 21 Nov 2026, day.js): the My day card at the top of Today. */
.daycard { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--card, #fff); display: flex; flex-direction: column; gap: 8px; }
.daycard .dayh { font-size: 17px; font-weight: 600; }
.daycard button.dayend { background: var(--ink); color: var(--bg); font-weight: 600; }
.daycard .daylink { min-height: 36px; background: none; color: var(--accent); font-size: 14px; padding: 4px 0; }
