/* The demo's look: Honk's sign yellow and ink, the permit as paper on a warm desk, the app's
   route blue and pins. One playful element: the highlighter. */
:root {
  --ink: #111111;
  --yellow: #ffd60a;
  --desk: #e7e5df;
  --paper: #ffffff;
  --text-2: #3a3a3c;
  --muted: #52525b;
  --label: #6c6c70;
  --line: #e5e5ea;
  --route: #4da3ff;
  --casing: #2676bd;
  --start: #34c759;
  --end: #ff3b30;
  --pin: #3f3f46;
  --warn: #c93400;
  --bar: 64px;
  --desk-w: 480px;
  --strip-h: 132px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--desk); color: var(--ink); font-family: Overpass, system-ui, sans-serif; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 20; height: var(--bar); display: flex; align-items: center; gap: 14px; padding: 0 24px 0 28px; background: var(--ink); color: #fff; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font-size: 16px; font-weight: 700; }
.brand .icon { width: 36px; height: 36px; border-radius: 9px; }
.brand .wordmark { display: block; width: 96px; height: auto; fill: #fff; }
.brand .sub { padding-left: 14px; border-left: 1px solid #3a3a3c; color: #fff; }
.crumb { color: #a1a1aa; font-size: 16px; padding-left: 14px; border-left: 1px solid #3a3a3c; }
.crumb:empty { display: none; }
.bar-note { margin-left: auto; color: #a1a1aa; font-size: 15px; }
.bar .pill.dark { margin-left: auto; }
.bar .pill .short { display: none; }
.grow { flex: 1; }

.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 2px 16px 0; border: 0; border-radius: 20px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.pill svg, .round svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-top: -2px; }
.pill.dark { background: #2c2c2e; color: #fff; box-shadow: none; }
.round { width: 40px; height: 40px; border-radius: 20px; border: 0; background: #2c2c2e; color: #fff; display: grid; place-items: center; cursor: pointer; }
.round svg { margin: 0; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Pick */
.pick { max-width: 1440px; margin: 0 auto; padding: 36px 64px 48px; }
.pick h1 { margin: 0; font-size: clamp(40px, 5.2vw, 68px); line-height: 1.02; font-weight: 900; letter-spacing: -0.015em; }
.swipe { position: relative; display: inline-block; white-space: nowrap; }
.swipe svg { position: absolute; left: -0.15em; top: 0.24em; width: calc(100% + 0.3em); height: 0.76em; transform: rotate(-0.6deg); }
.swipe svg path { fill: var(--yellow); }
.swipe span { position: relative; }
.lede { margin: 20px 0 0; max-width: 780px; font-size: 20px; line-height: 1.45; color: var(--text-2); }
.cards { margin-top: 40px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; align-items: end; }
.permit { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.permit .pile { position: relative; width: 170px; max-width: 100%; aspect-ratio: 595 / 842; margin: 0 16px 8px 0; }
.permit .pile i { position: absolute; inset: 0; background: #fcfcfa; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.permit .pile i:nth-child(1) { transform: translate(12px, -12px); background: #f6f6f3; }
.permit .pile i:nth-child(2) { transform: translate(8px, -8px); background: #f9f9f7; }
.permit .pile i:nth-child(3) { transform: translate(4px, -4px); }
.permit .pile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.10), 0 6px 16px rgba(40,36,28,0.10); transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms; }
.permit:hover .pile img { transform: translateY(-4px); }
.permit:active .pile img { transform: translateY(-14px) rotate(-1.2deg); box-shadow: 0 2px 4px rgba(0,0,0,0.10), 0 22px 40px rgba(40,36,28,0.28); }
.permit .code { position: relative; margin-top: 20px; font-size: 46px; font-weight: 900; line-height: 1; padding-top: 6px; }
.permit .code svg { position: absolute; left: -8px; top: 12px; width: calc(100% + 16px); height: 34px; transform: rotate(-1deg); opacity: 0; transition: opacity 160ms; }
.permit .code svg path { fill: var(--yellow); }
.permit .code b { position: relative; font-weight: 900; }
.permit:hover .code svg { opacity: 1; }
.permit .state { font-size: 16px; color: var(--muted); margin-top: 2px; }
.permit .mi { font-size: 26px; font-weight: 800; margin-top: 14px; }
.permit .load { font-size: 15px; color: var(--muted); margin-top: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.note { margin: 36px 0 0; max-width: 640px; font-size: 16px; line-height: 1.5; color: var(--text-2); }

/* Stage: the paper on the left, the map, the strip under it */
.stage { height: calc(100vh - var(--bar)); height: calc(100dvh - var(--bar)); display: grid; grid-template-columns: minmax(0, 1fr) var(--desk-w); grid-template-rows: minmax(0, 1fr) var(--strip-h); }
.mapwrap { grid-column: 1; grid-row: 1; }
.strip { grid-column: 1; grid-row: 2; }
.desk { grid-column: 2; grid-row: 1 / 3; border-left: 1px solid #d8d6cf; position: relative; display: flex; flex-direction: column; align-items: center; padding: 28px 40px 20px; gap: 18px; min-height: 0; }
.stack { position: relative; flex: 1; min-height: 0; width: 100%; container-type: size; display: grid; grid-template-rows: minmax(0, 1fr); justify-items: center; }
.stack .paper, .stack .sheet { grid-area: 1 / 1; height: min(100cqh, 100cqw * 842 / 595 - 12px); aspect-ratio: 595 / 842; }
.sheet { background: #fcfcfa; box-shadow: 0 1px 2px rgba(0,0,0,0.07); }
.sheet.back1 { transform: translate(4px, 4px); }
.sheet.back2 { transform: translate(8px, 8px); background: #f9f9f7; }
.paper { position: relative; background: var(--paper); overflow: hidden; }
.stack .paper { box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 10px 30px rgba(40,36,28,0.14); }
.paper img { position: absolute; inset: 0; width: 100%; height: 100%; }
.strokes { position: absolute; inset: 0; }
.stroke { position: absolute; display: block; padding: 0; border: 0; background: none; cursor: pointer; mix-blend-mode: multiply; }
.stroke svg { width: 100%; height: 100%; clip-path: inset(0 0 0 0); transition: clip-path 380ms cubic-bezier(.3,.7,.2,1); }
.stroke svg path { fill: var(--yellow); fill-opacity: 0.5; }
.stroke.fresh svg { clip-path: inset(0 100% 0 0); }
.stroke.now svg path { fill-opacity: 0.92; }
.stroke.picked::after { content: ""; position: absolute; inset: -3px -6px; border-radius: 4px; box-shadow: 0 0 0 2px var(--ink); }
.badge { position: absolute; left: -32px; width: 24px; height: 24px; border-radius: 12px; background: var(--ink); color: var(--yellow); font-size: 11px; font-weight: 900; display: grid; place-items: center; padding-top: 2px; transform: translateY(-50%); }
.desk-bar { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.pager { display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 4px; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.08); font-size: 15px; font-weight: 800; }
.pager span { min-width: 96px; text-align: center; padding-top: 2px; }
.pager button { width: 32px; height: 32px; border: 0; border-radius: 16px; background: none; display: grid; place-items: center; cursor: pointer; }
.pager button:disabled { opacity: 0.3; cursor: default; }
.pager svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.mapwrap { position: relative; min-height: 0; background: #f4f4f2; }
#map { position: absolute; inset: 0; }
.nomap { position: absolute; inset: auto 24px 24px auto; font-size: 13px; color: var(--muted); }

/* The ink card over the map: the clock, the result, the score */
.card { position: absolute; left: 24px; top: 24px; width: 304px; z-index: 3; padding: 20px 22px; border-radius: 22px; background: var(--ink); color: #fff; display: flex; flex-direction: column; }
.card:empty { display: none; }
.card .label { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: #a1a1aa; text-transform: uppercase; }
.card .big { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; color: #fff; font-weight: 900; }
.card .big b { font-size: 72px; line-height: 0.9; letter-spacing: -0.03em; }
.card .big small { font-size: 28px; font-weight: 900; }
.card .fine { margin-top: 6px; font-size: 13px; color: #a1a1aa; }
.card .inline { padding: 0; border: 0; background: none; color: #fff; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.card .links { display: flex; flex-direction: column; align-items: center; }
.card .links .link { margin-top: 10px; }
.card .chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow-y: auto; }
.card .chip { padding: 6px 10px 4px; border: 1.5px solid #3a3a3c; border-radius: 14px; background: #2c2c2e; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.card .chip[aria-pressed="false"] { background: none; color: #8e8e93; text-decoration: line-through; border-style: dashed; }
.card .chip:disabled { opacity: 0.35; cursor: default; }
.card .hint { margin-top: 8px; font-size: 13px; color: #8e8e93; }
.card .act:disabled { opacity: 0.45; cursor: default; }
.card p { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: #d1d1d6; }
.card .act { margin-top: 16px; height: 48px; padding-top: 3px; border: 0; border-radius: 24px; background: var(--yellow); color: var(--ink); font-size: 16px; font-weight: 900; cursor: pointer; }
.card .act.quiet { background: #2c2c2e; color: #fff; font-weight: 800; }
.card .act.neutral { background: #2c2c2e; color: var(--yellow); }
.card .act + .act { margin-top: 8px; }
.card .act svg { display: inline-block; width: 13px; height: 13px; fill: currentColor; margin: -3px 8px 0 0; vertical-align: middle; }
.card .link { align-self: center; margin-top: 12px; padding: 0; border: 0; background: none; color: #d1d1d6; font: inherit; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.card .link:hover { color: #fff; }
.card p.warn { display: flex; gap: 8px; align-items: flex-start; color: #ffb340; font-weight: 700; }
.card p.warn svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; }
.card .wow { margin-top: 12px; font-size: 18px; font-weight: 800; color: var(--yellow); }

.legend { position: absolute; right: 24px; bottom: 24px; z-index: 3; padding: 14px 18px 12px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 10px 28px rgba(0,0,0,0.12); display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 700; }
.legend span { display: flex; align-items: center; gap: 12px; }
.legend i { width: 34px; border-radius: 7px; }
.legend .gold { height: 14px; background: rgba(255,214,10,0.85); }
.legend .ours { height: 6px; background: var(--route); box-shadow: 0 0 0 1.5px var(--casing); }

/* Pins, as the app draws them */
.pin { width: 40px; height: 60px; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3)); cursor: default; }
.pin .head { width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; background: var(--c); }
.pin .face { width: 28px; height: 28px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: var(--ink); padding-top: 2px; }
.pin .face svg { width: 18px; height: 18px; fill: #18181b; margin-top: -2px; }
.pin .tip { width: 0; height: 0; margin: -1px auto 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--c); }
.pin .foot { width: 6px; height: 6px; border-radius: 3px; background: var(--c); margin: 3px auto 0; }
.pin.start { --c: var(--start); }
.pin.end { --c: var(--end); }
.pin.focus { --c: var(--yellow); }
.pin.focus .head { box-shadow: 0 0 0 7px rgba(255,214,10,0.32); }
.pin.focus .foot { background: var(--ink); }
.pin.focus .face { font-size: 12px; }

/* The callout beside the focused pin */
.callout .mapboxgl-popup-content { width: 318px; padding: 16px 18px; border-radius: 18px; box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.14); font-family: Overpass, system-ui, sans-serif; color: var(--ink); }
.callout .mapboxgl-popup-tip { display: none; }
.callout .label, .linecard .label, .panel .label { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: var(--label); text-transform: uppercase; }
.callout h3 { margin: 6px 0 0; font-size: 19px; line-height: 1.25; font-weight: 800; }
.quote { margin-top: 10px; padding: 9px 11px 7px; border-radius: 10px; background: #f4f4f2; font-family: 'Overpass Mono', ui-monospace, monospace; font-size: 12px; line-height: 1.45; color: var(--text-2); }
.quote .label { display: block; margin-bottom: 2px; font-family: Overpass, system-ui, sans-serif; font-size: 11px; letter-spacing: 0.06em; }

/* The strip map */
.strip { position: relative; background: #fff; border-top: 1px solid var(--line); overflow: hidden; }
.strip .head { position: absolute; left: 32px; right: 32px; top: 14px; display: flex; justify-content: center; gap: 16px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--label); text-transform: uppercase; white-space: nowrap; }
.strip .head .now { color: var(--ink); }
.strip .head .warn { color: var(--warn); }
.strip .lane { position: absolute; left: 32px; right: 32px; top: 34px; height: 80px; }
.strip .band { position: absolute; left: 0; right: 0; top: 32px; height: 18px; border-radius: 9px; background: rgba(255,214,10,0.85); }
.strip .seg { position: absolute; top: 37px; height: 8px; border-radius: 3px; background: #dcdcd6; transition: background 200ms; }
.strip .seg.done { background: var(--route); }
.strip .tick { position: absolute; top: 51px; width: 1.5px; height: 8px; background: #b9b9b3; }
.strip .tick.done { background: var(--ink); }
.strip .end { position: absolute; top: 34px; width: 14px; height: 14px; margin-left: -7px; border-radius: 7px; border: 2px solid #fff; }
.strip .lane { cursor: pointer; touch-action: none; outline: none; }
.strip .lane:focus-visible .mark { box-shadow: 0 0 0 4px rgba(255,214,10,0.55); }
.strip .mark { position: absolute; top: 28px; width: 26px; height: 26px; margin-left: -13px; border-radius: 13px; background: var(--yellow); border: 3px solid var(--ink); cursor: grab; transition: left 160ms cubic-bezier(.3,.7,.2,1); }
.strip .mark.idle { background: #fff; }
.strip .mark.drag { transition: none; cursor: grabbing; transform: scale(1.12); }
.strip .tick.focus { top: 49px; width: 3px; height: 14px; margin-left: -0.75px; background: var(--ink); }
.puck { width: 20px; height: 20px; border-radius: 10px; background: var(--route); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--casing), 0 2px 6px rgba(0,0,0,0.3); pointer-events: none; }
.strip .diff { position: absolute; top: 26px; height: 30px; border-radius: 5px; border: 2px solid var(--warn); }
.strip .shield { position: absolute; top: 0; width: 30px; height: 28px; margin-left: -15px; transition: opacity 200ms; }
.strip .shield.later { opacity: 0.38; }
.strip .mile { position: absolute; top: 67px; width: 120px; font-size: 12px; font-weight: 700; color: var(--label); }
.strip .mile.first { margin-left: 0; text-align: left; }
.strip .mile.last { margin-left: -120px; text-align: right; }

.leader { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1; overflow: visible; }
.leader path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 0.1 6; }
.leader circle { fill: var(--ink); }
.leader.off { display: none; }

/* The permit, opened */
.viewer { position: fixed; inset: 0; z-index: 30; background: #1c1c1e; color: #fff; display: grid; grid-template-columns: 168px minmax(0, 1fr) 520px; grid-template-rows: var(--bar) minmax(0, 1fr); }
.viewer-bar { grid-column: 1 / 4; position: static; border-bottom: 1px solid #2c2c2e; }
.viewer-bar .bar-note { margin-left: 0; font-size: 14px; }
.rail { padding: 24px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.rail button { position: relative; padding: 0; border: 0; width: 120px; aspect-ratio: 595 / 842; border-radius: 4px; overflow: hidden; background: #fff; cursor: pointer; opacity: 0.85; }
.rail button[aria-current="page"] { opacity: 1; box-shadow: 0 0 0 3px var(--yellow); }
.rail img { width: 100%; height: 100%; display: block; }
.rail .n { position: absolute; left: 6px; bottom: 6px; min-width: 22px; height: 22px; padding: 2px 6px 0; border-radius: 11px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.rail .dot { position: absolute; right: 6px; top: 6px; width: 11px; height: 11px; border-radius: 6px; background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.rail p { margin: 0; font-size: 12px; line-height: 1.45; color: #a1a1aa; }
.viewer-page { overflow-y: auto; padding: 24px 28px; }
.paper.big { width: 100%; max-width: 760px; aspect-ratio: 595 / 842; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.panel { padding: 28px 28px 28px 0; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.panel .label { color: #a1a1aa; }
.panel h2 { margin: 6px 0 0; font-size: 30px; line-height: 1.15; font-weight: 900; }
.panel .says { border-radius: 14px; background: #2c2c2e; padding: 14px 16px 12px; font-family: 'Overpass Mono', ui-monospace, monospace; font-size: 14px; line-height: 1.5; }
.panel .says .label { display: block; margin-bottom: 6px; font-family: Overpass, system-ui, sans-serif; font-size: 11px; }
.panel .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.panel .facts div { border-radius: 12px; border: 1px solid #3a3a3c; padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 2px; }
.panel .facts span { font-size: 12px; color: #a1a1aa; }
.panel .facts b { font-size: 17px; font-weight: 800; }
.panel .act { height: 52px; padding-top: 3px; border: 0; border-radius: 26px; background: var(--yellow); color: var(--ink); font-size: 17px; font-weight: 900; cursor: pointer; }
.panel .hint { margin: 0; font-size: 14px; line-height: 1.5; color: #a1a1aa; }

/* The line card replaces the callout on a phone */
.linecard { display: none; }

@media (max-width: 1180px) { :root { --desk-w: 400px; } }
@media (max-width: 860px) {
  :root { --bar: 56px; --strip-h: 76px; }
  .bar { padding: 0 16px; gap: 10px; }
  .brand .icon { width: 32px; height: 32px; }
  .brand .wordmark { width: 82px; }
  .bar-note, .crumb { display: none; }
  .bar .pill.dark { height: 36px; font-size: 14px; padding: 2px 12px 0; }
  .pick { padding: 24px 16px 32px; }
  .lede { font-size: 17px; }
  .cards { grid-template-columns: repeat(5, 150px); overflow-x: auto; gap: 16px; padding: 18px 2px 4px; scroll-snap-type: x mandatory; }
  .permit { scroll-snap-align: start; }
  .permit .pile { width: 130px; }
  .permit .code { font-size: 36px; }
  .permit .mi { font-size: 22px; }
  /* One screen, no scrolling: the map takes what the sheet below it leaves */
  .stage { height: calc(100dvh - var(--bar)); display: flex; flex-direction: column; overflow: hidden; }
  .desk { display: none; }
  .mapwrap { flex: 1; min-height: 0; display: flex; flex-direction: column; background: none; }
  #map { position: relative; inset: auto; flex: 1; min-height: 180px; }
  #map .mapboxgl-ctrl-bottom-right, #map .mapboxgl-ctrl-bottom-left { bottom: 20px; }
  .card { position: relative; left: auto; top: auto; width: auto; margin: -20px 0 0; padding: 18px 20px 16px; border-radius: 20px 20px 0 0; z-index: 3; box-shadow: 0 -6px 20px rgba(0,0,0,0.12); }
  .card .label { font-size: 11px; }
  .card .big { margin-top: 4px; }
  .card .big b { font-size: 46px; }
  .card .big small { font-size: 22px; }
  .card .wow { margin-top: 8px; font-size: 16px; }
  .card p { margin-top: 6px; font-size: 14px; }
  .card .fine { font-size: 12px; }
  .card .act { margin-top: 12px; height: 44px; font-size: 15px; }
  .card .links { flex-direction: row; justify-content: center; gap: 20px; }
  .card .links .link { margin-top: 10px; font-size: 14px; }
  .card .chips { max-height: 30vh; }
  .legend { right: 12px; top: 12px; bottom: auto; padding: 10px 14px 8px; font-size: 13px; }
  .linecard { display: flex; order: 3; flex: none; border-bottom: 1px solid var(--line); flex-direction: column; gap: 8px; padding: 14px 16px; background: #fff; }
  .linecard h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 800; }
  .linecard .crop { height: 46px; border-radius: 4px; background-repeat: no-repeat; box-shadow: 0 1px 2px rgba(0,0,0,0.12); }
  .linecard .row { display: flex; justify-content: space-between; align-items: center; }
  .linecard button { border: 0; background: none; padding: 0; font-size: 14px; font-weight: 800; cursor: pointer; }
  .linecard .row-end { display: flex; align-items: center; gap: 14px; }
  .linecard .close { width: 28px; height: 28px; border-radius: 14px; background: #f2f2ee; display: grid; place-items: center; }
  .linecard .close svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
  .card.has-line p, .card.has-line .act, .card.has-line .links { display: none; }
  .card.has-line { padding-bottom: 12px; }
  .card.has-line .big b { font-size: 34px; }
  .brand .sub { display: none; }
  .bar .pill.dark .long { display: none; }
  .bar .pill.dark .short { display: inline; }
  .strip { order: 4; flex: none; height: calc(var(--strip-h) + env(safe-area-inset-bottom)); border-top: 0; }
  .strip .head { display: none; }
  .strip .lane { left: 20px; right: 20px; top: 2px; }
  .strip .shield { display: none; }
  .strip .lane > * { translate: 0 -18px; }
  .callout { display: none; }
  .leader { display: none; }
  .viewer { grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--bar) auto auto; overflow-y: auto; }
  .viewer-bar { grid-column: 1; }
  .viewer-bar .bar-note { display: none; }
  .rail { display: none; }
  .viewer-page { padding: 12px; overflow: visible; }
  .panel { padding: 8px 16px 32px; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  .stroke svg, .strip .mark, .permit .pile img { transition: none; }
}
