:root {
  --bg: #f1ede6;
  --surface: rgba(255, 252, 247, 0.94);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --ink: #17322f;
  --muted: #5e7168;
  --line: rgba(23, 50, 47, 0.1);
  --brand: #0a8d78;
  --brand-deep: #0b6157;
  --accent: #ff8f54;
  --shadow: 0 24px 56px rgba(7, 28, 28, 0.15);
  --header-height: 86px;
  --rail-width: 104px;
  --font-display: "Space Grotesk", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(10, 141, 120, 0.14), transparent 24%),
    linear-gradient(180deg, #fbf8f3 0%, #f1ede6 100%);
  color: var(--ink);
  font-family: var(--font-body);
}

.home-intro {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 28px;
  border: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(10, 141, 120, 0.22), transparent 26%),
    rgba(12, 31, 29, 0.72);
  cursor: pointer;
}

.home-intro[hidden] {
  display: none !important;
}

.home-intro img {
  display: block;
  width: min(1040px, 92vw);
  max-height: min(78vh, 760px);
  object-fit: contain;
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.home-intro span {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-deep);
  font-weight: 800;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  position: relative;
  min-height: 100%;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--header-height);
  padding: 0 28px 0 calc(var(--rail-width) + 28px);
  background: rgba(255, 250, 244, 0.9);
  border-bottom: 1px solid rgba(23, 50, 47, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand::before {
  content: "";
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34' fill='none'%3E%3Ccircle cx='10' cy='23' r='5.5' stroke='%230b6157' stroke-width='2.5'/%3E%3Ccircle cx='25' cy='23' r='5.5' stroke='%230b6157' stroke-width='2.5'/%3E%3Cpath d='M13 23h5.5l3.5-8h-6l-3 8Zm5.5 0 6.5-.1M14.4 12.5h4.2M21.7 14.2l2.9 8.8' stroke='%230b6157' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9 13.8c3-4.2 8.3-6.5 14.3-4.4' stroke='%23ff8f54' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E")
      center / 34px 34px no-repeat,
    linear-gradient(135deg, rgba(10, 141, 120, 0.16), rgba(255, 143, 84, 0.2));
  box-shadow: 0 14px 28px rgba(11, 97, 87, 0.16);
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 0.98rem + 0.85vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--brand-deep);
  white-space: nowrap;
}

.brand-season {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 143, 84, 0.14);
  color: #b95b2b;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topnav-button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.topnav-button:hover,
.topnav-button:focus-visible,
.topnav-button.is-active {
  background: rgba(10, 141, 120, 0.1);
  color: var(--brand-deep);
  transform: translateY(-1px);
}

.topnav-button[data-top-menu="login"] {
  border: 1px solid rgba(10, 141, 120, 0.28);
  background: rgba(10, 141, 120, 0.08);
  color: var(--brand-deep);
  box-shadow: 0 8px 18px rgba(11, 97, 87, 0.08);
}

.topnav-button[data-top-menu="login"]:hover,
.topnav-button[data-top-menu="login"]:focus-visible,
.topnav-button[data-top-menu="login"].is-active {
  background: rgba(10, 141, 120, 0.16);
  border-color: rgba(10, 141, 120, 0.38);
}

.side-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1180;
  width: var(--rail-width);
  padding-top: calc(var(--header-height) + 8px);
  background: rgba(255, 252, 247, 0.82);
  border-right: 1px solid rgba(23, 50, 47, 0.08);
  backdrop-filter: blur(14px);
}

.rail-button {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
  padding: 22px 8px;
  border: 0;
  border-bottom: 1px solid rgba(23, 50, 47, 0.06);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.rail-button:hover,
.rail-button:focus-visible,
.rail-button.is-active {
  background: rgba(10, 141, 120, 0.08);
  color: var(--brand-deep);
}

.rail-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(23, 50, 47, 0.08);
}

.rail-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-button span:last-child {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.rail-button[data-side-menu="certify"] {
  display: none;
}

.map-stage {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

#map {
  position: absolute;
  inset: 0;
  margin-top: var(--header-height);
  margin-left: var(--rail-width);
}

.submenu-panel,
.map-overlay {
  position: absolute;
  z-index: 1250;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.submenu-panel {
  width: min(360px, calc(100vw - 48px));
  max-height: calc(100vh - var(--header-height) - 40px);
  padding: 20px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
}

.submenu-panel[hidden] {
  display: none !important;
}

.side-panel[data-panel-mode="certify"] .submenu-list,
.side-panel[data-panel-mode="carbon"] .submenu-list {
  flex: 0 0 auto;
  max-height: 210px;
}

.side-panel[data-panel-mode="certify"] .submenu-detail,
.side-panel[data-panel-mode="carbon"] .submenu-detail,
.side-panel[data-panel-mode="treasure"] .submenu-detail {
  min-height: 0;
  overflow-y: auto;
  flex: 1 1 auto;
}

.top-panel[data-panel-mode="event"] .submenu-list {
  flex: 1 1 auto;
  max-height: none;
  overflow-y: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
  scrollbar-color: rgba(10, 141, 120, 0.45) rgba(23, 50, 47, 0.08);
  scrollbar-width: thin;
}

.top-panel[data-panel-mode="event"] .submenu-list::-webkit-scrollbar {
  width: 8px;
}

.top-panel[data-panel-mode="event"] .submenu-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(23, 50, 47, 0.08);
}

.top-panel[data-panel-mode="event"] .submenu-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(10, 141, 120, 0.45);
}

.side-panel[data-panel-mode="treasure"] .submenu-list {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 4px 8px 0;
  overscroll-behavior-x: contain;
  scrollbar-color: rgba(10, 141, 120, 0.45) rgba(23, 50, 47, 0.08);
  scrollbar-width: thin;
}

.side-panel[data-panel-mode="treasure"] .submenu-list::-webkit-scrollbar {
  height: 8px;
}

.side-panel[data-panel-mode="treasure"] .submenu-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(23, 50, 47, 0.08);
}

.side-panel[data-panel-mode="treasure"] .submenu-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(10, 141, 120, 0.45);
}

.side-panel[data-panel-mode="treasure"] .submenu-item {
  flex: 0 0 132px;
  min-height: 104px;
  align-items: flex-start;
  justify-content: space-between;
}

.side-panel[data-panel-mode="treasure"] .submenu-item-text {
  width: 100%;
}

.side-panel[data-panel-mode="treasure"] .submenu-item-text strong {
  font-size: 0.96rem;
}

.side-panel[data-panel-mode="treasure"] .submenu-item-text span {
  font-size: 0.78rem;
  line-height: 1.45;
}

.side-panel[data-panel-mode="treasure"] .submenu-item-tag {
  align-self: flex-start;
}

.top-panel {
  top: calc(var(--header-height) + 28px);
  left: calc(var(--rail-width) + 8px);
}

.top-panel[data-panel-mode="event"] {
  height: min(720px, calc(100vh - var(--header-height) - 56px));
  overflow: hidden;
}

.side-panel {
  top: calc(var(--header-height) + 28px);
  left: calc(var(--rail-width) + 8px);
  height: min(760px, calc(100vh - var(--header-height) - 36px));
  overflow: hidden;
  transform: translateX(-26px);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.side-panel.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.panel-head {
  position: relative;
  margin-bottom: 16px;
  padding-right: 44px;
  cursor: grab;
  touch-action: none;
}

.panel-kicker {
  display: none;
}

.panel-head h1,
.panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.24rem + 0.55vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.panel-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 141, 120, 0.08);
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.submenu-list {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: visible;
}

.side-panel .submenu-list {
  flex: 1 1 auto;
  max-height: none;
  overflow-y: auto;
  padding-right: 6px;
  overscroll-behavior: contain;
  scrollbar-color: rgba(10, 141, 120, 0.45) rgba(23, 50, 47, 0.08);
  scrollbar-width: thin;
}

.side-panel .submenu-list::-webkit-scrollbar {
  width: 8px;
}

.side-panel .submenu-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(23, 50, 47, 0.08);
}

.side-panel .submenu-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(10, 141, 120, 0.45);
}

.submenu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(23, 50, 47, 0.08);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.submenu-item:hover,
.submenu-item:focus-visible,
.submenu-item.is-active {
  transform: translateY(-1px);
  background: rgba(236, 249, 246, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(10, 141, 120, 0.2),
    0 18px 30px rgba(7, 28, 28, 0.08);
}

.submenu-item-text {
  display: grid;
  gap: 4px;
}

.submenu-item-text strong {
  font-size: 1rem;
}

.submenu-item-text span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.submenu-item-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 143, 84, 0.14);
  color: #b95b2b;
  font-size: 0.8rem;
  font-weight: 800;
}

.side-panel[data-panel-mode="treasure"] .submenu-list,
.side-panel[data-panel-mode="certify"] .submenu-list,
.side-panel[data-panel-mode="carbon"] .submenu-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  flex: 0 0 auto;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.side-panel[data-panel-mode="treasure"] .submenu-item,
.side-panel[data-panel-mode="certify"] .submenu-item,
.side-panel[data-panel-mode="carbon"] .submenu-item {
  min-width: 0;
  min-height: 58px;
  padding: 8px 4px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.side-panel[data-panel-mode="treasure"] .submenu-item-text,
.side-panel[data-panel-mode="certify"] .submenu-item-text,
.side-panel[data-panel-mode="carbon"] .submenu-item-text {
  width: 100%;
  justify-items: center;
  gap: 2px;
}

.side-panel[data-panel-mode="treasure"] .submenu-item-text strong,
.side-panel[data-panel-mode="certify"] .submenu-item-text strong,
.side-panel[data-panel-mode="carbon"] .submenu-item-text strong {
  font-size: 0.86rem;
  line-height: 1.2;
  white-space: nowrap;
}

.side-panel[data-panel-mode="treasure"] .submenu-item-text span,
.side-panel[data-panel-mode="certify"] .submenu-item-text span,
.side-panel[data-panel-mode="carbon"] .submenu-item-text span {
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.side-panel[data-panel-mode="treasure"] .submenu-item-tag,
.side-panel[data-panel-mode="certify"] .submenu-item-tag,
.side-panel[data-panel-mode="carbon"] .submenu-item-tag {
  display: none;
}

.top-panel[data-panel-mode="event"] .submenu-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  flex: 0 0 auto;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.top-panel[data-panel-mode="event"] .submenu-item {
  min-width: 0;
  min-height: 58px;
  padding: 8px 4px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.top-panel[data-panel-mode="event"] .submenu-item-text {
  width: 100%;
  justify-items: center;
  gap: 2px;
}

.top-panel[data-panel-mode="event"] .submenu-item-text strong {
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
}

.top-panel[data-panel-mode="event"] .submenu-item-text span {
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.top-panel[data-panel-mode="event"] .submenu-item-tag {
  display: none;
}

.top-panel[data-panel-mode="event"] .submenu-detail {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: 10px;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.36) rgba(255, 255, 255, 0.12);
  scrollbar-width: thin;
}

.submenu-detail {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(11, 97, 87, 0.96), rgba(8, 68, 60, 0.98));
  color: rgba(255, 255, 255, 0.94);
  flex: 0 0 auto;
}

.inline-panel-detail {
  margin-top: 0;
}

.side-panel[data-panel-mode="treasure"] .inline-panel-detail,
.top-panel[data-panel-mode="event"] .inline-panel-detail {
  max-height: min(420px, calc(72vh - 170px));
  overflow-y: auto;
  padding-right: 10px;
  overscroll-behavior: contain;
}

.top-panel[data-panel-mode="event"] .submenu-detail::-webkit-scrollbar,
.top-panel[data-panel-mode="event"] .inline-panel-detail::-webkit-scrollbar {
  width: 8px;
}

.top-panel[data-panel-mode="event"] .submenu-detail::-webkit-scrollbar-track,
.top-panel[data-panel-mode="event"] .inline-panel-detail::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.top-panel[data-panel-mode="event"] .submenu-detail::-webkit-scrollbar-thumb,
.top-panel[data-panel-mode="event"] .inline-panel-detail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.submenu-detail h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.38rem;
  letter-spacing: -0.04em;
}

.submenu-detail p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.detail-action {
  margin-top: 16px;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.event-hero {
  display: grid;
  gap: 12px;
}

.event-badge {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 143, 84, 0.18);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.event-round-list,
.event-guide-list,
.event-steps {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.event-round-card,
.event-step {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.84);
}

.event-round-card strong,
.event-step strong {
  color: #fff;
  font-size: 1rem;
}

.event-round-card span,
.event-step span {
  line-height: 1.55;
}

.event-note {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.event-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.event-actions .detail-action {
  margin-top: 0;
}

.event-action-alt {
  background: rgba(255, 255, 255, 0.14);
}

.panel-main-image {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.panel-main-image img {
  display: block;
  width: 100%;
  height: auto;
}

.panel-main-video {
  position: relative;
  margin-top: 16px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.panel-main-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.panel-video-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 800;
}

.login-form input {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
}

.week-summary {
  margin-top: 13px;
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.55;
}

.weekly-place-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.weekly-place-list--names {
  gap: 8px;
}

.weekly-place-name {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.weekly-place-name:hover,
.weekly-place-name:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.weekly-place-card,
.carbon-place-row {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.weekly-place-card strong,
.carbon-place-row strong {
  color: #fff;
  font-size: 1rem;
}

.weekly-place-card span,
.carbon-place-row span {
  line-height: 1.5;
}

.mini-action {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-deep);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.carbon-meter {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 143, 84, 0.24), rgba(255, 255, 255, 0.12));
}

.carbon-meter.is-total {
  background: linear-gradient(135deg, rgba(10, 141, 120, 0.24), rgba(255, 255, 255, 0.12));
}

.carbon-meter strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.carbon-meter span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.cert-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.cert-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 800;
}

.cert-form input,
.cert-form textarea {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
}

.cert-form textarea {
  min-height: 92px;
  resize: vertical;
}

.cert-note,
.cert-record {
  margin-top: 13px;
  padding: 12px 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.55;
}

.cert-record strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
}

.cert-record span {
  display: block;
}

.spot-intro {
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.inline-spot-intro {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(10, 141, 120, 0.08);
  color: var(--brand-deep);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.55;
}

#keyNotice[hidden] {
  display: none !important;
}

.map-type-toggle {
  z-index: 1450;
}

.status-chip {
  right: 24px;
  bottom: 24px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--brand-deep);
  font-weight: 700;
}

.status-chip[hidden] {
  display: none !important;
}

.place-card {
  top: calc(var(--header-height) + 92px);
  left: 50%;
  right: auto;
  width: min(420px, calc(100vw - 32px));
  max-height: min(68vh, 560px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  border-radius: 24px;
  display: grid;
  gap: 10px;
  z-index: 1440;
  transform: translateX(-50%);
  background: rgba(250, 255, 252, 0.98);
  box-shadow: 0 24px 44px rgba(7, 28, 28, 0.18);
  border: 1px solid rgba(10, 141, 120, 0.14);
}

.place-card.place-card--overlay {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  width: min(560px, calc(100vw - 28px));
  max-height: none;
  overflow: visible;
  padding: 20px 22px 18px;
  border-radius: 28px 28px 28px 18px;
  transform: none;
  background: #fff;
  border-color: rgba(23, 50, 47, 0.16);
  box-shadow: 0 18px 34px rgba(7, 28, 28, 0.16);
  filter: drop-shadow(0 14px 22px rgba(7, 28, 28, 0.12));
}

.place-card.place-card--overlay::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 30px;
  height: 30px;
  background: #fff;
  border-right: 1px solid rgba(23, 50, 47, 0.16);
  border-bottom: 1px solid rgba(23, 50, 47, 0.16);
  transform: translateX(-50%) rotate(45deg);
}

.place-card-kicker,
.place-card h3 {
  cursor: grab;
  touch-action: none;
}

.place-card[hidden] {
  display: none !important;
}

.place-card-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 141, 120, 0.08);
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.place-card-back {
  position: absolute;
  top: 14px;
  right: 54px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 141, 120, 0.08);
  color: var(--brand-deep);
  cursor: pointer;
}

.place-card-back svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.place-card-kicker {
  margin: 0;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.place-card h3 {
  margin: 0;
  padding-right: 72px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.place-card-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 16px;
  align-items: start;
}

.place-card.place-card--overlay .place-card-layout {
  grid-template-columns: minmax(0, 1fr) 112px;
  grid-template-areas:
    "title title"
    "address photo"
    "intro photo";
  gap: 8px 20px;
}

.place-card-info {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.place-card.place-card--overlay .place-card-info {
  display: contents;
}

.place-card-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.place-card.place-card--overlay .place-card-title-row {
  grid-area: title;
  padding-right: 78px;
}

.place-card-title-row h3 {
  padding-right: 0;
}

.place-card-link-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #56a8ff;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
}

.place-card-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.place-card-rating strong {
  color: var(--muted);
}

.place-card-stars {
  color: rgba(23, 50, 47, 0.22);
  letter-spacing: 0;
}

.place-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: #2f7eff;
  font-size: 0.9rem;
}

.place-card-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f7eff;
  font: inherit;
  cursor: pointer;
}

.place-card-photo {
  margin: 4px 0 0;
  width: 112px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(10, 141, 120, 0.08);
  box-shadow: inset 0 0 0 1px rgba(23, 50, 47, 0.08);
}

.place-card.place-card--overlay .place-card-photo {
  grid-area: photo;
  align-self: start;
  margin-top: 0;
  width: 112px;
}

.place-card-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.place-card-photo a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.place-card-photo.is-empty {
  display: none;
}

.place-card-address,
.place-card-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.place-card-address {
  font-size: 0.9rem;
}

.place-card.place-card--overlay .place-card-address {
  grid-area: address;
  max-width: 100%;
  min-width: 0;
  padding-right: 4px;
  color: #3b4743;
  word-break: keep-all;
}

.place-card-intro {
  display: -webkit-box;
  font-size: 0.86rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.place-card.place-card--overlay .place-card-intro {
  grid-area: intro;
  max-width: 100%;
  min-width: 0;
  padding-right: 4px;
  color: var(--muted);
  word-break: keep-all;
}

.place-card-weeks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.place-card-weeks span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(10, 141, 120, 0.1);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.place-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.place-card-action {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.place-card-action.is-light {
  background: rgba(10, 141, 120, 0.08);
  color: var(--brand-deep);
}

.distance-entry-summary {
  margin-top: 2px;
}

.distance-entry-form {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.distance-entry-form label {
  display: grid;
  gap: 7px;
  color: var(--brand-deep);
  font-size: 0.86rem;
  font-weight: 900;
}

.distance-entry-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(23, 50, 47, 0.12);
}

.distance-entry-form input:focus {
  outline: 2px solid rgba(10, 141, 120, 0.24);
}

.distance-entry-preview {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(10, 141, 120, 0.08);
  color: var(--brand-deep);
  font-weight: 900;
}

.distance-entry-form .place-card-action {
  width: 100%;
}

.distance-entry-actions {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 8px;
}

.distance-entry-actions .place-card-action[disabled] {
  cursor: not-allowed;
  opacity: 0.46;
}

.text-place-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-deep);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.text-place-link:hover,
.text-place-link:focus-visible {
  color: var(--brand);
  text-decoration: underline;
}

.stacked-week-block {
  display: grid;
  gap: 12px;
}

.stacked-week-block + .stacked-week-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 50, 47, 0.08);
}

.place-popup {
  position: relative;
  min-width: 320px;
  max-width: 360px;
  padding: 22px 22px 18px;
  border-radius: 30px 30px 30px 18px;
  background: rgba(250, 255, 252, 0.98);
  box-shadow: 0 18px 30px rgba(7, 28, 28, 0.14);
  border: 1px solid rgba(10, 141, 120, 0.14);
  overflow: visible;
  filter: drop-shadow(0 18px 24px rgba(7, 28, 28, 0.14));
}

.place-popup-main {
  display: block;
  min-width: 0;
}

.place-popup-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-right: 20px;
}

.place-popup-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.place-popup-title {
  color: var(--brand-deep);
  font-size: 1.16rem;
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.place-popup-pin {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 143, 84, 0.16);
  color: #ff8f54;
  font-size: 0.56rem;
}

.place-popup-kicker {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.place-popup-address {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.place-popup-intro {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.place-popup-carbon {
  margin: 0;
  color: var(--brand-deep);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.place-popup-weeks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.place-popup-weeks span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(10, 141, 120, 0.1);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.place-popup-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(23, 50, 47, 0.12);
}

.place-popup-action {
  min-height: 46px;
  border: 0;
  border-right: 1px solid rgba(23, 50, 47, 0.12);
  background: #fff;
  color: var(--brand-deep);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.place-popup-action:last-child {
  border-right: 0;
}

.place-popup-action--brand {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
}

.place-popup-action--primary {
  background: #2f7eff;
  color: #fff;
}

.place-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.place-popup-tail {
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 32px;
  height: 32px;
  background: rgba(250, 255, 252, 0.98);
  border-right: 1px solid rgba(10, 141, 120, 0.14);
  border-bottom: 1px solid rgba(10, 141, 120, 0.14);
  border-bottom-right-radius: 5px;
  transform: translateX(-50%) rotate(45deg);
}

.status-highlight {
  color: #d9362b;
  font-weight: 900;
}

.map-type-toggle {
  right: 24px;
  top: calc(var(--header-height) + 22px);
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.map-type-button {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 62px;
  min-height: 64px;
  padding: 8px 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-deep);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(7, 28, 28, 0.15);
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.map-type-button-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  overflow: hidden;
}

.map-type-button-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.map-type-button[data-map-type="ROADMAP"] .map-type-button-icon::before {
  background:
    linear-gradient(135deg, rgba(120, 184, 110, 0.95), rgba(86, 162, 97, 0.94)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.map-type-button[data-map-type="SKYVIEW"] .map-type-button-icon::before {
  background:
    linear-gradient(180deg, rgba(46, 86, 73, 0.94), rgba(27, 51, 45, 0.98)),
    radial-gradient(circle at 30% 30%, rgba(125, 165, 142, 0.42), transparent 58%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.map-type-button-icon svg {
  position: relative;
  z-index: 1;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-type-button-label {
  font-size: 0.68rem;
  line-height: 1;
}

.map-type-button:hover,
.map-type-button:focus-visible,
.map-type-button.is-active {
  border-color: rgba(10, 141, 120, 0.34);
  background: rgba(241, 250, 247, 0.98);
  color: var(--brand-deep);
  box-shadow: 0 20px 36px rgba(10, 141, 120, 0.18);
  transform: translateY(-1px);
}

.key-notice {
  top: calc(var(--header-height) + 20px);
  right: 24px;
  width: min(420px, calc(100vw - 48px));
  padding: 18px 20px;
  border-radius: 22px;
  display: none !important;
  gap: 8px;
}

.key-notice strong {
  font-size: 1rem;
}

.key-notice span {
  color: var(--muted);
  line-height: 1.6;
}

.route-finder {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(244, 250, 248, 0.98);
  box-shadow: inset 0 0 0 1px rgba(10, 141, 120, 0.12);
  flex: 0 0 auto;
}

.route-finder--panel {
  width: 100%;
}

.route-finder--panel[hidden] {
  display: none !important;
}

.side-panel[data-panel-mode="course"] {
  width: min(430px, calc(100vw - 48px));
}

.side-panel[data-panel-mode="course"] .route-finder {
  margin-bottom: 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(23, 50, 47, 0.1),
    0 18px 34px rgba(7, 28, 28, 0.08);
}

.route-finder-title {
  margin: 0;
  color: var(--brand-deep);
  font-size: 0.9rem;
  font-weight: 900;
}

.route-search-meta {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.route-search-results {
  display: grid;
  gap: 8px;
}

.route-search-results:empty {
  display: none;
}

.route-search-results-title {
  margin: 0;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 900;
}

.route-search-result-list {
  display: grid;
  gap: 7px;
}

.route-search-result {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(23, 50, 47, 0.08);
}

.route-search-result strong {
  color: var(--brand-deep);
  font-size: 0.9rem;
}

.route-search-result span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  word-break: keep-all;
}

.route-search-result:hover,
.route-search-result:focus-visible,
.route-search-result.is-active {
  background: rgba(232, 248, 244, 0.96);
  box-shadow: inset 0 0 0 1px rgba(10, 141, 120, 0.28);
}

.route-search-actions[hidden] {
  display: none !important;
}

.route-finder-head {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.route-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 141, 120, 0.1);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.route-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.route-search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(23, 50, 47, 0.08);
}

.route-search-icon {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.route-search-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-search-input input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.route-search-input input:focus {
  outline: none;
}

.route-search-submit,
.route-open-button {
  min-height: 54px;
  padding: 0 16px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, #2f7eff 0%, #1e57e7 100%);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(47, 126, 255, 0.24);
}

.custom-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px 18px 18px 6px;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 16px 26px rgba(7, 28, 28, 0.22);
  transform: rotate(10deg);
}

.custom-marker span {
  transform: rotate(-10deg);
}

.custom-marker.is-selected {
  background: linear-gradient(145deg, var(--accent) 0%, #ff7d40 100%);
  transform: rotate(0deg) scale(1.08);
}

.custom-marker.is-selected span {
  transform: rotate(0deg);
}

@media (max-width: 1080px) {
  .topbar {
    padding: 0 20px 0 calc(var(--rail-width) + 20px);
  }

  .topnav {
    gap: 8px;
  }

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

  .submenu-panel {
    width: min(340px, calc(100vw - 32px));
  }
}

@media (max-width: 920px) {
  :root {
    --rail-width: 88px;
    --header-height: 78px;
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: flex-start;
    height: auto;
    padding: 14px 16px 12px calc(var(--rail-width) + 16px);
  }

  .topnav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  #map {
    margin-top: 110px;
  }

  .top-panel {
      top: 232px;
      left: calc(var(--rail-width) + 8px);
    }

  .map-type-toggle {
    top: 126px;
    right: 16px;
  }

  .place-card {
    top: 194px;
    width: min(360px, calc(100vw - 32px));
  }

  .side-panel {
    top: 232px;
    left: calc(var(--rail-width) + 8px);
  }
}

@media (max-width: 680px) {
  :root {
    --rail-width: 0px;
    --header-height: 0px;
  }

  .topbar {
    inset: 12px 12px auto 12px;
    height: auto;
    padding: 0;
    gap: 10px;
    background: transparent;
    border: 0;
    backdrop-filter: none;
    display: grid;
  }

  .brand {
    width: 100%;
    min-height: 56px;
    padding: 0 14px;
    flex-wrap: nowrap;
    gap: 10px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 38px rgba(7, 28, 28, 0.18);
  }

  .brand::before {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background-size: 24px 24px, auto;
    box-shadow: none;
  }

  .brand-title {
    flex: 1 1 auto;
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-season {
    margin-left: auto;
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .topnav {
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 0;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .topnav-button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 26px rgba(7, 28, 28, 0.12);
    font-size: 0.82rem;
  }

  .side-rail {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 82px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-top: 0;
    border-right: 0;
    border-top: 1px solid rgba(23, 50, 47, 0.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -12px 28px rgba(7, 28, 28, 0.12);
  }

  .rail-button {
    gap: 6px;
    padding: 10px 4px 8px;
    border-bottom: 0;
    border-right: 1px solid rgba(23, 50, 47, 0.06);
  }

  .rail-button:last-child {
    border-right: 0;
  }

  .rail-icon {
    width: 32px;
    height: 32px;
    background: transparent;
    box-shadow: none;
  }

  .rail-button span:last-child {
    font-size: 0.76rem;
  }

  #map {
    margin-top: 0;
    margin-left: 0;
    margin-bottom: 82px;
  }

  .top-panel,
  .side-panel {
    left: 8px;
    right: 8px;
    width: auto;
    top: auto;
    bottom: 82px;
    max-height: 58vh;
    padding: 16px;
    border-radius: 28px 28px 22px 22px;
  }

  .top-panel::before,
  .side-panel::before,
  .place-card::before {
    content: "";
    width: 52px;
    height: 5px;
    margin: 0 auto 8px;
    border-radius: 999px;
    background: rgba(23, 50, 47, 0.14);
  }

  .top-panel {
    bottom: 82px;
  }

  .top-panel[data-panel-mode="event"] {
    height: 58vh;
    max-height: 58vh;
  }

  .map-type-toggle {
    left: auto;
    right: 12px;
    top: 146px;
    bottom: auto;
    width: auto;
    padding: 0;
    gap: 8px;
    flex-direction: column;
  }

  .map-type-button {
    width: 54px;
    min-height: 56px;
    padding: 7px 5px 8px;
  }

  .map-type-button-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
  }

  .map-type-button-label {
    font-size: 0.62rem;
  }

  .place-card {
    left: 8px;
    right: 8px;
    top: auto;
    bottom: 82px;
    width: auto;
    max-height: 52vh;
    overflow-y: auto;
    transform: none;
    padding: 16px;
    border-radius: 28px 28px 22px 22px;
  }

  .side-panel {
    transform: translateY(18px);
  }

  .side-panel.is-open {
    transform: translateY(0);
  }

  .status-chip,
  .key-notice {
    left: 12px;
    right: auto;
    width: auto;
  }

  .status-chip {
    bottom: 92px;
    max-width: calc(100vw - 108px);
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.78rem;
  }

  .key-notice {
    top: auto;
    bottom: 222px;
  }

  .panel-head {
    margin-bottom: 12px;
    padding-right: 40px;
  }

  .side-panel .panel-close {
    display: none;
  }

  .route-finder {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 20px;
    gap: 8px;
  }

  .route-finder-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .route-finder-title {
    font-size: 0.82rem;
  }

  .route-chip {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .route-search-form {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 8px;
  }

  .route-search-input {
    min-height: 46px;
    padding: 0 12px;
    border-radius: 18px;
  }

  .route-search-input input {
    font-size: 0.84rem;
  }

  .route-search-submit,
  .route-open-button {
    min-height: 46px;
    padding: 0 10px;
    border-radius: 18px;
    font-size: 0.77rem;
  }

  .route-search-meta {
    font-size: 0.74rem;
  }

  .panel-kicker {
    margin-bottom: 6px;
    font-size: 0.68rem;
  }

  .panel-head h1,
  .panel-head h2 {
    font-size: 1.26rem;
  }

  .submenu-item {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .submenu-item-text strong {
    font-size: 0.92rem;
  }

  .submenu-item-text span {
    font-size: 0.78rem;
  }

  .submenu-item-tag {
    min-width: 48px;
    min-height: 24px;
    font-size: 0.72rem;
  }

  .side-panel[data-panel-mode="treasure"] .submenu-list {
    gap: 8px;
    padding-bottom: 6px;
  }

  .side-panel[data-panel-mode="treasure"] .submenu-item {
    flex-basis: 116px;
    min-height: 92px;
    padding: 12px;
  }

  .side-panel[data-panel-mode="treasure"] .submenu-item-text strong {
    font-size: 0.86rem;
  }

  .side-panel[data-panel-mode="treasure"] .submenu-item-text span {
    font-size: 0.73rem;
  }

  .side-panel[data-panel-mode="treasure"] .submenu-list,
  .side-panel[data-panel-mode="certify"] .submenu-list,
  .side-panel[data-panel-mode="carbon"] .submenu-list,
  .top-panel[data-panel-mode="event"] .submenu-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    padding: 0;
    overflow: visible;
  }

  .top-panel[data-panel-mode="event"] .submenu-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .side-panel[data-panel-mode="treasure"] .submenu-item,
  .side-panel[data-panel-mode="certify"] .submenu-item,
  .side-panel[data-panel-mode="carbon"] .submenu-item,
  .top-panel[data-panel-mode="event"] .submenu-item {
    min-height: 54px;
    padding: 7px 3px;
    border-radius: 10px;
    align-items: center;
  }

  .submenu-detail {
    margin-top: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .submenu-detail h3 {
    font-size: 1.08rem;
  }

  .submenu-detail p,
  .week-summary,
  .cert-note,
  .cert-record,
  .inline-spot-intro,
  .event-note,
  .place-card-address,
  .place-card-intro,
  .place-card-action,
  .mini-action {
    font-size: 0.82rem;
  }

  .place-card-layout {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 10px;
  }

  .place-card-photo {
    width: 82px;
  }

  .place-card.place-card--overlay .place-card-layout {
    grid-template-columns: minmax(0, 1fr) 76px;
    grid-template-areas:
      "title title"
      "address photo"
      "intro photo";
    gap: 8px;
  }

  .place-card.place-card--overlay .place-card-title-row {
    padding-right: 66px;
  }

  .place-card.place-card--overlay .place-card-photo {
    width: 76px;
    margin-top: 0;
  }

  .place-card.place-card--overlay .place-card-address,
  .place-card.place-card--overlay .place-card-intro {
    padding-right: 0;
  }

  .place-card-title-row h3 {
    font-size: 1.05rem;
  }

  .place-card-rating,
  .place-card-links {
    font-size: 0.76rem;
  }

  .place-card-actions {
    gap: 7px;
  }

  .side-panel[data-panel-mode="treasure"] .inline-panel-detail,
  .top-panel[data-panel-mode="event"] .inline-panel-detail {
    max-height: 42vh;
  }

  .event-round-card strong,
  .event-step strong {
    font-size: 0.92rem;
  }

  .place-card h3 {
    font-size: 1.12rem;
  }

  .place-popup {
    min-width: 270px;
    max-width: 300px;
    padding: 16px 16px 14px;
    border-radius: 20px;
  }

  .place-popup-main {
    display: block;
  }

  .place-popup-title {
    font-size: 0.94rem;
  }

  .place-popup-kicker,
  .place-popup-address,
  .place-popup-intro,
  .place-popup-carbon,
  .place-popup-action {
    font-size: 0.78rem;
  }

  .place-popup-action {
    min-height: 40px;
  }

  .place-card-actions {
    gap: 8px;
  }

  .place-card-action {
    flex: 1 1 auto;
    min-height: 40px;
  }

  .carbon-meter strong {
    font-size: 1.6rem;
  }
}
