:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #242a32;
  background: #f7f5ef;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-ink: #5b21b6;
  --accent-muted: #78608f;
  --accent-soft: #f5f3ff;
  --accent-tint: #ede9fe;
  --accent-faint: #faf9ff;
  --accent-border: #c4b5fd;
  --accent-focus: #a78bfa;
  --accent-shadow: #4c1d9540;
  --composer-height: 220px;
}
* { box-sizing: border-box; }
html, body, #map { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; }
#map { position: relative; }
button, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent-focus);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.surface {
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(31, 40, 50, .09);
  box-shadow: 0 8px 32px #24303d13, 0 1px 3px #24303d09;
  border-radius: 20px;
}
.masthead {
  position: fixed;
  z-index: 3;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 20px 15px 15px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: var(--accent);
  color: white;
  border-radius: 14px;
  font: italic 700 37px Georgia, serif;
  letter-spacing: -6px;
  padding-right: 8px;
}
.brand-mark span { display: contents; }
.eyebrow {
  margin: 0 0 5px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.6px;
  color: var(--accent-muted);
}
h1 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.5px; }
.map-tools { position: fixed; top: 24px; right: 24px; z-index: 5; display: flex; align-items: center; gap: 10px; }
.tool { min-height: 44px; padding: 11px 14px; border-radius: 13px; font-size: 13px; font-weight: 600; }
#floor-control { display: flex; align-items: center; gap: 7px; }
#floor { background: transparent; border: 0; color: inherit; max-width: 110px; }
.composer {
  position: fixed;
  z-index: 6;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 48px));
  padding: 20px;
}
.composer-heading { display: flex; gap: 12px; align-items: center; }
.spark { color: var(--accent); font-size: 29px; align-self: flex-start; line-height: 1; }
.composer h2 { font-size: 17px; font-weight: 650; letter-spacing: -.3px; margin: 0 0 4px; }
.composer-heading p { margin: 0; color: #757a82; font-size: 12px; }
textarea {
  display: block;
  width: 100%;
  margin: 16px 0 12px;
  padding: 12px 14px;
  resize: none;
  line-height: 1.5;
  font-size: 14px;
  color: #292d34;
  background: #f8f8f7;
  border: 1px solid #e8e8e6;
  border-radius: 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea::placeholder { color: #92949a; }
textarea:focus { border-color: var(--accent-focus); box-shadow: 0 0 0 3px var(--accent-tint); }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.examples { display: flex; gap: 6px; flex-wrap: wrap; }
.examples button { border: 1px solid #e7e7e4; background: white; border-radius: 30px; padding: 7px 11px; font-size: 11px; white-space: nowrap; transition: background .15s, border-color .15s; }
.examples button:hover { background: var(--accent-soft); border-color: var(--accent-border); }
.submit { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding: 11px 16px; background: var(--accent); color: white; border: 0; border-radius: 11px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.submit:hover:not(:disabled) { background: var(--accent-hover); }
.status, .error { font-size: 12px; line-height: 1.5; margin: 12px 0 0; }
.status { color: #777d85; }
.status:empty { display: none; }
.error { padding: 10px 12px; color: var(--accent-ink); background: var(--accent-soft); border-radius: 9px; }
.plans-panel { position: fixed; z-index: 4; top: 122px; left: 24px; width: 350px; max-height: calc(100dvh - var(--composer-height) - 170px); overflow: auto; scrollbar-width: thin; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; padding: 21px 20px 17px; }
.panel-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.4px; font-weight: 650; }
.icon-button { border: 0; border-radius: 8px; background: #f3f3f1; width: 28px; height: 28px; font-size: 20px; }
.plan-card { border-top: 1px solid #eeeeec; }
.plan-choice { width: 100%; text-align: left; border: 0; background: transparent; padding: 18px 20px; }
.plan-choice:hover { background: var(--accent-faint); }
.plan-choice[aria-pressed="true"] { background: var(--accent-soft); }
.plan-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-number { font-size: 10px; font-weight: 750; letter-spacing: 1.3px; color: var(--accent-muted); }
.plan-distance { color: #80848a; font-size: 10px; }
.plan-choice h3 { margin: 7px 0; font-size: 16px; font-weight: 650; letter-spacing: -.3px; }
.plan-choice p { margin: 0; font-size: 12px; line-height: 1.6; color: #72767c; }
.plan-choice p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.itinerary-heading { margin: 0; padding: 16px 20px; border-top: 1px solid #eeeeec; font-size: 13px; font-weight: 650; }
.plan-card[data-route-status="unavailable"] { opacity: .65; }
.plan-stops { list-style: none; margin: 0; padding: 5px 20px 5px; }
.plan-stops li { display: flex; gap: 11px; padding-bottom: 17px; }
.stop-index { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--accent-tint); color: var(--accent-ink); display: grid; place-items: center; font-size: 10px; font-weight: 750; }
.stop-content { min-width: 0; }
.stop-name { display: block; background: none; border: 0; padding: 0; text-align: left; font-size: 12px; font-weight: 700; }
.stop-name:hover { color: var(--accent); }
.stop-floor { display: block; margin-top: 3px; color: #8a8d92; font-size: 10px; }
.stop-content p { margin: 5px 0 0; color: #747980; font-size: 11px; line-height: 1.6; }
.accessible { display: inline-block; color: #577664; font-size: 10px; margin-top: 8px; }
.panel-footer { padding: 12px 20px 18px; border-top: 1px solid #eeeeec; }
.panel-footer p { margin: 0 0 9px; color: #8b8f95; font-size: 10px; }
.panel-footer button { padding: 0; border: 0; background: none; font-size: 11px; color: var(--accent-ink); }
.store-logo {
  display: block;
  width: 56px;
  height: 38px;
  padding: 4px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #24303d20;
  border-radius: 8px;
  box-shadow: 0 2px 6px #24303d24;
  font-size: 9px;
}
.route-pin { width: 30px; height: 30px; border: 3px solid white; border-radius: 50%; color: white; background: var(--accent); box-shadow: 0 2px 9px var(--accent-shadow); font-size: 12px; font-weight: 750; display: grid; place-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .masthead { top: 14px; left: 14px; padding: 11px 14px 11px 11px; gap: 9px; border-radius: 16px; }
  .brand-mark { width: 33px; height: 33px; font-size: 29px; border-radius: 10px; }
  h1 { font-size: 15px; }
  .masthead .eyebrow { font-size: 8px; letter-spacing: 1px; margin-bottom: 4px; }
  .map-tools { top: 91px; right: 14px; flex-direction: column; align-items: flex-end; }
  .tool { min-height: 36px; padding: 9px 11px; font-size: 11px; }
  .composer { bottom: max(25px, env(safe-area-inset-bottom)); width: calc(100% - 24px); padding: 16px; border-radius: 18px; }
  .composer h2 { font-size: 15px; }
  .composer-heading p { font-size: 11px; }
  .spark { font-size: 26px; }
  textarea { margin-top: 13px; font-size: 16px; }
  .composer-actions { align-items: flex-end; gap: 8px; }
  .examples { gap: 4px; }
  .examples button { font-size: 10px; padding: 6px 8px; }
  .submit { font-size: 11px; padding: 10px 12px; gap: 5px; }
  .submit svg { width: 14px; }
  .plans-panel { top: auto; bottom: calc(var(--composer-height) + 37px); left: 12px; width: calc(100% - 24px); max-height: min(42dvh, calc(100dvh - var(--composer-height) - 150px)); border-radius: 18px; }
  .panel-heading { padding: 16px; }
  .panel-heading h2 { font-size: 15px; }
  .plan-choice { padding: 14px 16px; }
  .plan-stops { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 380px) {
  .examples button { padding: 5px 7px; }
  .examples button:last-child { display: none; }
  .composer-heading p { max-width: 230px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
