/* app.css: direction D, "Simple". The map is the app; one number, one button, one time.
   Rule 38 binds it: every control 48 px or more, the paint button 64, in the lower half; text that grows
   with the reader's own text size; colour never the only signal. */
:root {
  --ink: #0B0B0C; --ink2: #6E6E73; --ink3: #A1A1A6; --line: #E7E7EA; --fill: #F2F2F5; --white: #FFFFFF; --blue: #1A73E8; --green: #1E8E4E; --warn: #B3261E;
  --sys: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --round: ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #E9E9EC; color: var(--ink); font: 400 1.0625rem/1.35 var(--sys); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
#app { position: fixed; inset: 0; max-width: 430px; margin: 0 auto; background: var(--white); overflow: hidden; }
@media (min-width: 431px) { #app { top: 12px; bottom: 12px; border-radius: 34px; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 30px 70px -30px rgba(0,0,0,.35); } }
#map { position: absolute; inset: 0; background: #F6F4EE; }
svg.map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; user-select: none; }
/* the map's own style: calm greens, white paths, paint lifted off it by a soft shadow */
.map .lu-park, .map .lu-recreation_ground, .map .lu-garden { fill: #D3EBC0; } .map .lu-grass { fill: #D8EEC6; } .map .lu-wood { fill: #BFE0AC; }
.map .lu-pitch { fill: #CBE7B6; } .map .lu-sand { fill: #F3E9C4; } .map .lu-bare_rock { fill: #E4E2D8; } .map .lu-playground { fill: #F1E6CF; }
.map .lu-pedestrian { fill: #FBFAF6; } .map .lu-school { fill: #EFEBE1; }
.map .water { fill: #A9D6F5; } .map .bld { fill: #E9E4D8; stroke: #D8D2C4; stroke-width: .5; }
.map .case, .map .way { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map .case { stroke: #DAD5C8; } .map .case-major { stroke-width: 10.8; } .map .case-minor { stroke-width: 7.4; } .map .case-service { stroke-width: 4.2; } .map .case-foot { stroke: #C3DDB0; stroke-width: 3.1; }
.map .way { stroke: #FFFFFF; } .map .way-major { stroke-width: 9.6; } .map .way-minor { stroke-width: 6.3; } .map .way-service { stroke-width: 3.2; }
.map .way-foot { stroke-width: 2.3; } .map .way-side { stroke: #F1EEE6; stroke-width: 1.3; } .map .way-steps { stroke-width: 2.3; stroke-dasharray: 1.2 1.2; stroke-linecap: butt; }
.map .veil { fill: rgba(255,255,255,.26); } .map .edge { fill: none; stroke: #fff; stroke-width: 2.4px; vector-effect: non-scaling-stroke; } .map .edge2 { fill: none; stroke: rgba(0,0,0,.16); stroke-width: 4px; vector-effect: non-scaling-stroke; }
.map .closed { fill: rgba(120,120,128,.2); opacity: 0; transition: opacity .3s; } .map.near .closed { opacity: 1; }
.map .paint { image-rendering: pixelated; filter: drop-shadow(0 .5px .9px rgba(0,0,0,.3)); }
.map .grid { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1px; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .3s; } .map.near .grid { opacity: 1; }
.map .wet { stroke: #fff; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.map .wet.new, .map .up.new { transform-box: fill-box; transform-origin: center; animation: pop .26s cubic-bezier(.2,.9,.3,1.35) both; }
@keyframes pop { from { transform: scale(.15); opacity: 0; } to { transform: none; opacity: 1; } }
.map .pale { fill-opacity: .55; stroke: #fff; stroke-width: 2.5px; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.map .label { font: 600 var(--label, 9px)/1 var(--sys); paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: .25em; stroke-linejoin: round; transition: opacity .3s; }
.map .label-park { fill: #3F7D3A; } .map .label-water { fill: #2D7FC1; font-style: italic; } .map .label-poi { fill: #6B5E4A; } .map.near .label { opacity: 0; }
.map .reach { fill: rgba(26,115,232,.07); stroke: rgba(26,115,232,.55); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.map .markbox { fill: none; stroke: #B3261E; stroke-width: 3px; vector-effect: non-scaling-stroke; }
.map .me-ring { fill: #fff; filter: drop-shadow(0 .4px .8px rgba(0,0,0,.4)); } .map .me-dot { fill: var(--blue); }
/* floating things over the map */
.top { position: absolute; left: 0; right: 0; top: calc(var(--safe-t) + 12px); z-index: 4; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 0 14px; pointer-events: none; }
.top > * { pointer-events: auto; }
.pill { background: var(--white); border-radius: 24px; min-height: 48px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; font: 650 1rem/1.15 var(--sys); letter-spacing: -.01em; box-shadow: 0 2px 10px rgba(0,0,0,.14), 0 0 0 .5px rgba(0,0,0,.06); }
.pill small { font: 500 .875rem/1 var(--sys); color: var(--ink2); }
.round { width: 48px; height: 48px; border-radius: 24px; background: var(--white); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.14), 0 0 0 .5px rgba(0,0,0,.06); flex: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex: none; } .dot.off { background: var(--ink3); } .dot.ink { background: var(--ink); }
svg.ic { width: 24px; height: 24px; fill: currentColor; flex: none; }        /* Phosphor icons: filled shapes */
.testbar { position: absolute; left: 0; right: 0; top: 0; z-index: 9; background: #FAEC00; color: #17171A; font: 650 .75rem/1.2 var(--sys); padding: calc(var(--safe-t) + 5px) 12px 5px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.testbar button { background: #17171A; color: #fff; border-radius: 9px; padding: 7px 10px; font: 650 .75rem/1 var(--sys); min-height: 32px; white-space: nowrap; }
.has-test .top { top: calc(var(--safe-t) + 56px); }
/* the sheet */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--white); border-radius: 26px 26px 0 0; box-shadow: 0 -8px 34px rgba(0,0,0,.14); padding: 10px 20px calc(var(--safe-b) + 18px); transition: transform .32s cubic-bezier(.2,.8,.2,1); max-height: 86%; overflow-y: auto; }
.sheet.with-tabs { padding-bottom: calc(var(--safe-b) + 84px + 14px); }
.grab { width: 38px; height: 5px; border-radius: 3px; background: #D5D5DA; margin: 0 auto 14px; }
.t1 { font: 700 1.75rem/1.1 var(--sys); letter-spacing: -.03em; margin: 0; }
.t2 { font: 650 1.25rem/1.2 var(--sys); letter-spacing: -.02em; margin: 0; }
.sub { font: 400 .97rem/1.35 var(--sys); color: var(--ink2); margin: 0; }
.strong { color: var(--ink); font-weight: 600; }
.btn { min-height: 58px; border-radius: 17px; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; font: 650 1.125rem/1.1 var(--sys); letter-spacing: -.01em; width: 100%; padding: 8px 14px; text-align: center; }
.btn.grey { background: var(--fill); color: var(--ink); }
.btn.paint { min-height: 64px; font-size: 1.25rem; }
.btn[disabled] { opacity: .35; cursor: default; }
.btn .n { background: rgba(255,255,255,.18); border-radius: 9px; padding: 5px 8px; font: 650 .95rem/1 var(--round); }
.btn.grey .n { background: rgba(0,0,0,.07); }
.two { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; } .two.rev { grid-template-columns: 1fr 1.25fr; } .two .btn { font-size: 1.03rem; white-space: nowrap; padding: 8px 8px; gap: 6px; }
.links { display: flex; justify-content: space-around; gap: 6px; padding-top: 6px; }
.links button { font: 600 .97rem/1.1 var(--sys); min-height: 48px; padding: 0 8px; }
.meter { height: 8px; border-radius: 4px; background: var(--fill); position: relative; overflow: hidden; } .meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--ink); transition: width .4s; }
.big { font: 700 3.4rem/.95 var(--round); letter-spacing: -.03em; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.tile { aspect-ratio: 1; border-radius: 17px; background: var(--fill); display: flex; align-items: center; justify-content: center; position: relative; min-height: 48px; }
.tile[aria-pressed="true"] { background: #fff; box-shadow: inset 0 0 0 2.5px var(--ink); }
.tile b { position: absolute; right: 7px; bottom: 6px; font: 650 .72rem/1 var(--round); color: var(--ink2); }
.tile[disabled] { opacity: .4; }
.tiles.five { grid-template-columns: repeat(5, 1fr); gap: 7px; } .tiles.five .tile { border-radius: 14px; } .tiles.five .tile b { right: 5px; bottom: 4px; font-size: .62rem; }
.pickscroll { max-height: 37vh; overflow-y: auto; margin: 0 -6px; padding: 3px 6px; -webkit-overflow-scrolling: touch; }
.vars { display: flex; gap: 7px; flex: none; } .var { width: 52px; height: 52px; border-radius: 14px; background: var(--fill); display: flex; align-items: center; justify-content: center; } .var[aria-pressed="true"] { background: #fff; box-shadow: inset 0 0 0 2.5px var(--ink); }
.rowc { display: flex; align-items: center; gap: 13px; }
.thumb { width: 60px; height: 60px; border-radius: 15px; background: var(--fill); display: flex; align-items: center; justify-content: center; flex: none; } .thumb.done { background: var(--ink); color: #fff; border-radius: 30px; }
.ok { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-weight: 600; } .ok svg { width: 17px; height: 17px; stroke-width: 2.6; }
.no { color: var(--warn); font-weight: 600; }
.pal { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px 2px; }
.pal button { aspect-ratio: 1; min-height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.pal i { width: 78%; aspect-ratio: 1; border-radius: 50%; display: block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); } .pal button[aria-pressed="true"] i { box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px var(--ink); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--fill); border-radius: 12px; padding: 3px; } .seg button { text-align: center; min-height: 44px; border-radius: 10px; color: var(--ink2); font: 600 .95rem/1 var(--sys); } .seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.tabs { position: absolute; left: 0; right: 0; bottom: 0; height: calc(84px + var(--safe-b)); z-index: 7; background: var(--white); border-top: .5px solid rgba(0,0,0,.12); display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 20px 0; }
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 600 .66rem/1 var(--sys); color: var(--ink3); height: 56px; justify-content: center; } .tabs button[aria-current="page"] { color: var(--ink); } .tabs svg.ic { width: 26px; height: 26px; }
/* A page that scrolls begins below the phone's own bar (the clock, the battery), so that its words never run
   under it. The strip above it is filled with the page's white by a shadow that does not scroll. */
.page { position: absolute; inset: var(--safe-t) 0 0 0; z-index: 5; background: var(--white); box-shadow: 0 calc(-1 * var(--safe-t)) 0 var(--white); overflow-y: auto; padding: 22px 20px calc(var(--safe-b) + 110px); }
.has-test .page { padding-top: 58px; }
.card { border-radius: 22px; overflow: hidden; position: relative; box-shadow: 0 0 0 1px rgba(0,0,0,.08); background: #F6F4EE; }
.card canvas, .card svg { display: block; width: 100%; height: auto; }
.rules { margin: 0; padding: 0; list-style: none; counter-reset: r; } .rules li { counter-increment: r; display: grid; grid-template-columns: 30px 1fr; gap: 6px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .97rem; } .rules li::before { content: counter(r); font: 700 1.05rem/1.3 var(--round); color: var(--ink2); }
.toast { position: absolute; left: 50%; top: calc(var(--safe-t) + 112px); z-index: 12; transform: translateX(-50%); background: rgba(11,11,12,.92); color: #fff; border-radius: 14px; padding: 11px 16px; font: 600 .95rem/1.25 var(--sys); max-width: 86%; text-align: center; opacity: 0; transition: opacity .25s; pointer-events: none; } .toast.on { opacity: 1; }
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) { .sheet, .meter i { transition: none; } .map .wet.new, .map .up.new { animation: none; } }

/* ---- the real map (map-gl.ts): the engine's own canvas, her dot, the credit line, the way back */
#map.maplibregl-map { font: inherit; }
#map .maplibregl-canvas { outline: none; }
.me-gl { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3.5px #fff, 0 1px 6px 3px rgba(0,0,0,.28); pointer-events: none; }
.map-credit { position: absolute; left: 8px; bottom: 6px; z-index: 2; margin: 0; padding: 4px 7px; border-radius: 8px; background: rgba(255,255,255,.78); font: 500 .625rem/1 var(--sys); color: rgba(60,60,67,.8); pointer-events: auto; transition: bottom .32s cubic-bezier(.2,.8,.2,1); }
.map-credit a { color: inherit; text-decoration: none; }
.fab { position: absolute; right: 14px; bottom: 120px; z-index: 5; width: 52px; height: 52px; border-radius: 50%; background: var(--white); color: var(--blue); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.18), 0 0 0 .5px rgba(0,0,0,.06); transition: bottom .32s cubic-bezier(.2,.8,.2,1); }
.fab svg.ic { width: 24px; height: 24px; }

/* ---- my pictures: a row for one of her own pictures, with one button */
.keptrow { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.keptinfo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 60px; text-align: left; border-radius: 15px; }
.keptinfo .thumb { width: 52px; height: 52px; border-radius: 13px; }
.keptinfo b { display: block; font: 650 1.02rem/1.2 var(--sys); letter-spacing: -.01em; }
.keptinfo small { display: block; font: 400 .9rem/1.25 var(--sys); color: var(--ink2); margin-top: 2px; }
.btn.small { width: auto; min-height: 50px; padding: 0 16px; border-radius: 15px; font-size: 1.02rem; flex: none; }
/* a picture of her own: two ways to make one, the grid she draws on, and the link to share it */
.ownrow { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 9px; } .ownrow .btn.small { width: 100%; padding: 0 8px; cursor: pointer; }
.draft { display: block; width: min(100%, 43vh); aspect-ratio: 1; margin: 0 auto; border-radius: 14px; touch-action: none; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.seg.five { grid-template-columns: repeat(5, 1fr); } .seg.five button { min-height: 40px; font-family: var(--round); }
.links button[aria-pressed="true"] { box-shadow: inset 0 -2.5px 0 var(--ink); }
.linkbox { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 6px 6px 6px 14px; border-radius: 17px; background: var(--fill); } .linkbox span { flex: 1; min-width: 0; font: 500 .9rem/1.3 ui-monospace, Menlo, monospace; overflow-wrap: anywhere; user-select: all; } .linkbox .btn.small { background: var(--white); min-height: 44px; }

/* ---- the first screens (first.ts): a sheet over the map */
.mark { width: 34px; height: 34px; border-radius: 9px; background: var(--ink); position: relative; flex: none; display: inline-block; }
.mark i { position: absolute; left: 7.6px; top: 8.8px; width: 10.5px; height: 10.5px; border-radius: 1.5px; background: #FAEC00; }
.mark b { position: absolute; left: 7.6px; top: 19.3px; width: 13.6px; height: 3.1px; background: #fff; border-radius: 2px; }
.mark u { position: absolute; left: 18.1px; top: 5.1px; width: 3.1px; height: 17.3px; background: #fff; border-radius: 2px; }
.first { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none; }
.first::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255,255,255,0) 22%, rgba(255,255,255,.6) 62%); pointer-events: none; }
.first-sheet { position: relative; pointer-events: auto; background: var(--white); border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.16); padding: 14px 22px calc(var(--safe-b) + 22px); max-height: 86%; overflow-y: auto; overscroll-behavior: contain; animation: first-up .34s cubic-bezier(.2,.8,.2,1) both; }
@keyframes first-up { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
.first.reread { background: rgba(0,0,0,.3); pointer-events: auto; } .first.reread::before, .first.looking::before { display: none; }
.first-dots { display: flex; gap: 6px; justify-content: center; margin: 2px 0 20px; } .first-dots i { width: 24px; height: 4px; border-radius: 2px; background: var(--line); } .first-dots i.on { background: var(--ink); }
.first-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 2px 0 20px; } .first-hero .mark { transform: scale(1.35); transform-origin: left bottom; }
.first-strip { display: flex; align-items: flex-end; gap: 10px; }
.first h1 { font: 700 2.3rem/1.02 var(--sys); letter-spacing: -.04em; margin: 0 0 10px; outline: none; }
.first h2 { font: 650 1.2rem/1.2 var(--sys); letter-spacing: -.02em; margin: 24px 0 10px; }
.first-lead { font: 400 1.06rem/1.4 var(--sys); color: var(--ink2); margin: 0 0 18px; } .first-lead.strong { color: var(--ink); font-weight: 600; }
.first-q { font: 650 1.12rem/1.2 var(--sys); margin: 6px 0 12px; }
.first-small { font: 400 .9rem/1.35 var(--sys); color: var(--ink2); text-align: center; margin: 14px 0 0; }
.first-rules { list-style: none; margin: 16px 0 18px; padding: 0; display: grid; gap: 15px; }
.first-rules li { display: grid; grid-template-columns: 44px 1fr; gap: 13px; align-items: start; }
.first-ic { width: 44px; height: 44px; border-radius: 13px; background: var(--fill); display: flex; align-items: center; justify-content: center; }
.first-rules b { display: block; font: 650 1.04rem/1.25 var(--sys); letter-spacing: -.01em; margin-top: 2px; }
.first-rules p, .first-box p { margin: 3px 0 0; font: 400 .96rem/1.38 var(--sys); color: var(--ink2); }
.first-box { background: var(--fill); border-radius: 16px; padding: 14px 16px; margin: 0 0 18px; } .first-box b { font: 650 1rem/1.2 var(--sys); }
.first-list { margin: 0 0 6px; padding: 0; list-style: none; display: grid; gap: 11px; }
.first-list li { position: relative; padding-left: 20px; font: 400 1rem/1.4 var(--sys); }
.first-list li::before { content: ''; position: absolute; left: 2px; top: .52em; width: 7px; height: 7px; border-radius: 2px; background: var(--ink); }
.first-draft { font: 500 .82rem/1.3 var(--sys); background: #FFF6A8; border-radius: 10px; padding: 8px 11px; margin: 16px 0 0; }
.first-bar { pointer-events: auto; margin: 0 14px calc(var(--safe-b) + 16px); background: var(--white); border-radius: 22px; box-shadow: 0 2px 14px rgba(0,0,0,.18); padding: 9px 9px 9px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 1rem/1.2 var(--sys); }
@media (prefers-reduced-motion: reduce) { .first-sheet { animation: none; } }
.first-foot { position: sticky; bottom: calc(-1 * (var(--safe-b) + 22px)); margin: 0 -22px calc(-1 * (var(--safe-b) + 22px)); padding: 14px 22px calc(var(--safe-b) + 22px); background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 26%); }
.first-box .btn.grey { background: var(--white); }

/* the invitation (first.ts): one field for a code */
.first-label { display: block; font: 600 .9rem/1.2 var(--sys); margin: 0 0 6px; }
.first-input { display: block; width: 100%; box-sizing: border-box; font: 500 1.25rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); margin: 0 0 12px; -webkit-appearance: none; appearance: none; }
.first-input:focus { outline: none; border-color: var(--ink); } .first-input:disabled { opacity: .55; }
.first-note { font: 500 .96rem/1.35 var(--sys); background: #FFECE8; color: #8A1C0E; border-radius: 12px; padding: 10px 13px; margin: 0 0 14px; }
.first-bar small { display: block; font: 400 .8rem/1.3 var(--sys); color: var(--ink2); margin-top: 3px; } .first-bar small a, .contact a { color: inherit; }

/* ---- a report (report.ts): its own bar and sheets. While one is on the screen, the page's own sheets step aside */
.report { position: absolute; inset: 0; z-index: 22; display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none; }
.rp-bar { pointer-events: auto; margin: 0 14px calc(var(--safe-b) + 16px); background: var(--white); border-radius: 22px; box-shadow: 0 2px 14px rgba(0,0,0,.18); padding: 9px 9px 9px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 1rem/1.25 var(--sys); }
.rp-bar small { display: block; font: 500 .88rem/1.3 var(--sys); color: var(--warn); margin-top: 3px; }
.rp-sheet { pointer-events: auto; background: var(--white); border-radius: 26px 26px 0 0; box-shadow: 0 -8px 34px rgba(0,0,0,.14); padding: 20px 20px calc(var(--safe-b) + 18px); max-height: 74%; overflow-y: auto; overscroll-behavior: contain; }
.rp-sheet h2 { outline: none; margin: 0 0 12px; }
.rp-known { font: 500 .96rem/1.35 var(--sys); background: var(--fill); border-radius: 12px; padding: 10px 13px; margin: 0 0 14px; }
.rp-why { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.rp-why legend { font: 650 1.05rem/1.2 var(--sys); padding: 0; margin: 0 0 6px; }
.rp-why label { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 1px 2px; font: 500 1rem/1.25 var(--sys); cursor: pointer; }
.rp-why input { width: 22px; height: 22px; flex: none; accent-color: var(--ink); margin: 0; }
.rp-small { font: 400 .88rem/1.35 var(--sys); color: var(--ink2); margin: 0 0 4px; }
.rp-eg { font: 400 .92rem/1.4 var(--sys); color: var(--ink2); background: var(--fill); border-radius: 12px; padding: 10px 13px; margin: 0 0 10px; } .rp-eg b { color: var(--ink); font-weight: 600; }
.rp-foot { position: sticky; bottom: calc(-1 * (var(--safe-b) + 18px)); margin: 0 -20px calc(-1 * (var(--safe-b) + 18px)); padding: 12px 20px calc(var(--safe-b) + 18px); background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 20%); }
.rp-foot .first-note { margin-bottom: 10px; }
.rp-state { font: 400 1.05rem/1.4 var(--sys); margin: 12px 0 0; }
.reporting .sheet, .reporting .tabs, .reporting .top, .reporting .fab, .reporting .first-bar { display: none; }
.first-flag { display: block; font: 600 .86rem/1.2 var(--sys); color: var(--ink2); text-decoration: underline; text-underline-offset: 2px; min-height: 40px; padding: 2px 0 0; text-align: left; }
