#guide-dialog {
  width: min(34rem, calc(100% - 1.25rem));
  max-height: calc(100dvh - 1.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.trip-guide {
  width: 100%;
  overflow-wrap: anywhere;
  background: var(--card);
  color: var(--ink);
}
.guide-top, .guide-current { background: var(--night-raised); color: var(--card); }
.guide-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: .85rem; padding: .85rem 1rem;
  background: linear-gradient(90deg, #23241c 32%, #23241ce6 64%, #23241caa), url("./brand/studio.webp") right 48% / cover #23241c;
}
.guide-destination { display: grid; gap: .15rem; }
.guide-destination span { font-size: 1rem; font-weight: 650; line-height: 1.25; }
.guide-destination small { color: #e1ddcb; font-size: .875rem; }
.guide-close {
  flex: none; padding: .4rem .7rem; min-height: 44px; border: 1px solid #8d8364;
  border-radius: .5rem; background: transparent; color: #f5e9c8; font-size: .875rem;
}
.guide-close:hover { background: #403c2e; }
.guide-progress { display: flex; gap: 3px; padding-inline: 1rem; background: var(--night-raised); }
.guide-progress i { flex: 1; height: 3px; background: #535243; border-radius: 3px; }
.guide-progress i.complete { background: var(--gold); }
.guide-current { padding: 1.1rem 1rem .95rem; }
.guide-labels {
  display: flex; align-items: baseline; gap: .75rem; justify-content: space-between;
  color: #ebd49c; font-size: .93rem; font-weight: 650; line-height: 1.35;
}
.guide-labels small { flex: none; font-weight: 500; font-size: .8rem; line-height: 1.4; color: #e1ddcb; font-variant-numeric: tabular-nums; }
.guide-heading {
  margin: .35rem 0 0; max-width: 25ch; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.85rem, 7.5vw, 2.75rem); line-height: 1.06; letter-spacing: -.035em;
}
.guide-heading:focus { outline: none; }
.guide-cue { margin: .6rem 0 0; font-size: 1rem; line-height: 1.45; color: #f0ebdc; }
.guide-landmark { margin-top: .3rem; font-size: .9rem; color: #e1ddcb; line-height: 1.4; }
.guide-turn {
  margin-top: .65rem; padding-left: .65rem; border-left: 2px solid var(--gold);
  color: #fcf1d5; font-size: 1rem; line-height: 1.4;
}
.guide-alert {
  display: inline-block; padding: .35rem .65rem; color: #302916; background: #f0d28c;
  border-radius: .4rem; font-weight: 680;
}
.guide-next {
  display: grid; gap: .15rem; border-top: 1px solid #595642;
  margin-top: 1rem; padding-top: .75rem;
}
.guide-next small { color: #e0ca94; font-size: .875rem; font-weight: 650; }
.guide-next p { font-size: 1rem; font-weight: 550; line-height: 1.4; color: var(--card); }
.guide-navigation { display: flex; gap: .5rem; padding: .8rem 1rem .4rem; }
.guide-navigation button { min-height: 48px; font-size: .97rem; }
.guide-advance { flex: 1; }
.guide-back { flex: 0 1 auto; }
.guide-exit-reminder {
  margin: .55rem 1rem .15rem; border-block: 1px solid var(--line);
  padding-block: .12rem;
}
.guide-exit-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; min-height: 44px;
  padding: .35rem 0; background: transparent; border: 0; font-size: .93rem; font-weight: 650; text-align: left;
}
.guide-toggle-state {
  min-width: 3rem; border: 1px solid #9b927a; border-radius: 999px; padding: .15rem .45rem;
  font-size: .8rem; line-height: 1.2; text-align: center;
}
[aria-pressed="true"] > .guide-toggle-state { background: var(--gold-pale); color: #504023; border-color: #a18548; }
.guide-exit-status { margin: .1rem 0 .2rem; font-size: .94rem; line-height: 1.4; }
.guide-exit-status[data-state="near"] {
  border-left: 3px solid #a07825; background: #f7ebcf; color: #513b14;
  padding: .4rem .65rem; font-weight: 650;
}
.guide-exit-reminder small { display: block; margin-bottom: .5rem; color: var(--muted); font-size: .875rem; }
.guide-tools { display: flex; flex-wrap: wrap; gap: .15rem .8rem; padding: 0 1rem .35rem; }
.guide-tools button {
  min-height: 44px; padding: .15rem .1rem; border: 0; color: var(--gold-ink);
  background: transparent; font-size: .875rem; font-weight: 650; text-align: left;
}
.guide-tools button:hover { text-decoration: underline; text-underline-offset: .14em; }
@media (min-width: 480px) {
  .guide-top, .guide-current, .guide-progress, .guide-navigation, .guide-tools { padding-inline: 1.4rem; }
}
