:root {
  --bg: #f3e6d0;
  --bg-soft: #fff6ea;
  --ink: #2c1a10;
  --ink-soft: #5c4030;
  --line: #e4d0b4;
  --accent: #b54a28;
  --accent-soft: #c9842a;
  --you: #1e6ad6;
  --you-soft: rgba(30, 106, 214, 0.28);
  --shadow: 0 10px 28px rgba(44, 26, 16, 0.18);
  --sheet: #fff8ee;
  --danger-bg: #f8e4d4;
  --radius: 18px;
  --tap: 56px;
  --top-space: calc(env(safe-area-inset-top, 0px) + 12px);
  --side: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #16100c;
  --bg-soft: #241a14;
  --ink: #f3e6d0;
  --ink-soft: #d4c0a8;
  --line: #3b2c22;
  --accent: #e07a48;
  --accent-soft: #e0a85a;
  --you: #4d8ef0;
  --you-soft: rgba(77, 142, 240, 0.32);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  --sheet: #1f1611;
  --danger-bg: #3a2618;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
}

#app {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}

#map {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 0;
}

.top-bar {
  position: absolute;
  top: var(--top-space);
  left: var(--side);
  right: var(--side);
  z-index: 20;
  background: color-mix(in srgb, var(--bg-soft) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 12px 12px 14px;
}

.top-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.brand {
  min-width: 0;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 650;
  margin-bottom: 2px;
}

.brand h1 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 750;
}

.icon-btn {
  flex: 0 0 auto;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.icon-btn:focus-visible,
.fab:focus-visible,
.ctrl-btn:focus-visible,
.play-btn:focus-visible,
.route-btn:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.theme-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f3e6d0 46%, #c9842a 47%, #b54a28 100%);
  box-shadow: inset -6px -4px 0 0 #2c1a10;
}

[data-theme="dark"] .theme-icon {
  box-shadow: inset -6px -4px 0 0 #f3e6d0;
  background: radial-gradient(circle at 35% 35%, #e0a85a 40%, #241a14 41%);
}

.route-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.route-btn {
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.route-btn .rt-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.route-btn .rt-meta {
  font-size: 12px;
  color: var(--ink-soft);
}

.route-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff8ee;
}

.route-btn.is-active .rt-meta {
  color: rgba(255, 248, 238, 0.86);
}

.fab-stack {
  position: absolute;
  right: var(--side);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 54px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sheet.is-open ~ .fab-stack,
#app:has(.sheet.is-open) .fab-stack {
  bottom: auto;
}

/* When sheet is open, keep the locate button above the sheet via JS-set style or a class on #app */
#app.sheet-open .fab-stack {
  display: none;
}

.fab {
  min-height: var(--tap);
  padding: 0 16px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--you);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fab-icon {
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
  background: #9dc4ff;
}

.toast {
  position: absolute;
  left: var(--side);
  right: var(--side);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 128px);
  z-index: 30;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
}

#app.sheet-open .toast {
  bottom: calc(var(--sheet-h, 46%) + 12px);
}

.toast[hidden] {
  display: none;
}

#listen-prompt-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.listen-prompt {
  position: absolute;
  left: var(--side);
  right: var(--side);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 168px);
  z-index: 31;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#app.sheet-open .listen-prompt {
  display: none !important;
}

.listen-prompt[hidden] {
  display: none;
}

.listen-prompt-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.listen-prompt-row p {
  margin: 0;
  flex: 1;
  font-size: 16px;
  line-height: 1.4;
}

.listen-prompt-btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 12px;
  background: var(--accent, #b14a2a);
  color: #fff8ee;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
}


.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: var(--sheet);
  color: var(--ink);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 32px rgba(44, 26, 16, 0.2);
  padding: 8px 18px calc(env(safe-area-inset-bottom, 0px) + 18px);
  max-height: min(72dvh, 620px);
  overflow: auto;
  display: none;
}

.sheet.is-open,
.sheet:not([hidden]) {
  display: block;
}

.sheet[hidden] {
  display: none !important;
}

.sheet-handle {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0 auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.sheet-handle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 5px;
  transform: translate(-50%, -50%);
  border-radius: 99px;
  background: var(--line);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.sheet-num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff8ee;
  font-weight: 800;
  font-size: 18px;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.sheet-titles {
  min-width: 0;
  flex: 1;
}

.sheet-titles h2,
.brand h1,
.toast,
.sheet-text,
.route-btn .rt-title {
  overflow-wrap: anywhere;
}

.sheet-titles h2 {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 750;
}

.sheet-titles p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.35;
}

.player {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  margin-bottom: 16px;
}

.player-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.ctrl-btn {
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.ctrl-btn:disabled,
.play-btn:disabled,
#progress:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.play-btn {
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff8ee;
  font-size: 28px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 40%, transparent);
}

#play-icon {
  display: block;
  margin-left: 3px;
  line-height: 1;
}

.play-btn.is-playing #play-icon {
  margin-left: 0;
}

.progress-label {
  display: block;
  padding: 6px 0;
}

#progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 99px;
  background: var(--line);
  outline: none;
}

#progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff8ee;
  box-shadow: 0 2px 8px rgba(44, 26, 16, 0.25);
}

#progress::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff8ee;
  box-shadow: 0 2px 8px rgba(44, 26, 16, 0.25);
}

.time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.audio-stub {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--danger-bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  text-align: center;
}

.audio-stub[hidden] {
  display: none;
}

.sheet-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}


.look-gallery {
  margin-top: 20px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--line);
}

.look-gallery[hidden] {
  display: none;
}

.look-gallery h3 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  margin: 0 0 14px;
}

.look-track {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.look-card {
  margin: 0;
}

.look-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-soft) 80%, #000 8%);
}

.look-card img[hidden] {
  display: none;
}

.look-fallback {
  margin: 0 0 10px;
  min-height: 120px;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  display: flex;
  align-items: center;
}

.look-fallback[hidden] {
  display: none;
}

.look-look {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}

.look-credit {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.look-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* Leaflet tweaks */
.leaflet-container {
  font-family: var(--font);
  background: var(--bg);
  width: 100%;
  height: 100%;
}

.leaflet-control-attribution {
  background: color-mix(in srgb, var(--bg-soft) 90%, transparent) !important;
  color: var(--ink-soft);
  font-size: 11px;
  max-width: min(70vw, 260px);
  white-space: normal;
  line-height: 1.3;
  padding: 3px 8px !important;
  border-radius: 8px 0 0 0;
}

.leaflet-control-attribution a {
  color: var(--ink);
}

.leaflet-bottom.leaflet-right {
  margin-bottom: 8px;
}

.leaflet-top.leaflet-left {
  top: auto;
  bottom: 86px;
  left: 10px;
}

.leaflet-control-zoom {
  border: 0 !important;
  box-shadow: var(--shadow) !important;
  border-radius: 16px !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  font-size: 22px !important;
  background: var(--bg-soft) !important;
  color: var(--ink) !important;
  border-bottom-color: var(--line) !important;
}

.stop-icon-wrap {
  display: grid;
  place-items: center;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
}

.stop-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff8ee;
  border: 3px solid #fff8ee;
  box-shadow: 0 4px 12px rgba(44, 26, 16, 0.28);
  font-weight: 800;
  font-size: 16px;
  display: grid;
  place-items: center;
}

.stop-marker.is-active {
  transform: scale(1.12);
}

.stop-marker.is-near {
  transform: scale(1.18);
  box-shadow:
    0 0 0 5px #fff8ee,
    0 0 0 10px var(--accent-soft),
    0 4px 12px rgba(44, 26, 16, 0.28);
}

.you-marker {
  width: 22px;
  height: 22px;
  position: relative;
}

.you-dot {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--you);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--you-soft);
}

.you-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--you-soft);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(2.1); opacity: 0; }
}

@media (max-width: 380px) {
  .brand h1 { font-size: 18px; }
  .route-btn .rt-title { font-size: 13px; }
  .sheet-titles h2 { font-size: 18px; }
  .play-btn { width: 68px; height: 68px; }
}


.optional-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  cursor: pointer;
}

.optional-row[hidden] {
  display: none;
}

.optional-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.offline-row {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.offline-btn {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.offline-btn[disabled] {
  cursor: default;
  opacity: 0.85;
}

.offline-btn.is-done {
  border-color: var(--line);
  background: var(--bg-soft);
}

.offline-status {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.offline-progress {
  height: 8px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}

.offline-progress[hidden] {
  display: none;
}

.offline-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.sheet-hours {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.sheet-hours[hidden] {
  display: none;
}

.stop-marker.is-optional {
  background: transparent !important;
  color: var(--accent);
  border: 3px solid var(--accent);
  box-shadow: 0 4px 12px rgba(44, 26, 16, 0.18);
}

[data-theme="dark"] .stop-marker.is-optional {
  color: #fff8ee;
  background: transparent !important;
}

.next-block {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.next-block[hidden],
.next-end[hidden] {
  display: none;
}

.next-block h3 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 12px;
}

.next-open {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: var(--tap);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.next-name {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.next-dist {
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 600;
}

.next-compass-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.compass {
  position: relative;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--line);
  background: var(--bg);
  box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--line) 55%, transparent);
}

.compass-n {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.compass-arrow {
  position: absolute;
  inset: 0;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 0.2s linear;
}

.compass-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 34px solid var(--accent);
}

.compass-side {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.compass-caption {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.compass-enable {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
}

.mini-map {
  margin-top: 16px;
  height: 150px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
}

.mini-map .leaflet-control-attribution {
  max-width: 100%;
  font-size: 10px;
}

.next-end {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.next-end p {
  margin: 0;
}

.next-route-btn {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff8ee;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

.next-route-btn[hidden] {
  display: none;
}

.listen-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}


.listen-prompt-dismiss {
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
}

.mini-player {
  position: absolute;
  left: var(--side);
  right: var(--side);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  z-index: 24;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px 8px 8px 16px;
  min-height: 56px;
}

.mini-player[hidden] {
  display: none;
}

#app.sheet-open .mini-player {
  display: none !important;
}

.mini-player-open {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.mini-player-title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-player-time {
  font-size: 13px;
  color: var(--ink-soft);
}

.mini-player-toggle {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff8ee;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

#app.mini-playing .leaflet-bottom {
  bottom: var(--map-chrome-bottom, 80px);
}

#app.mini-playing .leaflet-top.leaflet-left {
  bottom: calc(var(--map-chrome-bottom, 80px) + 8px);
}

#app.mini-playing .fab-stack {
  bottom: var(--map-chrome-bottom, 80px);
}

.listen-prompt,
.toast {
  bottom: var(--prompt-bottom, calc(env(safe-area-inset-bottom, 0px) + 168px));
}

#app.mini-playing .listen-prompt,
#app.mini-playing .toast {
  bottom: var(--prompt-bottom, calc(env(safe-area-inset-bottom, 0px) + 200px));
}

@media (max-width: 380px) {
  .compass { width: 80px; height: 80px; }
  .mini-map { height: 140px; }
}


.nearest-hint {
  position: absolute;
  left: var(--side);
  right: var(--side);
  bottom: var(--nearest-bottom, calc(env(safe-area-inset-bottom, 0px) + 118px));
  z-index: 22;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 10px 12px 10px 16px;
  min-height: 56px;
}

.nearest-hint[hidden] {
  display: none;
}

#app.sheet-open .nearest-hint {
  display: none !important;
}

.nearest-hint-text {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 650;
}

.nearest-hint-open {
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff8ee;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
