:root {
  color-scheme: light;
  --navy-950: #061426;
  --navy-900: #071b33;
  --navy-800: #0b2b4f;
  --navy-700: #15436f;
  --red-950: #460710;
  --red-900: #65101b;
  --red-800: #861826;
  --red-700: #a51f2d;
  --red-600: #c92b3a;
  --red-500: #dc3b49;
  --red-100: #fbe7e9;
  --red-50: #fff7f7;
  --gold: #d4ae62;
  --cream: #f6f2e9;
  --paper: #fffdf9;
  --white: #ffffff;
  --ink: #142235;
  --muted: #5d6877;
  --line: #d9dee5;
  --line-dark: rgba(255, 255, 255, 0.2);
  --success: #16734c;
  --success-soft: #e3f3eb;
  --warning: #9a5800;
  --warning-soft: #fff0d2;
  --shadow: 0 18px 40px rgba(70, 7, 16, 0.1);
  --radius: 14px;
  --max: 1180px;
}

.updates-shortcut {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding: 18px 22px;
  margin: 0 0 24px;
  border: 1px solid var(--red-800);
  border-radius: var(--radius);
  background: var(--red-50);
  color: var(--red-900);
}
.updates-list { display: grid; gap: 24px; margin-top: 24px; }
.update-entry { padding: clamp(20px, 4vw, 32px); scroll-margin-top: 190px; }
.update-entry.is-highlighted { outline: 3px solid var(--red-700); outline-offset: 3px; }
.update-entry h2 { margin: 16px 0; }
.update-entry p { max-width: 80ch; }
.update-meta, .update-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.update-meta { font-size: 0.875rem; color: var(--muted); }
.update-links { margin-top: 20px; }
.update-links a { color: var(--red-900); text-decoration: underline; padding: 10px 0; overflow-wrap: anywhere; }

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(165, 31, 45, 0.045) 1px, transparent 1px),
    var(--cream);
  background-size: 100% 42px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  top: -100px;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy-900);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 1rem;
}

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

[hidden] {
  display: none !important;
}

.app-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: var(--red-950);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(70, 7, 16, 0.24);
}

.app-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--red-500) 0 72%, var(--paper) 72% 87%, var(--navy-700) 87%);
}

.install-banner {
  position: relative;
  z-index: 90;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  width: min(calc(100% - 2rem), var(--max));
  margin: 1rem auto 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(101, 16, 27, 0.2);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(70, 7, 16, 0.12);
}

.install-banner img,
.install-dialog img {
  border-radius: 12px;
}

.install-banner-copy {
  display: grid;
  min-width: 0;
}

.install-banner-copy strong {
  color: var(--navy-900);
  font-size: 1.02rem;
  line-height: 1.25;
}

.install-banner-copy span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.install-banner-button {
  min-width: 118px;
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
}

.install-dismiss,
.install-dialog-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.install-dismiss {
  position: absolute;
  top: -0.45rem;
  right: -0.35rem;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.install-dialog {
  width: min(calc(100% - 2rem), 540px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(6, 20, 38, 0.3);
}

.install-dialog::backdrop {
  background: rgba(6, 20, 38, 0.72);
}

.install-dialog-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.install-dialog-heading h2 {
  margin: 0.15rem 0 0;
  color: var(--navy-900);
  font-size: 1.3rem;
  line-height: 1.2;
}

.install-steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 1.35rem 1.35rem 0;
  list-style: none;
}

.install-steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 0.85rem;
}

.install-steps li > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--red-100);
  color: var(--red-900);
  font-weight: 800;
}

.install-steps p {
  margin: 0;
}

.install-dialog-note {
  margin: 1.25rem 1.35rem 0;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: var(--success-soft);
  color: #0e5a3a;
}

.install-dialog-done {
  width: calc(100% - 2.7rem);
  margin: 1.25rem 1.35rem 1.35rem;
}

.brand-wrap,
.app-nav,
main,
.app-footer {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.brand-wrap {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.45rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  line-height: 1.05;
}

.brand small {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

.icon-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.app-nav {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.nav-tab {
  position: relative;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 0.35rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
}

.nav-tab svg {
  width: 18px;
  height: 18px;
}

.nav-tab::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: 0;
  left: 18%;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: transparent;
}

.nav-tab:hover,
.nav-tab:focus-visible,
.nav-tab.is-active {
  color: var(--white);
}

.nav-tab.is-active::after {
  background: var(--gold);
}

.network-banner {
  position: sticky;
  z-index: 90;
  top: 139px;
  padding: 0.65rem 1rem;
  background: var(--warning-soft);
  color: #6b3c00;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

main {
  min-height: 70vh;
  padding: 2rem 0 4rem;
}

.view {
  animation: view-in 220ms ease-out;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy-900);
  line-height: 1.14;
}

h1 {
  max-width: 850px;
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

p {
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 0.45rem;
  color: var(--red-700);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.critical-banner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  overflow: hidden;
  padding: 1.4rem 1.5rem;
  border: 1px solid #8f1824;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #aa1f2c, #c72c3a 62%, #941925);
  color: var(--white);
  box-shadow: 0 15px 34px rgba(170, 31, 44, 0.22);
}

.critical-banner::after {
  content: "★";
  position: absolute;
  right: 24%;
  color: rgba(255, 255, 255, 0.08);
  font-size: 8rem;
  line-height: 1;
  transform: rotate(8deg);
}

.critical-banner h1,
.critical-banner p {
  position: relative;
  z-index: 1;
  color: var(--white);
}

.critical-banner h1 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.critical-banner p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
}

.critical-banner .eyebrow {
  color: #ffe9b6;
}

.notification-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #a51f2d;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 9px 24px rgba(70, 7, 16, 0.08);
}

.notification-card h2,
.notification-card p {
  margin-bottom: 0;
}

.notification-card h2 {
  font-size: 1.2rem;
}

.notification-card .eyebrow {
  margin-bottom: 0.25rem;
}

.notification-card #notificationStatus {
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.notification-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--red-100);
  color: var(--red-800);
}

.notification-icon svg {
  width: 23px;
  height: 23px;
}

.notification-button {
  background: var(--red-700);
  color: var(--white);
  white-space: nowrap;
}

.notification-button:hover {
  background: var(--red-800);
}

.notification-button.is-enabled {
  background: var(--success);
}

.notification-button:disabled {
  cursor: default;
  opacity: 0.88;
  transform: none;
}

.critical-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 900;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

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

.button:focus-visible,
.nav-tab:focus-visible,
.day-button:focus-visible,
.map-button:focus-visible,
.filter-chip:focus-visible,
.text-link:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(201, 43, 58, 0.34);
  outline-offset: 2px;
}

.button svg {
  width: 17px;
  height: 17px;
}

.button-primary {
  background: var(--red-800);
  color: var(--white);
}

.button-primary:hover {
  background: var(--red-700);
}

.button-outline {
  border-color: #b9c2ce;
  background: var(--white);
  color: var(--navy-900);
}

.button-outline:hover {
  border-color: var(--red-700);
  background: var(--red-50);
}

.button-light {
  position: relative;
  z-index: 2;
  background: var(--white);
  color: var(--red-700);
  white-space: nowrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.status-card,
.panel,
.airport-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 9px 24px rgba(6, 20, 38, 0.045);
}

.status-card {
  min-height: 215px;
  padding: 1.25rem;
}

.navy-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-color: var(--red-950);
  background:
    radial-gradient(circle at 100% 0, rgba(212, 174, 98, 0.18), transparent 43%),
    linear-gradient(145deg, var(--red-900), var(--red-950));
  color: var(--white);
}

.navy-card .eyebrow {
  color: var(--gold);
}

.navy-card p {
  margin-bottom: 0.55rem;
  color: rgba(255, 255, 255, 0.65);
}

.countdown {
  color: var(--white);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.83rem;
  font-weight: 750;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f3c86f;
  box-shadow: 0 0 0 4px rgba(243, 200, 111, 0.12);
}

.card-heading-row,
.panel-heading,
.route-title-row,
.split-heading,
.schedule-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.weather-icon {
  color: #e59b1c;
  font-size: 2rem;
}

.forecast-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.65rem 0 0.8rem;
}

.forecast-row > div {
  display: flex;
  flex-direction: column;
  padding: 0.7rem;
  border-left: 3px solid #e59b1c;
  background: #fff8e9;
}

.forecast-row strong {
  color: var(--navy-900);
  font-size: 1.65rem;
  line-height: 1;
}

.forecast-row span {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 700;
}

.fine-print {
  margin-bottom: 0.5rem;
  color: #737d8a;
  font-size: 0.79rem;
  line-height: 1.45;
}

.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red-700);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.closure-card {
  border-top: 4px solid var(--red-600);
}

.closure-card h2 {
  font-size: 1.5rem;
}

.section-heading {
  margin: 2.25rem 0 1rem;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.route-timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-timeline::before {
  content: "";
  position: absolute;
  top: 37px;
  bottom: 37px;
  left: 27px;
  width: 2px;
  background: linear-gradient(var(--red-500), var(--red-900));
}

.route-stop {
  position: relative;
  display: grid;
  grid-template-columns: 56px 130px minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  margin-bottom: 0.65rem;
  padding: 1rem 1.1rem 1rem 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.9);
}

.route-stop-primary {
  border-color: #e1afb4;
  background: #fff8f7;
}

.route-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  justify-self: center;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--red-800);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 850;
  box-shadow: 0 0 0 1px var(--red-800);
}

.route-stop-primary .route-number {
  background: var(--red-600);
  box-shadow: 0 0 0 1px var(--red-600);
}

.route-time {
  padding-top: 0.35rem;
  color: var(--navy-900);
  font-size: 0.9rem;
  font-weight: 850;
}

.route-content h3,
.route-content p {
  margin-bottom: 0.35rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1;
}

.pill-red {
  background: var(--red-100);
  color: var(--red-700);
}

.two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.planning-grid {
  margin-top: 2rem;
}

.panel {
  padding: 1.35rem;
}

.panel-heading h2,
.panel-heading p {
  margin-bottom: 0;
}

.progress-label,
.save-state {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.progress-track {
  width: 100%;
  height: 6px;
  margin: 1rem 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eaf0;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red-600), var(--red-900));
  transition: width 220ms ease;
}

.checklist {
  display: grid;
  gap: 0.4rem;
}

.checklist label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding: 0.45rem 0;
  color: var(--ink);
  cursor: pointer;
}

.checklist input {
  width: 19px;
  height: 19px;
  margin-top: 0.15rem;
  accent-color: var(--red-700);
}

.checklist input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}

.field-grid label,
.dimension-inputs label {
  color: var(--navy-900);
  font-size: 0.78rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 44px;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #bcc5d0;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

input::placeholder {
  color: #949ca7;
}

.lock-note {
  margin-top: 1rem;
}

.source-strip {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--red-50);
}

.source-strip > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.55rem;
  margin-right: auto;
}

.source-strip strong {
  color: var(--navy-900);
}

.source-strip small {
  grid-column: 2;
  color: var(--muted);
}

.source-strip a {
  color: var(--red-700);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.source-strip a:hover {
  text-decoration: underline;
}

.verified-mark {
  display: grid;
  width: 23px;
  height: 23px;
  grid-row: span 2;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 900;
}

.page-intro {
  margin-bottom: 1.75rem;
  padding: 0.35rem 0 1.4rem;
  border-bottom: 1px solid var(--line);
}

.page-intro h1 {
  margin-bottom: 0.55rem;
}

.page-intro > p:last-child,
.page-intro > div > p:last-child {
  max-width: 820px;
  margin-bottom: 0;
  font-size: 1.05rem;
}

.entry-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.ticket-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid #c9d5e2;
  border-left: 5px solid var(--gold);
  background: #f7f9fb;
}

.ticket-note > div {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.ticket-note > div > span {
  color: var(--gold);
  font-size: 1.25rem;
}

.ticket-note p {
  margin: 0;
  font-size: 0.9rem;
}

.ticket-note strong {
  color: var(--navy-900);
}

.entry-flow article {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 1.1rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.entry-flow article:first-child {
  border-top: 4px solid var(--red-600);
}

.entry-flow article:last-child {
  border-top: 4px solid var(--gold);
}

.entry-flow article > span {
  display: block;
  margin-bottom: 2rem;
  color: #aeb7c1;
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: -0.04em;
}

.entry-flow article:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 2;
  top: 21px;
  right: -11px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--red-900);
  color: var(--white);
  font-size: 0.72rem;
}

.entry-flow h2 {
  font-size: 1.12rem;
}

.entry-flow p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.bag-checker,
.limits-panel {
  min-height: 430px;
}

.bag-checker > p:nth-of-type(2) {
  margin-bottom: 1.2rem;
}

.bag-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.bag-type label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
}

.bag-type input {
  width: 17px;
  min-height: 17px;
  margin: 0;
  accent-color: var(--red-700);
}

.dimension-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: end;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.dimension-inputs > span {
  padding-bottom: 0.7rem;
  color: var(--muted);
}

.bag-result {
  margin-top: 1rem;
  padding: 0.9rem;
  border-left: 4px solid var(--navy-700);
  background: #edf3f8;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
}

.bag-result.pass {
  border-left-color: var(--success);
  background: var(--success-soft);
  color: #0c5536;
}

.bag-result.fail {
  border-left-color: var(--red-600);
  background: var(--red-100);
  color: #8a1823;
}

.bag-visuals {
  display: flex;
  min-height: 155px;
  align-items: flex-end;
  justify-content: center;
  gap: 2rem;
  margin: 1.3rem 0;
  padding: 1rem;
  background:
    linear-gradient(rgba(11, 43, 79, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 43, 79, 0.07) 1px, transparent 1px),
    #f7f9fb;
  background-size: 16px 16px;
}

.bag-shape {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy-700);
  color: var(--navy-900);
  text-align: center;
}

.bag-shape span {
  font-weight: 850;
}

.bag-shape small {
  color: var(--muted);
  font-size: 0.72rem;
}

.clear-bag {
  width: 130px;
  height: 122px;
  background: rgba(50, 128, 192, 0.09);
}

.clutch {
  width: 95px;
  height: 65px;
  border-color: var(--red-600);
  background: var(--red-100);
}

.compact-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.compact-list li + li {
  margin-top: 0.45rem;
}

.prohibited-panel {
  margin-top: 1rem;
}

.prohibited-heading {
  align-items: end;
  margin-bottom: 1rem;
}

.search-box {
  position: relative;
  display: flex;
  width: min(340px, 100%);
  align-items: center;
}

.search-box svg {
  position: absolute;
  left: 0.75rem;
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.search-box input {
  margin-top: 0;
  padding-left: 2.35rem;
}

.prohibited-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.prohibited-item {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ead1d3;
  background: #fffafa;
  color: #5d2930;
  font-size: 0.83rem;
  font-weight: 700;
}

.prohibited-item::before {
  content: "×";
  color: var(--red-600);
  font-size: 1.2rem;
  font-weight: 900;
}

.prohibited-empty {
  grid-column: 1 / -1;
  padding: 1rem;
  color: var(--muted);
  text-align: center;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1rem;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #e9edf2;
}

.day-button {
  display: flex;
  min-width: 190px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 800;
}

.day-button span {
  padding: 0.25rem 0.35rem;
  border-radius: 4px;
  background: rgba(7, 27, 51, 0.08);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.day-button.is-active {
  background: var(--white);
  color: var(--navy-900);
  box-shadow: 0 2px 9px rgba(6, 20, 38, 0.1);
}

.day-button.is-active span {
  background: var(--red-600);
  color: var(--white);
}

.schedule-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 700;
}

.legend-opening,
.legend-official {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: #8094aa;
}

.legend-official {
  margin-left: 0.4rem;
  background: var(--red-600);
}

.schedule-list {
  display: grid;
  gap: 0.65rem;
}

.schedule-item {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 5px solid #8094aa;
  border-radius: 10px;
  background: var(--paper);
}

.schedule-item.official {
  border-left-color: var(--red-600);
}

.schedule-time {
  color: var(--navy-900);
  font-weight: 850;
}

.schedule-copy h2 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.schedule-copy p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.schedule-tag {
  padding: 0.3rem 0.5rem;
  border-radius: 5px;
  background: #e8edf2;
  color: var(--navy-700);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.official .schedule-tag {
  background: var(--red-100);
  color: var(--red-700);
}

.schedule-empty {
  padding: 2rem;
  border: 1px dashed #aab4c0;
  color: var(--muted);
  text-align: center;
}

.update-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  background: linear-gradient(100deg, var(--red-950), var(--red-800));
  color: var(--white);
}

.update-note span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.update-note a {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.map-switcher {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.map-button,
.filter-chip {
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border: 1px solid #b9c2ce;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy-800);
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 800;
}

.map-button.is-active,
.filter-chip.is-active {
  border-color: var(--red-800);
  background: var(--red-800);
  color: var(--white);
}

.map-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.75fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.map-frame-wrap {
  min-height: 430px;
  background: #dfe5eb;
}

.map-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
}

.map-sidebar address {
  margin-bottom: 1rem;
  color: var(--muted);
  font-style: normal;
}

.mini-alert,
.airport-note {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-left: 4px solid var(--navy-700);
  background: #edf3f8;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 650;
}

.mini-alert.danger {
  border-left-color: var(--red-600);
  background: var(--red-100);
  color: #77202a;
}

.button-stack {
  display: grid;
  gap: 0.6rem;
}

.route-overview {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 430px;
  align-content: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 0 0, rgba(199, 44, 58, 0.13), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(212, 174, 98, 0.16), transparent 35%),
    var(--paper);
}

.route-board {
  display: grid;
  grid-template-columns: 1fr minmax(210px, 0.8fr) 1fr;
  align-items: center;
  gap: 1rem;
}

.location-node {
  display: flex;
  min-height: 130px;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  border: 2px solid var(--red-700);
  background: var(--white);
}

.location-node > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--red-800);
  color: var(--white);
  font-weight: 900;
}

.primary-node {
  border-color: var(--red-600);
}

.primary-node > span {
  background: var(--red-600);
}

.location-node strong,
.location-node small {
  display: block;
}

.location-node strong {
  color: var(--navy-900);
  font-size: 1.1rem;
}

.location-node small {
  margin-top: 0.3rem;
  color: var(--muted);
}

.route-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--red-700);
}

.route-connector span {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.route-connector svg {
  width: 100%;
  max-width: 190px;
  height: 28px;
}

.route-connector small {
  color: var(--red-700);
  font-size: 0.72rem;
  font-weight: 800;
}

.route-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.route-facts > div {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: var(--white);
  text-align: center;
}

.route-facts span {
  color: var(--navy-900);
  font-size: 1.25rem;
  font-weight: 850;
}

.route-facts small {
  color: var(--muted);
  font-size: 0.75rem;
}

.map-reference-grid {
  margin-top: 1rem;
}

.image-map-card img {
  display: block;
  width: 100%;
  height: 300px;
  margin-top: 1rem;
  border: 1px solid var(--line);
  object-fit: contain;
  background: #f1f3f5;
}

.closures-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  border-color: #e5b9bd;
  background: #fff8f7;
}

.closures-panel p:last-child {
  margin-bottom: 0;
}

.closure-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--red-600);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 300;
}

.transport-priority {
  position: relative;
  margin-bottom: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--red-800);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--red-950), var(--red-900));
  color: var(--white);
}

.priority-flag {
  position: absolute;
  top: -11px;
  left: 1.4rem;
  padding: 0.3rem 0.65rem;
  background: var(--red-600);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.transport-route {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.15);
}

.transport-route article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1.25rem;
  background: var(--red-950);
}

.transport-route h2,
.transport-route p,
.transport-route a {
  color: var(--white);
}

.transport-route h2 {
  font-size: 1.1rem;
}

.transport-route p {
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.86rem;
}

.transport-route a {
  font-size: 0.83rem;
  font-weight: 800;
  text-decoration: none;
}

.transport-route a:hover {
  text-decoration: underline;
}

.mode-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
}

.dart-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 210px;
  align-items: center;
  gap: 1.2rem;
  border-left: 6px solid var(--red-600);
}

.rail-badge {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border-radius: 50%;
  background: var(--red-600);
  color: var(--white);
  font-size: 0.77rem;
  font-weight: 900;
  text-align: center;
}

.dart-alert p {
  margin-bottom: 0.5rem;
}

.callout-copy {
  color: var(--red-700);
  font-size: 0.87rem;
}

.airport-grid,
.onsite-grid,
.hotel-grid {
  display: grid;
  gap: 1rem;
}

.airport-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.airport-card {
  padding: 1.35rem;
}

.airport-code {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.45rem;
  background: var(--red-900);
  color: var(--white);
  font-size: 0.83rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.airport-note {
  margin-top: 1rem;
}

.travel-tools {
  margin-top: 1rem;
}

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

.onsite-card {
  min-height: 240px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.onsite-card h2 {
  font-size: 1.35rem;
}

.onsite-card a {
  color: var(--red-700);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.onsite-card a:hover {
  text-decoration: underline;
}

.lsp-food {
  border-top: 5px solid var(--red-600);
}

.aac-food {
  border-top: 5px solid var(--red-800);
}

.merch-card {
  border-top: 5px solid var(--gold);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-chip {
  min-height: 38px;
  border-radius: 999px;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.restaurant-card {
  display: flex;
  min-height: 145px;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.restaurant-card .restaurant-type {
  margin-bottom: 1rem;
  color: var(--red-700);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.restaurant-card h3 {
  margin-bottom: 0.25rem;
}

.restaurant-card p {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.restaurant-card a {
  margin-top: auto;
  color: var(--red-700);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.restaurant-card a:hover {
  text-decoration: underline;
}

.restaurant-note {
  margin-top: 0.75rem;
}

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

.hotel-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red-700);
  background: var(--paper);
}

.hotel-distance {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.25rem 0.45rem;
  background: var(--red-100);
  color: var(--red-700);
  font-size: 0.72rem;
  font-weight: 850;
}

.hotel-card p {
  min-height: 48px;
  font-size: 0.86rem;
}

.hotel-card > div {
  display: flex;
  gap: 1rem;
}

.hotel-card a {
  color: var(--red-700);
  font-size: 0.83rem;
  font-weight: 800;
  text-decoration: none;
}

.hotel-card a:hover {
  text-decoration: underline;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.safety-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  min-height: 360px;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.safety-card ul {
  margin: 1rem 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.safety-card li + li {
  margin-top: 0.5rem;
}

.safety-card a {
  color: var(--red-700);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.safety-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--red-900);
  color: var(--white);
  font-weight: 900;
}

.heat-safety .safety-icon {
  background: #dc8b08;
}

.security-safety .safety-icon {
  background: var(--success);
}

.traffic-safety .safety-icon {
  background: var(--red-600);
}

.contacts-grid {
  margin-top: 1rem;
}

.contact-list {
  display: grid;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.contact-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.contact-list a:hover span {
  text-decoration: underline;
}

.contact-list span {
  color: var(--red-700);
  font-weight: 800;
}

.horizontal-buttons {
  grid-template-columns: 1fr 1fr;
  margin-top: 1rem;
}

.source-panel {
  margin-top: 1rem;
}

.source-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 1.2rem 0;
}

.source-list a {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
}

.source-list a:hover {
  border-color: var(--red-700);
}

.source-list span {
  color: var(--red-700);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.source-list strong {
  color: var(--navy-900);
  font-size: 0.84rem;
}

.disclaimer {
  padding: 1rem;
  border-left: 4px solid var(--gold);
  background: #f5f0e4;
  color: #5e5544;
  font-size: 0.82rem;
}

.app-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.4rem 0 2rem;
  border-top: 1px solid #cbd1d9;
  color: var(--muted);
  font-size: 0.78rem;
}

.app-footer > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy-900);
}

.footer-star {
  color: var(--red-600);
}

.app-footer p {
  margin: 0;
  font-size: inherit;
}

.app-footer a {
  color: var(--red-700);
  font-weight: 800;
  text-decoration: none;
}

.toast {
  position: fixed;
  z-index: 300;
  right: 1rem;
  bottom: 1rem;
  max-width: 360px;
  padding: 0.85rem 1rem;
  border-radius: 9px;
  background: var(--red-950);
  color: var(--white);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .app-nav {
    width: 100%;
    overflow-x: auto;
    grid-template-columns: repeat(8, minmax(100px, 1fr));
    padding-inline: 1rem;
    scrollbar-width: none;
  }

  .app-nav::-webkit-scrollbar {
    display: none;
  }

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .closure-card {
    grid-column: span 2;
    min-height: auto;
  }

  .entry-flow {
    grid-template-columns: 1fr 1fr;
  }

  .entry-flow article {
    min-height: 220px;
  }

  .entry-flow article::after {
    display: none !important;
  }

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

  .restaurant-grid {
    grid-template-columns: 1fr 1fr;
  }

  .transport-route,
  .onsite-grid,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .transport-route article,
  .onsite-card,
  .safety-card {
    min-height: auto;
  }

  .dart-alert {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dart-alert .button-stack {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .source-strip {
    flex-wrap: wrap;
  }

  .source-strip > div {
    width: 100%;
  }
}

@media (max-width: 740px) {
  .install-banner {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.7rem;
    width: calc(100% - 1.25rem);
    padding: 0.8rem;
  }

  .install-banner img {
    width: 46px;
    height: 46px;
  }

  .install-banner-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  body {
    background-size: 100% 36px;
  }

  .brand-wrap,
  main,
  .app-footer {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .brand-wrap {
    min-height: 68px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .brand strong {
    font-size: 1.02rem;
  }

  .brand small {
    font-size: 0.61rem;
  }

  .icon-button span {
    display: none;
  }

  .icon-button {
    width: 42px;
    justify-content: center;
    padding: 0;
  }

  .app-nav {
    grid-template-columns: repeat(8, minmax(78px, 1fr));
    padding-inline: 0.35rem;
  }

  .nav-tab {
    min-height: 54px;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.7rem;
  }

  .nav-tab svg {
    width: 17px;
    height: 17px;
  }

  .network-banner {
    top: 126px;
  }

  main {
    padding-top: 0.75rem;
  }

  .critical-banner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    padding: 1.1rem;
  }

  .ticket-note {
    align-items: stretch;
    flex-direction: column;
  }

  .ticket-note .button {
    width: 100%;
  }

  .critical-banner .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .critical-icon {
    width: 38px;
    height: 38px;
  }

  .critical-banner h1 {
    font-size: 1.45rem;
  }

  .notification-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .notification-card .notification-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .dashboard-grid,
  .two-column-grid,
  .airport-grid,
  .hotel-grid,
  .source-list {
    grid-template-columns: 1fr;
  }

  .closure-card {
    grid-column: auto;
  }

  .status-card {
    min-height: auto;
  }

  .split-heading,
  .schedule-intro,
  .prohibited-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .split-heading .button,
  .schedule-intro .button,
  .prohibited-heading .search-box {
    width: 100%;
  }

  .route-stop {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.7rem;
    padding-right: 0.8rem;
  }

  .route-timeline::before {
    left: 22px;
  }

  .route-time {
    grid-column: 2;
    padding-top: 0;
    color: var(--red-700);
    font-size: 0.78rem;
  }

  .route-content {
    grid-column: 2;
  }

  .route-title-row {
    display: block;
  }

  .route-title-row .pill {
    margin-bottom: 0.45rem;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .source-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .entry-flow,
  .prohibited-grid,
  .restaurant-grid {
    grid-template-columns: 1fr;
  }

  .entry-flow article {
    display: grid;
    min-height: auto;
    grid-template-columns: 52px 1fr;
    gap: 0.65rem;
  }

  .entry-flow article > span {
    margin-bottom: 0;
  }

  .bag-checker,
  .limits-panel {
    min-height: auto;
  }

  .bag-type {
    grid-template-columns: 1fr;
  }

  .dimension-inputs {
    grid-template-columns: 1fr;
  }

  .dimension-inputs > span {
    display: none;
  }

  .segmented-control {
    display: grid;
    width: 100%;
  }

  .day-button {
    min-width: 0;
    justify-content: center;
  }

  .schedule-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-search {
    width: 100%;
  }

  .legend {
    justify-content: center;
  }

  .schedule-item {
    grid-template-columns: 1fr auto;
  }

  .schedule-copy {
    grid-column: 1 / -1;
  }

  .update-note {
    grid-template-columns: 1fr;
  }

  .map-switcher,
  .filter-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }

  .map-button,
  .filter-chip {
    flex: 0 0 auto;
  }

  .map-panel {
    grid-template-columns: 1fr;
  }

  .map-frame-wrap,
  .map-frame-wrap iframe {
    min-height: 330px;
  }

  .map-sidebar {
    padding: 1.2rem;
  }

  .route-overview {
    padding: 1.2rem;
  }

  .route-board {
    grid-template-columns: 1fr;
  }

  .route-connector {
    min-height: 95px;
    justify-content: center;
  }

  .route-connector svg {
    width: 110px;
    transform: rotate(90deg);
  }

  .route-facts {
    grid-template-columns: 1fr 1fr;
  }

  .image-map-card img {
    height: 235px;
  }

  .closures-panel,
  .dart-alert {
    grid-template-columns: 1fr;
  }

  .closures-panel .button,
  .dart-alert .button-stack {
    width: 100%;
  }

  .rail-badge,
  .closure-mark {
    width: 48px;
    height: 48px;
  }

  .dart-alert .button-stack,
  .horizontal-buttons {
    grid-template-columns: 1fr;
  }

  .source-list a {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .app-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .toast {
    right: 0.65rem;
    bottom: 0.65rem;
    left: 0.65rem;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .app-header,
  .network-banner,
  .install-banner,
  .header-actions,
  .button,
  .text-link,
  .map-switcher,
  .filter-row,
  .toast,
  .app-footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 11pt;
  }

  main {
    width: 100%;
    padding: 0;
  }

  .view[hidden] {
    display: block !important;
  }

  .view {
    page-break-after: always;
  }

  .critical-banner,
  .navy-card,
  .transport-priority,
  .update-note {
    color: black;
    background: white;
    border: 2px solid black;
    box-shadow: none;
  }

  .critical-banner h1,
  .critical-banner p,
  .navy-card p,
  .transport-route h2,
  .transport-route p,
  .transport-route a,
  .update-note span {
    color: black;
  }

  .dashboard-grid,
  .two-column-grid,
  .onsite-grid,
  .safety-grid {
    break-inside: avoid;
  }

  .map-frame-wrap {
    display: none;
  }

  .map-panel {
    display: block;
    min-height: auto;
  }
}

.speaker-list { margin: .75rem 0 0; padding-left: 1.25rem; font-size: 1rem; line-height: 1.6; }
.speaker-list li + li { margin-top: .35rem; }
