:root {
  color-scheme: light;
  --navy: #0b2d59;
  --blue: #1767d6;
  --green: #20b986;
  --ink: #10223d;
  --muted: #68758b;
  --line: #dbe3ee;
  --surface: rgba(255, 255, 255, .94);
  --control-height: 52px;
  --label-size: .875rem;
  --secondary-size: .875rem;
  font-family: Inter, ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  line-height: 1.5;
  background:
    radial-gradient(circle at 95% 2%, rgba(55, 192, 213, .16), transparent 31rem),
    linear-gradient(180deg, #fbfdff, #eff5fc);
}
button, input { font: inherit; font-size: 1rem; }
small { font-size: var(--secondary-size); }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.shell { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 56px; }
header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.eyebrow, .step { margin: 0 0 7px; color: var(--blue); font-size: var(--secondary-size); font-weight: 850; letter-spacing: .13em; }
h1 { margin: 0; color: var(--navy); font-size: clamp(3rem, 9vw, 5.3rem); line-height: .9; letter-spacing: -.07em; }
h1 span { color: var(--green); }
.intro { max-width: 610px; margin: 17px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.55; }
.today { margin: 15px 0 0; color: var(--muted); font-size: 1.05rem; font-weight: 650; text-transform: capitalize; }
.commute-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-bottom: 18px; padding: 4px; background: #e8edf5; border-radius: 18px; }
.commute-tabs button { min-height: 50px; color: #26354b; background: transparent; border: 0; border-radius: 14px; font-weight: 800; }
.commute-tabs button[aria-pressed="true"] { color: var(--navy); background: white; box-shadow: 0 3px 12px rgba(12, 41, 79, .09); }
.dashboard, .configuration, .journey-section { padding: clamp(22px, 5vw, 38px); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 20px 55px rgba(26, 61, 103, .10); }
.dashboard { margin-bottom: 20px; color: white; background: linear-gradient(125deg, #0c3467, #1767d6); border: 0; }
.dashboard .step, .dashboard h2 { color: white; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.dashboard-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.dashboard-controls span, .dashboard-controls button { padding: 7px 10px; border-radius: 999px; font-size: var(--secondary-size); font-weight: 800; }
.dashboard-controls span[hidden] { display: none; }
.dashboard-controls span { color: #dbeaff; background: rgba(255, 255, 255, .12); }
.dashboard-controls button { color: white; background: transparent; border: 1px solid rgba(255, 255, 255, .45); }
.dashboard-controls button:hover, .dashboard-controls button:focus-visible { background: rgba(255, 255, 255, .12); }
.dashboard button:focus-visible { outline-color: white; }
.dashboard-settings { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 11px; margin: 18px 0 0; padding: 16px; background: rgba(6, 32, 69, .42); border-radius: 16px; }
.dashboard-settings[hidden] { display: none; }
.dashboard-settings > p:first-child { grid-column: 1 / -1; margin: 0 0 2px; color: #dbeaff; font-size: var(--secondary-size); line-height: 1.4; }
.dashboard-settings label { margin: 0; color: white; font-size: var(--label-size); }
.dashboard-settings label span { display: block; margin-bottom: 7px; }
.dashboard-settings input { width: 100%; height: var(--control-height); padding: 9px 11px; border: 0; border-radius: 11px; }
.dashboard-settings-actions { display: flex; gap: 7px; }
.dashboard-settings-actions button { height: var(--control-height); padding: 0 12px; color: var(--navy); background: white; border: 0; border-radius: 11px; font-weight: 800; }
.dashboard-settings-actions button:last-child { color: white; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); }
.dashboard-settings-status { grid-column: 1 / -1; min-height: 18px; margin: 0; color: #dbeaff; font-size: var(--secondary-size); }
.dashboard-settings-status.error { color: #ffd0d4; }
.dashboard-message { margin: 18px 0 0; color: #dbeaff; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
.dashboard-column { min-width: 0; padding: 15px; background: rgba(5, 31, 68, .26); border-radius: 20px; }
.dashboard-column[hidden] { display: none; }
.dashboard-column-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dashboard-column-heading h3 { margin: 0; color: white; font-size: 1.2rem; }
.dashboard-column-heading p { margin: 2px 0 0; color: #dbeaff; font-size: var(--secondary-size); }
.dashboard-column-heading button { flex: none; padding: 7px 10px; color: white; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .45); border-radius: 10px; font-size: var(--secondary-size); font-weight: 750; }
.dashboard-column-heading button[hidden], .dashboard-column-message[hidden] { display: none; }
.dashboard-column-message { margin: 13px 0 0; color: #e3eeff; font-size: var(--secondary-size); }
.dashboard-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.dashboard-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px 12px; padding: 14px; color: var(--ink); background: white; border-radius: 17px; }
.dashboard-card.cancelled { border: 2px solid #ed4b59; background: #fff5f6; }
.dashboard-card.cancelled .dashboard-clock strong,
.dashboard-card.cancelled .dashboard-clock [data-countdown] { color: #b52231; }
.dashboard-card .mode-icon { width: 48px; height: 48px; }
.dashboard-card strong, .dashboard-card small { display: block; }
.dashboard-card strong, .dashboard-card small { overflow-wrap: anywhere; }
.dashboard-card small { margin-top: 3px; color: var(--muted); }
.dashboard-card .dashboard-source-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin: 0 0 6px; }
.dashboard-card .dashboard-source { width: fit-content; margin: 0; color: #52627c; font-size: .75rem; font-weight: 800; }
.dashboard-card .dashboard-source.saved { color: #086847; }
.dashboard-card .live-status-badge { width: fit-content; margin: 0; padding: 3px 7px; color: #40516c; background: #edf1f6; border-radius: 999px; font-size: .66rem; font-weight: 850; line-height: 1.25; letter-spacing: .02em; text-transform: uppercase; }
.dashboard-card .live-status-badge.live { color: #08704d; background: #def7ec; }
.dashboard-card .live-status-badge.pending { color: #1558a8; background: #e2efff; }
.dashboard-card .live-status-badge.warning { color: #754500; background: #fff0c2; }
.dashboard-card .live-status-badge.danger { color: #a81f2e; background: #ffe5e8; }
.dashboard-card .live-status-badge.stale { color: #714c0d; background: #ffefc9; }
.dashboard-card > span { min-width: 0; }
.dashboard-card .transfer-status { margin-top: 8px; font-size: var(--secondary-size); line-height: 1.45; }
.dashboard-card .transfer-status.warning,
.dashboard-card .transfer-status.danger { padding: 5px 8px; border-radius: 8px; font-weight: 750; }
.dashboard-card .transfer-status.warning { color: #754500; background: #fff2cc; }
.dashboard-card .transfer-status.danger { color: #a81f2e; background: #ffe5e8; }
.dashboard-card .dashboard-leg-times { margin-top: 6px; font-size: var(--secondary-size); line-height: 1.45; }
.dashboard-clock { grid-column: 2; text-align: left; }
.dashboard-clock strong { color: var(--navy); font-size: 1.1rem; }
.dashboard-clock [data-countdown] { color: var(--blue); font-weight: 800; }
.setup-details { margin-top: 20px; }
.setup-details > summary { padding: 15px 20px; color: var(--navy); background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 30px rgba(26, 61, 103, .07); cursor: pointer; font-weight: 800; }
.setup-details > summary span { color: var(--muted); font-weight: 500; }
.setup-details[open] > summary { margin-bottom: 14px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
h2 { margin: 0; color: var(--navy); font-size: clamp(1.55rem, 4vw, 2.2rem); line-height: 1.15; letter-spacing: -.035em; }
.feed-status { max-width: 280px; margin: 0; color: var(--muted); font-size: var(--secondary-size); text-align: right; }
.kind-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 27px 0 22px; padding: 5px; background: #eaf0f8; border-radius: 16px; }
.kind-tabs button { padding: 13px; color: var(--muted); background: transparent; border: 0; border-radius: 12px; font-weight: 800; }
.kind-tabs button[aria-selected="true"] { color: var(--navy); background: white; box-shadow: 0 5px 18px rgba(20, 47, 84, .12); }
.selected-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.selected-grid article { min-width: 0; min-height: 155px; padding: 18px; background: #f7faff; border: 1px solid #e1e8f2; border-radius: 18px; }
.selected-grid h3 { display: flex; justify-content: space-between; margin: 0 0 12px; color: var(--navy); font-size: 1rem; }
.selected-grid h3 span { color: var(--muted); font-size: var(--secondary-size); }
.selected-list { display: grid; gap: 8px; }
.empty { margin: 22px 0 0; color: #8a95a6; text-align: center; }
.selected-stop { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 10px 12px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.selected-stop-main { display: block; min-width: 0; }
.selected-stop-main strong, .selected-stop-main small { display: block; }
.selected-stop-main strong { overflow-wrap: anywhere; }
.selected-stop-main small { margin-top: 3px; color: var(--muted); font-size: var(--secondary-size); line-height: 1.35; overflow-wrap: anywhere; }
.selected-stop button { flex: none; width: 44px; height: 44px; color: #59677a; background: #edf1f6; border: 0; border-radius: 50%; }
form { margin-top: 25px; }
label { display: block; margin-bottom: 9px; color: var(--navy); font-size: var(--label-size); font-weight: 800; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input { min-width: 0; padding: 15px 17px; color: var(--ink); background: white; border: 1px solid #bdc9d9; border-radius: 14px; outline: none; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23, 103, 214, .12); }
.search-row input, .search-row button { min-height: var(--control-height); }
.search-row button { padding: 0 21px; color: white; background: var(--blue); border: 0; border-radius: 14px; font-weight: 800; }
.message { min-height: 23px; margin: 12px 0 0; color: var(--muted); }
.message.error { color: #ae2634; }
.results { display: grid; gap: 9px; }
.result { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 14px 16px; color: var(--ink); text-align: left; background: white; border: 1px solid var(--line); border-radius: 14px; }
.result:hover, .result:focus-visible { border-color: var(--blue); box-shadow: 0 8px 24px rgba(23, 103, 214, .10); }
.result strong, .result small { display: block; }
.result small { margin-top: 5px; color: var(--muted); line-height: 1.35; }
.result > span { min-width: 0; overflow-wrap: anywhere; }
.result .result-meta { color: #68758b; font-size: var(--secondary-size); }
.result em { flex: none; color: var(--blue); font-style: normal; font-weight: 800; }
.journey-section { margin-top: 20px; box-shadow: none; }
.direction-tabs { display: flex; gap: 8px; margin-top: 25px; }
.direction-tabs button { padding: 10px 18px; color: var(--muted); background: #edf2f8; border: 1px solid transparent; border-radius: 999px; font-weight: 800; }
.direction-tabs button[aria-pressed="true"] { color: white; background: var(--navy); }
.journey-form { display: grid; grid-template-columns: 1fr 1fr 1.25fr auto; align-items: end; gap: 12px; margin-top: 18px; }
.journey-form > label { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; }
.journey-form label > span, .journey-form legend { display: block; color: var(--navy); font-size: var(--label-size); font-weight: 800; line-height: 1.25; }
.journey-form input[type="date"], .journey-form input[type="time"] { width: 100%; height: var(--control-height); padding: 12px; }
.journey-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.journey-form legend { float: none; width: auto; margin-bottom: 8px; padding: 0; }
.mode-options { display: flex; height: var(--control-height); align-items: center; gap: 14px; padding: 9px 12px; background: white; border: 1px solid #bdc9d9; border-radius: 14px; }
.journey-form .check { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink); font-size: 1rem; font-weight: 700; white-space: nowrap; }
.journey-form .check input { flex: none; width: 18px; height: 18px; min-width: 18px; margin: 0; padding: 0; border: 0; border-radius: 4px; accent-color: var(--blue); }
.journey-form > button { height: var(--control-height); padding: 0 18px; color: white; background: var(--blue); border: 0; border-radius: 14px; font-weight: 800; }
.journeys { display: grid; gap: 11px; margin-top: 14px; }
.journey { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; padding: 17px; background: #f9fbfe; border: 1px solid var(--line); border-radius: 17px; }
.mode-icon { display: grid; place-items: center; width: 52px; height: 52px; color: white; background: var(--blue); border-radius: 14px; font-size: var(--secondary-size); font-weight: 900; }
.mode-icon.train { background: var(--green); }
.journey-main { min-width: 0; }
.journey-main strong, .journey-main small { display: block; }
.journey-main strong { color: var(--navy); font-size: 1.08rem; }
.journey-main small { margin-top: 4px; color: var(--muted); line-height: 1.35; }
.boarding-point { color: var(--navy) !important; font-size: var(--secondary-size); font-weight: 700; }
.journey-times { text-align: right; }
.journey-times strong { display: block; color: var(--navy); font-size: 1.25rem; }
.journey-times small { color: var(--muted); }
.journey-save { grid-column: 1 / -1; justify-self: end; padding: 8px 13px; color: var(--blue); background: #eaf2ff; border: 1px solid #cfe0fa; border-radius: 10px; font-size: var(--secondary-size); font-weight: 800; }
.journey-save.saved { color: #087451; background: #e1f8ef; border-color: #b9ead9; }
.journey-legs { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 7px; }
.journey-legs span, .journey-legs em { padding: 6px 9px; border-radius: 9px; font-size: var(--secondary-size); font-style: normal; font-weight: 750; }
.journey-legs span { color: var(--navy); background: #eaf2ff; }
.journey-legs em { color: #6f4c00; background: #fff2cc; }
.saved-connections { margin-top: 27px; padding-top: 24px; border-top: 1px solid var(--line); }
.saved-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.saved-heading h3 { margin: 0; color: var(--navy); font-size: 1.18rem; }
.saved-heading > span { color: var(--muted); font-size: var(--secondary-size); font-weight: 800; }
.saved-empty { margin: 18px 0 3px; }
.saved-list { display: grid; gap: 9px; margin-top: 13px; }
.saved-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 13px 14px; background: #f7faff; border: 1px solid var(--line); border-radius: 14px; }
.saved-route .direction { padding: 6px 9px; color: white; background: var(--navy); border-radius: 999px; font-size: var(--secondary-size); font-weight: 850; }
.saved-route > span:not(.direction) { min-width: 0; overflow-wrap: anywhere; }
.saved-route strong, .saved-route small { display: block; }
.saved-route small { margin-top: 3px; color: var(--muted); }
.saved-route button { flex: none; width: 44px; height: 44px; color: #59677a; background: #e8edf4; border: 0; border-radius: 50%; }
footer { padding: 30px 12px 0; color: #7a8799; font-size: var(--secondary-size); text-align: center; }
footer p { margin: 6px; }
footer a { color: inherit; }

@media (max-width: 780px) {
  .shell { width: min(100% - 20px, 920px); padding-top: 25px; }
  header, .section-heading, .dashboard-heading { display: block; }
  .feed-status { margin-top: 12px; text-align: left; }
  .selected-grid { grid-template-columns: 1fr; }
  .search-row { grid-template-columns: 1fr; }
  .search-row button { padding: 14px; }
  .journey-form { grid-template-columns: 1fr 1fr; }
  .journey-form fieldset, .journey-form > button { grid-column: 1 / -1; }
  .journey { grid-template-columns: auto 1fr; }
  .journey-times { grid-column: 2; text-align: left; }
  .dashboard-controls { justify-content: flex-start; margin-top: 12px; }
  .dashboard-settings { grid-template-columns: 1fr 1fr; }
  .dashboard-settings-actions, .dashboard-settings-status { grid-column: 1 / -1; }
  .dashboard-card { grid-template-columns: auto 1fr; }
  .dashboard-clock { grid-column: 2; text-align: left; }
}

@media (max-width: 680px) {
  .dashboard-list { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .dashboard-controls { align-items: flex-start; flex-direction: column; }
  .dashboard-settings { grid-template-columns: 1fr; }
  .dashboard-settings-actions, .dashboard-settings-status { grid-column: auto; }
  .journey-form { grid-template-columns: 1fr; }
  .journey-form fieldset, .journey-form > button { grid-column: auto; }
}
/* Installation and availability are secondary to the departure cards. */
.app-icon { flex-shrink: 0; border-radius: 20px; }
.install-banner { display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin: 0 0 24px; border: 1px solid #c6d6eb; border-radius: 16px; background: white; }
.install-banner[hidden] { display: none; }
.install-banner p { flex: 1; min-width: 0; margin: 0; color: #12386f; }
.install-banner button { padding: 10px 16px; }
.dashboard-card.stale { border: 1px dashed #a56400; background: #fffaf0; }
.dashboard-card.stale small { color: #855300; }
.legal { max-width: 900px; }
.legal h1 { font-size: clamp(2rem, 6vw, 3rem); }
.legal p, .legal li { line-height: 1.65; }
.legal section { margin-top: 24px; }
.legal nav { margin: 24px 0; }
@media (max-width: 600px) { .install-banner { flex-wrap: wrap; } .app-icon { width: 56px; height: 56px; } }

/* Focused commute dashboard and guided first-run setup. */
header { position: relative; min-height: 80px; padding-right: 104px; }
.app-icon { position: absolute; top: 0; right: 0; box-shadow: 0 14px 36px rgba(255, 131, 0, .18); }

.dashboard { padding: 0; color: var(--ink); background: transparent; border: 0; box-shadow: none; }
.dashboard .step { color: var(--blue); }
.dashboard h2 { color: var(--navy); }
.dashboard-controls span { color: #52627c; background: #eaf1fa; }
.dashboard-controls button { color: var(--blue); background: white; border-color: #c8d7ea; }
.dashboard-controls button:hover, .dashboard-controls button:focus-visible { background: #eef5ff; }
.dashboard-message { color: var(--muted); }
.dashboard-column { padding: 0; background: transparent; }
.dashboard-column-heading { margin-top: 4px; }
.dashboard-column-heading h3 { color: var(--navy); }
.dashboard-column-heading p, .dashboard-column-message { color: var(--muted); }
.dashboard-column-heading button { color: var(--blue); background: #eaf2ff; border-color: #cfe0fa; }
.dashboard-list { gap: 14px; }
.dashboard-card { border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(31, 61, 98, .07); }
.dashboard-card.featured {
  grid-column: 1 / -1;
  grid-template-columns: 68px minmax(0, 1fr);
  min-height: 184px;
  padding: clamp(20px, 4vw, 28px);
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border: 0;
  box-shadow: 0 18px 38px rgba(19, 71, 139, .22);
}
.dashboard-card.featured.cancelled { background: linear-gradient(135deg, #8d1d2a, #e63b48); }
.dashboard-card.featured.stale { background: linear-gradient(135deg, #735115, #b27a17); border: 0; }
.dashboard-card.featured .mode-icon { width: 64px; height: 64px; border-radius: 16px; background: rgba(255, 255, 255, .15); }
.dashboard-card.featured .dashboard-source,
.dashboard-card.featured .dashboard-source.saved,
.dashboard-card.featured strong,
.dashboard-card.featured small { color: white; }
.dashboard-card.featured .dashboard-source { opacity: .76; }
.dashboard-card.featured .live-status-badge { color: white; background: rgba(255, 255, 255, .17); }
.dashboard-card.featured > span:not(.mode-icon) > strong { font-size: 1.1rem; }
.dashboard-card.featured .boarding-point,
.dashboard-card.featured .transfer-status,
.dashboard-card.featured .dashboard-leg-times { display: none; }
.dashboard-card.featured .dashboard-clock { display: flex; grid-column: 2; flex-direction: column; margin-top: 8px; }
.dashboard-card.featured .dashboard-clock strong { color: rgba(255, 255, 255, .82); font-size: 1rem; }
.dashboard-card.featured .dashboard-clock [data-countdown] {
  order: -1;
  margin: 0 0 8px;
  color: white;
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.dashboard-setup { margin-top: 14px; padding: 11px 15px; color: white; background: var(--blue); border: 0; border-radius: 12px; font-weight: 800; }
.dashboard-setup[hidden] { display: none; }

.mode-icon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.mode-icon img { width: 27px; height: 27px; }
.mode-icon .mode-label { margin: 0; color: white; font-size: .62rem; font-weight: 800; line-height: 1; }

.setup-guide {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin: 22px 0;
  padding: 15px;
  color: var(--navy);
  background: #edf5ff;
  border: 1px solid #cadef8;
  border-radius: 17px;
}
.setup-guide[hidden] { display: none; }
.setup-guide > span { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: var(--blue); border-radius: 50%; font-weight: 900; }
.setup-guide strong { display: block; }
.setup-guide p { margin: 2px 0 0; color: var(--muted); font-size: var(--secondary-size); }
.setup-guide button { padding: 10px 13px; color: var(--blue); background: white; border: 1px solid #bfd3ef; border-radius: 11px; font-weight: 800; }

body.onboarding-open { overflow: hidden; }
.onboarding {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  background: rgba(8, 30, 59, .64);
  backdrop-filter: blur(10px);
}
.onboarding[hidden] { display: none; }
.onboarding-card { width: min(440px, 100%); padding: clamp(24px, 7vw, 36px); background: white; border-radius: 28px; box-shadow: 0 30px 80px rgba(4, 25, 54, .3); }
.onboarding-card > img { display: block; margin-bottom: 22px; border-radius: 18px; }
.onboarding-progress { margin: 0 0 8px; color: var(--blue); font-size: var(--secondary-size); font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.onboarding-card h2 { font-size: clamp(1.7rem, 7vw, 2.35rem); }
.onboarding-card > p:not(.onboarding-progress) { min-height: 76px; margin: 14px 0 0; color: var(--muted); }
.onboarding-dots { display: flex; gap: 7px; margin-top: 24px; }
.onboarding-dots span { width: 8px; height: 8px; background: #d5deea; border-radius: 999px; transition: width .2s, background .2s; }
.onboarding-dots span.active { width: 24px; background: var(--blue); }
.onboarding-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 22px; }
.onboarding-actions button { min-height: 50px; padding: 0 16px; border-radius: 13px; font-weight: 800; }
.onboarding-actions button:first-child { color: var(--muted); background: transparent; border: 1px solid var(--line); }
.onboarding-actions button:last-child { color: white; background: var(--blue); border: 1px solid var(--blue); }

@media (max-width: 780px) {
  header { display: flex; padding-right: 82px; }
  .dashboard-heading { display: flex; align-items: flex-start; }
  .dashboard-controls { justify-content: flex-end; margin-top: 0; }
  .dashboard-card.featured { grid-template-columns: 58px minmax(0, 1fr); }
  .dashboard-card.featured .mode-icon { width: 54px; height: 54px; }
}

@media (max-width: 560px) {
  header { min-height: 64px; padding-right: 68px; }
  .app-icon { width: 58px; height: 58px; border-radius: 15px; }
  .dashboard-heading { display: block; }
  .dashboard-controls { justify-content: flex-start; margin-top: 12px; }
  .dashboard-card.featured { grid-template-columns: 50px minmax(0, 1fr); min-height: 174px; }
  .dashboard-card.featured .mode-icon { width: 48px; height: 48px; }
  .setup-guide { grid-template-columns: 42px minmax(0, 1fr); }
  .setup-guide button { grid-column: 1 / -1; }

  #update-banner { display: grid; align-items: stretch; grid-template-columns: 1fr; gap: 10px; }
  #update-banner[hidden] { display: none; }
  #update-banner button { width: 100%; min-height: 46px; }

  body.journey-configured .shell { padding-top: 14px; }
  body.journey-configured header { min-height: 54px; margin-bottom: 16px; padding-right: 58px; }
  body.journey-configured header .eyebrow { margin-bottom: 4px; font-size: .68rem; line-height: 1.25; }
  body.journey-configured header h1 { font-size: 2.55rem; line-height: .92; }
  body.journey-configured header .today { margin-top: 8px; font-size: .94rem; }
  body.journey-configured header .app-icon { width: 50px; height: 50px; border-radius: 14px; }
  body.journey-configured .commute-tabs { margin-bottom: 14px; }
  body.journey-configured .dashboard .step { margin-bottom: 3px; font-size: .72rem; }
  body.journey-configured .dashboard h2 { font-size: 1.75rem; }
  body.journey-configured .dashboard-controls { margin-top: 8px; }
  body.journey-configured .dashboard-controls button { padding: 6px 10px; font-size: .82rem; }
  body.journey-configured .dashboard-columns { margin-top: 10px; }
  body.journey-configured .dashboard-column-heading { justify-content: flex-end; }
  body.journey-configured .dashboard-column-heading button { padding: 6px 9px; font-size: .8rem; }
  body.journey-configured .dashboard-list { margin-top: 9px; }
  body.journey-configured .dashboard-card.featured { min-height: 158px; padding: 18px; }
  body.journey-configured .dashboard-card.featured .dashboard-clock [data-countdown] { font-size: 2rem; }
}
