:root {
  color-scheme: light dark;
  --surface-canvas: #F7F6F0;
  --surface-content: #FFFDFC;
  --surface-subtle: #EEECE4;
  --surface-control: #FFFEFA;
  --surface-overlay: rgba(255, 255, 252, .96);
  --surface-selected: #E8F1EB;
  --label-primary: #14231F;
  --label-secondary: #52615C;
  --label-selected: #0F4A3C;
  --label-on-interactive: #FFFFFF;
  --surface-brand: #0F4A3C;
  --icon-filter: none;
  --separator: #C9D0CB;
  --interactive-primary: #0F4A3C;
  --interactive-hover: #0B392F;
  --accent-editorial: #B24C2C;
  --accent-selection-contour: #C96340;
  --label-warning: #6B3D2D;
  --surface-warning: #F7EEE9;
  --separator-warning: #C97755;
  --label-evidence: #23586B;
  --surface-evidence: #E7F0F3;
  --focus-ring: #006D8F;
  --type-body: clamp(16px, 1rem, 18px);
  --type-control: clamp(15px, .9375rem, 17px);
  --type-supporting: clamp(13px, .8125rem, 15px);
  --type-micro: clamp(12px, .75rem, 14px);
  --paper: var(--surface-canvas);
  --paper-warm: var(--surface-subtle);
  --surface: var(--surface-control);
  --ink: var(--label-primary);
  --muted: var(--label-secondary);
  --hairline: var(--separator);
  --ink-green: var(--interactive-hover);
  --ink-green-dark: var(--interactive-primary);
  --accent: var(--accent-editorial);
  --yamanote: #80c241;
  --evidence: #2d718d;
  --estimate: #7563a2;
  --shadow-sm: 0 6px 20px rgba(26, 40, 35, .09);
  --shadow-lg: 0 24px 70px rgba(26, 40, 35, .17);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface-canvas: #0E1513;
    --surface-content: #0E1513;
    --surface-subtle: #15201D;
    --surface-control: #1C2925;
    --surface-overlay: rgba(28, 41, 37, .97);
    --surface-selected: #253B34;
    --label-primary: #F2F4EF;
    --label-secondary: #AEB8B3;
    --label-selected: #E5F1EC;
    --label-on-interactive: #0E1513;
    --surface-brand: #82B5A3;
    --icon-filter: brightness(0) invert(1);
    --separator: #34413D;
    --interactive-primary: #82B5A3;
    --interactive-hover: #A0C7B9;
    --accent-editorial: #E18765;
    --accent-selection-contour: #E18765;
    --label-warning: #F0B69E;
    --surface-warning: #35231D;
    --separator-warning: #A85333;
    --label-evidence: #A8D9E8;
    --surface-evidence: #17303A;
    --focus-ring: #A0C7B9;
  }
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface-canvas: #0E1513;
  --surface-content: #0E1513;
  --surface-subtle: #15201D;
  --surface-control: #1C2925;
  --surface-overlay: rgba(28, 41, 37, .97);
  --surface-selected: #253B34;
  --label-primary: #F2F4EF;
  --label-secondary: #AEB8B3;
  --label-selected: #E5F1EC;
  --label-on-interactive: #0E1513;
  --surface-brand: #82B5A3;
  --icon-filter: brightness(0) invert(1);
  --separator: #34413D;
  --interactive-primary: #82B5A3;
  --interactive-hover: #A0C7B9;
  --accent-editorial: #E18765;
  --accent-selection-contour: #E18765;
  --label-warning: #F0B69E;
  --surface-warning: #35231D;
  --separator-warning: #A85333;
  --label-evidence: #A8D9E8;
  --surface-evidence: #17303A;
  --focus-ring: #A0C7B9;
}

@media (prefers-contrast: more) {
  :root {
    --surface-canvas: #FFFFFF;
    --surface-subtle: #FFFFFF;
    --surface-control: #FFFFFF;
    --surface-overlay: rgba(255, 255, 255, .99);
    --surface-selected: #FFFFFF;
    --label-primary: #000000;
    --label-secondary: #1D2926;
    --label-selected: #000000;
    --label-on-interactive: #FFFFFF;
    --surface-brand: #003C33;
    --icon-filter: brightness(0);
    --separator: #000000;
    --interactive-primary: #003C33;
    --interactive-hover: #005A4C;
    --accent-editorial: #8A2608;
    --accent-selection-contour: #9C2E10;
    --label-warning: #5A210D;
    --surface-warning: #FFFFFF;
    --separator-warning: #000000;
    --label-evidence: #003C5C;
    --surface-evidence: #FFFFFF;
    --focus-ring: #000000;
  }
}

@media (forced-colors: active) {
  :root { --shadow-sm: none; --shadow-lg: none; --accent-selection-contour: Highlight; }
  button:focus-visible, input:focus-visible { outline-color: CanvasText; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; max-width:100%; height: 100%; margin: 0; overflow-x:hidden; }
body { overflow: hidden; color: var(--ink); background: var(--paper); font-family: Inter, "Noto Sans SC", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif; font-size: var(--type-body); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
button:not(:disabled) { transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease; }
button:not(:disabled):active { transform: scale(.98); }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; opacity: 1; color: var(--label-secondary); background: var(--surface-subtle); }
button:focus-visible, input:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.button-primary, .primary-button { min-height:44px; padding:10px 16px; border:1px solid var(--interactive-primary); border-radius:12px; color:var(--surface-control); background:var(--interactive-primary); cursor:pointer; font-size:var(--type-control); font-weight:750; line-height:20px; }
.button-primary:hover, .primary-button:hover { border-color:var(--interactive-hover); background:var(--interactive-hover); }
.button-secondary { min-height:44px; padding:10px 16px; border:1px solid var(--separator); border-radius:12px; color:var(--interactive-primary); background:var(--surface-control); cursor:pointer; font-size:var(--type-control); font-weight:750; line-height:20px; }
.button-secondary:hover { border-color:var(--interactive-hover); background:var(--surface-subtle); }
.button-toggle[aria-pressed="true"], .button-toggle.active { color:var(--surface-control); border-color:var(--interactive-primary); background:var(--interactive-primary); }
.icon-button { width:44px; min-width:44px; height:44px; min-height:44px; display:inline-grid; place-items:center; padding:0; border:0; border-radius:12px; color:var(--label-primary); background:transparent; cursor:pointer; }
.icon-button:hover { background:var(--surface-subtle); }
.icon-button::before { content:""; width:20px; height:20px; background:currentColor; mask:var(--icon) center/contain no-repeat; -webkit-mask:var(--icon) center/contain no-repeat; }
.icon-button--close { --icon:url("assets/icons/ui/close.svg"); }
.icon-button--layers { --icon:url("assets/icons/ui/layers.svg"); }
.icon-button--list { --icon:url("assets/icons/ui/list.svg"); }
.mobile-primary-actions { display:none; }
.mobile-more-toggle { --icon:url("assets/icons/ui/more.svg"); }
.mobile-language-toggle { font-size:12px; font-weight:800; letter-spacing:.02em; }
.mobile-language-toggle::before { display:none; }
.mobile-language-toggle b { margin-left:-3px; font-size:10px; }
.mobile-explore-toggle { min-height:44px; display:inline-flex; align-items:center; gap:6px; padding:8px 10px; border:1px solid var(--interactive-primary); border-radius:999px; color:var(--surface-control); background:var(--interactive-primary); box-shadow:0 3px 10px rgba(20,35,31,.18); cursor:pointer; font-size:var(--type-supporting); line-height:20px; }
.mobile-explore-toggle span { font-size:19px; font-weight:900; line-height:1; }
.collapse-icon { width:12px; height:12px; display:block; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg) translateY(-3px); }

.app-shell { width:100%; max-width:100vw; height: 100dvh; display: grid; grid-template-rows: 64px 1fr; }
.topbar { position: relative; isolation: isolate; z-index: 1400; overflow: visible; display: grid; grid-template-columns: 274px minmax(320px, 640px) 1fr; align-items: center; gap: 22px; padding: 0 22px; background: var(--surface-canvas); border-bottom: 1px solid var(--hairline); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; flex: none; }
.brand-mark img { width: 36px; height: 36px; display: block; }
.brand strong { display: block; font-family: "Noto Serif SC", "Noto Serif JP", serif; font-size: 15px; letter-spacing: .07em; }
.brand .brand-name-compact { display: none; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: var(--type-micro); letter-spacing: .08em; }
.search-wrap { position: relative; min-height: 44px; display: flex; align-items: center; background: var(--surface-subtle); border: 1px solid transparent; border-radius: 12px; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.search-wrap:focus-within { background: var(--surface-control); border-color: var(--interactive-hover); box-shadow: 0 0 0 4px color-mix(in srgb, var(--interactive-hover) 18%, transparent); }
.search-icon { width:20px; height:20px; margin-left:14px; color:var(--ink-green); background:currentColor; mask:url("assets/icons/ui/search.svg") center/contain no-repeat; -webkit-mask:url("assets/icons/ui/search.svg") center/contain no-repeat; }
.search-wrap input { flex: 1; min-width: 0; padding: 0 12px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: var(--type-control); }
.search-wrap input::placeholder { color:var(--label-secondary); opacity:1; }
.search-clear { width:44px; min-width:44px; height:44px; margin-right:5px; padding:0; border:0; border-radius:50%; color:var(--label-secondary); background:transparent; cursor:pointer; }
.search-clear::before { content:'×'; display:block; font-size:24px; line-height:28px; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance:none !important; }
input[type="search"]::-webkit-search-decoration { -webkit-appearance:none !important; }
.search-clear:hover,.search-clear:focus-visible { color:var(--surface-control); background:var(--interactive-primary); outline:0; }
kbd { margin-right: 9px; padding: 3px 7px; color: var(--muted); background: var(--surface-control); border: 1px solid var(--hairline); border-radius: 6px; font-size: var(--type-micro); }
.search-results { position: absolute; top: 48px; inset-inline: 0; max-height: 360px; overflow: auto; padding: 7px; color:var(--label-primary); background:var(--surface-overlay); border: 1px solid var(--hairline); border-radius: 14px; box-shadow: var(--shadow-lg); backdrop-filter:blur(14px); }
.search-results-title { margin: 4px 8px 8px; color: var(--label-primary); font-size: 19px; font-weight: 600; line-height: 26px; }
.search-result { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 10px; border: 0; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.search-result-leading { flex:0 0 34px; min-height:34px; display:flex; align-items:center; gap:3px; }
.search-result-kind { width:34px; height:34px; display:grid; place-items:center; border:1px solid var(--hairline); border-radius:8px; color:var(--label-secondary); font-size:10px; }
.search-station-badge { flex:none; width:34px; height:34px; border-width:2px; }
.search-result-content { min-width:0; flex:1 1 auto; display:flex; flex-direction:column; justify-content:center; gap:3px; }
.search-result-content strong { color:inherit; font-size:15px; font-weight:600; line-height:1.35; }
.search-result-content small { color:var(--label-secondary); font-size:13px; line-height:1.35; }
.search-result-chevron { flex:0 0 auto; align-self:center; color:var(--label-secondary); font-size:17px; }
.search-line-context { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; gap:4px 12px; margin:2px 0 8px; padding:0 0 12px; border-bottom:1px solid var(--separator); }
.search-line-context strong { color:var(--label-primary); font-size:15px; font-weight:600; }
.search-line-context span,.search-line-context small { color:var(--label-secondary); font-size:13px; }
.search-line-context small { grid-column:1/-1; }
.search-result:hover,.search-result:focus-visible { color:var(--label-selected); background:var(--surface-selected); outline:2px solid var(--focus-ring); outline-offset:-2px; }
.search-result small { color: var(--muted); }
.search-result-error { align-items: center; cursor: default; }
.search-result-error:hover { color: var(--label-primary); background: transparent; outline: 0; }
.search-result-retry { flex: 0 0 auto; min-height: 36px; padding: 6px 10px; border: 1px solid var(--hairline); border-radius: 9px; color: var(--label-primary); background: var(--surface-control); cursor: pointer; }
.search-result-retry:hover,.search-result-retry:focus-visible { color: var(--label-selected); background: var(--surface-selected); outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.top-actions .p001-header-map-action { display:inline-grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid var(--separator); border-radius:50%; color:var(--label-primary); background:var(--surface-control); box-shadow:0 3px 12px rgba(20,35,31,.10); cursor:pointer; }
.top-actions .p001-header-map-action img { width:21px; height:21px; filter:var(--icon-filter); }
.quiet-button, .profile-button { min-height: 44px; padding: 8px 11px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; font-size: var(--type-control); }
.quiet-button:hover { background: #efefea; }
.count { padding: 1px 6px; background: var(--surface-subtle); border-radius: 20px; font-size: var(--type-micro); }
.profile-button { display:inline-flex; align-items:center; gap:6px; border: 1px solid var(--hairline); color:var(--ink-green-dark); background: var(--surface-control); }
.profile-button:hover { border-color:var(--interactive-hover); background:var(--surface-subtle); }
.profile-button img { width:21px; height:21px; }

.workspace { position: relative; min-height: 0; display: grid; grid-template-columns: 296px minmax(0, 1fr) 0; transition: grid-template-columns .34s cubic-bezier(.22,.8,.25,1); }
.workspace.detail-open { grid-template-columns: 296px minmax(0, 1fr) 420px; }
.explore-panel, .detail-panel { position: relative; z-index: 500; background: var(--surface); }
.explore-panel { overflow: auto; padding: 28px 20px 104px; border-right: 1px solid var(--hairline); }
.panel-heading .eyebrow, .eyebrow { margin: 0 0 9px; color: var(--accent); font-size: var(--type-micro); font-weight: 800; letter-spacing: .2em; }
.panel-heading h1 { margin: 0 0 10px; font-family: "Noto Serif SC", "Noto Serif JP", serif; font-size: 27px; font-weight: 650; line-height: 1.3; letter-spacing: -.025em; }
.panel-heading > p:last-child { margin: 0; color: var(--muted); font-size: var(--type-supporting); line-height: 1.7; }
.mode-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 23px 0 18px; padding: 3px; background: var(--surface-subtle); border-radius: 11px; }
.mode-tabs button { min-height: 44px; padding: 7px 8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: var(--type-control); }
.mode-tabs button.active { color: var(--ink-green-dark); background: var(--surface-control); box-shadow: 0 2px 8px rgba(25, 40, 35, .08); font-weight: 750; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 13px 0 9px; font-size: var(--type-supporting); }
.section-title span { color: var(--muted); font-size: var(--type-micro); }
.line-card { width: 100%; display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; margin-bottom: 7px; padding: 11px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface-control); text-align: left; cursor: pointer; font-size:var(--type-control); }
.line-card.active { border-color: #b7cfa5; box-shadow: inset 3px 0 var(--yamanote); }
.active-line-summary { display:grid; gap:7px; }
.line-card.active.selected-line-card { grid-template-columns:6px 28px minmax(0,1fr) 34px; gap:8px; border-color:color-mix(in srgb,var(--selected-rail) 48%,white); box-shadow:inset 3px 0 var(--selected-rail),0 0 0 1px color-mix(in srgb,var(--selected-rail) 15%,transparent); cursor:grab; -webkit-tap-highlight-color:transparent; -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; touch-action:none; }
.selected-line-card, .selected-line-card * { -webkit-user-select:none; user-select:none; }
.selected-line-card.is-dragging { cursor:grabbing; }
.selected-line-card + .selected-line-card { margin-top:7px; }
.selected-line-card strong,.selected-line-card small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.selected-line-card small { margin-top:3px; color:var(--muted); font-size:var(--type-micro); }
.selected-line-symbol { width:26px; height:26px; display:grid; place-items:center; border:2px solid var(--rail-color); border-radius:50%; color:var(--label-primary); background:var(--surface-overlay); font-size:10px; font-weight:850; }
.selected-line-remove { width:34px; height:34px; border:0; border-radius:9px; color:var(--muted); background:transparent; cursor:pointer; font-size:18px; line-height:1; }
.selected-line-remove:hover,.selected-line-remove:focus-visible { color:var(--label-on-interactive); background:var(--interactive-primary); outline:2px solid var(--focus-ring); }
.line-drag-placeholder { margin-bottom:7px; border:1px dashed color-mix(in srgb,var(--ink-green) 36%,transparent); border-radius:12px; background:rgba(36,95,78,.055); }
.line-drag-float { position:fixed; z-index:3000; margin:0; pointer-events:none; opacity:.98; box-shadow:0 14px 30px rgba(22,42,35,.26); transform-origin:center; transition:none; will-change:transform; }
.rail-line-picker { display:flex; align-items:center; gap:10px; margin:10px 0; padding:9px 11px; border:1px solid var(--hairline); border-radius:12px; background:var(--surface-control); color:var(--muted); font-size:var(--type-control); }
.explore-panel-toggle { display:none; }
.rail-line-picker select { min-width:0; flex:1; border:0; outline:0; background:transparent; color:var(--ink); font:inherit; font-weight:700; cursor:pointer; }
#active-line-summary:empty { display:none; }
.line-card.muted { opacity: .68; }
.line-swatch { width: 6px; height: 30px; border-radius: 4px; }
.line-swatch.yamanote { background: var(--yamanote); }
.line-swatch.chuo { background: #ed6b35; }
.line-card strong, .line-card small { display: block; }
.line-card strong { font-size:var(--type-control); }
.line-card small { margin-top: 2px; color: var(--muted); font-size: var(--type-micro); }
.line-price { color: var(--ink-green-dark); font-weight: 800; font-size:var(--type-control); text-align: right; font-variant-numeric: tabular-nums; }
.advanced-search { width: 100%; min-height: 44px; padding: 9px; border: 1px dashed var(--separator); border-radius: 10px; color: var(--interactive-primary); background: var(--surface-control); cursor: pointer; font-size:var(--type-control); font-weight:750; }
.direction-browser { animation: direction-enter .22s ease both; }
.direction-browser.is-area-drilldown .direction-intro,
.direction-browser.is-area-drilldown .direction-compass,
.direction-browser.is-area-drilldown .direction-detail { display:none; }
.direction-intro { margin: -1px 0 13px; color: var(--muted); font-size: var(--type-micro); line-height: 1.6; }
.direction-compass { position: relative; height: 196px; display: grid; grid-template: repeat(3,58px) / repeat(3,1fr); gap: 6px; padding: 5px; }
.direction-compass::before { content: ''; position: absolute; inset: 20px 42px; border: 1px solid #e3e6df; border-radius: 50%; background: #f7f7f2; }
.direction-choice { position: relative; z-index: 1; min-width: 0; display: grid; place-content: center; gap: 2px; padding: 4px; border: 1px solid var(--hairline); border-radius: 11px; color: var(--label-primary); background: var(--surface-control); cursor: pointer; box-shadow: 0 3px 10px rgba(26,40,35,.045); transition: transform .16s ease,border-color .16s ease,background .16s ease,color .16s ease; }
.direction-choice:hover { transform: translateY(-1px); border-color: #9db6ad; }
.direction-choice span { font-family: "Noto Serif SC","Noto Serif JP",serif; font-size: 14px; font-weight: 800; }
.direction-choice small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.direction-choice.active { color: var(--label-on-interactive); border-color: var(--ink-green-dark); background: var(--ink-green-dark); box-shadow: 0 0 0 4px rgba(201,99,64,.11),0 7px 20px rgba(23,63,53,.16); }
.direction-choice.active small { color: var(--label-on-interactive); }
.direction-choice.north { grid-area: 1 / 2; }
.direction-choice.west { grid-area: 2 / 1; }
.direction-choice.center { grid-area: 2 / 2; }
.direction-choice.east { grid-area: 2 / 3; }
.direction-choice.south { grid-area: 3 / 2; }
.direction-detail { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; margin-top: 4px; padding: 11px; border-top: 1px solid var(--hairline); background: var(--surface-subtle); }
.direction-index { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 10px; font-weight: 850; }
.direction-detail strong { font-family: "Noto Serif SC","Noto Serif JP",serif; font-size: 15px; line-height:1.35; }
.direction-detail p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.area-browser { margin-top:10px; padding:10px; border:1px solid var(--hairline); border-radius:11px; background:var(--surface-subtle); }
.area-choice-group + .area-choice-group { margin-top:9px; padding-top:9px; border-top:1px solid var(--hairline); }
.area-choice-group > small { display:block; margin-bottom:7px; color:var(--muted); font-size:13px; font-weight:750; }
.area-options { display:flex; flex-wrap:nowrap; gap:5px; overflow-x:auto; overflow-y:hidden; padding-bottom:2px; overscroll-behavior-x:contain; scrollbar-width:thin; }
.area-directory-error { width:100%; min-width:0; display:flex; flex-wrap:wrap; align-items:center; gap:8px; color:var(--label-primary); }
.area-directory-error > span { min-width:0; flex:1 1 140px; line-height:1.4; font-size:var(--type-supporting); }
.area-directory-retry { flex:0 0 auto; min-height:44px; padding:0 12px; border:1px solid var(--ink-green); border-radius:10px; color:var(--ink-green); background:var(--surface-control); font-family:inherit; font-size:var(--type-micro); font-weight:700; line-height:1.2; cursor:pointer; }
.area-directory-retry:hover,.area-directory-retry:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }
.area-choice { min-height:44px; padding:5px 10px; border:1px solid var(--hairline); border-radius:999px; color:var(--label-primary); background:var(--surface-control); cursor:pointer; font:700 var(--type-micro)/1.2 inherit; white-space:nowrap; }
.area-choice:hover,.area-choice:focus-visible { border-color:var(--ink-green); outline:0; }
.area-choice.is-active { border-color:var(--ink-green-dark); color:var(--label-on-interactive); background:var(--ink-green-dark); }
.area-choice.is-active span { color:var(--label-on-interactive); }
.area-choice em { margin-left:3px; color:var(--muted); font-style:normal; font-weight:650; }
.area-choice.is-active em { color:var(--label-on-interactive); }
.area-back { min-height:44px; margin:0 0 8px; padding:0; border:0; color:var(--ink-green-dark); background:none; cursor:pointer; font:650 var(--type-small)/1.3 inherit; }
.area-breadcrumb { margin:0 0 9px; color:var(--muted); font:600 var(--type-micro)/1.4 inherit; }
.area-results-heading { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:8px; color:var(--label-primary); }
.area-results-heading span { color:var(--muted); font-size:var(--type-micro); }
.area-results-status { margin:8px 0; color:var(--muted); font-size:var(--type-small); }
.area-results-list { display:grid; gap:7px; max-height:36dvh; overflow:auto; overscroll-behavior:contain; }
.area-result-row { display:flex; align-items:center; gap:10px; width:100%; min-height:60px; padding:8px 10px; border:1px solid var(--hairline); border-radius:12px; color:var(--label-primary); background:var(--surface-control); text-align:left; cursor:pointer; }
.area-result-row:hover,.area-result-row:focus-visible { border-color:var(--ink-green); outline:0; }
.area-result-row .main { display:grid; gap:3px; min-width:0; }
.area-result-row strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.area-result-row small { color:var(--muted); }
.area-results-actions { display:flex; gap:8px; margin-top:10px; }
.area-results-actions button { flex:1; min-height:44px; border:1px solid var(--hairline); border-radius:11px; color:var(--ink-green-dark); background:var(--surface-control); font:650 var(--type-small)/1.25 inherit; cursor:pointer; }
@media (max-width:700px) { .area-results-list { max-height:30dvh; } }
@keyframes direction-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.subcenter-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.subcenter-chip { padding: 6px 9px; border: 1px solid var(--hairline); border-radius: 20px; color: var(--label-primary); background: var(--surface-control); cursor: pointer; font-size: 10px; }
.subcenter-chip::before { content: ''; width: 5px; height: 5px; display: inline-block; margin-right: 5px; border-radius: 50%; background: var(--accent); }
.core-area-entry { margin-top:14px; }
.named-area-back { display:flex; align-items:center; gap:7px; min-height:44px; margin:0 0 12px; padding:0; border:0; color:var(--interactive-primary); background:transparent; font:inherit; font-size:13px; font-weight:600; line-height:1.3; cursor:pointer; }
.named-area-back:focus-visible { outline:2px solid var(--focus-ring); outline-offset:3px; }
.named-area-heading { display:block; min-width:0; margin-bottom:8px; }
.named-area-heading strong { display:block; min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; word-break:normal; line-height:1.4; }
.named-area-entries { display:grid; gap:0; }
.named-area-entry { display:grid; grid-template-columns:minmax(0,1fr) 24px; align-items:center; gap:10px; width:100%; min-height:64px; padding:12px 4px; border:0; border-bottom:1px solid var(--hairline); border-radius:0; color:var(--label-primary); background:transparent; text-align:left; cursor:pointer; }
.named-area-entry[aria-pressed="true"] { background:color-mix(in srgb,var(--surface-brand) 8%,transparent); }
.named-area-entry-copy { display:grid; gap:4px; }
.named-area-entry-copy strong { font-size:14px; font-weight:700; }
.named-area-entry-copy small { color:var(--muted); font-size:11px; line-height:1.4; }
.named-area-entry-state { color:var(--muted); text-align:center; font-size:19px; }
.named-area-entry[aria-pressed="true"] .named-area-entry-state { color:var(--interactive-primary); }
.named-area-related { display:grid; grid-template-columns:minmax(0,1fr) 24px; align-items:center; gap:10px; width:100%; min-height:64px; padding:12px 4px; border:0; border-bottom:1px solid var(--hairline); color:var(--label-primary); background:transparent; text-align:left; cursor:pointer; }
.named-area-related > span:first-child { display:grid; gap:4px; }
.named-area-related strong { font-size:14px; font-weight:700; }
.named-area-related small { color:var(--muted); font-size:11px; line-height:1.4; }
.named-area-related > span:last-child { color:var(--muted); text-align:center; font-size:19px; }
.named-area-related.unavailable { cursor:default; }
.named-area-related.unavailable > span:last-child { display:none; }
.named-area-selection { display:grid; gap:10px; margin-top:14px; padding:12px; border-radius:12px; color:var(--label-secondary); background:var(--surface-control); font-size:12px; line-height:1.45; }
.named-area-selection[hidden] { display:none; }
.named-area-selection p { margin:0; }
.named-area-selection a { min-height:44px; display:flex; align-items:center; color:var(--interactive-primary); font-weight:650; }
.named-area-selection a[hidden] { display:none; }
.named-area-selection button { min-height:44px; padding:9px 14px; border:0; border-radius:10px; color:var(--label-on-interactive); background:var(--interactive-primary); font-weight:700; cursor:pointer; }
.named-area-entries { display:grid; gap:6px; }
.named-area-status { margin:6px 0 0; color:var(--muted); font-size:11px; line-height:1.45; }
#named-area-tools { display:contents; }
.leaflet-tooltip.named-area-label { border:0; border-radius:7px; color:#454225; background:rgba(255,255,251,.88); box-shadow:0 1px 4px rgba(42,42,25,.12); font-size:10px; font-weight:800; white-space:nowrap; pointer-events:none; }
.leaflet-tooltip.named-area-label::before { display:none; }
.insight-card { display: grid; grid-template-columns: 27px 1fr; gap: 9px; margin-top: 20px; padding: 13px; color: #263d35; background: #edf3ed; border-radius: 13px; font-size: 10px; line-height: 1.55; }
.insight-card p { margin: 0; }
.insight-icon { width: 26px; height: 26px; display: grid; place-items: center; color: white; background: var(--ink-green); border-radius: 50%; }

.map-stage { position: relative; min-width: 0; overflow: hidden; overflow: clip; background: #e7ebe5; }
#map { position: absolute; inset: 0; background: #e7ebe5; }
.map-overlap-chooser { position:absolute; z-index:1400; top:50%; left:50%; width:min(340px,calc(100% - 32px)); max-height:min(360px,70%); overflow:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; touch-action:pan-y; transform:translate(-50%,-50%); padding:14px; border:1px solid var(--separator); border-radius:18px; color:var(--label-primary); background:var(--surface-content); box-shadow:0 14px 40px rgba(0,0,0,.22); }
.map-overlap-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.map-overlap-heading button { width:44px; height:44px; border:0; border-radius:50%; color:inherit; background:transparent; font-size:24px; cursor:pointer; }
.map-overlap-chooser p { margin:4px 0 8px; color:var(--label-secondary); font-size:13px; }
.map-overlap-list { display:grid; gap:4px; }
.map-overlap-list button { min-height:44px; padding:8px; border:0; border-radius:10px; color:inherit; background:var(--surface-subtle); text-align:left; cursor:pointer; }
.leaflet-control-attribution { padding: 2px 5px !important; background: rgba(255,255,252,.82) !important; font-size: 10px !important; }
.map-legend { position: absolute; z-index: 450; color: var(--label-primary); background: var(--surface-overlay); border: 1px solid var(--separator); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); }
.live-dot { width: 6px; height: 6px; display: inline-block; margin-right: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(201,99,64,.14); }
.zoom-badge { display: inline-block; margin: 0 4px; padding: 2px 5px; color: white; background: var(--ink-green-dark); border-radius: 4px; font-weight: 800; }
.map-legend { top: 14px; right: 14px; display: flex; align-items: center; gap: 11px; padding: 7px 9px; border-radius: 9px; font-size: 10px; }
.map-legend span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.map-legend i { display: inline-block; flex: none; }
.legend-station { width: 14px; height: 14px; display: grid !important; place-items: center; border: 2px solid var(--yamanote); border-radius: 50%; background: white; }
.legend-station b { color: #28352f; font-size: 10px; line-height: 1; }
.legend-orbit { width: 17px; height: 17px; border: 1px dashed var(--accent); border-radius: 50%; background: rgba(201,99,64,.05); }
.legend-featured-building { width: 13px; height: 15px; border: 1.5px solid #f6eee1; border-radius: 6px 6px 6px 2px; background: #607a70; box-shadow: 0 2px 4px rgba(22,42,35,.16); }
.map-toolbar { position: absolute; z-index: 700; top: 90px; right: 14px; display:grid; gap:8px; width:max-content; }
.map-toolbar > button { width: 44px; height: 44px; display:grid; place-items:center; padding: 0; border: 1px solid var(--separator); border-radius: 10px; color:var(--label-primary); background: var(--surface-overlay); box-shadow: 0 4px 14px rgba(35,50,45,.08); cursor: pointer; }
.map-toolbar > #show-map-layers,.map-toolbar > #show-map-results { justify-self:end; }
.map-toolbar > #show-map-results[hidden] { display:none; }
.map-toolbar img { width:22px; height:22px; filter:var(--icon-filter); }
.map-toolbar button:hover { color: var(--interactive-primary); transform: translateY(-1px); }
.map-toolbar-rail svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.filter-panel { position:absolute; z-index:1250; top:51px; right:60px; width:248px; padding:14px; border:1px solid var(--hairline); border-radius:14px; color:var(--ink); background:var(--surface-control); box-shadow:var(--shadow-lg); backdrop-filter:blur(14px); }
.filter-panel[hidden] { display:none; }
.map-results-panel { position:absolute; z-index:1360; top:51px; right:60px; width:min(330px,calc(100% - 72px)); max-height:min(520px,calc(100% - 70px)); overflow:auto; padding:14px; border:1px solid var(--hairline); border-radius:14px; color:var(--label-primary); background:var(--surface-overlay); box-shadow:var(--shadow-lg); backdrop-filter:blur(14px); }
.map-results-panel[hidden] { display:none; }
.map-results-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.map-results-head small { display:block; color:var(--accent); font-size:var(--type-micro); font-weight:850; letter-spacing:.14em; }
.map-results-head strong { display:block; margin-top:2px; font-family:"Noto Serif SC","Noto Serif JP",serif; font-size:16px; }
.map-results-head button { width:44px; height:44px; margin:-7px -7px 0 0; border:0; border-radius:50%; color:var(--muted); background:transparent; cursor:pointer; font-size:20px; }
.map-results-summary { margin:9px 0; color:var(--muted); font-size:var(--type-micro); line-height:1.45; }
.map-results-request-status { margin:8px 0; padding:9px 10px; border:1px solid var(--hairline); border-radius:9px; color:var(--label-primary); background:var(--surface-control); font-size:var(--type-micro); line-height:1.45; }
.map-results-request-status p { margin:0; }
.map-results-request-status[data-state="error"] { border-color:color-mix(in srgb,var(--accent) 42%,var(--hairline)); }
.map-results-request-status[data-state="restricted"] { border-color:color-mix(in srgb,var(--label-secondary) 42%,var(--hairline)); }
#map-results-retry { margin-top:8px; padding:7px 10px; border:1px solid var(--hairline); border-radius:8px; color:var(--label-primary); background:var(--surface-overlay); cursor:pointer; }
#map-results-retry:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.map-results-list { display:grid; gap:6px; }
.map-results-selected { display:grid; gap:6px; margin-top:10px; padding-top:10px; border-top:1px solid var(--hairline); }
.map-results-selected[hidden] { display:none; }
.map-results-selected > small { color:var(--muted); font-size:var(--type-micro); }
.map-result { width:100%; display:grid; grid-template-columns:1fr auto; gap:8px; align-items:center; padding:10px; border:1px solid var(--hairline); border-radius:10px; color:var(--label-primary); background:var(--surface-control); cursor:pointer; text-align:left; }
.map-result:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.map-result strong,.map-result small { display:block; }
.map-result strong { font-size:var(--type-supporting); }
.map-result small { margin-top:3px; color:var(--muted); font-size:var(--type-micro); }
.map-result span:last-child { color:var(--interactive-primary); font-size:var(--type-micro); font-weight:800; }
.map-results-empty { margin:0; padding:12px 2px; color:var(--muted); font-size:var(--type-supporting); line-height:1.5; }
.filter-head,.saved-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.filter-head strong { font-family:"Noto Serif SC","Noto Serif JP",serif; font-size:15px; }
.filter-head button,.saved-head button { width:44px; height:44px; padding:0; border:0; border-radius:50%; color:var(--muted); background:transparent; cursor:pointer; font-size:18px; }
.filter-panel label { display:grid; gap:5px; margin-top:11px; color:var(--muted); font-size:var(--type-micro); font-weight:750; }
.filter-panel select { min-height:44px; padding:0 10px; border:1px solid var(--hairline); border-radius:8px; color:var(--ink); background:var(--surface-control); font:inherit; }
.filter-panel .filter-check { display:flex; align-items:center; gap:9px; min-height:44px; color:var(--ink); font-weight:650; line-height:1.4; }
.filter-check input { width:16px; height:16px; accent-color:var(--ink-green-dark); }
.filter-panel > div:last-of-type { display:flex; gap:7px; margin-top:13px; }
.filter-reset,.filter-apply { min-height:44px; flex:1; border-radius:9px; cursor:pointer; font-size:var(--type-micro); font-weight:750; }
.filter-reset { border:1px solid var(--hairline); color:var(--ink-green-dark); background:var(--surface-control); }
.filter-apply { border:1px solid var(--ink-green-dark); color:var(--label-on-interactive); background:var(--ink-green-dark); }
.filter-panel p { margin:10px 0 0; color:var(--muted); font-size:var(--type-micro); line-height:1.45; }
.map-error { position: absolute; z-index: 1000; inset: 50% auto auto 50%; transform: translate(-50%,-50%); padding: 12px 16px; color:var(--label-warning); background:var(--surface-warning); border: 1px solid var(--separator-warning); border-radius: 10px; }

/* Compact visible symbols with a separate 44px interaction halo. */
.station-marker, .apartment-marker, .subcenter-marker { position: relative; }
.station-marker { width: 44px; height: 52px; position: relative; display: grid; place-items: center; margin: 0; padding: 0; border: 0; color: var(--ink-green-dark); background: transparent; cursor: pointer; font-variant-numeric: tabular-nums; transition: opacity .16s ease; }
.station-marker::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; }
.rail-symbols { position: relative; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 3px 5px rgba(28,42,37,.17)); }
.rail-symbol { width: 34px; height: 34px; display: grid; grid-template-rows: 12px 11px; place-content: center; border: 3px solid var(--rail-color); border-radius: 50%; color: #202a27; background: rgba(255,255,252,.98); line-height: 1; }
.context-rail-symbol { width:25px; height:25px; grid-template-rows:1fr; border-width:2px; font-size:10px; }
.context-rail-symbol b { font-size:10px; }
.station-marker.is-subcenter-station .rail-symbol { box-shadow:0 0 0 2px var(--accent),0 0 0 5px rgba(201,99,64,.18),0 3px 5px rgba(28,42,37,.17); }
.rail-symbol b,.rail-symbol em { display: block; font-style: normal; font-family: Arial,"Noto Sans JP",sans-serif; font-weight: 850; line-height: 1; }
.rail-symbol b { font-size: 10px; letter-spacing: -.04em; }
.rail-symbol em { font-size: 10px; }
.rail-symbol.numeric-only { --rail-color:var(--ink-green-dark); grid-template-rows: 1fr; }
.rail-symbol.numeric-only em { font-size: 13px; }
.rail-symbol.jr-east { border-radius: 8px; }
.rail-symbol.tokyo-metro,.rail-symbol.toei { border-width: 3px; }
.transfer-station { width: 52px; }
.transfer-station .rail-symbol { width: 29px; height: 29px; grid-template-rows: 10px 9px; }
.transfer-station .rail-symbol + .rail-symbol { margin-left: -7px; }
.transfer-station .rail-symbol b,.transfer-station .rail-symbol em { font-size: 10px; }
.multi-transfer-station .rail-symbol { width:25px; height:25px; grid-template-rows:9px 8px; }
.multi-transfer-station .rail-symbol + .rail-symbol { margin-left:-5px; }
.multi-transfer-station .rail-symbol-overflow { border-color:var(--ink-green-dark); color:var(--ink-green-dark); background:var(--paper); }
.rail-symbol-overflow b { font-size:13px; line-height:8px; }
.rail-symbol-overflow em { font-size:10px; line-height:10px; }
.station-price { position: absolute; left: 50%; bottom: 0; min-width: 29px; padding: 1px 4px 2px; transform: translateX(-50%); border: 1px solid var(--separator); border-radius: 7px; color: var(--label-selected); background: var(--surface-overlay); box-shadow: 0 2px 6px rgba(28,42,37,.09); font-size: 10px; font-weight: 800; line-height: 1; }
.station-price::after { content: '万'; margin-left: 1px; color: var(--muted); font-size: 10px; font-weight: 600; }
.station-marker:hover { opacity:.88; }
.leaflet-marker-icon.is-station-selected { z-index: 10000 !important; }
.leaflet-marker-icon.is-station-selected .rail-symbol:not(.rail-symbol-overflow) { outline:2px solid var(--accent-selection-contour); outline-offset:1px; }
.station-label { padding: 2px 5px !important; color: #273b34 !important; background: rgba(255,255,255,.88) !important; border: 0 !important; border-radius: 5px !important; box-shadow: 0 1px 4px rgba(0,0,0,.1) !important; font-size: 10px !important; font-weight: 750; white-space: nowrap; }
.apartment-marker { width: 26px; height: 28px; display: grid; place-items: center; padding: 0 0 3px; border: 1.5px solid white; border-radius: 13px 13px 13px 4px; color: white; background: var(--ink-green-dark); box-shadow: 0 3px 9px rgba(22,42,35,.25); cursor: pointer; transition: opacity .16s ease; }
.apartment-cluster { width:38px; height:38px; display:grid; place-items:center; border:2px solid white; border-radius:50%; color:white; background:var(--ink-green-dark); box-shadow:0 3px 10px rgba(22,42,35,.28); cursor:pointer; font-size:var(--type-supporting); font-weight:850; font-variant-numeric:tabular-nums; }
.apartment-cluster:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.apartment-marker::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; }
.apartment-marker:hover { opacity:.88; }
.brand-marker { overflow:visible; background: white; }
.brand-marker img { position:absolute; left:4px; width:auto !important; max-width:none !important; height:17px !important; display:block; object-fit:contain; object-position:left center; }
.neutral-marker { background: var(--ink-green-dark); }
.recent-project-marker { border-color:#f6eee1; background:#607a70; }
.featured-project-marker { box-shadow:0 3px 11px rgba(22,42,35,.38); }
.building-glyph { width:15px; height:15px; fill:#fff; }
.leaflet-marker-icon.is-selected { z-index: 1000 !important; }
.leaflet-marker-icon.is-selected .apartment-marker { transform:none; }
.selected-apartment-overlay-icon { pointer-events:none !important; overflow:visible !important; }
.selected-apartment-overlay { position:relative; display:block; width:58px; height:58px; pointer-events:none; transform:translateY(14px); }
.selected-apartment-name { position:absolute; top:57px; left:50%; width:max-content; max-width:min(216px,calc(100vw - 24px)); display:flex; align-items:center; gap:6px; padding:4px 7px; overflow:hidden; color:var(--label-primary); background:var(--surface-overlay); border:1px solid var(--separator); border-radius:var(--radius-control); box-shadow:0 2px 7px rgba(29,41,38,.14); font-size:var(--type-micro); font-weight:780; line-height:1.2; transform:translateX(-50%); }
.selected-apartment-label-text { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.selected-apartment-developers { flex:0 0 auto; display:flex; align-items:center; gap:3px; }
.selected-apartment-developers img { position:static !important; left:auto !important; width:auto !important; max-width:48px !important; height:15px !important; object-fit:contain; }
.selected-apartment-name[data-edge] { padding-right:21px; }
.selected-apartment-name[data-edge]::after { content:''; position:absolute; top:50%; right:3px; display:block; width:16px; height:16px; border-radius:50%; background-color:var(--accent); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10m-4-4 4 4-4 4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position:center; background-repeat:no-repeat; background-size:11px 11px; transform:translateY(-50%); }
.selected-apartment-name[data-edge="left"]::after { transform:translateY(-50%) rotate(180deg); }
.selected-apartment-name[data-edge="top"]::after { transform:translateY(-50%) rotate(-90deg); }
.selected-apartment-name[data-edge="bottom"]::after { transform:translateY(-50%) rotate(90deg); }
.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; }
.transaction-marker { min-width:30px; height:18px; display:flex; align-items:center; justify-content:center; gap:3px; padding:0 6px; border:1px solid var(--separator); border-radius:9px; color:var(--label-selected); background:var(--surface-overlay); box-shadow:0 2px 7px rgba(22,42,35,.14); font-size:10px; font-weight:850; cursor:pointer; }
.transaction-marker span { width:5px; height:5px; border-radius:50%; background:var(--evidence); }
.facility-marker { width:27px; height:24px; display:flex; align-items:center; justify-content:center; gap:1px; padding:2px; border:1px solid var(--separator); border-radius:12px; color:var(--label-primary); background:var(--surface-overlay); box-shadow:0 2px 7px rgba(22,42,35,.14); cursor:pointer; }
.facility-marker img { width:15px; height:15px; }
.facility-marker b { min-width:9px; color:var(--ink-green-dark); font-size:10px; }
.subcenter-marker { width: 9px; height: 9px; display: block; border: 2px solid white; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(201,99,64,.16); }
.subcenter-marker.on-active-line { width:14px; height:14px; margin:-2px; background:var(--ink-green-dark); box-shadow:0 0 0 3px white,0 0 0 7px rgba(36,95,78,.28); }
.leaflet-tooltip.apartment-tooltip { padding: 8px 10px; border: 0; border-radius: 10px; box-shadow: var(--shadow-sm); font-size: 10px; line-height: 1.5; }
.leaflet-tooltip.apartment-tooltip.is-selected-property { display:none !important; }
.station-radius { pointer-events: none; }
.station-radius-outer { stroke-dasharray: 2 7; }
.station-radius-inner { stroke-dasharray: 1 6; }
.orbit-map-label { display:grid; justify-items:start; gap:1px; width:max-content; padding:3px 6px; border:1px solid var(--separator); border-radius:6px; color:var(--label-selected); background:var(--surface-overlay); box-shadow:0 1px 4px rgba(23,63,53,.16); font-size:11px; font-weight:800; line-height:1.1; white-space:nowrap; }
.orbit-map-label small { color:var(--label-secondary); font-size:9px; font-weight:650; line-height:1.1; }

.station-orbit-card { position: absolute; z-index: 470; top: 52px; left: 14px; width: 242px; padding: 14px 16px; color: var(--label-primary); background: var(--surface-overlay); border: 1px solid var(--separator); border-radius: 3px 16px 16px 16px; box-shadow: 0 18px 46px rgba(26,40,35,.14); backdrop-filter: blur(14px); }
.station-orbit-card::after { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%; border-radius: 3px 0 0 3px; background: var(--accent); }
.orbit-kicker { width: fit-content; max-width: calc(100% - 38px); margin-bottom: 5px; padding: 3px 7px; color: var(--label-on-interactive); background: var(--surface-brand); border-radius: 999px; font-size: var(--type-micro); font-weight: 850; letter-spacing: .08em; }
.orbit-kicker span { width: 5px; height: 5px; display: inline-block; margin-right: 4px; border-radius: 50%; background: currentColor; }
.station-orbit-card > strong { display: block; padding-right: 0; font-size: 19px; font-weight:600; letter-spacing: .01em; }
.station-orbit-card p { margin: 6px 0 11px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.station-orbit-card p b { color: var(--ink-green-dark); font-size: var(--type-micro); font-variant-numeric: tabular-nums; }
.station-orbit-card #orbit-data-status { display:block; margin:0 0 9px; color:var(--label-secondary); font-size:13px; line-height:1.45; }
.station-orbit-card #orbit-data-status .orbit-retry { min-height:44px; margin:2px 0 0; padding:5px 12px; border:1px solid var(--separator); border-radius:999px; color:var(--label-selected); background:var(--surface-control); font:inherit; font-weight:650; cursor:pointer; }
.station-orbit-card #orbit-data-status .orbit-retry:hover,.station-orbit-card #orbit-data-status .orbit-retry:focus-visible { background:var(--surface-selected); outline:2px solid var(--focus-ring); outline-offset:2px; }
.orbit-station-symbols { display:flex; align-items:center; gap:6px; margin:6px 0 2px; }
.orbit-station-symbols[hidden] { display:none; }
.orbit-station-symbols .rail-symbol { flex:none; width:30px; height:30px; grid-template-rows:10px 10px; border-width:2px; }
.orbit-radius-options { display:flex; gap:8px; margin:10px 0 2px; }
.orbit-radius-options button { min-width:72px; min-height:44px; padding:8px 12px; border:1px solid var(--separator); border-radius:999px; color:var(--label-primary); background:var(--surface-control); font:inherit; font-size:14px; font-weight:600; cursor:pointer; }
.orbit-radius-options button[aria-pressed="true"] { border-color:var(--interactive-primary); color:var(--label-on-interactive); background:var(--interactive-primary); }
.orbit-radius-options button:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }
.orbit-close { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; font-size: 17px; }
.orbit-close:hover,.orbit-close:focus-visible { color:var(--label-selected); background:var(--surface-selected); outline:2px solid var(--focus-ring); outline-offset:-2px; }
.orbit-toggle { position:relative; width:100%; min-height:64px; display:flex; align-items:center; justify-content:space-between; gap:16px; margin:12px 0; padding:12px 0; border:0; border-bottom:1px solid var(--separator); border-radius:0; color:var(--label-primary); background:transparent; cursor:pointer; font:inherit; font-weight:500; text-align:left; }
.orbit-copy { min-width:0; flex:1; display:grid; gap:3px; }
.orbit-copy strong { color:var(--label-primary); font-size:15px; line-height:22px; font-weight:600; }
.orbit-copy small { color:var(--label-secondary); font-size:12px; line-height:18px; }
.switch-hit { position:relative; flex:none; width:52px; height:44px; display:grid; place-items:center; }

.rail-chart { position: absolute; z-index: 460; left: 14px; right: 14px; bottom: 74px; padding: 13px 15px 31px; overflow:hidden; border: 1px solid var(--separator); border-radius: 16px; color:var(--label-primary); background: var(--surface-overlay); box-shadow: var(--shadow-lg); backdrop-filter: blur(14px); pointer-events: none; opacity: 0; transform: translateY(220%); transition: transform .34s cubic-bezier(.22,.8,.25,1), opacity .18s ease; }
.rail-chart.open { z-index:720; pointer-events: auto; opacity: 1; transform: translateY(0); }
.rail-chart-head { display: flex; justify-content: space-between; align-items: center; font-size: var(--type-supporting); }
.rail-chart-head button { width: 44px; height: 44px; border: 1px solid var(--separator); border-radius: 50%; color:var(--label-primary); background: var(--surface-selected); cursor: pointer; font-size: 18px; }
.route-pill { width:23px; height:23px; display:inline-grid; place-items:center; margin-right:7px; color:white; background:var(--line-color,var(--yamanote)); border-radius:7px; font-size:10px; }
.rail-chart-head small { display:block; margin:3px 0 0 31px; color:var(--label-secondary); font-size:var(--type-micro); font-weight:700; line-height:1.35; }
.station-strip { height:188px; display:flex; align-items:flex-end; gap:12px; padding:25px 2px 48px; overflow-x:auto; overflow-y:hidden; overscroll-behavior-x:contain; scrollbar-width:thin; -webkit-overflow-scrolling:touch; }
.station-price-loading,.station-price-empty { width:100%; margin:auto 0; color:var(--label-secondary); font-size:var(--type-micro); line-height:1.4; text-align:center; }
.station-bar { position:relative; flex:0 0 78px; width:78px; height:var(--bar-height,56px); margin:0; padding:0; border:1px solid color-mix(in srgb,var(--line-color) 42%,var(--hairline)); border-bottom:4px solid var(--line-color); border-radius:7px 7px 3px 3px; color:var(--label-primary); background:linear-gradient(180deg,color-mix(in srgb,var(--line-color) 16%,var(--surface-control)),var(--surface-control)); cursor:pointer; text-align:center; }
.station-bar--no-location { cursor:default; }
.station-bar span { position:absolute; top:calc(100% + 6px); left:50%; width:78px; overflow:visible; color:var(--label-primary); font-size:var(--type-micro); font-weight:700; line-height:1.15; text-align:center; white-space:normal; overflow-wrap:anywhere; transform:translateX(-50%); }
.station-bar em { position:absolute; right:50%; bottom:calc(100% + 5px); width:62px; color:var(--interactive-primary); font-size:12px; font-style:normal; font-weight:850; line-height:1; transform:translateX(50%); }
.station-bar em small { display:block; margin-top:2px; color:var(--label-secondary); font-size:var(--type-micro); font-weight:700; line-height:1.2; white-space:nowrap; }

.detail-panel { width: 100%; display:flex; flex-direction:column; overflow:hidden; border-left: 1px solid var(--hairline); background: var(--paper); }
.detail-sheet-scroll { min-height:0; flex:1 1 auto; overflow:auto; overscroll-behavior:contain; }
.sheet-handle { display: none; }
.detail-title-row { display:flex; align-items:center; gap:10px; min-width:0; }
.detail-title-row h2 { flex:1 1 auto; min-width:0; margin:0; }
.detail-empty { height: 100%; display: grid; place-content: center; padding: 34px; text-align: center; }
.empty-state-art { width: min(250px,80%); aspect-ratio: 9/7; margin: 0 auto 18px; object-fit: cover; border-radius: 18px; mix-blend-mode: multiply; }
.empty-orbit { width: 86px; height: 86px; display: grid; place-items: center; margin: 0 auto 18px; border: 1px dashed #aab4ad; border-radius: 50%; }
.empty-orbit span { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--ink-green-dark); border-radius: 20px 20px 20px 5px; }
.detail-empty h2 { margin: 0 0 7px; font-family: "Noto Serif SC", serif; font-size: 19px; }
.detail-empty p { margin: 0; color: var(--muted); font-size: var(--type-micro); line-height: 1.6; }
.detail-hero { position: relative; min-height: 250px; overflow: hidden; display: flex; align-items: flex-end; padding: 22px; color: white; background: var(--ink-green-dark); }
.hero-photo { position:absolute; inset:0; background-size:cover; background-position:center; transform:scale(1.015); }
.detail-hero.has-image .hero-photo { background-image:var(--property-image); }
.hero-photo.no-image { background:linear-gradient(135deg,rgba(244,241,233,.20),transparent 58%), repeating-linear-gradient(90deg,rgba(244,241,233,.18) 0 1px,transparent 1px 48px), repeating-linear-gradient(0deg,rgba(244,241,233,.12) 0 1px,transparent 1px 36px),linear-gradient(135deg,#345e50 0%,#173f35 54%,#7f4e39 150%); }
.hero-photo-status { position:relative; z-index:1; width:fit-content; max-width:100%; min-height:34px; display:grid; place-items:center; align-self:flex-start; margin:0 0 10px; padding:6px 10px; border:1px solid rgba(255,255,255,.56); border-radius:999px; color:#fff; background:rgba(15,45,37,.96); font-size:14px; line-height:1.35; letter-spacing:.02em; text-align:center; }
.hero-scrim { position:absolute; inset:0; background:linear-gradient(180deg,rgba(11,31,26,.05) 12%,rgba(11,31,26,.46) 58%,rgba(11,31,26,.9) 100%); }
.detail-photo-open { position:absolute; z-index:3; top:12px; right:12px; min-width:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:0 14px; border:1px solid rgba(255,255,255,.65); border-radius:999px; color:#fff; background:rgba(18,38,31,.72); box-shadow:0 2px 8px rgba(0,0,0,.22); cursor:pointer; font:inherit; font-size:13px; font-weight:650; }
.detail-photo-open:hover,.detail-photo-open:focus-visible { background:rgba(18,38,31,.88); outline:2px solid #fff; outline-offset:2px; }
.hero-copy { position: relative; z-index: 1; width: 100%; min-width:0; }
.hero-meta { max-width:100%; display:grid; justify-items:start; gap:7px; margin-bottom:13px; }
.developer-logos { max-width:100%; display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.developer-logos > small { max-width:100%; color:rgba(255,255,255,.88); font-size:14px; line-height:1.4; }
.developer-badge { display:inline-block; max-width:100%; padding:6px 10px; border:1px solid rgba(255,255,255,.24); border-radius:999px; color:#fff; background:rgba(15,45,37,.78); font-size:13px; font-weight:650; line-height:1.35; letter-spacing:.02em; overflow-wrap:anywhere; }
.developer-logo { width: 49px; height: 49px; display: inline-grid; place-items: center; padding: 5px; border-radius: 11px; background: white; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.developer-logo img { width: 100%; height: 100%; object-fit: contain; }
.freshness { max-width:100%; color:rgba(255,255,255,.88); font-size:14px; line-height:1.4; letter-spacing:.02em; overflow-wrap:anywhere; }
.detail-hero h2 { max-width:100%; margin:0; font-family:"Noto Serif JP", "Noto Serif SC", serif; font-size:24px; font-weight:650; line-height:1.26; letter-spacing:-.02em; overflow-wrap:anywhere; }
.detail-hero .detail-title-row h2 { flex:1 1 auto; min-width:0; }
.detail-hero p { margin:6px 0 13px; color:rgba(255,255,255,.92); font-size:16px; line-height:1.5; letter-spacing:.01em; overflow-wrap:anywhere; }
.access-line { display:flex; align-items:center; flex-wrap:wrap; gap:7px; font-size:14px; }
.access-line span, .access-line strong { padding: 5px 8px; border-radius: 20px; background: rgba(255,255,255,.12); }
.access-line strong { color: var(--ink-green-dark); background: white; }
.detail-body { padding: 17px 19px 80px; }
.price-summary { display: grid; grid-template-columns: 1.08fr .92fr; gap: 8px; }
.price-provenance { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:10px; padding:11px 12px; border:1px solid var(--hairline); border-radius:12px; background:var(--surface-subtle); }
.price-provenance > div { min-width:0; display:grid; align-content:start; gap:4px; }
.price-provenance small { color:var(--label-secondary); font-size:12px; line-height:1.35; }
.price-provenance strong { color:var(--label-primary); font-size:13px; font-weight:650; line-height:1.4; overflow-wrap:anywhere; }
.metric-card { min-height: 112px; padding: 12px; border: 1px solid var(--hairline); border-radius: 13px; background: var(--surface-control); }
.metric-card > small { color: var(--muted); font-size: var(--type-micro); }
.metric-card > strong { display: block; margin: 6px 0 8px; font-size: 20px; font-variant-numeric: tabular-nums; }
.metric-card strong small { margin-left: 3px; font-size: 12px; font-weight: 650; }
.metric-card em { display: block; color: var(--muted); font-size: var(--type-micro); font-style: normal; line-height: 1.45; }
.primary-metric { color:#fff; background:#173f35; border-color:#173f35; }
.primary-metric > small, .primary-metric em { color:rgba(255,255,255,.9); }
.primary-metric em i { width: 5px; height: 5px; display: inline-block; margin-right: 4px; border-radius: 50%; background: var(--estimate); }
.range-value { font-size: 12px !important; line-height: 1.45; }
.detail-section { margin-top: 24px; }
.incident-preview-section { padding-top: 2px; }
.incident-preview-content { display:grid; gap:10px; }
.incident-preview-state { margin:0; padding:11px 12px; border:1px solid var(--hairline); border-radius:11px; color:var(--label-primary); background:var(--surface-subtle); font-size:13px; line-height:1.5; }
.incident-preview-state[data-incident-state="partial"] { background:var(--surface-warning); }
.incident-preview-facts,.incident-preview-source { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; margin:0; overflow:hidden; border:1px solid var(--hairline); border-radius:11px; background:var(--hairline); }
.incident-preview-source { grid-template-columns:minmax(0,1fr); }
.incident-preview-facts > div,.incident-preview-source > div { min-width:0; padding:10px 11px; background:var(--surface-control); }
.incident-preview-facts dt,.incident-preview-source dt { color:var(--label-secondary); font-size:12px; line-height:1.4; }
.incident-preview-facts dd,.incident-preview-source dd { margin:4px 0 0; color:var(--label-primary); font-size:13px; font-weight:650; line-height:1.45; overflow-wrap:anywhere; }
.incident-preview-caveat { margin:0; color:var(--label-secondary); font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.incident-preview-retry { justify-self:start; min-height:40px; padding:8px 13px; border:1px solid var(--hairline); border-radius:10px; color:var(--label-primary); background:var(--surface-control); font:inherit; font-size:13px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 10px; }
.profile-heading-brands { max-width:56%; display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:6px; }
.profile-heading-brands .developer-logo { width:44px; height:36px; padding:4px; border:1px solid var(--hairline); border-radius:8px; box-shadow:none; }
.profile-heading-brands > small { color:var(--label-secondary); font-size:12px; line-height:1.4; }
.profile-developer-badge { max-width:56%; padding:5px 8px; border:1px solid var(--hairline); border-radius:8px; color:var(--label-primary); background:var(--surface-subtle); font-size:13px; line-height:1.4; overflow-wrap:anywhere; }
.section-heading div > small { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.section-heading h3 { margin: 2px 0 0; font-family: "Noto Serif SC", serif; font-size: 14px; }
.section-heading > span { color: var(--muted); font-size: var(--type-micro); }
.fact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; overflow: hidden; border: 1px solid var(--hairline); border-radius: 12px; background: var(--hairline); }
.fact { min-height: 61px; padding: 10px; background: var(--surface-control); }
.fact.wide { grid-column: 1 / -1; }
.fact small { display: block; margin-bottom: 4px; color: var(--muted); font-size: var(--type-micro); }
.fact strong { font-size: 12px; line-height: 1.45; }
.layout-prices { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface-control); }
.layout-prices div { padding: 11px; border-right: 1px solid var(--hairline); }
.layout-prices div:last-child { border-right: 0; }
.layout-prices span { display: block; color: var(--muted); font-size: 12px; }
.layout-prices strong { display: block; margin-top: 4px; font-size: 16px; font-variant-numeric: tabular-nums; }
.composition-note { margin: 7px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.transaction { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--hairline); font-size: 12px; }
.transaction > strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.transaction div strong { font-size: 12px; }
.transaction small { display: block; margin-top: 3px; color: var(--muted); font-size: var(--type-micro); }
.transaction .transaction-evidence-meta { grid-column: 1 / -1; min-width: 0; overflow-wrap: anywhere; }
.data-tag { justify-self: start; padding: 4px 6px; color: var(--label-evidence); background: var(--surface-evidence); border-radius: 5px; font-size: 12px; font-weight: 750; }
.facility-summary { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 9px; }
.facility-summary-item { display:inline-flex; align-items:center; gap:4px; padding:5px 7px; border:1px solid var(--hairline); border-radius:999px; background:var(--surface-control); font-size:12px; }
.facility-summary-item img { width:14px; height:14px; }
.facility-summary-item b { font-weight:750; }
.facility-summary-item em { color:var(--muted); font-style:normal; font-variant-numeric:tabular-nums; }
.facility-list { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; width:100%; min-width:0; }
.facility-category { min-width:0; max-width:100%; box-sizing:border-box; padding:9px; border:1px solid var(--hairline); border-radius:11px; background:var(--surface-control); }
.facility-category-head { display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:7px; padding-bottom:6px; border-bottom:1px solid var(--hairline); }
.facility-category-head > span { width:26px; height:26px; display:grid; place-items:center; border-radius:50%; background:var(--surface-subtle); }
.facility-category-head img { width:16px; height:16px; display:block; }
.facility-category-head strong { font-size:12px; }
.facility-category-head em,.facility-item em { color:var(--muted); font-size:12px; font-style:normal; font-variant-numeric:tabular-nums; }
.facility-item { display:flex; width:100%; min-width:0; max-width:100%; box-sizing:border-box; justify-content:space-between; gap:9px; align-items:center; padding:8px 1px 0 33px; }
.facility-item[hidden] { display:none !important; }
.facility-item p { min-width:0; flex:1 1 auto; overflow:hidden; margin:0; }
.facility-item em { flex:0 0 auto; }
.facility-item strong { display:block; overflow-wrap:anywhere; font-size:12px; line-height:1.4; white-space:normal; }
.facility-expand { min-height:44px; display:flex; align-items:center; margin:2px 0 0 33px; padding:6px 0; border:0; color:var(--brand); background:transparent; cursor:pointer; font:inherit; font-size:12px; font-weight:700; text-align:left; }
.facility-expand:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }
.context-list { display:grid; gap:6px; margin-bottom:14px; }
.context-row { display:grid; grid-template-columns:34px 1fr auto; align-items:center; gap:9px; padding:9px; border:1px solid color-mix(in srgb,var(--ink-green) 18%,var(--hairline)); border-radius:11px; background:color-mix(in srgb,var(--interactive-primary) 5%,var(--surface-control)); }
.context-station-mark { width:31px; height:31px; display:grid; place-items:center; border:2px solid var(--ink-green); border-radius:50%; color:var(--interactive-primary); background:var(--surface-control); font-size:12px; font-weight:850; }
.context-row p { margin:0; }
.context-row small,.context-row strong { display:block; }
.context-row small { color:var(--muted); font-size:var(--type-micro); }
.context-row strong { margin-top:2px; font-size:12px; }
.context-row em { color:var(--interactive-primary); font-size:12px; font-style:normal; font-variant-numeric:tabular-nums; }
.facility-context-head { display:flex; align-items:center; justify-content:space-between; margin:0 2px 7px; font-size:14px; }
.facility-context-head span { color:var(--muted); font-size:14px; }
.context-empty { margin:0; padding:12px; border:1px dashed var(--hairline); border-radius:11px; color:var(--muted); background:var(--surface-subtle); font-size:12px; line-height:1.55; }
.context-empty[data-coverage-state="not_covered"] { color:var(--label-warning); border-color:var(--separator-warning); background:var(--surface-warning); }
.locked-card { display: grid; grid-template-columns: 41px 1fr; gap: 10px; padding: 13px; color: var(--label-on-interactive); background: var(--surface-brand); border-radius: 12px; }
.facility-provenance { display:flex; flex-wrap:wrap; gap:5px 8px; margin-top:9px; color:var(--muted); font-size:var(--type-micro); line-height:1.4; }
.facility-provenance strong { color:var(--ink-green-dark); }
.facility-provenance[data-coverage-state="not_covered"] { color:var(--label-warning); }
.locked-card > span { width: 40px; height: 40px; display: grid; place-items: center; color: var(--label-on-interactive); background: color-mix(in srgb,var(--surface-brand) 72%,var(--surface-control)); border:1px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 900; }
.locked-card strong { font-size: 16px; line-height:1.4; }
.locked-card p { margin: 4px 0 0; color: var(--label-on-interactive); font-size: 14px; line-height: 1.55; }
.detail-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
.detail-action { min-height:44px; flex:1 1 104px; padding:7px 8px; border:1px solid rgba(255,255,255,.72); border-radius:9px; color:white; background:rgba(15,45,37,.96); cursor:pointer; font-size:12px; font-weight:750; line-height:1.4; }
.detail-action.is-active { color:#173f35; border-color:white; background:white; }

.layer-dock { position: fixed; z-index: 900; left: calc(296px + 50%); bottom: 14px; display: flex; gap: 2px; padding: 5px; transform: translateX(-50%); border: 1px solid var(--separator); border-radius: 14px; color:var(--label-primary); background: var(--surface-overlay); box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); transition: left .34s ease; }
.workspace.detail-open ~ .layer-dock { left: calc(296px + (100% - 296px - 420px)/2); }
.map-layer-panel { position:absolute; z-index:880; top:20px; right:20px; width:min(360px,calc(100% - 40px)); max-height:calc(100% - 40px); overflow:auto; padding:22px 20px; border:1px solid var(--hairline); border-radius:24px; color:var(--label-primary); background:var(--paper); box-shadow:var(--shadow-lg); overscroll-behavior:contain; }
.map-layer-panel[hidden] { display:none; }
.workspace.map-layer-panel-open > .explore-panel { display:none; }
.workspace.map-layer-panel-open > .explore-panel.is-collapsed { display:none; }
.map-layer-panel-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.map-layer-panel-head h2 { margin:0; font-family:var(--font-display,serif); font-size:22px; line-height:1.2; }
.map-layer-panel-note { margin:22px 0 12px; padding:14px 16px; border-radius:14px; color:var(--muted); background:var(--surface-subtle); font-size:var(--type-supporting); line-height:1.5; }
.map-layer-panel-note.layer-essential-intro { color:var(--label-primary); }
.map-layer-panel-rows { display:grid; }
.map-layer-section-title { margin:18px 0 2px; color:var(--muted); font-size:var(--type-micro); font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.map-layer-section-title--more { margin-top:22px; }
.map-layer-row { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:12px 4px; border-bottom:1px solid var(--separator); cursor:pointer; }
.map-layer-row:last-child { border-bottom:0; }
.map-layer-row span { display:grid; gap:5px; }
.map-layer-row strong { color:var(--label-primary); font-size:var(--type-body); font-weight:650; }
.map-layer-row small { color:var(--muted); font-size:var(--type-micro); line-height:1.4; }
.map-layer-row input { flex:0 0 auto; width:22px; height:22px; margin:0; accent-color:var(--interactive-primary); cursor:pointer; }
.map-layer-row:focus-within { outline:2px solid var(--focus-ring); outline-offset:2px; border-radius:8px; }
.map-hazard-control-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; border-bottom:1px solid var(--separator); }
.map-hazard-control-row .map-layer-row { border-bottom:0; }
.map-hazard-control-row > button { min-width:84px; min-height:40px; padding:0 10px; border:1px solid var(--separator); border-radius:999px; color:var(--interactive-primary); background:var(--surface-control); font:inherit; cursor:pointer; }
.map-hazard-control-row > button:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }
.map-layer-unavailable { min-height:68px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--separator); }
.map-layer-unavailable > span { display:grid; gap:4px; }
.map-layer-unavailable strong { font-size:var(--type-body); font-weight:600; }
.map-layer-unavailable small { color:var(--muted); font-size:var(--type-micro); line-height:1.4; }
.map-layer-unavailable button { min-width:64px; min-height:40px; padding:0 12px; border:1px solid var(--separator); border-radius:999px; color:var(--interactive-primary); background:var(--surface-control); font:inherit; cursor:pointer; }
.map-layer-unavailable button:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }
.map-layer-status-link { min-height:48px; margin-top:14px; padding:0 4px; border:0; color:var(--interactive-primary); background:transparent; font:inherit; text-align:left; cursor:pointer; }
@media (min-width:701px) {
  .map-layer-panel { position:fixed; z-index:1380; top:100px; right:24px; bottom:24px; width:min(360px,calc(100vw - 48px)); max-height:none; }
}
.mobile-more-menu { display:none; }
.layer-dock button { min-width: 54px; min-height: 44px; padding: 7px 8px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font-size: 10px; }
.layer-dock button span { display: block; margin-bottom: 2px; font-size: 13px; }
.layer-dock button > img { width:15px; height:15px; display:block; margin:0 auto 2px; filter:var(--icon-filter); }
.dock-building { width:12px; height:14px; margin:0 auto 3px !important; border:1.5px solid currentColor; border-radius:2px; background:linear-gradient(90deg,transparent 42%,currentColor 43%,currentColor 57%,transparent 58%); }
.dock-dot { width:10px; height:10px; margin:2px auto 5px !important; border-radius:50%; background:currentColor; }
.dock-rail { width:15px; height:11px; margin:2px auto 4px !important; border-top:2px solid currentColor; border-bottom:2px solid currentColor; transform:skewX(-18deg); }
.layer-dock button.active { color: var(--label-selected); background: var(--surface-selected); font-weight: 750; }
.layer-notice { position:fixed; z-index:1100; left:calc(296px + 50%); bottom:82px; max-width:min(360px,calc(100vw - 32px)); padding:10px 14px; transform:translateX(-50%); border:1px solid var(--separator); border-radius:12px; color:var(--label-primary); background:var(--surface-overlay); box-shadow:var(--shadow-lg); font-size:var(--type-micro); font-weight:700; }
.layer-notice[hidden] { display:none; }
.data-status-panel { position:fixed; z-index:1450; left:50%; bottom:82px; width:min(390px,calc(100vw - 32px)); max-height:min(70dvh,560px); overflow:auto; padding:16px; transform:translateX(-50%); border:1px solid var(--hairline); border-radius:var(--radius-panel,16px); color:var(--ink); background:var(--paper); box-shadow:var(--shadow-lg); }
.data-status-panel[hidden] { display:none; }
.data-status-panel h2 { margin:0 36px 6px 0; font-family:var(--font-display,serif); font-size:16px; }
.data-status-panel p { margin:0; color:var(--muted); font-size:var(--type-micro); line-height:1.55; }
.data-status-panel small { display:block; margin-top:9px; color:var(--muted); font-size:var(--type-micro); line-height:1.45; }
.data-status-panel h3 { margin:14px 0 7px; font-size:var(--type-micro); }
.data-status-sources { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.data-status-sources li { padding-top:8px; border-top:1px solid var(--hairline); color:var(--muted); font-size:var(--type-micro); line-height:1.5; overflow-wrap:anywhere; }
.data-status-sources li strong { display:block; color:var(--ink); }
.data-status-sources li > span { display:block; color:var(--muted); }
.data-status-sources a { color:var(--ink-green-dark); text-decoration:underline; text-underline-offset:2px; }
.data-status-sources p { margin:4px 0 0; }
.data-status-panel > button:first-child { position:absolute; top:6px; right:7px; width:44px; height:44px; border:0; background:transparent; color:var(--ink); cursor:pointer; font-size:20px; }
.data-status-intro { margin-bottom:2px !important; }
.data-status-resource { padding:10px 0; border-bottom:1px solid var(--hairline); }
.data-status-resource strong { display:block; margin-bottom:4px; font-size:var(--type-micro); }
.data-status-resource b { color:var(--ink); }
.data-status-resource button { min-height:44px; margin-top:6px; padding:7px 10px; border:1px solid var(--hairline); border-radius:10px; color:var(--ink-green-dark); background:var(--paper); cursor:pointer; font-size:var(--type-micro); }
.data-status-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.data-status-geo { padding-top:10px !important; }
.data-status-source-disclosure { margin-top:6px; }
.data-status-source-disclosure > summary { min-height:44px; display:flex; align-items:center; cursor:pointer; font-size:var(--type-micro); font-weight:700; }
@media (min-width:900px) {
  .data-status-panel { top:32px; right:16px; bottom:16px; left:auto; width:min(420px,calc(100vw - 328px)); max-height:calc(100dvh - 48px); transform:none; }
}
.language-control { position:relative; z-index:2; }
.language-trigger { min-width:58px; min-height:44px; display:flex; align-items:center; justify-content:center; gap:6px; padding:5px 8px; border:1px solid var(--hairline); border-radius:12px; color:var(--ink-green-dark); background:var(--paper); cursor:pointer; font-size:10px; font-weight:800; transition:border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.language-trigger:hover,.language-trigger[aria-expanded="true"] { border-color:var(--interactive-hover); background:var(--surface-control); box-shadow:0 5px 18px color-mix(in srgb,var(--interactive-hover) 9%,transparent); }
.language-glyph { position:relative; width:20px; height:20px; display:block; margin:0; color:var(--ink-green-dark); }
.language-glyph i,.language-glyph em { position:absolute; font-style:normal; font-weight:850; line-height:1; }
.language-glyph i { top:0; left:0; font-size:12px; }
.language-glyph em { right:0; bottom:0; color:var(--accent); font-size:10px; }
.language-dialog { position:fixed; inset:74px 16px auto auto; width:min(340px,calc(100vw - 32px)); max-height:min(calc(100dvh - 90px),calc(var(--language-visual-viewport-height, 100dvh) - 16px)); overflow:auto; margin:0; padding:8px; border:1px solid var(--hairline); border-radius:16px; color:var(--ink); background:var(--paper); box-shadow:var(--shadow-lg); }
.language-dialog::backdrop { background:rgba(18,31,26,.28); backdrop-filter:blur(2px); }
.language-dialog-head { display:flex; align-items:center; justify-content:space-between; padding:4px 4px 4px 10px; }
.language-dialog-head p { margin:0; color:var(--accent); font-size:11px; font-weight:850; letter-spacing:.16em; }
.language-dialog-head button { width:44px; height:44px; border:0; border-radius:10px; color:var(--ink); background:transparent; cursor:pointer; font-size:20px; }
.language-dialog nav { display:grid; gap:3px; }
.language-dialog a { min-height:48px; display:flex; align-items:center; padding:0 13px; border-radius:12px; color:var(--ink); text-decoration:none; font-size:14px; }
.language-dialog a:hover,.language-dialog a:focus-visible { color:var(--label-on-interactive); background:var(--interactive-primary); outline:3px solid var(--focus-ring); }
.language-dialog a[aria-current="page"] { color:var(--label-selected); background:var(--surface-selected); font-weight:800; }
.sample-guide { position:absolute; z-index:820; top:112px; left:17px; width:min(320px,calc(100% - 34px)); padding:16px 48px 16px 16px; border:1px solid var(--hairline); border-radius:16px; color:var(--label-primary); background:var(--surface-control); box-shadow:var(--shadow-lg); }
.sample-guide[hidden] { display:none; }
.sample-guide > strong { display:block; color:var(--label-primary); font-size:14px; }
.sample-guide > p { margin:5px 0 12px; color:var(--muted); font-size:12px; line-height:1.45; }
.sample-guide-actions { display:grid; gap:7px; margin-bottom:12px; }
.sample-guide-actions > button { display:grid; grid-template-columns:28px minmax(0,1fr) 12px; gap:9px; align-items:center; width:100%; min-height:54px; padding:9px; border:1px solid var(--hairline); border-radius:12px; color:var(--label-primary); background:var(--surface-raised); text-align:left; cursor:pointer; }
.sample-guide-step { display:grid; width:28px; height:28px; place-items:center; border-radius:50%; color:var(--accent); background:var(--surface-selected); font-size:11px; font-weight:800; }
.sample-guide-actions strong,.sample-guide-actions small { display:block; }
.sample-guide-actions strong { font-size:12px; line-height:1.35; }
.sample-guide-actions small { margin-top:3px; color:var(--muted); font-size:10px; line-height:1.4; }
.sample-guide-chevron { color:var(--muted); font-size:19px; }
.sample-guide-actions > button:hover,.sample-guide-actions > button:focus-visible { border-color:var(--accent); outline:2px solid var(--focus-ring); outline-offset:1px; }
.sample-guide > #sample-guide-close { position:absolute; top:4px; right:4px; width:44px; height:44px; display:grid; place-items:center; border:0; border-radius:50%; background:transparent; cursor:pointer; }
.sample-guide > #sample-guide-close::before { display:none; }
.sample-guide > #sample-guide-close img { width:16px; height:16px; filter:var(--icon-filter); }
.sample-guide-open { min-height:44px; padding:10px 12px; border:1px solid var(--brandInk,#173F35); border-radius:8px; color:white; background:var(--brandInk,#173F35); cursor:pointer; font-size:12px; }
.saved-panel { position:fixed; z-index:2100; top:74px; right:16px; width:min(340px,calc(100vw - 32px)); padding:14px; border:1px solid var(--separator); border-radius:16px; color:var(--label-primary); background:var(--surface-overlay); box-shadow:var(--shadow-lg); backdrop-filter:blur(14px); }
.saved-panel[hidden] { display:none; }
.saved-head small { display:block; color:var(--accent); font-size:10px; font-weight:850; letter-spacing:.14em; }
.saved-head strong { display:block; margin-top:2px; font-family:"Noto Serif SC","Noto Serif JP",serif; font-size:16px; }
.saved-list { display:grid; gap:6px; max-height:min(50dvh,420px); margin-top:10px; overflow:auto; }
.saved-entry { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; align-items:center; }
.saved-item { width:100%; display:grid; grid-template-columns:1fr auto; gap:8px; align-items:center; padding:10px; border:1px solid var(--separator); border-radius:10px; color:var(--label-primary); background:var(--surface-control); text-align:left; cursor:pointer; }
.saved-item strong,.saved-item small { display:block; }
.saved-item strong { font-size:12px; line-height:1.35; }
.saved-item small { margin-top:3px; color:var(--muted); font-size:12px; line-height:1.4; }
.saved-item span { color:var(--ink-green-dark); font-size:12px; font-weight:800; }
.saved-remove { min-width:48px; min-height:44px; padding:0 8px; border:1px solid var(--separator); border-radius:10px; color:var(--label-primary); background:var(--surface-control); cursor:pointer; font-size:12px; font-weight:750; }
.saved-empty { padding:16px 4px; color:var(--muted); font-size:12px; line-height:1.5; }
.guest-panel { position:fixed; z-index:2100; top:74px; right:16px; width:min(420px,calc(100vw - 32px)); max-height:min(74dvh,620px); overflow:auto; padding:18px 20px 20px; border:1px solid var(--separator); border-radius:20px; color:var(--label-primary); background:var(--surface-overlay); box-shadow:var(--shadow-lg); backdrop-filter:blur(14px); }
.guest-panel[hidden] { display:none; }
.guest-tools-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding-bottom:16px; }
.guest-tools-head small { display:block; margin-bottom:4px; color:var(--label-secondary); font-size:11px; letter-spacing:.08em; }
.guest-tools-head h2 { margin:0; color:var(--label-primary); font-family:"Noto Serif SC","Noto Serif JP",serif; font-size:22px; line-height:1.3; }
.guest-tools-close { flex:0 0 44px; width:44px; height:44px; display:grid; place-items:center; border:1px solid var(--separator); border-radius:50%; color:var(--label-primary); background:var(--surface-control); cursor:pointer; }
.guest-tools-close img { width:18px; height:18px; filter:var(--icon-filter); }
.guest-tools-close:hover { background:var(--surface-subtle); }
.guest-tools-content { display:grid; gap:12px; }
.guest-tools-preview { margin:0; color:var(--label-primary); font-size:16px; font-weight:700; line-height:1.4; }
.guest-tools-notice { padding:14px 16px; border-radius:14px; color:var(--label-secondary); background:var(--surface-subtle); }
.guest-tools-notice p { margin:0; font-size:13px; line-height:1.5; }
.guest-tools-actions { display:grid; margin-top:2px; }
.guest-tools-action { min-height:56px; display:grid; grid-template-columns:24px minmax(0,1fr) 18px; align-items:center; gap:12px; padding:0 4px; border:0; border-bottom:1px solid var(--separator); color:var(--label-primary); background:transparent; text-align:left; cursor:pointer; font:inherit; font-size:15px; font-weight:650; }
.guest-tools-action:last-child { border-bottom:0; }
.guest-tools-action:hover { color:var(--interactive-primary); }
.guest-tools-action-icon { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.guest-tools-chevron { justify-self:end; color:var(--label-secondary); font-size:23px; font-weight:400; }
.guest-tools-action:focus-visible,.guest-tools-close:focus-visible { outline:3px solid var(--focus-ring); outline-offset:2px; }

.modal { position: fixed; z-index: 2000; inset: 0; display: grid; place-items: center; background: rgba(20,31,27,.42); backdrop-filter: blur(5px); }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(430px,calc(100vw - 32px)); padding: 27px; border-radius: 20px; background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.commute-card { max-height: min(90dvh,820px); overflow-y: auto; }
.commute-card > .eyebrow { margin: 0 0 8px; color: var(--interactive-primary); font-size: 12px; letter-spacing: .12em; }
.commute-card h2 { margin-bottom: 10px; font-size: clamp(22px,5vw,29px); }
.commute-card #commute-unavailable-copy { color: var(--muted); font-size: 13px; line-height: 1.55; }
.commute-availability-guidance { margin:8px 0 12px; padding:14px; border:1px solid var(--separator); border-radius:14px; background:var(--surface-control); }
.commute-availability-guidance[hidden] { display:none; }
.commute-availability-guidance > p { margin:0; color:var(--muted); font-size:13px; line-height:1.55; }
.commute-capability-retry { min-height:44px; padding:8px 10px; border:1px solid var(--separator); border-radius:10px; color:var(--label-selected); background:var(--surface-overlay); font:inherit; font-size:12px; font-weight:700; cursor:pointer; }
.commute-capability-retry:focus-visible { outline:3px solid var(--focus-ring); outline-offset:2px; }
.commute-capability-retry { width:100%; margin-top:8px; }
.commute-capability-retry[hidden] { display:none; }
.commute-form label { min-width: 0; margin: 10px 0; }
.commute-form label span { display:block; }
.commute-form select,.commute-form input { box-sizing:border-box; width:100%; min-height:42px; }
.commute-form-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.commute-edit-cancel { width:100%; min-height:44px; border:1px solid var(--separator); border-radius:12px; color:var(--interactive-primary); background:var(--surface-control); cursor:pointer; font:inherit; }
.commute-destination-field { display:grid; gap:6px; margin:10px 0; }
.commute-card.destination-open > .eyebrow,.commute-card.destination-open > #commute-title { display:none; }
.commute-card.results-open > .eyebrow,.commute-card.results-open > #commute-title { display:none; }
.commute-card.destination-open > .modal-close { display:none; }
.commute-destination-open { width:100%; min-height:52px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 14px; border:1px solid var(--separator); border-radius:14px; color:var(--label-primary); background:var(--surface-control); text-align:left; }
.commute-destination-open > span:last-child { color:var(--label-secondary); font-size:24px; line-height:1; }
.commute-destination-task[hidden] { display:none; }
.commute-results-task[hidden] { display:none; }
.commute-results-task > h2 { margin:0 0 8px; }
.commute-result-condition-summary { margin:0 0 12px; padding:10px 12px; border-radius:12px; color:var(--label-secondary); background:var(--surface-control); font-size:var(--type-supporting); line-height:1.5; overflow-wrap:anywhere; }
.commute-coverage-disclosure[hidden] { display:none; }
.commute-coverage-disclosure { margin:0 0 12px; padding:10px 12px; border-radius:12px; color:var(--label-secondary); background:var(--surface-control); font-size:var(--type-supporting); line-height:1.5; overflow-wrap:anywhere; }
.commute-coverage-disclosure #commute-result-coverage-copy p { margin:4px 0; color:var(--muted); }
.commute-result-count { margin:0; color:var(--label-primary); font-size:var(--type-supporting); font-weight:700; }
.commute-destination-back { min-height:44px; margin:0 0 8px; padding:6px 0; border:0; color:var(--interactive-primary); background:transparent; text-align:left; }
.commute-results-edit { margin:14px 0 0; }
.commute-destination-task h2 { margin:0 0 14px; }
.commute-destination-search-wrap { display:block; margin:0 0 10px; }
.commute-destination-search-wrap input { width:100%; min-height:48px; }
.commute-destination-list { display:grid; max-height:min(56dvh,500px); overflow:auto; overscroll-behavior:contain; }
.commute-destination-row { min-width:0; width:100%; min-height:64px; display:grid; grid-template-columns:auto minmax(0,1fr) 18px; align-items:center; gap:12px; padding:9px 2px; border:0; border-bottom:1px solid var(--separator); border-radius:0; background:transparent; text-align:left; }
.commute-destination-row[aria-selected="true"] .commute-destination-copy strong { color:var(--interactive-primary); }
.commute-destination-copy { min-width:0; }
.commute-destination-copy strong,.commute-destination-copy small { display:block; }
.commute-destination-copy strong { overflow-wrap:anywhere; }
.commute-destination-copy small { margin-top:3px; color:var(--label-secondary); line-height:1.35; }
.commute-destination-symbols { display:flex; align-items:center; gap:4px; }
.commute-station-symbol { width:34px; height:34px; display:inline-flex; flex:none; flex-direction:column; align-items:center; justify-content:center; overflow:hidden; border:2px solid var(--line); border-radius:50%; color:var(--label-primary); background:var(--surface-content); font-size:9px; line-height:1.05; }
.commute-station-symbol b { font:inherit; font-weight:750; }
.commute-station-symbol em { font-size:10px; font-style:normal; }
.commute-station-symbol.jr-east { border-radius:5px; }
.commute-station-symbol.tokyu { color:white; background:var(--line); }
.commute-destination-chevron { color:var(--label-secondary); font-size:22px; }
.commute-destination-empty { padding:18px 4px; color:var(--muted); }
.commute-destination-task :focus-visible { outline:3px solid var(--focus-ring); outline-offset:2px; }
.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; }
.commute-notice,.commute-empty { padding:10px 12px; border-radius:10px; color:var(--label-primary); background:var(--surface-control); font-size:12px; line-height:1.5; }
.commute-results { display:grid; gap:9px; margin-top:12px; }
.commute-result { padding:12px; border:1px solid var(--separator); border-radius:12px; background:var(--surface-overlay); }
.commute-result-head { display:flex; justify-content:space-between; gap:12px; align-items:baseline; }
.commute-result-station { display:flex; align-items:center; gap:8px; min-width:0; }
.commute-result-official-symbols { display:flex; align-items:center; gap:3px; flex:none; }
.commute-result-official-symbols .commute-station-symbol { width:29px; height:29px; font-size:8px; }
.commute-result-official-symbols .commute-station-symbol em { font-size:9px; }
.commute-municipality-group { display:grid; gap:7px; margin-top:12px; }
.commute-municipality-group > h3 { display:flex; align-items:baseline; gap:7px; margin:0; padding:0 2px 4px; border-bottom:1px solid var(--separator); color:var(--label-primary); font:600 13px/1.35 var(--font-interface); }
.commute-municipality-group > h3 small { color:var(--label-secondary); font-size:10px; font-weight:500; }
.commute-reachable-station { background:transparent; border:0; }
.commute-reachable-station > span { display:flex; gap:2px; align-items:center; justify-content:center; min-width:38px; min-height:31px; padding:2px; border:2px solid var(--reach); border-radius:13px; background:rgba(255,253,248,.95); box-shadow:0 1px 5px rgba(20,35,28,.25); }
.commute-reachable-station .commute-station-symbol { width:25px; height:25px; border-width:1.5px; font-size:7px; }
.commute-reachable-station .commute-station-symbol em { font-size:8px; }
.commute-result-head strong { font-size:15px; }
.commute-result-head b { color:var(--interactive-primary); white-space:nowrap; }
.commute-result p { margin:5px 0 0; color:var(--muted); font-size:12px; line-height:1.45; }
.commute-result p.commute-result-secondary { font-size:var(--type-supporting); }
.commute-result-disclosure { margin-top:10px; padding-top:8px; border-top:1px solid var(--separator); color:var(--label-secondary); font-size:var(--type-supporting); line-height:1.5; }
.commute-result-disclosure > summary { min-height:40px; display:flex; align-items:center; color:var(--interactive-primary); cursor:pointer; font-weight:650; }
.commute-route-disclosure ol { display:grid; gap:7px; margin:6px 0 0; padding-left:20px; }
.commute-route-disclosure li { overflow-wrap:anywhere; }
.commute-source-disclosure .commute-sources { margin-top:5px; }
.commute-sources { font-size:11px; line-height:1.5; }
.commute-sources h3 { margin:4px 0; font-size:11px; font-weight:650; }
.commute-sources ul { display:grid; gap:6px; margin:0; padding:0; list-style:none; }
.commute-sources li { color:var(--muted); }
.commute-sources a { color:var(--interactive-primary); }
.commute-source-change { margin:3px 0 0; }
.commute-load-more { width:100%; min-height:42px; border:1px solid var(--separator); border-radius:10px; background:var(--surface-control); }
.commute-load-more[hidden] { display:none; }
.modal-card h2 { margin: 0 0 20px; font-family: serif; }
.modal-card label { display: block; margin: 14px 0; font-size: var(--type-supporting); font-weight: 750; }
.modal-card input { width: 100%; margin-top: 7px; padding: 10px; border: 1px solid var(--hairline); border-radius: 9px; }
.modal-card input[type="range"] { accent-color: var(--interactive-primary); }
.modal-close { position: absolute; top: 5px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 21px; }
.modal-card output { float: right; color: var(--ink-green); }
.modal:has(.commute-card) { place-items: end center; background: linear-gradient(180deg, transparent 12%, rgba(20,31,27,.12)); backdrop-filter: none; }
.modal:has(.commute-card) .commute-card { width: min(560px,100vw); max-height: min(78dvh,760px); padding: 28px 24px calc(22px + env(safe-area-inset-bottom)); border: 1px solid var(--separator); border-bottom: 0; border-radius: 24px 24px 0 0; box-shadow: 0 -16px 48px rgba(17,35,29,.18); }
.explore-panel.commute-open { overflow-y:auto; overscroll-behavior:contain; }
.explore-panel.commute-open > :not(.mode-tabs):not(.line-task-heading):not(.explore-panel-toggle):not(#commute-modal) { display:none!important; }
.modal.commute-inline { position:static; inset:auto; z-index:auto; display:block; width:auto; height:auto; overflow:visible; background:transparent; backdrop-filter:none; }
.modal.commute-inline .commute-card { width:auto; max-height:none; overflow:visible; padding:0 6px 20px; border:0; border-radius:0; background:transparent; box-shadow:none; }
.commute-inline .modal-close { top:8px; right:4px; z-index:2; }
.commute-inline .commute-card h2 { margin-right:42px; }
@media (min-width: 701px) {
  .modal:has(.commute-card) { place-items: center; background: rgba(20,31,27,.26); backdrop-filter: blur(2px); }
  .modal:has(.commute-card) .commute-card { width: min(560px,calc(100vw - 48px)); max-height: min(90dvh,820px); border-bottom: 1px solid var(--separator); border-radius: 24px; }
  .workspace > .explore-panel.commute-open { z-index:1300; }
  .workspace > .explore-panel.commute-open .modal.commute-inline { position:static; width:auto; height:auto; background:transparent; box-shadow:none; }
  .workspace > .explore-panel.commute-open .modal.commute-inline .commute-card { width:auto; max-height:none; padding:0 4px 20px; border:0; border-radius:0; background:transparent; box-shadow:none; }
}
.transfer-row { display: flex; gap: 7px; }
.transfer-row button { min-height:44px; padding: 7px 10px; border: 1px solid var(--separator); border-radius: 20px; color:var(--label-primary); background: var(--surface-control); font-size: var(--type-micro); }
.transfer-row button.active { color: var(--label-selected); border-color: var(--interactive-primary); background: var(--surface-selected); }
.primary-button { width: 100%; margin-top: 19px; }

@media (max-width: 1100px) {
  .topbar { grid-template-columns:180px minmax(190px,1fr) auto; gap:12px; padding-inline:14px; }
  .topbar > * { min-width: 0; }
  .topbar > .brand { gap:8px; }
  .topbar > .brand > span:last-child > strong:not(.brand-name-compact) { display:none; }
  .topbar > .brand .brand-name-compact { display:block; }
  .topbar > .brand small { display:none; }
  .top-actions { gap:2px; }
  .quiet-button { padding-inline:8px; }
  .workspace, .workspace.detail-open { grid-template-columns: 250px minmax(0,1fr); }
  .detail-panel { position: fixed; z-index: 1200; top: 64px; right: 0; bottom: 0; width: min(420px,45vw); transform: translateX(100%); transition: transform .32s ease; box-shadow: -18px 0 55px rgba(25,40,35,.17); }
  .workspace.detail-open .detail-panel { transform: translateX(0); }
  .layer-dock, .workspace.detail-open ~ .layer-dock { left: calc(250px + (100% - 250px)/2); }
}

@media (min-width: 1101px) and (max-width: 1200px) {
  /* A 1133px iPad viewport is still tablet density: keep the brand and the
     complete action group on row one, then give search its own full row. */
  .app-shell { grid-template-rows:112px minmax(0,1fr); }
  .topbar {
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:54px 48px;
    gap:0 12px;
    padding:4px 14px;
  }
  .topbar > * { min-width:0; }
  .topbar > .brand { grid-column:1; grid-row:1; gap:10px; }
  .topbar > .search-wrap { grid-column:1 / -1; grid-row:2; width:100%; }
  .topbar > .top-actions { grid-column:2; grid-row:1; }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .app-shell { grid-template-rows: 112px minmax(0, 1fr); }
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 54px 48px;
    gap: 0 12px;
    padding: 4px 14px;
  }
  .topbar > .brand { grid-column: 1; grid-row: 1; gap: 10px; }
  html body .app-shell .topbar > .brand > span:last-child > strong.brand-name-full { display: block; }
  .topbar > .brand .brand-name-compact { display: none; }
  .topbar > .brand small { display: block; }
  .topbar > .search-wrap { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .topbar > .top-actions { grid-column: 2; grid-row: 1; }
  .detail-panel { top: 112px; }
  /* The tablet detail sheet occupies the map's right edge; keep its map
     actions and map itself in the remaining map lane rather than underneath
     the sheet. Resizing the map viewport preserves the geographic center; it
     does not run a camera correction or override a user gesture. */
  .workspace.detail-open { grid-template-columns: minmax(0, 1fr); }
  .workspace.detail-open > .explore-panel { display: none; }
  .workspace.detail-open .map-stage {
    width: calc(100% - min(420px, 45vw));
    justify-self: start;
  }
  .workspace.detail-open .map-toolbar { top: 90px; left: 9px; right: auto; }
  .workspace.detail-open ~ .layer-dock { left: calc((100% - min(420px, 45vw)) / 2); }
}

@media (min-width: 701px) and (max-width: 950px) {
  /* On tablet-width P-001, the browse dock occupies the lower-left map area.
     Route layer controls through the dedicated P-011 toolbar entry there. */
  .workspace.p001-browse ~ .layer-dock { display: none; }
}

@media (max-width: 700px) {
  .app-shell { grid-template-rows:112px 1fr; }
  .top-actions { display:none; }
  .topbar { display:grid; grid-template-columns:minmax(0,1fr) 44px 44px; grid-template-rows:58px 48px; gap:0 3px; padding:0 9px; }
  .topbar > .brand { display:flex; grid-column:2 / -1; grid-row:2; justify-self:end; gap:4px; min-width:0; max-width:100%; }
  .topbar > .brand .brand-mark,.topbar > .brand .brand-mark img { width:28px; height:28px; }
  .topbar > .brand strong { overflow:hidden; font-size:15px; letter-spacing:.02em; text-overflow:ellipsis; white-space:nowrap; }
  .topbar > .brand > span:last-child > strong:not(.brand-name-compact) { display:none; }
  .topbar > .brand .brand-name-compact { display:block; }
  .topbar > .brand small { display:none; }
  .topbar > .brand > span:last-child { display:block; min-width:0; overflow:hidden; }
  .search-wrap { grid-column:1; grid-row:1; min-width:0; }
  .mobile-primary-actions { display:contents; }
  .mobile-explore-toggle { grid-column:1; grid-row:2; justify-self:start; }
  .mobile-language-toggle { grid-column:2; grid-row:1; }
  .mobile-more-toggle { grid-column:3; grid-row:1; }
  .mobile-more-toggle,.mobile-language-toggle { display:inline-grid; border-radius:50%; background:var(--surface-control); box-shadow:0 2px 8px rgba(20,35,31,.12); }
  .compact-rail-chart-action { display:none; }
.mobile-more-menu { position:fixed; z-index:1600; top:66px; right:9px; width:min(280px,calc(100vw - 18px)); display:grid; gap:4px; padding:8px; border:1px solid var(--separator); border-radius:16px; background:var(--surface-control); box-shadow:var(--shadow-lg); }
  .mobile-more-menu[hidden] { display:none; }
  .mobile-more-menu button { min-height:44px; padding:10px 12px; border:0; border-radius:10px; color:var(--label-primary); background:transparent; text-align:left; font-size:var(--type-control); cursor:pointer; }
  .mobile-more-menu button:hover,.mobile-more-menu button:focus-visible { color:var(--interactive-primary); background:var(--surface-subtle); }
  .language-trigger { min-width:44px; width:44px; height:44px; min-height:44px; gap:2px; padding:2px; border-radius:12px; }
  .mobile-language-toggle .language-glyph { width:18px; height:18px; }
  .mobile-language-toggle .language-glyph i { font-size:11px; }
  .mobile-language-toggle .language-glyph em { font-size:10px; }
  .language-trigger b { min-width:13px; display:block; color:var(--ink-green-dark); font-size:10px; line-height:1; }
  .language-dialog { inset:auto 9px calc(9px + env(safe-area-inset-bottom)) 9px; width:auto; max-height:min(calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 18px),calc(var(--language-visual-viewport-height, 100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 18px)); padding:8px; border-color:rgba(36,95,78,.18); border-radius:20px; box-shadow:0 26px 80px rgba(18,31,26,.28); }
  .profile-button { width: 44px; height: 44px; display:grid; place-items:center; padding: 0; border-radius:12px; }
  .profile-button img { width:23px; height:23px; }
  .profile-button span { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  /* Keep the search in its first grid track. width:100% makes a grid item
     size against the whole header and lets the input paint underneath the
     language/more buttons at phone widths. */
  .search-wrap { min-width:0; min-height:50px; height:50px; padding-right:44px; border:1px solid var(--separator); border-radius:25px; background:var(--surface-control); box-shadow:0 5px 18px rgba(20,35,31,.12); }
  .search-wrap:focus-within { box-shadow:0 0 0 3px color-mix(in srgb,var(--interactive-hover) 22%,transparent),0 5px 18px rgba(20,35,31,.12); }
  .search-wrap .search-icon { margin-left:16px; }
  .search-wrap kbd { display: none; }
  .search-wrap input { padding:0 10px; font-size:var(--type-control); }
  .search-clear { margin-right:0; }
  .search-results { position:fixed; z-index:1500; top:calc(112px + env(safe-area-inset-top)); inset-inline:12px; max-height:min(52dvh,430px); border-radius:18px; }
  .workspace, .workspace.detail-open { display: block; }
  .map-stage { position: absolute; inset: 0; }
  .explore-panel { position:absolute; z-index:650; top:9px; left:9px; right:9px; height:auto; max-height:min(52dvh,330px); overflow-y:auto; padding:11px; border:0; border-radius:15px; box-shadow:var(--shadow-lg); transition:opacity .2s ease,transform .3s ease,width .22s ease; }
  .explore-panel-toggle { position:absolute; z-index:2; top:5px; right:5px; width:38px; height:38px; display:grid; place-items:center; padding:0; border:1px solid var(--hairline); border-radius:10px; color:var(--ink-green-dark); background:rgba(255,255,252,.94); box-shadow:0 2px 8px rgba(25,40,35,.08); cursor:pointer; font-size:16px; }
  .explore-panel-toggle b { display:none; }
  .explore-panel .mode-tabs { margin-right:43px; }
  .explore-panel.is-collapsed { display:none; }
  .workspace > .explore-panel.commute-open { top:auto; right:9px; bottom:0; left:9px; width:auto; height:auto!important; max-height:min(72dvh,620px); padding:16px 12px calc(18px + env(safe-area-inset-bottom)); border:1px solid var(--separator); border-bottom:0; border-radius:24px 24px 0 0; background:var(--surface-content); box-shadow:0 -16px 48px rgba(17,35,29,.18); }
  .workspace.detail-open .explore-panel { pointer-events: none; opacity: 0; transform: translateY(-12px); }
  .panel-heading, .subcenters, .insight-card, .line-card.muted, .advanced-search, .section-title { display: none; }
  .core-area-entry { display:none; }
  .core-area-entry[style*="display: block"] { display:block; }
  .core-area-entry .named-area-heading { display:block; }
  .mode-tabs { margin: 0 0 8px; }
  .line-card { margin: 0; padding: 9px; }
  .active-line-summary { gap:6px; }
  .line-card.active.selected-line-card { min-height:58px; grid-template-columns:5px 28px minmax(0,1fr) 34px; gap:7px; }
  .selected-line-card .line-swatch { height:30px; align-self:center; }
  .map-legend { display: none; }
  .map-toolbar { top: 136px; right: 9px; }
  .map-layer-panel { z-index:1380; top:auto; right:9px; bottom:calc(10px + env(safe-area-inset-bottom)); width:min(360px,calc(100% - 18px)); max-height:min(72dvh,600px); padding:20px 18px; border-radius:22px; }
  .map-layer-panel-note { margin-top:16px; }
  .map-layer-row { min-height:68px; }
  /* Keep map filtering operable over the mobile detail sheet. */
  .filter-panel { z-index: 1400; }
  /* Keep map actions available above the mobile detail sheet. Hiding the
     toolbar here removed the only map-reset affordance while a building was
     selected, despite leaving the control in the accessibility tree. */
  .station-marker { width: 44px; height: 48px; }
  .rail-symbol { width: 30px; height: 30px; grid-template-rows: 10px 10px; }
  .rail-symbol b,.rail-symbol em { font-size: 10px; }
  .transfer-station { width: 52px; }
  .transfer-station .rail-symbol { width: 27px; height: 27px; }
  .station-label { font-size: 10px !important; }
  .station-orbit-card { top:calc(min(52dvh,330px) + 14px); left:9px; width:min(178px,calc(100% - 64px)); padding:46px 9px 7px; transition:opacity .2s ease,transform .3s ease; }
  .station-orbit-card > strong { font-size:12px; }
  .station-orbit-card p { margin:3px 0 5px; overflow:visible; font-size:12px; line-height:1.35; text-overflow:clip; white-space:normal; }
  .station-orbit-card p b { font-size:12px; }
  .orbit-kicker { max-width:calc(100% - 38px); margin-bottom:2px; font-size:var(--type-micro); letter-spacing:.04em; }
  /* The compact card may be smaller, but its two direct actions still keep
     the shared 44px touch-target contract. */
  .orbit-toggle { min-height:64px; padding:10px 0; }
  .orbit-close { top:1px; right:1px; width:44px; height:44px; font-size:15px; }
  .workspace.explore-collapsed .station-orbit-card { top:102px; }
  .sample-guide { position:fixed; z-index:820; top:74px; right:9px; bottom:auto; left:9px; width:auto; max-height:calc(100dvh - 245px - env(safe-area-inset-bottom)); overflow:auto; padding:12px 52px 12px 12px; border-radius:16px; }
  .sample-guide-actions { gap:5px; margin-bottom:9px; }
  .sample-guide-actions > button { min-height:48px; padding:7px; }
  .leaflet-control-zoom { display:none; }
  /* The fixed layer dock owns the lower safe area on phones. Leave a real
     gap for the map attribution instead of relying on Leaflet's 10px margin. */
  .leaflet-bottom .leaflet-control-attribution { margin-bottom:calc(72px + env(safe-area-inset-bottom)) !important; }
  /* Preserve provider credits on short phones without letting a long rail
     attribution line cross the year-orbit action at the lower-left. */
  .leaflet-bottom .leaflet-control-attribution { box-sizing:border-box; max-width:200px !important; white-space:normal !important; overflow-wrap:anywhere; line-height:1.3 !important; text-align:right; }
  /* On short phones the provider credit is lifted clear of the fixed dock.
     Keep the open price chart above that attribution band instead of letting
     the opaque credit strip cover the chart's lower edge. */
  .rail-chart.open { bottom:calc(108px + env(safe-area-inset-bottom)); }
  .workspace.detail-open .station-orbit-card { pointer-events: none; opacity: 0; transform: translateY(-10px); }
  .rail-chart { left:9px; right:9px; bottom:72px; }
  .detail-panel { position: fixed; z-index: 1300; top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: min(78dvh,720px); overflow: hidden; border: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -22px 65px rgba(22,38,32,.24); transform: translateY(calc(100% + 20px)); transition: transform .38s cubic-bezier(.2,.82,.24,1); touch-action:pan-y; }
  .workspace.detail-open .detail-panel { transform: translateY(0); }
  /* Preserve the visible medium-detent height without translating the actual
     panel beyond the viewport and clipping the bottom of its scrollport. */
  .detail-panel.sheet-half { height: min(58.5dvh,540px); }
  .workspace.detail-open .detail-panel.sheet-half { transform: translateY(0); }
  .workspace.detail-open .detail-panel.sheet-peek { transform: translateY(calc(100% - 72px)); }
  .workspace.detail-open .detail-panel.sheet-full { transform: translateY(0); }
  /* Keep peek as a useful title, not a clipped stack of hero metadata. */
  .detail-panel.sheet-peek .detail-hero { height:72px; min-height:72px; padding:0 16px; align-items:center; }
  .detail-panel.sheet-peek .hero-photo-status,
  .detail-panel.sheet-peek .hero-meta,
  .detail-panel.sheet-peek .detail-hero p,
  .detail-panel.sheet-peek .access-line,
  .detail-panel.sheet-peek .detail-actions { display:none; }
  .detail-panel.sheet-peek .hero-copy { min-width:0; }
  .detail-panel.sheet-peek .detail-hero h2 { max-width:100%; margin:0; font-size:16px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; overflow:hidden; }
  .detail-panel.sheet-dragging { transition:none; will-change:transform; }
  .detail-sheet-scroll { touch-action:pan-y; }
  /* Only the compact grip accepts drag input; no full-width transparent hit layer. */
  .sheet-handle { position:sticky; top:0; z-index:13; display:block; width:44px; height:16px; flex:0 0 16px; margin:0 auto -16px; padding:0; transform:none; border:0; border-radius:999px; background:transparent; touch-action:none; cursor:grab; }
  .sheet-handle::after { content:""; position:absolute; top:6px; left:50%; width:36px; height:4px; transform:translateX(-50%); border-radius:999px; background:rgba(255,255,255,.88); box-shadow:0 1px 4px rgba(0,0,0,.35); }
  .sheet-handle:active { cursor:grabbing; }
  .detail-hero { min-height: 218px; padding: 22px 16px 18px; }
  .detail-hero h2 { max-width: calc(100% - 12px); font-size: 22px; }
  .price-summary { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 108px; }
  .detail-body { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
  .layer-dock, .workspace.detail-open ~ .layer-dock { left:9px; right:9px; bottom:calc(9px + env(safe-area-inset-bottom)); flex-wrap:wrap; justify-content:space-around; transform:none; transition:transform .3s ease, opacity .2s ease; }
  .layer-dock { display:none; }
  .workspace.detail-open ~ .layer-dock { pointer-events:none; opacity:0; transform:translateY(20px); }
  .layer-dock button { min-width: 50px; padding: 6px 4px; }
  .layer-notice { left:50%; bottom:76px; }
  .data-status-panel { bottom:calc(116px + env(safe-area-inset-bottom)); max-height:calc(100dvh - 190px); overflow:auto; }
  .filter-panel { top:66px; right:9px; width:min(250px,calc(100% - 72px)); max-height:calc(100dvh - 202px); overflow-y:auto; overscroll-behavior:contain; }
  .saved-panel,.guest-panel { top:66px; right:9px; max-height:calc(100dvh - 78px); }
  .direction-browser { max-height:none; overflow:visible; }
  .direction-browser .section-title { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:2px 0 6px; }
  .direction-intro { display:block; margin:0 0 8px; font-size:var(--type-supporting); line-height:1.45; }
  .direction-compass { height:auto; display:grid; grid-template:repeat(3,minmax(70px,auto))/repeat(3,minmax(0,1fr)); gap:8px; padding:4px; }
  .direction-compass::before { display: none; }
  .direction-choice,.direction-choice.north,.direction-choice.west,.direction-choice.center,.direction-choice.east,.direction-choice.south { min-height:70px; padding:8px 4px; grid-area:auto; overflow:visible; }
  .direction-choice.north { grid-area:1 / 2; }
  .direction-choice.west { grid-area:2 / 1; }
  .direction-choice.center { grid-area:2 / 2; }
  .direction-choice.east { grid-area:2 / 3; }
  .direction-choice.south { grid-area:3 / 2; }
  .direction-choice span,.direction-choice small { min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; text-align:center; line-height:1.25; }
  .direction-choice span { font-size:var(--type-control); }
  .direction-choice small { font-size:var(--type-micro); }
  .direction-detail { display:grid; grid-template-columns:34px minmax(0,1fr); margin-top:4px; padding:9px 2px; }
  .direction-detail strong { font-size:var(--type-supporting); }
  .direction-detail p { font-size:var(--type-micro); line-height:1.45; }
  .area-options { max-height:112px; flex-wrap:wrap; align-content:flex-start; overflow-x:hidden; overflow-y:auto; scrollbar-width:thin; }
}

/* P-010 sample-aligned responsive filter surface. */
.filter-panel { top:14px; right:14px; bottom:14px; width:min(420px,calc(100% - 28px)); max-height:none; display:flex; flex-direction:column; gap:0; padding:0; overflow:hidden; border-radius:18px; background:var(--surface-overlay); backdrop-filter:blur(18px); }
.filter-panel[hidden] { display:none; }
.filter-head { flex:0 0 auto; padding:12px 18px 8px; }
.filter-head strong { font-size:19px; }
#filter-content { min-height:0; flex:1 1 auto; overflow:auto; overscroll-behavior:contain; padding:8px 20px 20px; }
.filter-price-group { padding:8px 0 18px; }
.filter-price-label { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:12px; }
.filter-price-label strong { font-size:16px; }
.filter-price-label small { color:var(--muted); font-size:var(--type-micro); }
.filter-price-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.filter-price-options button { min-height:48px; padding:8px 6px; border:1px solid var(--hairline); border-radius:11px; color:var(--label-primary); background:var(--surface-control); font:inherit; font-size:var(--type-supporting); cursor:pointer; }
.filter-price-options button[aria-pressed="true"] { border-color:var(--ink-green-dark); color:var(--label-on-interactive); background:var(--ink-green-dark); }
.filter-price-options button:focus-visible,.filter-actions button:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.filter-unavailable { border-top:1px solid var(--hairline); }
.filter-unavailable summary { min-height:56px; display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; list-style:none; color:var(--label-primary); font-size:var(--type-supporting); font-weight:650; }
.filter-unavailable summary::-webkit-details-marker { display:none; }
.filter-unavailable summary::after { content:"＋"; color:var(--muted); }
.filter-unavailable[open] summary::after { content:"−"; }
.filter-unavailable summary span { flex-shrink:0; color:var(--muted); font-size:var(--type-micro); font-weight:500; white-space:nowrap; }
.filter-unavailable p { margin:0 0 16px; color:var(--muted); font-size:var(--type-micro); }
.filter-summary { margin-top:14px; padding:16px; border-radius:14px; color:var(--label-primary); background:var(--surface-control); }
.filter-summary strong { font-size:16px; }
.filter-summary p { margin:8px 0 0; }
.filter-summary small { display:block; margin-top:8px; color:var(--muted); font-size:var(--type-micro); }
.filter-actions { flex:0 0 auto; display:flex; gap:10px; padding:12px 20px calc(12px + env(safe-area-inset-bottom)); border-top:1px solid var(--hairline); background:var(--surface-overlay); }
.filter-reset,.filter-apply { min-height:48px; font-size:var(--type-supporting); }
/* The desktop topbar floats over the map. Keep the filter close below its
   52px control row so the topbar's More button cannot intercept the click. */
@media (min-width:1101px) {
  .filter-panel { top:80px; }
}
/* Tablet topbar uses two rows; keep the filter panel below the search controls. */
@media (min-width:900px) and (max-width:1100px) {
  .filter-panel { top:140px; }
}
@media (max-width:899px) {
  .filter-panel { top:auto; right:0; bottom:0; left:0; width:100%; max-height:min(76dvh,720px); border-radius:20px 20px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .detail-panel, .workspace.detail-open .detail-panel { transition-duration: .01ms; }
}

@media (max-width: 390px) {
  .price-summary { grid-template-columns: 1fr; }
  .metric-card { min-height: 94px; }
  .access-line { gap: 4px; }
  .access-line span, .access-line strong { padding: 5px 6px; }
}

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

/* IP-02 formal map markers keep the target generous while the glyph stays compact. */
.apartment-marker { position:relative; width:44px; height:44px; display:grid; place-items:center; padding:0; overflow:visible; border:0; border-radius:50%; background:transparent; box-shadow:none; }
.apartment-marker::before { inset:0; }
.apartment-marker-symbol { position:relative; z-index:1; width:34px; height:36px; display:grid; place-items:center; overflow:hidden; padding:0 0 3px; border:1.5px solid #fff; border-radius:17px 17px 17px 5px; color:#fff; background:var(--ink-green-dark); box-shadow:0 3px 9px rgba(22,42,35,.25); transition:opacity .16s ease; }
.apartment-marker-symbol img { position:absolute; left:4px; width:auto !important; max-width:calc(100% - 8px) !important; height:17px !important; object-fit:contain; object-position:left center; }
.brand-marker .apartment-marker-symbol { background:#fff; }
.leaflet-marker-icon.is-selected .apartment-marker-symbol { transform:none; outline:2px solid var(--accent-selection-contour); outline-offset:1px; }
.orbit-count { margin:0 0 4px !important; color:var(--label-secondary)!important; font-size:13px!important; line-height:1.4!important; }
.orbit-count b { color:var(--label-primary)!important; font-size:13px!important; }
.orbit-switch-track { width:46px; height:28px; display:block; box-sizing:border-box; padding:2px; border:1px solid var(--separator); border-radius:999px; background:var(--label-secondary); transition:background .18s ease; }
.orbit-switch-track i { width:22px; height:22px; display:block; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.25); transition:transform .18s ease; }
.orbit-toggle[aria-checked="true"] .orbit-switch-track { background:var(--interactive-primary); }
.orbit-toggle[aria-checked="true"] .orbit-switch-track i { transform:translateX(18px); }
.orbit-toggle:focus-visible { outline:2px solid var(--focus-ring); outline-offset:1px; }
#detail-content.photo-page-open > .detail-hero,
#detail-content.photo-page-open > .detail-body { display:none; }
.detail-photo-page { display:flex; flex-direction:column; gap:16px; min-height:100%; padding:16px 18px 24px; color:var(--label-primary); background:var(--surface-content); }
.detail-photo-page[hidden] { display:none; }
.photo-page-back { width:max-content; min-height:44px; padding:0 4px; border:0; color:var(--interactive-primary); background:transparent; cursor:pointer; font-family:inherit; font-size:var(--type-control); font-weight:500; line-height:1.4; text-align:left; }
.photo-page-back:focus-visible,.photo-page-actions button:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }
.photo-page-head small { color:var(--label-secondary); font-size:var(--type-supporting); }
.photo-page-head h3 { margin:3px 0 0; font:600 19px/1.3 Georgia,serif; }
.photo-page-figure { display:grid; grid-template-rows:auto auto; gap:10px; margin:0; }
.photo-viewer-canvas { min-height:0; aspect-ratio:16 / 9; display:grid; place-items:center; overflow:hidden; overscroll-behavior:contain; border-radius:14px; background:var(--surface-subtle); }
.photo-viewer-canvas img { width:100%; height:100%; object-fit:contain; transition:transform .2s ease; }
.photo-viewer-canvas .photo-unavailable { max-width:32rem; margin:18px; color:var(--label-secondary); font-size:var(--type-body); line-height:1.55; text-align:center; }
.photo-viewer-canvas img.is-zoomed { transform:scale(1.8); transform-origin:center; }
.photo-page-figure figcaption { display:flex; justify-content:space-between; align-items:center; gap:14px; color:var(--label-secondary); font-size:var(--type-supporting); }
.photo-page-figure a { min-height:44px; display:flex; align-items:center; color:var(--interactive-primary); }
.photo-page-actions { display:flex; justify-content:flex-start; }
.photo-page-actions button { min-height:44px; display:flex; align-items:center; gap:8px; padding:0 16px; border:1px solid var(--separator); border-radius:999px; color:var(--interactive-primary); background:var(--surface-control); cursor:pointer; font-family:inherit; font-size:var(--type-control); font-weight:500; line-height:1.2; }
@media (max-width:600px) {
  .selected-apartment-name { max-width:min(216px,calc(100vw - 24px)); }
  .detail-photo-page { padding-inline:16px; }
  .photo-page-figure figcaption { align-items:flex-start; flex-direction:column; gap:2px; }
}
@media (prefers-reduced-motion:reduce) {
  .orbit-switch-track,.orbit-switch-track i,.photo-viewer-canvas img,.apartment-marker-symbol { transition:none; }
}

/* IP-02 coordinated shell and shared station task panel. */
.app-shell { grid-template-rows:0 minmax(0,1fr); }
.topbar { position:fixed; top:16px; left:24px; right:24px; height:52px; grid-template-columns:auto minmax(240px,540px) 1fr; gap:16px; padding:0; border:0; background:transparent; backdrop-filter:none; pointer-events:none; }
.topbar > * { pointer-events:auto; }
.topbar > .brand { min-height:44px; padding:5px 12px; border:1px solid var(--hairline); border-radius:999px; background:var(--surface-control); box-shadow:0 4px 14px rgba(20,35,31,.08); }
.topbar > .search-wrap { width:100%; height:52px; min-height:52px; border:1px solid var(--separator); border-radius:26px; background:var(--surface-control); box-shadow:0 5px 18px rgba(20,35,31,.12); }
.workspace { height:100dvh; }
.explore-panel { margin:100px 0 24px 24px; border:1px solid var(--hairline); border-radius:24px; }
.detail-panel { border:0; border-radius:24px; box-shadow:var(--shadow-lg); }
.station-orbit-card { position:relative; inset:auto; width:auto; margin:20px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; backdrop-filter:none; }
.station-orbit-card::after { display:none; }
.workspace.station-context-open .detail-panel { display:flex; }
.workspace.station-context-open .detail-sheet-scroll { display:none; }
.workspace.station-context-open .station-orbit-card { display:block; }
.workspace.station-context-open .detail-panel { background:var(--surface-control); }
.workspace.station-context-open.property-detail-open .detail-sheet-scroll { display:flex; flex-direction:column; }
.workspace.station-context-open.property-detail-open .station-orbit-card { display:none; }

/* At tablet widths the map header still uses its two-row search layout. Keep
   map tools and their popovers below that fixed header instead of underneath
   its search hit target. */
@media (min-width:701px) and (max-width:1100px) {
  .map-toolbar,
  .workspace.detail-open .map-toolbar { top:140px; }
  .filter-panel,
  .map-results-panel,
  .map-layer-panel { top:140px; }
  .filter-panel { max-height:calc(100dvh - 164px); overflow:auto; }
  .map-results-panel { max-height:min(520px,calc(100dvh - 164px)); }
  .map-layer-panel { max-height:calc(100dvh - 164px); }
}

@media (min-width:1360px) {
  .workspace { grid-template-columns:280px minmax(0,1fr) 0; }
  .workspace.detail-open { grid-template-columns:280px minmax(0,1fr) 420px; }
  .explore-panel { margin:100px 0 24px 24px; }
}
@media (min-width:701px) and (max-width:1359px) {
  .topbar { left:20px; right:20px; }
  .topbar > .brand { display:none; }
  .workspace { grid-template-columns:minmax(0,1fr) 0; }
  .workspace.detail-open { grid-template-columns:minmax(0,1fr) 350px; }
  .explore-panel { display:none; }
  .detail-panel { position:fixed; z-index:1300; top:96px; right:20px; bottom:20px; width:350px; }
}
@media (max-width:700px) {
  .app-shell { grid-template-rows:0 minmax(0,1fr); }
  .topbar { position:fixed; z-index:1400; top:12px; left:12px; right:12px; height:52px; display:grid; grid-template-columns:minmax(0,1fr) 44px 44px; grid-template-rows:52px; gap:8px; padding:0; }
  .topbar > .brand,.topbar > .top-actions { display:none; }
  .topbar.p001-header-active > .top-actions { display:contents; }
  .topbar.p001-header-active > .top-actions #theme-toggle,.topbar.p001-header-active > .top-actions #desktop-more-toggle { display:none; }
  .topbar > .search-wrap { grid-column:1; grid-row:1; width:100%; height:52px; min-height:52px; padding-right:0; border-radius:26px; }
  .topbar > .search-wrap .search-icon { margin-left:16px; }
  .topbar > .search-wrap input { padding:0 10px; font-size:13px; }
  .topbar > .search-wrap kbd { display:none; }
  .mobile-primary-actions { display:contents; }
  .mobile-explore-toggle { display:none; }
  .mobile-language-toggle,.mobile-more-toggle { display:inline-grid; grid-row:1; width:44px; height:44px; align-self:center; border-radius:50%; background:var(--surface-control); box-shadow:0 2px 8px rgba(20,35,31,.12); }
  .mobile-language-toggle { grid-column:2; }
  .mobile-more-toggle { grid-column:3; }
  .workspace,.workspace.detail-open { position:absolute; inset:0; display:block; height:100dvh; }
  .map-stage { position:absolute; inset:0; width:100%; height:100%; }
  .explore-panel { position:fixed; z-index:1250; top:auto; left:8px; right:8px; bottom:0; width:auto; height:min(56dvh,473px); max-height:calc(100dvh - 92px); margin:0; padding:28px 20px calc(24px + env(safe-area-inset-bottom)); overflow:auto; overscroll-behavior:contain; touch-action:pan-y; border:0; border-radius:28px 28px 0 0; background:var(--surface-control); box-shadow:0 -12px 36px rgba(20,35,31,.15); transition:height .28s cubic-bezier(.22,.8,.25,1); }
  .explore-panel.is-collapsed { display:none; }
  .explore-panel-toggle { top:0; left:50%; right:auto; width:72px; height:28px; transform:translateX(-50%); touch-action:none; border:0; border-radius:0; background:transparent; box-shadow:none; }
  .explore-panel-toggle span { position:absolute; left:50%; top:12px; width:34px; height:4px; overflow:hidden; border-radius:99px; color:transparent; background:var(--label-secondary); transform:translateX(-50%); }
  .explore-panel-toggle b { display:none; }
  .explore-panel .panel-heading,.explore-panel .subcenters,.explore-panel .insight-card { display:none; }
  .explore-panel .mode-tabs { margin:0 0 16px; }
  .detail-panel,.workspace.detail-open .detail-panel { position:fixed; z-index:1300; top:auto; left:8px; right:8px; bottom:0; width:auto; height:56dvh; max-height:calc(100dvh - 92px); overflow:hidden; border:0; border-radius:28px 28px 0 0; transform:translateY(calc(100% + 16px)); transition:transform .35s cubic-bezier(.2,.82,.24,1); }
  .workspace.detail-open .detail-panel { transform:translateY(0); }
  .workspace.station-context-open .detail-panel { height:56dvh; padding-top:28px; background:var(--surface-control); }
  .workspace.station-context-open .station-orbit-card { margin:20px; }
  .station-orbit-card > strong { font-size:19px; }
  .station-orbit-card p { margin:5px 0 8px; }
  .workspace.station-context-open .detail-sheet-scroll { display:none; }
  .workspace.station-context-open .station-orbit-card { display:block; }
  .map-toolbar { top:76px; right:12px; }
  .mobile-more-menu { top:72px; right:12px; }
  .search-results { top:calc(64px + env(safe-area-inset-top)); }
  .layer-dock { display:none; }
  .workspace.detail-open ~ .layer-dock { display:none; }
  .detail-panel.sheet-half { height:56dvh; }
  .detail-panel.sheet-full { height:calc(100dvh - 92px); }
}
@media (max-width:700px) {
  .topbar.p001-header-active { top:14px; height:48px; grid-template-rows:48px; grid-template-columns:minmax(0,1fr) repeat(4,42px); gap:6px; }
  .topbar.p001-header-active #mobile-theme-toggle { grid-column:2; grid-row:1; }
  .topbar.p001-header-active #p001-locate-button { grid-column:3; grid-row:1; }
  .topbar.p001-header-active #rail-chart-toggle { grid-column:4; grid-row:1; }
  .topbar.p001-header-active #mobile-more-toggle { grid-column:5; grid-row:1; }
  .topbar.p001-header-active > .search-wrap { height:48px; min-height:48px; }
  .topbar.p001-header-active .p001-header-map-action,
  .topbar.p001-header-active .mobile-primary-actions .mobile-more-toggle,
  .topbar.p001-header-active .mobile-primary-actions .theme-toggle { width:42px; min-width:42px; height:42px; min-height:42px; }
  .topbar.p001-header-active .p001-header-map-action { display:inline-grid; place-items:center; align-self:center; padding:0; border:1px solid var(--separator); border-radius:50%; color:var(--label-primary); background:var(--surface-control); box-shadow:0 2px 8px rgba(20,35,31,.12); }
  .topbar.p001-header-active .p001-header-map-action img { width:21px; height:21px; filter:var(--icon-filter); }
}
@media (max-width:360px) {
  .topbar.p001-header-active { grid-template-columns:minmax(0,1fr) repeat(3,38px); gap:4px; }
  .topbar.p001-header-active #rail-chart-toggle { display:none; }
  .topbar.p001-header-active #mobile-more-toggle { grid-column:4; }
  .mobile-more-menu.compact-chart-menu #compact-rail-chart-action { display:flex; }
  .topbar.p001-header-active #mobile-theme-toggle,.topbar.p001-header-active #mobile-more-toggle,
  .topbar.p001-header-active .p001-header-map-action { width:38px; min-width:38px; height:38px; min-height:38px; }
  .topbar.p001-header-active > .search-wrap input { font-size:12px; }
  .workspace.p001-browse > .map-stage .map-toolbar > button { width:38px; height:38px; }
}
@media (max-width:700px) {
  .workspace.station-context-open .station-orbit-card { opacity:1; transform:none; pointer-events:auto; }
}
@media (max-width:700px) {
  .workspace.station-context-open .station-orbit-card { top:0; left:0; }
}
@media (max-width:700px) {
  .workspace.p001-browse > .map-stage .map-toolbar { top:66px; right:12px; }
  .workspace.p001-browse > .map-stage .map-toolbar > button { width:42px; height:42px; }
}
@media (max-width:360px) {
  .workspace.p001-browse > .map-stage .map-toolbar > button { width:38px; height:38px; }
}
@media (max-width:700px) {
  .workspace.explore-panel-open.station-context-open .detail-panel { transform:translateY(calc(100% + 16px)); }
}
@media (max-width:700px) {
  .workspace.explore-panel-open .explore-panel { z-index:1350; opacity:1; pointer-events:auto; transform:none; }
}
@media (max-width:700px) {
  .explore-panel-toggle span { transform:translateX(-50%) !important; }
  .line-task-heading { display:block; margin:10px 0 16px; }
  .line-task-heading h2 { margin:0 0 4px; font-size:19px; line-height:1.35; font-weight:700; }
  .line-task-heading p { margin:0; color:var(--label-secondary); font-size:14px; line-height:1.5; }
  .explore-panel .mode-tabs { margin:0 0 16px; }
  .workspace > .explore-panel.commute-open { padding-top:32px; }
  .explore-panel .mode-tabs { position:relative; z-index:3; }
}
@media (min-width:1360px) {
  .workspace.detail-open { grid-template-columns:280px minmax(0,1fr) 444px; }
  .workspace.detail-open > .detail-panel { width:auto; height:auto; margin:0; }
}
@media (max-width:700px) {
  .workspace.detail-open .detail-panel.sheet-full { height:calc(100dvh - 92px); }
  .workspace.detail-open .detail-panel.sheet-full .detail-hero { min-height:350px; }
}
.workspace.station-context-open .station-orbit-card { flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.station-return { display:block; min-height:44px; margin:0 0 12px; padding:0 4px; border:0; background:transparent; color:var(--ink-green-dark); font:inherit; font-size:15px; font-weight:600; line-height:1.4; text-align:left; cursor:pointer; }
.station-orbit-card .station-return { padding-right:4px; }
.workspace.station-context-open .orbit-toggle { color:var(--label-primary); background:transparent; }
@media (prefers-color-scheme:dark) and (prefers-contrast:no-preference) {
  .workspace.station-context-open .orbit-toggle { color:var(--label-primary)!important; background:transparent!important; }
}
.orbit-focus { display:block; width:100%; min-height:48px; margin:12px 0; padding:10px 16px; border:1px solid var(--separator); border-radius:14px; background:var(--surface-control); color:var(--ink-green-dark); font:inherit; font-size:14px; font-weight:600; line-height:1.4; cursor:pointer; }
.orbit-distance-note { margin:10px 0 14px!important; padding:12px 14px; border-radius:14px; background:var(--surface-subtle); color:var(--label-secondary)!important; font-size:13px!important; line-height:1.5!important; }
.orbit-nearby { margin:12px 0 0; }
.orbit-nearby h3 { margin:0 0 4px; font-size:15px; line-height:1.4; }
#orbit-nearby-list { display:grid; gap:8px; }
.orbit-nearby-building { min-width:0; min-height:68px; display:grid; grid-template-columns:54px minmax(0,1fr) 14px; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--hairline); border-radius:12px; background:var(--surface-control); color:var(--label-primary); font:inherit; text-align:left; cursor:pointer; }
.orbit-nearby-photo { width:54px; height:48px; display:grid; place-items:center; overflow:hidden; border-radius:8px; background:var(--surface-subtle); }
.orbit-nearby-photo img { width:100%; height:100%; object-fit:cover; }
.orbit-nearby-placeholder { color:var(--label-secondary); font-size:22px; }
.orbit-nearby-copy { min-width:0; display:grid; gap:5px; }
.orbit-nearby-copy strong { color:var(--label-primary); font-size:14px; font-weight:700; line-height:1.35; }
.orbit-nearby-copy small { min-width:0; display:flex; align-items:center; gap:5px; color:var(--label-secondary); font-size:12px; line-height:1.3; }
.orbit-nearby-copy small img { width:18px; height:16px; flex:none; object-fit:contain; }
.orbit-nearby-identity-mark { width:16px; height:16px; flex:none; display:grid; place-items:center; border:1px solid var(--separator); border-radius:4px; color:var(--interactive-primary); font-size:12px; }
.orbit-nearby-chevron { color:var(--label-secondary); font-size:22px; line-height:1; }
.orbit-nearby-building:focus-visible,.orbit-focus:focus-visible,.station-return:focus-visible { outline:3px solid var(--focus-ring); outline-offset:2px; }

/* IP-02 P-003: title, entry tabs, explanation, selected chips, filters, list and station action. */
.line-task-heading { display:grid; gap:5px; margin:4px 0 12px; }
.line-task-heading h2 { margin:0; color:var(--label-primary); font-size:19px; font-weight:700; line-height:1.35; }
.rail-stations-back { width:fit-content; min-height:40px; padding:4px 0; border:0; color:var(--ink-green-dark); background:transparent; font:inherit; font-size:14px; font-weight:650; cursor:pointer; }
.line-task-description { margin:-7px 0 12px; color:var(--label-secondary); font-size:14px; line-height:1.5; }
.mode-tabs[data-design-id="C-223"] { margin:0 0 14px; }
.active-line-summary { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0 0 12px; }
.line-card.active.selected-line-card { width:auto; max-width:100%; min-height:38px; display:inline-flex; grid-template-columns:none; align-items:center; gap:7px; margin:0; padding:4px 6px 4px 5px; border:0; border-radius:999px; background:var(--surface-subtle); box-shadow:none; cursor:grab; }
.selected-line-card + .selected-line-card { margin:0; }
.selected-line-card .selected-line-symbol { width:24px; height:24px; flex:none; border-width:2px; border-radius:50%; font-size:9px; }
.selected-line-card .selected-line-symbol.multi-numbering { width:auto; min-width:40px; padding:0 4px; border-color:var(--label-secondary); border-radius:999px; color:var(--label-primary); background:var(--surface-content); font-size:9px; letter-spacing:-.25px; white-space:nowrap; }
.selected-line-card .selected-line-symbol.jr-east,.selected-line-card .selected-line-symbol.tokyu { border-radius:6px; }
.selected-line-card .selected-line-symbol.tokyu { color:var(--label-on-interactive); background:var(--rail-color); }
.selected-line-card .selected-line-copy { min-width:0; }
.selected-line-card .selected-line-copy strong { max-width:190px; font-size:13px; font-weight:650; }
.selected-line-card .selected-line-copy small { display:none; }
.selected-line-card .selected-line-remove { width:28px; height:28px; border-radius:50%; color:var(--label-secondary); font-size:17px; }
.selected-lines-clear { min-height:36px; padding:6px 9px; border:0; border-radius:999px; color:var(--label-secondary); background:transparent; font:inherit; font-size:13px; cursor:pointer; }
.selected-lines-clear:hover,.selected-lines-clear:focus-visible { color:var(--interactive-primary); background:var(--surface-subtle); outline:2px solid var(--focus-ring); outline-offset:1px; }
.rail-line-filters { display:grid; gap:8px; margin:0 0 9px; }
.rail-line-search-label,.rail-station-search-label { width:100%; min-width:0; max-width:100%; min-height:44px; display:flex; align-items:center; padding:0 12px; border:0; border-radius:12px; background:transparent; }
.rail-line-search-label input,.rail-station-search-label input { width:100%; min-width:0; min-height:42px; border:1px solid var(--separator); border-radius:12px; color:var(--label-primary); background:var(--surface-control); font:inherit; font-size:14px; }
.rail-line-search-label { display:block; margin:8px 0 10px; }
.rail-line-search-label input { min-height:44px; padding:10px 14px; }
.rail-station-search-label input { padding:7px 0; }
.rail-operator-filter-label { width:100%; min-width:0; max-width:100%; min-height:42px; display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 8px; padding:0 12px; border:0; color:var(--label-secondary); background:transparent; font-size:12px; }
.rail-operator-filter-label select { flex:1; min-width:0; min-height:40px; padding:8px 12px; border:1px solid var(--separator); border-radius:10px; color:var(--label-primary); background:var(--surface-control); font-size:13px; text-align:right; }
.rail-line-count,.rail-station-count { margin:4px 0 8px; color:var(--label-secondary); font-size:13px; line-height:1.4; }
.line-option-symbol { border-radius:50%; }
.line-option-symbol.jr-east,.line-option-symbol.tokyu { border-radius:6px; }
.line-option-symbol.tokyu { color:var(--label-on-interactive); background:var(--rail-color); }
.rail-station-browser { display:grid; gap:7px; }
.rail-station-lines { margin:0; color:var(--label-secondary); font-size:14px; line-height:1.45; }
.rail-station-results { display:grid; gap:6px; }
.rail-station-option { width:100%; min-height:60px; display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--hairline); border-radius:13px; color:var(--label-primary); background:var(--surface-control); text-align:left; cursor:pointer; }
.rail-station-option:hover,.rail-station-option:focus-visible { border-color:var(--interactive-primary); background:var(--surface-subtle); outline:2px solid var(--focus-ring); outline-offset:1px; }
.rail-station-symbols { flex:0 0 auto; display:flex; align-items:center; gap:3px; }
.rail-station-symbols .rail-symbol { width:30px; height:30px; grid-template-rows:10px 10px; border-width:2px; }
.rail-station-copy { min-width:0; flex:1; display:grid; gap:3px; }
.rail-station-copy strong,.rail-station-copy small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rail-station-copy strong { font-size:14px; font-weight:650; }
.rail-station-copy small { color:var(--label-secondary); font-size:12px; }
.rail-station-chevron { color:var(--label-secondary); font-size:22px; }
.rail-station-empty,.rail-station-limit { margin:0; padding:12px 4px; color:var(--label-secondary); font-size:13px; line-height:1.45; }
.rail-station-empty { display:grid; justify-items:start; gap:8px; }
.rail-station-empty-clear { min-height:36px; padding:6px 10px; border:1px solid var(--hairline); border-radius:10px; color:var(--interactive-primary); background:var(--surface-control); font:inherit; cursor:pointer; }
.rail-stations-footer { position:sticky; z-index:3; bottom:-1px; margin:8px -20px -24px; padding:12px 20px 18px; background:linear-gradient(180deg,transparent 0%,var(--surface-content) 28%); }
.rail-stations-footer[hidden] { display:none; }
.rail-stations-open { width:100%; min-height:48px; padding:10px 14px; border:1px solid var(--interactive-primary); border-radius:14px; color:var(--label-on-interactive); background:var(--surface-brand); font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
.rail-stations-open:disabled { border-color:var(--separator); color:var(--label-secondary); background:var(--surface-subtle); cursor:not-allowed; }
.rail-stations-open:focus-visible,.rail-stations-back:focus-visible { outline:3px solid var(--focus-ring); outline-offset:2px; }
.workspace.explore-collapsed #rail-stations-footer { display:none; }
@media (prefers-contrast:more) {
  .station-return,.orbit-focus,.orbit-distance-note,.orbit-nearby-building { color:#000 !important; background:#fff !important; }
  .workspace.station-context-open .orbit-toggle { color:#000 !important; background:transparent !important; }
}

/* IP-02 sample shell: full map canvas, persistent navigation rail and one task surface. */
.theme-toggle { border:1px solid var(--separator); border-radius:999px; background:var(--surface-content); box-shadow:0 3px 14px rgba(20,35,31,.1); }
.theme-toggle::before { display:none; }
.theme-glyph { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
:root[data-theme="light"] .theme-glyph--dark,:root[data-theme="dark"] .theme-glyph--light { display:none; }
.mobile-more-menu:not([hidden]) { position:fixed; z-index:1600; top:76px; right:24px; width:min(260px,calc(100vw - 24px)); display:grid; gap:4px; padding:8px; border:1px solid var(--separator); border-radius:18px; color:var(--label-primary); background:var(--surface-content); box-shadow:var(--shadow-lg); }
.mobile-more-menu:not([hidden]) button { min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border:0; border-radius:11px; color:inherit; background:transparent; text-align:left; font-size:var(--type-control); cursor:pointer; }
.mobile-more-menu:not([hidden]) button:hover,.mobile-more-menu:not([hidden]) button:focus-visible { background:var(--surface-subtle); }
.mobile-more-menu:not([hidden]) #language-menu-toggle { width:100%; min-width:0; height:auto; min-height:44px; justify-content:flex-start; }
.mobile-more-menu:not([hidden]) #language-menu-toggle::before { display:none; }
.mobile-more-menu .count { color:var(--label-secondary); }
@media (min-width:1360px) {
  .topbar > .brand { gap:9px; padding:10px 16px; border-radius:16px; }
  .topbar > .brand .brand-mark,.topbar > .brand .brand-mark img { width:32px; height:32px; }
  .topbar > .brand strong { font-size:23px; letter-spacing:.02em; }
  .topbar > .brand small { display:none; }
}
@media (min-width:701px) {
  .map-legend { top:auto; left:386px; right:auto; bottom:18px; }
}
@media (min-width:701px) and (max-width:1359px) {
  /* The first-run guide belongs over the map lane, clear of the fixed
     Explore panel that otherwise intercepts its primary action. */
  .sample-guide { left:386px; }
}
@media (min-width:1360px) {
  .map-legend { left:320px; }
  /* The wide layout moves Explore navigation to a persistent left sidebar. */
  .sample-guide { left:320px; }
}
.app-sidebar { display:none; }
@media (min-width:701px) {
  .app-sidebar { position:fixed; z-index:1250; top:100px; bottom:24px; left:24px; width:280px; display:flex; flex-direction:column; align-items:stretch; gap:8px; padding:20px 16px; border:1px solid var(--hairline); border-radius:24px; color:var(--label-primary); background:var(--surface-content); box-shadow:var(--shadow-lg); }
  .app-sidebar .panel-heading { display:block; margin:0 0 14px; }
  .app-sidebar .panel-heading h1 { font-size:27px; line-height:1.3; }
  .app-sidebar button { width:100%; min-height:62px; display:grid; grid-template-columns:40px minmax(0,1fr); align-items:center; justify-items:start; column-gap:12px; padding:10px 12px; border:1px solid var(--hairline); border-radius:14px; color:var(--label-primary); background:var(--surface-control); cursor:pointer; text-align:left; }
  .app-sidebar button .sidebar-mode-symbol { width:36px; height:36px; display:grid; place-items:center; border:1px solid var(--separator); border-radius:11px; color:var(--interactive-primary); font-size:16px; font-weight:750; line-height:22px; }
  .app-sidebar button .sidebar-mode-copy { min-width:0; display:grid; gap:3px; }
  .app-sidebar button .sidebar-mode-copy strong { font-size:15px; font-weight:700; line-height:21px; }
  .app-sidebar button .sidebar-mode-copy small { color:var(--label-secondary); font-size:12px; font-weight:500; line-height:17px; }
  .app-sidebar button:hover,.app-sidebar button:focus-visible { border-color:var(--interactive-primary); background:var(--surface-subtle); }
  .app-sidebar button.active { border-color:var(--interactive-primary); color:var(--label-on-interactive); background:var(--surface-brand); }
  .app-sidebar button.active .sidebar-mode-symbol { border-color:rgba(255,255,255,.42); color:inherit; }
  .workspace,.workspace.detail-open { display:block; height:100dvh; }
  .workspace > .map-stage { position:absolute; inset:0; }
  .workspace > .explore-panel { position:fixed; z-index:1250; top:100px; right:24px; bottom:24px; width:min(500px,calc(100vw - 360px)); display:block; margin:0; padding:22px 20px 24px; border:1px solid var(--hairline); border-radius:24px; background:var(--surface-content); box-shadow:var(--shadow-lg); }
  .workspace > .explore-panel .panel-heading { display:none; }
  .workspace > .detail-panel { display:none; background:var(--surface-content); }
  .workspace.detail-open > .explore-panel { display:none; }
  .workspace.detail-open > .detail-panel { position:fixed; z-index:1300; top:100px; right:24px; bottom:24px; width:min(500px,calc(100vw - 360px)); display:flex; border:1px solid var(--hairline); border-radius:24px; box-shadow:var(--shadow-lg); }
  .workspace.explore-collapsed > .explore-panel { transform:none; }
  .workspace > .map-stage .map-toolbar { right:min(530px,calc(100vw - 90px)); }
}
@media (min-width:701px) and (max-width:1359px) {
  .app-sidebar { display:none; }
  .topbar { left:20px; right:20px; grid-template-columns:44px minmax(160px,540px) 1fr; gap:12px; }
  .topbar > .brand { display:flex; width:44px; min-width:44px; height:44px; min-height:44px; justify-content:center; padding:4px; }
  .topbar > .brand > span:not(.brand-mark) { display:none; }
  .workspace > .explore-panel { top:96px; left:20px; right:auto; bottom:20px; width:350px; padding:20px; }
  .workspace.detail-open > .detail-panel { top:144px; left:auto; right:0; bottom:20px; width:min(420px,45vw); }
  .workspace > .map-stage .map-toolbar { right:20px; }
}
@media (max-width:700px) {
  .mobile-more-menu:not([hidden]) { top:72px; right:12px; width:min(280px,calc(100vw - 24px)); }
  .app-sidebar { display:none; }
  .workspace > .map-stage .map-toolbar { right:12px; }
  .workspace > .explore-panel { transform:translateY(calc(100% - 144px)); transition:transform .28s cubic-bezier(.22,.8,.25,1); padding-top:0; }
  .workspace > .explore-panel.is-collapsed { display:block; transform:translateY(calc(100% - 144px)); }
  .workspace > .explore-panel:not(.is-collapsed) { transform:translateY(0); }
  .workspace > .explore-panel.detent-peek { height:144px; transform:translateY(0); }
  .workspace > .explore-panel.detent-mid { height:min(56dvh,473px); transform:translateY(0); }
  .workspace > .explore-panel.detent-full { height:calc(100dvh - 92px); transform:translateY(0); }
  .workspace > .explore-panel.explore-panel-dragging { transition:none; }
  .workspace.detail-open > .explore-panel { display:none; }
}

@media (prefers-reduced-motion:reduce) {
  .workspace > .explore-panel { transition:none; }
}

/* P-003 line selection: searchable catalogue with compact selected chips. */
.rail-line-picker.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; }
.active-line-summary { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:12px 0 16px; }
.line-card.active.selected-line-card { width:auto; max-width:100%; min-height:44px; display:inline-flex; grid-template-columns:none; align-items:center; gap:7px; margin:0; padding:5px 8px 5px 6px; border:1px solid color-mix(in srgb,var(--selected-rail) 44%,var(--separator)); border-radius:999px; background:var(--surface-control); box-shadow:none; cursor:grab; }
.selected-line-symbol { width:26px; height:26px; flex:none; display:grid; place-items:center; border:1px solid var(--selected-rail); border-radius:50%; color:var(--selected-rail); font-size:10px; font-weight:800; }
.selected-line-copy { min-width:0; }
.selected-line-copy strong { display:block; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; line-height:18px; }
.selected-line-copy small { display:none; }
.selected-line-remove { width:28px; height:28px; min-height:28px; flex:none; padding:0; border-radius:50%; font-size:17px; }
.line-list { max-height:min(38dvh,360px); overflow:auto; overscroll-behavior:contain; border-top:1px solid var(--hairline); scrollbar-width:thin; }
.line-option { min-height:56px; display:grid; grid-template-columns:24px 40px minmax(0,1fr); align-items:center; gap:10px; padding:8px 4px; border-bottom:1px solid var(--hairline); cursor:pointer; }
.line-option input { width:18px; height:18px; min-height:18px; margin:0; accent-color:var(--interactive-primary); }
.line-option-symbol { width:32px; height:32px; display:grid; place-items:center; border:1px solid var(--rail-color); border-radius:50%; color:var(--rail-color); background:var(--surface-content); font-size:10px; font-weight:800; }
.line-option-symbol.multi-numbering { width:40px; border-color:var(--label-secondary); border-radius:999px; color:var(--label-primary); background:var(--surface-content); font-size:9px; letter-spacing:-.25px; white-space:nowrap; }
.line-option-copy { min-width:0; display:grid; gap:2px; }
.line-option-copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; font-weight:600; line-height:20px; }
.line-option-copy small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--label-secondary); font-size:12px; line-height:18px; }
.line-option-copy .line-option-status { overflow:visible; text-overflow:clip; white-space:normal; line-height:1.35; }
.line-option:hover,.line-option:focus-within { background:var(--surface-subtle); }
.line-list-state { padding:24px 8px; color:var(--label-secondary); font-size:13px; line-height:20px; text-align:center; }
.line-task-heading { margin-bottom:12px; }
@media (max-width:700px) {
  .active-line-summary { gap:6px; margin:10px 0 14px; }
  .line-card.active.selected-line-card { min-height:44px; }
  .line-list { max-height:240px; }
  .line-option { min-height:54px; }
}
@media (prefers-reduced-motion:reduce) {
  .selected-line-card { scroll-behavior:auto; }
}
@media (max-width:700px) {
  .workspace.station-context-open .detail-panel { height:min(56dvh,473px); max-height:calc(100dvh - 92px); padding-top:0; }
  .workspace.station-context-open.detail-open .detail-panel.sheet-peek { transform:translateY(calc(100% - 144px)); }
  .workspace.station-context-open .sheet-handle { position:relative; top:auto; z-index:13; display:block; flex:0 0 28px; width:100%; height:28px; margin:0; padding:0; border:0; border-radius:0; background:transparent; touch-action:none; }
  .workspace.station-context-open .sheet-handle::after { top:12px; width:34px; height:4px; background:var(--label-secondary); box-shadow:none; }
  .workspace.station-context-open .station-orbit-card { margin:0 8px 8px; padding:8px 20px 20px; }
  .workspace.station-context-open .station-return { margin-bottom:8px; }
}

/* P-008/P-009 use the same C-231 task drawer as building and station context. */
#task-drawer { width:100%; min-height:0; flex:1 1 auto; display:flex; flex-direction:column; }
.workspace.saved-list-open #detail-sheet-scroll { display:block !important; }
.workspace.saved-list-open #detail-sheet-scroll > .detail-empty,
.workspace.saved-list-open #detail-content,
.workspace.saved-list-open #station-orbit-card { display:none !important; }
.detail-panel #saved-panel {
  position:relative;
  inset:auto;
  width:auto;
  max-height:none;
  display:block;
  margin:0;
  padding:16px 20px 28px;
  overflow:visible;
  transform:none;
  border:0;
  border-radius:0;
  color:var(--label-primary);
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
}
.detail-panel #saved-panel[hidden] { display:none !important; }
.saved-return { min-height:44px; display:inline-flex; align-items:center; gap:8px; margin:0 0 14px; padding:0; border:0; color:var(--ink-green-dark); background:transparent; cursor:pointer; font-family:inherit; font-size:14px; font-weight:600; line-height:20px; }
.saved-return > span:first-child { font-size:26px; line-height:1; }
.saved-return:focus-visible { border-radius:8px; outline:3px solid var(--focus-ring); outline-offset:2px; }
.saved-head { display:block; margin-bottom:14px; }
.saved-head small { display:block; color:var(--accent); font-size:11px; font-weight:850; letter-spacing:.14em; }
.saved-head strong { display:block; margin-top:4px; color:var(--label-primary); font-family:"Noto Serif SC","Noto Serif JP",serif; font-size:20px; line-height:1.35; }
.saved-local-only { margin:0 0 10px; color:var(--label-secondary); font-size:14px; line-height:1.5; }
.saved-comparison-count { margin:0 0 12px; color:var(--label-secondary); font-size:14px; line-height:1.45; }
.saved-comparison-card { display:grid; gap:0; padding:10px 12px; border-radius:14px; background:var(--surface-subtle); }
.saved-comparison-name { min-height:44px; padding:2px 0 8px; border:0; color:var(--label-primary); background:transparent; text-align:left; cursor:pointer; }
.saved-comparison-name strong { font-size:16px; line-height:1.4; }
.saved-comparison-evidence { display:grid; }
.saved-evidence-row { min-height:64px; width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; padding:9px 0; border:0; border-bottom:1px solid var(--separator); color:var(--label-primary); background:transparent; text-align:left; cursor:pointer; }
.saved-evidence-row > span:first-child { min-width:0; }
.saved-evidence-row strong,.saved-evidence-row small { display:block; }
.saved-evidence-row strong { font-size:14px; line-height:1.4; }
.saved-evidence-row small { margin-top:3px; color:var(--label-secondary); font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
.saved-evidence-row > span:last-child { color:var(--label-secondary); font-size:24px; line-height:1; }
.saved-comparison-actions { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; padding-top:10px; }
.saved-view-records,.saved-comparison-actions .saved-remove { min-width:0; min-height:44px; padding:8px 10px; border:1px solid var(--separator); border-radius:999px; color:var(--ink-green-dark); background:var(--surface-control); cursor:pointer; font:inherit; font-size:13px; font-weight:700; }
.saved-comparison-actions .saved-view-records { color:var(--surface-control); background:var(--ink-green-dark); }
.saved-comparison-actions .saved-remove { color:var(--label-primary); }
.saved-comparison-name:focus-visible,.saved-evidence-row:focus-visible,.saved-view-records:focus-visible,.saved-comparison-actions .saved-remove:focus-visible { outline:3px solid var(--focus-ring); outline-offset:2px; }
.workspace.saved-list-open .saved-list { max-height:none; margin:0; overflow:visible; }
.saved-empty { margin:0; padding:12px; border-radius:12px; color:var(--label-primary); background:var(--surface-subtle); font-size:14px; line-height:1.5; }
.saved-sample-action { min-height:44px; margin-top:10px; padding:9px 14px; border:1px solid var(--separator); border-radius:10px; color:var(--ink-green-dark); background:var(--surface-control); cursor:pointer; font-size:14px; font-weight:650; }
.saved-sample-action:focus-visible { outline:3px solid var(--focus-ring); outline-offset:2px; }

@media (max-width:767px) {
  .workspace.saved-list-open .detail-panel.sheet-full { height:calc(100dvh - 92px); }
  .detail-panel #saved-panel { padding:0 20px calc(24px + env(safe-area-inset-bottom)); }
  .saved-return { margin-bottom:14px; }
  .saved-head strong { font-size:20px; }
}

.search-results-sheet-handle { display:none; }
.search-results-back,.search-results-query { display:none; }
.search-result-empty { color:var(--label-secondary); }
#task-drawer { position:relative; }
.workspace.search-task-open.station-context-open #station-orbit-card { display:none !important; }
#task-drawer > .search-results:not([hidden]) {
  position:absolute;
  z-index:20;
  inset:0;
  width:auto;
  max-height:none;
  overflow:auto;
  padding:16px 20px 24px;
  border:0;
  border-radius:0;
  color:var(--label-primary);
  background:var(--surface-content);
  box-shadow:none;
  backdrop-filter:none;
}

/* P-002 mobile search results use the same single task-surface hierarchy as
   the coordinated IP-02 atlas. Desktop and tablet keep the anchored list. */
@media (max-width:700px) {
  #task-drawer { position:relative; }
  #task-drawer > .search-results:not([hidden]) {
    position:absolute;
    z-index:20;
    inset:0;
    width:auto;
    max-height:none;
    padding:8px 20px calc(20px + env(safe-area-inset-bottom));
    overflow:auto;
    overscroll-behavior:contain;
    border:0;
    border-radius:0;
    color:var(--label-primary);
    background:var(--surface-content);
    box-shadow:none;
    backdrop-filter:none;
  }
  .search-results-sheet-handle { height:20px; display:grid; place-items:start center; margin:0 -4px 10px; }
  .search-results-sheet-handle span { width:34px; height:4px; margin-top:4px; border-radius:99px; background:var(--label-secondary); }
  .search-results-back { min-height:40px; display:block; margin:0 0 12px; padding:0 4px; border:0; border-radius:0; color:var(--ink-green-dark); background:transparent; font:inherit; font-size:15px; font-weight:600; text-align:left; cursor:pointer; }
  .search-results-title { margin:0 0 8px; font-size:21px; line-height:1.35; }
  .search-results-query { display:block; margin:0 0 14px; color:var(--label-secondary); font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
  .search-results .search-result { min-height:62px; padding:14px 0; border-bottom:1px solid var(--separator); border-radius:0; }
  .search-results .search-result-empty { min-height:44px; display:block; margin:0; padding:12px 14px; border:0; border-radius:14px; color:var(--label-secondary); background:var(--surface-subtle); line-height:1.65; }
  .search-results .search-result-error { display:flex; align-items:center; gap:12px; }
}

/* P-012 follows the shared task-drawer hierarchy: API-backed station rows
   replace the former floating illustrative bar strip. */
.workspace.rail-chart-open .detail-sheet-scroll { display:block !important; }
.workspace.rail-chart-open > .detail-panel { z-index:1450; }
.workspace.rail-chart-open > .map-stage { pointer-events:none; }
.workspace.rail-chart-open .detail-empty,
.workspace.rail-chart-open #detail-content,
.workspace.rail-chart-open #saved-panel,
.workspace.rail-chart-open #station-orbit-card { display:none !important; }
#rail-chart { display:none; width:100%; min-height:100%; padding:20px 20px 28px; color:var(--label-primary); background:var(--surface-content); }
.workspace.rail-chart-open #rail-chart { position:relative; inset:auto; z-index:auto; display:block; width:100%; min-height:100%; padding:20px 20px 28px; overflow:visible; border:0; border-radius:0; box-shadow:none; backdrop-filter:none; opacity:1; transform:none; pointer-events:auto; }
.rail-chart-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin:0 0 12px; }
.rail-chart-head small { color:var(--label-secondary); font-size:12px; line-height:18px; }
.rail-chart-head h2 { margin:0; color:var(--label-primary); font-size:19px; font-weight:650; line-height:26px; }
.rail-chart-head .icon-button { flex:none; width:44px; height:44px; }
.rail-line-select { position:relative; display:flex; align-items:center; gap:12px; width:100%; min-height:64px; margin:0 0 16px; padding:8px 4px; border:0; border-bottom:1px solid var(--separator); color:var(--label-primary); background:transparent; }
.rail-line-select > span:nth-child(2) { min-width:0; display:grid; gap:3px; }
.rail-line-select strong { font-size:15px; line-height:22px; }
.rail-line-select small { color:var(--label-secondary); font-size:13px; line-height:19px; }
.rail-line-select select { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.rail-line-select:focus-within { outline:2px solid var(--focus-ring); outline-offset:2px; border-radius:8px; }
.rail-line-select .route-pill { flex:none; width:34px; height:34px; margin:0; display:grid; place-items:center; border:2px solid color-mix(in srgb,var(--line-color) 70%,var(--label-primary)); border-radius:9px; color:var(--label-primary); background:var(--surface-content); font-size:11px; font-weight:750; }
.rail-chart-note { margin:0 0 12px; padding:12px; border-radius:14px; color:var(--label-secondary); background:var(--surface-control); font-size:13px; line-height:20px; }
.station-strip { height:auto; display:grid; align-items:stretch; gap:0; padding:0; overflow:visible; }
.station-price-row { display:flex; align-items:center; gap:12px; width:100%; min-height:68px; padding:10px 2px; border:0; border-bottom:1px solid var(--separator); color:var(--label-primary); background:transparent; text-align:left; cursor:pointer; }
.station-price-row:hover,.station-price-row:focus-visible { background:var(--surface-selected); outline:2px solid var(--focus-ring); outline-offset:-2px; }
.station-price-row .rail-symbol { flex:none; width:34px; height:34px; }
.station-price-copy { min-width:0; flex:1; display:grid; gap:3px; }
.station-price-copy strong { overflow-wrap:anywhere; font-size:15px; line-height:22px; font-weight:600; }
.station-price-copy small { color:var(--label-secondary); font-size:12px; line-height:18px; }
.station-price-value { flex:none; color:var(--label-secondary); font-size:14px; font-weight:600; }
.station-price-chevron { flex:none; color:var(--label-secondary); font-size:20px; }
.station-price-row--no-location { cursor:default; opacity:.78; }
.station-price-empty,.station-price-loading,.station-price-error { margin:0; padding:18px 0; color:var(--label-secondary); font-size:13px; line-height:20px; }
.station-price-error button { min-height:44px; margin-top:8px; padding:0 14px; border:1px solid var(--separator); border-radius:999px; color:var(--label-primary); background:var(--surface-control); font:inherit; cursor:pointer; }

.map-guide-page-label { display:block; margin-bottom:4px; color:var(--label-secondary); font-size:11px; letter-spacing:.08em; }
/* P-016 desktop guide takes the right task-surface position in the atlas. */
@media (min-width:701px) {
  .workspace.map-guide-open { grid-template-columns:minmax(0,1fr) 0; }
  .workspace.map-guide-open > .explore-panel,
  .workspace.map-guide-open > .detail-panel { display:none; }
  .workspace.map-guide-open > .map-stage { grid-column:1; }
  .workspace.map-guide-open .sample-guide {
    position:fixed; z-index:1350; top:100px; right:24px; bottom:24px; left:auto;
    width:min(420px,calc(100vw - 48px)); max-height:none; overflow:auto;
    padding:24px; border-radius:24px; background:var(--surface-content);
  }
  .workspace.map-guide-open .sample-guide-actions { gap:8px; margin:20px 0; }
  .workspace.map-guide-open .sample-guide-actions > button { min-height:68px; padding:12px; }
  .workspace.map-guide-open .sample-guide-actions strong { font-size:14px; }
  .workspace.map-guide-open .sample-guide-actions small { font-size:12px; }
}


/* P-001 initial browse task dock. Task pages keep their existing panel and state. */
.p001-browse-dock { position:fixed; z-index:1240; left:24px; bottom:24px; width:min(430px,calc(100vw - 48px)); max-height:78vh; overflow:auto; padding:19px 20px 16px; border:1px solid var(--hairline); border-radius:22px; color:var(--label-primary); background:var(--surface-content); box-shadow:var(--shadow-lg); }
.p001-browse-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:13px; }
.p001-browse-heading h1 { margin:0; font:600 16px/1.25 "Noto Serif SC","Noto Serif JP",Georgia,serif; }
.p001-browse-heading span,.p001-browse-dock > p { color:var(--label-secondary); font-size:var(--type-supporting); }
.p001-browse-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.p001-browse-actions button { min-width:0; min-height:48px; display:flex; align-items:center; justify-content:center; gap:7px; padding:0 5px; border:1px solid var(--hairline); border-radius:12px; color:var(--label-primary); background:var(--surface-control); font-family:inherit; font-size:13px; font-weight:400; line-height:1.25; cursor:pointer; }
.p001-browse-actions button:hover { border-color:var(--interactive-primary); background:var(--surface-subtle); }
.p001-browse-actions button:focus-visible,.p001-return-to-map:focus-visible { outline:3px solid var(--focus-ring); outline-offset:2px; }
.p001-action-icon { display:block; flex:0 0 17px; width:17px; height:17px; color:var(--interactive-primary); }
.p001-browse-dock > p { margin:10px 0 0; font-size:var(--type-micro); }
.workspace.p001-browse > .explore-panel,.workspace.p001-browse > .app-sidebar { display:none !important; }
.workspace.p001-browse > .map-stage { grid-column:1 / -1; }
.workspace.p001-browse[data-explore-page="browse"]:not(.station-context-open):not(.property-detail-open) .map-legend { display:none; }
.workspace.p001-browse.detail-open { grid-template-columns:minmax(0,1fr) 420px; }
.workspace.p001-browse.detail-open > .map-stage { grid-column:1; }
.workspace.p001-browse.detail-open > .detail-panel { grid-column:2; grid-row:1; }
.workspace.p001-browse.named-areas-open > .explore-panel { display:block !important; }
.workspace.p001-browse.named-areas-open > .p001-browse-dock { display:none; }
.workspace.p001-browse.named-areas-open > .map-stage { grid-column:2 / -1; }
.p001-return-to-map { min-height:44px; margin:0 0 8px; padding:0 4px; border:0; color:var(--interactive-primary); background:transparent; font-family:inherit; font-size:var(--type-control); font-weight:600; line-height:1.3; cursor:pointer; }
.workspace:not(.p001-browse) .p001-browse-dock { display:none; }

/* Persistent entry row inside the detail sheet; page/component IDs stay in DOM only. */
.drawer-task-nav { position:relative; z-index:2; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; margin:0 12px 8px; padding:4px; border-radius:13px; background:var(--surface-subtle); }
.drawer-task-nav[hidden] { display:none !important; }
.drawer-task-nav button { min-width:0; min-height:42px; padding:6px 4px; border:0; border-radius:10px; color:var(--label-secondary); background:transparent; font-family:inherit; font-size:13px; font-weight:600; line-height:1.25; cursor:pointer; }
.drawer-task-nav button[aria-current="page"] { color:var(--ink-green-dark); background:var(--surface-content); box-shadow:var(--shadow-sm); }
.drawer-task-nav button:focus-visible { outline:2px solid var(--focus-ring); outline-offset:1px; }
.detail-task-return { min-height:44px; display:flex; align-items:center; margin:0 20px 10px; padding:0; border:0; color:var(--interactive-primary); background:transparent; font:inherit; font-size:var(--type-control); font-weight:650; cursor:pointer; }
.detail-task-return:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }
/* P-001 keeps only its dedicated C-065 layer entry on the map canvas;
   the P-011 layer switcher dock belongs to the layer task, not the empty browse state. */
.workspace.p001-browse ~ .layer-dock { display:none; }
@media (max-width:700px) {
  .p001-browse-dock { left:10px; right:10px; bottom:max(10px,env(safe-area-inset-bottom)); width:auto; padding:14px 12px 12px; border-radius:20px; }
  .p001-browse-heading { margin-bottom:13px; }
  .p001-browse-heading h1 { font-size:16px; }
  .p001-browse-actions { gap:5px; }
  .p001-browse-actions button { min-height:46px; gap:4px; padding:0 5px; font-size:11px; }
  .p001-action-icon { flex-basis:15px; width:15px; height:15px; }
  .p001-browse-dock > p { margin-top:7px; }
}
@media (min-width:701px) {
  .workspace.p001-browse.named-areas-open { grid-template-columns:296px minmax(0,1fr) 0; }
}
@media (min-width:1101px) {
  .workspace.p001-browse > .map-stage .map-toolbar { top:82px; right:calc((100vw - min(1120px,100vw - 48px))/2); }
}
@media (min-width:701px) and (max-width:1100px) {
  .topbar.p001-header-active { top:14px; width:calc(100vw - 32px); grid-template-rows:52px; }
  .topbar.p001-header-active > .search-wrap { grid-row:1; }
  .workspace.p001-browse > .map-stage .map-toolbar { top:82px; }
}
@media (min-width:701px) {
  .topbar.p001-header-active { top:14px; left:50%; right:auto; width:min(1120px,calc(100vw - 32px)); grid-template-columns:minmax(0,1fr) auto; gap:12px; transform:translateX(-50%); }
  .topbar.p001-header-active > .brand { display:none; }
  .topbar.p001-header-active > .search-wrap { grid-column:1; max-width:none; }
  .topbar.p001-header-active > .top-actions { grid-column:2; display:flex; align-items:center; gap:9px; }
  .topbar.p001-header-active #theme-toggle { order:1; }
  .topbar.p001-header-active #p001-locate-button { order:2; }
  .topbar.p001-header-active #rail-chart-toggle { order:3; }
  .topbar.p001-header-active #desktop-more-toggle { order:4; }
  .topbar.p001-header-active .top-actions > button { width:46px; height:46px; }
  .workspace.p001-browse > .map-stage .map-toolbar > button { width:46px; height:46px; }
}
.p001-language-toggle .p001-language-code { display:none; }
.mobile-more-menu.p001-browse-menu #language-menu-toggle .p001-language-code { display:inline; margin-left:auto; color:var(--label-secondary); font-size:12px; font-weight:650; }
.theme-menu-label { display:none; }
@media (min-width:701px) and (max-width:1100px) {
  .workspace.p001-browse.named-areas-open { grid-template-columns:250px minmax(0,1fr); }
}
@media (prefers-color-scheme:dark) { .p001-browse-actions button { border-color:var(--hairline); } }
@media (forced-colors:active) { .p001-browse-dock,.p001-browse-actions button { border:1px solid CanvasText; } }
@media (max-width:700px) { .p001-return-to-map { margin-top:34px; } }
.map-toolbar > #open-rail-areas { width:44px; height:44px; justify-self:end; }

.storm-surge-legend { width:100%; max-height:none; overflow:visible; padding:14px 0 0; border:0; border-top:1px solid var(--separator); border-radius:0; color:var(--label-primary); background:transparent; box-shadow:none; font-size:var(--type-supporting); line-height:1.45; }
.storm-surge-legend-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.storm-surge-legend-head strong { font-size:var(--type-body); }
.storm-surge-legend-close { min-width:44px; min-height:44px; padding:0 12px; border:1px solid var(--separator); border-radius:999px; color:var(--interactive-primary); background:var(--surface-control); font:inherit; cursor:pointer; }
.storm-surge-legend p { margin:5px 0 0; }
.storm-surge-legend label { display:grid; gap:4px; margin-block:8px; }
.storm-surge-legend select { width:100%; min-width:0; padding:6px 8px; border:1px solid var(--separator); border-radius:7px; color:var(--label-primary); background:var(--surface-primary); font:inherit; }
.storm-surge-legend .hazard-polygon-status { color:var(--label-secondary); }
.storm-surge-legend .hazard-polygon-status .hazard-tile-retry { min-height:36px; margin-inline-start:8px; padding:0 12px; border:1px solid var(--separator); border-radius:999px; color:var(--interactive-primary); background:var(--surface-control); font:inherit; cursor:pointer; }
.storm-surge-legend .hazard-polygon-status .hazard-tile-retry:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }
.storm-surge-legend .hazard-polygon-legend ul { grid-template-columns:1fr; }
.storm-surge-legend ul { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:3px 8px; list-style:none; margin:6px 0; padding:0; }
.storm-surge-legend li span { display:inline-block; width:10px; height:10px; margin-inline-end:4px; }
.storm-surge-legend details { margin-block-start:5px; }
.storm-surge-legend details a { display:block; margin-block-start:4px; }
.storm-surge-legend .kandagawa-map-toggle { display:flex; align-items:center; gap:8px; }
.storm-surge-legend .kandagawa-map-toggle input { flex:0 0 auto; width:20px; height:20px; margin:0; }
.storm-surge-legend .kandagawa-control-title { display:block; margin-block-start:10px; }
.storm-surge-legend .kandagawa-point-legend[hidden] { display:none; }
.storm-surge-legend .kandagawa-source-attribution { color:var(--label-secondary); }
.rainfall-basin-control { margin-block-start:10px; padding-block-start:8px; border-block-start:1px solid var(--separator); }
.rainfall-basin-control p { color:var(--label-secondary); }
.rainfall-basin-control label { display:grid; gap:4px; margin-block:8px; }
.rainfall-basin-control select { width:100%; min-width:0; padding:6px 8px; border:1px solid var(--separator); border-radius:7px; color:var(--label-primary); background:var(--surface-primary); font:inherit; }
.rainfall-basin-control ul { display:grid; grid-template-columns:1fr; gap:3px; list-style:none; margin:6px 0; padding:0; }
.rainfall-basin-control li span { display:inline-block; width:10px; height:10px; margin-inline-end:5px; border-radius:50%; }
.rainfall-basin-control .rainfall-basin-unknown-swatch { border:1px dashed var(--label-secondary); background:transparent; }
.rainfall-basin-control details a { display:block; margin-block-start:4px; }
.tsunami-point-control { margin-block-start:10px; padding-block-start:8px; border-block-start:1px solid var(--separator); }
.tsunami-point-control p { color:var(--label-secondary); }
.tsunami-point-control label { display:grid; gap:4px; margin-block:8px; }
.tsunami-point-control select { width:100%; min-width:0; padding:6px 8px; border:1px solid var(--separator); border-radius:7px; color:var(--label-primary); background:var(--surface-primary); font:inherit; }
.tsunami-point-control ul { display:grid; grid-template-columns:1fr; gap:3px; list-style:none; margin:6px 0; padding:0; }
.tsunami-point-control li span { display:inline-block; width:10px; height:10px; margin-inline-end:5px; border-radius:50%; }
.tsunami-point-control .tsunami-point-unknown-swatch { border:1px dashed var(--label-secondary); background:transparent; }
.tsunami-point-control details a { display:block; margin-block-start:4px; }
.tsunami-point-popup p { margin:.35em 0; }
.road-caution-point-control { margin-block-start:10px; padding-block-start:8px; border-block-start:1px solid var(--separator); }
.road-caution-point-control p { color:var(--label-secondary); }
.road-caution-point-control label { display:flex; align-items:flex-start; gap:8px; margin-block:8px; }
.road-caution-point-control input[type="checkbox"] { flex:none; margin-block-start:.2em; }
.road-caution-point-control ul { display:grid; grid-template-columns:1fr; gap:3px; list-style:none; margin:6px 0; padding:0; }
.road-caution-point-control li span { display:inline-block; width:10px; height:10px; margin-inline-end:5px; border-radius:50%; }
.road-caution-point-control .road-caution-unknown-swatch { border:1px dashed var(--label-secondary); background:transparent; }
.road-caution-point-popup p { margin:.35em 0; }
.road-caution-point-popup a { display:block; margin-block-start:4px; }
.tsunami-event-observation-control label { display:flex; align-items:flex-start; gap:8px; }
.tsunami-event-observation-control input[type="checkbox"] { flex:none; margin-block-start:.2em; }
.tsunami-event-provisional { font-size:.92em; }

/* iOS Safari zooms the page when a focused editable control uses text smaller
   than 16px. Keep the text readable at phone widths while leaving map toggles,
   checkboxes, radios, sliders, and buttons at their existing dimensions. */
@media (max-width:700px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]):not([type="color"]):not([type="file"]):not([type="image"]),
  select:not([multiple]),
  select[multiple],
  textarea { font-size:16px; }
}
/* Keep the chart in the header slot at ordinary phone widths; move it into More only on the narrowest screens. */
.mobile-more-menu:not([hidden]) button.compact-rail-chart-action { display:none; }

/* P-017 integrated facility record context. Color encodes only relative record density. */
.orbit-facility-context { margin: 12px 0 0; padding: 12px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface-subtle); }
.orbit-facility-context__header { display: grid; gap: 9px; }
.orbit-facility-context__header h3 { margin: 0; color: var(--label-primary); font-size: 14px; line-height: 1.35; }
.orbit-facility-context__header small,.orbit-facility-context__note { color: var(--label-secondary); font-size: 11px; line-height: 1.45; }
.orbit-facility-context__header small { display: block; margin-top: 2px; }
.orbit-facility-context__switch,.orbit-facility-context__radii { display: flex; gap: 4px; }
.orbit-facility-context__switch button,.orbit-facility-context__radii button { min-height: 32px; flex: 1; padding: 5px 8px; border: 1px solid var(--separator); border-radius: 8px; color: var(--label-secondary); background: var(--surface-control); font: inherit; font-size: 11px; cursor: pointer; }
.orbit-facility-context__switch button[aria-pressed="true"],.orbit-facility-context__radii button[aria-pressed="true"] { color: var(--label-selected); border-color: var(--interactive-primary); background: var(--surface-selected); font-weight: 700; }
.orbit-facility-context__metric { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 7px; margin: 10px 0 6px; }
.orbit-facility-context__metric strong { color: var(--ink-green-dark); font-size: 22px; font-variant-numeric: tabular-nums; }
.orbit-facility-context__metric span { color: var(--label-primary); font-size: 12px; }
.orbit-facility-context__metric small { grid-column: 1 / -1; color: var(--label-secondary); font-size: 10px; }
.orbit-facility-context__radii { margin: 0 0 7px; }
.orbit-facility-context__categories { display: grid; gap: 3px; margin: 7px 0; padding: 0; list-style: none; }
.orbit-facility-context__categories li { display: flex; justify-content: space-between; gap: 8px; color: var(--label-secondary); font-size: 10px; line-height: 1.4; }
.orbit-facility-context__categories li > span,.orbit-facility-context__legend > span { display:inline-flex; align-items:center; gap:5px; }
.facility-category-rank,.facility-nearest-rank { display:grid; flex:1; min-width:0; gap:3px; }
.facility-category-rank > span,.facility-nearest-rank > span { display:inline-flex; align-items:center; gap:5px; min-width:0; }
.facility-count-track,.facility-distance-track { display:block; height:5px; overflow:hidden; border-radius:99px; background:var(--surface-subtle); }
.facility-count-track b,.facility-distance-track b { display:block; height:100%; border-radius:inherit; background:var(--category); }
.facility-category-swatch { display:inline-block; flex:0 0 8px; width:8px; height:8px; border-radius:50%; background:var(--category,#a9adb0); }
.facility-direction-chart { display:grid; gap:3px; margin:8px 0; padding:7px 8px; border:1px solid var(--hairline); border-radius:8px; background:rgba(255,255,255,.58); }
.facility-direction-chart__row { display:grid; grid-template-columns:30px 1fr 34px; align-items:center; gap:6px; min-height:14px; color:var(--label-secondary); font-size:11px; }
.facility-direction-chart__row b { color:var(--label-primary); text-align:right; font-variant-numeric:tabular-nums; font-size:11px; }
.facility-direction-chart__track { display:flex; height:7px; overflow:hidden; border-radius:4px; background:rgba(95,105,100,.08); }
.facility-direction-chart__track i { display:block; flex:0 0 var(--segment); height:100%; background:var(--category); }
.orbit-facility-context__categories b { color: var(--label-primary); font-variant-numeric: tabular-nums; }
.orbit-facility-context__shopping { padding-top: 6px; border-top: 1px solid var(--hairline); }
.orbit-facility-context__legend { display: flex; align-items: center; gap: 3px; margin-top: 8px; color: var(--label-secondary); font-size: 11px; }
.orbit-facility-context__legend { flex-wrap:wrap; gap:6px 10px; }
.orbit-facility-context__note { margin: 6px 0 0; }
.orbit-facility-context__retry { min-height: 36px; margin-top: 7px; padding: 5px 10px; border: 1px solid var(--separator); border-radius: 8px; color: var(--label-selected); background: var(--surface-control); font: inherit; font-size: 12px; cursor: pointer; }
.facility-context-sector { pointer-events: auto; }
.facility-context-tooltip { border: 1px solid var(--separator); border-radius: 8px; color: var(--label-primary); background: var(--surface-overlay); box-shadow: 0 3px 12px rgba(20,35,30,.12); font-size: 11px; }
.orbit-facility-context button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.orbit-facility-context__legend-note { margin: 2px 0 0; color: var(--label-secondary); font-size: 11px; line-height:1.4; }
.orbit-facility-context__legend span { min-width: 18px; font-variant-numeric: tabular-nums; }
.orbit-price-context { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.orbit-price-context h3 { margin: 0; color: var(--label-primary); font-size: 13px; }
.orbit-price-context header small,.orbit-price-context p { display: block; margin: 3px 0 0; color: var(--label-secondary); font-size: 10px; line-height: 1.45; }
.orbit-price-context svg { display: block; width: 100%; height: auto; margin-top: 5px; overflow: visible; }
.orbit-price-context svg text { fill: var(--label-secondary); font: 9px system-ui,sans-serif; }
.orbit-price-context__axis { fill: none; stroke: var(--separator); stroke-width: 1; }
.orbit-price-context circle { stroke: #fff; stroke-width: 1; cursor: help; }
.orbit-price-context circle.price-kind-transaction { fill: #356f52; }
.orbit-price-context circle.price-kind-listing { fill: #b4664e; }
.orbit-price-context circle.price-kind-estimate { fill: #8174a0; }
.orbit-price-context circle.price-kind-area_stat { fill: #5f8194; }
.orbit-price-context circle.price-kind-new_build_initial { fill: #b38b45; }
.orbit-price-context__legend { display: flex; flex-wrap: wrap; gap: 4px 9px; color: var(--label-secondary); font-size: 9px; }
.orbit-price-context__legend span { display: inline-flex; align-items: center; gap: 4px; }
.orbit-price-context__legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--label-secondary); }
.orbit-price-context__legend i.price-kind-transaction { background: #356f52; }
.orbit-price-context__legend i.price-kind-listing { background: #b4664e; }
.orbit-price-context__legend i.price-kind-estimate { background: #8174a0; }
.orbit-price-context__legend i.price-kind-area_stat { background: #5f8194; }
.orbit-price-context__legend i.price-kind-new_build_initial { background: #b38b45; }
.orbit-price-context button:focus-visible,.orbit-price-context circle:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Map-native radial record crown and concise first-open P-001 panel. */
.orbit-facility-context.is-home-compact { margin:7px 0 10px; padding:8px 10px; border-color:rgba(43,62,52,.12); background:rgba(255,255,255,.82); }
.p001-facility-context-intro { display:grid; gap:2px; margin:0 0 4px; }
.p001-facility-context-intro strong { color:var(--label-primary); font:600 15px/1.2 "Noto Serif SC","Noto Serif JP",Georgia,serif; }
.p001-facility-context-intro span { color:var(--label-secondary); font-size:10px; }
.p001-facility-context-intro button { justify-self:start; min-height:34px; padding:0 9px; border:1px solid var(--hairline); border-radius:9px; color:var(--interactive-primary); background:var(--surface-control); font-family:inherit; font-size:12px; font-weight:600; line-height:1.2; cursor:pointer; }
.p001-facility-context-intro button[hidden] { display:none; }
.orbit-facility-context.is-home-compact .orbit-facility-context__header { display:none; }
.orbit-facility-context.is-home-compact .orbit-facility-context__metric { display:flex; align-items:baseline; flex-wrap:wrap; gap:0 6px; margin:0 0 4px; }
.orbit-facility-context.is-home-compact .orbit-facility-context__metric strong { font-size:24px; }
.orbit-facility-context.is-home-compact .orbit-facility-context__metric small { flex-basis:100%; }
.orbit-facility-context.is-home-compact .facility-index-card { margin:4px 0 0; padding:7px; }
.orbit-facility-context.is-home-compact .facility-index-card header { display:flex; font-size:9px; }
.orbit-facility-context.is-home-compact .facility-index-card__item strong { font-size:18px; }
.orbit-facility-context.is-home-compact .facility-index-card p { margin-top:4px; font-size:10px; line-height:1.3; }
.orbit-facility-context.is-home-compact .facility-index-card__caveat { font-size:10px; line-height:1.25; }
.orbit-facility-context.is-home-compact .orbit-facility-context__legend { gap:3px 7px; margin-top:4px; font-size:10px; }
.facility-context-expand { width:100%; min-height:30px; margin-top:5px; border:1px solid var(--separator); border-radius:8px; color:var(--label-selected); background:var(--surface-content); font:inherit; font-size:11px; font-weight:600; line-height:1.2; cursor:pointer; }
.facility-context-expand:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }
.facility-index-card { margin:9px 0 0; padding:10px; border:1px solid rgba(51,72,61,.16); border-radius:10px; color:var(--label-primary); background:rgba(255,255,255,.82); }
.facility-index-card header { display:flex; align-items:baseline; justify-content:space-between; gap:8px; color:var(--label-primary); font-size:11px; font-weight:700; }
.facility-index-card header small { color:var(--label-secondary); font-size:9px; font-weight:500; }
.facility-index-card__items { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-top:6px; }
.facility-index-card__item { display:grid; grid-template-columns:1fr auto; align-items:baseline; gap:0 5px; padding:6px 7px; border-radius:8px; background:rgba(237,240,233,.72); }
.facility-index-card__item span { color:var(--label-secondary); font-size:9px; }
.facility-index-card__item strong { grid-column:2; grid-row:1/3; color:var(--ink-green-dark); font-size:21px; font-variant-numeric:tabular-nums; }
.facility-index-card__item small { color:var(--label-secondary); font-size:8px; line-height:1.3; }
.facility-index-card p,.facility-index-card__caveat { display:block; margin:7px 0 0; color:var(--label-secondary); font-size:9px; line-height:1.45; }
.facility-index-card__caveat { margin-top:2px; }
.facility-nearest-list { margin-top:10px; padding-top:8px; border-top:1px solid var(--hairline); }
.facility-nearest-list h4 { margin:0; color:var(--label-primary); font-size:12px; }
.facility-nearest-list > small { display:block; margin-top:2px; color:var(--label-secondary); font-size:10px; line-height:1.35; }
.facility-nearest-list ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 10px; margin:7px 0 0; padding:0; list-style:none; }
.facility-nearest-list li { display:flex; justify-content:space-between; align-items:center; gap:8px; min-width:0; color:var(--label-secondary); font-size:11px; }
.facility-nearest-list li span { display:inline-flex; align-items:center; gap:5px; min-width:0; }
.facility-nearest-list li b { flex:0 0 auto; color:var(--label-primary); font-size:11px; font-variant-numeric:tabular-nums; }
.facility-radial-paper { stroke:none; }
.facility-home-paper-mask { stroke:none; }
.facility-context-focus { min-height:40px; margin:0 0 8px; padding:0 11px; border:1px solid var(--hairline); border-radius:10px; color:var(--interactive-primary); background:var(--surface-control); font-family:inherit; font-size:12px; font-weight:600; line-height:1.25; cursor:pointer; }
.facility-context-focus:focus-visible,.p001-facility-context-intro button:focus-visible { outline:3px solid var(--focus-ring); outline-offset:2px; }
.facility-radial-bar { stroke-linejoin:round; }
.facility-radial-center { background:transparent; border:0; }
.facility-radial-center span { display:block; width:max-content; max-width:150px; padding:3px 7px; border:1px solid rgba(53,70,59,.16); border-radius:8px; color:#263b31; background:rgba(255,253,248,.96); box-shadow:0 2px 8px rgba(22,35,28,.12); font-size:11px; font-weight:700; white-space:nowrap; }
.facility-radial-direction { background:transparent; border:0; }
.facility-radial-direction span { display:grid; justify-items:center; min-width:46px; padding:3px 5px; border:1px solid rgba(53,70,59,.16); border-radius:9px; color:#263b31; background:rgba(255,253,248,.96); box-shadow:0 2px 8px rgba(22,35,28,.14); font:700 12px/1.1 system-ui,sans-serif; }
.facility-radial-direction b { margin-top:2px; color:#536257; font-size:11px; font-variant-numeric:tabular-nums; }
.facility-radial-tooltip { max-width:min(280px,78vw); line-height:1.45; }
.facility-point-chart { margin:10px 0 12px; padding:10px; border:1px solid var(--hairline); border-radius:12px; background:var(--surface-content); }
.facility-point-chart > header { display:flex; align-items:baseline; justify-content:space-between; gap:8px; color:var(--label-primary); font-size:12px; font-weight:700; }
.facility-point-chart > header small { color:var(--label-secondary); font-size:11px; font-weight:500; font-variant-numeric:tabular-nums; }
.facility-radial-geography { position:relative; height:230px; margin:7px 0; overflow:hidden; border:1px solid var(--hairline); border-radius:10px; background:#f2f0e7; isolation:isolate; }
.facility-radial-map { position:absolute; inset:0; background:#f2f0e7; }
.facility-radial-map .facility-radial-mini-tiles .leaflet-tile { filter:saturate(.52) contrast(.91) brightness(1.05); }
.facility-radial-map .leaflet-tile-pane { opacity:.95; }
.facility-radial-map .leaflet-pane:not(.leaflet-tile-pane) { z-index:410; }
.facility-radial-north { position:absolute; z-index:500; top:8px; right:8px; display:grid; place-items:center; width:28px; height:30px; border:1px solid rgba(45,61,51,.2); border-radius:7px; color:var(--label-primary); background:rgba(255,253,248,.92); font-size:11px; font-weight:750; pointer-events:none; }
.facility-radial-map .leaflet-control-attribution { margin:0 3px 2px 0; padding:1px 4px; border-radius:3px; color:#455149; background:rgba(255,253,248,.82); font-size:9px; }
.facility-radial-center-marker { background:transparent; border:0; }
.facility-radial-center-marker i { display:block; width:12px; height:12px; border:2px solid #fff; border-radius:50%; background:var(--interactive-primary); box-shadow:0 1px 5px rgba(0,0,0,.45); }
.facility-radial-center-label { padding:3px 6px; border:1px solid rgba(40,60,48,.2); border-radius:6px; color:var(--label-primary); background:rgba(255,253,248,.96); box-shadow:0 1px 4px rgba(0,0,0,.16); font-size:11px; font-weight:700; }
.facility-radial-center-label:before { display:none; }
.facility-radial-band { stroke-linejoin:round; }
.facility-radial-band:hover { stroke:#263b31; stroke-width:1; }
.facility-point-legend { display:flex; flex-wrap:wrap; gap:4px 6px; justify-content:flex-start; margin:8px 0 5px; }
.facility-point-legend button { display:inline-flex; align-items:center; gap:5px; min-height:32px; padding:3px 6px; border:1px solid var(--hairline); border-radius:7px; color:var(--label-secondary); background:var(--surface-control); font:inherit; font-size:11px; cursor:pointer; }
.facility-point-legend button[aria-pressed="true"] { border-color:var(--hairline); color:var(--label-primary); background:var(--surface-subtle); }
.facility-point-legend i { width:11px; height:11px; border-radius:50%; background:var(--category); }
.facility-point-legend b { color:var(--label-primary); font-size:10px; font-variant-numeric:tabular-nums; }
.facility-point-chart p,.station-analytics-overview p,.building-analysis-overview p { margin:6px 0 0; color:var(--label-secondary); font-size:11px; line-height:1.45; }
.facility-point-tooltip { max-width:min(280px,78vw); }
.station-analytics-overview,.building-analysis-overview { margin:0 0 12px; padding:12px; border:1px solid var(--hairline); border-radius:12px; color:var(--label-primary); background:var(--surface-content); }
.station-analytics-title h3,.building-analysis-overview h3 { margin:0; font-size:15px; }
.station-analytics-title small,.building-analysis-overview header small { color:var(--label-secondary); font-size:11px; }
.station-analytics-headline { display:grid; grid-template-columns:auto 1fr; align-items:baseline; gap:0 7px; margin:10px 0; }
.station-analytics-headline strong { color:var(--ink-green-dark); font-size:25px; font-variant-numeric:tabular-nums; }
.station-analytics-headline small { grid-column:1/-1; color:var(--label-secondary); font-size:11px; }
.station-analytics-grid,.building-analysis-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.station-analytics-grid h4,.building-analysis-grid h4 { margin:8px 0 5px; font-size:12px; }
.station-analytics-grid small,.building-analysis-grid small { color:var(--label-secondary); font-size:10px; }
.station-housing-bar,.building-layout-sample { display:grid; grid-template-columns:minmax(44px,.7fr) minmax(36px,1fr) auto; align-items:center; gap:6px; min-height:20px; color:var(--label-secondary); font-size:10px; font-variant-numeric:tabular-nums; }
.station-housing-bar i,.building-layout-sample i { height:6px; overflow:hidden; border-radius:4px; background:var(--surface-subtle); }
.station-housing-bar i b,.building-layout-sample i b { display:block; height:100%; border-radius:inherit; background:var(--accent-editorial); }
.station-housing-bar strong,.building-layout-sample strong { color:var(--label-primary); }
.station-analytics-grid > div > small { display:block; margin-top:4px; }
.station-price-quartiles { display:flex; align-items:center; gap:6px; margin:9px 0 5px; color:var(--label-primary); font-size:10px; font-variant-numeric:tabular-nums; }
.station-price-quartiles > span { display:grid; gap:2px; }
.station-price-quartiles > span small { color:var(--label-secondary); }
.station-price-quartiles > i { position:relative; flex:1; height:8px; border-radius:5px; background:var(--accent-editorial); }
.station-price-distribution > strong { font-size:17px; font-variant-numeric:tabular-nums; }
.station-price-distribution > strong small { font-size:10px; font-weight:500; }
.building-analysis-overview > header { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.building-age { display:grid; text-align:right; color:var(--ink-green-dark); }
.building-age b { font-size:19px; font-variant-numeric:tabular-nums; }
.building-age small { font-size:10px; }
.building-analysis-score { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin:10px 0; }
.building-analysis-score > div { display:grid; gap:2px; min-width:0; padding:8px; border-radius:8px; background:var(--surface-subtle); }
.building-analysis-score span,.building-analysis-score small { color:var(--label-secondary); font-size:10px; line-height:1.35; }
.building-analysis-score strong { color:var(--ink-green-dark); font-size:20px; font-variant-numeric:tabular-nums; }
.building-analysis-grid > section { min-width:0; }
.building-layout-sample { grid-template-columns:38px minmax(22px,1fr) auto; }
.building-layout-sample em { grid-column:1/-1; color:var(--label-secondary); font-size:9px; font-style:normal; }
.building-layout-sample > strong { font-size:10px; font-weight:600; white-space:nowrap; }
.building-layout-area { display:grid; grid-template-columns:1fr; gap:3px; margin:1px 0 6px 44px; }
.building-layout-area > small { color:var(--label-secondary); font-size:9px; font-variant-numeric:tabular-nums; }
.building-layout-area-track { position:relative; display:block; height:7px; border-radius:4px; background:var(--surface-subtle); }
.building-layout-area-track > i { position:absolute; top:1px; left:var(--area-left); width:var(--area-width); height:5px; min-width:3px; border-radius:3px; background:#657D70; }
.building-layout-area-track > b { position:absolute; top:-1px; left:var(--area-mean); width:3px; height:9px; border:1px solid var(--surface-content); border-radius:2px; background:#1D2926; transform:translateX(-50%); }
.building-analysis-footnote { padding-top:7px; border-top:1px solid var(--hairline); }
.evidence-price-chart { min-width:0; }
.evidence-price-chart > header { display:flex; justify-content:space-between; align-items:baseline; gap:4px; }
.evidence-price-chart > header h4 { margin:0; }
.evidence-price-chart svg { width:100%; height:auto; overflow:visible; }
.evidence-price-chart svg text { fill:var(--label-secondary); font:9px system-ui,sans-serif; }
.evidence-price-chart .building-price-point { cursor:help; }
.evidence-price-chart .building-price-point:focus-visible { outline:2px solid var(--focus-ring); outline-offset:2px; }
.price-evidence-symbol { width:11px; height:11px; display:inline-block; border:1px solid white; background:var(--evidence); }
.price-evidence-symbol.is-circle { border-radius:50%; }
.price-evidence-symbol.is-diamond { transform:rotate(45deg) scale(.78); }
.price-evidence-symbol.is-triangle { width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:11px solid var(--evidence);border-top:0;background:transparent; }
.price-evidence-symbol.is-hexagon { clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); }
.evidence-price-chart > p { font-size:10px; }
.facility-radial-popup { min-width:150px; }
.facility-radial-popup > strong,.facility-radial-popup > small { display:block; margin-bottom:4px; }
.facility-radial-popup > small { color:var(--label-secondary); }
.facility-radial-popup > div { display:flex; justify-content:space-between; gap:10px; }
@media (max-width:700px) {
  .facility-point-chart { padding:8px; }
  .facility-radial-geography { height:220px; }
  .facility-point-legend { justify-content:flex-start; }
  .station-analytics-overview,.building-analysis-overview { padding:9px; }
  .station-analytics-grid,.building-analysis-grid { grid-template-columns:1fr; }
  .building-analysis-grid > section + section { border-top:1px solid var(--hairline); padding-top:8px; }
  .building-analysis-score strong { font-size:18px; }
  .workspace.p001-browse:not(.station-context-open):not(.property-detail-open) .p001-browse-dock { left:10px; right:10px; bottom:max(10px,env(safe-area-inset-bottom)); width:auto; max-height:min(36vh,290px); overflow:auto; }
  .orbit-facility-context.is-home-compact { margin:5px 0 7px; padding:6px 7px; }
  .orbit-facility-context.is-home-compact .facility-index-card { padding:5px; }
  .orbit-facility-context.is-home-compact .facility-index-card__item { padding:4px; }
  .orbit-facility-context.is-home-compact .facility-index-card__item strong { font-size:17px; }
  .orbit-facility-context.is-home-compact .facility-index-card p { display:none; }
  .orbit-facility-context.is-home-compact .facility-index-card__caveat { font-size:10px; }
  .orbit-facility-context.is-home-compact .orbit-facility-context__legend { max-height:none; font-size:10px; }
  .facility-radial-direction span { min-width:42px; padding:2px 3px; font-size:12px; }
}

@media (min-width:701px) {
  .station-analytics-grid,.building-analysis-grid { grid-template-columns:minmax(0,1fr); }
  .station-analytics-grid > div + div,.building-analysis-grid > section + section { border-top:1px solid var(--hairline); padding-top:10px; }
  .station-analytics-grid small,.building-analysis-grid small { font-size:11px; }
  .station-housing-bar,.building-layout-sample { font-size:11px; }
  .building-layout-sample em { font-size:10px; }
  .station-price-quartiles { font-size:11px; }
  .building-analysis-score span,.building-analysis-score small { font-size:11px; }
  .evidence-price-chart svg text { font-size:10px; }
}
