:root {
  /* Layout: phones get the map on top and details in a sheet that slides over it; from 900px the details sit in a
     440px column beside a sticky map. Light look only for now. */
  --bg: #F2F0EA; --surface: #FFFFFF; --ink: #191C1E; --muted: #4F575D; --line: #DAD6CC; --chip-bg: #EFECE5;
  --brand: #0B6040; --brand-ink: #FFFFFF; --focus: #E0570C; --ring: rgba(11, 96, 64, .22);
  --warn: #F6C431; --warn-ink: #1A1A1A; --alert-bg: #FFF6D6; --alert-ink: #5A4200; --ok-bg: #E4F1EA; --ok-ink: #0B5236;
  --flag-red: #B71C2C; --flag-gold: #F2C230; --flag-blue: #173E8C; --flag-blue-shadow: #0E2A63; --sign-ink: #FFFFFF; --sign-soft: #D3DCEF;
  --cta: #F6C431; --cta-ink: #1A1A1A; --cta-ring: rgba(246, 196, 49, .5);
  --post: #9AA2A8; --handle: #C8C3B8; --dlg-backdrop: rgba(12, 22, 44, .58); --fb-meta: #F0F2F5; --well: #E4E0D6;
  --toast-bg: #15181B; --toast-fg: #F3F4F5;
  --m-land: #ECE8DF; --m-street: #FFFFFF; --m-water: #A8D0E3; --m-park: #CFE2C3; --m-route: #E0570C; --m-you: #1F6FEB; --m-pin: #0B6040; --m-label: #22272B; --m-white: #FFFFFF;
  --radius: 16px;
  --font-display: "Overpass", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sign: "Zilla Slab", Georgia, serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button { font: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* controls */
.field { display: block; width: 100%; min-height: 56px; padding: 0 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 18px; }
.field::placeholder { color: var(--muted); opacity: .85; }
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 22px; border: 2px solid transparent; border-radius: 12px; font-family: var(--font-body); font-weight: 700; font-size: 17px; line-height: 1.15; text-align: center; text-decoration: none; cursor: pointer; transition: transform .12s ease, filter .15s ease, border-color .15s ease; }
.btn:active { transform: scale(.97); }
.btn[disabled] { cursor: progress; }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15.5px; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-link { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--brand); }
.is-loading::before { content: ""; width: 18px; height: 18px; flex: none; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* flag band */
.band { height: 8px; background: linear-gradient(90deg, var(--flag-red) 0 18%, var(--flag-gold) 18% 20%, var(--flag-blue) 20% 80%, var(--flag-gold) 80% 82%, var(--flag-red) 82%); }

/* ---------- search: the welcome sign is the search box ---------- */
[data-screen="search"] { display: flex; flex-direction: column; position: relative; min-height: calc(100svh - 8px); overflow: hidden; }
.c-search { display: grid; gap: 24px; padding-block: 24px 40px; }
@media (min-width: 960px) { .c-search { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 56px; align-items: center; padding-block: 56px 64px; } }
.c-hero { min-width: 0; }
.c-sign { padding: 8px; border-radius: 18px; background: var(--flag-blue); color: var(--sign-ink); box-shadow: 0 3px 0 var(--flag-blue-shadow); }
.c-sign-in { display: grid; justify-items: center; gap: 14px; padding: 20px 18px; border: 3px solid var(--flag-gold); border-radius: 12px; text-align: center; }
@media (min-width: 600px) { .c-sign-in { padding: 26px 28px; } }
.c-flag { display: block; flex: none; width: 120px; height: 72px; border-radius: 3px; box-shadow: 0 0 0 2px var(--sign-ink); }
@media (min-width: 600px) { .c-sign .c-flag { width: 150px; height: 90px; } }
.c-w-state { font-family: var(--font-sign); font-weight: 700; font-size: clamp(34px, 9.4vw, 76px); line-height: .95; letter-spacing: .03em; text-transform: uppercase; }
.c-w-h { max-width: 24ch; margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(21px, 5.2vw, 28px); line-height: 1.12; }
.c-form { display: grid; gap: 8px; width: 100%; text-align: left; }
.c-form label { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.c-entry { display: grid; gap: 8px; }
@media (min-width: 560px) { .c-entry { grid-template-columns: minmax(0, 1fr) auto; } }
.c-combo { position: relative; min-width: 0; }
.c-sugg { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; max-height: 320px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .45); text-align: left; }
.c-sugg li { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 12px; border-radius: 8px; font-size: 16px; line-height: 1.3; cursor: pointer; }
.c-sugg li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.c-sugg li[aria-selected="true"], .c-sugg li:hover { background: var(--ok-bg); }
.c-sugg li[aria-selected="true"]::before { background: var(--brand); }
.c-entry .field { min-height: 58px; border-color: transparent; }
.c-entry .field:focus { border-color: var(--cta); box-shadow: 0 0 0 4px var(--cta-ring); }
.c-find { min-height: 58px; background: var(--cta); color: var(--cta-ink); font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.c-find:hover { filter: brightness(.95); }
.c-hint { display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--flag-blue-shadow); color: var(--sign-ink); font-size: 15.5px; }
.c-hint-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.c-hint .btn { border-color: var(--sign-soft); color: var(--sign-ink); }
.c-sign-foot { width: 100%; padding-top: 12px; border-top: 2px solid var(--flag-gold); font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; }
.c-posts { display: flex; justify-content: space-between; height: 30px; padding: 0 22%; }
.c-posts i { width: 12px; border-radius: 0 0 2px 2px; background: var(--post); }
.c-side { display: grid; gap: 18px; align-content: start; }
.c-info { display: flex; gap: 18px; align-items: flex-start; }
.c-mile { display: grid; justify-items: center; flex: none; min-width: 86px; padding: 9px 10px 11px; border-radius: 8px; background: var(--brand); color: var(--brand-ink); box-shadow: inset 0 0 0 3px var(--brand), inset 0 0 0 5px var(--brand-ink); font-family: var(--font-display); line-height: 1; text-align: center; }
.c-mile small { font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.c-mile b { margin: 5px 0 3px; font-weight: 900; font-size: 44px; font-variant-numeric: tabular-nums; }
.c-warn { display: flex; gap: 14px; align-items: flex-start; }
.c-warn p { font-size: 16px; }
.diamond { display: grid; place-items: center; flex: none; width: 30px; height: 30px; margin: 7px; border: 2px solid var(--warn-ink); border-radius: 4px; background: var(--warn); transform: rotate(45deg); }
.diamond b { transform: rotate(-45deg); font-family: var(--font-display); font-weight: 900; font-size: 18px; line-height: 1; color: var(--warn-ink); }
.c-reg { font-size: 16px; color: var(--muted); }
.c-reg a, .c-side .btn-link { color: var(--brand); font-weight: 700; }
.c-side .btn-link { justify-self: start; padding: 0; text-align: left; }
.c-foot { padding-block: 0 32px; font-size: 13.5px; color: var(--muted); }

/* A quiet roadside horizon finishes the page without competing with the search sign. */
.c-scenic { position: relative; flex: none; isolation: isolate; height: 470px; margin-top: auto; }
.c-landscape { position: absolute; bottom: 0; z-index: -1; width: 100%; height: 460px; }
.c-scenic-copy { position: absolute; left: max(32px, calc(50% - 548px)); bottom: 102px; }
.c-scenic-kicker { font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: .15em; line-height: 1.3; text-transform: uppercase; color: #57664F; }
.c-scenic-copy h2 { margin: 14px 0 13px; color: #334C3D; font-family: var(--font-display); font-size: 42px; font-weight: 800; line-height: 1.08; }
.c-scenic-copy > p:last-child { color: #596453; font-size: 18px; }
.c-scenic-copy > p:last-child span { margin-inline: 13px; }
.c-search-foot { position: relative; z-index: 1; flex: none; max-width: none; margin: 0; padding: 22px 32px 25px; background: #D6DFCF; color: #50634C; text-align: center; }
@media (max-width: 899px) {
  .c-scenic { height: 310px; margin-top: 40px; }
  .c-scenic-copy { left: 24px; right: 24px; bottom: 52px; }
  .c-scenic-kicker { font-size: 10px; }
  .c-scenic-copy h2 { font-size: 30px; }
  .c-scenic-copy > p:last-child { font-size: 15px; }
  .c-search-foot { padding: 20px 24px; font-size: 11px; }
}

/* ---------- result: map + sheet ---------- */
.c-layout { display: grid; }
.c-map-wrap { position: relative; height: 340px; overflow: hidden; background: var(--m-land); transition: height .4s cubic-bezier(.2, .8, .2, 1); }
.c-layout.is-expanded .c-map-wrap { height: 160px; }
.c-map { width: 100%; height: 100%; z-index: 0; }
.c-map > svg { width: 100%; height: 100%; display: block; }
.c-back { position: absolute; top: 12px; left: max(12px, env(safe-area-inset-left, 0px)); z-index: 500; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px; box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .3); cursor: pointer; }
.c-sheet { position: relative; z-index: 1; margin-top: -24px; border-radius: 24px 24px 0 0; background: var(--surface); box-shadow: 0 -12px 32px -16px rgba(0, 0, 0, .3); }
.play .c-sheet { animation: sheetIn .55s cubic-bezier(.2, .9, .3, 1.05) both; }
.c-handle { display: flex; justify-content: center; align-items: center; width: 100%; height: 32px; border: 0; background: none; cursor: grab; touch-action: none; }
.c-handle::before { content: ""; width: 44px; height: 5px; border-radius: 99px; background: var(--handle); }
.c-sheet-in { display: grid; gap: 16px; padding-block: 0 44px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.c-eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.c-dest { padding: 6px; border-radius: 14px; background: var(--brand); color: var(--brand-ink); }
.c-dest-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 2px solid var(--brand-ink); border-radius: 10px; }
.c-dest-txt { min-width: 0; }
.c-dest-top { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.c-dest h2 { margin: 4px 0 6px; font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 5vw, 30px); line-height: 1.08; }
.c-dest h2:focus { outline: none; }
.c-dest-addr { font-size: 16px; }
.c-dest-dist { display: grid; justify-items: center; flex: none; font-family: var(--font-display); line-height: 1; text-align: center; }
.c-dest-dist .ic { width: 30px; height: 30px; stroke-width: 3; }
.c-dest-dist b { margin-top: 4px; font-weight: 900; font-size: 26px; }
.c-dest-dist small { font-weight: 800; font-size: 13px; text-transform: uppercase; }
.c-moved { display: flex; gap: 10px; align-items: center; padding: 8px 14px 8px 6px; border-radius: 12px; background: var(--alert-bg); color: var(--alert-ink); font-size: 16px; line-height: 1.4; }
.c-same { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--ok-bg); color: var(--ok-ink); font-size: 16px; }
.c-same .ic { stroke-width: 3; }
.c-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; background: var(--alert-bg); color: var(--alert-ink); font-size: 15.5px; line-height: 1.45; }
.c-note .ic { margin-top: 2px; }
.c-note a { color: inherit; font-weight: 700; }
.prose .lines { white-space: pre-line; }
.c-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.c-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 68px; border: 0; border-radius: 14px; background: var(--chip-bg); color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none; cursor: pointer; transition: transform .12s ease; }
.c-act:active { transform: scale(.96); }
.c-act .ic { width: 22px; height: 22px; }
.c-act-main { background: var(--brand); color: var(--brand-ink); }
.c-rows { display: grid; border-top: 1px solid var(--line); }
.c-row { border-bottom: 1px solid var(--line); }
.c-row-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 12px; align-items: center; min-height: 66px; padding: 11px 0; color: var(--ink); text-decoration: none; cursor: pointer; }
.c-row-head.static { grid-template-columns: 44px minmax(0, 1fr); cursor: default; }
.c-row-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--chip-bg); color: var(--brand); }
.c-row-t { display: block; min-width: 0; }
.c-row-t strong { display: block; font-size: 17px; line-height: 1.3; }
.c-row-t span { display: block; font-size: 15px; line-height: 1.35; color: var(--muted); }
.c-chev { color: var(--muted); transition: transform .2s ease; }
details[open] > summary .c-chev { transform: rotate(90deg); }
.c-row-body { display: grid; gap: 14px; padding: 0 0 18px 56px; }
@media (max-width: 440px) { .c-row-body { padding-left: 0; } }
.prose { display: grid; gap: 12px; font-size: 16.5px; }
.prose a, .fine a { color: var(--brand); font-weight: 700; }
.prose .clerk, .prose .deadline { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--chip-bg); font-size: 15px; }
.prose .clerk .ic, .prose .deadline .ic { margin-top: 1px; color: var(--brand); }
.sub-h { font-weight: 700; }
.fine { font-size: 14px; color: var(--muted); }
.idlist { margin: 0 0 10px; padding-left: 1.2em; display: grid; gap: 6px; font-size: 16px; }
.phones { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.phones li { display: grid; gap: 2px; }
.phones a { color: var(--brand); font-weight: 800; font-size: 21px; text-decoration: none; font-variant-numeric: tabular-nums; }
.phones span { font-size: 14.5px; color: var(--muted); }
.rights { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: 16px; }
.c-ask { display: grid; gap: 12px; padding: 22px; border-radius: var(--radius); background: var(--flag-blue); color: var(--sign-ink); }
.c-ask h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.15; }
.c-ask p { font-size: 16px; color: var(--sign-soft); }
.c-ask-btns { display: grid; gap: 8px; }
@media (min-width: 480px) { .c-ask-btns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.c-ask .btn-ghost { border-color: var(--sign-soft); color: var(--sign-ink); }
.c-ask-link { justify-self: start; color: var(--sign-ink); font-weight: 700; }
.c-src { font-size: 13.5px; color: var(--muted); }
.c-foot a { color: inherit; font-weight: 700; }
.c-foot-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; }
.c-search-foot .c-foot-links { justify-content: center; }

/* email reminder line, phone bank signup */
.c-remind { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 14px; border-radius: 12px; background: var(--chip-bg); font-size: 15.5px; line-height: 1.4; }
.c-remind .ic { color: var(--brand); }
.c-remind span { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.c-remind .btn-link { min-height: 36px; padding: 0 2px; font-weight: 700; font-size: 15.5px; cursor: pointer; }
.c-pb { display: grid; gap: 12px; padding: 22px; border: 2px solid var(--brand); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 16px; }
.c-pb h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.15; color: var(--brand); }
.c-pb-sub { font-size: 16px; color: var(--muted); }
.c-pb-form, .c-email { display: grid; gap: 12px; }
.c-pb-form label, .c-email label { display: grid; gap: 4px; font-weight: 700; font-size: 15px; }
.c-pb-form .field, .c-email .field { min-height: 52px; font-size: 17px; }
.c-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.c-form-err { padding: 8px 12px; border-radius: 10px; background: var(--alert-bg); color: var(--alert-ink); font-size: 15px; }
.c-pb-done { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--ok-bg); color: var(--ok-ink); font-size: 16px; }
.c-pb-done .ic { margin-top: 2px; stroke-width: 3; }
.c-email-fine { text-align: center; }
.c-map-stamp { display: none; }
@media (min-width: 900px) {
  .c-layout { grid-template-columns: 440px minmax(0, 1fr); align-items: start; min-height: calc(100svh - 8px); }
  .c-map-wrap, .c-layout.is-expanded .c-map-wrap { order: 2; position: sticky; top: 0; height: calc(100svh - 8px); min-height: 560px; }
  .c-sheet { min-height: calc(100svh - 8px); margin-top: 0; border-radius: 0; box-shadow: 1px 0 0 var(--line); }
  .c-handle { display: none; }
  .c-sheet-in { padding-block: 24px 48px; padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: 28px; }
  .c-map-stamp { position: absolute; bottom: 30px; left: 30px; z-index: 450; display: flex; align-items: center; gap: 18px; padding: 18px 22px; border: 1px solid #D7DDCF; border-radius: 12px; background: #F9F9F1EB; box-shadow: 0 3px 16px #253C3012; }
  .c-stamp-date { display: grid; justify-items: center; padding-right: 19px; border-right: 1px solid #CDD5C4; color: #5B7257; font-family: var(--font-display); line-height: 1; }
  .c-stamp-date small { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .c-stamp-date b { margin-top: 4px; font-size: 43px; font-weight: 900; }
  .c-map-stamp .c-scenic-kicker { font-size: 10px; letter-spacing: .13em; }
  .c-map-stamp strong { color: #334C3D; font-family: var(--font-display); font-size: 23px; }
  .c-map-stamp p:last-child { color: #697260; font-size: 13px; }
  .c-map-stamp > .ic { margin-left: 12px; color: #748A69; }
}

/* map markers (Leaflet) */
.pin-you { width: 22px; height: 22px; border: 4px solid var(--m-white); border-radius: 50%; background: var(--m-you); box-shadow: 0 0 0 6px rgba(31, 111, 235, .22); }
.pin-place, .pin-old { background: none; border: 0; }
.leaflet-tooltip.map-tip { padding: 4px 9px; border: 0; border-radius: 8px; background: var(--surface); color: var(--ink); font: 700 14px/1.3 var(--font-body); box-shadow: 0 2px 10px rgba(0, 0, 0, .22); }
.leaflet-tooltip-top.map-tip::before { border-top-color: var(--surface); }
.leaflet-tooltip-bottom.map-tip::before { border-bottom-color: var(--surface); }
.leaflet-tooltip.map-tip-old { color: var(--muted); font-weight: 600; }
.leaflet-container { font-family: var(--font-body); background: var(--m-land); }
/* illustrative map, used only when the map library can't load */
.m-land { fill: var(--m-land); } .m-park { fill: var(--m-park); }
.m-streets { fill: none; stroke: var(--m-street); stroke-width: 7; stroke-linecap: round; }
.m-water { fill: none; stroke: var(--m-water); stroke-width: 22; stroke-linecap: round; }
.m-roads { fill: none; stroke: var(--m-street); stroke-width: 14; stroke-linecap: round; }
.m-route { fill: none; stroke: var(--m-route); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
.m-you { fill: var(--m-you); } .m-pin { fill: var(--m-pin); stroke: var(--m-white); stroke-width: 3; } .m-white { fill: var(--m-white); }

/* ---------- after the lookup: calendar, then Facebook (an in-page dialog, so pop-up blockers never stop it) ---------- */
.c-dlg { width: min(560px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.5; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); }
.c-dlg::backdrop { background: var(--dlg-backdrop); }
.c-dlg[open] { animation: dlgIn .45s cubic-bezier(.2, .9, .3, 1.05) both; }
@media (max-width: 599px) { .c-dlg { width: 100%; max-height: 94%; margin: auto 0 0; border-radius: 22px 22px 0 0; } }
.c-dlg-in { display: grid; gap: 16px; padding-top: 14px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.c-dlg-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.c-dlg-steps { display: flex; flex-wrap: wrap; gap: 6px; font-weight: 700; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.c-dlg-steps span { padding: 5px 10px; border-radius: 999px; background: var(--chip-bg); }
.c-dlg-steps .is-on { background: var(--brand); color: var(--brand-ink); }
.c-dlg-steps .is-done { background: var(--ok-bg); color: var(--brand); }
.c-dlg-x { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 50%; background: var(--chip-bg); color: var(--ink); cursor: pointer; }
.c-dlg-place { padding: 6px; border-radius: 14px; background: var(--brand); color: var(--brand-ink); }
.c-dlg-place > div { padding: 10px 14px 12px; border: 2px solid var(--brand-ink); border-radius: 10px; }
.c-dlg-name { margin-top: 2px !important; font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.1; }
.c-dlg-addr { margin-top: 4px !important; font-size: 15px; }
[data-dstep] { display: grid; gap: 14px; }
.c-dlg-h { margin: 2px 0 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 6vw, 32px); line-height: 1.08; }
.c-dlg-h:focus { outline: none; }
.c-dlg-sub { margin-top: -6px !important; font-size: 16px; color: var(--muted); }
.c-times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.c-time { position: relative; display: grid; }
.c-time input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.c-time span { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 72px; padding: 10px 8px; border: 2px solid var(--line); border-radius: 12px; text-align: center; transition: border-color .15s, background-color .15s; }
.c-time strong { font-size: 16px; line-height: 1.2; }
.c-time small { font-size: 13.5px; color: var(--muted); }
.c-time input:checked + span { border-color: var(--brand); background: var(--ok-bg); }
.c-time input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.c-chips { display: grid; gap: 12px; }
.c-chips legend { margin-bottom: 6px; padding: 0; font-weight: 700; font-size: 15px; }
.c-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.c-chip-row label { position: relative; display: grid; }
.c-chip-row input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.c-chip-row span { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 15px; }
.c-chip-row input:checked + span { border-color: var(--brand); background: var(--ok-bg); color: var(--brand); }
.c-chip-row input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.c-to-text { margin-top: -8px; color: var(--brand); }
.c-plan { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--ok-bg); font-size: 16px; }
.c-plan .ic { margin-top: 2px; color: var(--brand); stroke-width: 3; }
.c-cal { display: grid; gap: 8px; }
@media (min-width: 480px) { .c-cal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.c-cal-btn { background: var(--brand); color: var(--brand-ink); }
.c-skip { justify-self: center; color: var(--muted); font-weight: 700; }
.fbp { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.fbp-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.fbp-av { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--chip-bg); color: var(--muted); font-weight: 700; font-size: 13px; }
.fbp-who strong { display: block; font-size: 15px; line-height: 1.2; }
.fbp-who span { font-size: 13.5px; color: var(--muted); }
.fbp-card img { display: block; width: 100%; max-width: 100%; height: auto; }
.fbp-meta { display: grid; gap: 2px; padding: 10px 14px 12px; border-top: 1px solid var(--line); background: var(--fb-meta); }
.fbp-meta span { font-size: 12.5px; text-transform: uppercase; color: var(--muted); }
.fbp-meta strong { font-size: 16px; line-height: 1.25; }
.fbp-meta small { font-size: 14px; color: var(--muted); }
.c-dlg-cta { position: sticky; bottom: 0; z-index: 1; display: grid; gap: 6px; margin-left: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(20px, env(safe-area-inset-right, 0px))); padding-top: 12px; padding-bottom: 12px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); background: var(--surface); box-shadow: 0 -12px 16px -14px rgba(0, 0, 0, .35); }
.c-fb-btn { min-height: 58px; background: var(--cta); color: var(--cta-ink); font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.c-fb-btn:hover { filter: brightness(.95); }
.c-fb-tip { font-size: 14.5px; color: var(--muted); text-align: center; }
.c-names { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.c-names .field { min-height: 50px; padding: 0 12px; font-size: 16px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--chip-bg); }
.seg label { position: relative; display: grid; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 8px; border-radius: 9px; font-weight: 700; font-size: 14.5px; line-height: 1.2; text-align: center; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }
.c-msg { justify-self: end; max-width: 94%; padding: 12px 15px; border-radius: 16px 16px 4px 16px; background: var(--brand); color: var(--brand-ink); font-size: 15.5px; line-height: 1.45; }
.c-texts { display: grid; gap: 8px; }
@media (min-width: 480px) { .c-texts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.c-text-btn { padding: 0 12px; white-space: nowrap; background: var(--cta); color: var(--cta-ink); font-family: var(--font-display); font-weight: 800; }

.toast { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 2000; width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--toast-bg); color: var(--toast-fg); font: 600 15px/1.4 var(--font-body); transform: translateX(-50%); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }

/* motion */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
@keyframes dlgIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
