:root {
  --color-paper: oklch(98% 0.004 60);
  --color-surface: oklch(99.8% 0.002 55);
  --color-ink: oklch(26% 0.012 40);
  --color-muted: oklch(49% 0.012 45);
  --color-rule: oklch(92% 0.008 55);
  --color-accent: oklch(61% 0.17 36);
  --color-accent-ink: oklch(52% 0.17 36);
  --color-danger: oklch(51% 0.18 30);
  --color-accent-pale: oklch(94% 0.025 40);
  --color-focus: oklch(51.5% 0.145 36);
  --color-sea: oklch(96% 0.008 65);
  --color-land: oklch(99.3% 0.003 65);
  --color-north: oklch(93.5% 0.007 65);
  --color-coastline: oklch(84% 0.01 60);
  --color-heat-low: oklch(98% 0.006 55);
  --color-heat-mid: oklch(94% 0.035 36);
  --color-heat-high: oklch(75% 0.15 32);
  --color-heat-peak: oklch(59% 0.205 28);
  --color-shadow: oklch(22% 0.02 40 / 0.065);
  --color-scrim: oklch(20% 0.02 170 / 0.28);
  --color-action: oklch(51.5% 0.145 36);
  --color-inset: oklch(95% 0.009 55);
  --color-transparent: transparent;
  --font-display: "Hotplace Brand", "Arial", sans-serif;
  --font-body: "Hotplace Sans", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --gutter: clamp(24px, 3.2vw, 48px);
  --dock-width: clamp(320px, 28vw, 380px);
  --map-tools-width: 128px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --radius-control: 12px;
  --radius-panel: 16px;
  --radius-pill: 99px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 140ms;
  --dur-panel: 300ms;
  --shadow-panel: 0 8px 32px var(--color-shadow);
}

@font-face {
  font-family: "Hotplace Brand";
  src: url("/fonts/brand.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Hotplace Sans";
  src: url("/fonts/body.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 14px;
}
body {
  height: 100dvh;
  min-height: 500px;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: var(--color-transparent);
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  white-space: nowrap;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
}
button:active:not(:disabled) {
  translate: 0 1px;
}
button {
  transition:
    background-color var(--dur-micro) var(--ease-out),
    opacity var(--dur-micro) var(--ease-out),
    color var(--dur-micro) var(--ease-out),
    scale var(--dur-micro) var(--ease-out);
}
::selection {
  background: var(--color-accent-pale);
}
input {
  caret-color: var(--color-accent);
}
[hidden] {
  display: none !important;
}
svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-style: normal;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  min-width: 0;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 5;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 30px var(--font-display);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.wordmark .brand-symbol {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  color: var(--color-accent);
}
.brand-period {
  display: flex;
  width: 0.31em;
  height: 0.31em;
  flex: none;
  color: var(--color-accent);
  margin-left: -6px;
  transform: translateY(0.23em);
}
.brand-period svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.topbar nav {
  display: flex;
  gap: 8px;
}
.quiet-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 600;
}
.quiet-button:hover {
  background: var(--color-surface);
}
.count {
  font-size: 11px;
  color: var(--color-accent);
}
#app {
  height: calc(100dvh - 76px);
  min-height: 414px;
  position: relative;
  isolation: isolate;
}
.map-stage {
  position: absolute;
  inset: 0;
  overflow: clip;
  background: var(--color-sea);
}
#map {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
#map.dragging {
  cursor: grabbing;
}
.city-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.city-label {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-shadow:
    0 1px 5px var(--color-land),
    0 -1px 5px var(--color-land);
}
.city-label span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-ink);
  flex-shrink: 0;
}
.city-label.major {
  font-weight: 750;
  font-size: 13px;
}
.city-label.selected {
  color: var(--color-accent-ink);
  z-index: 2;
  background: var(--color-surface);
  box-shadow: 0 4px 14px var(--color-shadow);
  border-radius: var(--radius-pill);
  padding: 0 12px;
  text-shadow: none;
}
.city-label.selected span {
  background: var(--color-accent);
  width: 6px;
  height: 6px;
}
.city-label.mine:after {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--color-focus);
  border-radius: 50%;
}
.city-label:hover {
  color: var(--color-accent-ink);
}
.intro {
  position: absolute;
  left: var(--gutter);
  top: 32px;
  pointer-events: none;
}
.view-date {
  font-size: 12px;
  font-weight: 550;
  color: var(--color-muted);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 38px;
  line-height: 1.32;
  font-weight: 400;
}
h1 span {
  font-weight: 750;
}
.intro-note {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 16px;
}
.search-wrap {
  position: absolute;
  top: 24px;
  right: var(--gutter);
  width: var(--dock-width);
  z-index: 4;
}
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  background: var(--color-surface);
  padding: 0 16px;
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-panel);
}
.search svg {
  color: var(--color-muted);
  width: 19px;
}
.search input {
  border: 0;
  background: none;
  min-width: 0;
  width: 100%;
  outline: none;
  color: var(--color-ink);
  font-size: 13px;
}
.search input::placeholder {
  color: var(--color-muted);
}
.search:focus-within {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}
.search kbd {
  font: 16px var(--font-body);
  color: var(--color-muted);
}
.search-results {
  margin-top: 8px;
  padding: 8px;
  border-radius: var(--radius-control);
  background: var(--color-surface);
  box-shadow: var(--shadow-panel);
  max-height: 310px;
  overflow: auto;
}
.search-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
}
.search-option small {
  color: var(--color-muted);
}
.search-option:hover,
.search-option:focus {
  background: var(--color-paper);
}
.search-empty {
  padding: 12px;
  color: var(--color-muted);
}
.map-controls {
  position: absolute;
  right: var(--gutter);
  bottom: 198px;
  display: flex;
  flex-direction: column;
  padding: 4px;
  background: var(--color-surface);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-panel);
}
.map-controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 38px;
  font-size: 22px;
  border-radius: 8px;
}
.map-controls button:hover {
  background: var(--color-paper);
}
.map-legend {
  position: absolute;
  left: var(--gutter);
  bottom: 174px;
  width: 160px;
}
.legend-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
}
.legend-dot {
  width: 5px;
  height: 5px;
  background: var(--color-focus);
  border-radius: 50%;
}
.legend-heading button {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-coastline);
  border-radius: 50%;
  font-size: 11px;
}
.legend-scale {
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(
    90deg,
    var(--color-heat-low),
    var(--color-heat-mid),
    var(--color-heat-high),
    var(--color-heat-peak)
  );
  margin: 10px 0 6px;
}
.legend-range {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--color-muted);
}
#update-label {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 11px;
}

.site-footer {
  border-top: 1px solid var(--color-line, #ddd);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  color: var(--color-muted, #666);
  font-size: 12px;
}
.site-footer a {
  color: inherit;
  text-underline-offset: 3px;
}

.timeline {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, calc(100% - var(--dock-width) * 2 - var(--gutter) * 2 - 32px));
  min-width: 0;
  background: var(--color-surface);
  box-shadow: var(--shadow-panel);
  border-radius: var(--radius-panel);
  padding: 16px 22px 20px;
  z-index: 3;
}
.timeline-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
}
.now-button {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 650;
  border-radius: var(--radius-pill);
  padding: 9px 12px;
  background: var(--color-paper);
}
.now-button span {
  width: 5px;
  height: 5px;
  background: var(--color-muted);
  border-radius: 50%;
}
.now-button.active {
  background: var(--color-ink);
  color: var(--color-surface);
}
.now-button.active span {
  background: var(--color-heat-mid);
}
.date-selection {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 24px;
}
.icon-button:hover {
  background: var(--color-paper);
}
.date-display {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  white-space: nowrap;
  min-width: 107px;
  text-align: center;
  cursor: pointer;
}
.date-display input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.date-display:focus-within {
  outline: 2px solid var(--color-focus);
  outline-offset: 5px;
  border-radius: 4px;
}
.weekend-button {
  grid-column: 3;
  justify-self: end;
  font-size: 11px;
  color: var(--color-muted);
  padding: 8px;
}
.weekend-button span {
  margin-left: 6px;
}
.timeline-track {
  position: relative;
  height: 38px;
  margin-top: 14px;
}
.timeline-track input {
  position: relative;
  width: 100%;
  margin: 0;
  height: 22px;
  appearance: none;
  background: var(--color-transparent);
  cursor: ew-resize;
  z-index: 2;
}
.timeline-track input::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--color-rule);
  border-radius: 2px;
}
.timeline-track input::-moz-range-track {
  height: 2px;
  background: var(--color-rule);
}
.timeline-track input::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 22px;
  border: 3px solid var(--color-surface);
  background: var(--color-accent);
  box-shadow: 0 1px 5px var(--color-shadow);
  border-radius: var(--radius-pill);
  margin-top: -10px;
}
.timeline-track input::-moz-range-thumb {
  width: 9px;
  height: 16px;
  border: 3px solid var(--color-surface);
  background: var(--color-accent);
  border-radius: var(--radius-pill);
}
.timeline-ticks {
  position: absolute;
  left: 7px;
  right: 7px;
  top: 28px;
  font-size: 11px;
  color: var(--color-muted);
}
.timeline-ticks span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}
.timeline-weekends {
  position: absolute;
  left: 7px;
  right: 7px;
  top: 3px;
  height: 16px;
  pointer-events: none;
}
.timeline-weekends i {
  position: absolute;
  width: 5px;
  height: 16px;
  border-radius: 2px;
  background: var(--color-accent-pale);
  transform: translateX(-50%);
}
.city-panel {
  position: absolute;
  right: var(--gutter);
  top: 88px;
  width: var(--dock-width);
  max-height: calc(100% - 174px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 22px 24px 20px;
  background: var(--color-surface);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
  z-index: 3;
}
.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -7px;
}
.panel-top p {
  font-size: 11px;
  color: var(--color-muted);
}
.panel-top .icon-button {
  width: 28px;
  height: 28px;
}
.city-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 4px;
}
.city-title-row h2 {
  font-size: 29px;
  font-weight: 700;
}
.city-title-row > span {
  font-size: 11px;
  color: var(--color-muted);
}
.city-outlook {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.outlook-orb {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--color-rule);
  background: var(--color-heat-mid);
}
.city-outlook strong {
  font-size: 14px;
  font-weight: 600;
}
.city-outlook p {
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 4px;
}
.week-preview {
  display: flex;
  gap: 5px;
  margin: 19px 0 14px;
}
.week-day {
  flex: 1;
  padding: 5px 0 0;
  font-size: 11px;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  border-radius: 6px;
}
.week-day:hover {
  background: var(--color-paper);
}
.week-day i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.week-day.chosen {
  color: var(--color-accent);
  font-weight: 750;
}
.party-row {
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.quantity {
  display: flex;
  align-items: center;
  gap: 8px;
}
.quantity button {
  width: 30px;
  height: 30px;
  background: var(--color-paper);
  border-radius: 50%;
  font-size: 18px;
}
.quantity output {
  font-size: 12px;
  min-width: 28px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.primary-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-action);
  color: var(--color-surface);
  padding: 15px 17px;
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 600;
  margin-top: 16px;
}
.primary-button:hover {
  background: var(--color-focus);
}
.primary-button.saved {
  background: var(--color-accent-pale);
  color: var(--color-accent-ink);
}
.remove-button {
  display: block;
  margin: 10px auto 0;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--color-muted);
}

.form-message {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 8px;
  color: var(--color-danger);
}
.form-message:empty {
  display: none;
}
.app-status {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  font-size: 12px;
  background: var(--color-surface);
  box-shadow: var(--shadow-panel);
  border-radius: var(--radius-pill);
  z-index: 9;
  padding: 10px 18px;
  max-width: 80%;
  text-align: center;
}
.app-status:empty {
  display: none;
}
dialog {
  border: 0;
  padding: 28px;
  border-radius: var(--radius-panel);
  background: var(--color-surface);
  color: var(--color-ink);
  max-width: 460px;
  width: calc(100% - 32px);
  max-height: 80dvh;
  box-shadow: var(--shadow-panel);
}
dialog::backdrop {
  background: var(--color-scrim);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  font-size: 20px;
}
dialog p,
dialog li {
  font-size: 13px;
  line-height: 1.9;
  color: var(--color-muted);
}
dialog p + p {
  margin-top: 12px;
}
dialog h3 {
  margin-top: 24px;
  font-size: 14px;
}
dialog ul {
  padding-left: 18px;
}
dialog a {
  color: var(--color-focus);
}
#source-status {
  font-size: 11px;
}
.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-rule);
}
.plan-row button {
  text-align: left;
  min-width: 0;
  white-space: normal;
}
.plan-row strong {
  display: block;
  font-size: 16px;
}
.plan-row small {
  display: block;
  color: var(--color-muted);
  font-size: 11px;
  margin-top: 5px;
}
.plan-row span {
  font-size: 12px;
  color: var(--color-muted);
}

::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-thumb {
  background: var(--color-rule);
  border-radius: 5px;
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.map-error {
  position: absolute;
  left: 50%;
  top: 100px;
  transform: translateX(-50%);
  z-index: 10;
  background: var(--color-surface);
  box-shadow: var(--shadow-panel);
  border-radius: var(--radius-panel);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  max-width: 90%;
}
.map-error button {
  color: var(--color-focus);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px;
}

.comparison-context {
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.5;
  margin-top: 10px;
  min-height: 17px;
}
.week-bar {
  position: relative;
  display: block;
  width: 24px;
  height: 38px;
}
.week-bar b {
  display: block;
  position: absolute;
  bottom: 0;
  left: 7px;
  width: 10px;
  border-radius: 3px 3px 1px 1px;
  background: var(--color-heat-high);
}
.week-day.chosen .week-bar b {
  background: var(--color-accent);
}
.week-day .week-bar i {
  position: absolute;
  left: 1px;
  width: 22px;
  height: 1px;
  border-radius: 0;
  background: var(--color-muted);
  z-index: 1;
}
.comparison-key {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  color: var(--color-muted);
  font-size: 10px;
  margin: -4px 0 18px;
}
.comparison-key span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.comparison-key b {
  width: 5px;
  height: 7px;
  border-radius: 1px;
  background: var(--color-heat-high);
}
.comparison-key i {
  width: 12px;
  height: 1px;
  background: var(--color-muted);
}
.date-discovery {
  margin-bottom: 18px;
}
.preference {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--color-rule);
}
.preference button {
  position: relative;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--color-muted);
}
.preference button[aria-pressed="true"] {
  color: var(--color-ink);
  font-weight: 700;
}
.preference button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--color-ink);
  bottom: -1px;
  left: 12px;
  right: 12px;
}
.preference button:hover {
  background: var(--color-paper);
}
.suggested-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 0 4px;
  text-align: left;
}
.suggested-date strong {
  font-size: 14px;
  font-weight: 650;
  color: var(--color-focus);
}
.suggested-date small {
  display: block;
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 4px;
}
.suggested-date svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-focus);
}
.suggested-date:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.suggestion-empty,
.suggestion-caveat {
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.5;
}
.suggestion-empty {
  padding-top: 12px;
}
.suggestion-caveat {
  margin-top: 6px;
}
.suggestion-caveat:empty {
  display: none;
}

@media (max-width: 760px) {
  .topbar {
    height: 68px;
    padding: 0 22px;
  }
  .wordmark {
    font-size: 27px;
  }
  .wordmark .brand-symbol {
    width: 26px;
    height: 26px;
  }
  .quiet-button {
    padding: 10px;
    gap: 5px;
    font-size: 12px;
  }
  .topbar nav {
    gap: 0;
  }
  #app {
    height: calc(100dvh - 68px);
    min-height: 432px;
  }
  .intro {
    left: 24px;
    top: 24px;
  }
  .view-date {
    font-size: 11px;
    margin-bottom: 7px;
  }
  .intro h1 {
    font-size: 22px;
    line-height: 1.3;
  }
  .intro h1 br {
    display: none;
  }
  .intro h1 span {
    margin-left: 5px;
  }
  .search-wrap {
    top: 89px;
    left: 24px;
    right: auto;
    width: calc(100% - 80px);
  }
  .search {
    height: 44px;
    box-shadow: 0 5px 22px var(--color-shadow);
    border-radius: 10px;
    padding: 0 13px;
  }
  .search input {
    font-size: 12px;
  }
  .search kbd {
    display: none;
  }
  .search-results {
    max-height: 220px;
  }
  .map-controls {
    right: 16px;
    bottom: 182px;
  }
  .map-controls button {
    width: 30px;
    height: 34px;
  }
  .map-legend {
    left: 24px;
    bottom: 148px;
    width: 135px;
  }
  .legend-heading {
    font-size: 11px;
  }
  .legend-scale {
    height: 4px;
    margin-top: 8px;
  }
  .legend-range {
    font-size: 11px;
  }
  #update-label {
    font-size: 11px;
    margin-top: 8px;
  }
  .timeline {
    transform: none;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 16px;
    right: 16px;
    width: auto;
    min-width: 0;
    padding: 14px 16px 18px;
    border-radius: 16px;
  }
  .timeline-top {
    gap: 2px;
  }
  .now-button {
    padding: 9px 11px;
    font-size: 11px;
  }
  .date-display {
    font-size: 14px;
    min-width: 98px;
  }
  .weekend-button {
    font-size: 11px;
    padding: 6px 2px;
  }
  .weekend-button span {
    display: none;
  }
  .date-selection {
    gap: 0;
  }
  .icon-button {
    width: 28px;
    height: 32px;
  }
  .timeline-track {
    margin-top: 9px;
  }
  .city-label {
    font-size: 11px;
    padding: 0 4px;
    gap: 3px;
    height: 28px;
  }
  .city-label.major {
    font-size: 11px;
  }
  .city-panel {
    max-height: calc(100% - 238px);
    top: auto;
    right: 16px;
    left: 16px;
    bottom: 146px;
    width: auto;
    padding: 14px 18px 12px;
  }
  .panel-top {
    margin-top: -5px;
  }
  .panel-top p {
    font-size: 11px;
  }
  .city-title-row {
    margin-top: 0;
  }
  .city-title-row h2 {
    font-size: 24px;
  }
  .city-title-row > span {
    display: none;
    font-size: 11px;
  }
  .city-outlook {
    position: absolute;
    right: 18px;
    top: 42px;
    gap: 8px;
    margin-top: 0;
  }
  .outlook-orb {
    width: 8px;
    height: 8px;
  }
  .city-outlook strong {
    font-size: 13px;
  }
  .city-outlook p {
    font-size: 11px;
  }
  .week-preview {
    margin: 13px 0 12px;
    gap: 8px;
  }
  .week-day {
    gap: 5px;
  }
  .party-row {
    padding-top: 10px;
    font-size: 11px;
  }
  .quantity button {
    width: 28px;
    height: 28px;
  }
  .primary-button {
    padding: 12px 15px;
    margin-top: 10px;
    font-size: 12px;
  }

  .remove-button {
    margin-top: 6px;
  }
  .panel-open .map-legend {
    display: none;
  }
  .panel-open .map-controls {
    bottom: auto;
    top: 70px;
  }
  .panel-open .intro {
    opacity: 0;
    pointer-events: none;
  }
  .panel-open .search-wrap {
    top: 16px;
  }
  .app-status {
    top: 6px;
    font-size: 11px;
  }
  .search-wrap:focus-within {
    z-index: 7;
  }
}
@media (max-width: 374px) {
  .topbar {
    padding: 0 16px;
  }
  .quiet-button {
    padding: 9px 7px;
  }
  .wordmark {
    font-size: 25px;
  }
  .timeline {
    left: 10px;
    right: 10px;
    padding: 12px 12px 17px;
  }
  .weekend-button {
    font-size: 11px;
  }
  .date-display {
    min-width: 87px;
    font-size: 13px;
  }
  .city-panel {
    left: 10px;
    right: 10px;
  }
  .intro h1 {
    font-size: 20px;
  }
  .city-outlook strong {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 761px) {
  .map-controls {
    right: var(--gutter);
    bottom: 24px;
    width: var(--map-tools-width);
    flex-direction: row;
  }
  .map-controls button {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 760px) {
  .comparison-key {
    margin-bottom: 8px;
  }
  .date-discovery {
    margin-bottom: 12px;
  }
  .comparison-context {
    margin-top: 20px;
  }
  .preference button {
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .week-bar {
    height: 24px;
  }
  .week-preview {
    margin-top: 10px;
    margin-bottom: 8px;
  }
}

.city-insights {
  margin-top: 6px;
}
.city-insights > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  padding: 9px 0;
  font-size: 12px;
  color: var(--color-muted);
}
.city-insights > summary::-webkit-details-marker {
  display: none;
}
.city-insights > summary svg {
  width: 15px;
  height: 15px;
}
.city-insights[open] > summary svg {
  transform: rotate(180deg);
}
.city-chat {
  margin: 16px 0;
}
.chat-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.chat-heading h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}
#chat-expand {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--color-muted);
  font-size: 11px;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  min-height: 40px;
  color: var(--color-action);
}
#chat-expand svg {
  width: 15px;
  height: 15px;
}
#chat-expand:hover {
  color: var(--color-focus);
}
.chat-content {
  position: relative;
  height: 131px;
  padding-top: 1px;
  overflow: clip;
  background: var(--color-surface);
}
#chat-frame-slot,
#chat-frame-slot iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.chat-frame-covered {
  visibility: hidden;
}
.chat-message {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  color: var(--color-muted);
  text-align: center;
  font-size: 12px;
}
#chat-retry {
  color: var(--color-focus);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 8px;
}
.chat-expanded .city-panel {
  width: var(--dock-width);
  height: min(680px, calc(100% - 174px));
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: clip;
}
.chat-expanded .city-outlook,
.chat-expanded .city-insights,
.chat-expanded #visit-form {
  display: none;
}
.chat-expanded .city-chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-bottom: 0;
}
.chat-expanded .chat-content {
  flex: 1;
  height: auto;
  min-height: 0;
  padding-top: 0;
}
@media (max-width: 760px) {
  .city-insights {
    margin-top: 18px;
  }
  .city-insights > summary {
    padding: 7px 0;
  }
  .city-chat {
    margin: 8px 0 12px;
  }
  .chat-content {
    height: 131px;
  }
  .chat-heading {
    margin-bottom: 7px;
  }
  .chat-expanded #app {
    min-height: 0;
  }
  .chat-expanded .city-panel {
    top: 12px;
    bottom: 146px;
    width: auto;
    height: auto;
    max-height: none;
  }
  .chat-expanded .city-chat {
    margin-top: 14px;
  }
  .chat-expanded .search-wrap,
  .chat-expanded .map-controls {
    visibility: hidden;
  }
}
@media (max-width: 760px) and (max-height: 600px) {
  .chat-expanded .city-panel {
    bottom: 12px;
  }
  .chat-expanded .timeline {
    display: none;
  }
}
@media (max-width: 374px) and (max-height: 620px) {
  .city-insights {
    margin-top: 8px;
  }
  .city-insights > summary {
    padding: 4px 0;
  }
  .city-chat {
    margin-top: 4px;
  }
  .chat-heading {
    margin-bottom: 4px;
  }
  #chat-expand {
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .chat-content {
    height: 105px;
  }
}

#chat-open {
  color: var(--color-focus);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 4px;
}
.chat-message {
  padding: 12px;
  gap: 6px;
}
@media (max-width: 760px) {
  .chat-expanded #app {
    height: calc(var(--chat-viewport-height, 100dvh) - 68px);
  }
  .chat-expanded.chat-keyboard .city-panel {
    bottom: 12px;
  }
  .chat-expanded.chat-keyboard .timeline {
    display: none;
  }
}

.chat-expanded .chat-heading {
  position: absolute;
  top: 50px;
  right: 24px;
  margin: 0;
}
.chat-expanded .chat-heading h3,
.chat-expanded .city-title-row > span {
  display: none;
}
.chat-expanded .city-title-row h2 {
  max-width: calc(100% - 88px);
}
.chat-expanded .city-chat {
  margin-top: 12px;
}
@media (max-width: 760px) {
  .chat-expanded .chat-heading {
    top: 32px;
    right: 18px;
  }
}

/* One anchored atlas; disclosure changes stay within their own surface. */
.intro,
.map-legend,
.search-wrap,
.map-controls {
  transition:
    opacity var(--dur-panel) var(--ease-out),
    translate var(--dur-panel) var(--ease-out);
}
.city-insights > summary svg {
  transition: transform var(--dur-panel) var(--ease-out);
}
.search-results,
.app-status:not(:empty) {
  animation: panel-in 180ms var(--ease-out);
}
.city-panel {
  transform-origin: top right;
}
.city-panel[inert] {
  pointer-events: none;
}
.city-outlook,
.chat-heading,
#visit-form {
  flex-shrink: 0;
}
.chat-expanded .city-chat {
  margin-top: 20px;
}
.chat-heading h3 {
  letter-spacing: -0.02em;
}
#chat-expand:hover {
  background: var(--color-accent-pale);
  color: var(--color-ink);
}
.quantity button:not(:disabled):active,
.icon-button:not(:disabled):active {
  scale: 0.94;
}
.city-label {
  transition:
    color 150ms,
    background-color 150ms,
    box-shadow 150ms;
}
dialog {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 180ms,
    transform 250ms var(--ease-out),
    display 250ms allow-discrete,
    overlay 250ms allow-discrete;
}
dialog[open] {
  opacity: 1;
  transform: none;
}
dialog::backdrop {
  opacity: 0;
  transition:
    opacity 180ms,
    display 250ms allow-discrete,
    overlay 250ms allow-discrete;
}
dialog[open]::backdrop {
  opacity: 1;
}
@starting-style {
  dialog[open] {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  dialog[open]::backdrop {
    opacity: 0;
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .timeline .weekend-button {
    display: none;
  }
  .timeline {
    padding-inline: 16px;
    width: min(680px, calc(100% - var(--map-tools-width) * 2 - var(--gutter) * 2 - 32px));
  }
  .city-panel {
    max-height: calc(100% - 250px);
  }
  .chat-expanded .city-panel {
    height: calc(100% - 250px);
  }
  .intro h1 {
    font-size: 30px;
  }
  .intro-note {
    display: none;
  }
}
@media (max-width: 760px) {
  .city-panel {
    transform-origin: bottom center;
  }
  .panel-open .intro {
    translate: 0 -6px;
  }
  .chat-expanded .city-chat {
    margin-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  button:active:not(:disabled) {
    translate: none;
    scale: none;
  }
}
