:root {
  color-scheme: light;
  --ink: #151b2b;
  --ink-soft: #4f5668;
  --paper: #f5f3ef;
  --panel: rgba(255, 255, 255, 0.86);
  --line: rgba(21, 27, 43, 0.12);
  --orange: #e95f2b;
  --orange-deep: #bf421a;
  --orange-soft: #fff0e9;
  --blue: #21314f;
  --blue-soft: #e9eef7;
  --green: #167b5d;
  --green-soft: #e6f4ef;
  --red: #b73333;
  --red-soft: #fae9e7;
  --shadow: 0 24px 70px rgba(30, 36, 53, 0.09);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #f7f5f1 0%, #f2f0eb 55%, #eceae4 100%);
  color: var(--ink);
}

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

button {
  font: inherit;
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(5px);
  opacity: 0.4;
  pointer-events: none;
}

.ambient-one {
  top: 6rem;
  right: -18rem;
  background: radial-gradient(circle, rgba(235, 103, 52, 0.28), transparent 68%);
}

.ambient-two {
  top: 40rem;
  left: -20rem;
  background: radial-gradient(circle, rgba(54, 91, 148, 0.16), transparent 68%);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(21, 27, 43, 0.08);
  background: rgba(247, 245, 241, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 12px;
  background: var(--ink);
}

.brand-mark span {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: var(--orange);
}

.brand-mark span:nth-child(2) {
  height: 17px;
  background: #fff;
}

.brand-mark span:nth-child(3) {
  height: 13px;
}

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

.brand strong {
  font-size: 0.93rem;
  letter-spacing: 0.01em;
}

.brand small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.69rem;
  letter-spacing: 0.035em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.monitor-badge,
.refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.monitor-badge {
  padding: 0 14px;
  background: var(--green-soft);
  color: #11674e;
}

.monitor-badge[data-phase="checking"] {
  background: var(--blue-soft);
  color: var(--blue);
}

.monitor-badge[data-phase="degraded"] {
  background: var(--red-soft);
  color: var(--red);
}

.monitor-badge[data-phase="partial"],
.monitor-badge[data-phase="seed"] {
  background: #fff4d9;
  color: #775613;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px currentColor;
  opacity: 0.75;
  transform: scale(0.45);
}

.monitor-badge[data-phase="checking"] .status-dot {
  animation: pulse 1s infinite;
}

.refresh-button {
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  cursor: pointer;
  transition: 160ms ease;
}

.refresh-button:hover:not(:disabled) {
  border-color: rgba(21, 27, 43, 0.25);
  background: #fff;
  transform: translateY(-1px);
}

.refresh-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.refresh-button svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.refresh-button.is-loading svg {
  animation: spin 0.85s linear infinite;
}

main {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 72px 0 88px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: end;
  margin-bottom: 46px;
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  margin-right: 9px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  letter-spacing: 0.06em;
}

.intro h1 {
  max-width: 780px;
  margin: 22px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 6.7vw, 6.4rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.intro h1 em {
  color: var(--orange-deep);
  font-weight: 500;
}

.intro-copy {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.65;
}

.collection-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 245px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.collection-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
}

.collection-icon span {
  width: 10px;
  height: 10px;
  border: 3px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(22, 123, 93, 0.12);
}

.muted-label {
  display: block;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.collection-card strong,
.collection-card small {
  display: block;
}

.collection-card strong {
  margin: 3px 0;
  font-size: 0.94rem;
}

.collection-card small {
  color: var(--ink-soft);
  font-size: 0.71rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 20px;
}

.delay-card,
.journey-card,
.alert-card,
.freshness-card,
.history-section {
  padding: clamp(24px, 3vw, 38px);
}

.delay-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 12%, rgba(242, 107, 56, 0.13), transparent 33%),
    rgba(255, 255, 255, 0.91);
}

.panel-kicker {
  font-size: 0.66rem;
}

.delay-card > .panel-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.trend-pill,
.route-date,
.freshness-chip,
.history-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: none;
}

.trend-pill {
  background: var(--blue-soft);
  color: var(--blue);
}

.trend-pill[data-trend="better"] {
  background: var(--green-soft);
  color: var(--green);
}

.trend-pill[data-trend="worse"] {
  background: var(--red-soft);
  color: var(--red);
}

.delay-value-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 29px 0 13px;
}

.delay-value {
  color: var(--orange-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 9vw, 8.8rem);
  font-weight: 500;
  line-height: 0.75;
  letter-spacing: -0.08em;
}

.delay-unit {
  padding-bottom: 7px;
  color: var(--orange-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-style: italic;
}

.delay-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 0.81rem;
  font-weight: 750;
}

.delay-status-icon {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--red-soft);
  font-size: 0.69rem;
}

.time-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.time-comparison > div {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(247, 245, 241, 0.65);
}

.time-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
}

.time-line del {
  color: #828798;
  font-size: 0.93rem;
}

.time-line span {
  color: #a6a9b3;
}

.time-line strong {
  color: var(--orange-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.provenance-note {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 0.71rem;
  line-height: 1.5;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading h2,
.alert-heading h2,
.history-section h2,
.source-section h2 {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.route-date,
.history-count {
  background: #f0eee9;
  color: var(--ink-soft);
}

.route-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 8px;
  margin: 34px 0 28px;
  padding: 0;
  list-style: none;
}

.route-list::before {
  position: absolute;
  top: 10px;
  right: 6%;
  left: 6%;
  height: 2px;
  background: var(--line);
  content: "";
}

.route-stop {
  position: relative;
  min-width: 0;
  padding-top: 31px;
}

.route-stop::before {
  position: absolute;
  z-index: 2;
  top: 3px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #c3c6cd;
  box-shadow: 0 0 0 1px var(--line);
  content: "";
}

.route-stop.is-passed::before {
  background: var(--blue);
}

.route-stop.is-current::before {
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(233, 95, 43, 0.13);
}

.route-stop.is-target::before {
  width: 16px;
  height: 16px;
  top: 2px;
  border-color: var(--ink);
  background: #fff;
  box-shadow: inset 0 0 0 3px #fff;
}

.route-stop.is-target::after {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.route-stop strong,
.route-stop span,
.route-stop small {
  display: block;
}

.route-stop strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-stop span {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.69rem;
}

.route-stop span b {
  color: var(--orange-deep);
  font-weight: 800;
}

.route-stop small {
  margin-top: 5px;
  color: #9498a4;
  font-size: 0.61rem;
  line-height: 1.35;
}

.route-stop.is-target strong {
  color: var(--orange-deep);
}

.route-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.65rem;
}

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

.route-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.route-legend .legend-current {
  background: var(--orange);
}

.route-legend .legend-target {
  border: 2px solid var(--orange);
  background: #fff;
}

.information-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.alert-card {
  background: var(--ink);
  color: #fff;
}

.alert-card .panel-kicker {
  color: rgba(255, 255, 255, 0.56);
}

.alert-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.alert-symbol {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  background: rgba(233, 95, 43, 0.17);
  color: #ff8b5d;
}

.alert-symbol svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.alert-card h3 {
  margin: 30px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.alert-preview,
.alert-details p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  line-height: 1.7;
}

.alert-preview {
  margin: 0;
}

.alert-details {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.alert-details summary {
  width: max-content;
  cursor: pointer;
  color: #ff9a72;
  font-size: 0.73rem;
  font-weight: 800;
}

.alert-details p {
  margin: 17px 0 0;
  white-space: pre-line;
}

.freshness-chip {
  background: var(--green-soft);
  color: var(--green);
}

.freshness-chip[data-freshness="aging"] {
  background: #fff4d9;
  color: #775613;
}

.freshness-chip[data-freshness="stale"] {
  background: var(--red-soft);
  color: var(--red);
}

.freshness-list {
  margin: 26px 0 0;
}

.freshness-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.freshness-list dt {
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.freshness-list dd {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  text-align: right;
}

.source-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 14px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
}

.source-note > span {
  display: grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 0.7rem;
  font-style: italic;
}

.source-note p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.5;
}

.history-section {
  margin-top: 20px;
}

.history-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.history-item {
  display: grid;
  grid-template-columns: 86px 18px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  min-height: 74px;
  border-top: 1px solid var(--line);
}

.history-item time {
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.history-marker {
  display: block;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.history-item:first-child .history-marker {
  background: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}

.history-copy strong,
.history-copy span {
  display: block;
}

.history-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.99rem;
  font-weight: 550;
}

.history-copy span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.67rem;
}

.history-delay {
  min-width: 70px;
  color: var(--orange-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: right;
}

.source-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px 70px;
  align-items: start;
  margin-top: 56px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.source-section > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.75;
}

.source-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.source-links a {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 750;
  text-decoration: none;
  transition: 160ms ease;
}

.source-links a:hover {
  border-color: var(--orange);
  color: var(--orange-deep);
}

.connection-banner {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  left: 20px;
  max-width: 520px;
  margin-left: auto;
  padding: 14px 18px;
  border: 1px solid rgba(183, 51, 51, 0.2);
  border-radius: 14px;
  background: #fff5f3;
  box-shadow: 0 15px 50px rgba(100, 24, 24, 0.16);
  color: var(--red);
  font-size: 0.74rem;
}

.connection-banner strong,
.connection-banner span {
  display: block;
}

.connection-banner span {
  margin-top: 3px;
  color: #774848;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 0 0 36px;
  color: var(--ink-soft);
  font-size: 0.66rem;
}

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

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

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

@media (max-width: 980px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .collection-card {
    width: max-content;
  }

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

  .route-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .source-section {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .source-links {
    grid-column: 1;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: 68px;
  }

  .monitor-badge {
    padding: 0 10px;
  }

  .monitor-badge #monitor-label {
    display: none;
  }

  .refresh-button {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .refresh-button span {
    display: none;
  }

  main {
    width: min(92vw, 620px);
    padding-top: 46px;
  }

  .intro h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

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

  .route-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .route-list::before {
    display: none;
  }

  .route-stop {
    padding: 8px 0 8px 26px;
    border-left: 2px solid var(--line);
  }

  .route-stop::before {
    top: 11px;
    left: -8px;
  }

  .route-stop.is-target::before {
    top: 10px;
    left: -9px;
  }

  .route-stop.is-target::after {
    top: 16px;
    left: -3px;
  }

  .history-item {
    grid-template-columns: 66px 12px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }

  .history-delay {
    grid-column: 3;
    font-size: 1rem;
    text-align: left;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .brand small {
    display: none;
  }

  .time-comparison {
    grid-template-columns: 1fr;
  }

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

  .freshness-list > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .freshness-list dd {
    text-align: left;
  }
}

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

/* Version compacte, pensée d’abord pour le mobile. */

body {
  background:
    radial-gradient(circle at 105% 8%, rgba(235, 103, 52, 0.17), transparent 28rem),
    linear-gradient(180deg, #f7f5f1 0%, #efede7 100%);
}

main {
  width: min(720px, 92vw);
  margin: 0 auto;
  padding: clamp(36px, 7vw, 68px) 0 48px;
}

.intro {
  display: block;
  margin-bottom: 28px;
}

.intro h1 {
  max-width: none;
  margin: 19px 0 14px;
  font-size: clamp(4rem, 13vw, 6.5rem);
  line-height: 0.82;
}

.intro h1 span,
.intro h1 em {
  display: block;
}

.intro h1 span {
  color: var(--ink);
}

.intro h1 em {
  margin-top: 0.08em;
  color: var(--orange-deep);
}

.intro-copy {
  font-size: 0.86rem;
}

.collection-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 42px;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin-top: 26px;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 15px 45px rgba(30, 36, 53, 0.06);
}

.collection-card .monitor-badge {
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--green);
  font-size: inherit;
}

.collection-card .monitor-badge[data-phase="checking"],
.collection-card .monitor-badge[data-phase="partial"],
.collection-card .monitor-badge[data-phase="seed"],
.collection-card .monitor-badge[data-phase="degraded"] {
  background: transparent;
}

.collection-card .monitor-badge > span:last-child {
  min-width: 0;
}

.collection-card .monitor-badge strong,
.collection-card .monitor-badge small,
.collection-next strong {
  display: block;
}

.collection-card .monitor-badge strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-card .monitor-badge #monitor-label {
  display: block;
}

.collection-card .monitor-badge small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.6rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-next {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  text-align: right;
}

.collection-next .muted-label {
  font-size: 0.56rem;
}

.collection-next strong {
  margin-top: 4px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.collection-card .refresh-button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  min-height: 42px;
  justify-content: center;
  padding: 0;
  border-radius: 14px;
  background: #fff;
}

.collection-card .refresh-button svg {
  width: 16px;
}

.tracker-stack {
  display: grid;
  gap: clamp(22px, 4vw, 30px);
}

.panel {
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(30, 36, 53, 0.075);
}

.delay-card,
.journey-card,
.alert-card {
  padding: clamp(24px, 5vw, 38px);
}

.time-comparison {
  grid-template-columns: minmax(0, 1fr);
}

.delay-value {
  font-size: clamp(5rem, 20vw, 8rem);
}

.journey-card .route-list {
  margin-bottom: 0;
}

.alert-card {
  min-height: 0;
  padding: clamp(30px, 6vw, 46px);
}

.alert-card h3 {
  margin-top: 34px;
  font-size: clamp(1.55rem, 4vw, 2rem);
}

.alert-card .alert-detail {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.92rem, 2.7vw, 1.03rem);
  line-height: 1.8;
  white-space: pre-line;
}

.connection-banner {
  max-width: 680px;
}

@media (max-width: 480px) {
  main {
    width: min(92vw, 430px);
    padding-top: 32px;
  }

  .ambient-one {
    top: -8rem;
    right: -23rem;
  }

  .intro h1 {
    font-size: clamp(4rem, 22vw, 5.4rem);
  }

  .collection-card {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 10px;
  }

  .collection-next {
    grid-column: 1;
    grid-row: 2;
    padding: 10px 0 0 20px;
    border-top: 1px solid var(--line);
    border-left: 0;
    text-align: left;
  }

  .collection-next .muted-label,
  .collection-next strong {
    display: inline;
  }

  .collection-next strong {
    margin-left: 5px;
  }

  .collection-card .refresh-button {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .delay-card > .panel-kicker {
    align-items: flex-start;
  }

  .trend-pill {
    max-width: 48%;
    height: auto;
    padding-top: 6px;
    padding-bottom: 6px;
    line-height: 1.15;
    text-align: center;
  }

  .delay-value-row {
    margin-top: 34px;
  }

  .delay-unit {
    padding-bottom: 4px;
  }

  .route-list {
    gap: 4px;
  }
}
