:root {
  --bg: #07111f;
  --bg-alt: #0f1d31;
  --card: rgba(16, 29, 49, 0.88);
  --line: rgba(196, 214, 255, 0.16);
  --text: #f4f7fb;
  --muted: #aac0dd;
  --accent: #ff7448;
  --accent-2: #54d2b1;
  --warning: #ffd166;
  --shadow: 0 20px 60px rgba(1, 4, 10, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(84, 210, 177, 0.13), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(255, 116, 72, 0.18), transparent 40%),
    linear-gradient(180deg, #06101d 0%, #07111f 60%, #081426 100%);
}

body.app-is-loading {
  overflow: hidden;
}

.app-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 1rem auto 2.5rem;
}

.page-shell {
  display: grid;
  gap: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16, 29, 49, 0.72), rgba(9, 19, 34, 0.88));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.site-nav__brand,
.site-nav__links a,
.site-footer__links a {
  color: var(--text);
  text-decoration: none;
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  font-family: "Barlow", "Space Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav__links,
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.site-nav__links a,
.site-footer__links a {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav__links a:hover,
.site-footer__links a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.site-nav__links a[aria-current="page"],
.site-footer__links a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(84, 210, 177, 0.28);
  background: rgba(84, 210, 177, 0.12);
}

.page-hero {
  padding: 1.2rem;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  max-width: 15ch;
}

.page-intro {
  margin: 0.9rem 0 0;
  max-width: 66ch;
  color: var(--muted);
  line-height: 1.6;
}

.page-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.content-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

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

.legal-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.legal-copy + .legal-copy {
  margin-top: 0.8rem;
}

.trust-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.trust-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
}

.trust-card h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(9, 19, 34, 0.88), rgba(7, 14, 26, 0.92));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.site-footer__title {
  margin: 0;
  font-weight: 700;
}

.site-footer__copy {
  margin: 0.35rem 0 0;
  max-width: 54ch;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.9rem;
}

.page-grid .panel .panel__head p:last-child {
  margin-bottom: 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero__copy,
.hero__panel,
.panel {
  background: linear-gradient(180deg, rgba(16, 29, 49, 0.75), rgba(9, 19, 34, 0.88));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero__copy {
  padding: 1.25rem 1.25rem 1.1rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-2);
  font: 500 0.8rem/1.2 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  line-height: 1.02;
  font-size: clamp(2rem, 4vw, 3.5rem);
  max-width: 13ch;
}

.hero__subtitle {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.45;
  max-width: 62ch;
}

.hero__panel {
  padding: 1.15rem;
}

.hero__panel-title {
  margin: 0 0 0.6rem;
  font-weight: 600;
}

.hero__panel ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.4;
}

.hero__logo-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 1.15rem 1rem;
  background:
    radial-gradient(circle at 18% 20%, rgba(84, 210, 177, 0.18), transparent 48%),
    radial-gradient(circle at 82% 18%, rgba(255, 116, 72, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(16, 29, 49, 0.82), rgba(9, 19, 34, 0.92));
}

.hero__logo-orb {
  width: min(190px, 75%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, rgba(84, 210, 177, 0.12), transparent 55%),
    radial-gradient(circle at 70% 68%, rgba(255, 116, 72, 0.12), transparent 58%),
    rgba(5, 12, 22, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 16px 34px rgba(0, 0, 0, 0.26);
}

.hero__logo-orb svg {
  width: 84%;
  height: 84%;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.hero__logo-wordmark {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero__logo-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.35;
  max-width: 28ch;
}

.layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1rem;
  align-items: start;
}

.app-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 22% 18%, rgba(84, 210, 177, 0.12), transparent 44%),
    radial-gradient(circle at 82% 16%, rgba(255, 116, 72, 0.14), transparent 40%),
    rgba(3, 8, 16, 0.62);
  backdrop-filter: blur(6px);
}

.app-loading-overlay[hidden] {
  display: none;
}

.app-loading-overlay__panel {
  width: min(420px, calc(100% - 1rem));
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(14, 25, 42, 0.94), rgba(8, 17, 29, 0.96));
  box-shadow: var(--shadow);
  padding: 1rem 1rem 0.95rem;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.5rem;
}

.app-loading-overlay__spinner {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
}

.app-loading-overlay__ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid transparent;
}

.app-loading-overlay__ring--outer {
  border-top-color: rgba(84, 210, 177, 0.95);
  border-right-color: rgba(84, 210, 177, 0.45);
  filter: drop-shadow(0 0 10px rgba(84, 210, 177, 0.3));
  animation: spin 1100ms linear infinite;
}

.app-loading-overlay__ring--inner {
  inset: 9px;
  border-bottom-color: rgba(255, 116, 72, 0.95);
  border-left-color: rgba(255, 116, 72, 0.45);
  filter: drop-shadow(0 0 10px rgba(255, 116, 72, 0.22));
  animation: spin-rev 900ms linear infinite;
}

.app-loading-overlay__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), #b8ffea);
  box-shadow: 0 0 0 5px rgba(84, 210, 177, 0.08), 0 0 14px rgba(84, 210, 177, 0.35);
  animation: pulse 1100ms ease-in-out infinite;
}

.app-loading-overlay__title {
  margin: 0.1rem 0 0;
  font-weight: 700;
  font-size: 1rem;
}

.app-loading-overlay__message {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.35;
  max-width: 32ch;
}

.panel {
  padding: 1rem;
}

.panel--sticky {
  position: sticky;
  top: 1rem;
}

.panel__head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.panel__head p {
  margin: 0.3rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel__head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.form-section {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 14px;
  padding: 0.75rem;
  display: grid;
  gap: 0.7rem;
}

.form-section__head h3 {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  line-height: 1.2;
}

.form-section__eyebrow {
  margin: 0;
  color: var(--muted);
  font: 500 0.68rem/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-fields {
  display: grid;
  gap: 0.7rem;
}

.form-fields--two {
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  align-items: end;
}

.form-route-button {
  justify-self: start;
}

.form-hint {
  margin: -0.15rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.form-actions {
  display: grid;
  gap: 0.5rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: #dbe8f8;
  font-size: 0.92rem;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 13, 24, 0.85);
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  font: inherit;
}

input:focus,
select:focus,
.button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.button {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: 600 0.9rem/1 "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.button--compact {
  padding: 0.6rem 0.75rem;
  font-size: 0.82rem;
}

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

.button--primary {
  background: linear-gradient(135deg, var(--accent), #ff9d5c);
  color: #1b0b05;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}

.cards {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.compare-tray {
  margin-bottom: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.01));
  padding: 0.75rem;
}

.compare-tray.is-empty {
  background: rgba(255, 255, 255, 0.012);
}

.compare-tray__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.compare-tray__actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.compare-tray__actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.compare-tray__eyebrow {
  margin: 0;
  color: var(--muted);
  font: 500 0.7rem/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.compare-tray__head h3 {
  margin: 0.28rem 0 0;
  font-size: 0.95rem;
}

.compare-tray__list {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.45rem;
}

.compare-tray__empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.compare-pill {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.45rem 0.55rem;
}

.compare-pill__remove:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.compare-pill__title {
  margin: 0;
  font-size: 0.83rem;
  font-weight: 700;
}

.compare-pill__meta {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.compare-pill__stats {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.compare-pill__stat {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  color: #dce9f9;
  font-size: 0.69rem;
  line-height: 1;
}

.compare-pill__stat--fit {
  border-color: rgba(84, 210, 177, 0.22);
  background: rgba(84, 210, 177, 0.08);
  color: #b8ffea;
}

.compare-pill__remove {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  font-size: 0.75rem;
}

.compare-modal {
  --text: #233655;
  --muted: #5f7189;
  --line: #d2dbe8;
  width: min(1220px, calc(100% - 1rem));
  border: 1px solid #d2dbe8;
  border-radius: 18px;
  padding: 0;
  background: linear-gradient(180deg, #ffffff, #f5f8fc);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 12px 28px rgba(16, 24, 40, 0.12);
}

.compare-modal::backdrop {
  background: rgba(236, 242, 249, 0.78);
  backdrop-filter: blur(3px);
}

.compare-modal__chrome {
  display: grid;
  gap: 0.95rem;
  margin: 0;
  padding: 0.95rem;
}

.compare-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #dbe4ef;
}

.compare-modal__eyebrow {
  margin-bottom: 0.35rem;
  color: #4e6382;
}

.compare-modal__head h3 {
  margin: 0;
  font-size: 1.16rem;
  color: #24385a;
}

.compare-modal__status {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  max-width: 72ch;
}

.compare-modal__content {
  display: grid;
  gap: 1rem;
}

.compare-modal__empty {
  margin: 0;
  color: var(--muted);
  border: 1px dashed #cfd8e5;
  border-radius: 12px;
  padding: 0.8rem;
  background: #f9fbfe;
}

.compare-modal__summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.9rem;
}

.compare-modal__bike {
  border: 1px solid #d8e1ed;
  background: #ffffff;
  border-radius: 14px;
  padding: 0.8rem;
  display: grid;
  gap: 0.7rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.compare-modal__bike-hero {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.7rem;
  align-items: start;
}

.compare-modal__bike-media {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d7e0ec;
  background:
    linear-gradient(140deg, rgba(79, 131, 216, 0.12), transparent 52%),
    linear-gradient(320deg, rgba(239, 122, 43, 0.12), transparent 48%),
    #eef4fb;
}

.compare-modal__bike-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compare-modal__bike-media-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #61748f;
  font-size: 0.78rem;
}

.compare-modal__bike-head h4 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.2;
  color: #253a5c;
}

.compare-modal__bike-meta {
  margin: 0.25rem 0 0;
  color: #5f7189;
  font-size: 0.77rem;
}

.compare-modal__bike-badges {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.compare-modal__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  border: 1px solid #cfd9e8;
  background: #f7faff;
  color: #375074;
  font-size: 0.7rem;
  font-weight: 600;
}

.compare-modal__badge--fit {
  border-color: #98badf;
  background: #e8f1ff;
  color: #2a5488;
}

.compare-modal__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.compare-modal__notes {
  border: 1px solid #d6e0ec;
  background: #f8fbff;
  border-radius: 10px;
  padding: 0.55rem;
}

.compare-modal__notes--pro {
  border-left: 3px solid #4c9f56;
}

.compare-modal__notes--warn {
  border-left: 3px solid #e2a03f;
}

.compare-modal__notes-title {
  margin: 0;
  color: #2d7f43;
  font: 600 0.7rem/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.compare-modal__notes-title--warn {
  color: #9b6f1f;
}

.compare-modal__notes-list {
  margin: 0.45rem 0 0;
  display: grid;
  gap: 0.35rem;
}

.compare-modal__note-item {
  margin: 0;
  border-radius: 8px;
  padding: 0.38rem 0.45rem;
  border: 1px solid #d4deeb;
  background: #ffffff;
  color: #2f486b;
  font-size: 0.75rem;
  line-height: 1.3;
}

.compare-modal__notes-empty {
  margin: 0.45rem 0 0;
  color: #637792;
  font-size: 0.75rem;
  line-height: 1.3;
}

.compare-modal__table-wrap {
  border: 1px solid #d8e1ed;
  background: #ffffff;
  border-radius: 12px;
  overflow: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.compare-modal__table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.compare-modal__table th,
.compare-modal__table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid #e2e9f3;
  vertical-align: top;
  color: #2f4467;
}

.compare-modal__table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf3fa;
  text-align: left;
}

.compare-modal__table tbody th {
  color: #5a6c84;
  font-weight: 600;
  width: 220px;
  background: #f8fbff;
}

.compare-modal__table-colhead {
  display: block;
  font-weight: 700;
  color: #23395b;
  line-height: 1.25;
}

.compare-modal__value {
  color: #2e4468;
  white-space: nowrap;
}

.compare-modal__value.is-best {
  color: #2f7d42;
  font-weight: 700;
}

.compare-modal__value.is-worst {
  color: #9a6f25;
}

.compare-modal__subhead {
  display: block;
  margin-top: 0.25rem;
  color: #6c8098;
  font-size: 0.72rem;
  font-weight: 400;
}

.bike-detail-modal {
  width: min(1100px, calc(100% - 1rem));
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.bike-detail-modal::backdrop {
  background: rgba(3, 8, 16, 0.72);
  backdrop-filter: blur(4px);
}

.bike-detail-modal__chrome {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 29, 49, 0.98), rgba(9, 19, 34, 0.98));
  box-shadow: var(--shadow);
  transform-origin: center top;
}

.bike-detail-modal.is-animating-in .bike-detail-modal__chrome {
  animation: bikeDetailModalIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bike-detail-modal.is-animating-in::backdrop {
  animation: bikeDetailBackdropIn 180ms ease;
}

.bike-detail-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.bike-detail-modal__eyebrow {
  margin-bottom: 0.35rem;
}

.bike-detail-modal__head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.bike-detail-modal__status {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.bike-detail-modal__content {
  max-height: min(74dvh, 780px);
  overflow: auto;
  padding-right: 0.15rem;
}

.bike-detail-modal__content .bike-card {
  cursor: default;
  box-shadow: none;
}

.bike-detail-modal__content .bike-card__media {
  aspect-ratio: 16 / 8;
}

@keyframes bikeDetailModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bikeDetailBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  color: var(--muted);
}

.empty-state h3 {
  margin: 0 0 0.35rem;
  color: var(--text);
}

.bike-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  background: linear-gradient(180deg, rgba(19, 34, 57, 0.95), rgba(10, 20, 35, 0.96));
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.bike-card[data-expandable="true"] {
  cursor: pointer;
}

.bike-card[data-expandable="true"]:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.bike-card.is-expanded {
  border-color: rgba(84, 210, 177, 0.28);
}

.bike-card[data-expandable="true"]:not(.is-expanded) {
  grid-template-rows: auto;
}

.bike-card[data-expandable="true"]:not(.is-expanded) .score-badge,
.bike-card[data-expandable="true"]:not(.is-expanded) .bike-card__body,
.bike-card[data-expandable="true"]:not(.is-expanded) .bike-card__gallery,
.bike-card[data-expandable="true"]:not(.is-expanded) .bike-card__links {
  display: none;
}

.bike-card[data-expandable="true"]:not(.is-expanded) .bike-card__media {
  aspect-ratio: 16 / 8.8;
}

.bike-card[data-expandable="true"]:not(.is-expanded) .bike-card__top {
  padding: 0.95rem 0.95rem 1rem;
}

.bike-card[data-expandable="true"]:not(.is-expanded) .bike-card__title {
  font-size: 1rem;
}

.bike-card[data-expandable="true"]:not(.is-expanded) .bike-card__meta {
  margin-top: 0.3rem;
  color: #dbe8f8;
  font-weight: 600;
}

.bike-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(150deg, rgba(84, 210, 177, 0.15), transparent 55%),
    linear-gradient(330deg, rgba(255, 116, 72, 0.14), transparent 52%),
    rgba(5, 12, 22, 0.95);
  border-bottom: 1px solid var(--line);
}

.bike-card__compare-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 13, 24, 0.72);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  font: 700 1.05rem/1 "Space Grotesk", sans-serif;
  backdrop-filter: blur(6px);
}

.bike-card__compare-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.bike-card__compare-btn.is-active {
  background: rgba(84, 210, 177, 0.16);
  color: #b8ffea;
  border-color: rgba(84, 210, 177, 0.35);
}

.bike-card__media img,
.bike-card__media model-viewer {
  width: 100%;
  height: 100%;
  display: block;
}

.bike-card__media-3d {
  width: 100%;
  height: 100%;
  position: relative;
  display: grid;
  place-items: stretch;
  touch-action: none;
  cursor: grab;
}

.bike-card__media-3d canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.bike-card__media-3d:active {
  cursor: grabbing;
}

.bike-card__viewer-hint {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  border: 1px solid rgba(84, 210, 177, 0.2);
  background: rgba(6, 14, 25, 0.68);
  color: #c7fff1;
  font: 500 0.62rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.03em;
}

.bike-card__viewer-hint--error {
  border-color: rgba(255, 209, 102, 0.25);
  color: #ffe4a4;
}

.bike-card__media-3d.is-loading::after {
  content: "Loading 3D preview...";
  position: absolute;
  inset: auto 0.65rem 0.65rem auto;
  color: var(--muted);
  font: 500 0.7rem/1 "IBM Plex Mono", monospace;
}

.bike-card__media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.bike-card__expand-hint {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 14, 25, 0.72);
  color: #e5edf8;
  font: 500 0.62rem/1 "IBM Plex Mono", monospace;
}

.bike-card__top {
  padding: 0.9rem 0.95rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bike-card__title {
  margin: 0;
  font-size: 1.05rem;
}

.bike-card__meta {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(84, 210, 177, 0.26);
  background: rgba(84, 210, 177, 0.11);
  color: #b8ffea;
  padding: 0.28rem 0.55rem;
  font: 500 0.76rem/1 "IBM Plex Mono", monospace;
}

.bike-card__body {
  padding: 0.55rem 0.95rem 0.85rem;
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.quick-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.quick-spec {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.018);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  font-size: 0.74rem;
  color: #dbe8f8;
}

.quick-spec strong {
  color: var(--text);
}

.stat-bars {
  display: grid;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.01));
  border-radius: 12px;
  padding: 0.65rem;
}

.stat-row {
  display: grid;
  gap: 0.2rem;
}

.stat-row__head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.74rem;
}

.stat-row__label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-row__value {
  color: #d8fdf4;
  font: 500 0.72rem/1 "IBM Plex Mono", monospace;
}

.stat-row__track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.stat-row__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), #8ce6cf 55%, #ffe082);
}

.fit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-bottom: 0.05rem;
}

.reviews__note {
  margin: 0;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-left: 2px solid rgba(84, 210, 177, 0.2);
  background: rgba(255, 255, 255, 0.014);
  color: #d6e5f8;
  font-size: 0.75rem;
  line-height: 1.35;
}

.tag {
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbe8f8;
  background: rgba(255, 255, 255, 0.03);
}

.tag--warn {
  border-color: rgba(255, 209, 102, 0.18);
  background: rgba(255, 209, 102, 0.08);
  color: #ffe4a4;
}

.reviews {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.15rem;
  padding-top: 0.65rem;
}

.reviews__title {
  margin: 0 0 0.45rem;
  font: 600 0.76rem/1 "IBM Plex Mono", monospace;
  color: #c8d8ec;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reviews__list {
  display: grid;
  gap: 0.45rem;
}

.review {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.018);
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
}

.review--empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.review__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  border: 1px solid rgba(84, 210, 177, 0.2);
  background: rgba(84, 210, 177, 0.08);
  color: #b8ffea;
  font: 500 0.68rem/1 "IBM Plex Mono", monospace;
}

.review__badge--watch {
  border-color: rgba(255, 209, 102, 0.22);
  background: rgba(255, 209, 102, 0.08);
  color: #ffe4a4;
}

.review__source-link {
  border-radius: 999px;
  border: 1px solid rgba(196, 214, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  background: rgba(10, 21, 35, 0.65);
  font: 500 0.66rem/1 "IBM Plex Mono", monospace;
  line-height: 1;
  padding: 0.24rem 0.46rem;
}

.review__source-link:hover {
  border-color: rgba(84, 210, 177, 0.8);
  color: #b8ffe9;
}

.review__text {
  margin: 0.35rem 0 0;
  color: #e5edf8;
  font-size: 0.78rem;
  line-height: 1.35;
}

.bike-card__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.55rem;
  padding: 0.8rem 0.9rem 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.01);
}

.bike-card__gallery {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 0.9rem 0.55rem;
  display: grid;
  gap: 0.55rem;
}

.bike-card__gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.bike-card__gallery-head .reviews__title {
  margin: 0;
}

.bike-card__gallery-count {
  color: var(--muted);
  font: 500 0.72rem/1 "IBM Plex Mono", monospace;
}

.bike-card__carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
}

.bike-card__carousel-stage {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  min-height: 180px;
}

.bike-card__carousel-slide {
  margin: 0;
}

.bike-card__carousel-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: rgba(6, 13, 24, 0.7);
}

.bike-card__carousel-caption {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  background: rgba(7, 14, 26, 0.88);
  color: #dbe8f8;
  font-size: 0.74rem;
}

.bike-card__carousel-caption a {
  color: #b8ffea;
  text-decoration: none;
  font-weight: 600;
}

.bike-card__carousel-nav {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font: 700 1rem/1 "Space Grotesk", sans-serif;
  cursor: pointer;
}

.bike-card__carousel-nav:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.bike-card__carousel-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 0.35rem;
}

.bike-card__carousel-thumb {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.bike-card__carousel-thumb img {
  width: 100%;
  height: 42px;
  object-fit: cover;
  display: block;
}

.bike-card__carousel-thumb.is-active {
  border-color: rgba(84, 210, 177, 0.45);
  box-shadow: inset 0 0 0 1px rgba(84, 210, 177, 0.25);
}

.link-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.link-btn:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.route-modal {
  --text: #233655;
  --muted: #5f7189;
  --line: #d2dbe8;
  width: min(900px, calc(100% - 1rem));
  border: 1px solid #d2dbe8;
  border-radius: 18px;
  padding: 0;
  background: linear-gradient(180deg, #ffffff, #f5f8fc);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 12px 28px rgba(16, 24, 40, 0.12);
}

.route-modal::backdrop {
  background: rgba(236, 242, 249, 0.78);
  backdrop-filter: blur(3px);
}

.route-modal__chrome {
  position: relative;
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0.9rem;
}

.route-modal__chrome > .app-loading-overlay[data-scope="route-modal"] {
  position: absolute;
  inset: 0;
  z-index: 30;
  border-radius: inherit;
  padding: 0.8rem;
  background:
    radial-gradient(circle at 22% 18%, rgba(84, 210, 177, 0.12), transparent 44%),
    radial-gradient(circle at 82% 16%, rgba(255, 116, 72, 0.14), transparent 40%),
    rgba(3, 8, 16, 0.56);
}

.route-modal__chrome > .app-loading-overlay[data-scope="route-modal"] .app-loading-overlay__panel {
  width: min(400px, calc(100% - 1rem));
}

.route-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.route-modal__head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.route-modal__eyebrow {
  margin-bottom: 0.35rem;
}

.route-modal__status {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.route-modal__map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: min(55vh, 460px);
  border-radius: 14px;
  border: 1px solid #d2dbe8;
  overflow: hidden;
  background: #edf3fb;
}

.route-modal__map .leaflet-bar.route-modal__geoapify {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.route-modal__map .route-modal__geoapify .geoapify-address-input {
  width: min(40vw, 290px);
  height: 38px;
  border: 1px solid #cfd9e8;
  border-radius: 10px;
  background: #ffffff;
  color: #274066;
  padding: 0.48rem 0.58rem;
  font: 500 0.82rem/1.1 "Space Grotesk", sans-serif;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.14);
}

.route-modal__map .route-modal__geoapify .geoapify-address-input::placeholder {
  color: #607592;
}

.route-modal__map .route-modal__geoapify .geoapify-address-input:focus {
  outline: 2px solid rgba(79, 131, 216, 0.35);
  outline-offset: 2px;
  border-color: #8cb0de;
}

.route-modal__map .route-modal__geoapify .geoapify-address-button,
.route-modal__map .route-modal__geoapify .geoapify-address-clear-button {
  border: 1px solid #cfd9e8;
  background: #ffffff;
  color: #304b72;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.14);
}

.route-modal__map .route-modal__geoapify .geoapify-autocomplete-items {
  border: 1px solid #d2dbe8;
  border-radius: 10px;
  background: #ffffff;
  color: #2d4165;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.14);
  overflow: hidden;
}

.route-modal__map .route-modal__geoapify .geoapify-autocomplete-item {
  border-bottom: 1px solid #e6edf6;
  font: 500 0.78rem/1.35 "Space Grotesk", sans-serif;
  padding: 0.5rem 0.58rem;
}

.route-modal__map .route-modal__geoapify .geoapify-autocomplete-item:last-child {
  border-bottom: 0;
}

.route-modal__map .route-modal__geoapify .geoapify-autocomplete-item:hover,
.route-modal__map .route-modal__geoapify .geoapify-autocomplete-item.active {
  background: rgba(79, 131, 216, 0.12);
}

.route-modal__map .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.92);
  color: #657892;
}

.route-modal__map .leaflet-control-attribution a {
  color: #32568b;
}

.route-modal__controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.route-modal__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: #2f4468;
}

.route-modal__toggle input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent-2);
}

.route-modal__summary {
  display: grid;
  justify-items: center;
  gap: 0.12rem;
  border: 1px solid #d2dbe8;
  background: #ffffff;
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
}

.route-modal__summary-label {
  color: var(--muted);
  font: 500 0.7rem/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.route-modal__summary strong {
  font-size: 1rem;
}

.route-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .panel--sticky {
    position: static;
  }

  .form-fields--two {
    grid-template-columns: 1fr;
  }

  .form-route-button {
    width: 100%;
    justify-self: stretch;
  }

  .route-modal {
    width: calc(100% - 0.5rem);
    max-height: calc(100dvh - 0.5rem);
  }

  .route-modal__chrome {
    padding: 0.7rem;
  }

  .route-modal__head {
    flex-direction: column;
    align-items: stretch;
  }

  .route-modal__controls {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .route-modal__summary {
    justify-items: start;
  }

  .route-modal__actions {
    justify-content: stretch;
  }

  .route-modal__actions .button {
    flex: 1 1 0;
  }

  .compare-tray__head {
    flex-direction: column;
    align-items: stretch;
  }

  .compare-tray__actions {
    justify-content: stretch;
  }

  .compare-tray__actions .button {
    flex: 1 1 0;
  }

  .compare-modal {
    width: calc(100% - 0.5rem);
    max-height: calc(100dvh - 0.5rem);
  }

  .compare-modal__chrome {
    padding: 0.7rem;
  }

  .compare-modal__head {
    flex-direction: column;
    align-items: stretch;
  }

  .compare-modal__columns {
    grid-template-columns: 1fr;
  }

  .compare-modal__bike-hero {
    grid-template-columns: 1fr;
  }

  .compare-modal__bike-media {
    aspect-ratio: 16 / 9;
  }

  .bike-detail-modal {
    width: calc(100% - 0.5rem);
    max-height: calc(100dvh - 0.5rem);
  }

  .bike-detail-modal__chrome {
    padding: 0.7rem;
  }

  .bike-detail-modal__head {
    flex-direction: column;
    align-items: stretch;
  }

  .bike-detail-modal__content {
    max-height: calc(100dvh - 9rem);
  }

  .bike-card__carousel {
    grid-template-columns: 1fr;
  }

  .bike-card__carousel-nav {
    width: 100%;
    height: auto;
    border-radius: 10px;
    padding: 0.4rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .bike-card {
    animation: rise 320ms ease both;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  @keyframes spin-rev {
    to {
      transform: rotate(-360deg);
    }
  }

  @keyframes pulse {
    0%,
    100% {
      transform: scale(0.92);
      opacity: 0.92;
    }
    50% {
      transform: scale(1.08);
      opacity: 1;
    }
  }
}

/* Designer Refresh (Commute UI Mockup) */
:root {
  --bg: #edf1f5;
  --bg-alt: #f6f8fb;
  --card: #ffffff;
  --line: #d7dee8;
  --text: #223350;
  --muted: #607086;
  --accent: #ef7a2b;
  --accent-2: #4f83d8;
  --warning: #f0ad4e;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 10px 24px rgba(16, 24, 40, 0.06);
}

body {
  font-family: "Barlow", "Space Grotesk", system-ui, sans-serif;
  color: var(--text);
  background: #e9edf2;
}

.app-shell {
  width: min(1220px, calc(100% - 1.5rem));
  margin: 1.4rem auto 2rem;
}

.hero {
  grid-template-columns: 1fr 1.28fr;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.hero__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.05rem 1.1rem;
  position: relative;
  overflow: hidden;
}

.hero__card h1,
.hero__card h2 {
  margin: 0;
  color: #243657;
}

.hero__card h1 {
  font-size: clamp(1.75rem, 2.2vw, 2.3rem);
  line-height: 1.08;
  max-width: 17ch;
}

.hero__card h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.08;
}

.hero__divider {
  height: 1px;
  margin: 0.52rem 0 0.72rem;
  background: #e3e8f0;
}

.hero__subtitle {
  margin: 0;
  color: #435572;
  font-size: 1.03rem;
  line-height: 1.4;
  max-width: 40ch;
}

.hero__cta {
  margin-top: 1.05rem;
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}

.hero__card--intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__card--how {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(290px, 50%);
  align-items: stretch;
  gap: 0.7rem;
  overflow: hidden;
  padding-right: 0;
}

.hero__how-content {
  position: relative;
  z-index: 3;
}

.hero__steps {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.58rem;
}

.hero__steps li {
  display: flex;
  gap: 0.52rem;
  align-items: baseline;
  font-size: 1.02rem;
  font-weight: 700;
  color: #2a3d5f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34);
}

.hero__steps li span {
  color: #f0892f;
  font-weight: 800;
  min-width: 1.2rem;
}

.hero__bike-art {
  position: relative;
  min-height: 190px;
  margin: -1.05rem 0;
  border-radius: 0 12px 12px 0;
  border: 0;
  background: #edf1f6;
  overflow: hidden;
  z-index: 1;
}

.hero__bike-map {
  position: absolute;
  inset: 0;
  background-image: url("./src/assets/hero-map.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.72;
  filter: saturate(0.86) contrast(1.03) brightness(1.02);
}

.hero__bike-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0 24%, rgba(255, 255, 255, 0.78) 40%, rgba(255, 255, 255, 0.36) 60%, rgba(255, 255, 255, 0.12) 76%, rgba(255, 255, 255, 0) 100%);
  z-index: 1;
}

.hero__bike-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  z-index: 2;
}

.layout {
  grid-template-columns: minmax(320px, 360px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.panel,
.hero__copy,
.hero__panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.panel {
  padding: 0.75rem;
}

.panel__head {
  padding: 0.1rem 0.05rem 0.45rem;
}

.panel__head h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #283d61;
}

.panel__head p {
  margin: 0.35rem 0 0;
  color: #5e7088;
  font-size: 0.96rem;
}

.panel__head--row {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-grid {
  gap: 0.45rem;
}

.form-section {
  border: 0;
  border-radius: 0;
  padding: 0.45rem 0;
  background: transparent;
  gap: 0.45rem;
}

.form-section + .form-section {
  border-top: 1px solid #e1e7ef;
}

.form-section__head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #2b4064;
}

.form-section__eyebrow {
  display: none;
}

label {
  font-size: 0.96rem;
  color: #334866;
  gap: 0.28rem;
}

input,
select {
  border: 1px solid #cad4e2;
  background: #f8fafc;
  color: #293c5e;
  border-radius: 7px;
  padding: 0.56rem 0.64rem;
}

.button {
  border-radius: 7px;
  border-color: transparent;
  font-family: "Barlow", sans-serif;
  font-weight: 700;
}

.button--primary {
  color: #fff;
  background: linear-gradient(180deg, #ef8a38, #de6d1f);
}

.button--ghost {
  color: #2b4165;
  background: #f2f5f9;
  border: 1px solid #cfd8e4;
}

.form-actions .button--primary {
  padding-inline: 1.2rem;
  width: 100%;
  justify-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-route-button {
  width: 100%;
  justify-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.results-toolbar {
  margin: 0.2rem 0 0.8rem;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #f6f8fb;
  padding: 0.45rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.results-toolbar__dots {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.results-toolbar__dots[hidden] {
  display: none;
}

.results-toolbar__pages-label {
  margin-right: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #66758b;
}

.results-toolbar__dot {
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #c8d3e0;
  padding: 0 0.55rem;
  background: #ffffff;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease;
  color: #58687e;
  font-size: 0.9rem;
  font-weight: 700;
}

.results-toolbar__dot:hover,
.results-toolbar__dot:focus-visible {
  background: #edf2f7;
  transform: scale(1.08);
}

.results-toolbar__dot:focus-visible {
  outline: 2px solid #f08d30;
  outline-offset: 2px;
}

.results-toolbar__dot.is-active {
  background: #f08d30;
  border-color: #f08d30;
  color: #fff;
  cursor: default;
  transform: none;
}

.results-toolbar__sort {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: #5a6a80;
}

.results-toolbar__sort select {
  width: auto;
  min-width: 150px;
  padding: 0.42rem 0.55rem;
  background: #fff;
}

.compare-tray {
  margin-bottom: 0.75rem;
  border: 1px solid #dde4ed;
  border-radius: 8px;
  background: #fbfcfd;
}

.compare-tray.is-empty {
  display: none;
}

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

.bike-card {
  background: #fff;
  border: 1px solid #d5dde7;
  border-radius: 8px;
  box-shadow: var(--shadow);
  grid-template-rows: auto auto auto auto auto;
}

.bike-card[data-expandable="true"]:not(.is-expanded) {
  grid-template-rows: auto auto auto auto auto;
}

.bike-card[data-expandable="true"]:not(.is-expanded) .bike-card__body,
.bike-card[data-expandable="true"]:not(.is-expanded) .bike-card__action-row,
.bike-card[data-expandable="true"]:not(.is-expanded) .bike-card__summary-line {
  display: block;
}

.bike-card[data-expandable="true"]:not(.is-expanded) .bike-card__media {
  aspect-ratio: 16 / 9.4;
}

.bike-card__media {
  border-bottom: 1px solid #d7e0ea;
  background: #e8eef5;
  aspect-ratio: 16 / 9.8;
}

.bike-card__media img,
.bike-card__media model-viewer {
  object-fit: cover;
}

.bike-card__ribbon {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  max-width: calc(100% - 1.2rem);
  border-radius: 10px;
  padding: 0.52rem 0.64rem 0.5rem;
  background: rgba(15, 25, 40, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  gap: 0.34rem;
}

.bike-card__title {
  margin: 0;
  font-size: 1.68rem;
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.bike-card__type-pill {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.22rem 0.56rem;
  border: 1px solid transparent;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bike-card__type-pill--highway {
  background: rgba(63, 128, 212, 0.95);
  border-color: rgba(177, 212, 255, 0.72);
}

.bike-card__type-pill--commute {
  background: rgba(238, 122, 43, 0.95);
  border-color: rgba(255, 212, 174, 0.76);
}

.bike-card__type-pill--dirt {
  background: rgba(77, 156, 88, 0.95);
  border-color: rgba(188, 233, 194, 0.74);
}

.bike-card__type-pill--weekend {
  background: rgba(235, 104, 77, 0.94);
  border-color: rgba(255, 207, 198, 0.74);
}

.bike-card__type-pill--balanced {
  background: rgba(86, 105, 132, 0.94);
  border-color: rgba(213, 223, 238, 0.76);
}

.bike-card__body--preview {
  padding: 0.55rem 0.8rem 0.1rem;
}

.bike-card__match {
  margin: 0;
  font-size: 1.45rem;
  color: #2c3f62;
  font-weight: 700;
}

.bike-card__match strong {
  color: #f0892f;
}

.bike-card__match em {
  color: #f0892f;
  font-style: italic;
  font-size: 1.02rem;
}

.bike-card__pros {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.23rem;
}

.bike-card__pros li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #314660;
  font-size: 0.95rem;
  font-weight: 500;
}

.bike-card__pros li::before {
  content: "✓";
  color: #4c9f56;
  font-weight: 700;
}

.bike-card__summary-line {
  margin-top: 0.5rem;
  border-top: 1px solid #e0e7f0;
  padding: 0.46rem 0.8rem 0.5rem;
  font-size: 0.95rem;
  color: #4a5d79;
  display: flex;
  gap: 0.52rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.bike-card__summary-line strong {
  color: #2d4164;
  font-weight: 700;
}

.bike-card__action-row {
  padding: 0 0.8rem 0.78rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.bike-card__view-action,
.bike-card__compare-action {
  width: 100%;
}

.bike-card__compare-action.is-active {
  background: #e8f1ff;
  border-color: #96b6e6;
  color: #2f4f80;
}

.bike-card__detail-content {
  display: none;
  border-top: 1px solid #e4eaf2;
  padding: 0.7rem 0.8rem 0.8rem;
  background: #f9fbfd;
  color: #2c4163;
  line-height: 1.45;
}

.bike-card.is-expanded .bike-card__detail-content {
  display: grid;
  gap: 0.65rem;
}

.bike-detail-modal__content .bike-card {
  grid-template-rows: auto auto auto auto auto;
}

.bike-detail-modal__content .bike-card__view-action {
  display: none;
}

.bike-detail-modal__content .bike-card__detail-content {
  display: grid;
}

.bike-card__detail-content .reviews {
  border-top: 1px solid #d8e1ed;
}

.bike-card__detail-content .reviews__title {
  color: #2f486d;
}

.bike-card__detail-content .reviews__note {
  border: 1px solid #d5deea;
  border-left: 3px solid #4f83d8;
  background: #ffffff;
  color: #334b6d;
}

.bike-card__detail-content .review {
  border: 1px solid #d3dce9;
  background: #ffffff;
}

.bike-card__detail-content .review__text {
  color: #304868;
}

.bike-card__detail-content .review__badge {
  border-color: #aad2b5;
  background: #e9f6ed;
  color: #2f7d42;
}

.bike-card__detail-content .review__badge--watch {
  border-color: #efcf92;
  background: #fff5e2;
  color: #9b6f1f;
}

.bike-card__detail-content .review__source-link {
  border-color: #c5d2e3;
  background: #f8fbff;
  color: #2f4a72;
}

.bike-card__detail-content .review__source-link:hover {
  border-color: #4f83d8;
  color: #1f3c66;
  background: #edf4ff;
}

.bike-card__links {
  padding: 0;
  border-top: 0;
  background: transparent;
}

.link-btn {
  border-radius: 7px;
  border: 1px solid #c8d2df;
  color: #2e4266;
  background: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.58rem 0.62rem;
}

.seo-content {
  display: none;
}

.bike-detail-modal {
  --text: #f4f7fb;
  --muted: #aac0dd;
  --line: rgba(196, 214, 255, 0.16);
}

.app-loading-overlay {
  background:
    radial-gradient(circle at 18% 16%, rgba(79, 131, 216, 0.12), transparent 44%),
    radial-gradient(circle at 82% 14%, rgba(239, 122, 43, 0.11), transparent 40%),
    rgba(235, 241, 248, 0.76);
  backdrop-filter: blur(3px);
}

.app-loading-overlay__panel {
  border: 1px solid #d2dbe8;
  background: linear-gradient(180deg, #ffffff, #f6f9fc);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 12px 28px rgba(16, 24, 40, 0.12);
  color: #233655;
}

.app-loading-overlay__title {
  color: #243657;
}

.app-loading-overlay__message {
  color: #5f7189;
}

.app-loading-overlay__ring--outer {
  border-top-color: rgba(79, 131, 216, 0.95);
  border-right-color: rgba(79, 131, 216, 0.38);
  filter: drop-shadow(0 0 8px rgba(79, 131, 216, 0.25));
}

.app-loading-overlay__ring--inner {
  border-bottom-color: rgba(239, 122, 43, 0.92);
  border-left-color: rgba(239, 122, 43, 0.36);
  filter: drop-shadow(0 0 8px rgba(239, 122, 43, 0.22));
}

.app-loading-overlay__dot {
  background: linear-gradient(135deg, #4f83d8, #92c6ff);
  box-shadow: 0 0 0 5px rgba(79, 131, 216, 0.1), 0 0 12px rgba(79, 131, 216, 0.24);
}

.route-modal__chrome > .app-loading-overlay[data-scope="route-modal"] {
  background:
    radial-gradient(circle at 18% 16%, rgba(79, 131, 216, 0.12), transparent 44%),
    radial-gradient(circle at 82% 14%, rgba(239, 122, 43, 0.11), transparent 40%),
    rgba(236, 242, 249, 0.78);
}

@media (max-width: 1180px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero__card--how {
    grid-template-columns: 1fr;
    padding-right: 1.1rem;
  }

  .hero__bike-art {
    min-height: 170px;
    margin: 0;
    border-radius: 10px;
  }
}

@media (max-width: 920px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .panel--sticky {
    position: static;
  }
}

@media (max-width: 720px) {
  .cards {
    grid-template-columns: 1fr;
  }

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

  .results-toolbar__sort {
    justify-content: space-between;
  }

  .hero__bike-art {
    min-height: 150px;
  }

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

  .route-modal__map .route-modal__geoapify .geoapify-address-input {
    width: min(72vw, 250px);
  }
}

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

.theme-toggle-wrap {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.7rem;
}

.theme-toggle {
  position: relative;
  width: 78px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 999px;
}

.theme-toggle:focus-visible {
  outline: 2px solid #4f83d8;
  outline-offset: 3px;
}

.theme-toggle__track {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border: 1px solid #bfcde1;
  background: linear-gradient(145deg, #f6f9ff, #dce8f8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 4px 14px rgba(37, 64, 103, 0.14);
  overflow: hidden;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.theme-toggle__icon {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  transition: opacity 220ms ease, transform 280ms ease;
}

.theme-toggle__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle__icon--sun {
  left: 11px;
  color: #ef8a38;
}

.theme-toggle__icon--sun svg {
  stroke: currentColor;
}

.theme-toggle__icon--sun svg circle {
  fill: currentColor;
  stroke: currentColor;
}

.theme-toggle__icon--moon {
  right: 12px;
  color: #4f83d8;
  opacity: 0.35;
  transform: translateY(-50%) scale(0.85);
}

.theme-toggle__icon--moon svg {
  fill: currentColor;
}

.theme-toggle__thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(111, 138, 171, 0.6);
  background: linear-gradient(180deg, #ffffff, #f3f7fd);
  box-shadow: 0 2px 7px rgba(25, 42, 68, 0.2);
  transition: transform 280ms cubic-bezier(0.22, 0.82, 0.3, 1);
}

.theme-toggle[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(38px);
}

.theme-toggle[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 0.38;
  transform: translateY(-50%) scale(0.82);
}

.theme-toggle[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle__track,
  .theme-toggle__icon,
  .theme-toggle__thumb {
    transition: none;
  }
}

body.theme-dark {
  --bg: #0f1726;
  --bg-alt: #172235;
  --card: #18263b;
  --line: rgba(170, 189, 219, 0.22);
  --text: #e6efff;
  --muted: #aabdd8;
  --accent: #ef8a38;
  --accent-2: #7db1ff;
  --warning: #f0ad4e;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 18px 36px rgba(0, 0, 0, 0.32);
  background:
    radial-gradient(circle at 14% 14%, rgba(125, 177, 255, 0.16), transparent 40%),
    radial-gradient(circle at 88% 10%, rgba(239, 138, 56, 0.15), transparent 36%),
    #0f1726;
  color: var(--text);
}

body.theme-dark .theme-toggle {
  background: transparent;
}

body.theme-dark .theme-toggle__track {
  border-color: #3d5579;
  background: linear-gradient(145deg, #1c2d46, #101e31);
  box-shadow: inset 0 1px 0 rgba(175, 198, 228, 0.2), 0 8px 16px rgba(0, 0, 0, 0.35);
}

body.theme-dark .theme-toggle__thumb {
  border-color: #52709a;
  background: linear-gradient(180deg, #253a59, #1a2c46);
}

body.theme-dark .theme-toggle:focus-visible {
  outline-color: #88b5ff;
}

body.theme-dark .hero__bike-art {
  background:
    radial-gradient(circle at 72% 34%, rgba(125, 177, 255, 0.2), transparent 55%),
    linear-gradient(180deg, #1a2b41, #122036);
}

body.theme-dark .hero__bike-map {
  opacity: 0.82;
  filter: saturate(0.72) brightness(0.78);
}

body.theme-dark .hero__bike-art::before {
  background:
    linear-gradient(90deg, rgba(17, 29, 46, 0.98) 0 24%, rgba(17, 29, 46, 0.78) 40%, rgba(17, 29, 46, 0.38) 60%, rgba(17, 29, 46, 0.14) 76%, rgba(17, 29, 46, 0) 100%);
}

body.theme-dark .hero__bike-art::after {
  background: linear-gradient(180deg, rgba(9, 18, 31, 0.38), rgba(9, 18, 31, 0.28));
}

body.theme-dark .hero__card,
body.theme-dark .panel,
body.theme-dark .results-toolbar,
body.theme-dark .compare-tray {
  background: linear-gradient(180deg, rgba(22, 35, 54, 0.98), rgba(17, 28, 44, 0.98));
  border-color: #2c415f;
  box-shadow: var(--shadow);
  color: var(--text);
}

body.theme-dark .hero__card h1,
body.theme-dark .hero__card h2,
body.theme-dark .panel__head h2,
body.theme-dark .bike-card__match,
body.theme-dark .bike-card__summary-line strong,
body.theme-dark .bike-card__detail-content .reviews__title {
  color: #e8f1ff;
}

body.theme-dark .hero__steps li {
  color: #dde9fb;
  text-shadow: none;
}

body.theme-dark .hero__steps li span {
  color: #ffb258;
  text-shadow: none;
}

body.theme-dark .hero__subtitle,
body.theme-dark .panel__head p,
body.theme-dark .results-toolbar__sort,
body.theme-dark label,
body.theme-dark .bike-card__pros li,
body.theme-dark .bike-card__summary-line,
body.theme-dark .bike-card__detail-content,
body.theme-dark .bike-card__detail-content .review__text,
body.theme-dark .compare-tray__empty,
body.theme-dark .compare-pill__meta,
body.theme-dark .app-loading-overlay__message {
  color: #afc2de;
}

body.theme-dark .hero__divider,
body.theme-dark .form-section + .form-section,
body.theme-dark .bike-card__summary-line,
body.theme-dark .bike-card__detail-content .reviews,
body.theme-dark .results-toolbar {
  border-color: #2f4665;
}

body.theme-dark input,
body.theme-dark select {
  border-color: #3b5271;
  background: #16253a;
  color: #e6efff;
}

body.theme-dark .button--ghost,
body.theme-dark .link-btn,
body.theme-dark .bike-card__compare-action {
  border-color: #3a5271;
  background: #1a2a42;
  color: #e6efff;
}

body.theme-dark .button--ghost:hover,
body.theme-dark .link-btn:hover,
body.theme-dark .bike-card__compare-action:hover {
  border-color: #6f96ca;
  background: #22344f;
}

body.theme-dark .results-toolbar__dot {
  border-color: #4f6787;
  background: #243752;
  color: #e6efff;
}

body.theme-dark .results-toolbar__dot.is-active {
  background: #f08d30;
  border-color: #f08d30;
}

body.theme-dark .results-toolbar__pages-label {
  color: #afc0d8;
}

body.theme-dark .bike-card,
body.theme-dark .compare-pill {
  border-color: #2f4665;
  background: linear-gradient(180deg, rgba(23, 36, 55, 0.98), rgba(16, 27, 43, 0.98));
  color: var(--text);
}

body.theme-dark .bike-card__media {
  border-bottom-color: #2f4665;
  background: #142234;
}

body.theme-dark .bike-card__ribbon {
  background: rgba(8, 14, 24, 0.5);
  border-color: rgba(185, 206, 235, 0.34);
}

body.theme-dark .bike-card__summary-line {
  background: rgba(0, 0, 0, 0.12);
}

body.theme-dark .bike-card__detail-content {
  border-top-color: #2f4665;
  background: #141f30;
  color: #dbe6f8;
}

body.theme-dark .bike-card__detail-content .reviews__note,
body.theme-dark .bike-card__detail-content .review {
  border-color: #3a5375;
  background: #1b2a40;
  color: #dbe6f8;
}

body.theme-dark .bike-card__detail-content .review__source-link {
  border-color: #4a6488;
  background: #122137;
  color: #dbe6f8;
}

body.theme-dark .bike-card__detail-content .review__source-link:hover {
  border-color: #80adff;
  background: #1b2f4b;
  color: #eff5ff;
}

body.theme-dark .route-modal,
body.theme-dark .compare-modal {
  border-color: #314968;
  background: linear-gradient(180deg, #1a2a40, #131f31);
  color: #e5efff;
}

body.theme-dark .route-modal::backdrop,
body.theme-dark .compare-modal::backdrop {
  background: rgba(5, 11, 20, 0.78);
}

body.theme-dark .route-modal__head h3,
body.theme-dark .route-modal__toggle,
body.theme-dark .route-modal__summary strong {
  color: #e9f2ff;
}

body.theme-dark .route-modal__status,
body.theme-dark .route-modal__summary-label {
  color: #a8bdd9;
}

body.theme-dark .route-modal__map,
body.theme-dark .route-modal__summary {
  border-color: #3b5271;
  background: #152338;
}

body.theme-dark .route-modal__map .leaflet-control-attribution {
  background: rgba(17, 29, 46, 0.9);
  color: #a8bdd9;
}

body.theme-dark .route-modal__map .leaflet-control-attribution a {
  color: #cde1ff;
}

body.theme-dark .compare-modal__head {
  border-bottom-color: #2f4665;
}

body.theme-dark .compare-modal__eyebrow,
body.theme-dark .compare-modal__status,
body.theme-dark .compare-modal__bike-meta,
body.theme-dark .compare-modal__subhead {
  color: #a8bdd9;
}

body.theme-dark .compare-modal__head h3,
body.theme-dark .compare-modal__bike-head h4,
body.theme-dark .compare-modal__table-colhead,
body.theme-dark .compare-modal__value {
  color: #e8f1ff;
}

body.theme-dark .compare-modal__empty {
  border-color: #3a5271;
  background: #17263b;
  color: #adc0db;
}

body.theme-dark .compare-modal__bike,
body.theme-dark .compare-modal__table-wrap {
  border-color: #3a5271;
  background: #17263b;
}

body.theme-dark .compare-modal__bike-media {
  border-color: #40597a;
  background:
    linear-gradient(140deg, rgba(125, 177, 255, 0.2), transparent 52%),
    linear-gradient(320deg, rgba(239, 138, 56, 0.18), transparent 48%),
    #102035;
}

body.theme-dark .compare-modal__bike-media-fallback {
  color: #b6cae5;
}

body.theme-dark .compare-modal__badge {
  border-color: #4c6485;
  background: #1c2e47;
  color: #dce8fc;
}

body.theme-dark .compare-modal__badge--fit {
  border-color: #7ba8e6;
  background: rgba(125, 177, 255, 0.2);
  color: #d3e6ff;
}

body.theme-dark .compare-modal__notes {
  border-color: #3a5271;
  background: #13253a;
}

body.theme-dark .compare-modal__notes-title {
  color: #99e4ab;
}

body.theme-dark .compare-modal__notes-title--warn {
  color: #f3cb87;
}

body.theme-dark .compare-modal__note-item {
  border-color: #425b7d;
  background: #1a2b42;
  color: #dbe6f8;
}

body.theme-dark .compare-modal__notes-empty {
  color: #afc2de;
}

body.theme-dark .compare-modal__table thead th {
  background: #132236;
  color: #dce8fc;
}

body.theme-dark .compare-modal__table tbody th {
  background: #1a2a40;
  color: #afc2de;
}

body.theme-dark .compare-modal__table th,
body.theme-dark .compare-modal__table td {
  border-bottom-color: #354d6d;
  color: #dce8fc;
}

body.theme-dark .compare-modal__value.is-best {
  color: #9de2aa;
}

body.theme-dark .compare-modal__value.is-worst {
  color: #f3cb87;
}

body.theme-dark .app-loading-overlay {
  background:
    radial-gradient(circle at 18% 16%, rgba(125, 177, 255, 0.14), transparent 44%),
    radial-gradient(circle at 82% 14%, rgba(239, 138, 56, 0.13), transparent 40%),
    rgba(7, 13, 24, 0.72);
}

body.theme-dark .app-loading-overlay__panel {
  border-color: #334b6b;
  background: linear-gradient(180deg, #1b2a40, #131f31);
  color: #e6efff;
}

body.theme-dark .app-loading-overlay__title {
  color: #eaf2ff;
}

@media (max-width: 720px) {
  .site-nav,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav__links,
  .site-footer__links {
    gap: 0.65rem 0.85rem;
  }
}
