:root {
  --bg: #080b0c;
  --bg-soft: #101617;
  --surface: #151d1f;
  --surface-strong: #1e2a2d;
  --surface-raised: #202b2e;
  --text: #f2f7f3;
  --muted: #a8b6ad;
  --line: #314044;
  --green: #2fbf71;
  --green-dark: #17975a;
  --yellow: #d79a2b;
  --red: #e05252;
  --cyan: #62c4d8;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

body.theme-light {
  --bg: #f5f7f2;
  --bg-soft: #edf3ef;
  --surface: #ffffff;
  --surface-strong: #e7eee9;
  --surface-raised: #f4f8f5;
  --text: #17211c;
  --muted: #5f6d64;
  --line: #d3ded7;
  --green: #188a54;
  --green-dark: #126b42;
  --yellow: #b97912;
  --red: #c94141;
  --cyan: #24748c;
  --shadow: 0 18px 40px rgba(23, 33, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(47, 191, 113, 0.12), transparent 34rem),
    linear-gradient(180deg, #080b0c 0%, #101617 52%, #080b0c 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body.theme-light {
  background:
    radial-gradient(circle at top left, rgba(24, 138, 84, 0.14), transparent 34rem),
    linear-gradient(180deg, #f5f7f2 0%, #edf3ef 52%, #f5f7f2 100%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 11, 12, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

body.theme-light .site-header {
  background: rgba(245, 247, 242, 0.92);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
}

.brand,
.nav-actions,
.hero-actions,
.filter-control,
.official-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #06100b;
  font-size: 0.85rem;
}

.nav-actions {
  gap: 4px;
  overflow: visible;
}

.nav-actions a,
.nav-bridge-toggle,
.theme-toggle,
.language-toggle {
  flex: 0 0 auto;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-actions a:focus,
.nav-actions a:hover,
.nav-bridge-toggle:focus,
.nav-bridge-toggle:hover,
.nav-bridge-menu.is-open .nav-bridge-toggle,
.theme-toggle:focus,
.theme-toggle:hover,
.language-toggle:focus,
.language-toggle:hover {
  background: var(--surface-strong);
  color: var(--text);
}

.nav-bridge-menu {
  position: relative;
}

.nav-bridge-toggle {
  cursor: pointer;
}

.nav-bridge-panel {
  position: absolute;
  z-index: 1100;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: min(330px, calc(100vw - 24px));
  max-height: min(70vh, 430px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 21, 23, 0.98);
  box-shadow: var(--shadow);
  padding: 8px;
}

body.theme-light .nav-bridge-panel {
  background: rgba(255, 255, 255, 0.98);
}

.theme-toggle,
.language-toggle {
  display: grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  cursor: pointer;
  font-size: 1.08rem;
  line-height: 1;
}

.language-toggle {
  display: inline-flex;
  gap: 5px;
  min-width: 58px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
}

.language-icon {
  font-size: 0.95rem;
}

.language-code {
  font-weight: 900;
}

.nav-bridge-menu.is-open .nav-bridge-panel {
  display: grid;
  gap: 6px;
}

.nav-more-panel {
  min-width: 190px;
}

.nav-more-panel a {
  display: block;
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  font-weight: 800;
}

.nav-more-panel a:focus,
.nav-more-panel a:hover {
  background: var(--surface-strong);
  color: var(--text);
}

.nav-bridge-option {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px;
}

.nav-bridge-option:focus,
.nav-bridge-option:hover,
.nav-bridge-option[aria-current="page"] {
  border-color: var(--cyan);
  background: var(--surface-strong);
}

.nav-bridge-option.is-closed {
  color: var(--muted);
  opacity: 0.74;
}

.nav-bridge-option.is-closed strong,
.nav-bridge-option.is-closed small {
  color: var(--muted);
}

.nav-bridge-option strong,
.nav-bridge-option small {
  display: block;
}

.nav-bridge-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-light {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 12px currentColor;
}

.status-light.low {
  background: var(--green);
  color: var(--green);
}

.status-light.medium {
  background: var(--yellow);
  color: var(--yellow);
}

.status-light.high {
  background: var(--red);
  color: var(--red);
}

.status-light.jam {
  background: #7f1d1d;
  color: #7f1d1d;
}

.status-light.closed {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 14px rgba(224, 82, 82, 0.7);
}

.status-light.soon,
.status-light.opening {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  background: var(--yellow);
  color: #06100b;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.is-hidden {
  display: none;
}

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

/* Hero area uses the bridge ranking as the first visual decision point. */
.hero-section {
  display: grid;
  gap: 18px;
  min-height: calc(100vh - 180px);
  padding: 22px 0 18px;
  align-items: center;
}

.hero-copy {
  padding: 28px 0 8px;
}

.eyebrow,
.panel-label,
.status-label,
.promo-tag {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p,
li {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  font-size: 2.8rem;
}

h2 {
  font-size: 1.7rem;
}

h3 {
  font-size: 1.12rem;
}

h4 {
  font-size: 1rem;
}

.hero-text,
.section-copy,
.bridge-summary {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.primary-button,
.secondary-button,
.filter-button,
.bridge-link {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
}

.primary-button,
.secondary-button,
.bridge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
}

.primary-button {
  background: var(--green);
  color: #06100b;
}

.primary-button:focus,
.primary-button:hover {
  background: #56d98d;
}

.secondary-button,
.bridge-link {
  background: var(--surface-raised);
  border-color: var(--line);
  color: var(--text);
}

.secondary-button:focus,
.secondary-button:hover,
.bridge-link:focus,
.bridge-link:hover {
  border-color: var(--cyan);
}

.fastest-panel,
.status-tile,
.bridge-card,
.alert-item,
.camera-card,
.report-form,
.bridge-detail-panel,
.live-card,
.promo-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 29, 31, 0.96);
  box-shadow: var(--shadow);
}

body.theme-light .fastest-panel,
body.theme-light .status-tile,
body.theme-light .bridge-card,
body.theme-light .alert-item,
body.theme-light .camera-card,
body.theme-light .report-form,
body.theme-light .bridge-detail-panel,
body.theme-light .live-card,
body.theme-light .promo-card,
body.theme-light .contact-card {
  background: rgba(255, 255, 255, 0.96);
}

.back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text);
  font-weight: 800;
}

.back-link:focus,
.back-link:hover {
  border-color: var(--cyan);
}

.fastest-panel {
  padding: 22px;
}

.home-fastest-panel {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fastest-status-light {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  box-shadow: 0 0 18px currentColor;
}

.fastest-panel h2 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.fastest-panel p,
.fastest-panel small,
.status-tile strong,
.bridge-meta,
.alert-item p,
.camera-card p,
.form-message,
.live-card p,
.promo-card p,
.contact-card p,
.bridge-detail-top p,
.feed-list {
  margin: 0;
  color: var(--muted);
}

.queue-summary {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.bridge-overview-panel {
  display: grid;
  gap: 16px;
}

.overview-primary,
.overview-secondary {
  min-width: 0;
}

.hero-hours {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.hero-hours > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--surface);
}

.hero-hours > div > span:first-child {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 900;
  line-height: 1;
}

.hero-hours > div.open > span:first-child {
  background: var(--green);
  color: #06100b;
}

.hero-hours > div.soon > span:first-child,
.hero-hours > div.opening > span:first-child {
  background: var(--yellow);
  color: #06100b;
}

.hero-hours > div.closed > span:first-child {
  border: 1px solid var(--red);
  border-radius: 999px;
  background: rgba(224, 82, 82, 0.08);
  color: var(--red);
}

.hero-hours strong,
.hero-hours small {
  display: block;
}

.hero-hours small {
  grid-column: 2;
}

.line-insight {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

.line-insight-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 900;
}

.line-insight.low .line-insight-icon {
  background: var(--green);
  color: #06100b;
}

.line-insight.medium .line-insight-icon {
  background: var(--yellow);
  color: #06100b;
}

.line-insight.high .line-insight-icon,
.line-insight.closed .line-insight-icon {
  background: rgba(224, 82, 82, 0.14);
  color: var(--red);
}

.line-insight strong,
.line-insight small,
.line-meter {
  display: block;
}

.line-insight strong {
  color: var(--text);
  font-size: 1.18rem;
}

.line-insight small {
  color: var(--muted);
  font-weight: 800;
}

.line-meter {
  height: 9px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
}

.line-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.line-insight.medium .line-meter i {
  background: var(--yellow);
}

.line-insight.high .line-meter i {
  background: var(--red);
}

.prediction-summary {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.prediction-summary span,
.prediction-summary small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.prediction-summary strong {
  font-size: 1.35rem;
}

.queue-summary span,
.refresh-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.queue-summary strong {
  font-size: 1.45rem;
}

.big-lane-number {
  font-size: 1.55rem;
  line-height: 1;
}

.big-lane-number small {
  display: inline;
  color: var(--muted);
  font-size: 0.78rem;
  margin-left: 2px;
}

.distance-toggle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.direction-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.direction-toggle button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 7px;
  text-align: left;
}

.direction-toggle button small {
  grid-column: 2;
  font-size: 0.72rem;
  color: currentColor;
  opacity: 0.86;
}

.direction-toggle button.is-active {
  background: var(--green);
  color: #06100b;
}

.bridge-direction-toggle {
  margin-top: 12px;
}

.distance-toggle span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.distance-toggle button {
  min-height: 34px;
  min-width: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.distance-toggle button.is-active {
  background: var(--green);
  color: #06100b;
}

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

.direction-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
  vertical-align: middle;
}

.direction-badge.usa {
  color: #bfe8ff;
  background: rgba(30, 93, 142, 0.34);
}

.direction-badge.mex {
  color: #bbf7d0;
  background: rgba(35, 122, 72, 0.34);
}

.update-signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.update-signal {
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.update-signal b {
  font-size: 0.74rem;
  color: var(--muted);
}

.update-signal em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-tile {
  min-height: 92px;
  padding: 16px;
}

.status-tile strong {
  display: block;
  color: var(--text);
  font-size: 1.2rem;
}

#last-updated {
  display: grid;
  gap: 2px;
  font-size: 0.9rem;
  line-height: 1.25;
}

.transport-tile {
  position: relative;
  display: grid;
  gap: 8px;
  overflow: hidden;
}

.tile-emoji {
  position: absolute;
  right: 14px;
  top: 12px;
  font-size: 1.45rem;
  opacity: 0.9;
}

.transport-tile small {
  color: var(--muted);
  font-weight: 800;
}

/* Sections share spacing so new data modules can be added cleanly. */
.content-section {
  padding: 52px 0 0;
  scroll-margin-top: 86px;
}

.bridge-page-hero {
  display: grid;
  gap: 18px;
  padding: 24px 0 8px;
  align-items: center;
}

.bridge-page-stats {
  margin-top: 18px;
}

.lane-context-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.section-heading,
.split-section,
.promo-section,
.contact-section {
  display: grid;
  gap: 18px;
}

.filter-control {
  width: 100%;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.filter-button {
  flex: 1;
  padding: 9px 10px;
  background: transparent;
  color: var(--muted);
}

.filter-button.is-active {
  background: var(--green);
  color: #06100b;
}

.origin-recommender {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(21, 29, 31, 0.96);
  box-shadow: var(--shadow);
}

body.theme-light .origin-recommender {
  background: rgba(255, 255, 255, 0.96);
}

.origin-recommender p {
  margin: 8px 0 0;
  color: var(--muted);
}

.origin-form {
  display: grid;
  gap: 8px;
}

.origin-form label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.origin-input-row {
  display: grid;
  gap: 8px;
}

.origin-input-row input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #0b1112;
  color: var(--text);
}

body.theme-light .origin-input-row input {
  background: #ffffff;
}

.origin-input-row button,
.origin-pick a {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--green);
  color: #06100b;
  cursor: pointer;
  font-weight: 900;
}

.origin-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
}

.origin-pick {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
}

.origin-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #06100b;
  font-weight: 900;
}

.origin-pick strong,
.origin-pick small {
  display: block;
}

.origin-pick strong {
  color: var(--text);
}

.bridge-list,
.bridge-detail-list,
.traffic-map,
.alert-list,
.camera-grid,
.promo-grid {
  display: grid;
  gap: 12px;
}

.bridge-list {
  margin-top: 18px;
}

.bridge-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  position: relative;
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.bridge-card.is-closed {
  opacity: 0.76;
}

.bridge-card:hover,
.bridge-card:focus-visible {
  border-color: rgba(47, 191, 113, 0.72);
  box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.card-action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text);
  font-weight: 900;
}

.mobile-card-prompt {
  display: none;
}

.bridge-card:hover .card-action-pill,
.bridge-card:focus-visible .card-action-pill {
  background: var(--green);
  border-color: var(--green);
  color: #06100b;
}

.bridge-card-header,
.bridge-detail-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.bridge-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bridge-quick-row {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 900;
}

.quick-status-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1;
}

.bridge-quick-row.closed .quick-status-icon {
  border: 1px solid var(--red);
  color: var(--red);
}

.bridge-quick-row.soon .quick-status-icon,
.bridge-quick-row.opening .quick-status-icon {
  background: var(--yellow);
  color: #06100b;
}

.bridge-quick-row.open .quick-status-icon {
  background: var(--green);
  color: #06100b;
}

.detail-box {
  min-height: 70px;
  padding: 10px;
  border-radius: 8px;
  background: var(--surface-strong);
}

.detail-box span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.detail-box strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.wait-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #06100b;
  font-weight: 800;
  white-space: nowrap;
}

.wait-badge.low,
.condition-dot.low {
  background: var(--green);
}

.wait-badge.medium,
.condition-dot.medium {
  background: var(--yellow);
}

.wait-badge.high,
.condition-dot.high {
  background: var(--red);
  color: #ffffff;
}

.wait-badge.jam,
.condition-dot.jam {
  background: #7f1d1d;
  color: #ffffff;
}

.wait-badge.unknown,
.condition-dot.unknown {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--muted);
}

.wait-badge.closed {
  background: var(--surface-strong);
  border-color: var(--red);
  color: var(--red);
}

.route-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.75fr) 1fr minmax(72px, auto);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.route-name,
.route-speed {
  font-weight: 800;
}

.route-speed {
  color: var(--muted);
  text-align: right;
}

.route-bar {
  height: 16px;
  border-radius: 999px;
  background: #0a0f10;
  overflow: hidden;
}

body.theme-light .route-bar {
  background: #d9e4de;
}

.route-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.bridge-detail-list {
  margin-top: 18px;
}

.bridge-detail-panel {
  padding: 18px;
  scroll-margin-top: 90px;
}

.bridge-detail-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.live-card,
.alert-item,
.camera-card,
.promo-card,
.contact-card {
  padding: 16px;
}

.live-card h4,
.alert-item h3,
.camera-card h3,
.promo-card h3 {
  margin-bottom: 8px;
}

.live-card h2 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.camera-window {
  display: grid;
  min-height: 150px;
  margin-bottom: 12px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(98, 196, 216, 0.16) 1px, transparent 1px),
    linear-gradient(rgba(98, 196, 216, 0.16) 1px, transparent 1px),
    #0b1112;
  background-size: 28px 28px;
  color: var(--cyan);
  font-weight: 800;
}

.camera-embed-window {
  display: block;
  min-height: 320px;
  padding: 0;
  background: #0b1112;
}

.camera-embed-window iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
}

.camera-note {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.map-card {
  grid-column: 1 / -1;
}

.map-frame {
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.leaflet-map-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.google-map-frame {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f0;
}

.google-map-frame iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
  background: #eef3f0;
}

.map-heat-overlay,
.map-point-panel {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(6, 16, 11, 0.86);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.map-heat-overlay {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
}

.map-point-panel {
  margin-top: 10px;
  background: rgba(18, 32, 34, 0.96);
}

body.theme-light .map-point-panel {
  background: rgba(9, 24, 25, 0.92);
}

.map-heat-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  align-items: center;
}

.map-heat-row > strong {
  font-size: 0.72rem;
  line-height: 1.05;
}

.map-point-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.map-point-chip {
  display: inline-grid;
  grid-template-columns: 16px minmax(0, auto);
  gap: 4px;
  align-items: center;
  max-width: 145px;
  padding: 3px 6px 3px 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.68rem;
  font-weight: 900;
}

.map-point-chip i,
.map-heat-key i {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 999px;
  color: #06100b;
  font-style: normal;
  font-size: 0.66rem;
}

.map-point-chip b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-point-chip.low i,
.map-heat-key i.low {
  background: var(--green);
}

.map-point-chip.medium i,
.map-heat-key i.medium {
  background: var(--yellow);
}

.map-point-chip.high i,
.map-heat-key i.high {
  background: var(--red);
  color: #ffffff;
}

.map-point-chip.jam i,
.map-heat-key i.jam {
  background: #7f1d1d;
  color: #ffffff;
}

.map-heat-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.67rem;
  font-weight: 800;
}

.map-heat-key span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.map-point-empty {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.7rem;
  font-weight: 800;
}

.route-progress-panel,
.queue-model-panel {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.route-progress-heading,
.queue-model-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.route-progress-heading strong,
.queue-model-heading strong {
  display: flex;
  align-items: center;
  gap: 6px;
}

.route-progress-heading span,
.queue-model-heading small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.route-progress-track {
  position: relative;
  height: 20px;
  margin: 6px 10px 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.route-progress-track > i {
  position: absolute;
  inset-block: 0;
  opacity: 0.95;
}

.route-progress-track > i.low { background: var(--green); }
.route-progress-track > i.medium { background: var(--yellow); }
.route-progress-track > i.high { background: var(--red); }
.route-progress-track > i.jam { background: #7f1d1d; }

.route-progress-marker {
  position: absolute;
  top: 50%;
  translate: -50% -50%;
  z-index: 1;
}

.route-progress-marker b,
.route-progress-labels b {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.68rem;
}

.route-progress-labels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-progress-labels li {
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.route-progress-labels span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px;
}

.queue-model-grid span {
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 55px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.queue-model-grid small,
.queue-model-grid em,
.queue-model-rhythm {
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
}

.queue-model-grid b {
  font-size: 0.86rem;
}

.queue-model-rhythm {
  margin: 0;
}

.leaflet-traffic-map {
  min-height: 260px;
}

.leaflet-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.leaflet-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--surface);
  color: var(--text);
}

.map-disclaimer {
  margin-top: 10px;
  font-size: 0.9rem;
}

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

.map-link {
  justify-self: start;
  margin-top: 12px;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

body.theme-light .camera-window {
  background:
    linear-gradient(90deg, rgba(36, 116, 140, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(36, 116, 140, 0.14) 1px, transparent 1px),
    #eef5f1;
}

.bridge-heat-map {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

.heat-map-stage {
  display: grid;
  gap: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(98, 196, 216, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(98, 196, 216, 0.1) 1px, transparent 1px),
    #0b1112;
  background-size: 28px 28px;
  padding: 18px;
}

@media (min-width: 760px) {
  .heat-map-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.theme-light .heat-map-stage {
  background:
    linear-gradient(90deg, rgba(36, 116, 140, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(36, 116, 140, 0.12) 1px, transparent 1px),
    #eef5f1;
}

.heat-map-road {
  display: grid;
  gap: 12px;
}

.heat-direction {
  display: grid;
  gap: 10px;
}

.heat-direction h3 {
  color: var(--text);
  font-size: 1rem;
}

.heat-map-lane {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 42px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
}

body.theme-light .heat-map-lane {
  background: rgba(255, 255, 255, 0.72);
}

.heat-map-lane::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--heat-width);
  opacity: 0.82;
}

.heat-map-lane.low::before {
  background: linear-gradient(90deg, rgba(47, 191, 113, 0.86), rgba(47, 191, 113, 0.08));
}

.heat-map-lane.medium::before {
  background: linear-gradient(90deg, rgba(215, 154, 43, 0.9), rgba(215, 154, 43, 0.08));
}

.heat-map-lane.high::before {
  background: linear-gradient(90deg, rgba(224, 82, 82, 0.9), rgba(224, 82, 82, 0.08));
}

.heat-map-lane.jam::before {
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.95), rgba(127, 29, 29, 0.12));
}

.heat-map-lane span,
.heat-map-lane strong {
  position: relative;
  z-index: 1;
}

.heat-map-lane span {
  font-weight: 800;
  min-width: 0;
}

.heat-map-lane strong {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.heat-map-lane em {
  font-style: normal;
}

.hours-card,
.toll-card,
.lane-card,
.sentri-card {
  grid-column: 1 / -1;
}

.hours-grid {
  display: grid;
  gap: 10px;
}

.hours-row,
.toll-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

.lane-status-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.lane-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, auto);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

.lane-status-row strong,
.lane-status-row span,
.lane-status-row small,
.lane-status-numbers b,
.card-source,
.toll-price {
  display: block;
}

.lane-status-row span,
.lane-status-row small,
.card-source {
  color: var(--muted);
}

.lane-status-numbers {
  text-align: right;
}

.lane-count-metric,
.toll-price {
  color: var(--text);
}

.lane-status-numbers .lane-count-metric {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.lane-count-open {
  font-size: 2.1rem;
  line-height: 0.9;
}

.lane-count-divider,
.lane-count-total {
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 900;
}

.lane-status-numbers > small {
  margin-top: 4px;
  font-size: 0.95rem;
}

.sentri-card.available {
  border-color: rgba(47, 191, 113, 0.54);
}

.sentri-card.unavailable {
  border-color: rgba(215, 154, 43, 0.54);
}

.sentri-status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.sentri-status strong,
.sentri-status span {
  display: block;
}

.sentri-status span:not(.sentri-badge) {
  color: var(--muted);
}

.sentri-badge {
  display: grid;
  min-width: 62px;
  min-height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.sentri-status .sentri-badge {
  display: grid;
}

.resources-section {
  padding-bottom: 28px;
}

.data-details-section {
  padding-top: 0;
  padding-bottom: 32px;
}

.data-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.data-detail-grid span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  font-weight: 800;
}

.resources-links {
  margin-top: 14px;
}

.hours-icon,
.toll-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 900;
}

.hours-icon {
  font-size: 1.08rem;
}

.hours-row.open .hours-icon {
  background: var(--green);
  color: #06100b;
}

.hours-row.soon .hours-icon,
.hours-row.opening .hours-icon {
  background: var(--yellow);
  color: #06100b;
}

.hours-row.closed .hours-icon {
  position: relative;
  border: 2px solid rgba(224, 82, 82, 0.82);
  border-radius: 999px;
  background: rgba(224, 82, 82, 0.08);
  color: var(--red);
  font-size: 1.16rem;
  line-height: 1;
}

.hours-row strong,
.hours-row span,
.hours-row small,
.toll-row strong,
.toll-row span,
.toll-row small {
  display: block;
}

.hours-row > div > span,
.hours-row > div > small,
.toll-row > div > span,
.toll-row > div > small {
  color: var(--muted);
}

.hours-row small span {
  display: inline;
}

.notice-card {
  border-color: rgba(215, 154, 43, 0.62);
}

.toll-grid {
  display: grid;
  gap: 10px;
}

.toll-icon {
  background: var(--surface-strong);
  color: var(--cyan);
}

.hours-row .hours-icon,
.toll-row .toll-icon {
  display: grid;
  align-items: center;
  justify-items: center;
  text-align: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 900;
}

.toll-row .toll-icon {
  padding: 0 5px;
  background: rgba(98, 196, 216, 0.14);
  color: #62c4d8;
  font-size: 0.82rem;
}

.heat-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.heat-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.heat-map-legend .status-light {
  display: inline-block;
}

.official-links {
  flex-wrap: wrap;
  gap: 8px;
}

.official-links a,
.official-links span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  font-weight: 800;
}

.official-links a:focus,
.official-links a:hover {
  border-color: var(--cyan);
}

.official-links span {
  color: var(--muted);
}

.feed-list {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.report-section {
  display: grid;
  gap: 18px;
  padding-bottom: 0;
}

.report-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.report-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.report-form select,
.report-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #0b1112;
  color: var(--text);
}

body.theme-light .report-form select,
body.theme-light .report-form textarea {
  background: #ffffff;
}

.report-form textarea {
  resize: vertical;
}

.promo-card {
  min-height: 150px;
}

.weather-section {
  display: grid;
  gap: 18px;
}

.weather-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(21, 29, 31, 0.96);
  box-shadow: var(--shadow);
}

body.theme-light .weather-card {
  background: rgba(255, 255, 255, 0.96);
}

.weather-card h3 {
  margin: 0;
  font-size: 1.5rem;
}

.weather-actions,
.weather-resources,
.weather-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.weather-actions button,
.weather-resources a {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.weather-actions button.is-active {
  background: var(--green);
  color: #06100b;
}

.weather-metrics span {
  min-width: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
}

.weather-metrics b,
.weather-metrics small {
  display: block;
}

.weather-metrics small,
#weather-updated {
  color: var(--muted);
}

.contact-card {
  display: grid;
  gap: 12px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 16px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0 auto;
  max-width: 760px;
}

@media (max-width: 520px) {
  .hero-section {
    min-height: auto;
    padding-top: 18px;
  }

  .top-bar {
    align-items: flex-start;
    flex-direction: column;
    width: min(100% - 24px, 1120px);
    padding: 10px 0;
  }

  main {
    width: min(100% - 24px, 1120px);
  }

  .nav-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-actions a,
  .nav-bridge-toggle,
  .theme-toggle,
  .language-toggle {
    padding: 8px 9px;
    font-size: 0.84rem;
  }

  .nav-bridge-panel {
    left: 0;
    right: auto;
  }

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

  .bridge-card-header,
  .bridge-detail-top,
  .bridge-details {
    display: grid;
    grid-template-columns: 1fr;
  }

  .wait-badge {
    justify-self: start;
  }

  .desktop-card-prompt {
    display: none;
  }

  .mobile-card-prompt {
    display: inline;
  }

  .map-heat-row,
  .heat-map-lane {
    grid-template-columns: 1fr;
  }

  .heat-map-lane strong {
    white-space: normal;
  }

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

  .route-speed {
    text-align: left;
  }
}

@media (min-width: 760px) {
  .hero-section {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    padding-top: 32px;
  }

  .bridge-page-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  }

  .bridge-overview-panel {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.92fr);
    grid-column: 1 / -1;
  }

  h1 {
    font-size: 4.4rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .fastest-panel h2 {
    font-size: 2.8rem;
  }

  .section-heading,
  .split-section,
  .weather-section,
  .promo-section,
  .report-section,
  .contact-section {
    grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
    align-items: start;
  }

  .filter-control {
    justify-self: end;
    max-width: 320px;
  }

  .origin-recommender {
    grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
    align-items: start;
  }

  .origin-input-row {
    grid-template-columns: 1fr auto;
  }

  .bridge-list,
  .camera-grid,
  .promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1020px) {
  h1 {
    font-size: 5.2rem;
  }

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

.footer-links,
.trust-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.footer-links a,
.footer-links button,
.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--cyan);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.trust-notice {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  display: grid;
  max-width: 560px;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.trust-notice[hidden],
.trust-modal[hidden],
.trust-options[hidden],
[hidden] {
  display: none !important;
}

.trust-notice p,
.trust-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.trust-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: end center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.48);
}

.trust-dialog {
  position: relative;
  display: grid;
  width: min(680px, 100%);
  max-height: min(86vh, 720px);
  gap: 12px;
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.trust-dialog h2 {
  margin: 0;
}

.trust-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}

.trust-options {
  display: grid;
  gap: 6px;
}

.trust-options label,
.acceptance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.trust-options span {
  display: grid;
  gap: 2px;
}

.trust-options small {
  color: var(--muted);
}

.legal-layout {
  display: grid;
  width: min(980px, calc(100% - 24px));
  gap: 12px;
  margin: 0 auto;
  padding: 32px 0;
}

.legal-hero h1 {
  margin: 4px 0 10px;
  font-size: clamp(2rem, 7vw, 4rem);
}

.legal-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.legal-card h2 {
  margin-top: 0;
}

.legal-card p {
  color: var(--muted);
}

.report-form input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px;
  background: var(--surface-2);
  color: var(--text);
}

@media (min-width: 720px) {
  .trust-modal {
    place-items: center;
  }
}

.current-wait-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.current-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.72fr);
  gap: 10px;
  align-items: stretch;
}

.current-status-cue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.current-status-cue div {
  display: grid;
  gap: 4px;
}

.current-status-cue strong {
  color: var(--text);
  font-size: 1.05rem;
}

.current-status-cue .status-light {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  box-shadow: 0 0 14px currentColor;
}

.current-wait-light {
  width: 18px;
  height: 100%;
  min-height: 92px;
  border-radius: 999px;
  box-shadow: 0 0 16px currentColor;
}

.queue-distance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.compact-distance-toggle {
  margin-top: 0;
}

.compact-distance-toggle button {
  min-width: 42px;
  min-height: 32px;
  padding: 5px 8px;
}

.update-witness {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.update-witness b {
  color: var(--cyan);
}

.priority-toll-section {
  padding-top: 0;
  padding-bottom: 0;
}

.priority-toll-section .toll-card {
  box-shadow: none;
}

@media (max-width: 520px) {
  .fastest-panel {
    padding: 14px;
  }

  .bridge-overview-panel {
    gap: 12px;
  }

  .current-wait-light {
    min-height: 84px;
  }

  .current-summary-row {
    grid-template-columns: minmax(0, 1fr) minmax(104px, 0.62fr);
    gap: 8px;
  }

  .current-status-cue {
    gap: 8px;
    padding: 8px;
  }

  .current-status-cue strong {
    font-size: 0.96rem;
  }

  .current-status-cue .status-light {
    width: 20px;
    height: 20px;
  }

  .priority-toll-section {
    padding-inline: 12px;
  }

  .priority-toll-section .toll-card {
    padding: 12px;
  }

  .toll-grid {
    gap: 8px;
  }

  .toll-row {
    padding: 8px;
  }
}
