@font-face {
    font-family: "Space Grotesk";
    src: url("assets/fonts/V8mDoQDjQSkFtoMM3T6r8E7mPbF4Cw.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "IBM Plex Mono";
    src: url("assets/fonts/-F63fjptAgt5VM-kVkqdyU8n1i8q1w.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "IBM Plex Mono";
    src: url("assets/fonts/-F6qfjptAgt5VM-kVkqdyU8n3twJwlBFgg.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@layer od-layout {
    [hidden]:not([hidden="until-found" i]) { display: none !important; }
    dialog:not([open]) { display: none !important; }
    :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }
    .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
    .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
    .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
    .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
    .od-fill    { flex: 1 1 0; min-width: 0; }
    .od-fixed   { flex: none; }
    .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }
    .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
    :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
    .od-tile { display: grid; grid-template-rows: auto 1fr; }
    :where(.od-tile) > :where(*) { display: block; }
    .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
    .od-media-cover { object-fit: cover; }
    .od-icon { display: inline-block; inline-size: var(--od-icon-size, 1em); block-size: var(--od-icon-size, 1em); flex: none; }
    .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
    .od-clamp-2 { -webkit-line-clamp: 2; }
    .od-clamp-3 { -webkit-line-clamp: 3; }
    .od-nowrap  { white-space: nowrap; }
    .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
    .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
    .od-rail { display: flex; gap: var(--od-gap, 16px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
                padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
    .od-rail::-webkit-scrollbar { display: none; }
    :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
    :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }
    .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
    .od-touch  { min-width: 44px; min-height: 44px; }
}
:root [hidden]:where(:not([hidden="until-found" i])) { display: none; }

:root {
    color-scheme: dark;
    --header-h: 68px;
    --panel-w: clamp(340px, 27vw, 396px);
    --font-sans: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --bg: #0c0e0f;
    --surface: #111415;
    --surface-2: #171b1c;
    --surface-3: #1d2224;
    --text: #f1f2ee;
    --muted: #a0a7a8;
    --faint: #7f8889;
    --line: #272d2f;
    --line-strong: #3b4447;
    --accent: #6f9cff;
    --accent-ink: #07101f;
    --accent-soft: #151f31;
    --map-bg: #0c0f10;
    --map-credit-bg: rgba(17, 20, 21, 0.9);
    --map-filter: saturate(0.72) contrast(1.02);
    --shadow-card: 0 28px 72px rgba(0, 0, 0, 0.46), 0 2px 10px rgba(0, 0, 0, 0.2);
    --shadow-sheet: 0 -24px 60px rgba(0, 0, 0, 0.42);
    --scrim: rgba(3, 5, 6, 0.62);
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f1f1ec;
    --surface: #fcfcf9;
    --surface-2: #f5f5f0;
    --surface-3: #eaeae4;
    --text: #101314;
    --muted: #596061;
    --faint: #6d7574;
    --line: #deded7;
    --line-strong: #c5c7bf;
    --accent: #135fce;
    --accent-ink: #ffffff;
    --accent-soft: #edf2fb;
    --map-bg: #e7e7e1;
    --map-credit-bg: rgba(252, 252, 249, 0.92);
    --map-filter: saturate(0.62) contrast(1.01);
    --shadow-card: 0 28px 72px rgba(24, 30, 28, 0.14), 0 2px 10px rgba(24, 30, 28, 0.07);
    --shadow-sheet: 0 -24px 60px rgba(24, 30, 28, 0.14);
    --scrim: rgba(26, 30, 28, 0.36);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { background: var(--bg); }
body {
    margin: 0;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.visually-hidden {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.skip-link {
    position: fixed; left: 12px; top: -60px; z-index: 3000;
    padding: 10px 14px; border-radius: 8px;
    background: var(--text); color: var(--bg);
    font-size: 13px; font-weight: 600; text-decoration: none;
    transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 10px; }

.app-shell {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-header {
    position: relative;
    z-index: 1700;
    flex: none;
    height: calc(var(--header-h) + env(safe-area-inset-top));
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: env(safe-area-inset-top) max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-bottom: 1px solid var(--line);
}
.brand {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    padding: 2px 6px 2px 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}
.brand-word { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-city {
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 6px;
}
.brand-title {
    font-size: 21px;
    line-height: 1;
    letter-spacing: -0.035em;
    font-weight: 600;
    white-space: nowrap;
}

.filter-wrap { justify-self: center; min-width: 0; }
.filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.filter-trigger .od-icon { --od-icon-size: 14px; color: var(--muted); }
.filter-trigger .chevron { --od-icon-size: 12px; color: var(--faint); transition: transform 0.2s var(--ease); }
.filter-trigger[aria-expanded="true"] { border-color: var(--line-strong); background: var(--surface-3); }
.filter-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
@media (hover: hover) {
    .filter-trigger:hover { border-color: var(--line-strong); background: var(--surface-3); }
    .brand:hover .brand-title { color: var(--accent); }
    .icon-btn:hover { background: var(--surface-2); color: var(--text); }
}

.header-actions { justify-self: end; display: flex; align-items: center; gap: 2px; }
.icon-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.icon-btn .od-icon { --od-icon-size: 18px; }
:root[data-theme="dark"] .theme-icon--moon { display: none; }
:root[data-theme="light"] .theme-icon--sun { display: none; }

.stage {
    position: relative;
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: var(--panel-w) minmax(0, 1fr);
    background: var(--bg);
}

.venue-panel {
    position: relative;
    z-index: 900;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-right: 1px solid var(--line);
}
.sheet-handle {
    display: none;
    width: 100%;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
}
.sheet-handle span {
    display: block;
    width: 36px;
    height: 4px;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--line-strong);
    transition: background-color 0.18s var(--ease);
}
.panel-list-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}
.panel-list-wrap::-webkit-scrollbar { width: 6px; }
.panel-list-wrap::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.venue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.venue-row {
    width: 100%;
    display: block;
    padding: 15px 16px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.venue-row.is-selected {
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
}
.row-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.row-name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: -0.025em;
    font-weight: 600;
}
.row-price {
    flex: none;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.venue-row.is-selected .row-price { color: var(--text); }
.row-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.row-meta .sep { color: var(--line-strong); }
@media (hover: hover) {
    .venue-row:hover { background: var(--surface-2); border-color: var(--line-strong); }
    .venue-row.is-selected:hover { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 58%, var(--line)); }
}
.empty-state { padding: 32px 12px; }
.empty-state h2 { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.02em; }
.empty-state p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.empty-reset {
    height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px;
    background: transparent; color: var(--text); font-size: 12px; cursor: pointer;
}
.empty-reset:hover { background: var(--surface-2); }

.map-shell {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--map-bg);
}
.map {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--map-bg);
}
.leaflet-container {
    background: var(--map-bg);
    color: var(--text);
    font-family: var(--font-sans);
    outline: none;
}
.leaflet-container:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.leaflet-tile-pane { filter: var(--map-filter); }
.map-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 700;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.map-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), opacity 0.16s var(--ease);
}
.map-btn .od-icon { --od-icon-size: 16px; }
.map-btn:disabled { opacity: 0.32; cursor: default; }
@media (hover: hover) {
    .map-btn:not(:disabled):hover { background: var(--surface-2); border-color: var(--line-strong); }
}
.map-credit {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--map-credit-bg);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 8.5px;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.map-credit a { color: inherit; text-decoration: none; }
.map-credit a:hover { color: var(--text); text-decoration: underline; }

.venue-marker { display: flex; align-items: center; justify-content: center; background: transparent; border: 0; cursor: pointer; }
.venue-pin {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.venue-pin::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text);
    transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.venue-marker.is-selected { z-index: 1000 !important; }
.venue-marker.is-selected .venue-pin {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent), 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: scale(1.35);
}
.venue-marker.is-selected .venue-pin::after { background: var(--accent-ink); transform: scale(1.2); }
.venue-marker.is-muted .venue-pin { opacity: 0.26; }
.venue-marker.is-match:not(.is-selected) .venue-pin { border-color: var(--accent); }
.venue-marker.is-match:not(.is-selected) .venue-pin::after { background: var(--accent); }
.venue-marker:focus-visible .venue-pin { outline: 2px solid var(--text); outline-offset: 4px; }
@media (hover: hover) {
    .venue-marker:hover .venue-pin { transform: translateY(-2px) scale(1.12); border-color: var(--accent); }
    .venue-marker.is-selected:hover .venue-pin { transform: scale(1.35); }
    .venue-marker.is-muted:hover .venue-pin { opacity: 0.72; }
}
.leaflet-tooltip.map-tooltip {
    padding: 6px 9px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    font-family: var(--font-sans);
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
}
.leaflet-tooltip.map-tooltip::before { border-top-color: var(--line-strong); }
.leaflet-tooltip-top.map-tooltip::before { border-top-color: var(--line-strong); }

.place-card {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 800;
    width: 400px;
    max-height: calc(100% - 36px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    animation: place-in 0.24s var(--ease) both;
}
.place-card.is-closing { animation: place-out 0.16s var(--ease) both; }
.place-content { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.place-head {
    position: relative;
    flex: none;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--line);
}
.place-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.place-close .od-icon { --od-icon-size: 15px; }
.place-close:hover { background: var(--surface-2); color: var(--text); }
.place-head h2 {
    margin: 4px 0 6px;
    padding-right: 48px;
    font-size: 28px;
    line-height: 1.04;
    letter-spacing: -0.045em;
    font-weight: 600;
    outline: none;
}
.place-address {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}
.place-facts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 11.5px;
    line-height: 1.35;
}
.fact-status { display: block; min-width: 0; color: var(--text); }
.fact-price {
    flex: none;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.place-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}
.place-scroll::-webkit-scrollbar { width: 6px; }
.place-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.place-section { padding: 15px 20px 4px; }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 5px;
}
.section-head h3, .fold-title {
    margin: 0;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 1.2;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 500;
}
.cab-list { list-style: none; margin: 0; padding: 0; }
.cab {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 13px 0;
    border-top: 1px solid var(--line);
}
.cab:first-child { border-top-color: transparent; }
.cab-info { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cab-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.cab-name {
    min-width: 0;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: -0.015em;
    font-weight: 500;
    overflow-wrap: anywhere;
}
.cab-note {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 2px 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.cab-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.3;
}
.cab-count { color: var(--muted); white-space: nowrap; }
.cab-count .mono { color: var(--text); font-size: 10.5px; }
.cab-flag { color: var(--text); white-space: nowrap; }
.cab-flag::before { content: "·"; margin-right: 6px; color: var(--line-strong); }
.cab-facts > :first-child::before { content: none; margin-right: 0; }
.cab-price {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 10.5px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.rating-summary {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    margin: 1px 0 -3px -6px;
    padding: 3px 6px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    font-size: 11px;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.rating-label { color: var(--muted); white-space: nowrap; }
.rating-stars { display: inline-flex; align-items: center; gap: 1px; color: var(--line-strong); }
.rating-star { --od-icon-size: 11px; }
.rating-star.is-filled { color: var(--text); }
.rating-value {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.rating-value.is-empty { color: var(--faint); font-family: var(--font-sans); font-size: 10.5px; }
@media (hover: hover) {
    .rating-summary:hover { background: var(--surface-2); }
}
.access-note {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}
.fold { border-top: 1px solid var(--line); }
.fold:first-of-type { margin-top: 10px; }
.fold summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::marker { content: ""; }
.fold-title { color: var(--text); font-family: var(--font-sans); font-size: 12px; line-height: 1.3; letter-spacing: -0.01em; text-transform: none; }
.fold-meta {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.01em;
    text-align: right;
}
.fold summary .od-icon { --od-icon-size: 13px; color: var(--faint); transition: transform 0.2s var(--ease); }
.fold[open] summary .od-icon { transform: rotate(180deg); }
.fold-body { padding: 0 20px 14px; }
.transit-list { list-style: none; margin: 0; padding: 0; }
.transit-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 7px 0;
}
.transit-row + .transit-row { border-top: 1px solid var(--line); }
.transit-row .od-icon { --od-icon-size: 15px; color: var(--muted); margin-top: 1px; }
.transit-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.transit-main { font-size: 12px; line-height: 1.35; letter-spacing: -0.005em; }
.transit-detail { font-size: 10px; line-height: 1.35; color: var(--muted); }
.fold-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.3;
    text-decoration: none;
}
.fold-link .od-icon { --od-icon-size: 11px; }
.fold-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.hours-grid { display: flex; flex-direction: column; }
.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.4;
}
.hours-row.is-today { color: var(--text); }
.hours-row .mono { color: inherit; font-size: 9.5px; }
.place-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 13px 20px 16px;
    border-top: 1px solid var(--line);
}
.place-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}
.place-link .od-icon { --od-icon-size: 11px; }
.place-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.filter-dialog {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top) + 8px);
    right: auto;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, calc(100vw - 24px));
    max-height: calc(100svh - var(--header-h) - env(safe-area-inset-top) - 24px);
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.filter-dialog::backdrop { background: var(--scrim); }
.filter-panel { display: flex; flex-direction: column; max-height: inherit; animation: pop-in 0.2s var(--ease) both; }
.filter-head {
    flex: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--line);
}
.filter-head h2 { margin: 0; font-size: 20px; line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; }
.filter-close {
    width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.filter-close .od-icon { --od-icon-size: 14px; }
.filter-close:hover { background: var(--surface-2); color: var(--text); }
.filter-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; scrollbar-width: thin; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.game-option {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}
.game-option span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.game-option:hover { background: var(--surface-2); color: var(--text); }
.game-option[aria-pressed="true"] { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }
.filter-foot {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 11px 16px;
    border-top: 1px solid var(--line);
    padding-bottom: calc(11px + env(safe-area-inset-bottom));
}
.clear-filter {
    height: 29px; padding: 0 8px; border: 0; border-radius: 5px; background: transparent;
    color: var(--muted); font-size: 9.5px; line-height: 1; text-decoration: underline;
    text-underline-offset: 3px; cursor: pointer; white-space: nowrap;
}
.clear-filter:hover { color: var(--text); }

.about-dialog {
    width: min(448px, calc(100vw - 32px));
    max-height: min(680px, calc(100svh - 48px));
    margin: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.about-dialog::backdrop { background: var(--scrim); }
.about-inner { padding: 22px; max-height: inherit; overflow-y: auto; }
.about-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.about-head h2 { margin: 0; font-size: 23px; line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; }
.about-close {
    width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.about-close .od-icon { --od-icon-size: 15px; }
.about-close:hover { background: var(--surface-2); color: var(--text); }
.about-body { margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.about-body p { margin: 0 0 12px; }
.about-body strong { color: var(--text); font-weight: 500; }
.about-body a { color: var(--text); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.about-body a:hover { text-decoration-color: currentColor; }
.about-rule { height: 1px; margin: 16px 0; background: var(--line); }
.about-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; line-height: 1.5; }
.about-actions { margin-top: 18px; display: flex; justify-content: flex-end; }
.primary-btn {
    height: 38px; padding: 0 16px; border: 1px solid var(--accent); border-radius: 999px;
    background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 600; cursor: pointer;
}
.primary-btn:hover { filter: brightness(1.06); }
.primary-btn:disabled { opacity: 0.42; cursor: not-allowed; filter: none; }
.secondary-btn {
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-size: 11.5px;
    cursor: pointer;
    transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}
@media (hover: hover) {
    .secondary-btn:hover { background: var(--surface-2); border-color: var(--text); }
}

.rating-dialog {
    width: min(420px, calc(100vw - 24px));
    max-height: min(720px, calc(100svh - 32px));
    margin: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.rating-dialog::backdrop { background: var(--scrim); }
.rating-panel {
    padding: 20px;
    max-height: inherit;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}
.rating-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rating-head h2 { margin: 0; font-size: 22px; line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; }
.rating-kicker {
    margin: 0 0 5px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.rating-close {
    width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.rating-close .od-icon { --od-icon-size: 15px; }
@media (hover: hover) {
    .rating-close:hover { background: var(--surface-2); color: var(--text); }
}
.rating-context { margin-top: 15px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rating-game { margin: 0; font-size: 23px; line-height: 1.1; letter-spacing: -0.035em; font-weight: 600; overflow-wrap: anywhere; }
.rating-venue { margin: 4px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.rating-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 15px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}
.rating-current-label { display: block; color: var(--muted); font-size: 10px; line-height: 1.3; }
.rating-current-value {
    display: block;
    margin-top: 3px;
    font-family: var(--font-mono);
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.rating-current-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rating-current-meta .rating-star { --od-icon-size: 13px; }
.rating-current-count { color: var(--muted); font-size: 10px; white-space: nowrap; }
.rating-choice { min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
.rating-choice legend { margin-bottom: 7px; padding: 0; color: var(--muted); font-size: 10px; line-height: 1.3; font-weight: 500; }
.rating-star-input { display: flex; align-items: center; gap: 4px; }
.rating-star-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--line-strong);
    cursor: pointer;
    transition: background-color 0.16s var(--ease), color 0.16s var(--ease), transform 0.16s var(--ease);
}
.rating-star-btn .rating-star { --od-icon-size: 25px; color: var(--muted); }
.rating-star-btn .rating-star.is-filled { color: var(--text); }
.rating-star-btn.is-selected { color: var(--text); }
.rating-star-btn:active { transform: scale(0.94); }
@media (hover: hover) {
    .rating-star-btn:hover { background: var(--surface-2); color: var(--text); }
}
.rating-note {
    margin-top: 15px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-2);
}
.rating-note p { margin: 0; font-size: 12px; line-height: 1.45; }
.rating-note p + p { margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.rating-attest {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
    cursor: pointer;
}
.rating-attest input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.rating-error { margin: 10px 0 0; color: #f0b35a; font-size: 11px; line-height: 1.4; }
:root[data-theme="light"] .rating-error { color: #8a5200; }
.rating-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.rating-fine { margin: 12px 0 0; color: var(--faint); font-size: 9.5px; line-height: 1.45; }

.noscript {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
    z-index: 2500; padding: 12px 16px; border: 1px solid var(--line-strong);
    border-radius: 8px; background: var(--surface); color: var(--text); font-size: 13px;
    box-shadow: var(--shadow-card);
}

@keyframes place-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes place-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(8px); }
}
@keyframes pop-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes sheet-in {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1180px) and (min-width: 901px) {
    .place-card { width: 360px; right: 14px; bottom: 14px; }
}

@media (max-width: 900px) {
    :root { --header-h: 64px; }
    .app-header { padding: env(safe-area-inset-top) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)); gap: 8px; }
    .brand { min-height: 44px; }
    .brand-city { font-size: 10px; margin-bottom: 5px; }
    .brand-title { font-size: 18px; }
    .filter-trigger { height: 44px; padding: 0 12px; gap: 6px; font-size: 12px; }
    #filter-label { max-width: 78px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .header-actions { gap: 0; }
    .icon-btn { width: 44px; height: 44px; }
    .stage { display: block; }
    .map-shell { position: absolute; inset: 0; }
    .map-controls { top: 12px; right: 12px; }
    .map-btn { width: 44px; height: 44px; }
    .map-credit { top: 12px; bottom: auto; left: 12px; font-size: 8px; }
    .venue-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 82svh;
    z-index: 1200;
    overflow: hidden;
    border-right: 0;
    border-top: 1px solid var(--line);
    border-radius: 22px 22px 0 0;
    box-shadow: var(--shadow-sheet);
    transform: translateY(38svh);
    transition: transform 0.32s var(--ease);
    padding-bottom: env(safe-area-inset-bottom);
    }
    .venue-panel.is-expanded { transform: translateY(0); }
    body.place-open .venue-panel { transform: translateY(102%); }
    .sheet-handle { display: flex; align-items: center; justify-content: center; flex: none; height: 44px; }
    .panel-list-wrap { padding: 4px 12px 20px; }
    .venue-panel:not(.is-expanded) .panel-list-wrap {
    flex: 0 1 auto;
    max-height: calc(44svh - 56px);
    }
    .venue-panel.is-expanded .panel-list-wrap { flex: 1 1 auto; max-height: none; }
    .venue-list { gap: 9px; }
    .venue-row { padding: 14px 15px 13px; }
    .row-name { font-size: 15.5px; }
    .empty-reset { height: 44px; }
    .place-card {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 68svh;
    max-height: none;
    z-index: 1300;
    border-right: 0;
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: var(--shadow-sheet);
    animation: sheet-in 0.28s var(--ease) both;
    }
    .place-card::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: var(--line-strong);
    transform: translateX(-50%);
    z-index: 2;
    }
    .place-head { padding: 22px 18px 15px; }
    .place-close { top: 12px; right: 9px; width: 44px; height: 44px; }
    .place-head h2 { font-size: 24px; }
    .place-section, .fold summary, .fold-body, .place-links { padding-left: 18px; padding-right: 18px; }
    .place-link { min-height: 44px; }
    .rating-summary { min-height: 44px; }
    .rating-dialog {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 88svh;
    margin: 0;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
    }
    .rating-panel {
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
    max-height: 88svh;
    animation: sheet-in 0.26s var(--ease) both;
    }
    .rating-close { width: 44px; height: 44px; }
    .rating-star-btn { width: 44px; height: 44px; }
    .secondary-btn, .rating-dialog .primary-btn { min-height: 44px; }
    .filter-dialog {
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-height: 86svh;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
    }
    .filter-panel { animation: sheet-in 0.26s var(--ease) both; }
    .filter-close { width: 44px; height: 44px; }
    .game-option { min-height: 44px; }
    .clear-filter { height: 44px; }
    .about-close { width: 44px; height: 44px; }
    .about-dialog .primary-btn { min-height: 44px; }
    .filter-scroll { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
    .filter-foot { padding-bottom: calc(11px + env(safe-area-inset-bottom)); }
}

@media (max-width: 520px) {
    .brand-title { font-size: 17px; }
    .brand { gap: 0; }
    .filter-trigger { font-size: 11.5px; padding: 0 8px; }
    #filter-label { max-width: 62px; }
    .filter-trigger > .od-icon:first-child { display: none; }
    .game-grid { grid-template-columns: minmax(0, 1fr); }
    .filter-dialog { max-height: 88svh; }
    .filter-foot { align-items: flex-end; }
    .place-card { height: 70svh; }
    .place-facts { align-items: flex-start; flex-direction: column; gap: 5px; }
    .map-credit { max-width: calc(100% - 80px); overflow: hidden; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    }
}