:root {
  color-scheme: light;
  --ocean: #087eba;
  --deep: #073d59;
  --cyan: #68c9d8;
  --sea: #eaf5f7;
  --shell: #f5f2ec;
  --paper: #f7faf9;
  --coral: #ff9278;
  --green: #237a64;
  --ink: #123747;
  --muted: #627781;
  --line: #d8e6e9;
  --danger: #b7483e;
  --shadow: 0 18px 50px rgba(7, 61, 89, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(160deg, #d9f0f5, #f8f5ee 60%, #d8ecec); color: var(--ink); }
button, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, select:focus-visible { outline: 3px solid rgba(8, 126, 186, 0.3); outline-offset: 2px; }

.app-shell { width: min(100%, 430px); min-height: 100vh; margin: 0 auto; background: var(--paper); box-shadow: var(--shadow); position: relative; padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
.topbar { height: 68px; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; background: rgba(247, 250, 249, 0.95); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.brand { border: 0; background: transparent; color: var(--deep); display: flex; align-items: center; gap: 8px; font-size: 20px; letter-spacing: -0.5px; padding: 0; }
.brand-mark { width: 35px; height: 35px; border-radius: 13px; display: grid; place-items: center; color: white; background: var(--ocean); font-size: 27px; font-weight: 800; line-height: 1; }
.top-actions { display: flex; align-items: center; gap: 7px; }
.install-button { border: 1px solid var(--ocean); border-radius: 11px; padding: 8px 11px; color: var(--ocean); background: white; font-size: 12px; font-weight: 800; }
.install-button.installed { color: var(--green); border-color: #b8dcd0; background: #e3f5ed; cursor: default; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); background: white; border-radius: 12px; color: var(--deep); font-size: 20px; }
#app { padding: 0 18px 28px; }

.hero { margin: 18px -2px 16px; border-radius: 26px; padding: 24px; color: white; background: linear-gradient(145deg, var(--deep), #076c91 58%, var(--ocean)); overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; width: 170px; height: 170px; border: 28px solid rgba(104, 201, 216, 0.2); border-radius: 50%; right: -68px; bottom: -100px; }
.marine-friends { position: absolute; right: 17px; top: 14px; display: flex; gap: 5px; opacity: .72; font-size: 20px; transform: rotate(5deg); }
.marine-friends span:last-child { font-size: 24px; transform: translateY(8px); }
.hero p, .hero h1 { margin: 0; position: relative; z-index: 1; }
.hero .eyebrow { color: #bde9ef; }
.hero h1 { font-size: 30px; line-height: 1.08; max-width: 290px; margin: 8px 0 12px; letter-spacing: -1px; }
.hero-copy { color: #daf0f3; line-height: 1.45; max-width: 300px; font-size: 14px; }
.balance-row { display: flex; align-items: end; justify-content: space-between; margin-top: 24px; position: relative; z-index: 1; }
.balance-row strong { display: block; font-size: 32px; line-height: 1; }
.balance-row span { font-size: 12px; color: #bde9ef; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 24px 2px 12px; }
.section-heading h1, .section-heading h2 { margin: 0; color: var(--deep); letter-spacing: -0.5px; }
.section-heading h1 { font-size: 27px; }
.section-heading h2 { font-size: 19px; }
.section-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.4px; color: var(--ocean); font-size: 11px; font-weight: 800; }
.text-button { border: 0; background: transparent; color: var(--ocean); font-weight: 750; padding: 4px; }

.card { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 17px; margin-bottom: 12px; box-shadow: 0 7px 22px rgba(7, 61, 89, 0.045); }
.card h2, .card h3, .card p { margin-top: 0; }
.card h3 { margin-bottom: 5px; color: var(--deep); }
.card p { color: var(--muted); line-height: 1.45; font-size: 14px; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.card-icon { width: 47px; height: 47px; border-radius: 15px; flex: 0 0 auto; display: grid; place-items: center; background: var(--sea); color: var(--ocean); font-size: 23px; }
.card-icon.warm { background: #fff0e9; color: #d56850; }
.grow { flex: 1; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { border-radius: 18px; padding: 16px; background: var(--sea); }
.stat span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; }
.stat strong { color: var(--deep); display: block; font-size: 24px; margin-top: 5px; }

.primary, .secondary, .danger-button { width: 100%; border-radius: 14px; padding: 13px 16px; font-weight: 800; border: 0; }
.primary { color: white; background: var(--ocean); box-shadow: 0 8px 16px rgba(8, 126, 186, .2); }
.primary:hover { background: #066fa5; }
.secondary { color: var(--deep); background: var(--sea); border: 1px solid #cae1e5; }
.danger-button { color: var(--danger); background: #fff0ed; border: 1px solid #f4c9c1; }
.primary:disabled, .secondary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.compact { width: auto; padding: 9px 13px; font-size: 13px; }
.button-stack { display: grid; gap: 9px; margin-top: 15px; }

.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.filters select { min-width: 0; border: 1px solid var(--line); color: var(--deep); background: white; border-radius: 13px; padding: 11px; }
.toggle { display: flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); background: white; border-radius: 13px; font-size: 13px; color: var(--deep); }
.filters .toggle { grid-column: 1 / -1; min-height: 42px; }
.toggle input { accent-color: var(--ocean); }
.station-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.station-card .distance { font-weight: 800; color: var(--deep); white-space: nowrap; font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 5px 8px; background: #e3f5ed; color: var(--green); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.warning { background: #fff0e9; color: #b55743; }
.region-label { display: inline-block; margin-left: 5px; color: var(--muted); font-size: 10px; font-weight: 750; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.chip { border-radius: 999px; padding: 5px 8px; font-size: 11px; background: var(--sea); color: var(--deep); }
.capacity { margin-top: 12px; }
.capacity-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.bar { height: 8px; border-radius: 999px; background: #deeaec; overflow: hidden; }
.bar > span { height: 100%; display: block; background: var(--cyan); border-radius: inherit; }
.bar > span.high { background: var(--coral); }

.back { border: 0; background: transparent; color: var(--ocean); font-weight: 750; padding: 14px 0 0; }
.detail-banner { margin: 14px 0; padding: 20px; border-radius: 22px; background: var(--sea); }
.detail-banner h1 { margin: 8px 0 5px; color: var(--deep); font-size: 26px; }
.detail-banner p { margin: 0; color: var(--muted); }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; font-size: 14px; }
.info-list li:last-child { border: 0; }
.info-list span { color: var(--muted); }
.info-list strong { text-align: right; color: var(--deep); }

.scan-panel { text-align: center; padding: 23px 18px; }
.member-code { width: 202px; height: 126px; margin: 18px auto; border: 12px solid white; outline: 1px solid var(--line); border-radius: 15px; background: repeating-linear-gradient(90deg, var(--deep) 0 4px, transparent 4px 8px, var(--deep) 8px 10px, transparent 10px 15px); position: relative; }
.member-code::after { content: "TL-2048-1703"; position: absolute; background: white; left: 20px; right: 20px; bottom: -8px; padding: 4px; font-size: 11px; letter-spacing: 2px; color: var(--deep); }
.qr-target { width: 170px; height: 170px; margin: 16px auto; display: grid; place-items: center; border: 3px dashed var(--cyan); border-radius: 24px; color: var(--ocean); background: var(--sea); font-size: 76px; }
.qr-video { width: 100%; max-height: 280px; margin: 12px 0; border-radius: 18px; object-fit: cover; background: var(--deep); }
.scanner-line { height: 2px; margin: -150px 16px 148px; position: relative; background: var(--coral); box-shadow: 0 0 12px var(--coral); }
.scan-panel .secondary { margin-top: 9px; }
.steps { counter-reset: steps; list-style: none; padding: 0; text-align: left; }
.steps li { counter-increment: steps; display: flex; gap: 11px; align-items: center; margin: 12px 0; color: var(--muted); font-size: 14px; }
.steps li::before { content: counter(steps); width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--ocean); font-weight: 800; font-size: 12px; }
.connected { padding: 12px; border-radius: 15px; background: #e3f5ed; color: var(--green); font-weight: 800; text-align: center; margin-bottom: 12px; }
.machine-link { margin: 12px 0; padding: 14px; border-radius: 17px; color: var(--deep); border: 1px solid #c7dce2; background: linear-gradient(145deg, #f3f9fa, var(--sea)); text-align: left; }
.machine-link p { margin: 10px 0 0; color: var(--muted); }
.machine-link-head, .machine-balance { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.machine-state { padding: 5px 8px; border-radius: 999px; color: var(--green); background: #dff2eb; font-size: 10px; font-weight: 800; white-space: nowrap; }
.active-machine { border-color: var(--deep); box-shadow: inset 4px 0 var(--ocean); }
.machine-balance { margin-top: 12px; border-radius: 12px; padding: 11px; color: white; background: var(--deep); }
.machine-balance span { font-size: 11px; opacity: .8; }
.machine-balance strong { font-size: 19px; }
.intake-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.intake-guide span { padding: 10px; border-radius: 11px; background: white; text-align: center; font-size: 12px; font-weight: 750; }
.intake-guide small { color: var(--muted); font-weight: 500; }
.material-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.material-button { min-height: 110px; padding: 10px 5px; border: 1px solid var(--line); background: white; border-radius: 16px; color: var(--deep); }
.material-button:hover { border-color: var(--cyan); background: var(--sea); }
.material-button span { display: block; font-size: 28px; margin-bottom: 5px; }
.material-button small { display: block; color: var(--muted); margin-top: 3px; }
.live-materials { display: grid; gap: 8px; }
.live-materials > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: 12px; padding: 12px; background: var(--sea); }
.live-materials strong { color: var(--deep); font-size: 20px; }
.live-materials small { color: var(--muted); font-size: 11px; }
.linked-note { border-left: 4px solid var(--cyan); border-radius: 10px; padding: 11px 13px; color: var(--muted); background: var(--sea); font-size: 13px; line-height: 1.45; }
.return-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.return-summary div { border-radius: 14px; padding: 12px; background: var(--sea); }
.return-summary span { display: block; color: var(--muted); font-size: 11px; }
.return-summary strong { color: var(--deep); font-size: 23px; }

.reward-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reward-card { border: 1px solid var(--line); background: white; border-radius: 19px; padding: 14px; text-align: left; color: var(--ink); }
.reward-card:hover { border-color: var(--cyan); transform: translateY(-1px); }
.reward-art { height: 92px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 11px; background: var(--shell); font-size: 38px; }
.reward-card strong, .reward-card span { display: block; }
.reward-card strong { color: var(--deep); }
.reward-card span { color: var(--ocean); font-size: 13px; font-weight: 800; margin-top: 5px; }
.reward-card small { color: var(--muted); }
.confirmation { text-align: center; }
.confirmation .reward-art { height: 130px; font-size: 55px; }
.success-mark { width: 72px; height: 72px; margin: 8px auto 16px; display: grid; place-items: center; border-radius: 50%; background: #e3f5ed; color: var(--green); font-size: 34px; font-weight: 900; }
.whale-success { font-size: 36px; background: var(--sea); }
.screen-sync { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; margin-top: 12px; padding: 13px; border-radius: 14px; background: var(--deep); color: white; text-align: left; }
.screen-sync span { color: #bde9ef; font-size: 11px; text-transform: uppercase; }
.screen-sync strong { text-align: right; }
.pickup-code { letter-spacing: 3px; font-size: 23px; color: var(--deep); padding: 13px; border-radius: 13px; background: var(--shell); }
.reward-filters { display: flex; gap: 7px; overflow-x: auto; padding: 0 0 12px; }
.reward-filters button { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: white; color: var(--muted); white-space: nowrap; font-size: 12px; font-weight: 750; }
.reward-filters button.active { color: white; border-color: var(--ocean); background: var(--ocean); }
.reward-art.cash { color: white; background: linear-gradient(145deg, var(--green), #45a888); font-size: 36px; font-weight: 900; }
.reward-art.voucher { background: #fff0e9; }
.reward-art.physical { background: linear-gradient(145deg, var(--shell), #e7f2f1); }
.reward-art.has-image, .confirmation .reward-art.has-image { height: auto; aspect-ratio: 16 / 9; overflow: hidden; background: #f8f5ed; }
.reward-art.has-image img { display: block; width: 100%; height: 100%; object-fit: contain; }

.empty { text-align: center; padding: 30px 18px; color: var(--muted); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 98px; transform: translate(-50%, 18px); width: min(calc(100% - 36px), 390px); padding: 12px 15px; border-radius: 13px; background: var(--deep); color: white; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s ease; font-size: 14px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.install-dialog { width: min(calc(100% - 32px), 400px); border: 0; border-radius: 24px; padding: 21px; color: var(--ink); background: var(--paper); box-shadow: 0 24px 80px rgba(7,61,89,.28); }
.install-dialog::backdrop { background: rgba(7, 35, 48, .56); backdrop-filter: blur(3px); }
.install-dialog p { color: var(--muted); line-height: 1.45; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.dialog-head h2 { margin: 4px 0 0; color: var(--deep); }
.dialog-close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 11px; color: var(--deep); background: white; font-size: 22px; }
.install-address { margin: 14px 0; padding: 12px; border-radius: 14px; color: var(--deep); background: var(--sea); }
.install-address span, .install-address strong { display: block; }
.install-address span { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.install-address strong { font-size: 13px; word-break: break-all; }
.install-steps { padding-left: 22px; color: var(--ink); font-size: 13px; line-height: 1.45; }
.install-steps li { margin-bottom: 9px; }
.dialog-note { font-size: 12px; padding: 10px; border-left: 3px solid var(--coral); background: #fff4ef; }
.bottom-nav { position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 430px); height: calc(76px + env(safe-area-inset-bottom, 0px)); padding: 8px 15px calc(8px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
.bottom-nav button { border: 0; background: transparent; color: #738791; border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 2px; }
.bottom-nav button > .nav-icon { width: 28px; height: 28px; display: grid; place-items: center; }
.bottom-nav .nav-icon svg { display: block; width: 24px; height: 24px; }
.bottom-nav button:focus-visible { outline: 2px solid var(--ocean); outline-offset: 2px; }
.bottom-nav button small { font-size: 10px; font-weight: 700; }
.bottom-nav button.active { color: var(--ocean); background: var(--sea); }


@media (min-width: 700px) {
  body { padding: 24px 0; }
  .app-shell { min-height: calc(100vh - 48px); border-radius: 30px; overflow: hidden; }
  .bottom-nav { bottom: 24px; border-radius: 0 0 30px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Ocean Guardian previews: native touch scrolling, keyboard focus and desktop arrows. */
.badge-gallery { margin: 22px 0; text-align: left; min-width: 0; }
.badge-gallery-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge-gallery h2 { margin: 0; font-size: 18px; color: var(--deep); }
.badge-gallery .gallery-hint { margin: 6px 0 12px; font-size: 13px; color: var(--muted); }
.gallery-controls { display: flex; gap: 6px; flex-shrink: 0; }
.gallery-controls button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--deep); }
.gallery-controls svg { width: 18px; height: 18px; }
.badge-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--cyan, #68c9d8) transparent; padding: 2px 2px 12px; }
.badge-preview { flex: 0 0 76%; min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--sea); scroll-snap-align: start; }
.badge-preview img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.badge-preview figcaption { padding: 10px 12px 12px; font-size: 14px; font-weight: 700; text-align: center; color: var(--deep); }
.badge-gallery .gallery-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.badge-track:focus-visible, .gallery-controls button:focus-visible { outline: 2px solid var(--ocean); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .badge-track { scroll-behavior: auto; } }

/* Match home workflow icons to the monochrome navigation set. */
.card-icon svg { display: block; width: 25px; height: 25px; }

/* QR prompt uses the shared monochrome scanner icon. */
.qr-target svg { display: block; width: 80px; height: 80px; }

/* Offline illustrated return map, with stable numbered points shared with the list. */
.return-map { margin: 0 0 20px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: white; box-shadow: 0 8px 24px rgb(7 61 89 / 6%); }
.return-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 17px 14px; }
.return-map-heading .eyebrow { font-size: 9px; letter-spacing: 1.3px; }
.return-map-heading h2 { margin: 5px 0 0; color: var(--deep); font-size: 20px; }
.map-count { flex-shrink: 0; padding: 6px 9px; border-radius: 9px; background: var(--sea); color: var(--deep); font-size: 11px; font-weight: 750; }
.return-map-canvas { position: relative; height: 340px; isolation: isolate; overflow: hidden; border-block: 1px solid #deeaeb; background: #eff4ed; }
.return-map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-water-label { position: absolute; left: 85%; top: 21%; color: #609eae; writing-mode: vertical-rl; font-size: 8px; letter-spacing: 3px; font-weight: 700; }
.map-compass { position: absolute; right: 10px; top: 10px; width: 29px; display: grid; place-items: center; gap: 1px; padding: 5px 0; color: var(--deep); background: rgb(255 255 255 / 88%); border: 1px solid rgb(7 61 89 / 9%); border-radius: 10px; }
.map-compass svg { width: 16px; height: 16px; }
.map-compass small { font-size: 8px; font-weight: 800; }
.return-map-pin { position: absolute; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; margin: -21px; border: 0; padding: 0; background: transparent; border-radius: 50%; color: white; }
.return-map-pin > span { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid white; border-radius: 50% 50% 50% 9px; background: var(--ocean); box-shadow: 0 3px 7px rgb(7 61 89 / 20%); font-size: 11px; font-weight: 800; }
.return-map-pin.unavailable > span { background: #a87764; }
.return-map-pin.closest::before { content: ""; position: absolute; inset: 0; border: 1px solid rgb(8 126 186 / 30%); border-radius: 50%; background: rgb(8 126 186 / 12%); z-index: -1; }
.return-map-pin:focus-visible { outline: 3px solid var(--deep); outline-offset: 1px; }
.return-map-pin:hover > span { box-shadow: 0 0 0 3px #b8e4ed, 0 3px 7px rgb(7 61 89 / 20%); }
.map-demo-label { position: absolute; bottom: 7px; left: 9px; padding: 4px 6px; border-radius: 5px; background: rgb(255 255 255 / 87%); color: #536c75; font-size: 8px; }
.map-no-results { position: absolute; left: 10%; right: 10%; top: 44%; padding: 14px; border-radius: 12px; background: rgb(255 255 255 / 95%); text-align: center; font-size: 13px; color: var(--deep); }
.return-map-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 11px 14px; font-size: 10px; color: var(--muted); }
.return-map-footer > span { display: inline-flex; align-items: center; gap: 5px; }
.map-key { width: 7px; height: 7px; border-radius: 50%; background: var(--ocean); }
.map-key.unavailable { background: #a87764; }
.return-map-footer .map-tap-hint { margin-left: auto; }
.map-closest { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px; text-align: left; border: 0; border-top: 1px solid var(--line); background: #f3f9fa; color: var(--deep); }
.map-closest-icon { display: grid; place-items: center; width: 33px; height: 33px; flex-shrink: 0; border-radius: 11px; background: #dceff4; color: var(--ocean); }
.map-closest-icon svg { width: 20px; height: 20px; }
.map-closest small { display: block; margin-bottom: 3px; font-size: 9px; color: var(--muted); }
.map-closest strong { display: block; font-size: 12px; }
.map-closest-distance { font-size: 12px; font-weight: 800; white-space: nowrap; }
.map-closest-distance > span { margin-left: 5px; font-size: 20px; vertical-align: -1px; }
.station-number { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #c8e2e9; border-radius: 11px; background: var(--sea); color: var(--ocean); font-size: 13px; font-weight: 800; }
.station-number.unavailable { color: #9c6754; background: #fff1e9; border-color: #f0dacd; }
.map-closest:focus-visible { outline: 2px solid var(--ocean); outline-offset: -3px; }

/* The embedded phone has less room than the standalone app. Give each step a
   readable text column and move the action below it at phone widths. */
@media (max-width: 430px) {
  .home-step { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px 12px; align-items: start; padding: 15px; }
  .home-step .card-icon { width: 42px; height: 42px; border-radius: 13px; margin-top: 3px; }
  .home-step .grow { min-width: 0; }
  .home-step h3 { font-size: 16px; line-height: 1.28; margin: 0 0 5px; overflow-wrap: normal; }
  .home-step p { font-size: 13px; line-height: 1.42; margin: 0; overflow-wrap: normal; }
  .home-step .secondary { grid-column: 2; justify-self: start; margin-top: 2px; padding: 7px 13px; }
}
