:root {
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #11213f;
  background:
    radial-gradient(circle at top right, #dfe9ff 0, transparent 30rem),
    linear-gradient(180deg, #f7f9ff 0%, #eef4ff 100%);
  font-synthesis: none;
  --ink: #11213f;
  --muted: #6a7895;
  --line: rgba(45, 72, 124, 0.12);
  --blue: #2f6df6;
  --blue-2: #5f88fa;
  --green: #169b5b;
  --amber: #d97a00;
  --red: #d9363e;
  --gold: #c9a227;
  --surface: rgba(255, 255, 255, 0.88);
  --shadow: 0 24px 70px rgba(48, 79, 139, 0.13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
}

button,
select { font: inherit; }

button { cursor: pointer; }

.shell {
  width: min(100%, 680px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(26px, env(safe-area-inset-top)) 22px
    max(24px, env(safe-area-inset-bottom));
}

.brand { margin: 0 0 20px; }

.brand-lockup-wrap {
  position: relative;
  width: min(100%, 440px);
  margin: 0 auto;
}

.brand-lockup {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  mix-blend-mode: multiply;
}

.poc-badge {
  position: absolute;
  top: 16px;
  right: 14px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(231, 237, 255, 0.96);
  color: #4564b7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 18px rgba(48, 79, 139, 0.08);
}

.trip-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 34px rgba(48, 79, 139, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.trip-tab {
  min-height: 54px;
  padding: 8px 12px;
  border: 0;
  border-radius: 14px;
  color: #62708d;
  background: transparent;
  text-align: left;
  transition: 160ms ease;
}

.trip-tab.active {
  color: var(--ink);
  background: white;
  box-shadow: 0 8px 20px rgba(52, 79, 132, 0.11);
}

.trip-tab-label,
.trip-tab-meta { display: block; }

.trip-tab-label {
  font-size: 13px;
  font-weight: 800;
}

.trip-tab-meta {
  margin-top: 3px;
  overflow: hidden;
  color: #8691a8;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel,
.primary-card,
.service-row,
.data-strip,
.health-strip {
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.panel {
  background: var(--surface);
  border-radius: 28px;
  padding: 26px;
}

.eyebrow {
  color: #6680b2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.setup-panel h2,
.watch-heading h2 {
  margin: 9px 0 0;
  font-size: 27px;
  letter-spacing: -0.03em;
}

.intro {
  margin: 8px 0 24px;
  color: var(--muted);
  line-height: 1.5;
}

.field {
  display: block;
  margin-top: 14px;
}

.field > span {
  display: block;
  margin: 0 0 7px 4px;
  color: #65728c;
  font-size: 12px;
  font-weight: 700;
}

select {
  width: 100%;
  height: 57px;
  padding: 0 46px 0 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: #f9fbff;
  outline: none;
}

select:focus {
  border-color: #84a3f7;
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.1);
}

.primary-button {
  width: 100%;
  min-height: 56px;
  margin-top: 22px;
  border: 0;
  border-radius: 17px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(47, 109, 246, 0.24);
}

.primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.microcopy {
  margin: 15px 4px 0;
  color: #8791a7;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.mode-banner {
  margin: 0 0 16px;
  padding: 12px 15px;
  border: 1px solid #dbe4fb;
  border-radius: 15px;
  color: #506789;
  background: rgba(239, 244, 255, 0.92);
  font-size: 13px;
  line-height: 1.45;
}

.watch-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 4px 2px 14px;
}

.watch-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.secondary-button,
.refresh-button {
  border: 0;
  color: #4d6289;
  background: #eaf0ff;
  font-weight: 700;
}

.secondary-button {
  padding: 10px 13px;
  border-radius: 12px;
}

.health-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.78);
}

.health-strip.normal {
  background: linear-gradient(135deg, rgba(232, 249, 239, 0.96), rgba(255, 255, 255, 0.92));
}

.health-strip.delay,
.health-strip.change,
.health-strip.replacement {
  background: linear-gradient(135deg, rgba(255, 245, 225, 0.96), rgba(255, 255, 255, 0.92));
}

.health-strip.major {
  background: linear-gradient(135deg, rgba(255, 232, 234, 0.96), rgba(255, 255, 255, 0.92));
}

.health-light {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #aeb6c5;
  box-shadow: 0 0 0 5px rgba(174, 182, 197, 0.12);
}

.health-light.normal {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(22, 155, 91, 0.12);
}

.health-light.delay,
.health-light.change,
.health-light.replacement {
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(217, 122, 0, 0.12);
}

.health-light.major {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(217, 54, 62, 0.12);
}

.health-copy { min-width: 0; }
.health-copy strong,
.health-copy span { display: block; }

.health-copy strong { font-size: 13px; }

.health-copy span {
  margin-top: 3px;
  overflow: hidden;
  color: #6e7b94;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.primary-card {
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(80, 191, 130, 0.14), transparent 45%),
    rgba(255, 255, 255, 0.93);
}

.primary-card.delay {
  background:
    radial-gradient(circle at top right, rgba(239, 163, 62, 0.2), transparent 45%),
    rgba(255, 255, 255, 0.93);
}

.primary-card.cancelled {
  background:
    radial-gradient(circle at top right, rgba(222, 66, 77, 0.18), transparent 45%),
    rgba(255, 255, 255, 0.93);
}

.primary-topline,
.primary-bottomline,
.service-row,
.data-strip {
  display: flex;
  align-items: center;
}

.primary-topline {
  justify-content: space-between;
  color: #61708d;
  font-size: 13px;
  font-weight: 700;
}

.status-pill {
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf1f8;
  color: #68758d;
  font-size: 11px;
  font-weight: 800;
}

.status-pill.on-time,
.status-pill.live {
  color: #0d7f49;
  background: #e2f6e9;
}

.status-pill.delay {
  color: #a65b00;
  background: #fff0d8;
}

.status-pill.cancelled {
  color: #b8222c;
  background: #ffe5e7;
}

.primary-time {
  margin: 15px 0 11px;
  font-size: clamp(52px, 14vw, 75px);
  font-weight: 850;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.primary-bottomline {
  justify-content: space-between;
  gap: 16px;
  color: #65728b;
  font-size: 14px;
}

.primary-bottomline strong { color: var(--ink); }

.service-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.service-row {
  justify-content: space-between;
  min-height: 74px;
  padding: 15px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.service-time {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.service-meta {
  margin-top: 4px;
  color: #7b879e;
  font-size: 12px;
}

.service-status {
  font-size: 13px;
  font-weight: 800;
}

.service-status.on-time,
.service-status.live { color: var(--green); }

.service-status.delay { color: var(--amber); }
.service-status.cancelled { color: var(--red); }

.data-strip {
  gap: 9px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.62);
  color: #7b879b;
  font-size: 11px;
}

.data-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #adb6c6;
}

.data-dot.live {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 155, 91, 0.1);
}

.data-dot.warn { background: var(--amber); }

.refresh-button {
  margin-left: auto;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 11px;
}

.empty-state {
  padding: 28px 18px;
  color: #74819a;
  text-align: center;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 0 4px;
  color: #8490a8;
  font-size: 10px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer-brand img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.hidden { display: none !important; }

@media (max-width: 480px) {
  .shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-lockup-wrap { width: 100%; }

  .poc-badge {
    top: 9px;
    right: 8px;
    font-size: 8px;
  }

  .panel {
    padding: 21px;
    border-radius: 24px;
  }

  .primary-card {
    padding: 21px;
    border-radius: 24px;
  }

  .primary-bottomline {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}
