/* AF Canvass. The look is "Enamel": flag-blue bars top and bottom, and every door shown as an enamel house-number plate.
   The palette is the flag's own: Old Glory Blue #0A3161 and Old Glory Red #B31942 on white. Everything else is "Plain" (2.11):
   Apple's published iOS system greys, text in the phone's own font, one filled button per screen and the rest outlined.
   Door plates keep Overpass; the logo is drawn (js/ui/logo.js) and loads no font. Filled buttons are a shade darker than the bars (--button).
   Colour has two jobs that never mix. Blue (--accent) is anything you can tap, or a door still to do.
   Door status is green = reached, amber = come back, red = refused, and it looks the same on the map and in the list. */

@font-face { font-family: 'Overpass'; font-weight: 100 900; font-style: normal; font-display: swap; src: url(../fonts/overpass.woff2) format('woff2'); }

:root {
  --accent: #0a3161; --accent-fill: #0a3161; --accent-tint: #dfe7f3; --button: #02244f;
  --green: #0b6b4f; --green-fill: #0b6b4f; --green-tint: #dff3ea;
  --ink: #000000; --ink-2: #6c6c70; --ink-3: #6c6c70; --faint: #8e8e93;
  --paper: #ffffff; --ground: #f2f2f7; --fill: #e5e5ea; --line: #d1d1d6; --line-2: #e5e5ea; --edge: #c7c7cc; --badge: #f2f2f7;
  --yellow: #f2a900; --yellow-tint: #fdf1cf; --yellow-ink: #7a5200;
  --red: #b31942; --red-tint: #fbe7ec; --red-fill: #b31942; --blue: #1a73e8;
  --no: var(--red); --no-fill: var(--red-fill); --mid-edge: var(--yellow); --top-yes: var(--green); --top-no: var(--no);
  --yes-tint: #d3efe3; --mid-tint: #ffeaa8; --no-tint: #f9d7df;   /* the pale fill of an answer not yet picked (2.19) */   /* door and answer status; see the colour-blind palette below */
  /* the bars, and what sits on them */
  --chrome: #0a3161; --chrome-ink-2: #bccae3; --chrome-track: #2c5085; --logo-rule: #e8384f;
  --gone-fill: #5f6980; --chip-on: var(--button); --chip-on-ink: #ffffff; --mate: #5b3cc4;
  --map: #eaeae0; --map-bldg: #dedcd6; --map-green: #b8da9c; --map-water: #8cd0ea; --map-road: #fdfdfa; --map-casing: #d6d5cc; --map-text: #58585a;
  --shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 4px 16px rgba(0, 0, 0, .08);
  --r: 10px; --r-s: 8px; --tap: 44px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --sys: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font: var(--sys); --plate-font: 'Overpass', var(--sys);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #9dbbf0; --accent-fill: #346dd0; --accent-tint: #15243f; --button: #0a3161;
    --green: #3fbf96; --green-fill: #0e7557; --green-tint: #103a2f;
    --ink: #ffffff; --ink-2: #aeaeb2; --ink-3: #8e8e93; --faint: #636366;
    --paper: #1c1c1e; --ground: #000000; --fill: #2c2c2e; --line: #38383a; --line-2: #2c2c2e; --edge: #48484a; --badge: #2c2c2e;
    --yellow: #f2a900; --yellow-tint: #3f3310; --yellow-ink: #ffd772;
    --red: #ff8fa3; --red-tint: #46202b; --red-fill: #cb2a56; --blue: #5aa2ff;
    --no: #ff6b81; --yes-tint: #103a2f; --mid-tint: #3f3310; --no-tint: #46202b;
    --chrome: #0a3161; --chrome-ink-2: #bccae3; --chrome-track: #2c5085; --logo-rule: #e8384f;
    --gone-fill: #68728c; --chip-on: var(--ink); --chip-on-ink: var(--paper); --mate: #7a5cf0;
    --map: #1f1f21; --map-bldg: #2a2a2d; --map-green: #1d3324; --map-water: #17324a; --map-road: #3a3a3d; --map-casing: #161618; --map-text: #aeaeb2;
    --shadow: 0 1px 3px rgba(0, 0, 0, .6), 0 4px 16px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
/* Colour-blind safe palette (Settings > Colors, 2.18). Reached is blue, come back is yellow, refused is a dark rust: three colours that
   stay far apart in lightness as well as hue, which is what survives red-green and blue-yellow colour blindness. Blue #0072B2 and
   yellow #F0E442 are from the Okabe-Ito palette; the rust is its vermillion darkened. Measured with scripts/cvd.mjs (see the README). */
html[data-cb] { --green: #0072b2; --green-fill: #0072b2; --green-tint: #dcecf7; --yellow: #f0e442; --yellow-tint: #fbf7c8; --yellow-ink: #756800; --mid-edge: #756800; --no: #3d1200; --no-fill: #8c2f00; --top-yes: #56b4e9; --top-no: #d55e00; --yes-tint: #eaf3fa; --mid-tint: #fbf7c8; --no-tint: #f3ddd0; }
@media (prefers-color-scheme: dark) {
  html[data-cb] { --green: #56b4e9; --green-fill: #0072b2; --green-tint: #10304a; --yellow: #f0e442; --yellow-tint: #3d3a10; --yellow-ink: #ffe98a; --mid-edge: #f0e442; --no: #e2701f; --no-fill: #8c2f00; --yes-tint: #10304a; --mid-tint: #3d3a10; --no-tint: #33190a; }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overscroll-behavior: none; }
html[data-text='l'] { font-size: 112.5%; } html[data-text='xl'] { font-size: 128%; }
/* at larger sizes, wrap names instead of cutting them off */
html[data-text='l'] .doorrow .who, html[data-text='xl'] .doorrow .who, html[data-text='xl'] .topbar .title { white-space: normal; }
body { font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
#app { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.75rem; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 1.25rem; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 0.8125rem; line-height: 1.3; font-weight: 600; color: var(--ink-2); }
.screenbar h1 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.center { text-align: center; } .hint { font-size: 0.8125rem; line-height: 1.35; color: var(--ink-2); font-weight: 400; }
.gap-above { margin-top: 6px; } .gap-below { margin-bottom: 10px; }
.card h2 { font-size: 1rem; line-height: 1.3; font-weight: 600; letter-spacing: 0; }
h1:focus { outline: none; }   /* headings only receive focus from the app itself, when a screen changes */
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--ink-2); } .small { font-size: 0.8438rem; line-height: 1.35; }
p.muted { font-size: 0.9062rem; } label.row { font-size: 0.9375rem; line-height: 1.3; }
.grow { flex: 1; min-width: 0; } .row { display: flex; align-items: center; gap: 10px; } .wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.icon { flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
input[type='checkbox'] { accent-color: var(--accent-fill); flex: none; } .check { width: 22px; height: 22px; }
label.row:has(.check) { min-height: var(--tap); }

/* ---------- buttons ---------- */
.btn { min-height: var(--tap); padding: 0 16px; border-radius: var(--r-s); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--fill); text-align: center; line-height: 1.15; text-decoration: none; color: var(--ink); transition: opacity .12s; }
.btn:active { opacity: .6; }
.btn:not(.primary):not(.quiet) { background: var(--paper); box-shadow: inset 0 0 0 1px var(--edge); }
.btn.primary { background: var(--button); color: #fff; }
.btn.danger { color: var(--red); }
.btn.quiet { background: transparent; color: var(--accent); }
.btn.block { width: 100%; } .btn.onground { background: var(--paper); } .btn.sm { min-height: 34px; padding: 0 12px; font-size: 0.875rem; border-radius: 8px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
/* small controls keep their look but answer to a 44px-tall touch */
/* small controls keep their look and get a thumb-sized, 44px hit area laid over them */
.btn.sm, .chip, .linkbtn, .toast button, .pill button, .segmented button, .iconbtn { position: relative; }
.btn.sm::after, .chip::after, .linkbtn::after, .toast button::after, .pill button::after, .segmented button::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.iconbtn::after { content: ''; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
.btn.sm, .toast button, .pill button { min-width: 44px; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.iconbtn:active { background: var(--fill); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--ink-3); display: inline-block; }
.dot.todo { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.dot.contact, .dot.lit, .dot.yes { background: var(--green); } .dot.nh, .dot.skip, .dot.mid { background: var(--yellow); } .dot.refuse, .dot.no { background: var(--no); }

/* ---------- screens ---------- */
.screen { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(14px + var(--safe-t)) 16px 28px; }
.screen:last-of-type:not(:has(~ .tabs)) { padding-bottom: calc(28px + var(--safe-b)); }   /* no bar under it (adding a turf): clear the home indicator itself */
.screen > .col { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
/* the purple band across the top of every screen that is not a turf. The shadow carries it edge to edge on wide screens. */
.brand, .screenbar { display: flex; align-items: center; background: var(--chrome); color: #fff; margin: calc(-14px - var(--safe-t)) -16px 0; box-shadow: 0 0 0 100vmax var(--chrome); clip-path: inset(0 -100vmax); }
.brand { justify-content: space-between; gap: 12px; padding: calc(16px + var(--safe-t)) 8px 16px 16px; }
.screenbar { gap: 2px; padding: calc(8px + var(--safe-t)) 8px 8px 6px; min-height: 40px; }
.screenbar.top { padding: calc(14px + var(--safe-t)) 16px 14px; }
.brand .iconbtn:active, .screenbar .iconbtn:active, .topbar .iconbtn:active { background: rgba(255, 255, 255, .14); }
.brand :focus-visible, .screenbar :focus-visible, .topbar :focus-visible, .tabs :focus-visible { outline-color: #fff; }
/* the logo (js/ui/logo.js): the AF monogram between red brackets broken by walk-route stops, then "Canvass", all drawn as outlines.
   It shrinks on a narrow phone so the settings button never leaves the screen. White parts take the bar's text colour. */
.logo { display: flex; align-items: center; min-width: 0; }
.logo svg { display: block; width: min(197px, 100vw - 96px); height: auto; overflow: visible; }
.logo .lg-a { fill: currentColor; } .logo .lg-r { fill: var(--logo-rule); } .logo .lg-k { fill: var(--chrome); } .logo .lg-rs { fill: none; stroke: var(--logo-rule); }
.card { background: var(--paper); border-radius: var(--r); }
.card.pad { padding: 14px 16px; } .card.clip { overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-weight: 500; font-size: 0.8438rem; color: var(--ink-2); }
.input { min-height: var(--tap); padding: 10px 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--paper); width: 100%; }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-tint); }
textarea.input { min-height: 64px; resize: vertical; line-height: 1.35; }
.screen .card .input, .dialog .input { background: var(--paper); border-color: var(--edge); }
.screen .card .input:focus, .dialog .input:focus { border-color: var(--accent); background: var(--paper); }
.howto { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 0.9375rem; line-height: 1.35; }
.linkbtn { color: var(--accent); font-weight: 600; font-size: inherit; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 2px; border-radius: var(--r-s); background: var(--fill); }
.segmented button { min-height: 40px; border-radius: 8px; font-weight: 500; font-size: 0.9375rem; }
.segmented button[aria-pressed='true'] { background: var(--paper); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 24, 32, .16); }
.crash { padding-top: 18vh; text-align: center; }
.note { padding: 10px 12px; border-radius: var(--r-s); background: var(--fill); color: var(--ink-2); font-size: 0.875rem; }
.note.warn { color: var(--ink); } .note.bad { background: var(--red-tint); color: var(--red); }

/* ---------- house-number pin ---------- */
.plaque { font-family: var(--plate-font); font-weight: 700; font-size: 0.7812rem; font-variant-numeric: tabular-nums; background: var(--paper); color: var(--ink); border: 1.5px solid var(--accent-fill); box-shadow: none; border-radius: 6px; display: inline-grid; place-items: center; line-height: 1; height: 1.68em; padding: .1em .4em 0; min-width: 2.24em; }
.plaque.md { font-size: 0.8438rem; height: 1.78em; min-width: 3.11em; border-radius: 7px; }
.plaque.target { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.plaque.contact, .plaque.lit { background: var(--green-fill); border-color: var(--green-fill); }
.plaque.nh, .plaque.skip { background: var(--yellow); border-color: var(--yellow); color: #2b2100; box-shadow: inset 0 0 0 1px rgba(43, 33, 0, .5); }
.plaque.refuse { background: var(--no-fill); border-color: var(--no-fill); }
.plaque.gone { background: var(--gone-fill); border-color: var(--gone-fill); }
/* a door still to do is an outlined plate; once it has been tried the plate is solid, with a thin line inside its edge */
.plaque.contact, .plaque.lit, .plaque.refuse, .plaque.gone { color: #fff; }
.plaque.target, .plaque.contact, .plaque.lit, .plaque.refuse, .plaque.gone { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .92); }
/* a refused or unreachable door is crossed off, so it never has to be told from a reached one by colour alone */
.plaque.refuse, .plaque.gone { text-decoration: line-through; text-decoration-thickness: .11em; }

/* ---------- home ---------- */
.sectionlabel { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.col > .sectionlabel { margin: 4px 0 -10px 4px; } .sectionlabel.lead { margin: 6px 0 -4px 4px; }
.turfrow { display: flex; gap: 10px; align-items: center; padding: 12px 12px 12px 16px; width: 100%; text-align: left; min-height: 56px; }
.turfrow + .turfrow { border-top: 1px solid var(--line-2); }
/* home: what this phone has done today, then one compact row per turf as in 1.0 */
.today { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); color: var(--ink); border-radius: var(--r); overflow: hidden; }
.today > div { padding: 12px 14px 11px; } .today > div + div { box-shadow: inset 1px 0 0 var(--line-2); }
.today b { display: block; font-size: 1.625rem; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.02em; } .today span { font-size: 0.75rem; color: var(--ink-2); }
.turfrow:active { background: var(--fill); }
.turfrow .name { font-weight: 600; line-height: 1.25; display: block; }
.turfrow .icon, .choice > .icon:last-child, .doorrow > .icon { color: var(--faint); }
.meter { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; display: flex; margin-top: 8px; }
.meter.thick { height: 8px; border-radius: 4px; margin-top: 12px; }
.meter i { display: block; height: 100%; } .meter .g { background: var(--green); } .meter .y { background: var(--yellow); } .meter .r { background: var(--no); } .meter .o { background: var(--ink-3); }
.choice { display: flex; gap: 14px; align-items: center; padding: 12px 16px; width: 100%; text-align: left; border-radius: var(--r); background: var(--paper); min-height: 56px; }
.card > .choice { border-radius: 0; } .card > .choice + .choice { border-top: 1px solid var(--line-2); }
.choice:active { background: var(--fill); } .choice.on { box-shadow: inset 0 0 0 1.5px var(--accent); }
.choice b { display: block; font-weight: 600; line-height: 1.25; } .choice .small { display: block; margin-top: 1px; } .choice .ic { color: var(--ink-2); display: grid; place-items: center; flex: none; }
.choice.on .ic { color: var(--accent); }

/* ---------- turf screen ---------- */
.turf { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.topbar { display: flex; align-items: center; gap: 2px; padding: calc(2px + var(--safe-t)) 4px 2px 2px; background: var(--chrome); color: #fff; z-index: 5; min-height: calc(46px + var(--safe-t)); }
.topbar .title { font-weight: 600; font-size: 1rem; letter-spacing: 0; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .sub { font-size: 0.7812rem; line-height: 1.25; color: var(--chrome-ink-2); font-variant-numeric: tabular-nums; }
.topmeter { height: 5px; background: var(--chrome-track); display: flex; z-index: 5; }
.topmeter i { height: 100%; transition: width .35s ease; }
.syncbtn { width: 32px; height: 40px; display: grid; place-items: center; flex: none; }
.syncdot { width: 9px; height: 9px; border-radius: 50%; background: var(--chrome-ink-2); flex: none; }
/* shape changes with state as well as color, so it never depends on color alone */
.syncdot.ok { background: #46d4a4; } .syncdot.wait { background: var(--yellow); border-radius: 2px; } .syncdot.off { background: transparent; box-shadow: inset 0 0 0 2px #ff8a80; }
.stage { flex: 1; position: relative; min-height: 0; overflow: hidden; }
.pane { position: absolute; inset: 0; } .pane[hidden] { display: none; } .pane.maphidden { visibility: hidden; pointer-events: none; }
.pane.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--ground); }
#map { position: absolute; inset: 0; background: var(--map); }
.tabs { display: flex; background: var(--paper); box-shadow: inset 0 1px 0 var(--line); padding-bottom: var(--safe-b); z-index: 6; }
.tabs button { flex: 1; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 0.6562rem; font-weight: 600; color: var(--ink-3); }
.tabs button[aria-current='page'] { color: var(--accent); }
.tabs button[disabled] { opacity: .38; }

.fabs { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; z-index: 3; background: var(--paper); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.fab { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink-2); }
.fab + .fab { border-top: 1px solid var(--line); }
.fab:active { background: var(--fill); } .fab.on { color: var(--blue); }
.mapnote { position: absolute; left: 10px; top: 10px; right: 62px; z-index: 3; pointer-events: none; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pill { pointer-events: auto; background: var(--paper); box-shadow: var(--shadow); border-radius: 8px; padding: 7px 10px; font-size: 0.8125rem; font-weight: 500; display: inline-flex; gap: 7px; align-items: center; max-width: 100%; line-height: 1.25; }
.pill button { font-weight: 600; color: var(--accent); }

/* map markers */
.me { width: 18px; height: 18px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(26, 115, 232, .35), 0 1px 4px rgba(0, 0, 0, .35); }
.me-acc { border-radius: 50%; background: rgba(26, 115, 232, .12); border: 1px solid rgba(26, 115, 232, .3); pointer-events: none; }
.mate { padding: 3px 7px 1px; border-radius: 999px; background: var(--mate); color: #fff; font: 700 .72rem/1.3 var(--font); border: 1.5px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); white-space: nowrap; }
.tgtwrap { pointer-events: none; z-index: 2; }
.tgt { position: relative; display: inline-block; }
.tgt .plaque { font-size: 14.5px; height: 26px; min-width: 34px; padding: 2px 7px 0; border-radius: 8px; background: #0b1526; color: #fff; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
/* preview-only door pins and sketched streets (the real app draws doors on the GPU over a real street map) */
.doorpin { cursor: pointer; padding: 5px; }
#map.far .doorpin { padding: 3px; }
#map.far .doorpin .plaque { font-size: 0; min-width: 0; width: 11px; height: 11px; padding: 0; border-radius: 50%; box-shadow: none; border-width: 1px; }
/* zoomed out, a door still to do stays hollow so the marked ones stand out */
#map.far .doorpin .plaque.todo { background: var(--map-road); border: 2px solid var(--accent); }
.routeov, .townov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
/* in the app the street map is always the daytime one, and so is the practice town drawn in its place */
.townov.day { --map: #e4e9f1; --map-bldg: #d2d9e5; --map-green: #cfe5d3; --map-water: #b9d6f2; --map-road: #ffffff; --map-casing: #c5cddb; --map-text: #566178; }
.routeov .road, .townov .road { fill: none; stroke: var(--map-road); stroke-linecap: round; stroke-linejoin: round; }
.routeov .casing, .townov .casing { fill: none; stroke: var(--map-casing); stroke-linecap: round; stroke-linejoin: round; }
.routeov .bldg, .townov .bldg { fill: var(--map-bldg); } .routeov .green, .townov .green { fill: var(--map-green); } .routeov .water, .townov .water { fill: var(--map-water); }
.routeov text, .townov text { font: 500 11px var(--font); fill: var(--map-text); paint-order: stroke; stroke: var(--map); stroke-width: 3px; }
.routeov text.minor, .townov text.minor { font-size: 10px; } .routeov text.parkname, .townov text.parkname { font: italic 500 11px var(--font); stroke: var(--map-green); }

/* ---------- door card ---------- */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; background: var(--paper); border-radius: 14px 14px 0 0; box-shadow: 0 0 0 1px rgba(16, 24, 32, .06), 0 -4px 20px rgba(16, 24, 32, .12); display: flex; flex-direction: column; max-height: calc(100% - 10px); transition: transform .26s cubic-bezier(.2, .9, .3, 1); will-change: transform; }
.sheet.drag { transition: none; }
.grab { width: 100%; height: 16px; display: grid; place-items: center; flex: none; touch-action: none; cursor: grab; position: relative; }
.grab::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 44px; }
.grab::after { content: ''; width: 36px; height: 4px; border-radius: 2px; background: var(--faint); opacity: .55; }
.doorhead { display: flex; gap: 2px; align-items: center; padding: 0 6px 10px 16px; touch-action: none; }
.doorhead .street { font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.doorhead .plaque { display: inline; font: inherit; letter-spacing: inherit; background: none; color: inherit; border: 0; box-shadow: none; padding: 0; min-width: 0; height: auto; border-radius: 0; }
.doorhead .iconbtn { width: 38px; height: 38px; color: var(--ink-2); } .doorhead .iconbtn + .iconbtn { margin-left: 4px; }
.doorhead .sub { font-size: 0.875rem; color: var(--ink-2); margin-top: 1px; }
.quick { display: grid; grid-template-columns: 1fr 1fr 46px; gap: 8px; padding: 0 16px 5px; }
.quick.three { grid-template-columns: 1.3fr 1.15fr .75fr; } .quick.three .btn { font-size: 0.9375rem; white-space: nowrap; }
.quick .btn { min-height: 46px; padding: 0 8px; }
.sheetbody { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 7px 16px calc(14px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.earlier { display: flex; gap: 8px; align-items: center; padding: 0 8px 8px 16px; font-size: 0.875rem; color: var(--ink-2); min-height: 34px; margin-top: -4px; }

/* The open door card, second pass (2.16): the person in front leads the card (name, then age, sex and party), three plain
   answers sit under them, anyone else at the door is a short row, and tags, note and history live behind one Extras button. */
.sheet.lead .doorhead { padding-bottom: 4px; } .sheet.lead .doorhead .street { font-size: 1rem; font-weight: 600; color: var(--ink-2); } .sheet.lead .doorhead .sub { display: none; }
.person { display: flex; flex-direction: column; }
.person .pname { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; overflow-wrap: anywhere; }
.person .pmeta { font-size: 0.9375rem; color: var(--ink-2); margin: 2px 0 12px; }
.person.dim .pname { color: var(--ink-2); }
.person .outs, .person .scalebox { padding-bottom: 0; }
.outs.three { grid-template-columns: repeat(3, 1fr); }
.outs.three .out { min-height: 52px; font-size: 1.0625rem; font-weight: 600; }
.extrarow { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.extrarow .btn { max-width: 70%; } .extrarow .btn > :last-child, .extrarow .btn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The open door card (2.15). After "Talked" the card shows one quiet header line, the people as plain rows, one 1-to-5 track
   under the person being scored, the tags on a line, and a note box only when one is wanted. */
.saybtn { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); min-height: 24px; }
.saybtn::before { content: ''; position: absolute; left: -8px; right: -8px; top: 50%; height: 44px; transform: translateY(-50%); }
.saybtn::after { content: ''; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s; }
.saybtn[aria-expanded='true']::after { transform: rotate(-135deg) translate(-2px, -2px); }
.voters { list-style: none; margin: 0; padding: 0; }
.voter + .voter { border-top: 1px solid var(--line-2); }
.voter > button { display: flex; width: 100%; text-align: left; align-items: center; gap: 10px; padding: 6px 0; min-height: 46px; }
.voter .who { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.voter .vname { font-weight: 600; line-height: 1.25; }
.voter .vmeta { font-size: 0.8438rem; color: var(--ink-2); }
.voter.dim .vname { color: var(--ink-3); font-weight: 500; }
.party { white-space: nowrap; font-size: 0.7188rem; font-weight: 600; padding: 2px 6px; border-radius: 5px; background: var(--badge); color: var(--ink-2); letter-spacing: .02em; }
.vout { font-size: 0.8438rem; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.vout::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.vout.yes { color: var(--green); } .vout.mid { color: var(--yellow-ink); } .vout.mid::before { background: var(--yellow); } .vout.no { color: var(--no); }
.outs { display: grid; gap: 6px; padding: 0 0 12px; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.outs.scale { grid-template-columns: repeat(5, 1fr); }
.out { min-height: 44px; border-radius: var(--r-s); background: var(--fill); font-weight: 600; font-size: 0.875rem; line-height: 1.15; padding: 5px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.out b { font-size: 1.0625rem; line-height: 1.1; font-weight: 700; } .out small { font-size: 0.6562rem; font-weight: 500; color: var(--ink-2); }
.out:active { opacity: .6; }
.out:not(.on) { background: var(--paper); box-shadow: inset 0 0 0 1px var(--edge); }
/* the 1 to 5 scale reads as a scale before anything is picked */
/* the 1 to 5 scale is plain outlined tiles; colour sits on the number until one is picked, then fills that tile */
.scalebox { padding: 0 0 12px; }
.outs.scale { gap: 2px; padding: 2px; background: var(--fill); border-radius: 10px; }
.outs.scale .out { min-height: 42px; background: transparent; box-shadow: none; border-radius: 8px; }
.outs.scale .out b { font-size: 1.125rem; }
.ends { display: grid; grid-template-columns: 1fr auto 1fr; font-size: 0.6875rem; color: var(--ink-2); padding: 5px 4px 0; }
.ends span:last-child { text-align: right; }
.outs.scale .out.yes b { color: var(--green); } .outs.scale .out.mid b { color: var(--yellow-ink); } .outs.scale .out.no b { color: var(--no); }
.outs.scale .out.on { box-shadow: none; }
.outs .out.on.yes { background: var(--green-fill); color: #fff; } .outs .out.on.mid { background: var(--yellow); color: #2b2100; } .outs .out.on.no { background: var(--no-fill); color: #fff; }
.outs .out.on small, .outs.scale .out.on b { color: inherit; }
/* 2.18: an answer shows its colour before it is picked, as an edge and the word; picking it fills the button. The amber word is
   the darker amber (--yellow-ink) so it stays readable on white. */
.outs:not(.scale) .out:not(.on).yes { background: var(--yes-tint); box-shadow: inset 0 0 0 2px var(--green); color: var(--green); }
.outs:not(.scale) .out:not(.on).mid { background: var(--mid-tint); box-shadow: inset 0 0 0 2px var(--mid-edge); color: var(--yellow-ink); }
.outs:not(.scale) .out:not(.on).no { background: var(--no-tint); box-shadow: inset 0 0 0 2px var(--no); color: var(--no); }
/* 2.19: each answer also sits on a pale fill of its own colour and has a heavier edge, so Undecided (pale yellow) and No (pale
   pink) are told apart by the whole button, not only by a thin line and the word.
   Until Talked is pressed the answers are greyed out and cannot be tapped: no colour, no accidental answer. */
.outs .out[disabled] { background: var(--ground) !important; box-shadow: inset 0 0 0 1px var(--line) !important; color: var(--faint) !important; cursor: default; }
.outs .out[disabled] b, .outs .out[disabled] small { color: inherit !important; } .outs .out[disabled]:active { opacity: 1; }
.sheetbody > .quick { padding: 0 0 2px; }
/* colour-blind safe palette only: a tick, a dash or a cross beside the word, so the answer never rests on colour */
.out .glyph { display: none; }
html[data-cb] .outs:not(.scale) .out { flex-direction: row; flex-wrap: wrap; column-gap: 4px; padding: 5px 2px; }
html[data-cb] .outs.three .out { font-size: 1rem; }   /* so "Undecided" and its dash stay on one line on a 390px phone */
html[data-cb] .out .glyph { display: block; } html[data-cb] .out .glyph .icon { display: block; stroke-width: 2.6; }
.chips { display: flex; flex-wrap: wrap; gap: 12px 6px; }
.chip { min-height: 32px; padding: 0 12px; border-radius: 999px; font-weight: 500; font-size: 0.8438rem; display: inline-flex; align-items: center; gap: 5px; background: var(--fill); color: var(--ink); }
.chip:not(.on) { background: var(--paper); box-shadow: inset 0 0 0 1px var(--edge); }
.chip.on { background: var(--chip-on); color: var(--chip-on-ink); }
.notebox { position: relative; } .notebox .mic { position: absolute; right: 4px; top: 4px; } .notebox .mic.live { color: var(--red); }
.notebox .input { background: var(--paper); border-color: var(--edge); }
details.fold > summary { list-style: none; cursor: pointer; font-size: 0.875rem; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 6px; min-height: 44px; margin: -7px 0; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: ''; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-left: 2px; }
details.fold[open] > summary::after { transform: rotate(45deg) translate(-2px, -2px); }
.sayit { font-size: 0.9375rem; line-height: 1.45; color: var(--ink); padding: 4px 0 2px; }
.history { font-size: 0.8438rem; color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; padding-top: 4px; }
.sheetfoot { display: flex; gap: 8px; container-type: inline-size; }
.sheetfoot .btn:not(.grow) { width: 46px; padding: 0; color: var(--ink-2); }
.sheetfoot .btn.dir { width: auto; padding: 0 14px 0 12px; gap: 6px; }
/* on a small phone or with large text the word goes, so Next door stays the biggest button */
@container (max-width: 20em) { .sheetfoot .btn.dir { width: 46px; padding: 0; } .sheetfoot .btn.dir span { display: none; } }
.finished { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px calc(18px + var(--safe-b)); }

/* ---------- list ---------- */
.listbar { position: sticky; top: 0; z-index: 2; background: var(--ground); padding: 10px 16px 8px; display: flex; flex-direction: column; gap: 8px; }
.listbar .input { padding: 7px 12px; background: var(--fill); border-color: transparent; }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -7px -16px; padding: 7px 16px 9px; } .filters::-webkit-scrollbar { display: none; }
.filters .chip { flex: none; min-height: 30px; font-size: 0.8125rem; background: var(--paper); }
.filters .chip.on { background: var(--chip-on); }
/* street groups that are off screen skip layout and paint, which keeps a 3,000-door list cheap */
.streetgroup { background: var(--paper); content-visibility: auto; contain-intrinsic-size: auto 240px; }
.streethead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 16px 16px 6px; background: var(--ground); color: var(--ink-2); font-weight: 600; font-size: 0.8125rem; width: 100%; min-height: 44px; text-align: left; }
.streethead span:last-child { font-weight: 400; font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.doorrow { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 7px 10px 7px 16px; min-height: 46px; }
.doorrow + .doorrow { border-top: 1px solid var(--line-2); }
.doorrow:active { background: var(--fill); }
.doorrow .who { display: block; font-weight: 500; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doorrow .dist { flex: none; font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }   /* how far the door is from the phone */
.doorrow .st { display: block; font-size: 0.8125rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.empty { padding: 44px 24px; text-align: center; color: var(--ink-2); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty b { color: var(--ink); font-size: 1.0625rem; font-weight: 600; }
.listfoot { padding: 16px 16px calc(20px + var(--safe-b)); }

/* ---------- progress ---------- */
.stats { padding: 14px 16px calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 0 auto; }
.bignum { font-size: 2rem; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bignum small { font-size: 0.9375rem; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.statgrid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line-2); border-radius: var(--r); overflow: hidden; }
.statgrid > div { background: var(--paper); padding: 12px 16px; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; gap: 12px; }
.statgrid b { font-size: 1rem; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.statgrid span { font-size: 1rem; color: var(--ink); }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar { display: grid; grid-template-columns: 112px 1fr 30px; gap: 10px; align-items: center; font-size: 0.875rem; }
.bar i { height: 8px; border-radius: 4px; background: var(--ink-3); min-width: 2px; display: block; }
.bar.contact i, .bar.lit i, .bar.yes i { background: var(--green); } .bar.nh i, .bar.skip i, .bar.mid i { background: var(--yellow); } .bar.refuse i, .bar.no i { background: var(--no); }
.bar.todo i { background: var(--line); }
.bar b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- menus, dialogs, toast ---------- */
.scrim { position: fixed; inset: 0; background: rgba(12, 16, 20, .4); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.dialog { background: var(--paper); width: 100%; max-width: 560px; border-radius: 14px 14px 0 0; padding: 14px 16px calc(16px + var(--safe-b)); max-height: 92dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; animation: rise .22s cubic-bezier(.2, .9, .3, 1); }
.dialog h2 { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; }
.dialoghead { display: flex; align-items: center; gap: 10px; margin-right: -8px; }
.dialog:focus { outline: none; }
@keyframes rise { from { transform: translateY(32px); opacity: .5; } }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.menuitem { display: flex; align-items: center; gap: 14px; min-height: 48px; width: 100%; text-align: left; font-weight: 500; padding: 6px 2px; }
.menu { display: flex; flex-direction: column; }
.menu > .menuitem + .menuitem, .menu > .note + .menuitem { border-top: 1px solid var(--line-2); }
.menu > .note { margin: 8px 0; }
.menuitem[disabled] { opacity: .45; }
.busyrow { padding: 12px 0; }
.menuitem > .icon { color: var(--ink-2); } .menuitem > .dot { margin: 0 6.5px; }
.menuitem:active { background: var(--fill); } .menuitem.danger, .menuitem.danger > .icon { color: var(--red); }
.menuitem small { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.8125rem; }
.toast { position: fixed; left: 12px; right: 12px; bottom: calc(60px + var(--safe-b)); z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.turf[data-tab='map'] ~ .toast { bottom: calc(var(--sheet-h, 0px) + 60px + var(--safe-b)); }
.scrim ~ .toast { display: none; }
body:has(.scrim) .toast { display: none; }   /* a dialog drawn inside a screen (Team) hides the toast too */
.toast > div { pointer-events: auto; background: #131c2e; color: #fff; border-radius: 10px; padding: 9px 14px; display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 0.875rem; line-height: 1.3; box-shadow: var(--shadow); max-width: 480px; animation: pop .18s; }
.toast button { color: #a9c8ff; font-weight: 600; min-height: 28px; padding: 0 2px; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.reviewrow { display: flex; gap: 12px; align-items: center; padding: 8px 6px 8px 16px; width: 100%; text-align: left; min-height: 52px; }
.reviewrow + .reviewrow { border-top: 1px solid var(--line-2); }
.reviewrow b { font-weight: 500; } .reviewrow .small, .member .small { display: block; } .reviewrow .iconbtn { color: var(--ink-3); width: 36px; height: 36px; }
.geo { font-size: 0.7812rem; font-weight: 500; flex: none; display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); }
.geo::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.geo.exact::before { background: var(--green); } .geo.approx::before { background: var(--yellow); } .geo.none::before { background: var(--no); }
.qr { background: #fff; padding: 10px; border-radius: 10px; align-self: center; line-height: 0; } .qr svg { width: 200px; height: 200px; display: block; }
.member { display: flex; gap: 12px; align-items: center; padding: 10px 16px; min-height: 56px; } .member + .member { border-top: 1px solid var(--line-2); }
.member b { font-weight: 600; }
/* 2.20: a person sits under the organizer they report to */
.member .under { flex: none; height: 28px; border-right: 2px solid var(--line-2); margin-right: -4px; }
.acctswitch { margin: -4px 0 0; }
.acctswitch .linkbtn[disabled] { color: var(--faint); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--fill); color: var(--ink); display: grid; place-items: center; font-weight: 600; font-size: 0.8125rem; flex: none; position: relative; }
.avatar.live::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid var(--paper); }
/* Team screen, 2.17: invite and leave live in the bar; requests sit above everything an organizer scrolls through */
.teambar h1 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teambar { gap: 6px; padding-right: 8px; }
.barbtn { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 13px 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; font-size: 0.875rem; flex: none; position: relative; }
.barbtn::after { content: ''; position: absolute; inset: -4px 0; } .barbtn:active { background: rgba(255, 255, 255, .28); }
.teamstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border-radius: var(--r); overflow: hidden; }
.teamstats > div { background: var(--paper); padding: 11px 8px 10px; text-align: center; min-width: 0; }
.teamstats b { display: block; font-size: 1.375rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.teamstats b small { font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
.teamstats span { display: block; font-size: 0.75rem; color: var(--ink-2); margin-top: 1px; }
.dialog .teamstats { box-shadow: inset 0 0 0 1px var(--line-2); }
.sectionlabel .count { display: inline-block; min-width: 20px; padding: 1px 6px; margin-left: 4px; border-radius: 999px; background: var(--fill); color: var(--ink-2); font-size: 0.75rem; text-align: center; }
#waiting .count { background: var(--yellow); color: #2b2100; }
.askrow2 { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 8px; } .askrow2 + .askrow2 { border-top: 1px solid var(--line-2); }
.askhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 0.8125rem; color: var(--ink-2); }
.askhead .who { font-weight: 600; color: var(--ink); } .askhead time { white-space: nowrap; }
.askbody b { font-weight: 600; } .askline { display: block; font-size: 0.9375rem; margin-top: 2px; overflow-wrap: anywhere; }
.askrow2 .row { gap: 8px; }
.state { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; } .state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state.wait { color: var(--yellow-ink); } .state.wait::before { background: var(--yellow); } .state.ok { color: var(--green); } .state.no { color: var(--no); }
.teamlist { display: flex; align-items: center; gap: 4px; padding-right: 12px; } .teamlist + .teamlist { border-top: 1px solid var(--line-2); }
.teamlist .turfrow { flex: 1; min-width: 0; padding-right: 8px; } .teamlist .btn { flex: none; }
button.member { width: 100%; text-align: left; } button.member:active { background: var(--fill); } .member > .icon { color: var(--faint); flex: none; }
.tally { text-align: center; flex: none; min-width: 40px; } .tally b { display: block; font-size: 1.0625rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; } .tally small { font-size: 0.6875rem; color: var(--ink-2); }
.btn.paper { background: var(--paper); }
/* 2.18: marks made far from the door. Amber text with a small flag-shaped mark in front, so it is not colour alone. */
.farflag { display: block; color: var(--yellow-ink); font-weight: 600; } .farflag::before { content: '⚑ '; }
.farbox { display: flex; flex-direction: column; gap: 6px; font-size: 0.9062rem; } .farbox p { margin: 0; }
.farrow { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line-2); font-size: 0.875rem; } .farrow span:last-child { color: var(--ink-2); white-space: nowrap; }
#asking .count { background: var(--yellow); color: #2b2100; }
.feedmore { padding: 10px 16px; text-align: left; border-top: 1px solid var(--line-2); min-height: 40px; }
.tabs button { position: relative; }
.tabs .badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red-fill); color: #fff; font-size: 0.6875rem; font-weight: 700; line-height: 17px; text-align: center; }
.feed { font-size: 0.875rem; display: flex; flex-direction: column; } .feed > div { padding: 9px 16px; display: flex; justify-content: space-between; gap: 10px; } .feed > div + div { border-top: 1px solid var(--line-2); } .feed b { font-weight: 600; } .feed time { color: var(--ink-3); flex: none; font-size: 0.8125rem; }
.maplibregl-ctrl-bottom-right, .maplibregl-ctrl-bottom-left { display: none; }
.attrib { position: absolute; left: 6px; top: auto; bottom: calc(var(--sheet-h, 0px) + 4px); z-index: 2; font-size: 0.625rem; color: #4b545e; background: rgba(255, 255, 255, .7); padding: 1px 5px; border-radius: 4px; pointer-events: none; }

/* ---------- wide screens: the door card docks to the left of the map ---------- */
@media (min-width: 900px) {
  .sheet { left: 12px; right: auto; bottom: 12px; top: 12px; width: 380px; border-radius: 14px; max-height: none; transform: none !important; }
  .grab { display: none; } .doorhead { padding-top: 16px; }
  .mapnote { left: 404px; }
  .tabs { justify-content: center; } .tabs button { flex: 0 0 120px; }
  .scrim { align-items: center; } .dialog { border-radius: 14px; }
  .toast, .turf[data-tab='map'] ~ .toast { bottom: 72px; }
}
/* phones set to "increase contrast" get darker secondary text and visible edges on controls */
@media (prefers-contrast: more) {
  :root { --ink-2: #3a3a3c; --ink-3: #48484a; --faint: #6c6c70; --line: #8e8e93; --line-2: #c7c7cc; --fill: #d8d8dc; --edge: #6c6c70; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --ink-2: #d1d1d6; --ink-3: #c7c7cc; --faint: #8e8e93; --line: #8e8e93; --line-2: #48484a; --fill: #363638; --edge: #aeaeb2; }
}
/* Windows high-contrast mode swaps every colour for the system's, which erases fills. Edges and selected states are drawn with
   borders and the system highlight instead; door plates, status dots and progress bars keep their own colours because the colour is the message. */
@media (forced-colors: active) {
  .btn, .out, .chip, .fabs, .segmented button, .card, .sheet, .dialog, .pill, .toast > div, .meter, .listbar .input { border: 1px solid CanvasText; }
  .chip.on, .outs .out.on, .segmented button[aria-pressed='true'], .tabs button[aria-current='page'] { background: Highlight; color: HighlightText; forced-color-adjust: none; }
  .plaque, .dot, .meter i, .bar i { forced-color-adjust: none; }
  .logo .lg-a, .logo .lg-r { fill: CanvasText; } .logo .lg-k { fill: Canvas; } .logo .lg-rs { stroke: CanvasText; }
  .tabs { border-top: 1px solid CanvasText; } .topbar, .brand, .screenbar { border-bottom: 1px solid CanvasText; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
