@font-face { font-family: Manrope; src: url('/brand/manrope-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Newsreader; src: url('/brand/newsreader-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
:root { color-scheme: light; --ink: #07152d; --muted: #555c65; --line: #e2ded9; --accent: #b83c27; --accent-dark: #a93621; --paper: #fff; color: var(--ink); background: #fbfaf9; font: 16px/1.5 Manrope, "Avenir Next", Arial, sans-serif; }
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: #aeb5bb transparent; }
[hidden] { display: none !important; }
body { margin: 0; overflow: hidden; }
body:has(#play[hidden]) { overflow: auto; }
::selection { color: var(--paper); background: var(--accent-dark); }
button, input, select, textarea { font: inherit; color: inherit; border: 1px solid #cbd0d5; border-radius: 8px; }
button { min-height: 48px; padding: 11px 15px; background: var(--paper); font-size: 14px; font-weight: 700; cursor: pointer; touch-action: manipulation; transition: background-color 130ms, border-color 130ms; }
button:hover { background: #f5f3f1; border-color: #a9a29d; }
button:active { background: #eee9e5; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 12px; color: var(--ink); background: var(--paper); font-size: 16px; caret-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #66646a; }
textarea { resize: vertical; line-height: 1.5; }
label { display: block; margin: 17px 0 6px; font-size: 14px; font-weight: 650; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 17px; font-weight: 750; }
h3 { font: 500 26px/1.2 Newsreader, Georgia, serif; }
.unit, .hint { color: var(--muted); }
.unit { font-weight: 400; }
.hint { margin-top: 8px; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.topbar { height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0; display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--paper); }
.brand { display: inline-flex; gap: 7px; align-items: center; color: var(--ink); font-size: 19px; font-weight: 800; text-decoration: none; }
.brand img { flex: none; width: 24px; height: 24px; }
.brand span { margin-left: 5px; padding-left: 12px; border-left: 1px solid var(--line); color: var(--accent-dark); font-size: 12px; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.environment { color: var(--muted); font-size: 13px; }
.text-button { border: 0; color: var(--accent-dark); background: transparent; padding: 8px 0 8px 12px; }
#profile-open { color: var(--ink); font-size: 13px; }
.primary { background: var(--accent-dark); color: var(--paper); border-color: var(--accent-dark); }
.primary:hover, .primary:active { color: var(--paper); background: #8e2e1d; border-color: #8e2e1d; }
.notice { position: fixed; z-index: 5; top: calc(64px + env(safe-area-inset-top)); left: 16px; right: 16px; max-width: 500px; margin: 0 auto; padding: 12px 16px; background: var(--paper); box-shadow: 0 3px 12px #0000001f; font-size: 14px; }
.notice:empty { display: none; }
body:has(#play:not([hidden])) #status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.error { color: #9c2d20; background: #fff0e9; }
.workspace { position: relative; height: calc(var(--viewport-height, 100dvh) - 56px - env(safe-area-inset-top)); overflow: hidden; }
.map-section { position: absolute; inset: 0; }
#city-map { width: 100%; height: 100%; background: #f2f1ed; z-index: 0; }
#city-map:focus-visible { outline-offset: -4px; }
.map-actions { position: absolute; top: 12px; left: 12px; z-index: 1; display: flex; gap: 8px; }
.map-actions button { min-height: 44px; padding: 8px 12px; border: 0; box-shadow: 0 3px 12px #0000001f; font-size: 13px; }
.map-location-picker p { margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.location-actions { display: flex; align-items: center; gap: 12px; }
.location-actions .main-action { flex: 1; }
.map-location-crosshair { position: absolute; z-index: 1; top: 50%; left: 50%; width: 24px; height: 24px; margin: -12px; border: 2px solid var(--ink); border-radius: 50%; background: #ffffff80; pointer-events: none; }
.map-location-crosshair::before, .map-location-crosshair::after { content: ""; position: absolute; background: var(--ink); }
.map-location-crosshair::before { width: 42px; height: 2px; top: 9px; left: -11px; }
.map-location-crosshair::after { width: 2px; height: 42px; left: 9px; top: -11px; }
#map-note:not(.sr-only) { position: absolute; z-index: 1; top: 68px; left: 12px; right: 68px; padding: 12px; border-radius: 8px; color: #9c2d20; background: var(--paper); font-size: 14px; }
.visitor-pin, .option-pin, .taxi-pin { display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 3px 12px #00000040; color: #fff; font: 750 14px/1 Manrope, sans-serif; }
.visitor-pin { background: var(--accent); }
.option-pin { background: var(--ink); }
.taxi-pin { background: #856025; }
.option-pin.is-highlighted { border-color: #e5a38f; border-width: 4px; }
.leaflet-container { font-family: Manrope, sans-serif; }
.leaflet-container a { color: var(--accent-dark); }
.leaflet-container .leaflet-control-attribution { padding: 8px; font-size: 12px; background: #fffffff0; }
.leaflet-bottom.leaflet-right { bottom: var(--map-panel-overlap, 0px); }
.leaflet-container .leaflet-control-zoom { overflow: hidden; border: 0; border-radius: 8px; box-shadow: 0 3px 12px #0000001f; }
.leaflet-container .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 43px; color: var(--ink); }
.decision-panel { position: absolute; z-index: 2; bottom: var(--action-height, 84px); display: flex; flex-direction: column; width: 100%; max-height: calc(68% - var(--action-height, 84px)); min-width: 0; min-height: 0; border-radius: 18px 18px 0 0; background: var(--paper); box-shadow: 0 -8px 28px #00000018; }
.decision-panel[data-has-results], .decision-panel:has(.taxi-results:not([hidden])) { height: calc(65% - var(--action-height, 84px)); }
.decision-panel[data-editing-context] { height: calc(86% - var(--action-height, 84px)); max-height: calc(86% - var(--action-height, 84px)); }
.decision-panel[data-collapsed] { height: auto; }
.panel-toolbar { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 20px; }
.panel-toolbar h1 { font: 500 24px/1.2 Newsreader, Georgia, serif; }
.panel-toolbar button { min-height: 44px; padding: 8px 0 8px 12px; border: 0; color: var(--muted); background: transparent; font-size: 13px; }
.panel-body { overflow: auto; overscroll-behavior: contain; padding: 0 20px 16px; }
.action-dock { position: absolute; z-index: 3; bottom: 0; left: 0; width: 100%; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--paper); }
.action-dock::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 1px; background: var(--line); }
.action-context { margin-bottom: 10px; color: var(--ink); font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.main-action { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; width: 100%; padding: 15px 18px; color: var(--paper); font-size: 16px; font-weight: 700; line-height: 1.4; text-align: left; text-decoration: none; border: 0; border-radius: 10px; touch-action: manipulation; transition: transform 130ms cubic-bezier(0.16, 1, 0.3, 1), background-color 130ms; }
.main-action:active:not(:disabled):not([aria-disabled="true"]) { transform: scale(.985); }
.main-action svg { flex: none; }
.main-action[aria-disabled="true"] { opacity: .5; cursor: default; }
.action-loader { display: none; flex: none; width: 20px; height: 20px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.action-dock[data-busy] .action-arrow { display: none; }
.action-dock[data-busy] .action-loader { display: block; animation: action-loading 900ms linear infinite; }
@keyframes action-loading { to { transform: rotate(360deg); } }
.section-heading, .dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading p { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.section-heading .text-button { font-size: 13px; }
.context-note { margin: 2px 0 12px; font-size: 14px; color: var(--muted); }
.decision-panel[data-has-location]:not([data-editing-context]) .context-note, .decision-panel[data-has-location]:not([data-editing-context]) .location-row { display: none; }
.location-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.location-row button { font-size: 13px; }
.scene-controls { margin: 8px 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.duration { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.duration input { width: 100px; font-weight: 700; }
.return-settings { margin-top: 16px; }
.return-settings .check { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.return-settings .check input { width: 22px; min-height: 22px; flex: none; }
.return-settings > button, .return-settings > details { margin-top: 12px; }
.return-summary { margin: 0 0 8px; overflow-wrap: anywhere; }
.request-section { margin-top: 6px; }
.request-section > summary { color: var(--accent-dark); }
.request-section:not([data-has-results]):not([data-has-visit]) > summary { display: none; }
.request-box label { display: flex; justify-content: space-between; gap: 12px; }
#request { min-height: 72px; height: 72px; resize: none; }
#choices { margin-top: 14px; }
.choice { padding: 16px 0; border-top: 1px solid var(--line); transition: background-color 160ms; }
.choice h3 { font: 500 23px/1.25 Newsreader, Georgia, serif; overflow-wrap: anywhere; }
.place-preview { display: block; width: 100%; text-align: left; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; font: inherit; font-weight: inherit; }
.meta { margin-top: 4px; color: var(--muted); font-size: 13px; }
.choice.is-highlighted { margin: 0 -12px; padding: 16px 12px; background: #f7f5f3; }
.choice > details, .choice > .actions { margin-top: 12px; }
.choice[data-place-id]:not(.is-highlighted) > details, .choice[data-place-id]:not(.is-highlighted) > .actions, .choice[data-place-id]:not(.is-highlighted) > .hint { display: none; }
.choice details p { margin: 10px 0; color: var(--muted); font-size: 14px; }
summary { min-height: 44px; padding: 10px 0; font-size: 14px; font-weight: 650; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.actions a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.active-visit { margin: 8px 0 18px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.active-visit h3 { margin-bottom: 10px; }
.active-visit .actions { margin-top: 16px; }
.taxi-results { margin-top: 24px; }
.taxi-rank { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.taxi-rank a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; }
.history, .preferences-section, .coverage { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.history ul { list-style: none; padding: 0; margin: 0; }
.history li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.history time { display: block; color: var(--muted); font-size: 13px; }
.history .actions { margin-top: 8px; }
.coverage p { margin: 8px 0; font-size: 14px; color: var(--muted); }
.pairing { max-width: 440px; margin: 40px auto; padding: 0 24px calc(24px + env(safe-area-inset-bottom)); }
.pairing h1 { font: 500 44px/1.1 Newsreader, Georgia, serif; margin: 18px 0 24px; }
.pairing > p { color: var(--muted); }
.pairing .primary { width: 100%; margin-top: 22px; }
dialog { width: min(500px, calc(100% - 28px)); max-height: calc(var(--viewport-height, 100dvh) - 40px); border: 1px solid var(--line); border-radius: 12px; padding: 24px; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #00000055; }
dialog[open] { animation: journey-open 260ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes journey-open { from { opacity: .4; transform: translateY(16px); } }
.preference-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 1fr); align-items: center; gap: 14px; margin-top: 14px; }
.preference-row label { margin: 0; }
#preferences-form .primary { width: 100%; margin-top: 18px; }
#logout { margin-top: 18px; }
@media (min-width: 901px) {
  .topbar { padding-left: 24px; padding-right: 24px; }
  .workspace { display: grid; grid-template-columns: 380px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .map-section { position: relative; grid-column: 2; grid-row: 1; min-width: 0; }
  .decision-panel { position: relative; bottom: auto; grid-column: 1; grid-row: 1; height: calc(100% - var(--action-height, 84px)); max-height: calc(100% - var(--action-height, 84px)); border-radius: 0; border-right: 1px solid var(--line); box-shadow: none; }
  .decision-panel[data-has-results], .decision-panel[data-editing-context], .decision-panel[data-collapsed] { height: calc(100% - var(--action-height, 84px)); max-height: calc(100% - var(--action-height, 84px)); }
  .panel-toolbar { padding: 16px 24px 8px; }
  #panel-toggle { display: none; }
  .panel-body { padding: 0 24px 24px; }
  .panel-body[hidden] { display: block !important; }
  .action-dock { width: 380px; padding-left: 24px; padding-right: 24px; border-right: 1px solid var(--line); }
  .action-dock::before { left: 24px; right: 24px; }
  #request { min-height: 88px; height: 88px; }
}
@media (max-width: 360px) {
  .brand span { display: none; }
  .topbar-actions { gap: 8px; }
  .panel-toolbar { padding-left: 16px; padding-right: 16px; }
  .panel-toolbar h1 { font-size: 22px; }
  .panel-body { padding-left: 16px; padding-right: 16px; }
  .action-dock { padding-left: 16px; padding-right: 16px; }
  .action-dock::before { left: 16px; right: 16px; }
  .preference-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .main-action:active:not(:disabled):not([aria-disabled="true"]) { transform: none; }
  .action-dock[data-busy] .action-loader { animation: none; }
  dialog[open] { animation: journey-open-reduced 100ms; }
  @keyframes journey-open-reduced { from { opacity: .7; } }
}

body:has(#guest-entry:not([hidden])) .notice {
  position: static;
  margin: 16px auto;
  max-width: 440px;
  width: calc(100% - 48px);
}
.guest-privacy { margin-top: 16px; }
.guest-privacy summary { cursor: pointer; font-size: 14px; }
.guest-privacy p { margin-top: 12px; }
