:root {
  --bg: #edf4ff;
  --bg-soft: #f7faff;
  --card: #ffffff;
  --line: #d6e3fb;

  --text: #13284d;
  --muted: #61779f;

  --primary: #0d47a1;
  --primary-2: #1565c0;
  --primary-3: #e9f1ff;

  --green-bg: #eaf8ef;
  --green-text: #1c7c43;

  --red-bg: #fdecec;
  --red-text: #c53324;

  --yellow-bg: #fff6d8;
  --yellow-text: #9a6a00;

  --gray-bg: #edf1f6;
  --gray-text: #73819a;

  --shadow: 0 14px 40px rgba(13, 71, 161, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(21, 101, 192, 0.18), transparent 32%),
    linear-gradient(180deg, #edf4ff 0%, #f8fbff 100%);
}

.app-shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  border-radius: 34px;
  padding: 22px 22px 26px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.hero__update-time {
  position: absolute;
  top: 22px;
  right: 22px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.hero__title {
  margin: 0;
  font-size: 42px;
  line-height: 1.05;
  font-weight: 900;
}

.content {
  display: grid;
  gap: 14px;
  min-height: 60vh;
}

.stop-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stop-card__header {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 18px 18px 20px;
}

.stop-card__header-main {
  min-width: 0;
}

.stop-card__eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stop-card__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
}

.stop-card__title--seo {
  padding: 18px 18px 0;
}

.stop-card__header .stop-card__preview {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.stop-card__header-side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.stop-card__toggle {
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
}

.stop-card__body {
  padding: 0 18px 18px;
}

.tab-bar {
  display: flex;
  gap: 6px;
  background: #f1f5fb;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.tab-btn {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.tab-btn.is-active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(13, 71, 161, 0.08);
}

.section-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  margin: 2px 0 12px;
}

.section-title--subtle {
  color: var(--muted);
  margin-top: 18px;
}

.departure-list {
  display: grid;
  gap: 10px;
}

.departure-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.departure-row--past {
  background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
  opacity: 0.82;
}

.departure-row__time {
  color: var(--primary);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.departure-row__main {
  min-width: 0;
}

.departure-row__destination {
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.departure-row__route {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.status-badge {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.status-badge--scheduled {
  background: var(--green-bg);
  color: var(--green-text);
}

.status-badge--blocked {
  background: var(--red-bg);
  color: var(--red-text);
}

.status-badge--canceled {
  background: var(--red-bg);
  color: var(--red-text);
}

.status-badge--gone {
  background: var(--gray-bg);
  color: var(--gray-text);
}

.stop-card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.action-pill {
  border: 0;
  border-radius: 999px;
  background: var(--primary-3);
  color: var(--primary);
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.action-pill--ghost {
  background: #f1f5fb;
  color: #415a82;
}

.empty-inline,
.loading-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 16px;
}

.empty-inline--blocked {
  background: var(--red-bg);
  color: var(--red-text);
  border-color: #f4c8c8;
  font-weight: 800;
  text-align: center;
}

.past-section {
  margin-top: 2px;
}

@media (max-width: 900px) {
  .hero__title {
    font-size: 34px;
  }

  .stop-card__title {
    font-size: 24px;
  }

  .departure-row {
    grid-template-columns: 90px 1fr auto;
  }

  .departure-row__time {
    font-size: 22px;
  }

  .departure-row__destination {
    font-size: 20px;
  }
}

@media (max-width: 680px) {
  .app-shell {
    padding: 14px 12px 24px;
  }

  .hero {
    border-radius: 26px;
    padding: 18px 16px 20px;
  }

  .hero__update-time {
    top: 18px;
    right: 16px;
    font-size: 12px;
  }

  .hero__title {
    font-size: 28px;
  }

  .stop-card__header {
    padding: 16px;
    align-items: flex-start;
  }

  .stop-card__title {
    font-size: 22px;
  }

  .stop-card__preview {
    font-size: 14px;
  }

  .stop-card__body {
    padding: 0 16px 16px;
  }

  .departure-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .departure-row__time {
    font-size: 21px;
  }

  .departure-row__destination {
    font-size: 19px;
  }

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