:root {
  color-scheme: light;
  --background: #e8eaed;
  --background-strong: #dfe1e5;
  --surface: rgba(240, 242, 245, 0.96);
  --surface-strong: rgba(235, 237, 241, 0.98);
  --surface-muted: rgba(228, 230, 235, 0.96);
  --surface-contrast: #d3d6db;
  --primary: #1d232c;
  --primary-strong: #0f141b;
  --primary-soft: rgba(29, 35, 44, 0.08);
  --secondary: #8e3b2f;
  --secondary-strong: #a64838;
  --secondary-soft: rgba(142, 59, 47, 0.1);
  --text: #1b1e22;
  --text-strong: #090909;
  --muted: #525860;
  --muted-soft: #7a828a;
  --line: rgba(20, 25, 32, 0.12);
  --line-strong: rgba(20, 25, 32, 0.22);
  --shadow-lg: 0 20px 50px rgba(15, 18, 22, 0.08);
  --shadow-md: 0 10px 24px rgba(15, 18, 22, 0.06);
  --shadow-sm: 0 6px 16px rgba(15, 18, 22, 0.045);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --topbar-height: 0px;
  --sidebar-width: 264px;
  --app-gap: 24px;
  --font-display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-chat-display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-chat-body: "Manrope", "Segoe UI", sans-serif;
  --page-gradient-start: #eaecef;
  --page-gradient-end: #dfe1e5;
  --page-grid-line: rgba(20, 20, 20, 0.04);
  --page-grid-fade: rgba(232, 234, 237, 0);
  --topbar-background: rgba(232, 234, 237, 0.9);
  --topbar-border: rgba(20, 25, 32, 0.1);
  --shell-card-background: var(--surface);
  --shell-card-border: rgba(20, 25, 32, 0.1);
  --soft-pill-background: rgba(228, 230, 235, 0.92);
  --topbar-chip-background: #111111;
  --chat-frame-background: linear-gradient(180deg, rgba(240, 242, 245, 0.98), rgba(232, 234, 238, 0.98));
  --chat-composer-background: rgba(228, 230, 235, 0.98);
  --chat-composer-input-background: #f0f2f5;
  --scrollbar-thumb: rgba(29, 35, 44, 0.2);
  --theme-toggle-shadow: 0 8px 20px rgba(15, 18, 22, 0.1);
  --theme-toggle-knob: linear-gradient(135deg, #ffffff, #e0e2e6);
  --theme-toggle-knob-shadow: 0 4px 12px rgba(15, 18, 22, 0.16);
  --focus-ring: rgba(29, 35, 44, 0.16);
  --left-drawer-width: min(480px, calc(100vw - 4px));
}

html[data-theme="dark"] {
  color-scheme: dark;
  --background: #090a0c;
  --background-strong: #111317;
  --surface: rgba(18, 20, 24, 0.98);
  --surface-strong: rgba(22, 24, 29, 0.98);
  --surface-muted: rgba(15, 17, 21, 0.98);
  --surface-contrast: #1f232a;
  --primary: #f2f1ed;
  --primary-strong: #ffffff;
  --primary-soft: rgba(255, 255, 255, 0.08);
  --secondary: #d66855;
  --secondary-strong: #eb7e69;
  --secondary-soft: rgba(214, 104, 85, 0.12);
  --text: #ece8e1;
  --text-strong: #ffffff;
  --muted: #a49b91;
  --muted-soft: #6e675f;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --shadow-lg: 0 22px 56px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 12px 28px rgba(0, 0, 0, 0.18);
  --shadow-sm: 0 8px 18px rgba(0, 0, 0, 0.15);
  --page-gradient-start: #090a0c;
  --page-gradient-end: #111317;
  --page-grid-line: rgba(255, 255, 255, 0.045);
  --page-grid-fade: rgba(0, 0, 0, 0);
  --topbar-background: rgba(9, 10, 12, 0.88);
  --topbar-border: rgba(255, 255, 255, 0.09);
  --shell-card-background: var(--surface);
  --shell-card-border: rgba(255, 255, 255, 0.09);
  --soft-pill-background: rgba(20, 22, 27, 0.98);
  --topbar-chip-background: #f2efe9;
  --chat-frame-background: linear-gradient(180deg, rgba(16, 18, 22, 0.99), rgba(10, 12, 16, 0.99));
  --chat-composer-background: rgba(12, 14, 18, 0.99);
  --chat-composer-input-background: #15181d;
  --scrollbar-thumb: rgba(255, 255, 255, 0.18);
  --theme-toggle-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  --theme-toggle-knob: linear-gradient(135deg, #faf8f4, #cbc4ba);
  --theme-toggle-knob-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
  --focus-ring: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    linear-gradient(180deg, var(--page-grid-fade), var(--page-grid-fade)),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 31px,
      var(--page-grid-line) 31px,
      var(--page-grid-line) 32px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 31px,
      var(--page-grid-line) 31px,
      var(--page-grid-line) 32px
    ),
    linear-gradient(180deg, var(--page-gradient-start), var(--page-gradient-end));
  transition: background-color 180ms ease, color 180ms ease, background 220ms ease;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

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

.app-shell,
.app-stage {
  min-height: 100vh;
}

.app-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 24px;
}

.app-stage {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  gap: var(--app-gap);
  align-items: start;
}

.app-stage.page-variant-home {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--sidebar-width);
}

.topbar-title,
h1,
h2,
h3,
.hero-title,
.section-title {
  font-family: var(--font-display);
}

.message-meta,
.result-meta,
.section-badge,
.stat-label,
.topbar-kicker {
  color: var(--muted-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  font-weight: 700;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-content {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 0 40px;
}

.app-stage.page-variant-home > .topbar {
  grid-column: 1;
}

.app-stage.page-variant-home > .page-content {
  grid-column: 2;
}


.topbar-copy {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.topbar-card {
  padding: 18px 18px 20px;
  display: grid;
  gap: 10px;
  border-radius: var(--radius-xl);
  background: var(--shell-card-background);
  border: 1px solid var(--shell-card-border);
  box-shadow: var(--shadow-md);
}

.topbar-brand-card {
  align-content: start;
}

.topbar-kicker {
  margin: 0;
}

.topbar-title {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.52rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.topbar-link,
.back-link,
.deep-link {
  color: var(--text);
  font-weight: 700;
  transition: color 140ms ease, opacity 140ms ease;
}

.topbar-link:hover,
.back-link:hover,
.deep-link:hover {
  color: var(--secondary);
}

body.drawer-open {
  overflow: hidden;
}

.shell-menu-button,
.shell-sidebar {
  display: none;
}

.shell-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 24, 0.42);
  backdrop-filter: blur(6px);
  z-index: 84;
}

.shell-sidebar-backdrop[hidden],
.shell-sidebar[hidden] {
  display: none;
}

.shell-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--left-drawer-width);
  max-width: 100vw;
  height: 100dvh;
  z-index: 85;
  transform: translateX(-100%);
  transition: transform 240ms ease;
}

.shell-sidebar.is-open {
  transform: translateX(0);
}

.shell-sidebar-panel {
  height: 100%;
  background: var(--surface);
  border-right: 1px solid var(--line);
  box-shadow: 24px 0 48px rgba(11, 18, 24, 0.18);
}

.shell-sidebar-scroll {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding:
    calc(env(safe-area-inset-top, 0px) + 10px)
    4px
    calc(env(safe-area-inset-bottom, 0px) + 16px)
    calc(env(safe-area-inset-left, 0px) + 4px);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.shell-sidebar-head {
  display: flex;
  justify-content: flex-end;
}

.shell-sidebar-main {
  display: grid;
  gap: 12px;
  align-content: start;
}

.topbar--sidebar,
.topbar--sidebar .topbar-card,
.topbar--sidebar .weather-card,
.page-footer--sidebar {
  width: 100%;
  max-width: none;
}

.topbar--sidebar {
  position: static;
  top: auto;
  z-index: auto;
}

.page-footer--sidebar {
  position: relative;
  z-index: 0;
  margin-top: 0;
  flex-shrink: 0;
}

.shell-sidebar-close,
.shell-menu-button {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 246, 249, 0.92);
  color: var(--text-strong);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.shell-menu-button {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  left: calc(env(safe-area-inset-left, 0px) + 16px);
  z-index: 70;
}

.shell-menu-button:hover,
.shell-menu-button:focus-visible,
.shell-sidebar-close:hover,
.shell-sidebar-close:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.shell-menu-button {
  display: none;
}

.plain-x-close,
.plain-x-close:hover,
.plain-x-close:focus-visible,
html[data-theme="dark"] .plain-x-close,
html[data-theme="dark"] .plain-x-close:hover,
html[data-theme="dark"] .plain-x-close:focus-visible {
  all: unset;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.plain-x-close svg,
html[data-theme="dark"] .plain-x-close svg {
  width: 28px;
  height: 28px;
  display: block;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 24, 0.36);
  backdrop-filter: blur(4px);
  z-index: 80;
}

.details-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(560px, 100vw);
  height: 100vh;
  z-index: 90;
  transform: translateX(100%);
  transition: transform 240ms ease;
}

.details-drawer[hidden],
.drawer-backdrop[hidden] {
  display: none;
}

.details-drawer.is-open {
  transform: translateX(0);
}

.details-drawer-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 48px rgba(11, 18, 24, 0.18);
}

.details-drawer-head {
  padding: 18px 22px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.details-drawer-close {
  all: unset;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.details-drawer-body {
  overflow-y: auto;
  padding: 0 22px 28px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.drawer-loading {
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.drawer-details-shell {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.drawer-page-intro {
  padding: 0 0 18px;
  border: 0;
  background: transparent;
  margin-top: -6px;
  border-bottom: 1px solid var(--line);
}

.theme-toggle {
  min-height: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  box-shadow: var(--theme-toggle-shadow);
  color: var(--muted);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.theme-toggle-track {
  position: relative;
  width: 74px;
  height: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  border-radius: 999px;
  background: var(--surface-contrast);
  overflow: hidden;
}

.theme-toggle-track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--theme-toggle-knob);
  box-shadow: var(--theme-toggle-knob-shadow);
  transform: translateX(0);
  transition: transform 180ms ease;
}

html[data-theme="dark"] .theme-toggle-track::before {
  transform: translateX(40px);
}

.theme-icon {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  justify-self: center;
  align-self: center;
}

.theme-icon-sun {
  color: #b7624f;
}

.theme-icon-moon {
  color: #525d6b;
}

.theme-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="dark"] .theme-icon-sun {
  color: rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .theme-icon-moon {
  color: #0e1218;
}

.topbar-chip,
.soft-chip,
.thread-anchor span,
.section-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--soft-pill-background);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.topbar-chip {
  background: var(--topbar-chip-background);
  border-color: transparent;
  color: #ffffff;
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.8rem;
}

html[data-theme="dark"] .topbar-chip {
  color: #0b0c0e;
}

.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-top: 2px;
}

.topbar-status-syncing {
  color: #b06a11;
}

.topbar-status-error {
  color: #c23c3c;
}

.topbar-sync-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.92;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 6px rgba(52, 199, 89, 0.5);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

.topbar-status-syncing .status-dot {
  background: #ff9f0a;
  box-shadow: 0 0 6px rgba(255, 159, 10, 0.45);
}

.topbar-status-error .status-dot {
  background: #ff453a;
  box-shadow: 0 0 6px rgba(255, 69, 58, 0.45);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(52, 199, 89, 0.5); }
  50% { opacity: 0.45; box-shadow: 0 0 2px rgba(52, 199, 89, 0.2); }
}

.hero-panel,
.chat-frame,
.rail-card,
.section,
.result-card,
.feature-card,
.empty-state {
  border-radius: var(--radius-xl);
  background: var(--shell-card-background);
  border: 1px solid var(--shell-card-border);
  box-shadow: var(--shadow-lg);
}

.hero-panel {
  padding: 28px;
}

.lead,
.rail-copy,
.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 700;
}

.hero-meta,
.key-facts,
.live-list,
.offline-shell {
  display: grid;
  gap: 14px;
}

.page-intro {
  display: grid;
  gap: 16px;
}

.section-title-icon {
  vertical-align: -4px;
  opacity: 0.6;
  margin-right: 4px;
}

.section-title,
.hero-title {
  margin: 0;
  max-width: 16ch;
  color: var(--text-strong);
  font-size: clamp(1.72rem, 3.3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.042em;
}

.intro-meta,
.soft-chip-row,
.prompt-chip-row,
.quick-actions,
.inline-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.soft-chip {
  min-height: 36px;
  font-size: 0.86rem;
}

.stat-card,
.fact-row,
.live-item,
.route-card,
.chat-departure-item,
.departure-row {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.stat-card {
  padding: 16px 18px;
  display: grid;
  gap: 8px;
}

.stat-card strong,
.fact-row strong {
  color: var(--text-strong);
  font-size: 1.02rem;
}

.chat-shell,
.details-shell {
  display: grid;
  gap: 26px;
  align-items: start;
}

.chat-shell {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.details-shell {
  grid-template-columns: minmax(0, 1fr) 330px;
}

.chat-column,
.details-main {
  display: grid;
  gap: 22px;
}

.chat-column {
  grid-column: 1;
  position: sticky;
  top: 16px;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

.chat-shell,
.chat-shell button,
.chat-shell input {
  font-family: var(--font-chat-body);
}

.chat-frame {
  height: calc(100dvh - 32px);
  min-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--chat-frame-background);
  border-radius: 32px;
  overflow: hidden;
}

.chat-thread {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 12px;
  padding: 16px 16px 12px;
  align-content: start;
}


.chat-thread::-webkit-scrollbar {
  width: 10px;
}

.chat-thread::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}

.message {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.message-assistant {
  justify-content: flex-start;
}

.message-user {
  justify-content: flex-end;
}

.message-stack {
  display: grid;
  gap: 4px;
  max-width: 100%;
}

.message-user .message-stack {
  justify-items: end;
}

.message-feedback-wrap .message-stack {
  justify-items: start;
  width: fit-content;
  max-width: min(100%, 190px);
}

.message-bubble {
  padding: 10px 12px;
  border-radius: 16px;
  display: grid;
  gap: 4px;
  line-height: 1.28;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  font-size: 0.84rem;
}

.message-assistant .message-bubble {
  border-bottom-left-radius: 10px;
}

.message-bubble-feedback {
  justify-self: start;
  width: 190px;
  max-width: 100%;
  gap: 4px;
  padding: 6px 12px;
  box-sizing: border-box;
}

.message-user .message-bubble {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  color: #ffffff;
  border-bottom-right-radius: 10px;
}

html[data-theme="dark"] .message-user .message-bubble {
  color: #0b0c0e;
  background: #f2efe9;
  border-color: #f2efe9;
}

.message-typing .message-stack {
  justify-items: start;
}

.message-typing .message-bubble {
  width: auto;
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
}

.message-bubble p,
.route-card p,
.live-item p,
.result-card p,
.merged-note {
  margin: 0;
}

.message-bubble p {
  font-size: 0.78rem;
}

.message-bubble strong {
  color: var(--text-strong);
  font-size: 0.9em;
}

.message-assistant .message-bubble > p:first-child {
  line-height: 1.22;
}

.message-assistant .message-bubble > p:first-child strong:first-child {
  display: block;
  font-size: 0.96rem;
  line-height: 1.06;
  margin-bottom: 2px;
}

.message-feedback {
  margin-top: 0;
  padding-top: 0;
  display: grid;
  gap: 4px;
}

.message-feedback-form-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.message-feedback-head {
  display: grid;
  gap: 4px;
}

.message-feedback-title,
.message-feedback-label {
  margin: 0;
  color: var(--text-strong);
  font-size: 0.72rem;
  font-weight: 700;
}

.message-feedback-label {
  display: block;
  margin-bottom: 12px;
}

.message-feedback-actions,
.message-feedback-details {
  display: grid;
  gap: 8px;
}

.message-feedback-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.message-feedback-button,
.message-feedback-submit {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-strong);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: none;
}

.message-feedback-button.is-selected {
  border-color: rgba(52, 120, 246, 0.36);
  background: rgba(52, 120, 246, 0.12);
  color: #295dc4;
}

html[data-theme="dark"] .message-feedback-button.is-selected {
  border-color: rgba(123, 167, 255, 0.42);
  background: rgba(123, 167, 255, 0.14);
  color: #c8daff;
}

.message-feedback-button[disabled],
.message-feedback-submit[disabled] {
  opacity: 0.58;
  cursor: default;
}

.message-feedback-button:hover,
.message-feedback-button:focus-visible,
.message-feedback-submit:hover,
.message-feedback-submit:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.message-feedback-button[disabled]:hover,
.message-feedback-submit[disabled]:hover {
  transform: none;
  box-shadow: none;
}

.message-feedback-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.message-feedback-note.is-error {
  color: #b53a2a;
}

html[data-theme="dark"] .message-feedback-note.is-error {
  color: #ff9d8f;
}

.message-feedback-input {
  flex: 1 1 220px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--chat-composer-input-background);
  color: var(--text-strong);
}

.message-feedback-input::placeholder {
  color: var(--muted-soft);
}

.page-footer {
  margin-top: 18px;
  padding: 0 0 24px;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.page-footer-copy,
.page-footer-contact,
.page-footer-made-by {
  margin: 0;
}

.page-footer-signature-wrap {
  display: flex;
  justify-content: center;
}

.page-footer-link {
  color: var(--text-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.nwolf-signature {
  --bg1: #0b0f16;
  --bg2: #121a27;
  --line: rgba(255, 255, 255, 0.14);
  --txt: #eaf2ff;
  --accent: #53b5ff;

  display: inline-grid;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(83, 181, 255, 0.14) 0%, transparent 55%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  color: var(--txt);
  font: 600 13px/1.2 "Montserrat", "Poppins", "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  cursor: pointer;
}

.nwolf-signature::after {
  content: "";
  position: absolute;
  inset: -120% -35%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.14) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: nwolfShine 5.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.nwolf-copy,
.nwolf-brand,
.nwolf-logo,
.nwolf-state {
  position: relative;
  z-index: 1;
}

.nwolf-state {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  white-space: nowrap;
  transition: opacity 240ms ease, transform 240ms ease;
}

.nwolf-copy {
  color: #d9e8ff;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-shadow: 0 0 10px rgba(83, 181, 255, 0.18);
}

.nwolf-state--base {
  opacity: 1;
  transform: translateY(0);
}

.nwolf-state--hover {
  opacity: 0;
  transform: translateY(2px);
  justify-content: center;
}

.nwolf-signature:hover .nwolf-state--base,
.nwolf-signature:focus-visible .nwolf-state--base {
  opacity: 0;
  transform: translateY(-2px);
}

.nwolf-signature:hover .nwolf-state--hover,
.nwolf-signature:focus-visible .nwolf-state--hover {
  opacity: 1;
  transform: translateY(0);
}

.nwolf-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(83, 181, 255, 0.35);
  transform: translateY(-0.5px);
}

.nwolf-logo--hover {
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.nwolf-brand {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nwolf-sep {
  color: rgba(234, 242, 255, 0.75);
  font-weight: 700;
  line-height: 1;
  transform: translateY(-0.5px);
}

@keyframes nwolfShine {
  0%, 78%, 100% { transform: translateX(-100%); }
  88% { transform: translateX(100%); }
}

.typing-indicator {
  width: fit-content;
  min-width: 0;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 999px;
  background: rgba(42, 57, 72, 0.36);
  animation: typing-pulse 1.1s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.14s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes typing-pulse {
  0%,
  80%,
  100% {
    transform: translateY(0) scale(0.9);
    opacity: 0.4;
  }

  40% {
    transform: translateY(-3px) scale(1);
    opacity: 1;
  }
}

.message-label {
  margin: 0;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.56rem;
  font-weight: 800;
}

.message-user .message-label,
.message-user .message-meta {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .message-user .message-label,
html[data-theme="dark"] .message-user .message-meta {
  color: rgba(11, 12, 14, 0.68);
}

.message-meta {
  padding: 0 8px;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
}

.quick-action,
.suggestion-chip,
.result-pill,
.chat-composer button,
.route-card-button,
.live-action,
.route-badge-button {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.quick-action,
.suggestion-chip,
.result-pill {
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--primary-strong);
  font-family: var(--font-chat-display);
  font-size: 0.82rem;
  font-weight: 680;
  letter-spacing: 0.01em;
}

.result-pill {
  min-height: 44px;
  padding: 8px 10px;
  display: inline-grid;
  gap: 2px;
  text-align: left;
}

.result-pill-title {
  display: block;
  color: var(--text-strong);
  font-weight: 700;
  font-size: 0.8rem;
}

.result-pill-meta,
.departure-feed-badge,
.departure-feed,
.chat-departure-headsign,
.departure-headsign,
.live-item p,
.route-card span,
.deep-link,
.merged-note,
.result-card p {
  color: var(--muted);
  font-size: 0.84rem;
}

.quick-action:hover,
.suggestion-chip:hover,
.result-pill:hover,
.route-card-button:hover,
.live-action:hover,
.quick-action:focus-visible,
.suggestion-chip:focus-visible,
.result-pill:focus-visible,
.route-card-button:focus-visible,
.live-action:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quick-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  line-height: 1.2;
}

.quick-action svg {
  flex-shrink: 0;
  transition: color 200ms ease;
}

.quick-action {
  transition: border-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
}

.quick-action.focus-active[data-action="route-search"] {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.quick-action.focus-active[data-action="stop-search"] {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.quick-action.focus-active[data-action="trip-planning"] {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.message-bubble.quick-actions {
  padding: 8px;
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--shell-card-border);
  background: var(--chat-composer-background);
  border-radius: 0 0 32px 32px;
}

.composer-entry-row {
  grid-column: 1 / -1;
  display: block;
  position: relative;
  min-height: 60px;
}

.composer-send svg,
.composer-reset svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.composer-meta-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.composer-at {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  display: grid;
  gap: 5px;
}

.composer-at-label,
.time-filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.composer-at-shell {
  position: relative;
}

.composer-at-display {
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--chat-composer-input-background);
  color: var(--text-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.composer-at-shell.is-active .composer-at-display {
  border: 2px solid rgba(52, 120, 246, 0.56);
  box-shadow:
    0 0 0 2px rgba(52, 120, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.composer-at-shell.is-now .composer-at-display {
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.chat-composer .composer-at-part,
.time-filter .composer-at-part {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-strong);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: none;
}

.chat-composer .composer-at-part:hover,
.chat-composer .composer-at-part:focus-visible,
.time-filter .composer-at-part:hover,
.time-filter .composer-at-part:focus-visible {
  color: var(--primary-strong);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.chat-composer .composer-at-part svg,
.time-filter .composer-at-part svg {
  flex-shrink: 0;
  color: var(--muted);
}

.chat-composer .composer-at-part input,
.time-filter .composer-at-part input {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-strong);
  font: inherit;
  font-weight: 700;
  letter-spacing: -0.02em;
  outline: none;
  box-shadow: none;
}

.composer-at-shell.is-now .composer-at-part,
.composer-at-shell.is-now .composer-at-part input,
.composer-at-shell.is-now .composer-at-part svg {
  color: var(--muted-soft);
}

.composer-at-part.is-auto,
.composer-at-part.is-auto input,
.composer-at-part.is-auto svg {
  color: var(--muted-soft);
}

#chat-at-date-display,
#details-at-date-display {
  width: 5.2ch;
}

#chat-at-time-display,
#details-at-time-display {
  width: 4.2ch;
}

.composer-at-divider {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.time-filter-input {
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--chat-composer-input-background);
  color: var(--text-strong);
}

.chat-composer .composer-at-chip,
.time-filter .composer-at-chip {
  min-height: 36px;
  height: 36px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft-pill-background);
  color: var(--muted);
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
  align-self: flex-start;
  margin-top: 28px;
  flex: 0 0 auto;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

.time-filter .composer-at-chip {
  margin-top: 0;
  align-self: center;
}

.chat-composer .composer-at-chip.is-active {
  border-color: rgba(52, 120, 246, 0.3);
  background: rgba(52, 120, 246, 0.1);
  color: #295dc4;
}

.chat-composer .composer-at-chip:hover,
.chat-composer .composer-at-chip:focus-visible,
.time-filter .composer-at-chip:hover,
.time-filter .composer-at-chip:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-strong);
  box-shadow: none;
}

.chat-composer .composer-at-chip[disabled],
.time-filter .composer-at-chip[disabled] {
  opacity: 1;
  cursor: default;
  transform: none;
}

.composer-at-hint {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

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

html[data-theme="dark"] .composer-at-shell.is-active .composer-at-display {
  border-color: rgba(123, 167, 255, 0.82);
  box-shadow:
    0 0 0 2px rgba(123, 167, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .chat-composer .composer-at-chip.is-active {
  border-color: rgba(123, 167, 255, 0.36);
  background: rgba(123, 167, 255, 0.12);
  color: #b8ceff;
}

html[data-theme="dark"] .time-filter .composer-at-chip.is-active {
  border-color: rgba(123, 167, 255, 0.36);
  background: rgba(123, 167, 255, 0.12);
  color: #b8ceff;
}

.composer-input-wrap {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--chat-composer-input-background);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.composer-entry-row .composer-input-wrap {
  min-width: 0;
  min-height: 60px;
  padding-right: 144px;
  overflow: hidden;
  transition: padding-right 220ms ease;
}

.composer-entry-row:not(.has-send) .composer-input-wrap {
  padding-right: 56px;
}

.composer-entry-row .composer-reset {
  width: 26px;
  min-width: 26px;
  height: 26px;
  position: absolute;
  right: 84px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-soft);
  box-shadow: none;
  min-height: 0;
  transition: right 220ms ease, color 180ms ease, opacity 180ms ease;
}

.composer-entry-row:not(.has-send) .composer-reset {
  right: 20px;
}

.composer-entry-row .composer-reset svg {
  width: 20px;
  height: 20px;
}

.composer-entry-row .composer-send {
  width: 56px;
  min-width: 56px;
  min-height: 46px;
  height: 46px;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: center;
  box-shadow: none;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0ms linear 180ms;
}

.composer-entry-row .composer-send svg {
  width: 19px;
  height: 19px;
}

.composer-entry-row .composer-send.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 0ms linear 0ms;
}

.composer-entry-row .composer-send:not(.is-visible) {
  transform: translateY(-50%) scale(0.82);
}

.composer-entry-row .composer-reset:hover,
.composer-entry-row .composer-reset:focus-visible {
  transform: translateY(-50%);
  color: var(--muted);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.composer-input-wrap:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.composer-mode-icon {
  display: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  transition: color 200ms ease;
}

.composer-mode-icon svg {
  width: 20px;
  height: 20px;
}

.composer-input-wrap[data-focus-mode] .composer-mode-icon {
  display: flex;
  align-items: center;
}

/* Focus mode colors */
.composer-input-wrap[data-focus-mode="route"] {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.composer-input-wrap[data-focus-mode="route"] .composer-mode-icon { color: #3b82f6; }

.composer-input-wrap[data-focus-mode="stop"] {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.composer-input-wrap[data-focus-mode="stop"] .composer-mode-icon { color: #10b981; }

.composer-input-wrap[data-focus-mode="trip"] {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.composer-input-wrap[data-focus-mode="trip"] .composer-mode-icon { color: #f59e0b; }

.chat-composer input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 600;
}

.chat-composer input::placeholder {
  color: var(--muted-soft);
}

.chat-composer button,
.rail-primary-action {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--primary-strong);
  border-radius: var(--radius-pill);
  background: var(--primary-strong);
  color: #ffffff;
  font-weight: 700;
}

html[data-theme="dark"] .chat-composer button,
html[data-theme="dark"] .rail-primary-action {
  color: #0b0c0e;
  background: #f2efe9;
  border-color: #f2efe9;
}

.chat-composer button:hover,
.chat-composer button:focus-visible,
.rail-primary-action:hover,
.rail-primary-action:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.time-filter-panel {
  display: grid;
  gap: 14px;
}

.time-filter {
  display: grid;
  gap: 10px;
}

.time-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.time-filter .drawer-at {
  min-width: 0;
}

.time-filter .composer-at-shell {
  min-width: 0;
}

.time-filter .composer-at-display {
  min-height: 44px;
}

.time-filter-submit {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--primary-strong);
  border-radius: var(--radius-pill);
  background: var(--primary-strong);
  color: #ffffff;
  font-weight: 700;
}

html[data-theme="dark"] .time-filter-submit {
  color: #0b0c0e;
  background: #f2efe9;
  border-color: #f2efe9;
}

.time-filter-submit:hover,
.time-filter-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.time-filter-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.composer-reset {
  width: 52px;
  min-width: 52px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.composer-reset svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.insight-rail {
  grid-column: 3;
  display: grid;
  gap: 12px;
  position: sticky;
  top: 16px;
  width: 100%;
  max-width: 280px;
}

.rail-card {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.rail-card h2,
.section-head h2,
.empty-state h2,
.empty-state h3,
.result-card h3 {
  margin: 0;
  color: var(--text-strong);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.rail-card h2 {
  font-size: 1rem;
}

.rail-card-highlight {
  border-left: 3px solid var(--secondary);
}

.weather-card {
  display: grid;
  gap: 0;
  padding: 18px 18px 14px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.5), transparent 42%),
    linear-gradient(180deg, var(--surface-strong), var(--surface-muted));
  border: 1px solid var(--shell-card-border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.topbar-weather-card {
  width: 100%;
}

html[data-theme="dark"] .weather-card {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(19, 22, 27, 0.98), rgba(13, 15, 19, 0.98));
  border-color: rgba(255, 255, 255, 0.08);
}

.weather-card-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.weather-card-title {
  margin: 0;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  font-weight: 700;
}

.weather-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.weather-hero-copy {
  display: grid;
  gap: 3px;
}

.weather-temp {
  display: block;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.weather-summary-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.weather-icon,
.weather-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.weather-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

.weather-chip-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.weather-icon svg,
.weather-chip-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weather-icon-sun {
  color: #b67614;
}

.weather-icon-cloud {
  color: #7a8fa3;
}

.weather-icon-rain {
  color: #2f6a96;
}

html[data-theme="dark"] .weather-icon-sun {
  color: #ffd36c;
}

html[data-theme="dark"] .weather-icon-cloud {
  color: #c6d4e3;
}

html[data-theme="dark"] .weather-icon-rain {
  color: #8fc8ff;
}

.weather-strip {
  display: flex;
  gap: 10px;
  padding-top: 14px;
}

.weather-chip {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  min-height: 108px;
  padding: 12px 8px 10px;
  text-align: center;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.weather-chip + .weather-chip {
  padding-left: 0;
}

.weather-chip div {
  display: grid;
  gap: 4px;
  min-width: 0;
  justify-items: center;
}

.weather-chip strong,
.weather-chip p {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.weather-chip strong {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.weather-chip p {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
}

html[data-theme="dark"] .weather-chip {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.thread-anchor {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.thread-anchor::before,
.thread-anchor::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.thread-anchor span {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.tip-list,
.capability-list,
.chat-departure-list,
.departure-list,
.route-result-list,
.result-grid,
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.route-result-list,
.departure-list,
.chat-departure-list,
.result-grid,
.feature-grid {
  gap: 8px;
}

.capability-list,
.tip-list {
  gap: 12px;
}

.capability-list li,
.tip-list li {
  display: block;
}

.capability-list li {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--muted);
  line-height: 1.55;
}

.live-item {
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.compact-live-item {
  padding: 12px 14px;
}

.compact-list {
  gap: 10px;
}

.live-action,
.route-card-button {
  width: 100%;
  border: 1px solid var(--line);
  text-align: left;
}

.route-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vehicle-icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.live-item strong,
.route-card strong,
.fact-row strong,
.departure-row strong,
.chat-departure-item strong {
  display: block;
  font-family: var(--font-display);
}

.section {
  padding: 24px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.24rem, 2.6vw, 1.62rem);
}

.section-badge {
  min-height: 38px;
}

.departure-row,
.chat-departure-item {
  padding: 9px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.chat-departure-item {
  min-height: 0;
}

.chat-departure-item strong {
  font-size: 0.82rem;
  line-height: 1;
}

.chat-departure-headsign {
  font-size: 0.78rem;
  line-height: 1.16;
}

/* Chat departure lists — flat separator style */
.message-bubble .chat-departure-list {
  gap: 0;
}

.message-bubble .chat-departure-item {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 10px 4px;
}

.message-bubble .chat-departure-item + .chat-departure-item {
  border-top: 1px solid var(--line) !important;
}

.message-bubble .chat-departure-headsign {
  font-size: 0.76rem;
  color: var(--muted);
}

.message-bubble .chat-departure-item strong {
  font-size: 0.84rem;
  color: var(--text-strong);
}

/* Journey planner result cards */
.journey-option {
  padding: 12px 13px !important;
  gap: 8px !important;
  margin-top: 6px;
}

.journey-title-icon {
  vertical-align: -2px;
  opacity: 0.7;
  margin-right: 2px;
}

.journey-option:last-child {
  margin-bottom: 4px;
}

.journey-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    var(--surface-strong);
}

html[data-theme="dark"] .journey-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    var(--surface-strong);
}

.journey-card-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.journey-card-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--text-strong);
}

.journey-card-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.journey-card-kicker,
.journey-card-subline,
.journey-card-stops {
  margin: 0;
}

.journey-card-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.journey-card-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.journey-card-time {
  font-size: 1rem;
  line-height: 1;
  color: var(--text-strong);
}

.journey-card-duration {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--secondary-strong);
  white-space: nowrap;
}

.journey-card-subline {
  font-size: 0.74rem;
  color: var(--muted);
}

.journey-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.journey-card-stops {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  font-size: 0.72rem;
  color: var(--muted-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.journey-card-stops-arrow {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--muted-soft);
}

.journey-toggle {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-strong);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: none;
}

.journey-toggle svg {
  transition: transform 160ms ease;
}

.journey-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.journey-card-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.journey-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.journey-detail-item {
  display: grid;
  grid-template-columns: 54px 24px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
}

.journey-detail-item + .journey-detail-item {
  border-top: 1px solid var(--line);
}

.journey-detail-time {
  display: grid;
  gap: 3px;
  text-align: left;
}

.journey-detail-time strong,
.journey-detail-time span {
  font-size: 0.74rem;
  line-height: 1.1;
}

.journey-detail-time span {
  color: var(--muted-soft);
}

.journey-detail-rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.journey-detail-rail::after {
  content: "";
  position: absolute;
  top: 24px;
  bottom: -10px;
  width: 2px;
  border-radius: 999px;
  background: var(--line-strong);
}

.journey-detail-item:last-child .journey-detail-rail::after {
  display: none;
}

.journey-detail-rail-walk::after {
  background:
    repeating-linear-gradient(
      to bottom,
      var(--line-strong) 0 5px,
      transparent 5px 10px
    );
}

.journey-detail-node {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-strong);
  border: 1px solid var(--line);
}

.journey-detail-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.journey-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.journey-detail-line {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.journey-detail-line strong,
.journey-detail-mode {
  font-size: 0.84rem;
  color: var(--text-strong);
}

.journey-detail-line strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-detail-duration,
.journey-detail-meta {
  font-size: 0.72rem;
  color: var(--muted-soft);
}

.journey-detail-route {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.3;
}

/* Flat pick lists (stops, directions) */
.stop-pick-list {
  display: grid;
  gap: 0;
  margin-top: 6px;
}

.stop-pick-item {
  display: block;
  width: 100%;
  padding: 11px 4px;
  border: none;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.stop-pick-item:last-child {
  padding-bottom: 4px;
}

.stop-pick-item:hover,
.stop-pick-item:focus-visible {
  color: var(--text-strong);
}

.stop-pick-item:active {
  opacity: 0.7;
}

.stop-pick-item.route-card-button:hover,
.stop-pick-item.route-card-button:focus-visible {
  transform: none;
  border-color: transparent;
  box-shadow: none;
  color: var(--text-strong);
}

.route-badge {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--surface-contrast);
  color: var(--text-strong);
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1;
  border: 1px solid var(--line);
}

.route-badge-compact {
  width: auto;
  min-width: 34px;
  height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 0.72rem;
}

.journey-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.72rem;
  font-weight: 700;
}

.journey-chip-muted {
  color: var(--muted);
}

.route-badge-button {
  border: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.route-badge-button:hover,
.route-badge-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.route-badge-bus {
  background: #dde7f1;
  color: #1d3550;
}

.route-badge-tram {
  background: #f3df99;
  color: #523c03;
}

.route-badge-trolley {
  background: #d7eadf;
  color: #1c4a2a;
}

.route-badge-alt {
  background: #dfe6ee;
  color: #223447;
}

.route-badge-primary {
  background: #1d232c;
  color: #ffffff;
}

html[data-theme="dark"] .route-badge {
  background: #171a1f;
  color: #f3efe8;
}

html[data-theme="dark"] .route-badge-bus {
  background: #1e2c3a;
  color: #cce3ff;
}

html[data-theme="dark"] .route-badge-tram {
  background: #40361a;
  color: #ffe28f;
}

html[data-theme="dark"] .route-badge-trolley {
  background: #1b3324;
  color: #bfe9cb;
}

html[data-theme="dark"] .route-badge-alt {
  background: #212832;
  color: #dce6f2;
}

html[data-theme="dark"] .route-badge-primary {
  background: #f2efe9;
  color: #0b0c0e;
}

.result-grid,
.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.result-card,
.feature-card,
.empty-state,
.route-card {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.result-card:hover {
  transform: translateY(-1px);
}

.result-card h3 {
  font-size: 1rem;
}

.result-meta {
  margin-bottom: 2px;
}

.route-card {
  gap: 7px;
}

.route-card strong {
  color: var(--text-strong);
}

.fact-row {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.compact {
  padding-top: 18px;
  padding-bottom: 18px;
}

.offline-shell {
  grid-template-columns: 1fr;
}

@media (max-width: 1120px) {
  .chat-shell,
  .details-shell,
  .hero-panel,
  .stop-hero,
  .result-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .insight-rail {
    position: static;
    grid-column: auto;
    max-width: none;
  }

  .chat-column {
    position: static;
    grid-column: auto;
    max-width: none;
  }
}

@media (max-width: 1120px) {
  body.page-variant-home .shell-sidebar-panel {
    background:
      linear-gradient(180deg, rgba(248, 250, 253, 0.68), rgba(238, 242, 247, 0.58));
    border-right: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow:
      24px 0 48px rgba(11, 18, 24, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
  }

  body.page-variant-home .app-stage.page-variant-home,
  body.page-variant-home .app-stage.page-variant-home > .page-content,
  body.page-variant-home .app-stage.page-variant-home > .chat-shell,
  body.page-variant-home .app-stage.page-variant-home > .page-content > .chat-shell {
    grid-column: 1;
  }

  body.page-variant-home .shell-menu-button {
    display: inline-flex;
  }

  body.page-variant-home .shell-sidebar {
    display: block;
  }

  body.page-variant-home {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.page-variant-home .app-shell {
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  body.page-variant-home .app-stage,
  body.page-variant-home .app-stage.page-variant-home {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
  }

  body.page-variant-home .page-content {
    height: 100%;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    grid-column: 1;
  }

  body.page-variant-home .topbar {
    position: static;
    top: auto;
    gap: 16px;
  }

  body.page-variant-home .page-footer {
    margin-top: auto;
    padding-bottom: 0;
  }

  body.page-variant-home .page-footer.page-footer--sidebar {
    margin-top: 0;
  }

  body.page-variant-home .topbar:not(.topbar--sidebar),
  body.page-variant-home .page-footer:not(.page-footer--sidebar) {
    display: none;
  }

  body.page-variant-home .chat-shell {
    height: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-variant-home .chat-column {
    position: relative;
    top: auto;
    height: 100%;
    max-width: none;
    margin: 0;
  }

  body.page-variant-home .chat-frame {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  body.page-variant-home .chat-thread {
    padding:
      calc(env(safe-area-inset-top, 0px) + 88px)
      clamp(14px, 3vw, 24px)
      14px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.page-variant-home .chat-composer {
    padding:
      14px
      clamp(14px, 3vw, 24px)
      calc(env(safe-area-inset-bottom, 0px) + 18px);
    border-radius: 0;
  }

  .app-shell {
    width: min(100% - 24px, 1440px);
    padding-top: 12px;
  }

  .app-stage {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topbar {
    position: static;
  }
}

@media (max-width: 1120px) {
  html[data-theme="dark"] body.page-variant-home .shell-sidebar-panel {
    background:
      linear-gradient(180deg, rgba(17, 21, 27, 0.72), rgba(12, 16, 21, 0.66));
    border-right-color: rgba(255, 255, 255, 0.12);
    box-shadow:
      24px 0 48px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  html[data-theme="dark"] body.page-variant-home .shell-menu-button {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
      0 10px 24px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(14px) saturate(1.15) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.15) !important;
  }

  html[data-theme="dark"] body.page-variant-home .details-drawer-close {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: rgba(255, 255, 255, 0.92);
  }
}

@media (max-width: 720px) {
  .details-drawer-shell {
    position: relative;
    grid-template-rows: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .weather-card-head,
  .weather-hero {
    align-items: flex-start;
  }

  .theme-toggle {
    order: -1;
  }

  .page-content {
    padding-bottom: 28px;
  }

  .chat-frame {
    min-height: 0;
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .chat-thread {
    padding: 12px 12px 10px;
  }

  .chat-composer {
    grid-template-columns: 1fr auto auto;
    padding: 12px 12px 12px;
  }

  body.page-variant-home .chat-thread {
    padding:
      calc(env(safe-area-inset-top, 0px) + 84px)
      12px
      12px;
  }

  body.page-variant-home .chat-composer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 12px calc(env(safe-area-inset-bottom, 0px) + 14px);
  }

  body.page-variant-home .chat-composer .composer-meta-row,
  body.page-variant-home .chat-composer .composer-at-hint {
    grid-column: 1 / -1;
  }

  body.page-variant-home .chat-composer .composer-meta-row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
  }

  body.page-variant-home .chat-composer .composer-at {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.page-variant-home .chat-composer .composer-at-display {
    min-height: 44px;
    padding: 0 12px;
    gap: 10px;
  }

  body.page-variant-home .chat-composer .composer-at-label {
    font-size: 0.68rem;
  }

  body.page-variant-home .chat-composer .composer-entry-row {
    grid-column: 1 / -1;
    display: block;
    position: relative;
    min-height: 66px;
  }

  body.page-variant-home .chat-composer .composer-reset {
    width: 26px;
    min-width: 26px;
    height: 26px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted-soft);
    box-shadow: none;
    min-height: 0;
    transition: right 220ms ease, color 180ms ease, opacity 180ms ease;
  }

  body.page-variant-home .chat-composer .composer-reset svg {
    width: 20px;
    height: 20px;
  }

  body.page-variant-home .chat-composer .composer-entry-row.has-send .composer-reset {
    right: 78px;
  }

  body.page-variant-home .chat-composer .composer-send {
    width: 64px;
    min-width: 64px;
    height: 58px;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform-origin: center;
    box-shadow: none;
    transition:
      opacity 180ms ease,
      transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
      visibility 0ms linear 180ms;
  }

  body.page-variant-home .chat-composer .composer-send svg {
    width: 22px;
    height: 22px;
  }

  body.page-variant-home .chat-composer .composer-send.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
    transition:
      opacity 180ms ease,
      transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
      visibility 0ms linear 0ms;
  }

  body.page-variant-home .chat-composer .composer-send:not(.is-visible) {
    transform: translateY(-50%) scale(0.82);
  }

  body.page-variant-home .chat-composer .composer-input-wrap {
    min-height: 66px;
    padding-right: 140px;
    transition: padding-right 220ms ease;
    overflow: hidden;
  }

  body.page-variant-home .chat-composer .composer-entry-row:not(.has-send) .composer-input-wrap {
    padding-right: 48px;
  }

  .composer-meta-row,
  .time-filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .composer-at,
  .time-filter-input,
  .time-filter-submit {
    width: 100%;
  }

  .composer-at-display {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .chat-composer > button:not(.composer-reset):not(.composer-at-chip),
  .quick-action,
  .suggestion-chip,
  .result-pill {
    width: 100%;
  }

  .message-stack {
    max-width: 100%;
  }

  .message-bubble {
    padding: 12px 12px;
    border-radius: 14px;
    font-size: 0.98rem;
  }

  .message-bubble-feedback {
    max-width: 100%;
    width: 100%;
  }

  .message-feedback-wrap .message-stack {
    width: 100%;
    max-width: 100%;
  }

  .message-feedback-form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .message-feedback-button,
  .message-feedback-submit {
    width: 100%;
  }

  .page-footer {
    justify-items: center;
  }

  .nwolf-signature {
    padding: 9px 12px;
    font-size: 12px;
  }

  .nwolf-state {
    gap: 8px;
  }

  .nwolf-logo {
    width: 20px;
    height: 20px;
  }

  .chat-composer input {
    min-height: 56px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    font-size: 16px;
  }

  .chat-composer button,
  .rail-primary-action,
  .quick-action,
  .suggestion-chip {
    min-height: 56px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
  }

  .chat-composer .composer-at-chip {
    width: auto;
    min-width: 84px;
    min-height: 44px;
    height: 44px;
    justify-self: start;
    margin-top: 26px;
    align-self: flex-start;
  }

  body.page-variant-home .chat-composer input {
    font-size: 0.88rem;
  }

  body.page-variant-home .chat-composer input::placeholder {
    font-size: 0.78rem;
    letter-spacing: -0.015em;
  }

  body.page-variant-home .chat-composer .composer-reset:hover,
  body.page-variant-home .chat-composer .composer-reset:focus-visible {
    transform: translateY(-50%);
    color: var(--muted);
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.page-variant-home .chat-composer .composer-input-wrap {
    padding: 0 12px;
  }

  .time-filter .time-filter-row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .time-filter .drawer-at {
    flex: 1 1 220px;
    min-width: 0;
  }

  .time-filter .composer-at-display {
    min-height: 44px;
    padding: 0 12px;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .time-filter .composer-at-chip {
    width: auto;
    min-width: 84px;
    min-height: 44px;
    height: 44px;
    margin-top: 0;
    align-self: center;
    flex: 0 0 auto;
  }

  .time-filter-submit {
    width: 100%;
    flex: 1 0 100%;
  }

  .shell-menu-button,
  .shell-sidebar-close,
  .details-drawer-close {
    width: 52px;
    height: 52px;
  }

  .shell-sidebar {
    width: min(100vw, 392px);
  }

  .details-drawer {
    width: 100vw;
  }

  .details-drawer-head {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 20px);
    right: 20px;
    padding: 0;
    z-index: 3;
  }

  .details-drawer-body {
    padding:
      calc(env(safe-area-inset-top, 0px) + 56px)
      14px
      calc(env(safe-area-inset-bottom, 0px) + 22px);
  }

  .details-drawer-close {
    width: 36px;
    height: 36px;
    min-height: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: var(--text);
  }

  .drawer-details-shell {
    padding-top: 0;
  }

  .drawer-page-intro {
    margin-top: 0;
  }

  .drawer-page-intro .section-title {
    font-size: 1.18rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  .drawer-page-intro .section-title-icon {
    width: 24px;
    height: 24px;
    vertical-align: -3px;
  }

  body.page-variant-home .details-drawer .details-drawer-close,
  html[data-theme="dark"] body.page-variant-home .details-drawer .details-drawer-close {
    all: unset;
    position: relative;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.page-variant-home .details-drawer .details-drawer-close svg,
  html[data-theme="dark"] body.page-variant-home .details-drawer .details-drawer-close svg {
    width: 28px;
    height: 28px;
    display: block;
  }

  body.page-variant-home .shell-sidebar .shell-sidebar-close,
  html[data-theme="dark"] body.page-variant-home .shell-sidebar .shell-sidebar-close {
    all: unset;
    position: relative;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.page-variant-home .shell-sidebar .shell-sidebar-close svg,
  html[data-theme="dark"] body.page-variant-home .shell-sidebar .shell-sidebar-close svg {
    width: 28px;
    height: 28px;
    display: block;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .departure-row,
  .chat-departure-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 8px 9px;
  }

  .route-badge {
    width: 34px;
    height: 34px;
    font-size: 0.74rem;
  }

  .journey-option {
    padding: 12px 12px 6px !important;
  }

  .journey-card-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .journey-toggle {
    justify-self: start;
    margin-left: 50px;
  }

  .journey-detail-item {
    grid-template-columns: 48px 22px minmax(0, 1fr);
    gap: 8px;
  }

  .message-bubble .chat-departure-item {
    padding: 8px 2px;
  }
}
