:root {
    --paper: #fffaf2;
    --surface: #ffffff;
    --ink: #18202b;
    --muted: #6d7480;
    --line: #eadfce;
    --navy: #17324d;
    --red: #c2412d;
    --orange: #f29d38;
    --teal: #1f7a76;
    --shadow: 0 18px 45px rgba(24, 32, 43, 0.12);
    --radius: 18px;
    --app-logo: url("/includes/images/logo.png");
}

.road-trip-page {
    background: #f4f8fd;
}

.road-trip-page .page-shell {
    width: min(820px, 100%);
    padding: 0 0 118px;
}

.road-trip-screen {
    min-height: 100vh;
    color: var(--ink);
    background: linear-gradient(180deg, #f4f8fd 0, #ffffff 52%, #fffaf2 100%);
}

.road-trip-top {
    padding: 42px 24px 18px;
    color: var(--navy);
}

.road-trip-topbar {
    margin-bottom: 30px;
}

.road-trip-all-stops,
.road-trip-summary button {
    display: grid;
    place-items: center;
    min-width: 48px;
    height: 48px;
    padding: 0 12px;
    border: 0;
    border-radius: 16px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(24, 32, 43, 0.14);
    font-weight: 800;
}

.road-trip-summary {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.road-trip-summary h1 {
    margin: 4px 0 6px;
    font-size: clamp(38px, 8vw, 60px);
    line-height: 1;
    letter-spacing: 0;
}

.road-trip-summary span {
    color: var(--muted);
    font-weight: 800;
}

.road-trip-next-card {
    margin: 0 24px 18px;
    padding: 22px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
}

.road-trip-next-card h2 {
    margin: 6px 0 6px;
    color: var(--navy);
    font-size: clamp(28px, 6vw, 42px);
    line-height: 1.05;
}

.road-trip-next-card p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.45;
}

.road-trip-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 18px 0;
}

.road-trip-metrics span {
    display: grid;
    gap: 3px;
    padding: 14px;
    border-radius: 18px;
    background: #f4f8fd;
}

.road-trip-metrics strong {
    color: var(--red);
    font-size: 24px;
}

.road-trip-metrics small {
    color: var(--muted);
    font-weight: 800;
}

.road-trip-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.road-trip-map-shell {
    position: relative;
    margin: 0 0 18px;
    overflow: hidden;
    background: var(--navy);
}

.road-trip-map {
    height: min(58vh, 560px);
    min-height: 430px;
}

.road-trip-warning {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 501;
    display: grid;
    gap: 4px;
    padding: 13px 14px;
    border-radius: 16px;
    color: #fff;
    background: rgba(194, 65, 45, 0.94);
    box-shadow: 0 12px 26px rgba(24, 32, 43, 0.2);
}

.road-trip-sheet {
    margin: -34px 16px 0;
    padding: 14px 18px 20px;
    border-radius: 28px 28px 0 0;
    background: #fff;
    box-shadow: 0 -18px 46px rgba(24, 32, 43, 0.16);
    position: relative;
    z-index: 10;
}

.road-trip-arrival {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    margin: 10px 0 16px;
    padding: 14px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), #135a57);
}

.road-trip-arrival strong,
.road-trip-arrival span {
    display: block;
}

.road-trip-arrival span {
    opacity: 0.88;
    font-weight: 700;
}

.road-trip-checkin-result {
    margin: 10px 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(194, 65, 45, 0.1);
    color: var(--red);
    font-weight: 800;
}

.road-trip-checkin-result.success {
    background: rgba(31, 122, 118, 0.1);
    color: var(--teal);
}

.road-trip-guidance {
    display: grid;
    gap: 12px;
    margin: 12px 0 18px;
    padding: 14px;
    border: 1px solid rgba(20, 49, 78, 0.1);
    border-radius: 18px;
    background: #f8fbff;
}

.road-trip-guidance.fallback {
    border-color: rgba(194, 65, 45, 0.22);
    background: rgba(194, 65, 45, 0.06);
}

.road-trip-guidance .eyebrow {
    margin: 0;
}

.road-trip-guidance-current {
    display: grid;
    gap: 4px;
}

.road-trip-guidance-current strong {
    color: var(--navy);
    font-size: 16px;
    line-height: 1.25;
}

.road-trip-guidance-current span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.road-trip-route-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.road-trip-route-controls button {
    min-height: 42px;
    padding: 9px 10px;
    border: 0;
    border-radius: 12px;
    color: var(--navy);
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(20, 49, 78, 0.1);
}

.road-trip-route-controls button:first-child {
    color: #fff;
    background: var(--red);
    box-shadow: none;
}

.road-trip-guidance ol {
    display: grid;
    gap: 8px;
    max-height: 220px;
    margin: 0;
    padding: 0;
    overflow: auto;
    list-style: none;
}

.road-trip-guidance li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-top: 1px solid rgba(20, 49, 78, 0.08);
}

.road-trip-guidance li.active {
    margin: 0 -8px;
    padding: 10px 8px;
    border-radius: 12px;
    background: rgba(242, 157, 56, 0.14);
}

.road-trip-guidance li span {
    color: var(--navy);
    font-weight: 800;
    line-height: 1.28;
}

.road-trip-guidance li strong {
    color: var(--red);
    font-size: 12px;
    white-space: nowrap;
}

.road-trip-upcoming {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.road-trip-upcoming li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.road-trip-upcoming a {
    color: var(--navy);
    font-weight: 900;
}

.road-trip-upcoming span {
    color: var(--muted);
    font-weight: 800;
}

.road-trip-action-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.road-trip-action-bar a {
    display: grid;
    place-items: center;
    gap: 5px;
    min-height: 62px;
    padding: 8px 4px;
    border-radius: 16px;
    background: #f4f8fd;
    color: var(--navy);
    font-size: 12px;
    font-weight: 900;
}

.road-trip-action-bar span {
    font-size: 20px;
}

.road-trip-status {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.road-trip-permission {
    margin: 10px 0 0;
    padding: 11px 12px;
    border-radius: 14px;
    color: var(--navy);
    background: rgba(242, 157, 56, 0.14);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.road-trip-user-dot,
.road-trip-stop-pin {
    background: transparent;
    border: 0;
}

.road-trip-user-dot span {
    display: block;
    width: 22px;
    height: 22px;
    border: 4px solid #fff;
    border-radius: 999px;
    background: #2878ff;
    box-shadow: 0 0 0 8px rgba(40, 120, 255, 0.2);
}

.road-trip-stop-pin span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 3px solid #fff;
    border-radius: 999px 999px 999px 4px;
    background: var(--orange);
    box-shadow: 0 10px 20px rgba(24, 32, 43, 0.22);
    transform: rotate(-45deg);
}

.road-trip-stop-pin span::after {
    content: "66";
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    transform: rotate(45deg);
}

.road-trip-stop-pin.upcoming span {
    background: #b7c0cb;
}

@media (max-width: 620px) {
    .road-trip-card-actions,
    .road-trip-arrival {
        grid-template-columns: 1fr;
    }

    .road-trip-map {
        min-height: 390px;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(242, 157, 56, 0.08), transparent 360px),
        var(--paper);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px clamp(16px, 5vw, 48px);
    background: rgba(255, 250, 242, 0.88);
    border-bottom: 1px solid rgba(234, 223, 206, 0.8);
    backdrop-filter: blur(16px);
}

.brand,
.top-nav,
.action-row,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand {
    font-weight: 800;
}

.brand-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.top-nav a {
    padding: 10px 12px;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}

.top-nav .nav-pill {
    color: white;
    background: var(--navy);
    border-radius: 999px;
}

.page-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 24px clamp(16px, 4vw, 32px) 96px;
}

.app-home-page {
    background:
        linear-gradient(180deg, #f4f8fd 0, #ffffff 520px, #ffffff 100%),
        #ffffff;
}

.app-home-page .page-shell {
    width: min(820px, 100%);
    padding: 0 0 124px;
}

.app-home {
    padding: 0 24px 28px;
}

.app-hero {
    position: relative;
    min-height: 760px;
    margin: 0 -24px;
    padding: 44px clamp(26px, 5vw, 50px) 180px;
    overflow: hidden;
    color: var(--navy);
    background:
        linear-gradient(180deg, rgba(244, 248, 253, 0.92) 0%, rgba(244, 248, 253, 0.58) 34%, rgba(255, 225, 176, 0.18) 58%, rgba(8, 18, 31, 0.46) 100%),
        linear-gradient(90deg, rgba(255, 252, 245, 0.68), rgba(255, 252, 245, 0.12) 64%),
        url("/includes/images/background.png") center 36% / cover no-repeat;
    border-radius: 0 0 40px 40px;
    box-shadow: inset 0 -120px 86px rgba(4, 13, 23, 0.32);
}

.app-hero::before,
.app-hero::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.app-hero::before {
    inset: 0;
    background:
        radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.78), transparent 26%),
        linear-gradient(0deg, rgba(5, 15, 27, 0.38), transparent 46%);
}

.app-hero::after {
    display: none;
}

.app-hero-top,
.direction-launchers,
.quick-action-grid,
.next-stop-tile,
.memory-banner {
    position: relative;
    z-index: 2;
}

.app-hero-top {
    display: grid;
    grid-template-columns: 54px 1fr 54px;
    align-items: center;
    gap: 10px;
}

.hamburger-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: rgba(255, 255, 255, 0.86);
    border: 0;
    border-radius: 16px;
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, 0.24),
        0 10px 24px rgba(24, 32, 43, 0.16);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.hamburger-button i {
    color: var(--navy);
    font-size: 27px;
    line-height: 1;
}

.passport-logo {
    display: block;
    justify-self: center;
    width: clamp(98px, 14vw, 132px);
    aspect-ratio: 648 / 636;
    background-image: var(--app-logo);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.passport-logo span,
.passport-logo strong {
    display: none;
}

.signal-dots {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 4px;
    width: 48px;
    height: 48px;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.86);
    border-radius: 16px;
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, 0.24),
        0 10px 24px rgba(24, 32, 43, 0.16);
    backdrop-filter: blur(12px);
}

.signal-dots i {
    display: block;
    width: 7px;
    background: var(--navy);
    border-radius: 999px;
}

.signal-dots i:nth-child(1) { height: 13px; }
.signal-dots i:nth-child(2) { height: 20px; }
.signal-dots i:nth-child(3) { height: 28px; }

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin-top: 48px;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(48px, 8.5vw, 70px);
    line-height: 1.08;
    letter-spacing: 0;
}

.hero-copy p {
    max-width: 380px;
    margin: 0;
    color: #243449;
    font-size: clamp(20px, 3.7vw, 29px);
    line-height: 1.35;
    font-weight: 500;
}

.direction-launchers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 58px;
}

.direction-pill {
    display: grid;
    grid-template-columns: 62px 1fr;
    align-items: center;
    min-height: 96px;
    padding: 18px 24px;
    color: white;
    border-radius: 32px;
    box-shadow: 0 24px 42px rgba(24, 32, 43, 0.22);
}

.direction-pill.active {
    outline: 3px solid rgba(255, 255, 255, 0.82);
    outline-offset: -7px;
}

.direction-pill.east {
    background: linear-gradient(135deg, #052f57, #073d70);
}

.direction-pill.west {
    background: linear-gradient(135deg, #d85f31, #bf3d2c);
}

.direction-pill span {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 32px;
}

.direction-pill strong,
.direction-pill small {
    grid-column: 2;
}

.direction-pill strong {
    font-size: clamp(17px, 2.8vw, 24px);
    text-transform: uppercase;
}

.direction-pill small {
    margin-top: 2px;
    font-size: clamp(14px, 2.2vw, 20px);
    font-weight: 700;
}

.app-progress-card {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 28px;
    align-items: center;
    margin: -122px 2px 28px;
    padding: clamp(24px, 4vw, 34px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(234, 223, 206, 0.7);
    border-radius: 28px;
    box-shadow: 0 28px 60px rgba(24, 32, 43, 0.18);
    backdrop-filter: blur(18px);
}

.app-progress-card strong {
    display: block;
    color: var(--red);
    font-size: 58px;
    line-height: 1;
}

.app-progress-card span {
    color: #263449;
    font-size: 18px;
    font-weight: 700;
}

.mini-route-map svg {
    width: 100%;
    height: auto;
    display: block;
    margin: -12px 0 -18px;
    filter: saturate(0.92);
}

.mini-map-bg {
    fill: rgba(255, 249, 235, 0.7);
    stroke: rgba(85, 90, 78, 0.24);
    stroke-width: 3;
}

.mini-map-state-lines {
    fill: none;
    stroke: rgba(83, 88, 78, 0.24);
    stroke-width: 2;
}

.mini-map-line,
.mini-map-complete {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mini-map-line {
    stroke: #d55630;
    stroke-width: 24;
}

.mini-map-complete {
    stroke: var(--navy);
    stroke-width: 26;
}

.mini-map-start {
    fill: var(--red);
    stroke: white;
    stroke-width: 8;
}

.mini-map-end {
    fill: var(--navy);
    stroke: white;
    stroke-width: 8;
}

.mini-route-map div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: -10px;
}

.mini-route-map div span {
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin: 0 4px 34px;
}

.quick-action-grid a {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 146px;
    padding: 14px 10px;
    text-align: center;
    color: var(--navy);
    background: #fff;
    border: 1px solid rgba(234, 223, 206, 0.74);
    border-radius: 20px;
    box-shadow: 0 18px 38px rgba(24, 32, 43, 0.12);
}

.quick-action-grid span {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    color: var(--navy);
    background: transparent;
    border-radius: 16px;
    font-size: 38px;
    font-weight: 900;
}

.quick-action-grid strong {
    font-size: clamp(13px, 2.1vw, 17px);
    line-height: 1.18;
    text-transform: uppercase;
}

.next-stop-feature {
    margin-bottom: 22px;
}

.next-stop-feature .card-heading-row h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(18px, 3vw, 24px);
    text-transform: uppercase;
}

.next-stop-feature .card-heading-row a {
    color: var(--red);
    font-weight: 900;
    text-transform: uppercase;
}

.next-stop-tile {
    display: grid;
    grid-template-columns: minmax(150px, 240px) 1fr 64px;
    gap: 22px;
    align-items: center;
    min-height: 174px;
    padding: 18px;
    background: #fff;
    border: 1px solid rgba(234, 223, 206, 0.72);
    border-radius: 26px;
    box-shadow: 0 18px 42px rgba(24, 32, 43, 0.12);
}

.stop-thumb {
    width: 100%;
    aspect-ratio: 1.45;
    border-radius: 18px;
    object-fit: cover;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0 46%, rgba(24, 32, 43, 0.34) 47%),
        linear-gradient(135deg, #30706a 0 42%, #d7a65a 42% 58%, #7f3d2d 58%);
    box-shadow: inset 0 0 0 1px rgba(24, 32, 43, 0.12);
}

.next-stop-copy strong {
    display: block;
    color: var(--navy);
    font-size: clamp(22px, 3.5vw, 31px);
    line-height: 1.12;
}

.next-stop-copy small {
    display: block;
    margin-top: 12px;
    color: #4c5967;
    font-size: 16px;
    line-height: 1.3;
}

.next-stop-copy em {
    display: inline-flex;
    margin-top: 10px;
    color: var(--red);
    font-size: 15px;
    font-style: normal;
    font-weight: 900;
}

.app-home .next-stop-tile .weather-pill,
.app-home .next-stop-tile .drive-pill {
    display: none;
}

.weather-pill {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    width: fit-content;
    margin-top: 11px;
    padding: 7px 11px;
    color: var(--navy);
    background: #fff4df;
    border: 1px solid rgba(196, 79, 45, 0.18);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.weather-pill::before {
    content: "";
    width: 9px;
    height: 9px;
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(196, 79, 45, 0.12);
}

.auto-checkin-prompt {
    position: fixed;
    right: clamp(14px, 4vw, 28px);
    bottom: calc(18px + env(safe-area-inset-bottom));
    left: clamp(14px, 4vw, 28px);
    z-index: 60;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 42px;
    gap: 14px;
    align-items: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 16px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(234, 223, 206, 0.86);
    border-radius: 22px;
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.2),
        0 20px 52px rgba(24, 32, 43, 0.22);
    backdrop-filter: blur(18px);
}

.auto-checkin-prompt span,
.auto-checkin-prompt strong,
.auto-checkin-prompt small {
    display: block;
}

.auto-checkin-prompt span {
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.auto-checkin-prompt strong {
    margin-top: 4px;
    font-size: clamp(17px, 3vw, 23px);
    line-height: 1.15;
}

.auto-checkin-prompt small {
    margin-top: 5px;
    color: #5a6675;
    font-weight: 800;
}

.auto-checkin-prompt .btn {
    min-height: 46px;
    white-space: nowrap;
}

.auto-checkin-prompt button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--navy);
    background: #f4f1ec;
    border: 0;
    border-radius: 50%;
    font: inherit;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 620px) {
    .auto-checkin-prompt {
        grid-template-columns: 1fr 42px;
    }

    .auto-checkin-prompt .btn {
        grid-column: 1 / -1;
        order: 3;
        width: 100%;
    }
}

.weather-pill strong {
    display: inline;
    font-size: inherit;
    line-height: inherit;
}

.weather-pill.muted {
    color: #6d7781;
    background: #f4f1ea;
    border-color: rgba(24, 32, 43, 0.08);
}

.weather-pill.muted::before {
    background: #aeb5bd;
    box-shadow: 0 0 0 4px rgba(174, 181, 189, 0.14);
}

.drive-pill {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    width: fit-content;
    margin-top: 8px;
    padding: 7px 11px;
    color: var(--navy);
    background: #eef5fb;
    border: 1px solid rgba(10, 42, 74, 0.11);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.drive-pill::before {
    content: "";
    width: 18px;
    height: 8px;
    background: linear-gradient(90deg, var(--navy) 0 33%, transparent 33% 50%, var(--navy) 50% 83%, transparent 83%);
    border-top: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    border-radius: 999px;
}

.drive-pill strong {
    display: inline;
    font-size: inherit;
    line-height: inherit;
}

.drive-pill.muted {
    color: #6d7781;
    background: #f4f1ea;
}

.drive-pill.muted::before {
    border-color: #aeb5bd;
    background: linear-gradient(90deg, #aeb5bd 0 33%, transparent 33% 50%, #aeb5bd 50% 83%, transparent 83%);
}

.round-arrow {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: white;
    background: var(--navy);
    border-radius: 50%;
    font-size: 44px;
    line-height: 1;
}

.memory-banner {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: center;
    min-height: 218px;
    margin-bottom: 26px;
    padding: 30px;
    color: white;
    overflow: hidden;
    background:
        radial-gradient(circle at 86% 44%, rgba(255, 255, 255, 0.12), transparent 22%),
        linear-gradient(135deg, rgba(9, 25, 42, 0.97), rgba(23, 50, 77, 0.9)),
        url("/includes/images/background.png") center 82% / cover no-repeat;
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(24, 32, 43, 0.16);
}

.passport-book {
    display: block;
    width: 150px;
    height: 150px;
    overflow: hidden;
    color: transparent;
    background: var(--app-logo) center / contain no-repeat;
    box-shadow: 18px 20px 36px rgba(0, 0, 0, 0.25);
}

.memory-banner h2,
.memory-banner p {
    margin: 0;
}

.memory-banner h2 {
    font-size: clamp(27px, 4.5vw, 36px);
    line-height: 1.25;
}

.memory-banner p {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 19px;
    line-height: 1.35;
}

.legacy-summary {
    display: none;
}

.route-map-page {
    background: #f8f3ea;
}

.route-map-page .page-shell {
    width: min(760px, 100%);
    padding: 0 0 112px;
}

.route-map-screen {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(255, 252, 246, 0.96) 0, rgba(255, 252, 246, 0.68) 250px, rgba(248, 243, 234, 0) 420px),
        #f8f3ea;
}

.route-map-hero {
    position: absolute;
    inset: 0 0 auto;
    z-index: 3;
    padding: 42px 28px 0;
    pointer-events: none;
}

.route-map-hero a,
.route-map-hero button {
    pointer-events: auto;
}

.map-top {
    margin-bottom: 28px;
}

.filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 18px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(234, 223, 206, 0.78);
    border-radius: 999px;
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, 0.24),
        0 12px 28px rgba(24, 32, 43, 0.14);
    backdrop-filter: blur(12px);
    font-weight: 900;
    text-transform: uppercase;
}

.filter-button::before {
    content: "";
    width: 17px;
    height: 17px;
    margin-right: 8px;
    border: 3px solid currentColor;
    border-top-width: 5px;
    border-radius: 7px 7px 3px 3px;
    clip-path: polygon(0 0, 100% 0, 64% 54%, 64% 100%, 36% 100%, 36% 54%);
}

.map-title-row {
    display: grid;
    grid-template-columns: 1fr 230px;
    gap: 22px;
    align-items: start;
}

.map-title-row h1 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 54px;
    line-height: 1;
}

.map-title-row p {
    max-width: 330px;
    margin: 0;
    color: #233246;
    font-size: 22px;
    line-height: 1.36;
}

.map-timeline-button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    margin-top: 22px;
    padding: 0 18px;
    color: white;
    background: var(--navy);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(24, 32, 43, 0.16);
    font-weight: 900;
    text-transform: uppercase;
}

.map-progress-card {
    position: relative;
    display: grid;
    min-height: 142px;
    padding: 18px 58px 18px 20px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(234, 223, 206, 0.72);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(24, 32, 43, 0.14);
    backdrop-filter: blur(18px);
}

.map-progress-card span {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.map-progress-card strong {
    color: var(--red);
    font-size: 48px;
    line-height: 1;
}

.map-progress-card small {
    font-size: 18px;
    font-weight: 700;
}

.map-progress-card em {
    position: absolute;
    right: 20px;
    top: 50%;
    font-size: 42px;
    font-style: normal;
    transform: translateY(-50%);
}

.usa-map-panel {
    position: relative;
    min-height: 860px;
    padding-top: 190px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 58%, rgba(45, 105, 132, 0.16), transparent 24%),
        radial-gradient(circle at 86% 84%, rgba(45, 105, 132, 0.2), transparent 30%),
        linear-gradient(180deg, #f5f0e5, #e6dcc8);
}

.usa-map-panel::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.56;
    background:
        linear-gradient(30deg, transparent 0 48%, rgba(117, 125, 112, 0.22) 48.3% 48.7%, transparent 49%),
        linear-gradient(112deg, transparent 0 58%, rgba(117, 125, 112, 0.16) 58.2% 58.6%, transparent 59%),
        radial-gradient(circle at 70% 24%, rgba(96, 152, 190, 0.36), transparent 8%),
        radial-gradient(circle at 8% 74%, rgba(96, 152, 190, 0.34), transparent 13%);
}

.usa-route-svg {
    position: relative;
    z-index: 1;
    width: 120%;
    max-width: none;
    height: auto;
    margin: 134px -10% 0;
    display: block;
    filter: saturate(0.92);
}

.usa-land {
    fill: rgba(255, 249, 235, 0.58);
    stroke: rgba(85, 90, 78, 0.3);
    stroke-width: 2;
}

.state-lines {
    fill: none;
    stroke: rgba(83, 88, 78, 0.34);
    stroke-width: 1.4;
}

.map-labels text {
    fill: rgba(15, 29, 45, 0.86);
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
}

.big-map-line-base,
.big-map-line-complete {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: url(#routeShadow);
}

.big-map-line-base {
    stroke: #d55630;
    stroke-width: 12;
}

.big-map-line-complete {
    stroke: var(--navy);
    stroke-width: 13;
}

.big-map-stop {
    stroke: white;
    stroke-width: 4;
    transition: r 0.16s ease, transform 0.16s ease;
}

.big-map-stop.not-visited {
    fill: #d55630;
}

.big-map-stop.visited {
    fill: var(--navy);
}

.big-map-stop.current,
.big-map-stop.featured {
    stroke: #fff5df;
    stroke-width: 6;
}

.big-map-stop.current {
    fill: var(--red);
}

.big-map-stop:hover {
    r: 13;
}

.endpoint path {
    fill: #0b2b4c;
    stroke: white;
    stroke-width: 5;
}

.endpoint.end path {
    fill: #1a1d22;
}

.endpoint circle {
    fill: white;
}

.endpoint text {
    fill: white;
    stroke: #0b2b4c;
    stroke-width: 8;
    paint-order: stroke;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
}

.map-floating-controls {
    position: absolute;
    right: 28px;
    bottom: 220px;
    z-index: 4;
    display: grid;
    gap: 14px;
}

.map-floating-controls button {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(24, 32, 43, 0.14);
    font-size: 32px;
    font-weight: 800;
}

.map-legend.floating {
    position: absolute;
    left: 28px;
    bottom: 226px;
    z-index: 4;
    display: flex;
    gap: 20px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(234, 223, 206, 0.78);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(24, 32, 43, 0.12);
    backdrop-filter: blur(14px);
}

.legend-dot.locked {
    background: #8e949a;
}

.nearby-sheet {
    position: relative;
    z-index: 5;
    margin: -176px 0 0;
    padding: 18px 28px 28px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -16px 40px rgba(24, 32, 43, 0.12);
    backdrop-filter: blur(18px);
}

.sheet-handle {
    display: block;
    width: 76px;
    height: 7px;
    margin: 0 auto 22px;
    background: #aeb4bd;
    border-radius: 999px;
}

.sheet-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.sheet-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: 28px;
}

.sheet-heading button,
.nearby-radius-select {
    min-height: 44px;
    padding: 0;
    color: var(--navy);
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
}

.nearby-radius-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nearby-radius-select select {
    min-height: 44px;
    padding: 0 34px 0 14px;
    color: var(--navy);
    background: #fff;
    border: 1px solid rgba(234, 223, 206, 0.9);
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
}

.nearby-status {
    min-height: 22px;
    margin: -8px 0 14px;
    color: #5f6873;
    font-weight: 700;
}

.map-stop-cards {
    display: grid;
    gap: 12px;
}

.map-stop-card {
    display: grid;
    grid-template-columns: 180px 32px 1fr 54px;
    gap: 14px;
    align-items: center;
    min-height: 130px;
    padding: 14px;
    color: var(--navy);
    background: #fff;
    border: 1px solid rgba(234, 223, 206, 0.72);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(24, 32, 43, 0.1);
}

.map-card-image {
    width: 100%;
    aspect-ratio: 1.65;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0 45%, rgba(24, 32, 43, 0.32) 46%),
        linear-gradient(135deg, #28726b 0 38%, #f3d58f 38% 57%, #894333 57%);
    background-position: center;
    background-size: cover;
}

.stop-number {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: white;
    background: var(--red);
    border-radius: 50%;
    font-weight: 900;
}

.map-card-copy strong,
.map-card-copy small,
.map-card-copy em {
    display: block;
}

.map-card-copy strong {
    font-size: 21px;
    line-height: 1.15;
}

.map-card-copy small {
    margin-top: 8px;
    color: #3f4b5b;
    font-size: 16px;
}

.map-card-copy em {
    margin-top: 8px;
    color: var(--red);
    font-style: normal;
    font-weight: 800;
}

.full-stop-list {
    padding: 22px 18px 0;
}

.achievements-page {
    background:
        linear-gradient(180deg, #f4f8fd 0, #ffffff 520px, #ffffff 100%),
        #ffffff;
}

.achievements-page .page-shell {
    width: min(820px, 100%);
    padding: 0 0 124px;
}

.achievements-screen {
    padding: 0 24px 34px;
}

.achievements-hero {
    position: relative;
    min-height: 610px;
    margin: 0 -24px;
    padding: 42px clamp(28px, 5vw, 52px) 190px;
    overflow: hidden;
    color: var(--navy);
    background:
        linear-gradient(180deg, rgba(246, 250, 255, 0.95) 0%, rgba(246, 250, 255, 0.72) 42%, rgba(255, 224, 177, 0.24) 65%, rgba(8, 18, 31, 0.58) 100%),
        linear-gradient(90deg, rgba(255, 252, 246, 0.74), rgba(255, 252, 246, 0.08) 68%),
        url("/includes/images/background.png") center 34% / cover no-repeat;
    border-radius: 0 0 40px 40px;
    box-shadow: inset 0 -104px 88px rgba(4, 13, 23, 0.28);
}

.achievements-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.82), transparent 27%),
        linear-gradient(0deg, rgba(5, 15, 27, 0.42), transparent 46%);
}

.achievements-top,
.achievements-copy {
    position: relative;
    z-index: 2;
}

.help-button {
    display: grid;
    place-items: center;
    justify-self: end;
    width: 50px;
    height: 50px;
    color: white;
    background: var(--navy);
    border-radius: 50%;
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, 0.28),
        0 12px 24px rgba(24, 32, 43, 0.2);
    font-size: 27px;
    font-weight: 900;
}

.achievements-copy {
    max-width: 560px;
    margin-top: 54px;
}

.achievements-copy h1 {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: clamp(52px, 8.8vw, 74px);
    line-height: 1;
}

.achievements-copy p {
    max-width: 500px;
    margin: 0;
    color: #233246;
    font-size: clamp(20px, 3.4vw, 28px);
    line-height: 1.45;
}

.achievement-progress-card {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 180px 1fr 48px;
    gap: 26px;
    align-items: center;
    margin: -142px 0 16px;
    padding: 24px 28px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(234, 223, 206, 0.78);
    border-radius: 26px;
    box-shadow: 0 24px 52px rgba(24, 32, 43, 0.17);
    backdrop-filter: blur(18px);
}

.achievement-progress-card h2 {
    margin: 0 0 4px;
    font-size: clamp(42px, 7vw, 58px);
    line-height: 1;
}

.achievement-progress-card h2 span,
.achievement-progress-card p {
    color: var(--red);
}

.achievement-progress-card > div > strong {
    display: block;
    margin-bottom: 16px;
    font-size: clamp(17px, 2.5vw, 22px);
}

.achievement-progress-card p {
    margin: 10px 0 0;
    font-weight: 800;
}

.achievement-progress-card > a {
    color: var(--navy);
    font-size: 48px;
    line-height: 1;
}

.achievement-emblem {
    display: grid;
    place-items: center;
    align-content: center;
    width: 140px;
    height: 140px;
    color: #fff3df;
    background:
        linear-gradient(180deg, #123b5c, #0b263f),
        #123b5c;
    border: 5px solid #d47a35;
    border-radius: 36px 36px 28px 28px;
    box-shadow: inset 0 0 0 4px #071c30, 0 12px 22px rgba(24, 32, 43, 0.12);
    text-align: center;
    text-transform: uppercase;
}

.achievement-emblem span {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.achievement-emblem strong {
    font-size: 46px;
    line-height: 0.95;
}

.achievement-emblem em {
    min-width: 118px;
    margin-top: 4px;
    padding: 5px 8px;
    color: #fff8e9;
    background: var(--red);
    border-radius: 6px;
    font-size: 14px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.05;
}

.achievement-emblem.small {
    width: 126px;
    height: 126px;
    margin: 0 auto 14px;
}

.achievement-emblem.small strong {
    font-size: 35px;
}

.achievement-emblem.mini {
    width: 82px;
    height: 82px;
    border-width: 3px;
    border-radius: 22px;
}

.achievement-emblem.mini strong {
    font-size: 26px;
}

.achievement-emblem.mini em {
    min-width: 72px;
    font-size: 9px;
}

.achievement-emblem.locked {
    filter: grayscale(1);
    opacity: 0.42;
}

.achievement-meter {
    overflow: hidden;
    width: 100%;
    height: 9px;
    background: #dfe1e3;
    border-radius: 999px;
}

.achievement-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--red), #dd7441);
    border-radius: inherit;
}

.achievement-tabs {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 0 0 30px;
    padding: 11px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(234, 223, 206, 0.76);
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(24, 32, 43, 0.13);
}

.achievement-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 66px;
    color: var(--navy);
    border-radius: 16px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.achievement-tabs a + a {
    border-left: 1px solid var(--line);
}

.achievement-tabs a.active {
    color: var(--red);
    background: #fff;
    box-shadow: 0 12px 24px rgba(194, 65, 45, 0.12);
}

.achievement-tabs span {
    font-size: 26px;
}

.achievement-section {
    margin-bottom: 28px;
}

.achievement-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.achievement-section h2,
.achievement-section-heading h2 {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: clamp(22px, 3.4vw, 28px);
}

.achievement-section-heading h2 {
    margin: 0;
}

.achievement-section-heading a {
    color: var(--red);
    font-size: 17px;
    font-weight: 800;
}

.earned-achievement-grid,
.locked-achievement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.earned-achievement-card,
.locked-achievement-card,
.empty-achievements {
    min-height: 274px;
    padding: 18px 14px;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(234, 223, 206, 0.78);
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(24, 32, 43, 0.1);
}

.earned-achievement-card h3,
.locked-achievement-card h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 15px;
}

.earned-achievement-card p {
    margin: 0;
    color: #344256;
    font-size: 14px;
    line-height: 1.45;
}

.earned-achievement-card time {
    display: block;
    margin-top: 12px;
    color: var(--red);
    font-size: 14px;
    font-weight: 800;
}

.empty-achievements {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 160px;
}

.empty-achievements strong,
.empty-achievements span {
    display: block;
}

.empty-achievements span {
    margin-top: 6px;
    color: var(--muted);
}

.progress-achievement-list {
    display: grid;
    gap: 12px;
}

.progress-achievement-card {
    display: grid;
    grid-template-columns: 92px 1fr 88px;
    gap: 18px;
    align-items: center;
    min-height: 132px;
    padding: 18px 20px;
    color: var(--navy);
    background: #fff;
    border: 1px solid rgba(234, 223, 206, 0.78);
    border-radius: 24px;
    box-shadow: 0 16px 34px rgba(24, 32, 43, 0.11);
}

.progress-achievement-card h3,
.progress-achievement-card p {
    margin: 0;
}

.progress-achievement-card h3 {
    margin-bottom: 6px;
    font-size: 20px;
}

.progress-achievement-card p {
    margin-bottom: 14px;
    color: #344256;
    line-height: 1.4;
}

.progress-achievement-card > span {
    color: var(--red);
    font-size: 18px;
    font-weight: 900;
    text-align: right;
}

.locked-achievement-card {
    position: relative;
    min-height: 210px;
}

.locked-achievement-card > span {
    position: absolute;
    left: 50%;
    top: 94px;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: white;
    background: rgba(24, 32, 43, 0.78);
    border-radius: 50%;
    font-size: 0;
    transform: translateX(-50%);
}

.locked-achievement-card > span::before {
    content: "";
    width: 16px;
    height: 14px;
    border: 3px solid white;
    border-radius: 3px;
    box-shadow: 0 -9px 0 -4px rgba(24, 32, 43, 0.78), 0 -9px 0 -1px white;
}

.vault-page {
    background:
        linear-gradient(180deg, #f4f8fd 0, #ffffff 520px, #ffffff 100%),
        #ffffff;
}

.vault-page .page-shell {
    width: min(820px, 100%);
    padding: 0 0 124px;
}

.vault-screen {
    padding: 0 24px 34px;
}

.vault-hero {
    position: relative;
    min-height: 560px;
    margin: 0 -24px;
    padding: 42px clamp(28px, 5vw, 52px) 178px;
    overflow: hidden;
    color: var(--navy);
    background:
        linear-gradient(180deg, rgba(246, 250, 255, 0.95) 0%, rgba(246, 250, 255, 0.72) 40%, rgba(255, 224, 177, 0.22) 64%, rgba(8, 18, 31, 0.56) 100%),
        linear-gradient(90deg, rgba(255, 252, 246, 0.74), rgba(255, 252, 246, 0.08) 68%),
        url("/includes/images/background.png") center 34% / cover no-repeat;
    border-radius: 0 0 40px 40px;
    box-shadow: inset 0 -104px 88px rgba(4, 13, 23, 0.28);
}

.vault-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.82), transparent 27%),
        linear-gradient(0deg, rgba(5, 15, 27, 0.42), transparent 46%);
}

.vault-top,
.vault-copy {
    position: relative;
    z-index: 2;
}

.vault-copy {
    max-width: 540px;
    margin-top: 54px;
}

.vault-copy h1 {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: clamp(56px, 9vw, 78px);
    line-height: 1;
}

.vault-copy p {
    margin: 0;
    color: #405064;
    font-size: clamp(22px, 3.5vw, 30px);
    line-height: 1.35;
}

.vault-progress-card {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 180px 1fr 48px;
    gap: 26px;
    align-items: center;
    margin: -126px 0 16px;
    padding: 24px 28px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(234, 223, 206, 0.78);
    border-radius: 26px;
    box-shadow: 0 24px 52px rgba(24, 32, 43, 0.17);
    backdrop-filter: blur(18px);
}

.vault-progress-card h2 {
    margin: 0 0 4px;
    font-size: clamp(42px, 7vw, 58px);
    line-height: 1;
}

.vault-progress-card h2 span,
.vault-progress-card p {
    color: var(--red);
}

.vault-progress-card > div > strong {
    display: block;
    margin-bottom: 16px;
    font-size: clamp(17px, 2.5vw, 22px);
}

.vault-progress-card p {
    margin: 10px 0 0;
    font-weight: 800;
}

.vault-progress-card > a {
    color: var(--navy);
    font-size: 48px;
    line-height: 1;
}

.vault-filter-tabs {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 0 0 18px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(234, 223, 206, 0.78);
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(24, 32, 43, 0.13);
}

.vault-filter-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 58px;
    color: var(--navy);
    background: #fff;
    border: 1px solid rgba(234, 223, 206, 0.86);
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(24, 32, 43, 0.08);
    font-size: clamp(14px, 2.2vw, 18px);
    font-weight: 900;
}

.vault-filter-tabs a.active {
    color: white;
    background: linear-gradient(135deg, #d85f31, var(--red));
    border-color: transparent;
}

.vault-filter-tabs span {
    font-size: 21px;
}

.vault-state-filter {
    max-width: 340px;
    margin: 0 0 18px;
}

.passport-collection {
    display: grid;
    gap: 22px;
    margin: 0 0 30px;
}

.passport-collection-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    color: var(--navy);
}

.passport-collection-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4.8vw, 46px);
    line-height: 1;
}

.passport-collection-heading > span {
    flex: 0 0 auto;
    padding: 10px 14px;
    color: #fff;
    background: var(--navy);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
}

.passport-spread {
    position: relative;
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 20px;
    min-height: 390px;
    padding: 28px;
    overflow: hidden;
    color: var(--navy);
    background:
        linear-gradient(90deg, rgba(138, 89, 44, 0.13), transparent 12%, transparent 88%, rgba(138, 89, 44, 0.1)),
        repeating-linear-gradient(0deg, rgba(111, 78, 45, 0.045) 0 1px, transparent 1px 18px),
        #fff7e8;
    border: 1px solid rgba(184, 142, 88, 0.46);
    border-radius: 8px;
    box-shadow:
        inset 18px 0 28px rgba(111, 72, 34, 0.11),
        0 18px 44px rgba(24, 32, 43, 0.13);
}

.passport-spread::before {
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 186px;
    width: 1px;
    content: "";
    background: repeating-linear-gradient(180deg, rgba(90, 55, 28, 0.2) 0 10px, transparent 10px 18px);
}

.passport-page-meta {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: space-between;
    min-width: 0;
    padding-right: 8px;
    text-transform: uppercase;
}

.passport-page-meta span,
.passport-page-meta em {
    color: rgba(23, 50, 77, 0.62);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0;
}

.passport-page-meta strong {
    display: block;
    margin: 16px 0;
    color: rgba(194, 65, 45, 0.86);
    font-size: clamp(24px, 3.8vw, 42px);
    line-height: 0.98;
}

.passport-stamp-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.passport-stamp-sticker {
    position: relative;
    display: grid;
    min-height: 154px;
    padding: 14px;
    overflow: hidden;
    color: var(--navy);
    background:
        radial-gradient(circle at 100% 0, rgba(31, 122, 118, 0.11), transparent 32%),
        #fffdf7;
    border: 2px solid rgba(23, 50, 77, 0.2);
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(67, 44, 20, 0.1);
    transform: rotate(var(--stamp-rotate));
}

.passport-stamp-sticker::after {
    position: absolute;
    inset: 8px;
    content: "";
    border: 1px dashed rgba(194, 65, 45, 0.36);
    border-radius: 5px;
    pointer-events: none;
}

.passport-stamp-sticker.collected {
    border-color: rgba(194, 65, 45, 0.44);
}

.passport-stamp-sticker.locked {
    color: rgba(23, 50, 77, 0.42);
    background:
        repeating-linear-gradient(-35deg, rgba(23, 50, 77, 0.04) 0 8px, transparent 8px 16px),
        rgba(255, 253, 247, 0.72);
}

.passport-stamp-sticker.featured .passport-stamp-seal {
    color: var(--teal);
}

.passport-stamp-number {
    justify-self: start;
    padding: 4px 7px;
    color: #fff;
    background: var(--navy);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.passport-stamp-seal {
    position: absolute;
    top: 22px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    color: var(--red);
    border: 4px double currentColor;
    border-radius: 50%;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(10deg);
    opacity: 0.9;
}

.passport-stamp-seal strong {
    font-size: 25px;
    line-height: 0.82;
}

.passport-stamp-seal em {
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.passport-stamp-copy {
    align-self: end;
    display: grid;
    gap: 4px;
    max-width: calc(100% - 58px);
}

.passport-stamp-copy strong {
    font-size: 16px;
    line-height: 1.12;
}

.passport-stamp-copy small,
.passport-stamp-overlay {
    color: #526073;
    font-size: 12px;
    font-weight: 800;
}

.passport-stamp-overlay {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    align-items: center;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(23, 50, 77, 0.12);
}

.passport-stamp-overlay time,
.passport-stamp-overlay small {
    font: inherit;
}

.vault-memory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.memory-card,
.keep-collecting-card {
    overflow: hidden;
    min-height: 360px;
    background: #fff;
    border: 1px solid rgba(234, 223, 206, 0.82);
    border-radius: 20px;
    box-shadow: 0 16px 34px rgba(24, 32, 43, 0.11);
}

.memory-photo {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    color: inherit;
    text-align: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.memory-photo img {
    width: 100%;
    aspect-ratio: 1 / 1.08;
    object-fit: cover;
    background: #f3eadb;
}

.memory-photo span {
    position: absolute;
    top: 10px;
    left: 10px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: white;
    background: var(--navy);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(24, 32, 43, 0.22);
    font-size: 22px;
    font-weight: 900;
}

.photo-delete-form {
    display: none;
}

.vault-photo-notice {
    grid-column: 1 / -1;
    margin: 0;
}

.memory-card div {
    padding: 16px 14px 18px;
}

.memory-card h2 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: clamp(17px, 2.7vw, 22px);
    line-height: 1.16;
}

.memory-card p {
    margin: 0 0 8px;
    color: #526073;
    font-size: clamp(13px, 2vw, 16px);
    line-height: 1.35;
}

.memory-card time,
.memory-card em,
.memory-weather {
    display: block;
    color: var(--red);
    font-size: 14px;
    font-style: normal;
    font-weight: 800;
}

.memory-weather {
    width: fit-content;
    margin: 8px 0;
    padding: 7px 10px;
    color: var(--navy);
    background: #fff4df;
    border: 1px solid rgba(196, 79, 45, 0.18);
    border-radius: 999px;
}

.memory-card em {
    margin-top: 6px;
}

.keep-collecting-card {
    display: grid;
    align-content: center;
    padding: 24px;
    color: var(--navy);
    background:
        radial-gradient(circle at 78% 14%, rgba(24, 32, 43, 0.08), transparent 30%),
        #fff8ec;
}

.keep-collecting-card span {
    color: var(--red);
    font-size: 44px;
}

.keep-collecting-card h2,
.keep-collecting-card p {
    margin: 0;
}

.keep-collecting-card h2 {
    margin-top: 14px;
    font-size: 24px;
}

.keep-collecting-card p {
    margin-top: 10px;
    color: #526073;
    font-size: 18px;
    line-height: 1.38;
}

.vault-empty {
    grid-column: 1 / -1;
}

.vault-reel-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    min-height: 206px;
    padding: 28px;
    overflow: hidden;
    color: var(--navy);
    background:
        linear-gradient(90deg, rgba(255, 252, 246, 0.98) 0%, rgba(255, 244, 226, 0.78) 46%, rgba(255, 244, 226, 0.28) 100%),
        url("/includes/images/background.png") center 72% / cover no-repeat;
    border: 1px solid rgba(224, 190, 146, 0.8);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(24, 32, 43, 0.14);
}

.vault-reel-card > div {
    display: flex;
    align-items: center;
    gap: 18px;
}

.vault-reel-card span {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: var(--red);
    border: 3px solid var(--red);
    border-radius: 14px;
    font-size: 27px;
}

.vault-reel-card h2,
.vault-reel-card p {
    margin: 0;
}

.vault-reel-card h2 {
    font-size: 28px;
}

.vault-reel-card p {
    margin-top: 8px;
    color: #405064;
    font-size: 18px;
}

.vault-reel-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
    color: var(--red);
    background: rgba(255, 255, 255, 0.68);
    border: 2px solid var(--red);
    border-radius: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-page {
    background:
        linear-gradient(180deg, #f4f8fd 0, #ffffff 520px, #ffffff 100%),
        #ffffff;
}

.profile-page .page-shell {
    width: min(820px, 100%);
    padding: 0 0 124px;
}

.settings-screen {
    padding: 0 24px 34px;
}

.settings-hero {
    position: relative;
    min-height: 470px;
    margin: 0 -24px;
    padding: 42px clamp(28px, 5vw, 52px) 156px;
    overflow: hidden;
    color: var(--navy);
    text-align: center;
    background:
        linear-gradient(180deg, rgba(246, 250, 255, 0.95) 0%, rgba(246, 250, 255, 0.72) 40%, rgba(255, 224, 177, 0.22) 64%, rgba(8, 18, 31, 0.5) 100%),
        linear-gradient(90deg, rgba(255, 252, 246, 0.68), rgba(255, 252, 246, 0.08) 68%),
        url("/includes/images/background.png") center 34% / cover no-repeat;
    border-radius: 0 0 40px 40px;
    box-shadow: inset 0 -98px 80px rgba(4, 13, 23, 0.24);
}

.settings-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.82), transparent 27%),
        linear-gradient(0deg, rgba(5, 15, 27, 0.28), transparent 48%);
}

.settings-top,
.settings-hero-copy {
    position: relative;
    z-index: 2;
}

.settings-hero-copy {
    max-width: 520px;
    margin: 54px auto 0;
}

.settings-hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(42px, 7vw, 68px);
    line-height: 1;
}

.settings-hero-copy p {
    margin: 0;
    color: #10223a;
    font-size: clamp(17px, 2.7vw, 24px);
    line-height: 1.35;
    font-weight: 800;
}

.settings-profile-card {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 90px 1fr 34px;
    gap: 18px;
    align-items: center;
    min-height: 118px;
    margin: -96px 0 24px;
    padding: 18px 26px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(234, 223, 206, 0.78);
    border-radius: 24px;
    box-shadow: 0 24px 52px rgba(24, 32, 43, 0.17);
    backdrop-filter: blur(18px);
}

.settings-avatar {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    color: white;
    background:
        linear-gradient(180deg, rgba(10, 35, 58, 0.2), rgba(10, 35, 58, 0.44)),
        url("/includes/images/background.png") center 68% / cover no-repeat;
    border: 4px solid #f0e4d5;
    border-radius: 50%;
    font-size: 30px;
    font-weight: 900;
}

.settings-profile-card h1,
.settings-profile-card p {
    margin: 0;
}

.settings-profile-card h1 {
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.1;
}

.settings-profile-card p {
    margin-top: 6px;
    color: #3c4b61;
    font-size: clamp(14px, 2.3vw, 19px);
}

.settings-profile-card > span {
    color: var(--navy);
    font-size: 44px;
}

.settings-notice {
    margin: 0 0 16px;
}

.settings-form {
    display: grid;
    gap: 22px;
}

.settings-group h2 {
    margin: 0 0 10px 6px;
    color: var(--navy);
    font-size: clamp(17px, 2.6vw, 22px);
    text-transform: uppercase;
}

.settings-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(234, 223, 206, 0.78);
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(24, 32, 43, 0.11);
}

.settings-row {
    display: grid;
    grid-template-columns: 58px 1fr minmax(70px, auto);
    gap: 18px;
    align-items: center;
    min-height: 86px;
    padding: 16px 24px 16px 20px;
    color: var(--navy);
}

.settings-row + .settings-row {
    border-top: 1px solid rgba(24, 32, 43, 0.08);
}

.settings-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--navy);
    background: #f8e5d5;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 900;
}

.settings-row strong,
.settings-row small {
    display: block;
}

.settings-row strong {
    font-size: clamp(17px, 2.6vw, 22px);
}

.settings-row small {
    margin-top: 2px;
    color: #3f4d61;
    font-size: clamp(13px, 2vw, 17px);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.settings-row input:not([type="checkbox"]),
.settings-row select {
    width: min(220px, 100%);
    justify-self: end;
    padding: 10px 12px;
    color: var(--navy);
    background: #fffaf4;
    border: 1px solid rgba(234, 223, 206, 0.9);
    border-radius: 12px;
    font: inherit;
    font-weight: 800;
}

.settings-row em {
    justify-self: end;
    color: var(--red);
    font-size: clamp(16px, 2.4vw, 20px);
    font-style: normal;
    font-weight: 900;
}

.social-login-row {
    grid-template-columns: 58px 1fr auto;
}

.social-login-row .settings-icon .fa-brands {
    font-size: 24px;
    line-height: 1;
}

.social-login-action {
    justify-self: end;
    min-width: 96px;
    padding: 11px 16px;
    color: white;
    background: var(--navy);
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.social-login-action--remove {
    color: var(--red);
    background: #fff6f2;
    border: 1px solid rgba(194, 65, 45, 0.24);
}

.danger-settings-group .settings-icon,
.account-delete-row .settings-icon {
    color: #fff;
    background: var(--red);
}

.account-delete-row {
    width: 100%;
    color: var(--navy);
    background: transparent;
    border: 0;
    text-align: left;
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.account-delete-row:focus-visible {
    outline: 3px solid rgba(194, 65, 45, 0.24);
    outline-offset: -3px;
}

.settings-switch-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.settings-switch {
    position: relative;
    display: block;
    justify-self: end;
    width: 46px;
    height: 28px;
    background: #dfe5ec;
    border: 1px solid rgba(24, 32, 43, 0.12);
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(24, 32, 43, 0.08);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.settings-switch::after {
    position: absolute;
    top: 2px;
    left: 2px;
    display: block;
    width: 22px;
    height: 22px;
    content: "";
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(24, 32, 43, 0.22);
    transition: transform 0.18s ease;
}

.settings-switch-input:checked + .settings-switch {
    background: var(--red);
    border-color: var(--red);
}

.settings-switch-input:checked + .settings-switch::after {
    transform: translateX(18px);
}

.settings-switch-input:focus-visible + .settings-switch {
    outline: 3px solid rgba(194, 65, 45, 0.24);
    outline-offset: 3px;
}

.settings-save {
    min-height: 62px;
    color: white;
    background: linear-gradient(135deg, #de6a35, var(--red));
    border: 0;
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(194, 65, 45, 0.24);
    font: inherit;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.settings-signout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    color: var(--red);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(194, 65, 45, 0.28);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(24, 32, 43, 0.08);
    font: inherit;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.signout-modal-open,
.account-delete-modal-open,
.visit-photo-modal-open {
    overflow: hidden;
}

.signout-modal[hidden],
.account-delete-modal[hidden],
.visit-photo-modal[hidden] {
    display: none;
}

.signout-modal,
.account-delete-modal,
.visit-photo-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.signout-modal:not([hidden]),
.account-delete-modal:not([hidden]),
.visit-photo-modal:not([hidden]) {
    display: grid;
}

.signout-modal-backdrop,
.account-delete-modal-backdrop,
.visit-photo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 31, 0.58);
    backdrop-filter: blur(8px);
}

.signout-modal-panel,
.account-delete-modal-panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 28px;
    color: var(--navy);
    background: #fffaf4;
    border: 1px solid rgba(234, 223, 206, 0.9);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(8, 18, 31, 0.28);
}

.signout-modal-panel h2,
.signout-modal-panel p,
.account-delete-modal-panel h2,
.account-delete-modal-panel p {
    margin: 0;
}

.signout-modal-panel h2,
.account-delete-modal-panel h2 {
    font-size: 28px;
    line-height: 1.1;
}

.signout-modal-panel p,
.account-delete-modal-panel p {
    margin-top: 10px;
    color: #3f4d61;
    font-size: 17px;
    line-height: 1.45;
}

.signout-modal-actions,
.account-delete-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.account-delete-modal-actions--stack {
    grid-template-columns: 1fr;
}

.visit-photo-modal {
    z-index: 1200;
    padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
}

.visit-photo-modal-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(920px, 100%);
    height: min(860px, 100%);
    overflow: hidden;
    color: white;
    background: #08121f;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.visit-photo-modal-topbar,
.visit-photo-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(8, 18, 31, 0.92);
}

.visit-photo-modal-topbar {
    justify-content: space-between;
}

.visit-photo-modal-topbar h2 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.visit-photo-modal-topbar button {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 50%;
}

.visit-photo-modal figure {
    display: grid;
    min-height: 0;
    margin: 0;
    padding: 14px;
}

.visit-photo-modal img {
    align-self: center;
    justify-self: center;
    max-width: 100%;
    max-height: 100%;
    border-radius: 14px;
    object-fit: contain;
}

.visit-photo-modal figcaption {
    align-self: end;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.45;
}

.visit-photo-modal-actions {
    justify-content: flex-end;
}

.visit-photo-modal-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-page {
    color: var(--navy);
    background: #ffffff;
}

.login-page .page-shell {
    width: min(820px, 100%);
    min-height: 100vh;
    padding: 0;
}

.login-screen {
    min-height: 100vh;
    background: #ffffff;
}

.login-hero {
    position: relative;
    display: grid;
    justify-items: center;
    min-height: 610px;
    padding: clamp(80px, 11vh, 118px) 28px 210px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(246, 250, 255, 0.82) 0%, rgba(255, 246, 231, 0.24) 42%, rgba(8, 18, 31, 0.42) 100%),
        linear-gradient(90deg, rgba(255, 252, 246, 0.68), rgba(255, 252, 246, 0.06) 70%),
        url("/includes/images/background.png") center 40% / cover no-repeat;
    border-radius: 0 0 42px 42px;
    box-shadow: inset 0 -112px 82px rgba(4, 13, 23, 0.24);
}

.login-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.62), transparent 28%),
        linear-gradient(0deg, rgba(5, 15, 27, 0.18), transparent 52%);
}

.login-logo {
    position: relative;
    z-index: 2;
    display: block;
    width: clamp(148px, 25vw, 220px);
    aspect-ratio: 648 / 636;
    background-image: var(--app-logo);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.login-logo span,
.login-logo strong {
    display: none;
}

.login-card {
    position: relative;
    z-index: 3;
    width: min(760px, calc(100% - 48px));
    margin: -150px auto 36px;
    padding: clamp(34px, 6vw, 58px);
    color: var(--navy);
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(234, 223, 206, 0.78);
    border-radius: 40px;
    box-shadow: 0 28px 64px rgba(24, 32, 43, 0.18);
    backdrop-filter: blur(18px);
}

.login-card h1 {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: clamp(48px, 8vw, 70px);
    line-height: 1;
    text-transform: uppercase;
}

.login-card > p {
    margin: 0 0 34px;
    color: #14243b;
    font-size: clamp(20px, 3.1vw, 29px);
    line-height: 1.35;
}

.login-form {
    display: grid;
    gap: 22px;
    text-align: left;
}

.login-form label {
    color: var(--navy);
    font-size: clamp(16px, 2.4vw, 22px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-input {
    display: grid;
    grid-template-columns: 56px 1fr 42px;
    align-items: center;
    min-height: 84px;
    margin-top: 10px;
    padding: 0 20px;
    background: #fffdf9;
    border: 2px solid rgba(24, 32, 43, 0.16);
    border-radius: 18px;
}

.login-input i,
.login-input em {
    color: var(--navy);
    font-style: normal;
    font-size: 30px;
    line-height: 1;
}

.login-input em {
    justify-self: end;
}

.login-input input {
    min-height: auto;
    margin: 0;
    padding: 0;
    color: var(--navy);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: clamp(18px, 3vw, 27px);
    font-weight: 500;
}

.login-input input::placeholder {
    color: #7b838d;
}

.login-forgot {
    justify-self: end;
    margin-top: -8px;
    color: var(--red);
    font-size: clamp(16px, 2.5vw, 22px);
}

.login-submit,
.login-register,
.login-socials a {
    display: grid;
    align-items: center;
    min-height: 78px;
    border-radius: 16px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.login-submit {
    grid-template-columns: 72px 1fr 72px;
    color: white;
    background: linear-gradient(135deg, #de6a35, var(--red));
    border: 0;
    box-shadow: 0 16px 30px rgba(194, 65, 45, 0.24);
    font: inherit;
    font-size: clamp(22px, 3.8vw, 31px);
    cursor: pointer;
}

.login-submit span {
    display: block;
    width: 44px;
    height: 44px;
    margin-left: 28px;
    overflow: hidden;
    color: transparent;
    background: var(--app-logo) center / contain no-repeat;
}

.login-register {
    grid-template-columns: 80px 1fr 80px;
    margin-top: 18px;
    color: var(--navy);
    border: 3px solid var(--navy);
    font-size: clamp(19px, 3.2vw, 27px);
}

.login-register span {
    font-size: 34px;
}

.login-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin: 32px 0;
    color: var(--navy);
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
    height: 1px;
    content: "";
    background: rgba(24, 32, 43, 0.18);
}

.login-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.login-socials a {
    display: flex;
    justify-content: center;
    min-height: 76px;
    padding: 0 20px;
    color: #111827;
    background: #ffffff;
    border: 1px solid rgba(24, 32, 43, 0.14);
    box-shadow: 0 10px 24px rgba(24, 32, 43, 0.08);
    font-size: clamp(13px, 2vw, 18px);
}

.login-social-button img {
    display: block;
    max-width: 100%;
}

.login-socials .login-social-button--google,
.login-socials .login-social-button--apple {
    display: block;
    height: 76px;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    box-shadow: none;
    line-height: 0;
}

.login-socials .appleid-signin-button {
    width: 100%;
}

.login-socials .google-signin-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.login-socials .google-signin-button > div,
.login-socials .google-signin-button iframe {
    max-width: 100% !important;
}

.login-socials .login-social-button--google img,
.login-socials .login-social-button--apple img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: fill;
}

.login-terms {
    margin: 32px 0 0;
    color: #26384f;
    font-size: clamp(15px, 2.4vw, 20px);
    line-height: 1.55;
}

.login-terms a {
    color: var(--red);
}

.register-page {
    color: var(--navy);
    background: #ffffff;
}

.register-page .page-shell {
    width: min(820px, 100%);
    min-height: 100vh;
    padding: 0;
}

.register-screen {
    min-height: 100vh;
    background: #ffffff;
}

.register-hero {
    position: relative;
    min-height: 650px;
    padding: 82px clamp(28px, 5vw, 54px) 190px;
    overflow: hidden;
    color: var(--navy);
    text-align: center;
    background:
        linear-gradient(180deg, rgba(246, 250, 255, 0.94) 0%, rgba(246, 250, 255, 0.68) 42%, rgba(255, 224, 177, 0.18) 64%, rgba(8, 18, 31, 0.56) 100%),
        linear-gradient(90deg, rgba(255, 252, 246, 0.68), rgba(255, 252, 246, 0.08) 68%),
        url("/includes/images/background.png") center 34% / cover no-repeat;
    border-radius: 0 0 40px 40px;
    box-shadow: inset 0 -110px 90px rgba(4, 13, 23, 0.28);
}

.register-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.82), transparent 27%),
        linear-gradient(0deg, rgba(5, 15, 27, 0.28), transparent 50%);
}

.register-back,
.register-logo,
.register-copy,
.register-benefits {
    position: relative;
    z-index: 2;
}

.register-back {
    position: absolute;
    top: 72px;
    left: clamp(26px, 5vw, 52px);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--navy);
    font-size: 58px;
    line-height: 1;
}

.register-logo {
    display: block;
    width: clamp(112px, 17vw, 148px);
    aspect-ratio: 648 / 636;
    background-image: var(--app-logo);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.register-logo span,
.register-logo strong {
    display: none;
}

.register-copy {
    max-width: 560px;
    margin: 28px auto 0;
}

.register-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 58px);
    line-height: 1.05;
}

.register-copy p {
    max-width: 460px;
    margin: 0 auto;
    color: #17283e;
    font-size: clamp(19px, 3vw, 25px);
    line-height: 1.45;
    font-weight: 700;
}

.register-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 670px;
    margin: 52px auto 0;
    color: white;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
}

.register-benefits div {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.register-benefits span {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    color: var(--navy);
    background: #f8e5d5;
    border-radius: 50%;
    font-size: 35px;
    font-weight: 900;
    text-shadow: none;
}

.register-benefits strong,
.register-benefits small {
    display: block;
}

.register-benefits strong {
    font-size: clamp(16px, 2.4vw, 21px);
}

.register-benefits small {
    font-size: clamp(13px, 2vw, 18px);
}

.register-card {
    position: relative;
    z-index: 3;
    width: min(780px, 100%);
    margin: -74px auto 36px;
    padding: clamp(34px, 6vw, 48px);
    color: var(--navy);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(234, 223, 206, 0.78);
    border-radius: 42px 42px 0 0;
    box-shadow: 0 -20px 54px rgba(24, 32, 43, 0.14);
    backdrop-filter: blur(18px);
}

.register-form {
    display: grid;
    gap: 22px;
}

.register-form h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(23px, 3.6vw, 30px);
}

.register-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.register-two label,
.register-field {
    display: grid;
    grid-template-columns: 48px 1fr 36px;
    align-items: center;
    min-height: 72px;
    padding: 0 18px;
    background: #fffdf9;
    border: 2px solid rgba(24, 32, 43, 0.12);
    border-radius: 16px;
}

.register-two label {
    grid-template-columns: 44px 1fr;
}

.register-two span,
.register-field span,
.register-field em {
    color: #5f6b7c;
    font-style: normal;
    font-size: 25px;
}

.register-two input,
.register-field input {
    min-height: auto;
    margin: 0;
    padding: 0;
    color: var(--navy);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: clamp(17px, 2.6vw, 22px);
    font-weight: 600;
}

.register-two input::placeholder,
.register-field input::placeholder {
    color: #9a9da3;
}

.register-help {
    margin: -12px 0 10px 10px;
    color: #4a5870;
    font-size: 15px;
    font-weight: 700;
}

.register-checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 36px;
    color: #4c5870;
    font-size: clamp(14px, 2.1vw, 17px);
    font-weight: 700;
}

.register-direction {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

.register-direction legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.register-direction label {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 14px 16px;
    background: #fffdf9;
    border: 2px solid rgba(24, 32, 43, 0.12);
    border-radius: 16px;
}

.register-direction input,
.register-agree input {
    width: auto;
    min-height: auto;
    margin: 0;
}

.register-agree {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4a5870;
    font-size: clamp(15px, 2.3vw, 19px);
    line-height: 1.4;
}

.register-agree input {
    width: 28px;
    height: 28px;
    accent-color: var(--red);
}

.register-agree a,
.register-login-link a {
    color: var(--red);
}

.register-submit {
    display: grid;
    grid-template-columns: 88px 1fr 88px;
    align-items: center;
    min-height: 76px;
    color: white;
    background: linear-gradient(135deg, #de6a35, var(--red));
    border: 0;
    border-radius: 16px;
    box-shadow: 0 16px 30px rgba(194, 65, 45, 0.24);
    font: inherit;
    font-size: clamp(20px, 3.2vw, 26px);
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.register-submit span {
    display: block;
    width: 44px;
    height: 44px;
    margin-left: 28px;
    overflow: hidden;
    color: transparent;
    background: var(--app-logo) center / contain no-repeat;
}

.register-socials a {
    text-transform: uppercase;
}

.register-login-link {
    margin: 26px 0 0;
    color: var(--navy);
    text-align: center;
    font-size: clamp(16px, 2.4vw, 20px);
}

.landing {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: center;
    min-height: calc(100vh - 124px);
    gap: 34px;
}

.landing h1,
.page-intro h1,
.dashboard-hero h1,
.stop-hero h1,
.auth-card h1 {
    margin: 0;
    font-size: clamp(42px, 8vw, 84px);
    line-height: 0.96;
    letter-spacing: 0;
}

.landing p,
.page-intro p,
.dashboard-hero p,
.stop-hero p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 18px;
    border: 0;
    border-radius: 14px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.btn-primary {
    color: white;
    background: var(--red);
    box-shadow: 0 12px 26px rgba(194, 65, 45, 0.22);
}

.btn-secondary {
    color: var(--navy);
    background: #f2eadc;
}

.btn-danger {
    color: white;
    background: var(--red);
    box-shadow: 0 12px 26px rgba(194, 65, 45, 0.22);
}

.full-width {
    width: 100%;
}

.landing-page {
    color: white;
    background: #071421;
}

.landing-page .page-shell {
    width: 100%;
    min-height: 100vh;
    padding: 0;
}

.landing-journey {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(242, 247, 252, 0.72) 0%, rgba(242, 247, 252, 0.34) 28%, rgba(8, 17, 29, 0.42) 58%, rgba(4, 13, 23, 0.95) 100%),
        url("/includes/images/background.png") center / cover no-repeat;
}

.landing-journey__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 18% 14%, rgba(255, 250, 236, 0.58), transparent 28%),
        linear-gradient(90deg, rgba(255, 248, 232, 0.64) 0%, rgba(255, 248, 232, 0.28) 36%, rgba(255, 248, 232, 0.04) 72%),
        linear-gradient(0deg, rgba(3, 11, 20, 0.94) 0%, rgba(3, 11, 20, 0.34) 35%, transparent 62%);
}

.landing-journey__content {
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    min-height: 100vh;
    width: min(820px, 100%);
    margin: 0 auto;
    padding: clamp(28px, 5vh, 58px) clamp(20px, 5vw, 48px) clamp(24px, 4vh, 46px);
}

.landing-passport-logo {
    display: block;
    width: clamp(112px, 18vw, 150px);
    aspect-ratio: 648 / 636;
    background-image: var(--app-logo);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.landing-passport-logo span,
.landing-passport-logo strong {
    display: none;
}

.landing-journey__copy {
    align-self: center;
    max-width: 620px;
    margin-top: clamp(28px, 8vh, 92px);
    text-shadow: 0 2px 18px rgba(255, 255, 255, 0.22);
}

.landing-journey__copy h1 {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #08233e;
    font-size: clamp(45px, 10vw, 86px);
    line-height: 0.96;
    letter-spacing: 0;
    text-transform: uppercase;
}

.landing-journey__copy h1 span:last-child {
    color: #c44d2e;
}

.landing-journey__copy p {
    max-width: 460px;
    margin: clamp(18px, 3vh, 30px) 0 0;
    color: #071421;
    font-size: clamp(18px, 3.3vw, 26px);
    line-height: 1.38;
    font-weight: 700;
}

.landing-feature-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: clamp(24px, 5vh, 56px) 0 clamp(20px, 4vh, 34px);
    color: white;
}

.landing-feature-row div {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 8px;
    min-height: 156px;
    padding: 0 clamp(8px, 2vw, 18px);
    text-align: center;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.landing-feature-row div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.landing-feature-row span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.94);
    border-radius: 18px;
    font-size: 30px;
    line-height: 1;
}

.landing-feature-row strong {
    color: #e26835;
    font-size: clamp(13px, 2.2vw, 18px);
    text-transform: uppercase;
}

.landing-feature-row small {
    max-width: 150px;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(12px, 2vw, 16px);
    line-height: 1.34;
}

.landing-start-card {
    padding: clamp(20px, 4vw, 36px);
    overflow: hidden;
    color: white;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(13, 44, 73, 0.9), rgba(3, 19, 34, 0.96)),
        rgba(3, 19, 34, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 34px;
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(12px);
}

.landing-start-card h2 {
    margin: 0;
    color: white;
    font-size: clamp(28px, 5.4vw, 46px);
    line-height: 1.08;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.landing-rule {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    width: min(380px, 88%);
    margin: 20px auto;
    color: #f36a34;
}

.landing-rule::before,
.landing-rule::after {
    content: "";
    height: 2px;
    background: currentColor;
}

.landing-rule span {
    display: block;
    width: 44px;
    height: 44px;
    overflow: hidden;
    color: transparent;
    background: var(--app-logo) center / contain no-repeat;
}

.landing-actions {
    display: grid;
    gap: 14px;
}

.landing-button {
    display: grid;
    grid-template-columns: 62px 1fr 28px;
    align-items: center;
    min-height: 78px;
    padding: 0 clamp(18px, 4vw, 32px);
    border-radius: 14px;
    font-size: clamp(18px, 3vw, 25px);
    font-weight: 900;
    text-transform: uppercase;
}

.landing-button span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 2px solid currentColor;
    border-radius: 14px;
    font-size: 18px;
}

.landing-button em {
    font-size: 42px;
    font-style: normal;
    line-height: 1;
}

.landing-button--primary {
    color: white;
    background: linear-gradient(135deg, #e66b34, #bf3d2b);
    box-shadow: 0 16px 32px rgba(191, 61, 43, 0.28);
}

.landing-button--secondary {
    color: white;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.landing-start-card p {
    max-width: 520px;
    margin: 22px auto 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    line-height: 1.5;
}

.landing-start-card p a {
    color: #f36a34;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.phone-preview {
    min-height: 520px;
    border-radius: 36px;
    padding: 18px;
    background:
        linear-gradient(160deg, rgba(23, 50, 77, 0.98), rgba(31, 122, 118, 0.78)),
        url("/assets/images/road-texture.jpg");
    box-shadow: var(--shadow);
}

.preview-card {
    margin-top: 240px;
    padding: 22px;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 24px;
    backdrop-filter: blur(12px);
}

.preview-card p,
.preview-card h2 {
    margin: 0 0 10px;
}

.mini-progress,
.progress-track {
    overflow: hidden;
    height: 12px;
    background: rgba(23, 50, 77, 0.12);
    border-radius: 999px;
}

.mini-progress span,
.progress-track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--orange), var(--red));
    border-radius: inherit;
}

.feature-strip,
.stat-grid,
.two-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-strip div,
.card,
.stat-card,
.auth-card,
.dashboard-hero,
.stop-hero,
.page-intro,
.empty-state {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(234, 223, 206, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature-strip div,
.stat-card,
.card,
.auth-card,
.dashboard-hero,
.stop-hero,
.page-intro,
.empty-state {
    padding: clamp(18px, 4vw, 28px);
}

.feature-strip strong,
.feature-strip span,
.stat-card span,
.stat-card strong {
    display: block;
}

.feature-strip span,
.stat-card span,
.muted,
.form-link {
    color: var(--muted);
}

.dashboard-hero,
.stop-hero,
.page-intro {
    margin-bottom: 18px;
}

.dashboard-hero {
    position: relative;
    display: grid;
    gap: 18px;
    overflow: hidden;
}

.public-hero {
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
    padding: clamp(24px, 6vw, 46px);
    color: white;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.public-hero .eyebrow,
.public-hero p {
    color: rgba(255, 255, 255, 0.82);
}

.public-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(42px, 8vw, 82px);
    line-height: 0.98;
}

.public-hero .progress-track {
    background: rgba(255, 255, 255, 0.18);
}

.public-stats,
.share-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.public-stats span {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.public-stats strong {
    margin-right: 5px;
}

.public-profile-page {
    background: #f6f4f1;
}

.public-profile-page .page-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.public-profile-shell {
    min-height: 100vh;
    color: #19263a;
    background: #f6f4f1;
}

.public-profile-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    padding: 14px clamp(18px, 5vw, 88px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(220, 214, 205, 0.78);
    box-shadow: 0 10px 30px rgba(25, 38, 58, 0.08);
    backdrop-filter: blur(16px);
}

.public-profile-brand,
.public-download-button,
.public-profile-tabs a,
.public-panel-title a {
    text-decoration: none;
}

.public-profile-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #17243a;
}

.public-profile-brand span {
    display: block;
    width: 46px;
    height: 46px;
    overflow: hidden;
    color: transparent;
    background-image: var(--app-logo);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.public-profile-brand strong {
    font-size: 18px;
    font-weight: 900;
}

.public-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    color: white;
    background: #d9531e;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(217, 83, 30, 0.26);
}

.public-profile-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    min-height: 315px;
    padding: 86px clamp(18px, 5vw, 88px) 42px;
    color: white;
    background-color: #132036;
    background-position: center;
    background-size: cover;
}

.public-profile-identity {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
}

.public-profile-identity img {
    width: clamp(116px, 12vw, 156px);
    height: clamp(116px, 12vw, 156px);
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.96);
    border-radius: 50%;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.public-profile-identity h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: white;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1;
    letter-spacing: 0;
}

.public-profile-identity h1 span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: white;
    background: #62b7f7;
    border-radius: 50%;
    font-size: 17px;
}

.public-profile-identity p {
    max-width: 620px;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2vw, 24px);
    font-style: italic;
    font-weight: 700;
}

.public-profile-identity small {
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    font-weight: 800;
}

.public-member-card {
    min-width: 210px;
    padding: 22px;
    background: rgba(7, 17, 30, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
}

.public-member-card span,
.public-member-card small {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

.public-member-card strong {
    display: block;
    margin: 8px 0 14px;
    color: white;
    font-size: 21px;
}

.public-member-card em {
    margin-left: 5px;
    padding: 4px 8px;
    color: white;
    background: #d9531e;
    border-radius: 5px;
    font-style: normal;
    font-size: 12px;
}

.public-profile-tabs {
    display: flex;
    gap: clamp(18px, 4vw, 56px);
    overflow-x: auto;
    padding: 0 clamp(18px, 5vw, 88px);
    background: white;
    border-bottom: 1px solid rgba(220, 214, 205, 0.78);
    box-shadow: 0 10px 28px rgba(25, 38, 58, 0.06);
}

.public-profile-tabs a {
    position: relative;
    flex: 0 0 auto;
    padding: 22px 0;
    color: #2d3a4f;
    font-weight: 900;
}

.public-profile-tabs a.active::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #d9531e;
    border-radius: 999px 999px 0 0;
    content: "";
}

.public-profile-tabs span {
    margin-left: 6px;
    padding: 4px 9px;
    background: #f7f8fa;
    border: 1px solid #e3e6ea;
    border-radius: 999px;
    font-size: 13px;
}

.public-stat-strip,
.public-panel {
    width: min(1680px, calc(100% - 36px));
    margin-right: auto;
    margin-left: auto;
    background: white;
    border: 1px solid rgba(224, 218, 209, 0.86);
    border-radius: 14px;
    box-shadow: 0 16px 42px rgba(25, 38, 58, 0.1);
}

.public-stat-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 28px;
    padding: 30px 22px;
}

.public-stat-strip div {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
    min-width: 0;
    padding: 0 24px;
    border-right: 1px solid #e2ded8;
}

.public-stat-strip div:last-child {
    border-right: 0;
}

.public-stat-strip span {
    grid-row: span 3;
    color: #d9531e;
    font-size: 42px;
    line-height: 1;
}

.public-stat-strip strong {
    color: #0d1830;
    font-size: 30px;
    line-height: 1;
}

.public-stat-strip small,
.public-stat-strip em {
    color: #314056;
    font-style: normal;
    font-weight: 800;
}

.public-stat-strip em {
    margin-top: 7px;
    color: #687387;
    font-size: 14px;
    line-height: 1.35;
}

.public-profile-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.55fr) minmax(320px, 1.1fr);
    gap: 24px;
    width: min(1680px, calc(100% - 36px));
    margin: 26px auto;
}

.public-profile-grid .public-panel,
.public-photo-panel,
.public-stop-list-panel {
    width: 100%;
    margin: 0;
}

.public-panel {
    padding: 22px;
}

.public-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}

.public-panel-title h2 {
    margin: 0;
    color: #1c2a40;
    font-size: 18px;
    text-transform: uppercase;
}

.public-panel-title a {
    color: #d9531e;
    font-weight: 900;
}

.public-big-percent {
    display: block;
    color: #d9531e;
    font-size: 54px;
    line-height: 1;
}

.trip-progress-panel p {
    margin: 8px 0 20px;
    color: #344359;
    font-weight: 800;
}

.public-progress-bar {
    height: 9px;
    overflow: hidden;
    background: #e5e5e5;
    border-radius: 999px;
}

.public-progress-bar span {
    display: block;
    height: 100%;
    background: #d9531e;
    border-radius: inherit;
}

.trip-progress-panel dl {
    display: grid;
    gap: 13px;
    margin: 22px 0 0;
}

.trip-progress-panel dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.trip-progress-panel dt,
.trip-progress-panel dd {
    margin: 0;
    color: #37465b;
    font-weight: 800;
}

.trip-progress-panel dt::before {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 10px;
    background: #d9531e;
    border-radius: 50%;
    content: "";
}

.trip-progress-panel dl div:first-child dt::before {
    background: #4f9a56;
}

.trip-progress-panel dl div:last-child dt::before {
    background: #c7c9cc;
}

.public-stamp-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(95px, 1fr));
    gap: 18px;
    align-items: start;
}

.public-stamp {
    display: grid;
    justify-items: center;
    text-align: center;
}

.public-stamp span {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    margin-bottom: 13px;
    color: #17243a;
    background:
        radial-gradient(circle at center, white 0 52%, transparent 53%),
        repeating-conic-gradient(from 0deg, #17243a 0 6deg, transparent 6deg 13deg);
    border: 3px solid #17243a;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 900;
}

.public-stamp:nth-child(2n) span {
    color: #4d7d54;
    border-color: #4d7d54;
}

.public-stamp:nth-child(3n) span {
    color: #39739f;
    border-color: #39739f;
}

.public-stamp:nth-child(4n) span {
    color: #d9531e;
    border-color: #d9531e;
}

.public-stamp strong,
.public-stamp small {
    display: block;
    color: #26354b;
}

.public-stamp strong {
    font-size: 16px;
    line-height: 1.25;
}

.public-stamp small {
    margin-top: 6px;
    color: #687387;
    font-weight: 800;
}

.public-journal-preview {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 20px;
}

.public-journal-preview > span {
    min-height: 188px;
    background-color: #d8d0c5;
    background-position: center;
    background-size: cover;
    border-radius: 8px;
}

.public-journal-preview small {
    color: #d9531e;
    font-weight: 900;
}

.public-journal-preview h3 {
    margin: 8px 0 10px;
    color: #17243a;
    font-size: 20px;
}

.public-journal-preview p,
.public-muted {
    color: #435268;
    font-weight: 700;
    line-height: 1.55;
}

.public-photo-panel {
    margin: 0 auto 26px;
}

.public-photo-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    gap: 12px;
}

.public-photo-strip a,
.public-photo-strip button {
    display: block;
    overflow: hidden;
    width: 100%;
    padding: 0;
    aspect-ratio: 1.55;
    background: #d8d0c5;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.public-photo-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
}

.public-photo-strip a:hover img,
.public-photo-strip button:hover img {
    transform: scale(1.04);
}

.public-stop-list-panel {
    margin: 0 auto 40px;
}

.public-stop-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.public-stop-list article {
    padding: 14px;
    background: #fbfaf8;
    border: 1px solid #ebe4db;
    border-radius: 10px;
}

.public-stop-list span,
.public-stop-list strong,
.public-stop-list em {
    display: block;
}

.public-stop-list span,
.public-stop-list em {
    color: #687387;
    font-style: normal;
    font-weight: 800;
}

.public-stop-list strong {
    margin: 7px 0;
    color: #17243a;
}

@media (max-width: 1180px) {
    .public-stat-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px 0;
    }

    .public-stat-strip div:nth-child(3n) {
        border-right: 0;
    }

    .public-profile-grid {
        grid-template-columns: 1fr 1fr;
    }

    .latest-journal-panel {
        grid-column: 1 / -1;
    }

    .public-photo-strip {
        grid-template-columns: repeat(4, minmax(120px, 1fr));
    }

    .public-stop-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .public-profile-nav {
        min-height: 66px;
        padding: 12px 16px;
    }

    .public-profile-brand strong {
        font-size: 15px;
    }

    .public-profile-brand span {
        width: 40px;
        height: 40px;
    }

    .public-download-button {
        min-height: 40px;
        padding: 0 14px;
        font-size: 14px;
    }

    .public-profile-hero {
        display: grid;
        min-height: 520px;
        padding: 92px 18px 22px;
    }

    .public-profile-identity {
        align-self: end;
        display: grid;
        gap: 18px;
    }

    .public-profile-identity img {
        width: 118px;
        height: 118px;
    }

    .public-profile-identity h1 {
        font-size: 34px;
    }

    .public-profile-identity p {
        font-size: 18px;
    }

    .public-member-card {
        width: 100%;
        min-width: 0;
        padding: 18px;
    }

    .public-profile-tabs {
        gap: 24px;
        padding: 0 18px;
    }

    .public-profile-tabs a {
        padding: 18px 0;
    }

    .public-stat-strip,
    .public-profile-grid,
    .public-photo-panel,
    .public-stop-list-panel {
        width: calc(100% - 24px);
    }

    .public-stat-strip {
        grid-template-columns: 1fr;
        margin-top: 18px;
        padding: 18px;
    }

    .public-stat-strip div {
        padding: 0 0 18px;
        border-right: 0;
        border-bottom: 1px solid #e2ded8;
    }

    .public-stat-strip div:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .public-profile-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 18px auto;
    }

    .latest-journal-panel {
        grid-column: auto;
    }

    .public-panel {
        padding: 18px;
    }

    .public-stamp-row {
        grid-template-columns: repeat(2, minmax(110px, 1fr));
    }

    .public-journal-preview {
        grid-template-columns: 1fr;
    }

    .public-journal-preview > span {
        min-height: 210px;
    }

    .public-photo-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

.share-strip {
    justify-content: space-between;
    margin: 18px 0;
    padding: 18px;
    background: #fff7e8;
    border: 1px solid #f2d7a6;
    border-radius: var(--radius);
}

.share-strip strong {
    display: block;
    color: var(--navy);
    overflow-wrap: anywhere;
}

.route-badge,
.state-chip,
.distance-pill,
.must-see-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 6px 10px;
    color: var(--navy);
    background: #f5e6ce;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.weather-card {
    display: grid;
    gap: 5px;
    margin: 14px 0 16px;
    padding: 14px;
    color: var(--navy);
    background: linear-gradient(135deg, #fff7e8, #ffffff);
    border: 1px solid rgba(196, 79, 45, 0.14);
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(24, 32, 43, 0.08);
}

.weather-card .eyebrow {
    margin: 0;
}

.weather-card strong {
    color: var(--navy);
    font-size: 20px;
    line-height: 1.2;
}

.weather-card span {
    color: #55616f;
    font-weight: 700;
}

.weather-card.muted-weather {
    background: #f7f4ee;
    border-color: rgba(24, 32, 43, 0.08);
    box-shadow: none;
}

.stop-weather-card {
    max-width: 430px;
    margin-top: 18px;
}

.drive-card {
    display: grid;
    gap: 5px;
    margin: 14px 0 16px;
    padding: 14px;
    color: var(--navy);
    background: linear-gradient(135deg, #eef5fb, #ffffff);
    border: 1px solid rgba(10, 42, 74, 0.1);
    border-radius: 18px;
    box-shadow: 0 12px 26px rgba(24, 32, 43, 0.08);
}

.drive-card .eyebrow {
    margin: 0;
}

.drive-card strong {
    color: var(--navy);
    font-size: 20px;
    line-height: 1.2;
}

.drive-card span {
    color: #55616f;
    font-weight: 700;
}

.drive-card.muted-drive {
    background: #f7f4ee;
    border-color: rgba(24, 32, 43, 0.08);
    box-shadow: none;
}

.inline-favorite-form {
    display: inline-flex;
}

.favorite-toggle {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    color: var(--navy);
    background: #f2eadc;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(24, 32, 43, 0.12);
    font: inherit;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.favorite-toggle.active {
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.favorite-list-row {
    grid-template-columns: 100px 1fr 110px;
}

.favorite-row-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.favorite-row-actions form {
    display: inline-flex;
}

.must-see-chip {
    color: white;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.hero-chip {
    margin-bottom: 12px;
}

.inline-featured {
    display: inline-flex;
    margin-left: 6px;
    padding: 3px 7px;
    color: white;
    background: var(--red);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    vertical-align: middle;
}

.featured-callout {
    padding: 12px 14px;
    color: #7a3b00;
    background: #fff0d0;
    border: 1px solid #ffd38a;
    border-radius: 14px;
}

.stat-grid {
    margin: 18px 0;
}

.route-map-card {
    overflow: hidden;
    margin: 18px 0;
    padding: clamp(18px, 4vw, 28px);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(234, 223, 206, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section-heading.compact {
    align-items: start;
    margin: 0 0 14px;
}

.section-heading.compact span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    color: var(--navy);
    background: #f5e6ce;
    border-radius: 999px;
    font-weight: 900;
}

.route-map-wrap {
    overflow-x: auto;
    padding-bottom: 4px;
}

.dashboard-route-map-panel {
    position: relative;
    overflow: hidden;
    margin: 8px calc(clamp(18px, 4vw, 28px) * -1) 0;
    padding: 18px clamp(12px, 3vw, 22px);
    background:
        radial-gradient(circle at 18% 58%, rgba(45, 105, 132, 0.16), transparent 24%),
        radial-gradient(circle at 86% 84%, rgba(45, 105, 132, 0.2), transparent 30%),
        linear-gradient(180deg, #f5f0e5, #e6dcc8);
}

.dashboard-route-map-panel::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.48;
    background:
        linear-gradient(30deg, transparent 0 48%, rgba(117, 125, 112, 0.22) 48.3% 48.7%, transparent 49%),
        linear-gradient(112deg, transparent 0 58%, rgba(117, 125, 112, 0.16) 58.2% 58.6%, transparent 59%),
        radial-gradient(circle at 70% 24%, rgba(96, 152, 190, 0.28), transparent 8%),
        radial-gradient(circle at 8% 74%, rgba(96, 152, 190, 0.28), transparent 13%);
}

.dashboard-route-svg {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 720px;
    max-width: 1040px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: saturate(0.92);
}

.dashboard-route-line-base,
.dashboard-route-line-complete {
    filter: url(#dashboardRouteShadow);
}

.dashboard-map-stop {
    transform-box: fill-box;
    transform-origin: center;
}

.route-map-svg {
    width: 100%;
    min-width: 720px;
    height: auto;
    display: block;
}

.map-land {
    fill: #f7efdf;
    stroke: #eadfce;
    stroke-width: 2;
}

.map-line-base,
.map-line-complete {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.map-line-base {
    stroke: #d8c8b2;
    stroke-width: 7;
}

.map-line-complete {
    stroke: var(--teal);
    stroke-width: 8;
}

.map-stop {
    fill: #fffdf8;
    stroke: var(--navy);
    stroke-width: 2.4;
    transition: r 0.18s ease, fill 0.18s ease;
}

.map-stop.completed {
    fill: var(--teal);
    stroke: white;
}

.map-stop.next {
    fill: var(--orange);
    stroke: var(--red);
    stroke-width: 3;
}

.map-stop.featured {
    fill: var(--red);
    stroke: var(--orange);
    stroke-width: 3;
}

.map-stop.featured.completed {
    fill: var(--teal);
    stroke: var(--orange);
}

.map-stop:hover {
    r: 8;
}

.map-current-marker circle:first-child {
    fill: rgba(194, 65, 45, 0.18);
    stroke: var(--red);
    stroke-width: 2;
}

.map-current-marker circle:last-child {
    fill: var(--red);
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

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

.legend-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fffdf8;
    border: 2px solid var(--navy);
}

.legend-dot.completed {
    background: var(--teal);
    border-color: var(--teal);
}

.legend-dot.next {
    background: var(--orange);
    border-color: var(--red);
}

.legend-dot.featured {
    background: var(--red);
    border-color: var(--orange);
}

.legend-dot.current {
    background: var(--red);
    border-color: var(--red);
}

.stat-card strong {
    margin-top: 8px;
    font-size: 32px;
}

.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 0;
}

.card h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.card p {
    color: var(--muted);
    line-height: 1.55;
}

.nearest-stop h2 {
    margin: 14px 0 8px;
}

.deviation-banner {
    display: grid;
    gap: 4px;
    margin: 14px 0;
    padding: 12px 14px;
    color: #7a3b00;
    background: #fff0d0;
    border: 1px solid #ffd38a;
    border-radius: 14px;
    line-height: 1.45;
}

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

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 30px 0 14px;
}

.section-heading h2 {
    margin: 0;
}

.section-heading a,
.vault-card a,
.form-link a {
    color: var(--red);
    font-weight: 800;
}

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

.route-list.grouped h2 {
    margin: 24px 0 4px;
    font-size: 18px;
}

.route-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.route-row span,
.route-row em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.route-row.done em {
    color: var(--teal);
    font-weight: 800;
}

.route-row.next {
    border-color: rgba(194, 65, 45, 0.5);
    box-shadow: 0 12px 24px rgba(194, 65, 45, 0.08);
}

.route-row.featured {
    background: linear-gradient(90deg, rgba(255, 247, 232, 0.96), #ffffff);
    border-color: #f2d7a6;
}

.auth-card {
    max-width: 560px;
    margin: 38px auto;
}

.stacked-form {
    display: grid;
    gap: 16px;
}

label,
legend {
    color: var(--ink);
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
}

textarea {
    resize: vertical;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0;
    border: 0;
}

.choice-grid legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
}

.choice-grid label {
    display: flex;
    gap: 10px;
    min-height: 78px;
    padding: 14px;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.choice-grid input {
    width: auto;
    min-height: auto;
    margin: 4px 0 0;
}

.choice-grid small {
    color: var(--muted);
    font-weight: 600;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.toggle-row input {
    width: auto;
    min-height: auto;
    margin: 0;
}

.share-box {
    display: grid;
    gap: 6px;
    padding: 14px;
    background: #fff7e8;
    border: 1px solid #f2d7a6;
    border-radius: 14px;
}

.share-box span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.share-box a {
    color: var(--red);
    font-weight: 900;
    overflow-wrap: anywhere;
}

.notice {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 14px;
    line-height: 1.5;
}

.completion-card {
    position: relative;
    overflow: hidden;
    margin: 18px 0;
    padding: clamp(24px, 6vw, 42px);
    color: white;
    background:
        linear-gradient(135deg, rgba(23, 50, 77, 0.96), rgba(31, 122, 118, 0.9)),
        radial-gradient(circle at top right, rgba(242, 157, 56, 0.36), transparent 32%);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.completion-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    border: 18px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.completion-card .eyebrow {
    color: #ffd79c;
}

.completion-card h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: clamp(36px, 8vw, 70px);
    line-height: 0.98;
}

.completion-card p,
.completion-card .action-row {
    position: relative;
    z-index: 1;
}

.completion-card p {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.6;
}

.completion-card .btn-secondary {
    color: white;
    background: rgba(255, 255, 255, 0.16);
}

.route-complete-card {
    isolation: isolate;
}

.completion-page {
    color: #f8fbff;
    background:
        radial-gradient(circle at 50% 0, rgba(242, 157, 56, 0.34), transparent 34%),
        linear-gradient(180deg, #08131f 0, #142b43 46%, #fffaf2 46%, #fffaf2 100%);
}

.completion-page .page-shell {
    width: min(960px, 100%);
    padding: 0 0 124px;
}

.completion-screen {
    color: var(--ink);
}

.completion-cinematic {
    position: relative;
    min-height: 720px;
    display: grid;
    align-content: space-between;
    gap: 32px;
    padding: 42px clamp(22px, 5vw, 54px) 64px;
    overflow: hidden;
    color: white;
    background:
        linear-gradient(180deg, rgba(8, 19, 31, 0.18), rgba(8, 19, 31, 0.88)),
        linear-gradient(110deg, rgba(194, 65, 45, 0.58), rgba(31, 122, 118, 0.44)),
        url("/includes/images/background.png") center 34% / cover no-repeat;
    border-radius: 0 0 42px 42px;
    box-shadow: inset 0 -140px 110px rgba(8, 19, 31, 0.72);
}

.completion-cinematic::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 38%),
        radial-gradient(circle at 75% 22%, rgba(255, 215, 156, 0.35), transparent 20%);
    pointer-events: none;
}

.completion-topbar,
.completion-hero-copy,
.completion-badge {
    position: relative;
    z-index: 2;
}

.completion-close {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    justify-self: end;
    color: white;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    font-size: 22px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.completion-hero-copy {
    max-width: 760px;
    align-self: end;
}

.completion-hero-copy .eyebrow,
.completion-replay .eyebrow,
.digital-certificate-card .eyebrow,
.completion-share-card .eyebrow {
    color: #ffd79c;
}

.completion-hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(56px, 12vw, 118px);
    line-height: 0.91;
    letter-spacing: 0;
}

.completion-hero-copy p:not(.eyebrow) {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(19px, 3vw, 27px);
    line-height: 1.38;
    font-weight: 600;
}

.completion-badge {
    justify-self: end;
    display: grid;
    place-items: center;
    width: clamp(168px, 27vw, 238px);
    aspect-ratio: 1;
    margin-top: -170px;
    color: var(--navy);
    text-align: center;
    background:
        radial-gradient(circle, #fffaf2 0 52%, #ffd79c 53% 68%, #c2412d 69% 100%);
    border: 10px solid rgba(255, 255, 255, 0.84);
    border-radius: 50%;
    box-shadow: 0 30px 74px rgba(0, 0, 0, 0.34);
    transform: rotate(4deg);
}

.completion-badge span,
.completion-badge em {
    font-size: clamp(12px, 2vw, 15px);
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.completion-badge strong {
    display: block;
    color: var(--red);
    font-size: clamp(54px, 10vw, 92px);
    line-height: 0.92;
}

.completion-confetti {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.completion-confetti i {
    position: absolute;
    top: -44px;
    left: 50%;
    width: 10px;
    height: 26px;
    background: #ffd79c;
    border-radius: 999px;
    animation: completionConfetti 3600ms linear infinite;
}

.completion-confetti i:nth-child(3n) {
    width: 14px;
    height: 14px;
    background: #1f7a76;
    border-radius: 3px;
}

.completion-confetti i:nth-child(4n) {
    background: #c2412d;
}

.completion-confetti i:nth-child(5n) {
    background: #ffffff;
}

.completion-confetti i:nth-child(10n+1) { left: 6%; animation-delay: 0ms; }
.completion-confetti i:nth-child(10n+2) { left: 16%; animation-delay: 180ms; }
.completion-confetti i:nth-child(10n+3) { left: 27%; animation-delay: 360ms; }
.completion-confetti i:nth-child(10n+4) { left: 38%; animation-delay: 90ms; }
.completion-confetti i:nth-child(10n+5) { left: 49%; animation-delay: 520ms; }
.completion-confetti i:nth-child(10n+6) { left: 60%; animation-delay: 240ms; }
.completion-confetti i:nth-child(10n+7) { left: 71%; animation-delay: 680ms; }
.completion-confetti i:nth-child(10n+8) { left: 82%; animation-delay: 420ms; }
.completion-confetti i:nth-child(10n+9) { left: 91%; animation-delay: 760ms; }
.completion-confetti i:nth-child(10n+10) { left: 97%; animation-delay: 300ms; }
.completion-confetti i:nth-child(n+11) { animation-duration: 4300ms; }
.completion-confetti i:nth-child(n+22) { animation-duration: 5200ms; }

.completion-replay,
.completion-grid {
    margin: 22px clamp(16px, 4vw, 28px) 0;
}

.completion-replay {
    padding: clamp(20px, 4vw, 30px);
    color: white;
    background: linear-gradient(135deg, #132a42, #1f4f62);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    box-shadow: 0 24px 62px rgba(8, 19, 31, 0.22);
}

.completion-map-frame {
    overflow: hidden;
    margin-top: 14px;
    background:
        radial-gradient(circle at 18% 58%, rgba(255, 255, 255, 0.17), transparent 24%),
        linear-gradient(180deg, #f5f0e5, #e5d9c2);
    border-radius: 20px;
}

.completion-route-svg {
    display: block;
    width: 100%;
    min-width: 680px;
    height: auto;
}

.completion-route-base,
.completion-route-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.completion-route-base {
    stroke: rgba(24, 32, 43, 0.18);
    stroke-width: 22;
}

.completion-route-line {
    stroke: #c2412d;
    stroke-width: 18;
    filter: drop-shadow(0 7px 9px rgba(24, 32, 43, 0.24));
}

.completion-replay-stop {
    fill: #fffaf2;
    stroke: var(--navy);
    stroke-width: 4;
    opacity: 0;
    animation: stopReplayPop 360ms ease-out both;
    animation-delay: calc(700ms + (var(--stop-index) * 42ms));
}

.completion-car circle {
    fill: var(--orange);
    stroke: white;
    stroke-width: 5;
}

.completion-car text {
    fill: var(--navy);
    font-size: 13px;
    font-weight: 900;
}

.completion-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 18px;
    align-items: stretch;
}

.digital-certificate-card,
.completion-share-card {
    padding: clamp(20px, 4vw, 30px);
    background: white;
    border: 1px solid rgba(234, 223, 206, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.digital-certificate-card .eyebrow,
.completion-share-card .eyebrow {
    color: var(--red);
}

.certificate-preview {
    display: grid;
    place-items: center;
    min-height: 332px;
    margin: 14px 0 18px;
    padding: 30px;
    text-align: center;
    background:
        linear-gradient(90deg, var(--navy) 0 7%, transparent 7% 93%, var(--red) 93%),
        linear-gradient(180deg, #fffaf2, #fff4e1);
    border: 8px double #e5c37c;
}

.certificate-preview span,
.certificate-preview em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.certificate-preview h2 {
    margin: 8px 0 10px;
    color: var(--red);
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1;
}

.certificate-preview strong {
    color: var(--navy);
    font-size: clamp(28px, 5vw, 42px);
}

.certificate-preview p {
    margin: 8px 0;
    color: #405064;
    font-weight: 700;
}

.completion-share-badge {
    display: grid;
    place-items: center;
    width: 132px;
    aspect-ratio: 1;
    margin: 12px 0 18px;
    color: white;
    text-align: center;
    background: linear-gradient(135deg, var(--teal), var(--orange));
    border: 8px solid #fff4df;
    border-radius: 50%;
    box-shadow: 0 16px 34px rgba(31, 122, 118, 0.26);
}

.completion-share-badge strong {
    font-size: 48px;
    line-height: 0.9;
}

.completion-share-badge span {
    max-width: 86px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.completion-share-card h2 {
    margin: 0 0 18px;
    color: var(--navy);
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.08;
}

.completion-share-card dl {
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
}

.completion-share-card dl div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.completion-share-card dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.completion-share-card dd {
    margin: 0;
    color: var(--navy);
    font-weight: 900;
}

@keyframes completionConfetti {
    from { transform: translateY(-80px) rotate(0deg); opacity: 1; }
    to { transform: translateY(820px) rotate(680deg); opacity: 0.45; }
}

@keyframes stopReplayPop {
    from { opacity: 0; transform: scale(0.2); }
    to { opacity: 1; transform: scale(1); }
}

.celebration-burst {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.celebration-burst i {
    position: absolute;
    top: 18%;
    left: 50%;
    width: 10px;
    height: 26px;
    background: #ffd79c;
    border-radius: 999px;
    animation: burstFly 1300ms ease-out both;
}

.celebration-burst i:nth-child(2) { background: #f29d38; transform: rotate(45deg); animation-delay: 80ms; }
.celebration-burst i:nth-child(3) { background: #fff; transform: rotate(90deg); animation-delay: 130ms; }
.celebration-burst i:nth-child(4) { background: #1f7a76; transform: rotate(135deg); animation-delay: 180ms; }
.celebration-burst i:nth-child(5) { background: #c2412d; transform: rotate(180deg); animation-delay: 230ms; }
.celebration-burst i:nth-child(6) { background: #ffd79c; transform: rotate(225deg); animation-delay: 280ms; }
.celebration-burst i:nth-child(7) { background: #fff; transform: rotate(270deg); animation-delay: 330ms; }
.celebration-burst i:nth-child(8) { background: #f29d38; transform: rotate(315deg); animation-delay: 380ms; }

.route-celebration-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 30%, rgba(242, 157, 56, 0.28), transparent 34%),
        rgba(10, 26, 43, 0.76);
    backdrop-filter: blur(12px);
    animation: overlayIn 260ms ease-out both;
}

.route-celebration-overlay.is-hidden {
    display: none;
}

.route-celebration-sky {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.route-celebration-sky span {
    position: absolute;
    top: -40px;
    width: 12px;
    height: 28px;
    border-radius: 999px;
    background: #ffd79c;
    animation: confettiDrop 2400ms linear infinite;
}

.route-celebration-sky span:nth-child(1) { left: 12%; background: #ffd79c; animation-delay: 0ms; }
.route-celebration-sky span:nth-child(2) { left: 28%; background: #f29d38; animation-delay: 300ms; }
.route-celebration-sky span:nth-child(3) { left: 45%; background: #ffffff; animation-delay: 120ms; }
.route-celebration-sky span:nth-child(4) { left: 63%; background: #1f7a76; animation-delay: 520ms; }
.route-celebration-sky span:nth-child(5) { left: 78%; background: #c2412d; animation-delay: 220ms; }
.route-celebration-sky span:nth-child(6) { left: 90%; background: #ffd79c; animation-delay: 680ms; }

.route-celebration-panel {
    position: relative;
    width: min(560px, 100%);
    padding: clamp(24px, 7vw, 42px);
    overflow: hidden;
    color: var(--navy);
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 232, 0.96)),
        var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.32);
    animation: celebrationPop 560ms cubic-bezier(.18, .86, .28, 1.2) both;
}

.route-celebration-panel > button {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--navy);
    background: #f2eadc;
    border: 0;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.route-shield-celebration {
    display: block;
    width: 110px;
    height: 110px;
    margin: 0 auto 16px;
    overflow: hidden;
    color: transparent;
    background: var(--app-logo) center / contain no-repeat;
    box-shadow: 0 12px 26px rgba(194, 65, 45, 0.28);
}

.route-celebration-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(42px, 9vw, 72px);
    line-height: 0.95;
}

.route-celebration-panel p:not(.eyebrow) {
    max-width: 430px;
    margin: 0 auto 22px;
    color: #405064;
    font-size: 18px;
    line-height: 1.5;
}

.celebration-road {
    position: relative;
    height: 82px;
    margin: 12px auto 24px;
    overflow: hidden;
    border-radius: 999px;
    background: linear-gradient(90deg, #1b2430, #313b48);
}

.celebration-road::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 200%;
    height: 6px;
    content: "";
    background: repeating-linear-gradient(90deg, #ffd79c 0 42px, transparent 42px 78px);
    transform: translateY(-50%);
    animation: roadLine 1400ms linear infinite;
}

.celebration-road span {
    position: absolute;
    right: 26px;
    bottom: 16px;
    width: 22px;
    height: 22px;
    background: var(--orange);
    border-radius: 50%;
    box-shadow: -12px 0 0 var(--red), -24px 0 0 var(--teal);
}

@keyframes overlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes celebrationPop {
    from { opacity: 0; transform: translateY(18px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes confettiDrop {
    from { transform: translateY(-80px) rotate(0deg); opacity: 1; }
    to { transform: translateY(calc(100vh + 120px)) rotate(540deg); opacity: 0.8; }
}

@keyframes burstFly {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
    20% { opacity: 1; }
    to { opacity: 0; transform: translate(calc(-50% + var(--burst-x, 120px)), calc(-50% + var(--burst-y, -120px))) scale(1); }
}

.celebration-burst i:nth-child(1) { --burst-x: 0px; --burst-y: -150px; }
.celebration-burst i:nth-child(2) { --burst-x: 120px; --burst-y: -116px; }
.celebration-burst i:nth-child(3) { --burst-x: 170px; --burst-y: 0px; }
.celebration-burst i:nth-child(4) { --burst-x: 115px; --burst-y: 115px; }
.celebration-burst i:nth-child(5) { --burst-x: 0px; --burst-y: 150px; }
.celebration-burst i:nth-child(6) { --burst-x: -115px; --burst-y: 115px; }
.celebration-burst i:nth-child(7) { --burst-x: -170px; --burst-y: 0px; }
.celebration-burst i:nth-child(8) { --burst-x: -120px; --burst-y: -116px; }

@keyframes roadLine {
    from { transform: translate(-78px, -50%); }
    to { transform: translate(0, -50%); }
}

@media (prefers-reduced-motion: reduce) {
    .completion-confetti i,
    .completion-replay-stop,
    .route-celebration-overlay,
    .route-celebration-panel,
    .route-celebration-sky span,
    .celebration-road::before,
    .celebration-burst i {
        animation: none;
    }
}

@media (max-width: 760px) {
    .completion-cinematic {
        min-height: 650px;
        padding: 38px 18px 48px;
        border-radius: 0 0 30px 30px;
    }

    .completion-topbar {
        grid-template-columns: 48px 1fr 48px;
    }

    .completion-hero-copy h1 {
        font-size: 62px;
    }

    .completion-hero-copy p:not(.eyebrow) {
        font-size: 19px;
    }

    .completion-badge {
        justify-self: start;
        width: 154px;
        margin-top: -18px;
        transform: rotate(-3deg);
    }

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

    .completion-map-frame {
        overflow-x: auto;
    }

    .certificate-preview {
        min-height: 282px;
        padding: 22px;
    }
}

.notice.success {
    color: #145147;
    background: #dff5ed;
    border: 1px solid #b9e7da;
}

.notice.warning {
    color: #7a3b00;
    background: #fff0d0;
    border: 1px solid #ffd38a;
}

.notice.warning a {
    color: #8c2f1f;
    font-weight: 900;
}

.notice.error {
    color: #7a2015;
    background: #ffe3dd;
    border: 1px solid #ffc7bc;
}

.proof-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 16px;
}

.stop-photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 16px;
}

.stop-photo-gallery a {
    position: relative;
    overflow: hidden;
    color: white;
    border-radius: 16px;
    background: #f4eadb;
}

.stop-photo-gallery .proof-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: none;
    border-radius: 0;
}

.stop-photo-gallery span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 8px 10px;
    background: rgba(10, 26, 43, 0.72);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.stop-detail-page {
    background: #ffffff;
}

.stop-detail-page .page-shell {
    width: min(820px, 100%);
    padding: 0 0 124px;
}

.stop-detail-screen {
    padding: 0 24px 34px;
}

.stop-detail-hero {
    position: relative;
    min-height: 600px;
    margin: 0 -24px;
    padding: 54px clamp(28px, 5vw, 54px) 158px;
    overflow: hidden;
    color: white;
    background:
        linear-gradient(180deg, rgba(8, 18, 31, 0.08) 0%, rgba(8, 18, 31, 0.18) 38%, rgba(8, 18, 31, 0.78) 100%),
        var(--stop-hero-image) center / cover no-repeat;
    border-radius: 0 0 40px 40px;
}

.stop-detail-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 58%);
}

.stop-detail-topbar,
.stop-detail-copy {
    position: relative;
    z-index: 2;
}

.stop-detail-topbar button {
    display: grid;
    place-items: center;
    justify-self: end;
    width: 50px;
    height: 50px;
    color: var(--red);
    background: rgba(255, 255, 255, 0.88);
    border: 0;
    border-radius: 16px;
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, 0.28),
        0 10px 24px rgba(24, 32, 43, 0.18);
    backdrop-filter: blur(12px);
    font: inherit;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 900;
}

.stop-detail-copy {
    max-width: 620px;
    margin-top: 190px;
}

.stop-detail-copy > span {
    display: inline-flex;
    margin-bottom: 16px;
    color: #ff7242;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
}

.stop-detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(42px, 7.5vw, 62px);
    line-height: 1.05;
}

.stop-detail-copy p {
    max-width: 500px;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(18px, 2.8vw, 23px);
    line-height: 1.45;
}

.stop-location-line {
    font-weight: 900;
}

.stop-action-card {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: -70px 0 20px;
    padding: 22px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(234, 223, 206, 0.78);
    border-radius: 26px;
    box-shadow: 0 24px 52px rgba(24, 32, 43, 0.17);
    backdrop-filter: blur(18px);
}

.stop-action-card a,
.stop-action-card button {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 112px;
    padding: 0 12px;
    color: var(--navy);
    text-align: center;
    background: transparent;
    border: 0;
    font: inherit;
}

.stop-action-card > * + * {
    border-left: 1px solid rgba(24, 32, 43, 0.1);
}

.stop-action-card span {
    color: var(--red);
    font-size: 38px;
    line-height: 1;
}

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

.stop-action-card strong {
    font-size: clamp(14px, 2.2vw, 18px);
}

.stop-action-card small {
    color: #344256;
    font-size: clamp(12px, 1.8vw, 15px);
}

.stop-info-card,
.stop-detail-grid,
.stop-journal-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 22px;
    color: var(--navy);
    background: white;
    border: 1px solid rgba(234, 223, 206, 0.78);
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(24, 32, 43, 0.1);
}

.stop-info-card article,
.stop-journal-card article {
    padding: 26px;
}

.stop-info-card article + article,
.stop-journal-card article + article {
    border-left: 1px solid rgba(24, 32, 43, 0.1);
}

.stop-info-card h2,
.stop-stamp-card h2,
.stop-photos-card h2,
.stop-journal-card h2,
.nearby-stop-strip h2,
.stop-badge-callout h2 {
    margin: 0 0 18px;
    color: var(--navy);
    font-size: clamp(18px, 2.8vw, 24px);
    text-transform: uppercase;
}

.stop-info-card h2 span,
.stop-stamp-card h2 span {
    color: var(--red);
}

.stop-info-card p,
.stop-badge-callout p {
    color: #24344d;
    font-size: clamp(15px, 2.2vw, 18px);
    line-height: 1.55;
}

.stop-info-card a,
.stop-section-title a {
    color: var(--red);
    font-weight: 900;
}

.stop-stamp-card,
.stop-photos-card {
    padding: 24px;
}

.stop-stamp-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    align-items: center;
}

.stop-stamp-card h2 {
    grid-column: 1 / -1;
}

.route-stamp {
    display: grid;
    place-items: center;
    width: 140px;
    height: 140px;
    color: var(--red);
    border: 6px solid currentColor;
    border-radius: 50%;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-8deg);
}

.route-stamp strong {
    font-size: 54px;
    line-height: 0.9;
}

.route-stamp span {
    font-size: 17px;
    font-weight: 900;
}

.stop-stamp-card em {
    display: inline-flex;
    width: fit-content;
    margin-top: 10px;
    padding: 8px 12px;
    color: #1d6a4f;
    background: #e0f3ea;
    border-radius: 10px;
    font-style: normal;
    font-weight: 900;
}

.stop-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.stop-photo-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stop-photo-button {
    display: block;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.stop-photo-strip img,
.nearby-stop-strip img {
    width: 100%;
    aspect-ratio: 0.78;
    object-fit: cover;
    border-radius: 16px;
}

.stop-empty-photo {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 150px;
    color: var(--muted);
    background: #f7f1e8;
    border-radius: 16px;
}

.nearby-stop-strip {
    margin-bottom: 22px;
    padding: 24px;
    background: white;
    border: 1px solid rgba(234, 223, 206, 0.78);
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(24, 32, 43, 0.1);
}

.nearby-stop-strip > div:last-child {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.nearby-stop-strip a {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 94px;
    padding: 10px;
    color: var(--navy);
    background: #fff;
    border: 1px solid rgba(234, 223, 206, 0.78);
    border-radius: 16px;
}

.nearby-stop-strip img {
    aspect-ratio: 1;
    grid-row: span 2;
}

.nearby-stop-strip strong,
.nearby-stop-strip small {
    display: block;
}

.nearby-stop-strip small {
    color: var(--muted);
}

.stop-badge-callout {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 22px;
    align-items: center;
    margin-bottom: 22px;
    padding: 24px;
    color: var(--navy);
    background: linear-gradient(90deg, #fff7ed, #f9e5d0);
    border: 1px solid rgba(224, 190, 146, 0.82);
    border-radius: 24px;
}

.stop-badge-callout > span {
    color: var(--navy);
    font-weight: 900;
}

.stop-journal-card {
    margin-bottom: 0;
}

.add-photo-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.upload-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.upload-form button[type="submit"][aria-busy="true"] {
    cursor: wait;
    opacity: 0.9;
}

.upload-spinner {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: upload-spin 0.7s linear infinite;
}

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

.upload-debug-notice {
    display: grid;
    gap: 10px;
}

.upload-debug-notice span {
    display: block;
}

.upload-debug-notice dl {
    display: grid;
    gap: 8px;
    margin: 4px 0 0;
}

.upload-debug-notice dl div {
    display: grid;
    grid-template-columns: minmax(110px, 0.42fr) 1fr;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid rgba(90, 52, 30, 0.16);
}

.upload-debug-notice dt {
    font-weight: 900;
}

.upload-debug-notice dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.vault-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.vault-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vault-card {
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(24, 32, 43, 0.08);
}

.vault-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f4eadb;
}

.vault-card div {
    padding: 14px;
}

.vault-card h2 {
    margin: 10px 0 6px;
    font-size: 18px;
}

.vault-card p,
.vault-card span,
.vault-card small {
    color: var(--muted);
    line-height: 1.45;
}

.vault-card small {
    display: block;
    margin-top: 6px;
    color: var(--red);
    font-weight: 800;
}

.journal-page {
    background: #fff;
}

.journal-page .page-shell {
    width: min(820px, 100%);
    padding: 0 0 124px;
}

.journal-screen {
    padding: 0 24px 34px;
    color: var(--navy);
}

.journal-hero {
    position: relative;
    min-height: 480px;
    margin: 0 -24px;
    padding: 44px clamp(28px, 5vw, 52px) 132px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(248, 251, 255, 0.78) 42%, rgba(255, 228, 185, 0.3) 70%, rgba(132, 73, 32, 0.38) 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.08) 72%),
        url("/includes/images/background.png") center 30% / cover no-repeat;
    border-radius: 0 0 40px 40px;
    box-shadow: inset 0 -82px 70px rgba(10, 25, 41, 0.24);
}

.journal-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.78), transparent 30%),
        linear-gradient(0deg, rgba(6, 20, 34, 0.22), transparent 50%);
    pointer-events: none;
}

.journal-top,
.journal-hero-copy {
    position: relative;
    z-index: 2;
}

.journal-add {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    font-weight: 900;
    line-height: 1;
}

.journal-add {
    justify-self: end;
    color: white;
    background: linear-gradient(135deg, #d85f31, var(--red));
    border-radius: 50%;
    box-shadow:
        0 0 0 6px rgba(255, 255, 255, 0.28),
        0 10px 20px rgba(187, 69, 31, 0.3);
    font-size: 34px;
}

.journal-hero-copy {
    max-width: 410px;
    margin-top: 60px;
}

.journal-hero-copy h1 {
    margin: 0 0 26px;
    font-size: clamp(38px, 6vw, 56px);
    line-height: 1;
}

.journal-hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(32px, 5.7vw, 44px);
    line-height: 1.17;
}

.journal-hero-copy p {
    margin: 0;
    color: #4a5b70;
    font-size: clamp(19px, 3.3vw, 28px);
    line-height: 1.28;
}

.journal-notice {
    position: relative;
    z-index: 4;
    margin: -84px 0 20px;
}

.journal-category-rail {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin: -66px 0 26px;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(234, 223, 206, 0.82);
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(24, 32, 43, 0.13);
    backdrop-filter: blur(18px);
}

.journal-category-rail a {
    display: grid;
    justify-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--navy);
    text-align: center;
    font-size: clamp(14px, 2.1vw, 20px);
    font-weight: 700;
}

.journal-category-rail a + a {
    border-left: 1px solid rgba(14, 35, 59, 0.1);
}

.journal-category-rail span {
    display: grid;
    place-items: center;
    width: clamp(54px, 9vw, 76px);
    height: clamp(54px, 9vw, 76px);
    color: var(--navy);
    background: #f8e9dc;
    border-radius: 50%;
    font-size: clamp(20px, 3.5vw, 34px);
    font-weight: 900;
}

.journal-category-rail a.active {
    color: var(--red);
}

.journal-category-rail a.active span {
    color: white;
    background: linear-gradient(135deg, #d85f31, var(--red));
}

.journey-stats-card {
    display: grid;
    gap: 18px;
    margin: 0 0 24px;
    padding: clamp(20px, 4vw, 28px);
    background:
        linear-gradient(135deg, rgba(23, 50, 77, 0.98), rgba(31, 122, 118, 0.94)),
        radial-gradient(circle at top right, rgba(242, 157, 56, 0.28), transparent 34%);
    border-radius: 24px;
    box-shadow: 0 20px 46px rgba(24, 32, 43, 0.18);
}

.journey-stats-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.journey-stats-heading .eyebrow,
.journey-category-stats > span {
    color: #ffd79c;
}

.journey-stats-heading h2 {
    margin: 4px 0 0;
    color: white;
    font-size: clamp(26px, 4.4vw, 38px);
    line-height: 1.05;
}

.journey-stats-heading > span {
    flex: 0 0 auto;
    padding: 8px 12px;
    color: white;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.journey-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.journey-stat-grid article {
    min-height: 150px;
    padding: 16px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
}

.journey-stat-grid span,
.journey-category-stats > span {
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.journey-stat-grid strong {
    display: block;
    margin: 12px 0 8px;
    font-size: clamp(28px, 5vw, 42px);
    line-height: 0.95;
}

.journey-stat-grid small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.35;
}

.journey-category-stats {
    display: grid;
    gap: 10px;
}

.journey-category-stats > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.journey-category-stats strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px 8px 8px;
    color: var(--navy);
    background: #fffaf2;
    border-radius: 999px;
    font-size: 14px;
}

.journey-category-stats em {
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 30px;
    color: white;
    background: var(--red);
    border-radius: 50%;
    font-style: normal;
    font-weight: 900;
}

.journey-category-stats small {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    color: white;
    background: var(--teal);
    border-radius: 50%;
    font-size: 12px;
}

.journal-searchbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    margin-bottom: 22px;
}

.journal-searchbar label,
.journal-searchbar button {
    display: flex;
    align-items: center;
    min-height: 60px;
    background: #fff;
    border: 1px solid rgba(14, 35, 59, 0.14);
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(24, 32, 43, 0.04);
}

.journal-searchbar label {
    gap: 12px;
    padding: 0 18px;
}

.journal-searchbar label span,
.journal-searchbar button span {
    color: #596779;
    font-size: 28px;
}

.journal-searchbar input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--navy);
    font: inherit;
    font-size: 19px;
}

.journal-searchbar input::placeholder {
    color: #7b8493;
}

.journal-searchbar button {
    gap: 10px;
    padding: 0 24px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
}

.journal-scope-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -4px 0 22px;
}

.journal-scope-tabs a {
    padding: 9px 14px;
    color: #4a5b70;
    background: #fff;
    border: 1px solid rgba(14, 35, 59, 0.12);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.journal-scope-tabs a.active {
    color: white;
    background: var(--navy);
}

.journal-entry-list {
    display: grid;
    gap: 20px;
}

.journal-entry-card {
    display: grid;
    grid-template-columns: minmax(190px, 35%) 1fr;
    min-height: 252px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(234, 223, 206, 0.82);
    border-radius: 20px;
    box-shadow: 0 16px 34px rgba(24, 32, 43, 0.1);
}

.journal-entry-image {
    display: block;
    min-height: 100%;
    background: #f3eadb;
}

.journal-entry-image img {
    width: 100%;
    height: 100%;
    min-height: 252px;
    object-fit: cover;
}

.journal-entry-body {
    display: grid;
    align-content: start;
    padding: 24px 28px 20px;
}

.journal-entry-meta,
.journal-entry-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.journal-entry-meta time {
    color: var(--red);
    font-size: 16px;
    font-weight: 800;
}

.journal-entry-meta > span {
    color: var(--navy);
    font-size: 32px;
    line-height: 1;
}

.journal-entry-body h2 {
    margin: 6px 0 6px;
    font-size: clamp(22px, 3.7vw, 28px);
    line-height: 1.08;
}

.journal-entry-body p {
    margin: 0;
    color: var(--navy);
    font-size: clamp(15px, 2.4vw, 18px);
    line-height: 1.42;
}

.journal-entry-place {
    margin-bottom: 10px !important;
    color: #526073 !important;
}

.journal-entry-footer {
    margin-top: 18px;
}

.journal-entry-footer > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.journal-entry-footer span {
    padding: 7px 13px;
    color: var(--navy);
    background: #f2e8ee;
    border-radius: 999px;
    font-size: 14px;
}

.journal-entry-footer span:nth-child(2) {
    background: #f7eadc;
}

.journal-entry-footer strong {
    color: var(--navy);
    white-space: nowrap;
    font-size: 18px;
}

.journal-compose-card {
    margin-top: 24px;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(234, 223, 206, 0.82);
    border-radius: 22px;
    box-shadow: 0 16px 34px rgba(24, 32, 43, 0.1);
}

.journal-compose-card h2 {
    margin: 0 0 18px;
    font-size: 28px;
}

.journal-empty {
    background: white;
}

.journal-layout {
    align-items: start;
}

.card-heading-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.card-heading-row h2 {
    margin: 0 0 10px;
}

.card-heading-row a {
    color: var(--red);
    font-weight: 900;
}

.journal-list,
.mini-journal-list {
    display: grid;
    gap: 12px;
}

.journal-card,
.mini-journal-list article {
    padding: 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(24, 32, 43, 0.06);
}

.journal-card > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.journal-card span,
.journal-card em,
.mini-journal-list span {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.journal-card a {
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
}

.journal-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.journal-card p,
.mini-journal-list p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.mini-journal-list strong {
    display: block;
    margin: 4px 0 6px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pills a {
    padding: 10px 12px;
    color: var(--navy);
    background: #f2eadc;
    border-radius: 999px;
    font-weight: 900;
}

.filter-pills a.active {
    color: white;
    background: var(--navy);
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.admin-tabs a,
.admin-link {
    color: white;
    background: var(--navy);
    border-radius: 999px;
    font-weight: 900;
}

.admin-tabs a {
    padding: 10px 13px;
}

.admin-link {
    display: inline-flex;
    padding: 8px 10px;
    font-size: 13px;
}

.admin-table-wrap {
    overflow-x: auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 24px rgba(24, 32, 43, 0.08);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table th,
.admin-table td {
    padding: 13px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.admin-table th {
    color: var(--navy);
    background: #fff7e8;
    font-size: 13px;
    text-transform: uppercase;
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.wide-card {
    max-width: 760px;
}

.form-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.badge-grid.small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 12px 0 0;
}

.badge-card {
    padding: 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(24, 32, 43, 0.08);
}

.badge-card > span {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: white;
    background: var(--navy);
    border-radius: 50%;
    font-weight: 900;
}

.badge-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.badge-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.badge-card.earned {
    border-color: rgba(31, 122, 118, 0.32);
}

.badge-card.earned > span {
    background: linear-gradient(135deg, var(--teal), var(--orange));
}

.badge-card.locked {
    opacity: 0.62;
}

.badge-card.locked > span {
    background: #9aa0a8;
}

.badge-unlock-card {
    margin: 16px 0;
}

.earned-badges {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.earned-badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: white;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-weight: 800;
}

.earned-badges strong {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    color: var(--navy);
    background: #ffd79c;
    border-radius: 50%;
    font-size: 12px;
}

.filter-bar {
    margin: 0 0 18px;
    max-width: 320px;
}

.side-menu-open {
    overflow: hidden;
}

.side-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(3, 13, 24, 0.38);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.side-menu-overlay.is-open {
    opacity: 1;
}

.side-menu {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 70;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    width: min(78vw, 360px);
    max-height: 100dvh;
    padding: 34px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: white;
    background:
        radial-gradient(circle at 20% 4%, rgba(19, 75, 116, 0.6), transparent 34%),
        linear-gradient(180deg, #06233b, #041a2d);
    border-radius: 0 34px 34px 0;
    box-shadow: 24px 0 54px rgba(0, 0, 0, 0.28);
    transform: translateX(-104%);
    transition: transform 0.24s ease;
}

.side-menu::-webkit-scrollbar {
    width: 8px;
}

.side-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.side-menu.is-open {
    transform: translateX(0);
}

.side-menu-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 50%;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.side-menu-profile {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 8px 0 22px;
    text-align: center;
}

.side-menu-avatar {
    display: grid;
    place-items: center;
    width: 100px;
    height: 100px;
    color: white;
    background:
        linear-gradient(180deg, rgba(10, 35, 58, 0.05), rgba(10, 35, 58, 0.36)),
        url("/includes/images/background.png") center 68% / cover no-repeat;
    border: 4px solid white;
    border-radius: 50%;
    font-size: 38px;
    font-weight: 900;
}

.side-menu-profile strong {
    font-size: 23px;
}

.side-menu-profile span {
    color: #f15d32;
    font-weight: 800;
}

.side-menu-profile em {
    margin-left: 4px;
    padding: 4px 7px;
    color: white;
    background: #d85a31;
    border-radius: 4px;
    font-size: 12px;
    font-style: normal;
    text-transform: uppercase;
}

.side-menu-nav {
    display: grid;
    gap: 7px;
    align-content: start;
}

.side-menu-nav a,
.side-menu-logout {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    min-height: 56px;
    padding: 0 16px;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    font-size: 18px;
    font-weight: 800;
}

.side-menu-nav a.active {
    color: white;
    background: linear-gradient(135deg, #e66b34, #bf3d2b);
    box-shadow: 0 14px 28px rgba(194, 65, 45, 0.22);
}

.side-menu-nav span,
.side-menu-logout span {
    font-size: 25px;
}

.side-menu-logout {
    margin-top: 18px;
    padding-top: 16px;
    color: #f15d32;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
}

.simple-app-screen {
    width: min(820px, 100%);
    margin: 0 auto;
    padding: 0 24px 124px;
    color: var(--navy);
}

.simple-hero {
    position: relative;
    min-height: 430px;
    margin: 0 -24px 22px;
    padding: 42px clamp(28px, 5vw, 52px) 118px;
    overflow: hidden;
    color: var(--navy);
    background:
        linear-gradient(180deg, rgba(246, 250, 255, 0.96) 0%, rgba(246, 250, 255, 0.74) 42%, rgba(255, 224, 177, 0.24) 68%, rgba(8, 18, 31, 0.48) 100%),
        linear-gradient(90deg, rgba(255, 252, 246, 0.78), rgba(255, 252, 246, 0.08) 70%),
        url("/includes/images/background.png") center 34% / cover no-repeat;
    border-radius: 0 0 40px 40px;
    box-shadow: inset 0 -86px 76px rgba(4, 13, 23, 0.24);
}

.simple-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.76), transparent 27%),
        linear-gradient(0deg, rgba(5, 15, 27, 0.28), transparent 48%);
    pointer-events: none;
}

.simple-hero-top,
.simple-hero-copy {
    position: relative;
    z-index: 2;
}

.simple-hero-copy {
    max-width: 620px;
    margin-top: 70px;
}

.simple-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(50px, 8vw, 76px);
    line-height: 1;
}

.simple-hero p {
    max-width: 520px;
    color: #324256;
    font-size: clamp(19px, 3vw, 28px);
    line-height: 1.35;
}

.simple-progress-card {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 86px 1fr 42px;
    gap: 18px;
    align-items: center;
    margin: -72px 0 18px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(234, 223, 206, 0.82);
    border-radius: 24px;
    box-shadow: 0 20px 44px rgba(24, 32, 43, 0.13);
    backdrop-filter: blur(18px);
}

.simple-progress-card > span {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    color: white;
    background: linear-gradient(135deg, #d85f31, var(--red));
    border-radius: 50%;
    font-size: 36px;
    font-weight: 900;
}

.simple-progress-card h2,
.simple-progress-card p {
    margin: 0;
}

.simple-progress-card h2 {
    font-size: 30px;
}

.simple-progress-card p {
    margin-top: 4px;
    color: #526073;
    font-size: 18px;
}

.simple-progress-card a {
    color: var(--navy);
    font-size: 42px;
    line-height: 1;
}

.trip-timeline-card {
    display: grid;
    gap: 22px;
    margin: 0 0 24px;
    padding: clamp(20px, 4vw, 30px);
    background: #fff;
    border: 1px solid rgba(234, 223, 206, 0.82);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(24, 32, 43, 0.1);
}

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

.timeline-heading h2,
.timeline-heading p {
    margin: 0;
}

.timeline-heading h2 {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.04;
}

.timeline-heading p:not(.eyebrow) {
    max-width: 560px;
    color: #526073;
    font-size: 18px;
    line-height: 1.45;
}

.timeline-heading > span {
    flex: 0 0 auto;
    padding: 10px 13px;
    color: var(--red);
    background: #fff4df;
    border: 1px solid rgba(196, 79, 45, 0.18);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.timeline-state-strip,
.timeline-export-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-state-strip span,
.timeline-export-row strong,
.timeline-export-row span {
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.timeline-state-strip span {
    color: var(--navy);
    background: #edf4f7;
}

.trip-timeline-list {
    position: relative;
    display: grid;
    gap: 14px;
}

.trip-timeline-list::before {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 46px;
    width: 3px;
    content: "";
    background: #e4d6c1;
    border-radius: 999px;
}

.trip-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 42px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: #fffaf2;
    border: 1px solid rgba(234, 223, 206, 0.88);
    border-radius: 20px;
}

.timeline-photo {
    position: relative;
    z-index: 1;
    display: block;
    overflow: hidden;
    width: 96px;
    aspect-ratio: 1;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0 46%, rgba(24, 32, 43, 0.34) 47%),
        linear-gradient(135deg, #30706a 0 42%, #d7a65a 42% 58%, #7f3d2d 58%);
    border: 4px solid #fff;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(24, 32, 43, 0.12);
}

.timeline-photo img,
.timeline-photo span {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trip-timeline-item h3,
.trip-timeline-item p {
    margin: 0;
}

.trip-timeline-item h3 {
    margin-top: 4px;
    color: var(--navy);
    font-size: clamp(21px, 3vw, 28px);
    line-height: 1.12;
}

.trip-timeline-item h3 a {
    color: inherit;
}

.trip-timeline-item div > span,
.trip-timeline-item em {
    color: var(--red);
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.trip-timeline-item p {
    margin-top: 8px;
    color: #526073;
    line-height: 1.42;
}

.trip-timeline-item > strong {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: white;
    background: var(--red);
    border-radius: 50%;
    font-size: 15px;
}

.timeline-empty {
    display: grid;
    justify-items: start;
    gap: 10px;
    padding: 22px;
    background: #fffaf2;
    border: 1px dashed #e4c492;
    border-radius: 20px;
}

.timeline-empty strong {
    color: var(--navy);
    font-size: 22px;
}

.timeline-empty p {
    max-width: 540px;
    margin: 0;
    color: #526073;
}

.timeline-export-row {
    padding-top: 2px;
}

.timeline-export-row span {
    color: #526073;
    background: #f3f0e9;
}

.timeline-export-row strong {
    color: var(--navy);
    background: #edf4f7;
}

.friends-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: -72px 0 18px;
}

.friends-card-grid article,
.simple-callout {
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(234, 223, 206, 0.82);
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(24, 32, 43, 0.11);
}

.friends-card-grid article {
    padding: 22px;
}

.friends-card-grid span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: var(--red);
    background: #f8e9dc;
    border-radius: 50%;
    font-size: 28px;
}

.friends-card-grid h2,
.friends-card-grid p {
    margin: 0;
}

.friends-card-grid h2 {
    margin-top: 16px;
    font-size: 22px;
}

.friends-card-grid p {
    margin-top: 8px;
    color: #526073;
    line-height: 1.45;
}

.friends-panel {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 16px;
    margin: 18px 0;
    padding: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(234, 223, 206, 0.82);
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(24, 32, 43, 0.09);
}

.help-screen {
    padding-bottom: 142px;
}

.help-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: -72px 0 18px;
}

.help-quick-grid a {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 10px;
    min-height: 166px;
    padding: 20px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(234, 223, 206, 0.82);
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(24, 32, 43, 0.11);
}

.help-quick-grid span {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    color: white;
    background: linear-gradient(135deg, var(--navy), var(--red));
    border-radius: 50%;
    font-size: 27px;
    font-weight: 900;
}

.help-quick-grid strong {
    font-size: 20px;
}

.help-quick-grid small {
    color: #526073;
    line-height: 1.4;
}

.help-support-card,
.help-faq-section {
    display: grid;
    gap: 18px;
    margin: 18px 0;
    padding: clamp(20px, 4vw, 28px);
    background: white;
    border: 1px solid rgba(234, 223, 206, 0.82);
    border-radius: 24px;
    box-shadow: 0 18px 38px rgba(24, 32, 43, 0.09);
}

.help-support-card {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
    align-items: center;
}

.help-support-card h2,
.help-support-card p {
    margin: 0;
}

.help-support-card h2 {
    margin-bottom: 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
}

.help-support-card p:not(.eyebrow) {
    max-width: 640px;
    color: #526073;
    font-size: 18px;
    line-height: 1.5;
}

.help-contact-panel {
    display: grid;
    gap: 8px;
    padding: 18px;
    color: white;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    border-radius: 18px;
}

.help-contact-panel strong {
    color: #ffd79c;
    font-size: 13px;
    text-transform: uppercase;
}

.help-contact-panel a {
    overflow-wrap: anywhere;
    font-size: 18px;
    font-weight: 900;
}

.help-contact-panel span {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
}

.help-faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.help-faq-group {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
}

.help-faq-group h3 {
    margin: 0;
    color: var(--red);
    font-size: 18px;
}

.help-faq-group details {
    background: #fffaf2;
    border: 1px solid rgba(234, 223, 206, 0.9);
    border-radius: 16px;
}

.help-faq-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    color: var(--navy);
    cursor: pointer;
    font-weight: 900;
    list-style: none;
}

.help-faq-group summary::-webkit-details-marker {
    display: none;
}

.help-faq-group summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--red);
    font-size: 22px;
    line-height: 1;
}

.help-faq-group details[open] summary::after {
    content: "-";
}

.help-faq-group p {
    margin: 0;
    padding: 0 16px 16px;
    color: #526073;
    line-height: 1.5;
}

.friends-section-heading {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.friends-section-heading h2,
.friends-section-heading p {
    margin: 0;
}

.friends-section-heading h2 {
    font-size: 26px;
}

.friends-section-heading a {
    color: var(--red);
    font-weight: 900;
}

.friend-search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.friend-search-form input {
    width: 100%;
    min-height: 48px;
    padding: 13px 16px;
    color: var(--navy);
    background: #fffaf2;
    border: 1px solid rgba(219, 204, 181, 0.96);
    border-radius: 14px;
    font: inherit;
}

.friend-list {
    display: grid;
    gap: 12px;
}

.friend-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: #fffaf4;
    border: 1px solid rgba(234, 223, 206, 0.82);
    border-radius: 18px;
}

.friend-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: white;
    background: linear-gradient(135deg, var(--navy), var(--red));
    border-radius: 50%;
    font-size: 22px;
    font-weight: 900;
}

.friend-main {
    min-width: 0;
}

.friend-main strong,
.friend-main small {
    display: block;
}

.friend-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-main small {
    color: var(--muted);
    line-height: 1.45;
}

.friend-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.friend-actions .btn {
    min-height: 40px;
    padding: 10px 13px;
    border-radius: 12px;
}

.friend-status {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 11px;
    color: #405064;
    background: #f2eadc;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.compact-empty {
    padding: 18px;
    box-shadow: none;
}

.compact-empty h2,
.compact-empty p {
    margin: 0;
}

.compact-empty p {
    margin-top: 6px;
}

.leaderboard-opt-in {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.leaderboard-list {
    display: grid;
    gap: 12px;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 44px 1fr auto auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    color: var(--navy);
    background: white;
    border: 1px solid rgba(234, 223, 206, 0.8);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(24, 32, 43, 0.08);
}

.leaderboard-row > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: white;
    background: var(--red);
    border-radius: 50%;
    font-weight: 900;
}

.leaderboard-row strong,
.leaderboard-row small {
    display: block;
}

.leaderboard-row small {
    color: var(--muted);
}

.leaderboard-row em,
.leaderboard-row a {
    color: var(--red);
    font-style: normal;
    font-weight: 900;
}

.mobile-tabbar {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 30;
    display: none;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    min-height: 76px;
    padding: 8px 10px 10px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(234, 223, 206, 0.8);
    border-radius: 26px;
    box-shadow: 0 18px 42px rgba(24, 32, 43, 0.18);
    backdrop-filter: blur(16px);
}

.mobile-tabbar a {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 8px 4px;
    color: #3c4756;
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.mobile-tabbar a:first-child {
    color: var(--red);
}

.route-map-page .mobile-tabbar a:first-child {
    color: #3c4756;
}

.route-map-page .mobile-tabbar a[href="/pages/stops.php"] {
    color: var(--red);
}

.achievements-page .mobile-tabbar a:first-child {
    color: #3c4756;
}

.achievements-page .mobile-tabbar a[href="/pages/achievements.php"] {
    color: var(--red);
}

.vault-page .mobile-tabbar a:first-child {
    color: #3c4756;
}

.vault-page .mobile-tabbar a[href="/pages/vault.php"] {
    color: var(--red);
}

.profile-page .mobile-tabbar a:first-child {
    color: #3c4756;
}

.profile-page .mobile-tabbar a[href="/pages/profile.php"] {
    color: var(--red);
}

.journal-page .mobile-tabbar a:first-child {
    color: #3c4756;
}

.journal-page .mobile-tabbar a[href="/pages/journal.php"] {
    color: var(--red);
}

.journal-tabbar .scan-tab {
    width: auto;
    height: auto;
    margin-top: 0;
    color: inherit;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.mobile-tabbar a span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: currentColor;
    font-size: 24px;
    line-height: 1;
}

.mobile-tabbar .scan-tab {
    width: 70px;
    height: 70px;
    margin: -26px auto 0;
    padding: 0;
    color: white;
    background: linear-gradient(135deg, #de6a35, var(--red));
    border: 6px solid #fff;
    border-radius: 50%;
    box-shadow: 0 16px 30px rgba(194, 65, 45, 0.34);
    font-size: 0;
}

.mobile-tabbar .scan-tab span {
    width: 100%;
    height: 100%;
    font-size: 32px;
}

@media (min-width: 761px) {
    .login-page .page-shell,
    .register-page .page-shell {
        width: 100%;
        max-width: none;
    }

    .login-card,
    .register-card {
        width: min(1280px, calc(100% - 48px));
    }
}

@media (min-width: 1024px) {
    .app-home-page .page-shell,
    .route-map-page .page-shell,
    .achievements-page .page-shell,
    .vault-page .page-shell,
    .profile-page .page-shell,
    .stop-detail-page .page-shell,
    .journal-page .page-shell,
    .friends-page .page-shell,
    .itinerary-page .page-shell,
    .leaderboard-page .page-shell,
    .help-page .page-shell {
        width: 100%;
        max-width: none;
    }

    .simple-app-screen {
        width: 100%;
        max-width: none;
        padding-right: clamp(40px, 5vw, 80px);
        padding-left: clamp(40px, 5vw, 80px);
    }

    .app-home,
    .route-map-screen,
    .achievements-screen,
    .vault-screen,
    .settings-screen,
    .stop-detail-screen,
    .journal-screen {
        padding-right: clamp(40px, 5vw, 80px);
        padding-left: clamp(40px, 5vw, 80px);
    }

    .app-hero,
    .route-map-hero,
    .achievements-hero,
    .vault-hero,
    .settings-hero,
    .stop-detail-hero,
    .journal-hero {
        margin-right: calc(clamp(40px, 5vw, 80px) * -1);
        margin-left: calc(clamp(40px, 5vw, 80px) * -1);
        padding-right: clamp(56px, 8vw, 128px);
        padding-left: clamp(56px, 8vw, 128px);
    }

    .simple-hero {
        margin-right: calc(clamp(40px, 5vw, 80px) * -1);
        margin-left: calc(clamp(40px, 5vw, 80px) * -1);
        padding-right: clamp(56px, 8vw, 128px);
        padding-left: clamp(56px, 8vw, 128px);
    }

    .dashboard-content,
    .achievement-section,
    .passport-collection,
    .vault-memory-grid,
    .vault-reel-card,
    .settings-content,
    .stop-info-card,
    .stop-detail-grid,
    .nearby-stop-strip,
    .stop-badge-callout,
    .stop-journal-card,
    .journal-category-rail,
    .journal-searchbar,
    .journal-scope-tabs,
    .journal-entry-list,
    .journal-compose-card {
        max-width: 1280px;
        margin-right: auto;
        margin-left: auto;
    }

    .leaderboard-opt-in,
    .leaderboard-list,
    .route-list,
    .simple-progress-card,
    .friends-card-grid,
    .friends-panel,
    .help-quick-grid,
    .help-support-card,
    .help-faq-section,
    .simple-app-screen > .empty-state {
        max-width: 1280px;
        margin-right: auto;
        margin-left: auto;
    }

    .app-progress-card,
    .quick-action-grid,
    .next-stop-section,
    .memory-banner,
    .achievement-progress-card,
    .achievement-tabs,
    .vault-progress-card,
    .vault-filter-tabs,
    .settings-profile-card {
        max-width: 1280px;
        margin-right: auto;
        margin-left: auto;
    }

    .vault-memory-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .top-nav {
        display: none;
    }

    .mobile-tabbar {
        display: grid;
    }

    .landing,
    .two-column,
    .feature-strip,
    .stat-grid,
    .vault-grid,
    .vault-grid.compact,
    .admin-photo-grid,
    .badge-grid,
    .badge-grid.small {
        grid-template-columns: 1fr;
    }

    .form-grid-two {
        grid-template-columns: 1fr;
    }

    .landing {
        min-height: auto;
        padding-top: 24px;
    }

    .landing-journey {
        background-position: center top;
    }

    .landing-journey__content {
        padding-inline: 18px;
    }

    .landing-feature-row {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 18px;
    }

    .landing-feature-row div {
        min-height: 132px;
    }

    .landing-feature-row div:nth-child(3) {
        border-left: 0;
    }

    .phone-preview {
        min-height: 360px;
    }

    .preview-card {
        margin-top: 150px;
    }

    .hero-actions,
    .action-row,
    .share-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .route-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

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

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .sticky-action {
        position: sticky;
        bottom: 86px;
    }
}

@media (max-width: 760px) {
    .app-home-page .page-shell {
        padding-bottom: 108px;
    }

    .app-hero {
        min-height: 720px;
        padding: 42px 24px 158px;
        background-position: center 34%;
    }

    .app-hero::after {
        right: 22px;
        bottom: 180px;
        width: 104px;
        height: 168px;
    }

    .hero-copy {
        margin-top: 46px;
    }

    .hero-copy h1 {
        font-size: 46px;
    }

    .hero-copy p {
        max-width: 320px;
        font-size: 21px;
    }

    .direction-launchers {
        margin-top: 38px;
    }

    .direction-pill {
        min-height: 84px;
        padding: 15px;
        border-radius: 30px;
    }

    .direction-pill strong {
        font-size: 16px;
    }

    .direction-pill small {
        font-size: 14px;
    }

    .app-progress-card {
        grid-template-columns: 155px 1fr;
        margin-top: -96px;
        padding: 20px;
        border-radius: 24px;
    }

    .app-progress-card strong {
        font-size: 50px;
    }

    .quick-action-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .quick-action-grid a {
        min-height: 132px;
        border-radius: 17px;
    }

    .quick-action-grid span {
        font-size: 34px;
    }

    .next-stop-tile {
        grid-template-columns: 128px 1fr 50px;
        gap: 14px;
    }

    .next-stop-copy strong {
        font-size: 22px;
    }

    .route-map-hero {
        padding: 40px 24px 0;
    }

    .map-title-row {
        grid-template-columns: 1fr 210px;
    }

    .map-title-row h1 {
        font-size: 48px;
    }

    .map-title-row p {
        font-size: 21px;
    }

    .usa-map-panel {
        min-height: 810px;
    }

    .usa-route-svg {
        width: 130%;
        margin: 158px -15% 0;
    }

    .map-floating-controls {
        right: 24px;
        bottom: 210px;
    }

    .map-legend.floating {
        left: 24px;
        bottom: 218px;
    }

    .map-stop-card {
        grid-template-columns: 150px 32px 1fr 50px;
    }

    .achievements-hero {
        min-height: 590px;
        padding: 40px 24px 178px;
        background-position: center 34%;
    }

    .achievements-copy h1 {
        font-size: 54px;
    }

    .achievement-progress-card {
        grid-template-columns: 160px 1fr 34px;
        gap: 18px;
    }

    .earned-achievement-grid,
    .locked-achievement-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .vault-hero {
        min-height: 535px;
        padding: 40px 24px 166px;
        background-position: center 34%;
    }

    .vault-copy h1 {
        font-size: 58px;
    }

    .vault-progress-card {
        grid-template-columns: 150px 1fr 34px;
        gap: 18px;
    }

    .vault-memory-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .passport-spread {
        grid-template-columns: 1fr;
    }

    .passport-spread::before {
        display: none;
    }

    .passport-page-meta {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 16px;
        padding-right: 0;
    }

    .passport-page-meta strong {
        margin: 0;
    }

    .vault-filter-tabs {
        gap: 10px;
    }

    .vault-filter-tabs a {
        font-size: 14px;
    }
}

@media (max-width: 520px) {
    .site-header {
        padding: 12px 14px;
    }

    .brand span:last-child {
        display: none;
    }

    .page-shell {
        padding-inline: 14px;
    }

    .app-home-page .page-shell {
        padding-inline: 0;
    }

    .app-home {
        padding-inline: 14px;
    }

    .landing-journey__content {
        padding: 24px 14px 18px;
    }

    .landing-passport-logo strong {
        width: 82px;
    }

    .landing-journey__copy {
        margin-top: 42px;
    }

    .landing-feature-row {
        margin-top: 32px;
        margin-bottom: 20px;
    }

    .landing-feature-row div {
        gap: 6px;
        min-height: 122px;
        padding-inline: 8px;
    }

    .landing-feature-row span {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 24px;
    }

    .landing-start-card {
        border-radius: 24px;
    }

    .landing-button {
        grid-template-columns: 48px 1fr 22px;
        min-height: 66px;
        padding-inline: 16px;
    }

    .landing-button span {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 15px;
    }

    .app-hero {
        min-height: 660px;
        margin-inline: -14px;
        padding: 36px 22px 132px;
        border-radius: 0 0 28px 28px;
        background-position: center 32%;
    }

    .app-hero-top {
        grid-template-columns: 44px 1fr 44px;
    }

    .hamburger-button {
        width: 44px;
        height: 44px;
    }

    .hamburger-button i {
        font-size: 24px;
    }

    .passport-logo span {
        font-size: 13px;
    }

    .passport-logo strong {
        width: 72px;
        height: 54px;
        border-width: 6px;
        font-size: 34px;
    }

    .signal-dots {
        width: 44px;
        height: 44px;
        padding-block: 9px;
    }

    .app-hero::after {
        right: 22px;
        bottom: 164px;
        width: 86px;
        height: 142px;
        border-width: 5px;
    }

    .hero-copy {
        margin-top: 36px;
    }

    .hero-copy h1 {
        font-size: 38px;
        line-height: 1.12;
    }

    .hero-copy p {
        max-width: 270px;
        font-size: 18px;
    }

    .direction-launchers {
        gap: 10px;
        margin-top: 36px;
    }

    .direction-pill {
        grid-template-columns: 42px 1fr;
        min-height: 78px;
        padding: 13px 12px;
        border-radius: 26px;
    }

    .direction-pill span {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .direction-pill strong {
        font-size: 14px;
    }

    .direction-pill small {
        font-size: 12px;
    }

    .app-progress-card {
        grid-template-columns: 1fr;
        gap: 6px;
        margin: -82px 4px 22px;
        padding: 20px;
    }

    .app-progress-card strong {
        font-size: 48px;
    }

    .quick-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin-inline: 0;
    }

    .quick-action-grid a {
        min-height: 104px;
        padding: 12px 5px;
        border-radius: 16px;
    }

    .quick-action-grid span {
        width: 38px;
        height: 38px;
        border-radius: 13px;
        font-size: 28px;
    }

    .quick-action-grid strong {
        font-size: 11px;
    }

    .next-stop-tile {
        grid-template-columns: 112px 1fr 42px;
        min-height: 132px;
        gap: 12px;
        padding: 13px;
        border-radius: 20px;
    }

    .next-stop-copy strong {
        font-size: 19px;
    }

    .next-stop-copy small {
        font-size: 13px;
    }

    .round-arrow {
        width: 42px;
        height: 42px;
        font-size: 30px;
    }

    .memory-banner {
        grid-template-columns: 106px 1fr;
        gap: 16px;
        min-height: 150px;
        padding: 18px;
    }

    .passport-book {
        width: 96px;
        height: 116px;
        font-size: 34px;
    }

    .memory-banner h2 {
        font-size: 22px;
    }

    .memory-banner p {
        font-size: 15px;
    }

    .mobile-tabbar {
        right: 8px;
        bottom: 8px;
        left: 8px;
    }

    .route-map-page .page-shell {
        padding-inline: 0;
    }

    .route-map-hero {
        padding: 34px 24px 0;
    }

    .map-top {
        margin-bottom: 26px;
    }

    .filter-button {
        min-height: 48px;
        padding: 0 14px;
        font-size: 0;
    }

    .filter-button::before {
        margin-right: 0;
    }

    .map-title-row {
        grid-template-columns: 1fr 160px;
        gap: 14px;
    }

    .map-title-row h1 {
        font-size: 38px;
    }

    .map-title-row p {
        font-size: 17px;
    }

    .map-progress-card {
        min-height: 126px;
        padding: 16px 36px 16px 16px;
        border-radius: 20px;
    }

    .map-progress-card span {
        font-size: 11px;
    }

    .map-progress-card strong {
        font-size: 42px;
    }

    .map-progress-card small {
        font-size: 14px;
    }

    .map-progress-card em {
        right: 14px;
        font-size: 34px;
    }

    .usa-map-panel {
        min-height: 760px;
        padding-top: 180px;
    }

    .usa-route-svg {
        width: 160%;
        margin: 132px -32% 0;
    }

    .map-labels text {
        font-size: 21px;
    }

    .map-floating-controls {
        right: 24px;
        bottom: 206px;
        gap: 10px;
    }

    .map-floating-controls button {
        width: 52px;
        height: 52px;
        border-radius: 18px;
        font-size: 26px;
    }

    .map-legend.floating {
        left: 18px;
        right: 84px;
        bottom: 210px;
        gap: 10px;
        justify-content: space-between;
        padding: 12px 14px;
        font-size: 13px;
    }

    .nearby-sheet {
        margin-top: -170px;
        padding: 16px 18px 24px;
        border-radius: 28px 28px 0 0;
    }

    .sheet-heading h2 {
        font-size: 25px;
    }

    .sheet-heading button,
    .nearby-radius-select {
        font-size: 15px;
    }

    .nearby-radius-select {
        gap: 6px;
    }

    .nearby-radius-select select {
        max-width: 126px;
        padding-right: 26px;
    }

    .nearby-status {
        font-size: 13px;
    }

    .map-stop-card {
        grid-template-columns: 92px 28px 1fr 42px;
        gap: 9px;
        min-height: 116px;
        padding: 12px;
        border-radius: 20px;
    }

    .stop-number {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .map-card-copy strong {
        font-size: 16px;
    }

    .map-card-copy small {
        font-size: 13px;
    }

    .map-card-copy em {
        font-size: 13px;
    }

    .achievements-page .page-shell {
        padding-inline: 0;
    }

    .achievements-screen {
        padding-inline: 14px;
    }

    .achievements-hero {
        min-height: 550px;
        margin-inline: -14px;
        padding: 34px 22px 152px;
        background-position: center 32%;
        border-radius: 0 0 28px 28px;
    }

    .achievements-copy {
        margin-top: 38px;
    }

    .achievements-copy h1 {
        font-size: 42px;
    }

    .achievements-copy p {
        max-width: 330px;
        font-size: 18px;
    }

    .help-button {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .achievement-progress-card {
        grid-template-columns: 104px 1fr 24px;
        gap: 12px;
        margin-top: -110px;
        padding: 16px;
        border-radius: 22px;
    }

    .achievement-progress-card h2 {
        font-size: 32px;
    }

    .achievement-progress-card > div > strong {
        margin-bottom: 12px;
        font-size: 15px;
    }

    .achievement-progress-card > a {
        font-size: 34px;
    }

    .achievement-emblem {
        width: 92px;
        height: 92px;
        border-width: 4px;
        border-radius: 24px;
    }

    .achievement-emblem span {
        font-size: 10px;
    }

    .achievement-emblem strong {
        font-size: 31px;
    }

    .achievement-emblem em {
        min-width: 82px;
        font-size: 10px;
    }

    .achievement-emblem.small {
        width: 94px;
        height: 94px;
    }

    .achievement-tabs {
        margin-bottom: 24px;
        padding: 8px;
        border-radius: 20px;
    }

    .achievement-tabs a {
        min-height: 54px;
        gap: 5px;
        padding: 6px;
        font-size: 11px;
    }

    .achievement-tabs span {
        font-size: 20px;
    }

    .earned-achievement-grid,
    .locked-achievement-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .earned-achievement-card,
    .locked-achievement-card {
        min-height: 194px;
        padding: 10px 7px;
        border-radius: 15px;
    }

    .earned-achievement-card h3,
    .locked-achievement-card h3 {
        font-size: 11px;
        line-height: 1.18;
    }

    .earned-achievement-card p {
        font-size: 11px;
        line-height: 1.32;
    }

    .earned-achievement-card time {
        margin-top: 8px;
        font-size: 11px;
    }

    .earned-achievement-card .achievement-emblem.small,
    .locked-achievement-card .achievement-emblem.small {
        width: 62px;
        height: 62px;
        margin-bottom: 10px;
        border-width: 3px;
        border-radius: 17px;
    }

    .earned-achievement-card .achievement-emblem.small span,
    .locked-achievement-card .achievement-emblem.small span {
        font-size: 7px;
    }

    .earned-achievement-card .achievement-emblem.small strong,
    .locked-achievement-card .achievement-emblem.small strong {
        font-size: 20px;
    }

    .earned-achievement-card .achievement-emblem.small em,
    .locked-achievement-card .achievement-emblem.small em {
        min-width: 54px;
        padding: 3px 4px;
        font-size: 7px;
    }

    .locked-achievement-card > span {
        top: 50px;
        width: 32px;
        height: 32px;
    }

    .progress-achievement-card {
        grid-template-columns: 76px 1fr;
        gap: 12px;
        padding: 14px;
    }

    .progress-achievement-card > span {
        grid-column: 2;
        text-align: left;
    }

    .achievement-emblem.mini {
        width: 72px;
        height: 72px;
    }

    .progress-achievement-card h3 {
        font-size: 18px;
    }

    .progress-achievement-card p {
        font-size: 14px;
    }

    .vault-page .page-shell {
        padding-inline: 0;
    }

    .vault-screen {
        padding-inline: 14px;
    }

    .vault-hero {
        min-height: 500px;
        margin-inline: -14px;
        padding: 34px 22px 142px;
        background-position: center 32%;
        border-radius: 0 0 28px 28px;
    }

    .vault-copy {
        margin-top: 38px;
    }

    .vault-copy h1 {
        font-size: 44px;
    }

    .vault-copy p {
        max-width: 300px;
        font-size: 17px;
    }

    .vault-progress-card {
        grid-template-columns: 104px 1fr 24px;
        gap: 12px;
        margin-top: -104px;
        padding: 16px;
        border-radius: 22px;
    }

    .vault-progress-card h2 {
        font-size: 32px;
    }

    .vault-progress-card > div > strong {
        margin-bottom: 12px;
        font-size: 15px;
    }

    .vault-progress-card > a {
        font-size: 34px;
    }

    .vault-filter-tabs {
        gap: 8px;
        padding: 10px;
        border-radius: 20px;
    }

    .vault-filter-tabs a {
        min-height: 46px;
        gap: 5px;
        font-size: 12px;
    }

    .vault-filter-tabs span {
        font-size: 18px;
    }

    .vault-memory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    .passport-collection {
        gap: 14px;
        margin-bottom: 22px;
    }

    .passport-collection-heading {
        align-items: start;
    }

    .passport-collection-heading h2 {
        font-size: 30px;
    }

    .passport-collection-heading > span {
        padding: 8px 10px;
        font-size: 12px;
    }

    .passport-spread {
        min-height: 0;
        padding: 16px;
    }

    .passport-page-meta {
        align-items: start;
    }

    .passport-page-meta span,
    .passport-page-meta em {
        font-size: 10px;
    }

    .passport-page-meta strong {
        font-size: 24px;
    }

    .passport-stamp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .passport-stamp-sticker {
        min-height: 132px;
        padding: 11px;
        transform: none;
    }

    .passport-stamp-seal {
        width: 56px;
        height: 56px;
        border-width: 3px;
    }

    .passport-stamp-seal strong {
        font-size: 21px;
    }

    .passport-stamp-copy {
        max-width: calc(100% - 42px);
    }

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

    .passport-stamp-overlay {
        font-size: 10px;
    }

    .memory-card,
    .keep-collecting-card {
        min-height: 230px;
        border-radius: 15px;
    }

    .memory-photo span {
        width: 34px;
        height: 34px;
        border-width: 3px;
        font-size: 18px;
    }

    .memory-card div {
        padding: 10px;
    }

    .memory-card h2 {
        font-size: 12px;
        line-height: 1.18;
    }

    .memory-card p,
    .memory-card time,
    .memory-card em,
    .memory-weather {
        font-size: 10px;
    }

    .keep-collecting-card {
        padding: 14px;
    }

    .keep-collecting-card h2 {
        font-size: 15px;
    }

    .keep-collecting-card p {
        font-size: 12px;
    }

    .vault-reel-card {
        grid-template-columns: 1fr;
        min-height: 180px;
        padding: 20px;
    }

    .vault-reel-card h2 {
        font-size: 24px;
    }

    .vault-reel-card p {
        font-size: 15px;
    }

    .vault-reel-card a {
        width: fit-content;
        min-height: 48px;
    }

    .profile-page .page-shell {
        padding-inline: 0;
    }

    .settings-screen {
        padding-inline: 14px;
    }

    .settings-hero {
        min-height: 430px;
        margin-inline: -14px;
        padding: 34px 22px 132px;
        background-position: center 32%;
        border-radius: 0 0 28px 28px;
    }

    .settings-hero-copy {
        max-width: 280px;
        margin-top: 20px;
    }

    .settings-hero-copy h1 {
        font-size: 36px;
    }

    .settings-hero-copy p {
        font-size: 16px;
    }

    .settings-profile-card {
        grid-template-columns: 70px 1fr 24px;
        gap: 12px;
        min-height: 96px;
        margin-top: -82px;
        padding: 14px 18px;
        border-radius: 20px;
    }

    .settings-avatar {
        width: 58px;
        height: 58px;
        font-size: 23px;
    }

    .settings-profile-card > span {
        font-size: 34px;
    }

    .settings-form {
        gap: 18px;
    }

    .settings-card {
        border-radius: 20px;
    }

    .settings-row {
        grid-template-columns: 48px 1fr auto;
        gap: 12px;
        min-height: 76px;
        padding: 13px 16px 13px 14px;
    }

    .settings-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .settings-row input:not([type="checkbox"]),
    .settings-row select {
        grid-column: 2 / -1;
        width: 100%;
        margin-top: 8px;
    }

    .settings-switch,
    .settings-row em,
    .social-login-action {
        grid-column: 3;
        grid-row: 1;
    }

    .settings-switch {
        width: 46px;
        height: 28px;
    }

    .settings-switch::after {
        width: 22px;
        height: 22px;
    }

    .settings-switch-input:checked + .settings-switch::after {
        transform: translateX(18px);
    }

    .settings-save {
        min-height: 56px;
        border-radius: 16px;
    }

    .settings-signout {
        min-height: 54px;
        border-radius: 16px;
    }

    .signout-modal,
    .account-delete-modal {
        padding: 18px;
    }

    .signout-modal-panel,
    .account-delete-modal-panel {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .signout-modal-panel h2,
    .account-delete-modal-panel h2 {
        font-size: 24px;
    }

    .signout-modal-actions,
    .account-delete-modal-actions {
        grid-template-columns: 1fr;
    }

    .login-page .page-shell {
        padding-inline: 0;
    }

    .login-hero {
        min-height: 500px;
        padding: 70px 18px 168px;
        background-position: center 38%;
        border-radius: 0 0 30px 30px;
    }

    .login-logo strong {
        width: 118px;
        height: 86px;
        border-width: 7px;
        font-size: 58px;
        border-radius: 30px 30px 36px 36px;
    }

    .login-card {
        width: calc(100% - 28px);
        margin-top: -112px;
        padding: 30px 22px;
        border-radius: 28px;
    }

    .login-card h1 {
        font-size: 40px;
    }

    .login-card > p {
        margin-bottom: 26px;
        font-size: 18px;
    }

    .login-form {
        gap: 18px;
    }

    .login-input {
        grid-template-columns: 42px 1fr 32px;
        min-height: 64px;
        padding: 0 14px;
        border-radius: 15px;
    }

    .login-input i,
    .login-input em {
        font-size: 23px;
    }

    .login-submit,
    .login-register {
        min-height: 62px;
    }

    .login-submit {
        grid-template-columns: 54px 1fr 54px;
    }

    .login-submit span {
        width: 34px;
        height: 34px;
        margin-left: 18px;
        border-radius: 10px;
        font-size: 13px;
    }

    .login-register {
        grid-template-columns: 56px 1fr 56px;
        border-width: 2px;
    }

    .login-register span {
        font-size: 26px;
    }

    .login-divider {
        margin: 24px 0;
    }

    .login-socials {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .login-socials .login-social-button--google,
    .login-socials .login-social-button--apple {
        height: 58px;
    }

    .login-socials .login-social-button--google img,
    .login-socials .login-social-button--apple img {
        max-height: none;
    }

    .side-menu {
        width: min(86vw, 330px);
        padding: 28px 18px;
        border-radius: 0 28px 28px 0;
    }

    .side-menu-avatar {
        width: 86px;
        height: 86px;
    }

    .side-menu-nav a,
    .side-menu-logout {
        min-height: 49px;
        font-size: 16px;
    }

    .simple-app-screen {
        padding-inline: 14px;
    }

    .simple-hero {
        min-height: 360px;
        margin-inline: -14px;
        padding: 34px 22px 104px;
        border-radius: 0 0 28px 28px;
    }

    .simple-hero-copy {
        margin-top: 44px;
    }

    .simple-hero h1 {
        font-size: 38px;
    }

    .simple-hero p {
        font-size: 17px;
    }

    .simple-progress-card,
    .friends-card-grid,
    .help-quick-grid {
        margin-top: -56px;
    }

    .simple-progress-card {
        grid-template-columns: 68px 1fr 32px;
        gap: 12px;
        padding: 16px;
        border-radius: 20px;
    }

    .simple-progress-card > span {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .simple-progress-card h2 {
        font-size: 22px;
    }

    .simple-progress-card p {
        font-size: 14px;
    }

    .friends-card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .help-quick-grid,
    .help-support-card,
    .help-faq-list {
        grid-template-columns: 1fr;
    }

    .help-quick-grid a {
        min-height: 0;
    }

    .friends-panel {
        padding: 16px;
        border-radius: 18px;
    }

    .friends-section-heading,
    .friend-search-form,
    .friend-row {
        grid-template-columns: 1fr;
    }

    .friends-section-heading,
    .friend-row {
        align-items: start;
    }

    .friends-section-heading {
        flex-direction: column;
    }

    .friend-actions {
        justify-content: flex-start;
    }

    .leaderboard-opt-in {
        display: grid;
    }

    .leaderboard-row {
        grid-template-columns: 38px 1fr;
    }

    .leaderboard-row em,
    .leaderboard-row a {
        grid-column: 2;
    }

    .stop-detail-page .page-shell {
        padding-inline: 0;
    }

    .stop-detail-screen {
        padding-inline: 14px;
    }

    .stop-detail-hero {
        min-height: 500px;
        margin-inline: -14px;
        padding: 42px 22px 132px;
        border-radius: 0 0 28px 28px;
    }

    .stop-detail-copy {
        margin-top: 150px;
    }

    .stop-action-card {
        grid-template-columns: repeat(4, 1fr);
        margin-top: -58px;
        padding: 14px 8px;
        border-radius: 20px;
    }

    .stop-action-card a,
    .stop-action-card button {
        min-height: 96px;
        padding-inline: 4px;
    }

    .stop-action-card span {
        font-size: 28px;
    }

    .stop-info-card,
    .stop-detail-grid,
    .stop-journal-card {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .stop-info-card article,
    .stop-journal-card article,
    .stop-stamp-card,
    .stop-photos-card {
        padding: 18px;
    }

    .stop-info-card article + article,
    .stop-journal-card article + article {
        border-top: 1px solid rgba(24, 32, 43, 0.1);
        border-left: 0;
    }

    .stop-stamp-card {
        grid-template-columns: 112px 1fr;
    }

    .route-stamp {
        width: 104px;
        height: 104px;
        border-width: 5px;
    }

    .route-stamp strong {
        font-size: 38px;
    }

    .route-stamp span {
        font-size: 12px;
    }

    .nearby-stop-strip {
        padding: 18px;
        border-radius: 20px;
    }

    .nearby-stop-strip > div:last-child {
        grid-template-columns: 1fr;
    }

    .stop-badge-callout {
        grid-template-columns: 84px 1fr;
        gap: 14px;
        padding: 18px;
        border-radius: 20px;
    }

    .stop-badge-callout > span {
        grid-column: 2;
    }

    .register-page .page-shell {
        padding-inline: 0;
    }

    .register-hero {
        min-height: 560px;
        padding: 70px 18px 154px;
        background-position: center 32%;
        border-radius: 0 0 30px 30px;
    }

    .register-back {
        top: 58px;
        left: 18px;
        width: 42px;
        height: 42px;
        font-size: 48px;
    }

    .register-logo strong {
        width: 84px;
        height: 62px;
        border-width: 6px;
        border-radius: 24px 24px 30px 30px;
        font-size: 40px;
    }

    .register-copy {
        margin-top: 22px;
    }

    .register-copy h1 {
        font-size: 34px;
    }

    .register-copy p {
        font-size: 18px;
    }

    .register-benefits {
        gap: 10px;
        margin-top: 34px;
    }

    .register-benefits span {
        width: 56px;
        height: 56px;
        font-size: 26px;
    }

    .register-benefits strong {
        font-size: 13px;
    }

    .register-benefits small {
        font-size: 11px;
    }

    .register-card {
        margin-top: -62px;
        padding: 30px 22px;
        border-radius: 30px 30px 0 0;
    }

    .register-form {
        gap: 18px;
    }

    .register-two {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .register-two label,
    .register-field {
        min-height: 62px;
        padding: 0 14px;
        border-radius: 14px;
    }

    .register-checks {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .register-submit {
        grid-template-columns: 58px 1fr 58px;
        min-height: 62px;
    }

    .register-submit span {
        width: 34px;
        height: 34px;
        margin-left: 18px;
        border-radius: 10px;
        font-size: 13px;
    }

    .landing h1,
    .page-intro h1,
    .dashboard-hero h1,
    .stop-hero h1,
    .auth-card h1 {
        font-size: 42px;
    }
}

@media (max-width: 720px) {
    .journal-page .page-shell {
        padding-inline: 0;
    }

    .journal-screen {
        padding-inline: 14px;
    }

    .journal-hero {
        min-height: 430px;
        margin-inline: -14px;
        padding: 42px 18px 118px;
        border-radius: 0 0 28px 28px;
    }

    .journal-add {
        width: 42px;
        height: 42px;
    }

    .journal-hero-copy {
        max-width: 270px;
        margin-top: 48px;
    }

    .journal-category-rail {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        margin-top: -58px;
        padding: 16px 8px;
        border-radius: 20px;
    }

    .journal-category-rail a {
        gap: 8px;
        font-size: 12px;
    }

    .journal-category-rail span {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .journal-searchbar {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    .journey-stats-card {
        padding: 20px 14px;
        border-radius: 20px;
    }

    .journey-stats-heading {
        display: grid;
    }

    .journey-stats-heading > span {
        justify-self: start;
    }

    .journey-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .journey-stat-grid article {
        min-height: 136px;
        padding: 14px;
    }

    .journal-searchbar label,
    .journal-searchbar button {
        min-height: 52px;
        border-radius: 14px;
    }

    .journal-searchbar label {
        padding-inline: 14px;
    }

    .journal-searchbar button {
        padding-inline: 14px;
    }

    .journal-searchbar input,
    .journal-searchbar button {
        font-size: 15px;
    }

    .journal-entry-card {
        grid-template-columns: 34% 1fr;
        min-height: 216px;
        border-radius: 16px;
    }

    .journal-entry-image img {
        min-height: 216px;
    }

    .journal-entry-body {
        padding: 16px;
    }

    .journal-entry-meta time,
    .journal-entry-body p,
    .journal-entry-footer strong {
        font-size: 13px;
    }

    .journal-entry-body h2 {
        font-size: 21px;
    }

    .journal-entry-footer {
        align-items: end;
    }

    .journal-entry-footer span {
        padding: 5px 9px;
        font-size: 12px;
    }
}

@media (max-width: 460px) {
    .journey-stat-grid {
        grid-template-columns: 1fr;
    }

    .journal-entry-card {
        grid-template-columns: 1fr;
    }

    .journal-entry-image img {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .timeline-heading {
        display: grid;
    }

    .timeline-heading > span {
        width: fit-content;
    }

    .trip-timeline-list::before {
        left: 32px;
    }

    .trip-timeline-item {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 12px;
    }

    .timeline-photo {
        width: 68px;
        border-radius: 15px;
    }

    .trip-timeline-item > strong {
        position: absolute;
        top: 8px;
        left: 8px;
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
}
