:root {
  --ink: #1f2320;
  --paper: #f7f8f3;
  --mist: #ddebe5;
  --leaf: #1f7a5a;
  --leaf-quiet: #dcebe2;
  --chile: #c43e2e;
  --yuzu: #e8b931;
  --plum: #7a3158;
  --stone: #5e675d;
  --line: #d8ded6;
  --white: #fffef9;
  --shadow: 0 18px 48px rgb(31 35 32 / 14%);
  --soft-shadow: 0 8px 20px rgb(31 35 32 / 10%);
  --display: "Noto Serif KR", Georgia, serif;
  --body: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgb(221 235 229 / 55%), transparent 36%),
    radial-gradient(circle at 88% 12%, rgb(232 185 49 / 18%), transparent 24%),
    var(--paper);
  font-family: var(--body);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  width: min(1560px, calc(100vw - 32px));
  min-height: calc(100vh - 32px);
  margin: 16px auto;
  overflow: hidden;
  border: 1px solid rgb(31 35 32 / 28%);
  border-radius: 12px;
  background: rgb(255 254 249 / 82%);
  box-shadow: var(--shadow);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(240px, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 80px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 254 249 / 88%);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.brand-mark {
  font-family: var(--display);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1;
}

.leaf-mark {
  display: inline-block;
  width: 17px;
  height: 22px;
  border: 2px solid var(--leaf);
  border-left-width: 1px;
  border-radius: 100% 0 100% 0;
  transform: rotate(24deg);
}

.brand-subtitle {
  min-width: 0;
  color: var(--stone);
  font-size: 0.78rem;
  white-space: nowrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.search-box svg {
  width: 19px;
  height: 19px;
  color: var(--stone);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-box input::placeholder {
  color: rgb(94 103 93 / 72%);
}

.control-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.context-button,
.icon-button,
.sheet-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgb(31 35 32 / 4%);
  cursor: pointer;
}

.context-button {
  padding: 0 14px;
}

.icon-button {
  width: 44px;
  padding: 0;
}

.icon-button.quiet {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.icon-button svg,
.context-button svg,
.sheet-actions svg {
  width: 18px;
  height: 18px;
}

.context-button svg,
.sheet-actions svg {
  color: var(--leaf);
}

.atlas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
  grid-template-rows: minmax(520px, calc(100vh - 250px)) 150px;
  min-height: calc(100vh - 114px);
}

.map-section {
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
}

.map-canvas {
  position: relative;
  height: 100%;
  min-height: 460px;
  overflow: hidden;
  background:
    linear-gradient(0deg, rgb(247 248 243 / 34%), transparent),
    var(--mist);
}

.map-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(255 254 249 / 28%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 254 249 / 18%) 1px, transparent 1px);
  background-size: 86px 86px;
  mix-blend-mode: soft-light;
}

.real-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

#naverMap.real-map {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.real-map.is-active {
  opacity: 1;
  pointer-events: auto;
}

.map-provider-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgb(31 122 90 / 18%);
  border-radius: 8px;
  background: rgb(255 254 249 / 78%);
  color: var(--stone);
  font-family: var(--mono);
  font-size: 0.72rem;
  box-shadow: var(--soft-shadow);
}

.map-tools {
  position: absolute;
  z-index: 4;
  top: 34px;
  left: 22px;
  display: grid;
  gap: 10px;
}

.map-tools .icon-button {
  box-shadow: var(--soft-shadow);
}

.pin-image {
  display: block;
  position: relative;
  width: var(--pin-size, 40px);
  height: var(--pin-size, 40px);
  border: var(--pin-border, 2px) solid var(--white);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgb(31 35 32 / 22%);
}

.pin-image::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(var(--pin-stem, 12px) * -1);
  width: 1px;
  height: var(--pin-stem, 12px);
  background: rgb(31 122 90 / 58%);
  transform: translateX(-50%);
}

.pin-label {
  display: none;
  min-width: 96px;
  max-width: 128px;
  padding: 5px 8px;
  border: 1px solid rgb(31 122 90 / 24%);
  border-radius: 6px;
  background: rgb(255 254 249 / 88%);
  box-shadow: 0 8px 18px rgb(31 35 32 / 10%);
  text-align: left;
}

.pin-title {
  display: block;
  font-weight: 700;
}

.pin-meta {
  display: block;
  color: var(--stone);
  font-size: 0.7rem;
  line-height: 1.25;
}

.naver-food-marker {
  position: relative;
  display: block;
  cursor: pointer;
}

.naver-food-marker .pin-image {
  width: var(--pin-size, 40px);
  height: var(--pin-size, 40px);
}

.naver-food-marker.is-in-season:not(.is-selected) .pin-image {
  border-color: var(--leaf-quiet);
  box-shadow: 0 6px 14px rgb(31 122 90 / 20%);
}

.naver-food-marker.is-soon:not(.is-selected) .pin-image {
  border-color: rgb(232 185 49 / 48%);
}

.naver-food-marker.is-out-season:not(.is-selected) .pin-image {
  border-color: rgb(255 254 249 / 82%);
}

.naver-food-marker.is-selected {
  z-index: 6;
}

.naver-food-marker.is-selected .pin-image {
  width: var(--pin-size, 56px);
  height: var(--pin-size, 56px);
  border-width: var(--pin-border, 3px);
  box-shadow: 0 10px 22px rgb(31 35 32 / 22%);
}

.naver-food-marker.is-selected .pin-image::after {
  bottom: calc(var(--pin-stem, 16px) * -1);
  height: var(--pin-stem, 16px);
  background: var(--leaf);
}

.naver-food-marker.is-selected .pin-label {
  position: absolute;
  top: 8px;
  left: calc(var(--pin-size, 56px) + 8px);
  z-index: 2;
  display: none;
}

.detail-sheet {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 26px 28px;
  background:
    linear-gradient(180deg, rgb(255 254 249 / 96%), rgb(247 248 243 / 96%)),
    var(--paper);
}

.sheet-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--stone);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.hero-food {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 46%);
  gap: 20px;
  align-items: center;
  padding: 18px 0 24px;
  border-bottom: 1px solid var(--line);
}

.hero-label,
.panel-kicker {
  margin: 0 0 6px;
  color: var(--leaf);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-food h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

.hero-facts div {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 254 249 / 64%);
}

.hero-facts .hero-season-fact {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, rgb(31 122 90 / 10%), rgb(232 185 49 / 12%));
}

.hero-facts dt {
  color: var(--stone);
  font-size: 0.72rem;
}

.hero-facts dd {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 600;
  overflow-wrap: normal;
  word-break: keep-all;
}

.hero-season-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.season-status-mark {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--leaf);
  color: var(--paper);
  box-shadow: 0 0 0 6px rgb(31 122 90 / 10%);
}

.season-status-mark::after {
  position: absolute;
  inset: -5px;
  border: 1px solid currentColor;
  border-radius: inherit;
  content: "";
  opacity: 0.34;
}

.season-status-mark svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.season-range {
  color: var(--ink);
}

.hero-season-value.is-in-season .season-status-mark {
  background: var(--leaf);
  color: var(--paper);
}

.hero-season-value.is-in-season .season-range {
  color: var(--leaf);
}

.hero-season-value.is-soon .season-status-mark {
  background: var(--yuzu);
  color: var(--ink);
  box-shadow: 0 0 0 6px rgb(232 185 49 / 14%);
}

.hero-season-value.is-soon .season-range {
  color: #9b6c00;
}

.hero-season-value.is-out-season .season-status-mark {
  background: var(--line);
  color: var(--stone);
  box-shadow: 0 0 0 6px rgb(94 103 93 / 10%);
}

.hero-season-value.is-out-season .season-range {
  color: var(--stone);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-season-value.is-in-season .season-status-mark::after {
    animation: season-ring 1800ms ease-out infinite;
  }
}

@keyframes season-ring {
  0% {
    opacity: 0.42;
    transform: scale(0.82);
  }

  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

.hero-note {
  margin: 0;
  color: var(--stone);
  font-size: 0.94rem;
  line-height: 1.58;
}

.dish-photo {
  overflow: hidden;
  border-radius: 50%;
  background-color: #e6d1a0;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgb(31 35 32 / 14%);
}

.hero-dish {
  width: min(230px, 100%);
  aspect-ratio: 1;
  justify-self: end;
  border: 8px solid var(--white);
  box-shadow: 0 24px 42px rgb(31 35 32 / 18%);
}

.makguksu {
  background:
    radial-gradient(circle at 44% 42%, #f5e8b8 0 16%, transparent 17%),
    radial-gradient(circle at 58% 58%, #c78d52 0 8%, transparent 9%),
    radial-gradient(circle at 36% 62%, #6f9f68 0 8%, transparent 9%),
    conic-gradient(from 24deg, #cfb37a, #f1e0aa, #8e6b45, #e9d49a, #cfb37a);
}

.min-eo {
  background:
    radial-gradient(circle at 54% 42%, #f3eee0 0 22%, transparent 23%),
    radial-gradient(circle at 36% 58%, #d6a564 0 9%, transparent 10%),
    conic-gradient(from 70deg, #354c61, #e6d2a2, #b7834d, #7ea1a5, #354c61);
}

.corn {
  background:
    radial-gradient(circle at 38% 54%, #ffd56f 0 12%, transparent 13%),
    radial-gradient(circle at 58% 42%, #f1bd38 0 16%, transparent 17%),
    conic-gradient(from 20deg, #2f8c60, #f5d15f, #b6c66f, #ffdf82, #2f8c60);
}

.jeon-eo {
  background:
    linear-gradient(135deg, transparent 28%, #48504c 29% 42%, transparent 43%),
    radial-gradient(circle at 56% 50%, #e7dcc0 0 20%, transparent 21%),
    conic-gradient(from 40deg, #293a36, #c29a56, #e2c77d, #53685d, #293a36);
}

.oyster {
  background:
    radial-gradient(circle at 48% 47%, #f4ead6 0 20%, transparent 21%),
    radial-gradient(circle at 62% 58%, #9fb5ad 0 13%, transparent 14%),
    conic-gradient(from 120deg, #48625f, #d9d0bb, #879e9a, #efe6d3, #48625f);
}

.abalone {
  background:
    radial-gradient(ellipse at 48% 50%, #e9d5b4 0 17%, transparent 18%),
    radial-gradient(ellipse at 56% 47%, #638c85 0 28%, transparent 29%),
    conic-gradient(from 150deg, #243f47, #9ab0a8, #efe2c7, #6f918a, #243f47);
}

.kelp {
  background:
    linear-gradient(115deg, transparent 0 25%, #234d40 26% 38%, transparent 39%),
    linear-gradient(70deg, transparent 0 36%, #5a7f4f 37% 48%, transparent 49%),
    conic-gradient(from 20deg, #17382f, #9fb468, #d9c570, #49663f, #17382f);
}

.key-shell {
  background:
    radial-gradient(ellipse at 50% 50%, #f4e1c7 0 22%, transparent 23%),
    repeating-conic-gradient(from 12deg, #a8784c 0 10deg, #e6c996 11deg 24deg, #6b7f7a 25deg 36deg);
}

.sea-squirt {
  background:
    radial-gradient(circle at 44% 48%, #f06a3e 0 19%, transparent 20%),
    radial-gradient(circle at 58% 56%, #9b2f2b 0 12%, transparent 13%),
    conic-gradient(from 40deg, #5b1f2a, #ef7c4e, #f5bd62, #733342, #5b1f2a);
}

.dodari {
  background:
    radial-gradient(ellipse at 54% 50%, #ede1c7 0 24%, transparent 25%),
    linear-gradient(150deg, transparent 34%, #49665f 35% 45%, transparent 46%),
    conic-gradient(from 90deg, #6f8272, #d1c29d, #a8b06f, #384e4b, #6f8272);
}

.prawn {
  background:
    radial-gradient(ellipse at 48% 50%, #f59a61 0 22%, transparent 23%),
    radial-gradient(circle at 62% 39%, #fff2d5 0 6%, transparent 7%),
    conic-gradient(from 35deg, #9e3a31, #f0a463, #f5cf88, #d7523e, #9e3a31);
}

.snow-crab {
  background:
    radial-gradient(circle at 50% 50%, #f4dcc1 0 17%, transparent 18%),
    linear-gradient(35deg, transparent 36%, #c44632 37% 42%, transparent 43%),
    linear-gradient(145deg, transparent 36%, #c44632 37% 42%, transparent 43%),
    conic-gradient(from 90deg, #7d2430, #e86f4c, #f4c08a, #b43335, #7d2430);
}

.cod {
  background:
    radial-gradient(ellipse at 54% 52%, #f1ead7 0 23%, transparent 24%),
    radial-gradient(circle at 38% 44%, #394e4c 0 4%, transparent 5%),
    conic-gradient(from 75deg, #314c54, #cfd6c3, #e6d0a3, #6f8a86, #314c54);
}

.hanchi {
  background:
    radial-gradient(ellipse at 50% 46%, #f7efe1 0 20%, transparent 21%),
    linear-gradient(90deg, transparent 35%, #d6a46c 36% 41%, transparent 42%),
    conic-gradient(from 10deg, #5b6e80, #e6d7c0, #b98561, #8697a0, #5b6e80);
}

.maesaengi {
  background:
    radial-gradient(circle at 44% 46%, #1f5d43 0 18%, transparent 19%),
    radial-gradient(circle at 58% 58%, #7fa36a 0 11%, transparent 12%),
    conic-gradient(from 20deg, #15382f, #3b7250, #9aaa65, #244b3d, #15382f);
}

.fruit-food {
  background:
    radial-gradient(circle at 43% 42%, #f4d15f 0 18%, transparent 19%),
    radial-gradient(circle at 58% 56%, #c94d39 0 15%, transparent 16%),
    conic-gradient(from 30deg, #7a3158, #e8b931, #f2d98f, #1f7a5a, #7a3158);
}

.vegetable-food {
  background:
    linear-gradient(120deg, transparent 28%, #285f45 29% 42%, transparent 43%),
    radial-gradient(circle at 57% 45%, #86a95f 0 19%, transparent 20%),
    conic-gradient(from 70deg, #1f5a43, #d8c46b, #f2e4b0, #547c4a, #1f5a43);
}

.wild-green-food,
.herb-food {
  background:
    radial-gradient(circle at 40% 46%, #315f36 0 16%, transparent 17%),
    radial-gradient(circle at 60% 58%, #74a35b 0 13%, transparent 14%),
    conic-gradient(from 18deg, #16392f, #4f7e4d, #c7c96b, #244b3d, #16392f);
}

.root-food {
  background:
    radial-gradient(ellipse at 48% 50%, #9f5b38 0 19%, transparent 20%),
    radial-gradient(circle at 61% 42%, #e7b16a 0 12%, transparent 13%),
    conic-gradient(from 42deg, #74412f, #d79b56, #f1d39b, #5e675d, #74412f);
}

.processed-food {
  background:
    radial-gradient(circle at 46% 48%, #9b4b2f 0 20%, transparent 21%),
    radial-gradient(circle at 61% 58%, #d6a564 0 12%, transparent 13%),
    conic-gradient(from 80deg, #6f2f25, #c0843f, #e6c783, #7a3158, #6f2f25);
}

.local-dish-food {
  background:
    radial-gradient(circle at 48% 52%, #f5ead2 0 19%, transparent 20%),
    radial-gradient(circle at 60% 43%, #6f9f68 0 9%, transparent 10%),
    radial-gradient(circle at 37% 58%, #c78d52 0 11%, transparent 12%),
    conic-gradient(from 20deg, #8e6b45, #f1e0aa, #55765d, #cfb37a, #8e6b45);
}

.tea-food {
  background:
    radial-gradient(circle at 50% 50%, #96a45c 0 18%, transparent 19%),
    radial-gradient(circle at 58% 44%, #dfe8b0 0 10%, transparent 11%),
    conic-gradient(from 140deg, #204838, #6d8c48, #c8c86f, #3f6842, #204838);
}

.mushroom-food {
  background:
    radial-gradient(ellipse at 48% 44%, #c49b65 0 19%, transparent 20%),
    radial-gradient(ellipse at 56% 59%, #efe0bd 0 13%, transparent 14%),
    conic-gradient(from 95deg, #5f4b39, #bf8f5a, #e9d2a3, #7d6b51, #5f4b39);
}

.grain-food {
  background:
    radial-gradient(circle at 44% 50%, #f1ce68 0 13%, transparent 14%),
    radial-gradient(circle at 58% 43%, #c58d34 0 11%, transparent 12%),
    conic-gradient(from 105deg, #6e5a32, #d29a41, #f4dc91, #5f7352, #6e5a32);
}

.nut-food {
  background:
    radial-gradient(ellipse at 48% 50%, #8b5833 0 18%, transparent 19%),
    radial-gradient(circle at 59% 43%, #d1a168 0 10%, transparent 11%),
    conic-gradient(from 70deg, #493321, #98633a, #e0bf81, #6e4e35, #493321);
}

.seaweed-food {
  background:
    linear-gradient(140deg, transparent 32%, #214d47 33% 45%, transparent 46%),
    radial-gradient(circle at 57% 55%, #4f8a76 0 14%, transparent 15%),
    conic-gradient(from 160deg, #123331, #2f6f67, #91a86f, #2d4f56, #123331);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.meta-text {
  color: var(--stone);
  font-family: var(--mono);
  font-size: 0.76rem;
}

.food-list {
  display: grid;
  gap: 12px;
}

.food-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.food-group-title {
  margin: 2px 8px 0;
  color: var(--stone);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.food-group.is-muted .food-group-title {
  color: rgb(94 103 93 / 74%);
}

.food-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.food-row:hover,
.food-row:focus-visible {
  border-color: var(--line);
  background: rgb(255 254 249 / 72%);
}

.food-row.is-selected {
  border-color: rgb(31 122 90 / 32%);
  background: var(--leaf-quiet);
}

.food-row.is-muted {
  border-color: var(--line);
  background: rgb(247 248 243 / 94%);
}

.food-row .dish-photo {
  width: 52px;
  height: 52px;
  border: 3px solid var(--white);
}

.row-title {
  display: block;
  font-weight: 700;
}

.row-meta {
  display: block;
  margin-top: 3px;
  color: var(--stone);
  font-size: 0.82rem;
}

.row-signals {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  min-width: 64px;
}

.row-signal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(255 254 249 / 74%);
  color: var(--stone);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.row-signal.is-in-season {
  border-color: rgb(31 122 90 / 24%);
  background: var(--leaf-quiet);
  color: var(--leaf);
}

.row-signal.is-soon {
  border-color: rgb(232 185 49 / 40%);
  background: rgb(232 185 49 / 18%);
  color: #815900;
}

.row-signal.is-local {
  border-color: rgb(31 35 32 / 12%);
  color: var(--ink);
}

.row-signal.is-in-view {
  border-color: rgb(31 35 32 / 12%);
  color: var(--ink);
}

.row-signal.is-out-view {
  border-color: rgb(94 103 93 / 16%);
  background: rgb(94 103 93 / 8%);
  color: var(--stone);
}

.row-signal.is-out-season {
  border-color: rgb(94 103 93 / 18%);
  background: rgb(94 103 93 / 8%);
}

.sheet-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.sheet-actions button {
  width: 100%;
  min-width: 0;
  padding: 0 8px;
  font-size: 0.86rem;
}

.season-panel {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-width: 0;
  padding: 22px 26px;
  border-top: 1px solid var(--line);
  background: rgb(255 254 249 / 86%);
}

.season-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.season-header p {
  margin: 0;
  color: var(--stone);
  font-size: 0.84rem;
  line-height: 1.45;
}

.month-rail-wrap {
  position: relative;
  min-width: 0;
  height: 88px;
  padding-top: 12px;
}

.month-rail {
  position: absolute;
  inset: 32px 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  height: 36px;
}

.month-button {
  display: grid;
  place-items: start center;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--stone);
  font-size: 0.78rem;
  white-space: nowrap;
  word-break: keep-all;
  cursor: pointer;
}

.month-button::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 12px;
  border-radius: 50%;
  background: rgb(94 103 93 / 32%);
}

.month-button.is-active {
  color: var(--leaf);
  font-weight: 700;
}

.month-button.is-active::after {
  width: 9px;
  height: 9px;
  background: var(--leaf);
}

.active-range {
  position: absolute;
  z-index: 1;
  top: 30px;
  left: var(--range-left, 50%);
  width: var(--range-width, 16.66%);
  height: 38px;
  border: 1px solid rgb(31 122 90 / 42%);
  border-radius: 8px;
  background: linear-gradient(90deg, rgb(232 185 49 / 32%), rgb(31 122 90 / 18%));
}

.rail-dish {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: var(--range-center, 58%);
  width: 46px;
  height: 46px;
  border: 3px solid var(--white);
  transform: translateX(-50%);
  box-shadow: 0 9px 22px rgb(31 35 32 / 18%);
}

.range-tracks {
  position: absolute;
  inset: auto 0 8px;
  height: 32px;
}

.range-track {
  position: absolute;
  left: var(--track-left);
  bottom: var(--track-row);
  width: var(--track-width);
  height: 2px;
  background: rgb(232 185 49 / 62%);
}

.range-track::before,
.range-track::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yuzu);
  transform: translateY(-50%);
}

.range-track::before {
  left: 0;
}

.range-track::after {
  right: 0;
}

.range-track.is-selected {
  height: 3px;
  background: var(--leaf);
}

.range-track.is-selected::before,
.range-track.is-selected::after {
  background: var(--leaf);
}

.rail-legend {
  grid-column: 2;
  display: flex;
  gap: 22px;
  color: var(--stone);
  font-size: 0.8rem;
}

.rail-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-line {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: rgb(94 103 93 / 36%);
}

.legend-line.selected {
  background: var(--leaf);
}

.legend-line.muted {
  border-top: 1px dashed rgb(94 103 93 / 44%);
  background: transparent;
}

@media (max-width: 1180px) {
  .app-shell {
    width: min(100vw - 20px, 1040px);
  }

  .atlas-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  }

  .hero-food {
    grid-template-columns: 1fr;
  }

  .hero-dish {
    order: -1;
    width: 160px;
    justify-self: start;
  }
}

@media (max-width: 860px) {
  body {
    background: var(--paper);
  }

  .app-shell {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 168px;
    padding: 14px 16px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
  }

  .brand-mark {
    font-size: 1.75rem;
  }

  .brand-subtitle {
    display: none;
  }

  .search-box {
    grid-column: 1;
    grid-row: 2;
    height: 44px;
  }

  .control-group {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    gap: 6px;
    justify-content: flex-start;
    justify-self: start;
  }

  .control-group .context-button {
    min-width: 72px;
    padding: 0 8px;
    gap: 6px;
  }

  .control-group .context-button svg {
    width: 16px;
    height: 16px;
  }

  .control-group .icon-button {
    display: none;
  }

  .atlas-layout {
    display: flex;
    min-height: auto;
    flex-direction: column;
  }

  .map-section {
    order: 1;
    height: 42vh;
    min-height: 330px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .map-canvas {
    min-height: 100%;
  }

  .map-tools {
    top: 18px;
    left: 12px;
  }

  .map-tools .icon-button {
    width: 38px;
    min-height: 38px;
  }

  .naver-food-marker.is-selected .pin-label {
    min-width: 96px;
    font-size: 0.82rem;
  }

  .detail-sheet {
    order: 3;
    padding: 0 16px 20px;
    border-radius: 0;
    transform: none;
  }

  .sheet-eyebrow {
    min-height: 34px;
    padding-top: 10px;
  }

  .sheet-eyebrow::before {
    display: none;
  }

  .hero-food {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 0 16px;
  }

  .hero-dish {
    grid-column: 1;
    grid-row: auto;
    width: 118px;
    justify-self: start;
    border-width: 5px;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
  }

  .hero-food h1 {
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 1.65rem;
  }

  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 10px;
  }

  .hero-facts div {
    display: block;
    padding: 6px 8px;
  }

  .hero-facts dd {
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .hero-note {
    font-size: 0.86rem;
  }

  .food-list {
    gap: 4px;
  }

  .food-row {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    min-height: 62px;
    padding: 6px;
  }

  .food-row .dish-photo {
    width: 44px;
    height: 44px;
  }

  .sheet-actions {
    position: sticky;
    bottom: 0;
    margin-inline: -16px;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    background: rgb(247 248 243 / 94%);
    border-top: 1px solid var(--line);
  }

  .sheet-actions button {
    min-height: 40px;
    font-size: 0.76rem;
  }

  .season-panel {
    order: 2;
    display: block;
    padding: 8px 16px 12px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .season-header {
    display: none;
  }

  .month-rail-wrap {
    height: 78px;
  }

  .month-rail {
    inset: 30px 0 auto;
  }

  .month-button {
    font-size: 0.68rem;
  }

  .rail-legend {
    display: none;
  }
}

@media (max-width: 520px) {
  .topbar {
    min-height: 118px;
  }

  .context-button span {
    max-width: none;
    white-space: nowrap;
  }

  .control-group .context-button:nth-child(2) {
    min-width: 66px;
  }

  .map-section {
    height: 38vh;
    min-height: 300px;
  }

  .pin-label {
    display: none;
  }

  .naver-food-marker.is-selected .pin-label {
    display: none;
  }
}
