/* Reisapp — mobile-first styles. No build step; keep it lean. */

:root {
    --bg: #f6f5f1;
    --surface: #ffffff;
    --surface-2: #f1efe9;
    --text: #1b2120;
    --muted: #68726e;
    --line: #e4e1d8;
    --accent: #0f766e;
    --accent-strong: #0b5f58;
    --accent-ink: #ffffff;
    --accent-soft: #e0f0ed;
    --danger: #b42318;
    --live: #16a34a;
    --warn: #d97706;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgb(16 24 22 / .04), 0 8px 24px rgb(16 24 22 / .06);
    --shadow-lg: 0 24px 60px rgb(16 24 22 / .22);
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    --tabbar-h: 64px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #101413;
        --surface: #181e1c;
        --surface-2: #1f2724;
        --text: #e9eeeb;
        --muted: #98a39e;
        --line: #2a3330;
        --accent: #2fb5a5;
        --accent-strong: #4cc9ba;
        --accent-ink: #04201c;
        --accent-soft: #15322e;
        --danger: #f97066;
        --live: #4ade80;
        --warn: #fbbf24;
        --shadow: 0 1px 2px rgb(0 0 0 / .3);
        --shadow-lg: 0 24px 60px rgb(0 0 0 / .6);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #101413;
    --surface: #181e1c;
    --surface-2: #1f2724;
    --text: #e9eeeb;
    --muted: #98a39e;
    --line: #2a3330;
    --accent: #2fb5a5;
    --accent-strong: #4cc9ba;
    --accent-ink: #04201c;
    --accent-soft: #15322e;
    --danger: #f97066;
    --live: #4ade80;
    --warn: #fbbf24;
    --shadow: 0 1px 2px rgb(0 0 0 / .3);
    --shadow-lg: 0 24px 60px rgb(0 0 0 / .6);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[x-cloak] { display: none !important; }

html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 var(--font);
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 2px; }

h1, h2 { line-height: 1.2; margin: 0 0 .25rem; letter-spacing: -.015em; }
h1 { font-size: 1.75rem; font-weight: 750; }
h2 { font-size: 1.12rem; font-weight: 700; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.lead { font-size: 1.05rem; margin: 0 0 1rem; }
.grow { flex: 1; min-width: 0; }

svg { flex: none; }
.icon-inline { width: 14px; height: 14px; fill: currentColor; vertical-align: -2px; margin-right: 2px; }

/* ── Top bar ─────────────────────────────────────────── */
.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; gap: 1rem;
    min-height: 56px;
    padding: .5rem 1rem;
    padding-top: max(.5rem, env(safe-area-inset-top));
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(1.6) blur(14px);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.brand {
    display: inline-flex; align-items: center; gap: .45rem;
    font-weight: 750; font-size: 1.05rem; letter-spacing: -.01em;
    color: var(--text); text-decoration: none; margin-right: auto;
}
.brand svg { width: 24px; height: 24px; fill: var(--accent); }

.topnav { display: flex; align-items: center; gap: .15rem; }
.topnav a {
    padding: .45rem .8rem; border-radius: 999px;
    color: var(--muted); text-decoration: none; font-weight: 550; font-size: .95rem;
    transition: color .15s, background .15s;
}
.topnav a:hover { color: var(--text); }
.topnav a.active { color: var(--text); background: var(--surface-2); }
.lang-pick select {
    appearance: none; -webkit-appearance: none; cursor: pointer;
    padding: .45rem 2rem .45rem .9rem; border-radius: 999px; border: 1px solid var(--line);
    background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23888'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right .6rem center / 1.1rem;
    color: var(--text); font: inherit; font-weight: 550; font-size: .92rem;
}

.topbar-user { display: flex; align-items: center; gap: .75rem; }
.topbar-user form { margin: 0; }

.linklike { background: none; border: 0; cursor: pointer; font: inherit; padding: .4rem 0; }

@media (max-width: 1023px) { .wide-only { display: none !important; } }
@media (min-width: 1024px) { .narrow-only { display: none !important; } }
.desktop-only { display: none !important; }
@media (min-width: 768px) {
    .desktop-only { display: flex !important; }
}

/* ── Bottom tab bar (mobile) ─────────────────────────── */
.tabbar {
    position: fixed; inset: auto 0 0 0; z-index: 20;
    display: grid; grid-template-columns: repeat(3, 1fr);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(1.6) blur(16px);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    border-top: 1px solid var(--line);
}
.tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600;
}
.tabbar svg { width: 24px; height: 24px; fill: currentColor; transition: transform .2s var(--ease); }
.tabbar a.active { color: var(--accent); }
.tabbar a:active svg { transform: scale(.88); }
@media (min-width: 768px) { .tabbar { display: none; } }

/* ── Layout ──────────────────────────────────────────── */
.container {
    width: 100%; max-width: 780px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.5rem;
    animation: page-in .28s var(--ease);
}
.has-tabbar .container { padding-bottom: calc(var(--tabbar-h) + 2rem + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
    .container { padding-top: 2rem; }
    .has-tabbar .container { padding-bottom: 3rem; }
}
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .container { animation: none; } }

.page-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
    margin-bottom: 1.25rem;
}
.page-head p { margin: .3rem 0 0; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.section-head h2 { margin: 0; }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.15rem;
    margin-bottom: 1rem;
}
.card > p:first-of-type { margin-top: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-foot { padding: .9rem 1.15rem; border-top: 1px solid var(--line); }

.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack > h2 { margin: 0; }

.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }

/* Stats row */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.stat-label { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat-value { display: block; font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }

/* ── Flash ───────────────────────────────────────────── */
.flash {
    display: flex; align-items: center; gap: .6rem;
    background: var(--accent-soft); color: var(--text);
    border-radius: var(--radius-sm); padding: .75rem 1rem; margin-bottom: 1rem;
    font-weight: 550;
    transition: opacity .4s, transform .4s, max-height .4s, margin .4s, padding .4s;
    max-height: 120px; overflow: hidden;
}
.flash::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none;
}
.flash.hide { opacity: 0; transform: translateY(-6px); max-height: 0; margin: 0; padding-block: 0; }

/* ── Forms ───────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: .35rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 650; font-size: .92rem; padding: 0; }
.field em { font-weight: 400; font-style: normal; }
.field output { font-weight: 500; color: var(--muted); }

input[type=text], input[type=email], input[type=password], input[type=date],
input[type=number], input[type=tel], input[type=url], input[type=search], select, textarea {
    width: 100%;
    font: inherit; color: var(--text);
    background: var(--surface-2);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: .7rem .85rem;
    min-height: 48px;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: var(--line); }
input:focus, select:focus, textarea:focus {
    outline: none; background: var(--surface); border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
textarea { resize: vertical; }
input[type=range] { width: 100%; accent-color: var(--accent); min-height: 32px; }

button:focus-visible, a:focus-visible, .check input:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px;
}

.check { display: flex; align-items: center; gap: .6rem; cursor: pointer; padding: .2rem 0; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; flex: none; }

.hint { color: var(--muted); margin: .25rem 0 0; }
.error { color: var(--danger); font-weight: 550; }

.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin-top: 1rem; }
.inline-form .field.grow { flex: 1 1 180px; }
.inline-form .field.tid { width: 84px; }
.inline-form .field.tid input { text-transform: uppercase; text-align: center; font-weight: 700; letter-spacing: .08em; }
.inline-form .btn { flex: 1 1 100%; }
@media (min-width: 560px) { .inline-form .btn { flex: 0 0 auto; } }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    min-height: 48px; padding: .6rem 1.2rem;
    border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-weight: 650; text-decoration: none; white-space: nowrap;
    cursor: pointer; user-select: none;
    transition: background .15s, transform .12s var(--ease), box-shadow .15s, border-color .15s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn.primary:hover { background: var(--accent-strong); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.danger { background: transparent; color: var(--danger); border-color: currentColor; }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: .35rem .85rem; font-size: .88rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }

.icon-btn {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    border: 0; background: transparent; color: var(--muted); cursor: pointer;
    transition: background .15s, color .15s;
}
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ── Badges, avatars, status ─────────────────────────── */
.badge {
    display: inline-block; padding: .15rem .6rem;
    border-radius: 999px; font-size: .76rem; font-weight: 650;
    background: var(--surface-2); color: var(--muted);
    vertical-align: middle; white-space: nowrap;
}
.badge.live { background: color-mix(in srgb, var(--live) 16%, transparent); color: var(--live); }
.badge.live::before {
    content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; margin-right: 5px; vertical-align: 1px;
    animation: pulse 1.8s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

.avatar {
    --c: var(--accent);
    display: inline-grid; place-items: center; flex: none;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--c); color: #fff; text-decoration: none;
    font-weight: 750; font-size: .9rem; letter-spacing: .02em;
    box-shadow: inset 0 0 0 2px rgb(255 255 255 / .18);
}
.avatar.sm { width: 32px; height: 32px; font-size: .74rem; }

.status-dot {
    position: absolute; right: -2px; bottom: -2px;
    width: 14px; height: 14px; border-radius: 50%;
    border: 3px solid var(--surface); background: var(--muted);
}
.status-dot.live { background: var(--live); }
.status-dot.recent { background: var(--warn); }
.status-dot.never { background: var(--line); }

/* ── Auth ────────────────────────────────────────────── */
.auth { max-width: 420px; margin: 1.5rem auto 0; }
.auth .card { padding: 1.6rem; }
.auth h1 { margin-bottom: .3rem; }
.auth .card > .muted { margin: 0 0 1.4rem; }
@media (min-width: 768px) { .auth { margin-top: 3rem; } }

/* ── Trips ───────────────────────────────────────────── */
.trip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.trip-list .card { margin: 0; }
.trip-card {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
    color: inherit; text-decoration: none;
    transition: border-color .15s, transform .15s var(--ease), box-shadow .15s;
}
.trip-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.trip-card:active { transform: scale(.99); }
.trip-card h2 { font-size: 1.15rem; }
.trip-card p { margin: .15rem 0 0; }
.trip-card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }

.empty, .map-placeholder { text-align: center; padding: 2.25rem 1.25rem; }
.empty svg, .map-placeholder svg { width: 48px; height: 48px; fill: var(--accent); opacity: .5; }
.empty h2 { margin-top: .5rem; }
.empty p { margin: .25rem auto 1.25rem; max-width: 34ch; }
.map-placeholder { min-height: 200px; display: grid; place-content: center; justify-items: center; }
.map-placeholder p { margin: .5rem 0 0; }

.member-list, .device-list, .zone-list { list-style: none; margin: .5rem 0 0; padding: 0; }
.member-list li, .device-list li, .zone-list li {
    display: flex; align-items: center; gap: .8rem;
    padding: .7rem 0; border-top: 1px solid var(--line);
}
.member-list li:first-child, .device-list li:first-child, .zone-list li:first-child { border-top: 0; }
/* Books and designs: on a phone the buttons go on their own line under the date */
.book-exports .member-list li { flex-wrap: wrap; row-gap: .55rem; }
.book-exports .member-list li .member-name { flex: 1 1 calc(100% - 4.5rem); }
@media (min-width: 700px) { .book-exports .member-list li .member-name { flex: 1 1 0; } }
/* Designs: name, (edit) and the bin on one line, also on a phone */
.book-exports .design-list li { flex-wrap: nowrap; }
.book-exports .design-list li .member-name { flex: 1 1 0; min-width: 0; }
.member-name { flex: 1; min-width: 0; font-weight: 600; }
.member-name em { font-style: normal; font-weight: 400; }

/* ── Devices & zones ─────────────────────────────────── */
.device-badge {
    --c: var(--accent);
    position: relative; flex: none;
    display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 14px;
    background: color-mix(in srgb, var(--c) 16%, var(--surface));
    color: var(--c); font-weight: 800; letter-spacing: .04em;
}
.device-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.device-info strong, .zone-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-actions { display: flex; align-items: center; gap: .25rem; }
.zone-list .grow { display: flex; flex-direction: column; }
.zone-icon {
    display: grid; place-items: center; flex: none;
    width: 40px; height: 40px; border-radius: 12px;
    background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger);
}
.zone-icon svg { width: 20px; height: 20px; fill: currentColor; }
.zone-form { margin-top: 1rem; }

/* ── Maps ────────────────────────────────────────────── */
.map { position: relative; background: var(--surface-2); isolation: isolate; }
.map-canvas, .map .map-canvas.maplibregl-map { position: absolute; inset: 0; } /* MapLibre's own CSS sets position: relative */
.map-md { height: 260px; }
.map-sm { height: 240px; border-radius: var(--radius-sm); overflow: hidden; margin-top: .75rem; }
@media (min-width: 768px) { .map-md { height: 340px; } .map-sm { height: 300px; } }
.leaflet-container { font: inherit; background: var(--surface-2); }
.leaflet-control-zoom a { color: var(--text) !important; }
.leaflet-bar { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 12px !important; overflow: hidden; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9) saturate(.6); }
    :root:not([data-theme="light"]) .leaflet-control-zoom a, :root:not([data-theme="light"]) .leaflet-control-attribution { background: var(--surface) !important; }
}
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9) saturate(.6); }
:root[data-theme="dark"] .leaflet-control-zoom a, :root[data-theme="dark"] .leaflet-control-attribution { background: var(--surface) !important; }

.map-overlay-btn {
    position: absolute; z-index: 500; top: .6rem; left: .6rem;
    display: inline-flex; align-items: center; gap: .4rem;
    min-height: 38px; padding: .35rem .8rem;
    background: var(--surface); color: var(--text);
    border: 0; border-radius: 999px; box-shadow: var(--shadow);
    font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer;
}
.map-overlay-btn svg { width: 18px; height: 18px; fill: var(--accent); }

/* ── Bottom sheet / modal ────────────────────────────── */
.sheet-backdrop {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: flex-end; justify-content: center;
    background: rgb(8 12 11 / .5);
    backdrop-filter: blur(3px);
    animation: fade-in .2s ease;
}
.sheet {
    position: relative;
    width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto;
    background: var(--surface);
    border-radius: 24px 24px 0 0;
    padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
    box-shadow: var(--shadow-lg);
    animation: sheet-up .32s var(--ease);
}
.sheet::before {
    content: ""; display: block; width: 40px; height: 5px; border-radius: 3px;
    background: var(--line); margin: -.6rem auto 1rem;
}
.sheet h2 { font-size: 1.3rem; padding-right: 2.5rem; }
.sheet-close { position: absolute; top: .75rem; right: .75rem; }
@media (min-width: 768px) {
    .sheet-backdrop { align-items: center; }
    .sheet { border-radius: 24px; }
    .sheet::before { display: none; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }

.steps { list-style: none; counter-reset: step; margin: 1rem 0; padding: 0; display: grid; gap: 1.1rem; }
.steps li {
    counter-increment: step; position: relative;
    display: flex; flex-direction: column; gap: .35rem;
    padding-left: 2.6rem;
}
.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: -.1rem;
    display: grid; place-items: center;
    width: 1.9rem; height: 1.9rem; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .9rem;
}
.steps .btn.block { margin-top: .35rem; }
.store-links { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .2rem; }
.steps details summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .9rem; margin-top: .4rem; }

.qr {
    background: #fff; border-radius: var(--radius-sm); padding: .5rem;
    width: min(100%, 300px); margin-top: .4rem;
    border: 1px solid var(--line);
}
.qr svg { display: block; width: 100%; height: auto; }

/* Show the one-tap button on phones, the QR code on computers */
.only-pointer { display: none; }
@media (hover: hover) and (pointer: fine) {
    .only-touch { display: none !important; }
    .only-pointer { display: block; }
    span.only-pointer { display: inline; }
}

.connect-state {
    display: flex; align-items: center; gap: .75rem;
    padding: .9rem 1rem; border-radius: var(--radius-sm);
    background: var(--surface-2); font-weight: 600;
}
.connect-state small { display: block; font-weight: 400; margin-top: .15rem; }
.connect-state.ok { background: color-mix(in srgb, var(--live) 14%, var(--surface)); color: var(--live); }
.connect-state.ok svg { width: 24px; height: 24px; fill: currentColor; }

.preview-note { margin: .4rem 0 .6rem; padding: 10px 14px; border-radius: 12px; font-size: .88rem; color: var(--muted);
    background: color-mix(in srgb, #f59e0b 9%, var(--surface)); border: 1px solid color-mix(in srgb, #f59e0b 30%, transparent); }
.preview-compare { margin: .7rem 0 0; }
.preview-compare img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--line); }
.preview-compare figcaption { display: grid; grid-template-columns: .55fr 1fr 1fr; gap: 10px; margin-top: 6px; font-weight: 600; color: var(--text); font-size: .85rem; text-align: center; }
.preview-compare p { margin: 4px 0 0; text-align: center; }
.preview-note strong { display: block; color: var(--text); margin-bottom: 2px; }
.app-track-notrip { display: grid; gap: 8px; justify-items: start; margin: 10px 0; padding: 12px 14px; border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.app-track-notrip p { margin: 0; font-size: .92rem; }
.import-next { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.import-next p { margin: 4px 0 8px; }
.import-next ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 4px; font-weight: 600; }
.import-step-optional { border-style: dashed; }
.help-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }
.help-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: .7rem; }
.help-steps li span { display: block; color: var(--muted); font-size: .94rem; margin-top: 2px; }
.help-steps li::marker { color: var(--accent); font-weight: 800; }
.help-trips ul { margin: .4rem 0 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
.help-trips li a { font-weight: 600; margin-right: 6px; }
.help-link { margin-top: 1.5rem; }
.notice-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 14px; border-radius: 99px; font-size: .88rem; font-weight: 600;
    background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); color: var(--text); text-decoration: none; }
.notice-pill.quiet { background: var(--surface); border-color: var(--line); margin-right: 6px; }
.on-trip-badge { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: 2px 8px 2px 7px; border-radius: 99px; font-size: .72rem; font-weight: 700;
    background: color-mix(in srgb, var(--live) 14%, var(--surface)); color: var(--live); vertical-align: 1px; }
.on-trip-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: live-pulse 1.8s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
.avatar.is-travelling { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--live); }
.person-trips { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: 8px; }
.person-trips a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.person-trips a:hover { border-color: var(--accent); }
.person-trip-cover { flex: none; width: 56px; height: 56px; border-radius: 10px; background: var(--surface-2) center / cover no-repeat; }
.person-trips .grow { min-width: 0; }
.notice-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.notice-go { color: var(--accent); }
.join-card { display: grid; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.join-card:first-of-type { border-top: 0; }
.join-who { display: flex; gap: 12px; align-items: flex-start; }
.join-who .grow { min-width: 0; }
.join-buddy { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 99px; font-size: .74rem; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.join-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 52px; }
.tabbar a { position: relative; }
.tab-dot { position: absolute; top: 6px; left: calc(50% + 6px); width: 9px; height: 9px; border-radius: 50%; background: #e5484d; border: 2px solid var(--surface); }
.verify-banner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 1rem; padding: 10px 14px; border-radius: 12px; font-size: .9rem;
    background: color-mix(in srgb, #f59e0b 10%, var(--surface)); border: 1px solid color-mix(in srgb, #f59e0b 30%, transparent); }
.book-busy { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); margin-bottom: 12px; }
.book-busy .spinner { margin-top: 2px; }
.clip-busy-note { color: inherit; text-decoration: none; }
.book-busy strong { display: block; }
.book-busy p { margin: .2rem 0 0; font-size: .9rem; color: var(--muted); }
.busy-pill {
    position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 9999;
    display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px;
    background: var(--surface, #fff); color: var(--text, #13201d); font-weight: 600; font-size: .92rem;
    box-shadow: 0 10px 30px rgb(0 0 0 / .18), 0 0 0 1px var(--line, #e3e7e5);
    opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s, transform .2s;
}
.busy-pill.on { opacity: 1; transform: translate(-50%, 0); }
.busy-spin {
    width: 20px; height: 20px; border-radius: 50%; flex: none;
    border: 3px solid var(--line, #e3e7e5); border-top-color: var(--accent, #0f766e);
    animation: spin .8s linear infinite;
}
html.is-busy, html.is-busy * { cursor: progress; }
.spinner {
    width: 20px; height: 20px; flex: none; border-radius: 50%;
    border: 3px solid var(--line); border-top-color: var(--accent);
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Colour swatches ─────────────────────────────────── */
.swatches { display: flex; flex-wrap: wrap; gap: .65rem; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.swatch span {
    display: block; width: 38px; height: 38px; border-radius: 50%;
    background: var(--c); border: 3px solid var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    transition: transform .15s var(--ease), box-shadow .15s;
}
.swatch input:checked + span { box-shadow: 0 0 0 2px var(--text); transform: scale(1.08); }
.swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.danger-zone h2 { color: var(--danger); }
.danger-zone p { margin: .25rem 0 1rem; }

.logout-row { margin-top: 1.5rem; }
@media (min-width: 768px) { .logout-row { display: none; } }

.add-more { margin-top: .75rem; }


/* ── Trip map ────────────────────────────────────────── */
.trip-map-card { position: relative; }
.map-trip { height: min(58vh, 560px); min-height: 320px; }
.map-overlay-btn.right { left: auto; right: .6rem; padding: .35rem; width: 40px; justify-content: center; }
.map-overlay-btn.right svg { fill: var(--text); }

.trip-map-card.is-full {
    position: fixed; inset: 0; z-index: 90; margin: 0;
    border-radius: 0; border: 0; display: flex; flex-direction: column;
    padding-top: env(safe-area-inset-top);
}
.trip-map-card.is-full .map-trip { flex: 1; height: auto; min-height: 0; }
.trip-map-card.is-full .map-overlay-btn.right { top: calc(.6rem + env(safe-area-inset-top)); }
body.no-scroll { overflow: hidden; }

.map-empty {
    position: absolute; inset: 0; z-index: 400;
    display: grid; place-content: center; justify-items: center; gap: .6rem; text-align: center;
    padding: 1.5rem; background: color-mix(in srgb, var(--surface) 70%, transparent);
    backdrop-filter: blur(2px);
}
.map-empty svg { width: 40px; height: 40px; fill: var(--accent); opacity: .6; }
.map-empty p { margin: 0; font-weight: 600; max-width: 28ch; }

.traveler-chips {
    display: flex; gap: .5rem; overflow-x: auto; padding: .75rem;
    scrollbar-width: none; border-top: 1px solid var(--line);
    padding-bottom: max(.75rem, env(safe-area-inset-bottom));
}
.traveler-chips::-webkit-scrollbar { display: none; }
.traveler-chip {
    display: flex; align-items: center; gap: .55rem; flex: none;
    padding: .4rem .85rem .4rem .4rem; border-radius: 999px;
    background: var(--surface-2); border: 1px solid transparent;
    font: inherit; color: var(--text); text-align: left; cursor: pointer;
    transition: opacity .2s, border-color .15s, transform .12s var(--ease);
}
.traveler-chip:active { transform: scale(.97); }
.traveler-chip:hover { border-color: var(--line); }
.traveler-chip.is-off { opacity: .45; }
.traveler-chip.is-off .avatar { filter: grayscale(1); }
.chip-text { display: flex; flex-direction: column; line-height: 1.2; }
.chip-text strong { font-size: .9rem; }
.chip-text small { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.live-dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: var(--live); margin-right: 3px; vertical-align: 1px; animation: pulse 1.8s infinite;
}

.delay-note { margin: -.5rem 0 1rem; }

.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-bottom: 1rem; }
.stat-tile {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: .75rem .85rem; box-shadow: var(--shadow);
}
.stat-tile .stat-value { font-size: 1.35rem; font-weight: 750; letter-spacing: -.01em; }
.stat-tile .stat-value small { font-size: .8rem; font-weight: 600; color: var(--muted); }


/* ── Collapsible card ────────────────────────────────── */
.collapsible { padding: 0; }
.collapse-head {
    display: flex; align-items: center; gap: .8rem; width: 100%;
    padding: 1rem 1.15rem; background: none; border: 0; border-radius: var(--radius);
    font: inherit; color: var(--text); text-align: left; cursor: pointer;
}
.collapse-head .grow { display: flex; flex-direction: column; }
.collapse-head strong { font-size: 1.05rem; }
.collapse-head .chevron { width: 24px; height: 24px; fill: var(--muted); transition: transform .2s var(--ease); }
.collapse-head[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.collapse-body { padding: 0 1.15rem 1.15rem; }
.collapse-body > p:first-child { margin-top: 0; }


/* ── Stops ───────────────────────────────────────────── */
.place-list { list-style: none; margin: .25rem 0 0; padding: 0; position: relative; }
.place-list::before {
    content: ""; position: absolute; left: 20px; top: 1.2rem; bottom: 1.2rem;
    width: 2px; background: var(--line);
}
.place-row {
    position: relative; display: flex; align-items: center; gap: .8rem; width: 100%;
    padding: .65rem .4rem; margin: 0 -.4rem; border: 0; border-radius: var(--radius-sm);
    background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer;
    transition: background .15s;
}
.place-row:hover, .place-row.is-selected { background: var(--surface-2); }
.place-num {
    position: relative; z-index: 1; flex: none;
    display: grid; place-items: center; width: 30px; height: 30px; margin-left: 5px; border-radius: 50%;
    background: var(--surface); border: 3px solid var(--accent); color: var(--text);
    font-weight: 800; font-size: .8rem;
}
.place-num.is-current { background: var(--accent); color: var(--accent-ink); }
.place-num.lg { width: 40px; height: 40px; font-size: 1rem; margin: 0; }
.place-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.place-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.place-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }

.avatar.xs { width: 24px; height: 24px; font-size: .6rem; box-shadow: 0 0 0 2px var(--surface); }
.avatar-stack { display: flex; }
.avatar-stack .avatar + .avatar { margin-left: -7px; }

.place-sheet-head { display: flex; align-items: center; gap: .8rem; padding-right: 2.5rem; }
.place-sheet-head h2 { margin: 0; padding: 0; }
.place-sheet-head p { margin: .15rem 0 0; }
.place-when { margin: 1rem 0 .25rem; font-weight: 600; }
.place-rename { margin-top: 1rem; }
.place-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.place-actions .btn.danger { margin-left: auto; }
.d-block { display: block; }


/* ── Media ───────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon-inline.lg { width: 18px; height: 18px; vertical-align: -4px; }
.section-head .count { font-weight: 600; font-size: .9rem; margin-left: .25rem; }

.uploader { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.upload-list { list-style: none; margin: 0; padding: 0; width: min(100%, 320px); display: grid; gap: .35rem; }
.upload-list li {
    display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center;
    font-size: .8rem; background: var(--surface-2); border-radius: 10px; padding: .4rem .6rem;
}
.upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-state .ok { color: var(--live); font-weight: 600; }
.upload-state .error { max-width: 180px; display: inline-block; }
.progress { display: block; width: 90px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .2s; }

.media-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
    margin-top: .9rem; border-radius: var(--radius-sm); overflow: hidden;
}
@media (min-width: 560px) { .media-grid { grid-template-columns: repeat(4, 1fr); } }
.media-cell { position: relative; aspect-ratio: 1; }
.media-tile {
    position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
    border: 0; padding: 0; margin: 0; cursor: zoom-in; background: var(--surface-2);
}
.media-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s var(--ease); }
.media-tile:hover img { transform: scale(1.04); }
.media-tile.is-processing, .media-tile.is-failed {
    cursor: default; display: flex; flex-direction: column; gap: .4rem; text-align: center; padding: .4rem;
    color: var(--muted); font-size: .75rem;
}
.media-tile.is-processing { background: linear-gradient(110deg, var(--surface-2) 30%, var(--line) 50%, var(--surface-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s infinite linear; }
.media-tile.is-failed { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
@keyframes shimmer { to { background-position: -300% 0; } }
.video-badge {
    position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 2px;
    padding: .1rem .45rem .1rem .25rem; border-radius: 999px;
    background: rgb(0 0 0 / .55); color: #fff; font-size: .72rem; font-weight: 700;
}
.video-badge svg { width: 14px; height: 14px; fill: #fff; }
.media-remove {
    position: absolute; top: 4px; right: 4px; z-index: 2;
    display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    border: 0; background: rgb(0 0 0 / .5); color: #fff; cursor: pointer; opacity: 0; transition: opacity .15s;
}
.media-remove svg { width: 14px; height: 14px; fill: #fff; }
.media-cell:hover .media-remove, .media-cell:focus-within .media-remove { opacity: 1; }
@media (hover: none) { .media-remove { opacity: 1; } }
.media-move {
    position: absolute; left: 4px; right: 4px; bottom: 4px; z-index: 2; min-height: 30px;
    font-size: .72rem; padding: .2rem .4rem; border-radius: 8px; background: rgb(255 255 255 / .92); color: #1b2120;
}

.thumb-strip { display: flex; gap: 4px; margin-top: .45rem; }
.thumb-strip img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.thumb-more {
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 8px;
    background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: .85rem;
}

/* Stop sheet: traveler tabs + story */
.sheet-lg { max-width: 640px; }
.traveler-tabs {
    display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none;
    margin: 1rem -1.25rem .25rem; padding: 0 1.25rem .25rem;
}
.traveler-tabs::-webkit-scrollbar { display: none; }
.traveler-tab {
    position: relative; display: flex; align-items: center; gap: .45rem; flex: none;
    padding: .3rem .8rem .3rem .3rem; border-radius: 999px; border: 1px solid var(--line);
    background: var(--surface); font: inherit; font-size: .88rem; font-weight: 600; color: var(--text); cursor: pointer;
}
.traveler-tab.is-active { background: var(--accent-soft); border-color: var(--accent); }
.content-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.entry { margin-top: .75rem; }
.story { white-space: normal; line-height: 1.65; font-size: 1.02rem; margin: .25rem 0 .5rem; }
.story-form textarea { min-height: 110px; line-height: 1.55; }
.story-actions { display: flex; align-items: flex-start; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.story-actions .uploader { align-items: flex-start; margin-right: auto; }
.saved-note { color: var(--live); font-weight: 600; font-size: .88rem; align-self: center; }
.place-manage { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.place-manage summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: .9rem; }

/* Trip cover in overview */
.trip-card.has-cover { flex-direction: column; padding: 0; overflow: hidden; gap: 0; }
.trip-card.has-cover .trip-card-body { padding: 1rem 1.15rem .2rem; }
.trip-card.has-cover .trip-card-meta { flex-direction: row; padding: 0 1.15rem 1rem; align-self: flex-start; }
.trip-cover { width: 100%; height: 180px; object-fit: cover; display: block; }
@media (min-width: 768px) { .trip-cover { height: 220px; } }

/* ── Lightbox ────────────────────────────────────────── */
.lightbox {
    position: fixed; inset: 0; z-index: 200; background: rgb(0 0 0 / .94);
    animation: fade-in .18s ease; touch-action: pan-y;
}
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.lb-stage img, .lb-stage video { max-width: 100vw; max-height: 100dvh; width: auto; height: auto; object-fit: contain; }
.lb-btn {
    position: absolute; z-index: 2; display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgb(255 255 255 / .14); color: #fff; backdrop-filter: blur(6px);
}
.lb-btn svg { width: 24px; height: 24px; fill: #fff; }
.lb-btn[hidden] { display: none; }
.lb-close { top: calc(.75rem + env(safe-area-inset-top)); right: .75rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: .75rem; }
.lb-next { right: .75rem; }
@media (hover: none) { .lb-prev, .lb-next { display: none; } }
.lb-count {
    position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(1rem + env(safe-area-inset-bottom));
    color: rgb(255 255 255 / .8); font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums;
}


/* ── Add step ────────────────────────────────────────── */
.section-actions { display: flex; align-items: flex-start; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.search-row { display: flex; gap: .5rem; margin-top: 1rem; }
.search-row input { flex: 1; min-width: 0; }
input[type=search], input[type=datetime-local] {
    width: 100%; font: inherit; color: var(--text); background: var(--surface-2);
    border: 1px solid transparent; border-radius: var(--radius-sm); padding: .7rem .85rem; min-height: 48px;
}
input[type=search]:focus, input[type=datetime-local]:focus {
    outline: none; background: var(--surface); border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.search-results { list-style: none; margin: .5rem 0 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.search-results li + li { border-top: 1px solid var(--line); }
.search-results button {
    display: flex; flex-direction: column; width: 100%; padding: .6rem .8rem; border: 0;
    background: var(--surface); font: inherit; color: var(--text); text-align: left; cursor: pointer;
}
.search-results button:hover { background: var(--surface-2); }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; }
.add-step-form { margin-top: 1rem; }
.times-form { margin-top: 1rem; display: grid; gap: .5rem; }
.field-label { font-weight: 650; font-size: .92rem; }


/* ── Members & buddies ───────────────────────────────── */
.tabbar { grid-template-columns: repeat(4, 1fr); }
.back-link { display: inline-block; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: .25rem; }
.card.highlight { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.row-actions { display: flex; align-items: center; gap: .35rem; flex-shrink: 0; }
.row-actions.wrap { flex-wrap: wrap; }
.role-field { width: 140px; }
.subhead { font-size: .95rem; margin: 1.25rem 0 .25rem; color: var(--muted); font-weight: 650; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; }
.avatar.ghost { background: var(--surface-2); color: var(--muted); box-shadow: none; }
.compact-select { min-height: 36px; padding: .3rem .5rem; font-size: .85rem; width: auto; }
.chevron-right { width: 20px; height: 20px; fill: var(--muted); flex: none; }
.member-button .member-name { flex: 1; }
.member-button { display: flex; align-items: center; gap: .8rem; flex: 1; min-width: 0; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }

.buddy-picker { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 .75rem; }
.buddy-pick { position: relative; display: flex; align-items: center; gap: .5rem; padding: .3rem .8rem .3rem .3rem; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-weight: 600; font-size: .9rem; }
.buddy-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.buddy-pick:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.buddy-pick .avatar { width: 32px; height: 32px; font-size: .75rem; }

.copy-row { display: flex; gap: .5rem; margin: .5rem 0; }
.copy-row input { flex: 1; min-width: 0; font-size: .85rem; }

.invite-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2rem 1.5rem; }
.invite-card h1 { margin-top: .5rem; }
.invite-card p { margin: 0; }
.invite-card .stack, .invite-card .btn.block, .invite-card .connect-state { width: 100%; margin-top: 1rem; }
.invite-row { display: flex; align-items: center; gap: .8rem; }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.add-buddy-options { display: grid; gap: 1.25rem; }
.buddy-link-box .muted { margin: .2rem 0 .6rem; }

.switch { position: relative; display: inline-block; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .slider { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background .2s; }
.switch .slider::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .2s var(--ease); }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--accent); outline-offset: 2px; }

.profile-head { display: flex; align-items: center; gap: .9rem; padding-right: 2.5rem; }
.profile-head h2 { margin: 0; padding: 0; }
.shared-trips { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.shared-trips a { display: flex; flex-direction: column; padding: .6rem .8rem; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); text-decoration: none; }
details.card summary { cursor: pointer; font-weight: 600; }


/* ── Voice ───────────────────────────────────────────── */
.voice-recorder { display: flex; flex-direction: column; gap: .4rem; }
.btn.recording { background: var(--danger); color: #fff; border-color: var(--danger); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: pulse 1s infinite; }
.consent-box { background: var(--surface-2); border-radius: var(--radius-sm); padding: .8rem .9rem; max-width: 420px; }
.consent-box p { margin: .3rem 0 .6rem; }
.voice-note {
    display: flex; align-items: flex-start; gap: .6rem; margin-top: .75rem;
    padding: .8rem .9rem; border-radius: var(--radius-sm); background: var(--accent-soft);
}
.transcript { margin: .35rem 0 .6rem; padding: 0 0 0 .7rem; border-left: 3px solid var(--accent); color: var(--text); font-size: .95rem; line-height: 1.55; white-space: pre-line; }
.voice-hint { margin: .3rem 0 .5rem; }
.voice-busy { display: flex; align-items: center; gap: 8px; margin: .4rem 0; font-weight: 600; color: var(--accent); }
.story-options { display: grid; gap: .55rem; margin-top: .7rem; padding: 12px; border-radius: 12px; background: var(--surface-2); justify-items: start; }
.story-options .segmented { grid-template-columns: repeat(4, 1fr); width: 100%; background: var(--surface); }
.story-options .segmented button.on { background: var(--accent); color: var(--accent-ink, #fff); }
.check-row { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check-row input { margin-top: 3px; accent-color: var(--accent); }
.register-agree { font-size: .9rem; }
.voice-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.draft-note { color: var(--warn); font-weight: 600; margin: .35rem 0 0; }


/* ── PWA & notifications ─────────────────────────────── */
.install-banner { display: flex; align-items: center; gap: .8rem; }
.install-banner img { border-radius: 12px; flex: none; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0; cursor: pointer; }
.switch-row + .switch-row { border-top: 1px solid var(--line); }
.notify-card h2 { margin-bottom: .25rem; }
.offline-card { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2rem 1.5rem; }
.offline-icon { border-radius: 16px; opacity: .9; }


/* ── Account ─────────────────────────────────────────── */
.stat-tiles.compact { margin: .5rem 0 0; }
.stat-tiles.compact .stat-value { font-size: 1.1rem; }
.danger-details summary { cursor: pointer; color: var(--danger); font-weight: 600; }
.danger-details p { margin: .5rem 0; }


/* ── Big actions & upload dock ───────────────────────── */
.action-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; margin: .5rem 0 0; }
.action-tiles .uploader, .action-tiles .voice-recorder { display: contents; }
.action-tile {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 60px; padding: .75rem 1rem; border-radius: var(--radius-sm);
    border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
    font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; text-align: center;
    transition: border-color .15s, background .15s, transform .12s var(--ease);
}
.action-tile svg { width: 26px; height: 26px; fill: var(--accent); flex: none; }
.action-tile:hover { border-color: var(--accent); }
.action-tile:active { transform: scale(.98); }
.action-tile.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 25%, transparent); }
.action-tile.primary svg { fill: currentColor; }
.action-tile.recording { background: var(--danger); border-color: var(--danger); color: #fff; }
.action-tile.disabled { opacity: .45; cursor: not-allowed; }
.action-tile[disabled] { opacity: .6; cursor: progress; }
.action-hint { margin: .5rem 0 0; }
.entry .action-tiles { margin-bottom: .75rem; }
.voice-recorder .consent-box, .voice-recorder .hint, .voice-recorder .error { grid-column: 1 / -1; }
.btn.lg { min-height: 56px; font-size: 1.05rem; }
.story-form .btn.block { margin-top: .75rem; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.pick-cell, .pick-add { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.pick-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-cell .media-remove { opacity: 1; }
.pick-video { display: grid; place-items: center; width: 100%; height: 100%; background: var(--surface-2); }
.pick-video svg { width: 28px; height: 28px; fill: var(--muted); }
.pick-add {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border: 1.5px dashed var(--line); background: var(--surface); color: var(--muted);
    font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer;
}
.pick-add svg { width: 26px; height: 26px; fill: var(--accent); }
.pick-add:hover { border-color: var(--accent); color: var(--text); }

.upload-dock {
    position: fixed; left: 50%; transform: translateX(-50%); z-index: 150;
    bottom: calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom));
    width: min(calc(100% - 24px), 460px);
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-lg); padding: .7rem .9rem;
}
@media (min-width: 768px) { .upload-dock { bottom: 20px; } }
.dock-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.dock-head > span { display: inline-flex; align-items: center; gap: .5rem; }
.dock-head .ok { color: var(--live); }
.progress.wide { width: 100%; height: 6px; margin-top: .5rem; }
.dock-errors { list-style: none; margin: .4rem 0 0; padding: 0; font-size: .8rem; display: grid; gap: .2rem; }

.lb-error { color: #fff; opacity: .85; font-weight: 600; padding: 1rem; text-align: center; }


/* ── Avatar menu & theme ─────────────────────────────── */
.topbar-user { position: relative; }
.avatar-btn { border: 0; cursor: pointer; font: inherit; font-weight: 750; }
.avatar-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.user-menu {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 260px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
    padding: .6rem; display: grid; gap: .35rem;
}
.user-menu-head { display: flex; flex-direction: column; padding: .3rem .4rem .5rem; border-bottom: 1px solid var(--line); margin-bottom: .2rem; }
.user-menu-head .muted { overflow: hidden; text-overflow: ellipsis; }
.user-menu .field-label { padding: .2rem .4rem 0; color: var(--muted); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.segmented button {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .45rem .2rem;
    border: 0; border-radius: 9px; background: transparent; color: var(--muted);
    font: inherit; font-size: .78rem; font-weight: 650; cursor: pointer;
}
.segmented button svg { width: 18px; height: 18px; fill: currentColor; }
.segmented button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.user-menu-item {
    display: block; width: 100%; padding: .6rem .5rem; border-radius: 10px; border: 0; background: none;
    color: var(--text); text-decoration: none; font: inherit; font-weight: 600; text-align: left; cursor: pointer;
}
.user-menu-item:hover { background: var(--surface-2); }
.user-menu form { margin: 0; }
.danger-text { color: var(--danger); }

/* ── Trips overview: totals + compact cover tiles ────── */
.totals {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .6rem; box-shadow: var(--shadow);
}
.totals div { display: flex; flex-direction: column; align-items: center; text-align: center; }
.totals strong { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.totals span { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }

.trip-tile {
    display: block; overflow: hidden; color: inherit; text-decoration: none;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    transition: transform .15s var(--ease), box-shadow .15s;
}
.trip-tile:active { transform: scale(.99); }
.trip-tile:hover { box-shadow: 0 10px 30px rgb(16 24 22 / .12); }
.trip-tile-media {
    --c: var(--accent);
    position: relative; height: 132px;
    background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 45%, #0b3b37));
}
@media (min-width: 768px) { .trip-tile-media { height: 160px; } }
.trip-tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trip-tile-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
    padding: .75rem .9rem; color: #fff;
    background: linear-gradient(to top, rgb(0 0 0 / .62), rgb(0 0 0 / .05) 55%, rgb(0 0 0 / .15));
}
.trip-tile-badges { display: flex; gap: .35rem; justify-content: flex-end; }
.badge.on-photo { background: rgb(255 255 255 / .9); color: #1b2120; }
.badge.live.on-photo { color: #15803d; }
.trip-tile-title h2 { margin: 0; color: #fff; font-size: 1.25rem; text-shadow: 0 1px 8px rgb(0 0 0 / .35); }
.trip-tile-title span { font-size: .82rem; opacity: .92; }
.trip-tile-stats { display: flex; align-items: center; gap: .9rem; padding: .6rem .9rem; font-size: .85rem; font-weight: 650; color: var(--muted); flex-wrap: wrap; }
.trip-tile-stats > span { display: inline-flex; align-items: center; gap: .3rem; }
.trip-tile-stats svg { width: 16px; height: 16px; fill: var(--accent); }
.trip-tile-stats .avatar-stack { margin-left: auto; }
.flags { letter-spacing: .1em; font-size: 1rem; }

/* ── Trip page: compact head, sticky map, steps right below ── */
.trip-head { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .9rem; }
.trip-head h1 { margin-bottom: .1rem; }
.trip-dates { margin: 0; }
.trip-stats { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .45rem; font-size: .88rem; color: var(--muted); }
.trip-stats > span { display: inline-flex; align-items: center; gap: .3rem; }
.trip-stats svg { width: 16px; height: 16px; fill: var(--accent); }
.trip-stats strong { color: var(--text); }
.settings-btn { flex: none; background: var(--surface); border: 1px solid var(--line); width: 42px; height: 42px; }
.settings-btn svg { width: 22px; height: 22px; }

.trip-map-col { position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 8; margin: 0 -1rem .5rem; padding: 0 1rem .4rem; background: var(--bg); }
.trip-map-col .trip-map-card { margin-bottom: 0; }
.map-trip { height: 34vh; min-height: 220px; }
.traveler-chips {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 450; border-top: 0;
    padding: .5rem; background: linear-gradient(to top, rgb(0 0 0 / .25), transparent);
}
.trip-map-card .traveler-chips { position: relative; background: none; padding: .45rem .55rem; border-top: 1px solid var(--line); }
.traveler-chip { padding: .25rem .7rem .25rem .25rem; }
.place-list li.is-active .place-row { background: var(--accent-soft); }
.place-list li.is-active .place-num { transform: scale(1.12); }
.place-num { transition: transform .2s var(--ease); }

.container.wide { max-width: 780px; }
@media (min-width: 1024px) {
    .container.wide { max-width: 1240px; }
    .trip-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.25rem; align-items: start; }
    .trip-map-col { order: 2; top: calc(56px + 1rem); margin: 0; padding: 0; background: none; }
    .trip-list-col { order: 1; }
    .map-trip { height: calc(100vh - 56px - 2rem - 60px); }
}

.settings-links { display: grid; gap: .5rem; margin: 1rem 0 .25rem; }
.settings-link {
    display: flex; align-items: center; gap: .8rem; padding: .75rem .9rem; border-radius: var(--radius-sm);
    background: var(--surface-2); color: var(--text); text-decoration: none;
}
.settings-link svg { width: 22px; height: 22px; fill: var(--accent); flex: none; }
.settings-link .chev { font-size: 1.6rem; color: var(--muted); line-height: 1; }


/* ── Immersive trip page: full-screen map + overlays + card rail ── */
body.immersive { overflow: hidden; overscroll-behavior: none; }
body.immersive .topbar, body.immersive .tabbar { display: none; }
body.immersive .container { padding: 0; max-width: none; animation: none; }
body.immersive .container > .flash { position: fixed; top: calc(env(safe-area-inset-top) + 76px); left: 50%; transform: translateX(-50%); z-index: 700; width: min(92%, 440px); }
body.immersive .upload-dock { bottom: calc(240px + env(safe-area-inset-bottom)); }

.trip-stage { position: fixed; inset: 0; background: #0e1412; }
.map-stage { position: absolute; inset: 0; height: auto; background: #0e1412; }
.map-stage .map-canvas { position: absolute; inset: 0; }

.glass-btn {
    display: grid; place-items: center; flex: none;
    width: 48px; height: 48px; border-radius: 50%;
    background: rgb(16 22 20 / .58); color: #fff; border: 1px solid rgb(255 255 255 / .16);
    backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
    box-shadow: 0 6px 18px rgb(0 0 0 / .25); cursor: pointer; text-decoration: none;
    transition: transform .12s var(--ease), background .15s;
}
.glass-btn svg { width: 24px; height: 24px; fill: currentColor; }
.glass-btn:active { transform: scale(.94); }
.glass-btn.on { background: rgb(255 255 255 / .92); color: #12201d; }

.stage-head {
    position: absolute; top: 0; left: 0; right: 0; z-index: 500;
    display: flex; align-items: flex-start; gap: .6rem;
    padding: calc(env(safe-area-inset-top) + 10px) 12px 40px;
    background: linear-gradient(to bottom, rgb(0 0 0 / .62), rgb(0 0 0 / .25) 60%, transparent);
    color: #fff; pointer-events: none;
}
.stage-head > * { pointer-events: auto; }
.stage-title { flex: 1; min-width: 0; text-align: center; padding-top: 2px; }
.stage-people { display: flex; align-items: center; justify-content: center; gap: .45rem; font-size: .9rem; font-weight: 650; opacity: .95; }
.stage-people .avatar.xs { box-shadow: 0 0 0 2px rgb(0 0 0 / .35); }
.people-names { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-title h1 { color: #fff; margin: .15rem 0 0; font-size: clamp(1.4rem, 6vw, 2rem); text-shadow: 0 2px 12px rgb(0 0 0 / .4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-title .flags { font-size: .8em; }

.stage-tools {
    position: absolute; right: 12px; top: calc(env(safe-area-inset-top) + 72px); z-index: 500;
    display: flex; flex-direction: column; gap: .55rem;
}
.trip-stage .map-empty { z-index: 450; background: rgb(14 20 18 / .55); color: #fff; }

.step-rail {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
    display: flex; align-items: center; gap: .55rem;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 40px 16px calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgb(0 0 0 / .55), rgb(0 0 0 / .2) 70%, transparent);
}
.step-rail::-webkit-scrollbar { display: none; }
/* Arrows to page through the steps: only with a mouse (phones swipe) */
.rail-nav { display: none; }
@media (hover: hover) and (pointer: fine) {
    .rail-nav { display: grid; place-items: center; position: fixed; bottom: 100px; z-index: 510; width: 40px; height: 40px; border-radius: 50%;
        border: 0; background: rgb(255 255 255 / .92); color: #13201d; box-shadow: 0 4px 14px rgb(0 0 0 / .25); cursor: pointer; }
    .rail-nav svg { width: 24px; height: 24px; fill: currentColor; }
    .rail-nav.prev { left: 8px; }
    .rail-nav.next { right: 8px; }
    .rail-nav:hover { background: #fff; }
}
.glass-btn.on { background: var(--accent); color: #fff; }
.view-banner { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.rail-card {
    position: relative; flex: 0 0 auto; scroll-snap-align: center;
    width: min(46vw, 230px); height: 196px; border-radius: 24px; overflow: hidden;
    border: 2px solid rgb(255 255 255 / .18); background: #141b19; color: #fff;
    font: inherit; text-align: left; padding: 0; cursor: pointer;
    box-shadow: 0 10px 28px rgb(0 0 0 / .35);
    transition: transform .2s var(--ease), border-color .2s;
}
.rail-card:first-child { margin-left: 4px; }
.rail-card.is-active { border-color: #fff; transform: translateY(-4px); }
.start-card, .add-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; text-align: center;
    background: linear-gradient(160deg, #1d2a27, #0f1513); padding: 1rem;
}
.add-card { border-style: dashed; }
.start-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #12201d; margin-bottom: .35rem; }
.start-icon svg { width: 26px; height: 26px; fill: currentColor; }
.start-card strong, .add-card strong { font-size: 1.1rem; }
.start-date { font-size: .8rem; font-weight: 700; letter-spacing: .04em; opacity: .75; }
.start-stats { font-size: .82rem; opacity: .85; }
.start-card .flags { font-size: 1.3rem; }

.step-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.step-card:not(.has-photo) { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 70%, #0b2320), #0f1513); }
.step-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .78), rgb(0 0 0 / .1) 55%, rgb(0 0 0 / .2)); }
.card-top { position: absolute; z-index: 1; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; gap: .4rem; }
.card-flag { font-size: 1.35rem; line-height: 1; filter: drop-shadow(0 1px 3px rgb(0 0 0 / .4)); }
.card-num { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: rgb(255 255 255 / .9); color: #12201d; font-size: .75rem; font-weight: 800; }
.card-top .badge { margin-left: auto; }
.card-body { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: .15rem; }
.card-name { font-size: 1.2rem; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 8px rgb(0 0 0 / .4); }
.card-date { font-size: .8rem; opacity: .85; font-weight: 600; }
.card-meta { display: flex; align-items: center; gap: .6rem; margin-top: .3rem; font-size: .85rem; font-weight: 700; }
.card-meta > span { display: inline-flex; align-items: center; gap: .25rem; }
.card-meta svg { width: 17px; height: 17px; fill: #fff; }
.card-meta .avatar-stack { margin-left: auto; }
.rail-add {
    flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    border: 0; background: #fff; color: #12201d; cursor: pointer; box-shadow: 0 4px 12px rgb(0 0 0 / .3);
}
.rail-add svg { width: 20px; height: 20px; fill: currentColor; }

.plane-icon svg { width: 26px; height: 26px; display: block; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .4)); }
.places-card { margin-top: .5rem; }

@media (min-width: 1024px) {
    .rail-card { width: 230px; height: 210px; }
    .stage-tools { top: calc(env(safe-area-inset-top) + 84px); }
}

/* Layering: sheets and viewers must cover the full-screen map overlays (header, tools, card rail = 500) */
.sheet-backdrop { z-index: 800; }
.upload-dock { z-index: 900; }
.lightbox { z-index: 1000; }
body.immersive .container > .flash { z-index: 950; }


/* ── Photo book ──────────────────────────────────────── */
.settings-link.featured { background: var(--accent-soft); }
.plan-note { display: flex; flex-direction: column; gap: .2rem; }
.book-form .card h2 { margin-bottom: 0; }
.originals .btn.is-disabled, .originals-drop.is-disabled { opacity: .5; pointer-events: none; }
.originals-drop { display: grid; gap: 10px; padding: 16px; border: 2px dashed var(--line); border-radius: 14px; transition: border-color .15s, background .15s; }
.originals-drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.originals-days { margin: 0; }
.originals-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.originals-done { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-weight: 600; font-size: .92rem; }
.originals-grid { max-height: 360px; overflow-y: auto; grid-auto-rows: 84px; align-content: start; -webkit-overflow-scrolling: touch; }
/* Safari squeezes square tiles in a scrolling grid into a stack: fixed row height there */
.originals-grid .cover-pick { display: block; aspect-ratio: auto; height: 84px; }
.originals-ok { position: absolute; right: 5px; bottom: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .72rem; line-height: 20px; text-align: center; box-shadow: 0 1px 3px rgb(0 0 0 / .35); }
.originals-help summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.originals-help ul { margin: .5rem 0 0; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .9rem; color: var(--muted); }
.preview-small { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--surface); color: var(--text); font-size: .88rem; text-align: left; }
.preview-small a { font-weight: 700; white-space: nowrap; }
.originals-progress { display: grid; gap: 6px; }
.originals-progress p { margin: 0; }
.originals-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.originals-bar span { display: block; height: 100%; background: var(--accent); transition: width .3s; }
.cover-current { display: flex; gap: 14px; align-items: center; }
.cover-current img, .cover-current-empty { width: 120px; object-fit: cover; border-radius: 10px; flex: none; box-shadow: 0 4px 14px rgb(0 0 0 / .14); background: var(--line); }
.cover-current-text { display: grid; gap: 8px; justify-items: start; }
.cover-current-text p { margin: 0; }
.cover-steps { display: grid; gap: 14px; max-height: 460px; overflow-y: auto; padding: 2px; overscroll-behavior: contain; }
.cover-step { display: grid; gap: 6px; }
.cover-step-name { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cover-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.cover-pick { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; cursor: pointer; padding: 0; border: 0; background: none; }
.cover-pick img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s; }
.cover-pick:hover img { transform: scale(1.04); }
.cover-pick-soft { position: absolute; left: 5px; bottom: 5px; width: 18px; height: 18px; border-radius: 50%; background: #f59e0b; color: #fff; font-size: .72rem; line-height: 18px; text-align: center; box-shadow: 0 1px 3px rgb(0 0 0 / .35); }
.cover-soft-note { margin: 0; font-size: .85rem; color: #b45309; }
.cover-pick.is-on { outline: 3px solid var(--accent); outline-offset: -3px; }
.cover-pick.is-on::after { content: "✓"; position: absolute; top: 4px; right: 6px; color: #fff; font-weight: 800; text-shadow: 0 1px 3px rgb(0 0 0 / .6); }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice-body {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .25rem;
    min-height: 104px; padding: .6rem .4rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
    background: var(--surface); text-align: center; transition: border-color .15s, background .15s;
}
.choice-body small { color: var(--muted); font-size: .72rem; }
.choice input:checked + .choice-body { border-color: var(--accent); background: var(--accent-soft); }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.page-shape { display: block; border: 2px solid var(--muted); border-radius: 3px; background: var(--surface-2); margin-bottom: auto; }
.layout-icon { display: grid; gap: 2px; width: 30px; height: 40px; margin-bottom: auto; }
.layout-icon i { background: var(--muted); border-radius: 2px; }
.layout-icon.l-1 i:not(:first-child), .layout-icon.l-2 i:nth-child(n+3), .layout-icon.l-3 i:nth-child(4) { display: none; }
.layout-icon.l-1 { grid-template-rows: 1fr; }
.layout-icon.l-2 { grid-template-rows: 1fr 1fr; }
.layout-icon.l-3 { grid-template: 1.4fr 1fr / 1fr 1fr; } .layout-icon.l-3 i:first-child { grid-column: span 2; }
.layout-icon.l-4 { grid-template: 1fr 1fr / 1fr 1fr; }
.layout-icon.l-auto { grid-template: 1fr 1fr / 1fr 1fr; } .layout-icon.l-auto i:first-child { grid-row: span 2; } .layout-icon.l-auto i:nth-child(4) { display: none; }
.layout-icon.l-playful { grid-template: 1fr 1fr / 1fr 1fr; gap: 0; } .layout-icon.l-playful i { border: 2px solid var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.25); } .layout-icon.l-playful i:nth-child(1) { transform: rotate(-9deg) translate(2px, 3px); } .layout-icon.l-playful i:nth-child(2) { transform: rotate(7deg) translate(-2px, 6px); } .layout-icon.l-playful i:nth-child(3) { grid-column: span 2; width: 70%; justify-self: center; transform: rotate(-3deg); } .layout-icon.l-playful i:nth-child(4) { display: none; }
.choice input:checked + .choice-body .layout-icon i, .choice input:checked + .choice-body .page-shape { background: var(--accent); border-color: var(--accent); }

.segmented.wide-seg { grid-template-columns: repeat(2, 1fr); margin-top: .35rem; }
.segmented.wide-seg.three, .segmented.wide-seg:has(label:nth-child(3)) { grid-template-columns: repeat(3, 1fr); }
.segmented label { position: relative; cursor: pointer; }
.segmented label input { position: absolute; opacity: 0; }
.segmented label span { display: block; text-align: center; padding: .55rem .3rem; border-radius: 9px; color: var(--muted); font-weight: 650; font-size: .88rem; }
.segmented label input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.book-form .btn.lg { margin: .5rem 0 1rem; }
.book-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); flex: none; }
.book-icon svg { width: 22px; height: 22px; fill: var(--accent); }

/* ── Photo book: actions ─────────────────────────────── */
.book-actions { display: grid; gap: .6rem; }
@media (min-width: 1024px) { .book-actions { grid-template-columns: 1fr 1fr; } .book-actions .btn.lg { margin: .5rem 0 0; } }

/* Traveler who doesn't share their route yet */
.consent-banner { position: absolute; z-index: 5; left: 50%; transform: translateX(-50%); top: calc(env(safe-area-inset-top) + 76px);
    display: flex; align-items: center; gap: .7rem; padding: .5rem .55rem .5rem .95rem; border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); box-shadow: var(--shadow-lg);
    font-size: .88rem; font-weight: 600; max-width: calc(100% - 32px); }
.consent-banner span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Front page globe (MapLibre) ───────────────────────── */
.globe-card { position: relative; height: 360px; margin: 0 0 1rem; border-radius: var(--radius); overflow: hidden;
    background:
        radial-gradient(1px 1px at 12% 22%, rgb(255 255 255 / .7), transparent 60%),
        radial-gradient(1px 1px at 78% 14%, rgb(255 255 255 / .6), transparent 60%),
        radial-gradient(1.5px 1.5px at 64% 72%, rgb(255 255 255 / .5), transparent 60%),
        radial-gradient(1px 1px at 30% 80%, rgb(255 255 255 / .5), transparent 60%),
        radial-gradient(1px 1px at 90% 58%, rgb(255 255 255 / .6), transparent 60%),
        radial-gradient(1px 1px at 45% 8%, rgb(255 255 255 / .5), transparent 60%),
        radial-gradient(ellipse at 50% 55%, #16324a 0%, #0b1622 55%, #060b12 100%);
    box-shadow: var(--shadow); }
@media (min-width: 768px) { .globe-card { height: 440px; } }
.globe-card .globe-map { position: absolute; inset: 0; } /* beats .maplibregl-map { position: relative } */
.globe-map .maplibregl-canvas { outline: none; }
.globe-caption { position: absolute; left: 1rem; top: .9rem; display: grid; gap: .25rem; pointer-events: none; }
.globe-label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .75); }
.globe-hover { font-size: 1.05rem; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgb(0 0 0 / .6); }

/* MapLibre maps inside the app */
.is-maplibre .maplibregl-ctrl-attrib { font-size: 10px; }
.plane-icon svg { filter: drop-shadow(0 1px 2px rgb(0 0 0 / .35)); }

/* ── Store app: own tracking, nudge, legal pages ───────── */
.app-track { display: grid; gap: .8rem; }
.app-track-main { padding: 0; cursor: default; }
.app-track-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--surface-2); color: var(--muted); transition: background .2s, color .2s; }
.app-track-icon svg { width: 24px; height: 24px; fill: currentColor; }
.app-track-icon.on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.app-track-icon.big { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto .4rem; }
.app-track-icon.big svg { width: 34px; height: 34px; }
.app-track-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.app-track-stats .stat-value { font-size: .95rem; }
.app-track-warn, .app-track-tip { display: grid; gap: .5rem; padding: .75rem .85rem; border-radius: 12px; font-size: .9rem; }
.app-track-warn { background: color-mix(in srgb, var(--danger) 10%, transparent); }
.app-track-tip { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.app-track-warn p, .app-track-tip p { margin: 0; }
.app-track-warn .btn, .app-track-tip .btn { justify-self: start; }
.app-track .sheet { text-align: center; }
.app-track .sheet h2 { padding-right: 0; }
.disclose-list { text-align: left; margin: .4rem 0 .8rem; padding-left: 1.2rem; display: grid; gap: .35rem; }
.app-nudge { display: flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; }
.app-nudge .chevron-right { width: 22px; height: 22px; fill: var(--muted); flex: none; }
.legal { max-width: 46rem; margin-inline: auto; line-height: 1.6; }
.legal h1 { margin-top: 0; }
.legal h2 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; }
.legal h3 { font-size: 1rem; margin: 1.1rem 0 .2rem; }
.legal ul { padding-left: 1.2rem; display: grid; gap: .35rem; }
.legal-links { margin-top: 1rem; }
.legal-links a { color: var(--muted); }
/* Store app test builds: "new test version" bar */
.app-update-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: .8rem; padding: .6rem .7rem .6rem 1rem; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-lg, 0 8px 30px rgb(0 0 0 / .25)); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; max-width: calc(100% - 32px); }
.app-update-bar small { color: var(--muted); font-weight: 500; }

/* Story: grows with the text; double-tap or the enlarge button = full-screen writing */
.story-field { position: relative; }
.story-field textarea { min-height: 7.5rem; max-height: 45vh; field-sizing: content; resize: vertical; padding-right: 2.6rem; }
.story-expand { position: absolute; top: .35rem; right: .35rem; width: 34px; height: 34px; opacity: .7; }
.story-expand:hover { opacity: 1; }
.story-field.is-big { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; gap: .6rem; padding: calc(.8rem + env(safe-area-inset-top)) 1rem calc(1rem + env(safe-area-inset-bottom)); background: var(--bg); }
.story-field.is-big .field { flex: 1; display: flex; }
.story-field.is-big textarea { flex: 1; max-height: none; min-height: 0; height: 100%; font-size: 1.08rem; line-height: 1.6; resize: none; padding-right: .9rem; }
.story-big-bar { display: flex; align-items: center; gap: .5rem; }
.story-big-bar strong { flex: 1; font-size: 1.05rem; }
.globe-empty { font-size: .85rem; color: rgb(255 255 255 / .85); text-shadow: 0 1px 6px rgb(0 0 0 / .6); max-width: 16rem; }

/* ⓘ on the tracking card */
.info-btn { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: .35rem; vertical-align: 1px; border: 1.5px solid var(--muted); border-radius: 50%; background: none; color: var(--muted); font: 700 .78rem/1 Georgia, serif; font-style: italic; cursor: pointer; padding: 0; }
.info-btn:hover { border-color: var(--accent); color: var(--accent); }
.info-sheet dl { display: grid; gap: .25rem; margin: .4rem 0 1rem; text-align: left; }
.info-sheet dt { font-weight: 700; margin-top: .55rem; }
.info-sheet dd { margin: 0; color: var(--muted); line-height: 1.5; }

/* Profile: your plan (Free / Pro) */
.plan-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.plan-card-head h2 { display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem; }
.plan-badge { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 750; letter-spacing: .04em; background: var(--surface-2); color: var(--muted); }
.plan-badge.is-pro { background: #e7a93b; color: #2b1d02; }
.plan-card.is-pro { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.plan-usage-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: .5rem 0 .6rem; }
.user-menu-item.pro-link { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.user-menu-item.pro-link span { padding: .05rem .45rem; border-radius: 999px; background: #e7a93b; color: #2b1d02; font-size: .7rem; font-weight: 800; }
.dock-notice { margin-top: .5rem; padding: .55rem .7rem; border-radius: 10px; background: var(--surface-2); font-size: .85rem; line-height: 1.4; }
.dock-notice strong { word-break: break-all; }
.dock-pro { display: inline-block; margin-top: .25rem; color: var(--accent); font-weight: 650; }

/* Import from Polarsteps */
.import-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.import-steps > li { display: flex; gap: 1rem; align-items: flex-start; }
.import-steps h2 { font-size: 1.1rem; margin: 0 0 .3rem; }
.import-steps p { margin: 0 0 .7rem; }
.import-n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 750; }
.import-steps > li > div { flex: 1; min-width: 0; }
.import-drop {
    display: grid; place-items: center; text-align: center; padding: 1.6rem 1rem; margin: .4rem 0 .8rem;
    border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent-soft) 40%, transparent); cursor: pointer; transition: background .15s, border-color .15s;
}
.import-drop:hover, .import-drop.is-over { background: var(--accent-soft); border-color: var(--accent); }
.import-drop.is-busy { cursor: default; }
.import-drop > span { display: grid; gap: .35rem; justify-items: center; width: 100%; }
.import-drop svg { width: 34px; height: 34px; fill: var(--accent); }
.import-drop .progress { width: 100%; max-width: 360px; }
.import-media { border-top: 1px solid var(--line); }
.import-notes { margin: .6rem 0 0; padding-left: 1.1rem; display: grid; gap: .25rem; }
.import-status-head { display: flex; gap: .8rem; align-items: center; margin-bottom: .8rem; }
.import-check { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); flex: none; }
.import-check svg { width: 22px; height: 22px; fill: #fff; }
.import-trips { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .35rem; }
.import-trips li { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.import-trips a { text-decoration: none; color: var(--text); }

/* Ordering a printed book */
.order-grid { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 900px) { .container:has(.book-order) { max-width: 1040px; } .order-grid { grid-template-columns: 1fr 340px; } .order-summary { position: sticky; top: 84px; } }
.order-products { display: grid; gap: .75rem; }
@media (min-width: 560px) { .order-products { grid-template-columns: 1fr 1fr; } }
.order-product { display: grid; gap: .35rem; padding: 1rem; border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s, background .15s; }
.order-product.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.order-product.is-off { opacity: .55; cursor: not-allowed; }
.order-product-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.order-price { font-weight: 750; }
.order-qty input { max-width: 7rem; }
.order-street { display: grid; grid-template-columns: 1fr 7rem; gap: 1rem; }
.order-lines { margin: 0 0 .8rem; display: grid; gap: .45rem; }
.order-lines > div { display: flex; justify-content: space-between; gap: 1rem; }
.order-lines dt, .order-lines dd { margin: 0; }
.order-lines .order-discount dd { color: var(--accent); }
.order-total { border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .2rem; font-weight: 750; font-size: 1.1rem; }
.order-agree { display: flex; gap: .55rem; align-items: flex-start; font-size: .85rem; margin: .8rem 0; line-height: 1.4; }
.order-agree input { margin-top: .2rem; flex: none; }
.order-summary .btn.block { margin: .4rem 0 .5rem; }
.order-steps { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; font-size: .8rem; color: var(--muted); text-align: center; }
.order-steps li { display: grid; justify-items: center; gap: .35rem; position: relative; }
.order-steps li span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); z-index: 1; }
.order-steps li:not(:first-child)::before { content: ""; position: absolute; top: 6px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.order-steps li.done { color: var(--text); }
.order-steps li.done span { background: var(--accent); border-color: var(--accent); }
.order-steps li.done:not(:first-child)::before { background: var(--accent); }
.order-steps li.now { font-weight: 700; }
.order-track { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 0; }
.warn-card { display: grid; gap: .4rem; justify-items: start; border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); background: color-mix(in srgb, var(--warn) 9%, var(--surface)); }


/* ── Sharing: share sheet, buttons, toast ────────────── */
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.is-sharing { opacity: .6; pointer-events: none; cursor: progress; }
.lb-share { bottom: calc(.75rem + env(safe-area-inset-bottom)); right: .75rem; }
.lb-share.is-sharing { opacity: .5; }
.place-share { flex: none; align-self: flex-start; margin-top: .2rem; }
@media (max-width: 420px) { .place-share span { display: none; } .place-share { padding-inline: .6rem; } }

.share-sheet h2 { margin-bottom: .2rem; }
.share-options { display: grid; gap: .75rem; margin-top: 1rem; }
.share-story { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; margin: 0; padding: .75rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.share-story-img { display: block; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #0f766e, #0b2a2e); box-shadow: var(--shadow); }
.share-story-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.share-story figcaption { display: grid; gap: .3rem; justify-items: start; }
.share-story figcaption .btn { margin-top: .4rem; }
.share-clip { display: flex; align-items: center; gap: .9rem; padding: .85rem .9rem; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); text-decoration: none; }
.share-clip-art { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none; background: linear-gradient(135deg, #fb7185, #f59e0b); }
.share-clip-art svg { width: 24px; height: 24px; fill: #fff; }
.share-clip .chev { font-size: 1.6rem; color: var(--muted); line-height: 1; }

.share-toast {
    position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 1rem + env(safe-area-inset-bottom)); transform: translateX(-50%);
    z-index: 1100; max-width: min(92vw, 420px); padding: .7rem 1.1rem; border-radius: 14px;
    background: #111827; color: #fff; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg);
    transition: opacity .4s, transform .4s;
}
.share-toast.hide { opacity: 0; transform: translate(-50%, 8px); }

/* ── Trip clips ──────────────────────────────────────── */
.clip-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .9rem; }
.clip-item { display: grid; gap: .5rem; align-content: start; max-width: 260px; }
.clip-video { width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; background: #0b2a2e; object-fit: cover; display: block; }
.clip-wait { display: grid; place-content: center; justify-items: center; gap: .5rem; padding: 1rem; text-align: center; color: #fff; background: linear-gradient(160deg, #0f766e, #0b2a2e); }
.clip-wait small { color: rgb(255 255 255 / .75); font-size: .78rem; }
.clip-wait.is-failed { background: var(--surface-2); color: var(--text); }
.clip-meta { display: grid; gap: .1rem; min-width: 0; }
.clip-meta strong { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }

.clip-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.clip-style .choice-body { padding: .6rem .6rem .8rem; gap: .3rem; }
.clip-art { position: relative; display: block; width: 100%; aspect-ratio: 9 / 12; border-radius: 10px; overflow: hidden; margin-bottom: .35rem; }
.clip-art i, .clip-art b { position: absolute; display: block; }
.clip-art.is-energetic { background: linear-gradient(160deg, #0ea5e9, #0f766e); }
.clip-art.is-energetic i:first-child { left: 10%; right: 10%; bottom: 22%; height: 14%; background: #fff; border-radius: 3px; transform: skewX(-8deg); }
.clip-art.is-energetic i:nth-child(2) { left: 10%; width: 36%; bottom: 40%; height: 9%; background: #facc15; border-radius: 99px; }
.clip-art.is-energetic b { inset: 0; background: linear-gradient(100deg, transparent 60%, rgb(255 255 255 / .35) 61%, transparent 72%); animation: clip-swipe 1.8s ease-in-out infinite; }
.clip-art.is-playful { background: linear-gradient(160deg, #fda4af, #fb7185); }
.clip-art.is-playful i { width: 52%; height: 46%; border-radius: 3px; box-shadow: 0 4px 10px rgb(0 0 0 / .25); border: 4px solid #fff; }
.clip-art.is-playful i:first-child { left: 14%; top: 18%; transform: rotate(-9deg); background: linear-gradient(#fef3c7 76%, #fff 76%); }
.clip-art.is-playful i:nth-child(2) { left: 32%; top: 30%; transform: rotate(7deg); background: linear-gradient(#bae6fd 76%, #fff 76%); animation: clip-drop 2.2s var(--ease) infinite; }
.clip-art.is-cinematic { background: linear-gradient(180deg, #1f2937, #44403c 55%, #a8a29e); }
.clip-art.is-cinematic i:first-child { left: 12%; right: 30%; bottom: 26%; height: 8%; background: #e9d8b4; border-radius: 2px; }
.clip-art.is-cinematic i:nth-child(2) { left: 12%; width: 30%; bottom: 38%; height: 3%; background: rgb(233 216 180 / .7); }
.clip-art.is-cinematic b { inset: 0; background: radial-gradient(circle at 70% 30%, rgb(255 255 255 / .25), transparent 55%); animation: clip-glow 4s ease-in-out infinite alternate; }
@keyframes clip-swipe { 0%, 30% { transform: translateX(-100%); } 70%, 100% { transform: translateX(100%); } }
@keyframes clip-drop { 0% { transform: translateY(-120%) rotate(7deg); } 35%, 100% { transform: translateY(0) rotate(7deg); } }
@keyframes clip-glow { from { transform: scale(1); } to { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .clip-art b, .clip-art i { animation: none !important; } }
.segmented label.is-locked span { opacity: .55; }
.pro-tag { font-style: normal; font-size: .68rem; font-weight: 750; margin-left: .25rem; padding: .05rem .4rem; border-radius: 99px; background: var(--accent); color: var(--accent-ink); vertical-align: 1px; }

.clip-steps-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.clip-steps-head h2 { margin: 0; }
.clip-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .5rem; }
.clip-step { position: relative; cursor: pointer; }
.clip-step input { position: absolute; opacity: 0; }
.clip-step-body { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .15s, opacity .15s; opacity: .45; }
.clip-step input:checked + .clip-step-body { opacity: 1; outline-color: var(--accent); }
.clip-step input:focus-visible + .clip-step-body { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.clip-step-body img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-step-map { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(160deg, #134e4a, #0b2a2e); }
.clip-step-map svg { width: 34%; fill: rgb(255 255 255 / .85); }
.clip-step-body::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgb(0 0 0 / .7)); }
.clip-step-num { position: absolute; top: 6px; left: 6px; z-index: 1; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: #fff; color: #111; font-size: .75rem; font-weight: 750; }
.clip-step input:checked + .clip-step-body .clip-step-num { background: var(--accent); color: var(--accent-ink); }
.clip-step-name { position: absolute; left: 7px; right: 7px; bottom: 6px; z-index: 1; color: #fff; font-size: .75rem; font-weight: 650; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.clip-step-count { position: absolute; top: 6px; right: 6px; z-index: 1; padding: 0 6px; border-radius: 99px; background: rgb(0 0 0 / .5); color: #fff; font-size: .7rem; font-weight: 650; line-height: 20px; }
.hint.center { text-align: center; }
.clip-speed { display: grid; gap: .35rem; }
.clip-speed-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.clip-speed-head strong { font-variant-numeric: tabular-nums; }
.clip-speed-range { width: 100%; accent-color: var(--accent); height: 28px; }
.clip-speed-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; font-weight: 600; }
.clip-speed .hint { margin: 0; }

/* Story image: pick the photo */
.share-pick { display: flex; gap: .4rem; overflow-x: auto; padding: .2rem .1rem .4rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.share-pick button { flex: none; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface-2); outline: 3px solid transparent; outline-offset: -3px; scroll-snap-align: start; }
.share-pick button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.share-pick button.on { outline-color: var(--accent); }
.share-pick .share-pick-auto { display: grid; place-items: center; font-size: .68rem; font-weight: 700; color: var(--muted); line-height: 1.1; text-align: center; padding: 4px; }
.share-pick-label { margin: .6rem 0 .2rem; font-size: .82rem; font-weight: 650; color: var(--muted); }
.share-story-img { position: relative; }
.share-story-img .spinner { position: absolute; inset: 0; margin: auto; }
.step-share { margin-top: .9rem; padding: .8rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.step-share-row { display: grid; grid-template-columns: 110px 1fr; gap: .9rem; align-items: start; }
.step-share-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.clip-fit { padding: .7rem .85rem; border-radius: var(--radius-sm); background: var(--accent-soft); font-size: .9rem; }
.clip-fit p { margin: 0; }
.clip-fit.is-warn { background: color-mix(in srgb, var(--warn) 16%, transparent); }
.clip-fit .btn { margin-top: .5rem; }
/* Your trip as a photo book */
.book-teaser { display: grid; gap: .7rem; margin-top: .6rem; justify-items: start; }
.teaser-pages { display: flex; gap: .6rem; overflow-x: auto; width: 100%; padding: .3rem .1rem .8rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.teaser-pages img { display: block; height: 240px; width: auto; aspect-ratio: 210 / 297; border-radius: 3px; background: #fff; box-shadow: 0 6px 18px rgb(0 0 0 / .18); }
.teaser-pages img.is-cover { height: 260px; border-radius: 3px 8px 8px 3px; }
/* The scroll strip must not widen the page (grid with justify-items: start sizes to content) */
.teaser-wrap { justify-self: stretch; width: 100%; min-width: 0; }
html.lightbox-open, html.lightbox-open body { overflow: hidden; overscroll-behavior: none; }
.teaser-page { flex: none; padding: 0; border: 0; background: none; cursor: zoom-in; scroll-snap-align: start; }
.teaser-lightbox { position: fixed; inset: 0; z-index: 1000; touch-action: none; display: flex; align-items: center; justify-content: center; background: rgb(8 12 11 / .94); padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom)); }
.teaser-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 4px; box-shadow: 0 20px 60px rgb(0 0 0 / .5); }
.teaser-lightbox button { position: absolute; border: 0; border-radius: 999px; background: rgb(255 255 255 / .14); color: #fff; width: 46px; height: 46px; font-size: 26px; line-height: 1; cursor: pointer; }
.teaser-lightbox .tl-close { top: max(14px, env(safe-area-inset-top)); right: 14px; font-size: 20px; }
.teaser-lightbox .tl-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.teaser-lightbox .tl-next { right: 10px; top: 50%; transform: translateY(-50%); }
.teaser-lightbox .tl-count { position: absolute; bottom: max(14px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); color: #d6e1de; font-size: .85rem; font-weight: 600; }
.teaser-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.teaser-wait { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-weight: 600; }
.book-card .start-icon { background: linear-gradient(135deg, #0f766e, #f59e0b); }
.book-card .start-icon svg { fill: #fff; }
/* Sample photo book in the app */
.demo-book { display: grid; gap: .8rem; width: 100%; }
.demo-book-head { display: grid; gap: .15rem; }
.demo-flip { position: relative; display: grid; justify-items: center; gap: .5rem; padding: 0 2.6rem; }
.demo-flip-stage { display: flex; justify-content: center; width: 100%; max-width: 760px; }
.demo-flip-stage img { display: none; width: 100%; max-width: 380px; height: auto; background: #fff; border-radius: 3px; box-shadow: 0 10px 30px rgb(0 0 0 / .22); }
.demo-flip-stage img.is-on, .demo-flip:not(.is-ready) .demo-flip-stage img:first-child { display: block; }
.demo-flip-stage img.is-single { border-radius: 3px 9px 9px 3px; }
.demo-flip-stage img.is-left, .demo-flip-stage img.is-right { width: 50%; max-width: 380px; }
.demo-flip-stage img.is-left { border-radius: 4px 0 0 4px; box-shadow: 0 10px 30px rgb(0 0 0 / .22), inset -14px 0 20px -14px rgb(0 0 0 / .3); }
.demo-flip-stage img.is-right { border-radius: 0 4px 4px 0; }
.demo-flip-nav { position: absolute; top: 45%; transform: translateY(-50%); z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; box-shadow: var(--shadow); }
.demo-flip-nav svg { width: 22px; height: 22px; fill: currentColor; }
.demo-flip-nav:disabled { opacity: .35; cursor: default; }
.demo-flip-nav.is-prev { left: 0; }
.demo-flip-nav.is-next { right: 0; }
.demo-flip-count { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── A step, read-only: a postcard over the map ───────────── */
@font-face { font-family: "FB Display"; src: url("/fonts/DMSerifDisplay-Regular.ttf") format("truetype"); font-display: swap; }
.pv-backdrop { align-items: flex-end; padding: 0; background: rgb(6 10 9 / .28); backdrop-filter: none; }
.pv {
    position: relative; width: 100%; max-width: 680px;
    height: calc(100dvh - max(16vh, env(safe-area-inset-top) + 72px)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--surface); color: var(--text); border-radius: 30px 30px 0 0;
    box-shadow: 0 -18px 60px rgb(0 0 0 / .28);
    padding: 0 0 calc(18px + env(safe-area-inset-bottom));
    animation: pv-up .42s var(--ease);
}
@media (min-width: 760px) {
    .pv-backdrop { align-items: center; background: rgb(6 10 9 / .4); }
    .pv { height: auto; max-height: 90dvh; border-radius: 30px; box-shadow: 0 40px 120px rgb(0 0 0 / .4); animation-name: pv-pop; }
}
@keyframes pv-up { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes pv-pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.pv-handle { display: block; width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 10px auto 0; }
@media (min-width: 760px) { .pv-handle { display: none; } }
.pv-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 10px 22px;
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); }
.pv-count { font-size: .8rem; color: var(--muted); letter-spacing: .08em; }
.pv-count b { font-family: "FB Display", Georgia, serif; font-weight: 400; font-size: 1.35rem; color: var(--text); letter-spacing: 0; }
.pv-bar-actions { display: flex; gap: 6px; }
.pv-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .2s, background .2s; }
.pv-icon:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.pv-icon[disabled] { opacity: .3; cursor: default; }
.pv-icon svg { width: 20px; height: 20px; fill: currentColor; }

/* One step's content slides in from the side it came from */
.pv-page { animation: pv-fade .32s var(--ease); }
.pv.go-next .pv-page { animation-name: pv-from-right; }
.pv.go-prev .pv-page { animation-name: pv-from-left; }
@keyframes pv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pv-from-right { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes pv-from-left { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pv, .pv-page { animation: none !important; } }

.pv-photo-frame { position: relative; margin: 4px 14px 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3;
    box-shadow: 0 14px 34px rgb(16 24 22 / .18); }
.pv-cover { display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; background: none; }
.pv-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Postage stamp with the day */
.pv-stamp { position: absolute; top: 14px; right: 14px; display: grid; justify-items: center; gap: 0; width: 64px; padding: 8px 4px 7px;
    background: #fbf8f1; color: #1b2120; transform: rotate(4deg);
    border: 2px dashed rgb(15 118 110 / .55); outline: 4px solid #fbf8f1; box-shadow: 0 6px 16px rgb(0 0 0 / .28); }
.pv-stamp-day { font-family: "FB Display", Georgia, serif; font-size: 1.7rem; line-height: 1; }
.pv-stamp-month { font-size: .62rem; font-weight: 800; letter-spacing: .2em; color: #0f766e; }
.pv-stamp-year { font-size: .58rem; letter-spacing: .14em; color: #68726e; }

.pv-head { padding: 22px 24px 6px; }
.pv-eyebrow { margin: 0 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.pv-head h2 { margin: 0; font-family: "FB Display", Georgia, serif; font-weight: 400; font-size: clamp(1.9rem, 7vw, 2.7rem); line-height: 1.06; letter-spacing: -.01em; text-wrap: balance; }
.pv-when { margin: 10px 0 0; color: var(--muted); font-size: .93rem; }
.pv-dot { margin: 0 6px; }
.pv-share { margin: 10px 24px 0; }
.pv-people { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 14px 24px 0; }
.pv-person { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.pv-person.is-active { border-color: var(--accent); background: var(--accent-soft); }
.pv-story { padding: 18px 24px 4px; font-size: 1.06rem; line-height: 1.78; max-width: 64ch; }
.pv-byline { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.pv-empty { padding: 16px 24px 0; color: var(--muted); font-style: italic; }
.pv-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 18px 14px 4px; }
.pv-tile { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; }
.pv-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.pv-tile:hover img { transform: scale(1.05); }
.pv-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 20px 14px 4px; }
.pv-nav-btn { display: grid; gap: 3px; padding: 13px 15px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; text-align: left; transition: border-color .2s, transform .2s; min-width: 0; }
.pv-nav-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.pv-nav-btn.next { text-align: right; grid-column: 2; }
.pv-nav-dir { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pv-nav-name { font-family: "FB Display", Georgia, serif; font-size: 1.1rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-preload { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.pv-preload img { width: 660px; height: auto; }
.step-arrows { display: inline-flex; gap: 2px; }
.step-arrows .icon-btn[disabled] { opacity: .3; }

/* ── Buddies: stories row, invite card, people you may know ── */
.avatar.xl { width: 62px; height: 62px; font-size: 1.15rem; }
.story-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; margin: -.25rem 0 .5rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.story-row::-webkit-scrollbar { display: none; }
.story { flex: none; display: grid; justify-items: center; gap: 6px; width: 72px; padding: 0; border: 0; background: none; color: var(--text); text-decoration: none; cursor: pointer; font: inherit; }
.story-ring { display: grid; place-items: center; padding: 3px; border-radius: 50%; background: var(--line); }
.story-ring > .avatar { box-shadow: 0 0 0 3px var(--surface); }
.story-ring.live { background: conic-gradient(from 210deg, var(--accent), #f59e0b, #ef4444, #d946ef, var(--accent)); }
.story-ring.add { background: none; border: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); padding: 2px; }
.add-avatar { background: var(--accent-soft) !important; color: var(--accent) !important; }
.add-avatar svg { width: 26px; height: 26px; fill: currentColor; }
.story-name { max-width: 72px; font-size: .76rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story:active .story-ring { transform: scale(.94); }
.story-ring { transition: transform .15s var(--ease); }

.invite-hero { position: relative; overflow: hidden; padding: 1.35rem 1.15rem 1.15rem;
    background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, #f59e0b 14%, transparent), transparent 60%),
                radial-gradient(120% 90% at 0% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--surface); }
.invite-top { display: flex; align-items: center; gap: 14px; margin-bottom: 1rem; }
.invite-top h2 { margin: 0 0 .2rem; font-size: 1.25rem; line-height: 1.2; }
.invite-top p { margin: 0; color: var(--muted); font-size: .92rem; }
.invite-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: .7rem .8rem; margin-bottom: .7rem; border-radius: 14px; cursor: pointer;
    border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); color: var(--text); font: inherit; text-align: left; }
.invite-link svg { flex: none; width: 20px; height: 20px; fill: var(--accent); }
.invite-url { flex: 1; min-width: 0; font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.invite-copy { flex: none; font-size: .82rem; font-weight: 700; color: var(--accent); }
.invite-main { min-height: 52px; font-size: 1.05rem; border-radius: 14px; gap: 8px; }
.invite-main svg { width: 20px; height: 20px; fill: currentColor; }
.share-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 1rem; }
.invite-pick { display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: .78rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.invite-pick > span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--surface-2); color: var(--text); transition: transform .15s var(--ease); }
.invite-pick > span svg { width: 25px; height: 25px; fill: currentColor; }
.invite-pick:hover > span, .invite-pick:focus-visible > span { transform: translateY(-2px); }
.invite-pick:active > span { transform: scale(.94); }
.invite-pick.wa > span { background: #25d366; color: #fff; }
.invite-pick.mail > span { background: #2563eb; color: #fff; }
.invite-pick.qr-pick[aria-pressed="true"] > span { background: var(--text); color: var(--surface); }
.invite-qr { display: grid; justify-items: center; gap: .3rem; margin-top: 1rem; text-align: center; }
.invite-qr .qr { width: min(100%, 240px); }
.contacts-pick { margin-top: 1rem; }
.contacts-btn { gap: 8px; min-height: 46px; border-radius: 14px; }
.contacts-btn svg { width: 20px; height: 20px; fill: currentColor; }

.suggest-card h2 { margin-bottom: .75rem; }
.suggest-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -1.15rem; padding: 2px 1.15rem 6px; scrollbar-width: none; }
.suggest-row::-webkit-scrollbar { display: none; }
.suggest { position: relative; flex: none; width: 150px; scroll-snap-align: start; display: grid; justify-items: center; align-content: start; gap: 4px;
    padding: 18px 12px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: center; }
.suggest .avatar { margin-bottom: 6px; }
.suggest-name { max-width: 100%; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-why { min-height: 2.5em; color: var(--muted); font-size: .76rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.suggest .btn { margin-top: 8px; }
.suggest-x { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.suggest-x svg { width: 16px; height: 16px; fill: currentColor; }
.suggest-x:hover { background: var(--surface-2); color: var(--text); }

/* ── Admin page ── */
.admin-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 1rem; }
@media (min-width: 760px) { .admin-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .admin-kpis { grid-template-columns: repeat(6, 1fr); } }
.admin-kpi { display: grid; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); }
.admin-kpi span { color: var(--muted); font-size: .78rem; font-weight: 600; }
.admin-kpi strong { font-size: 1.6rem; line-height: 1.15; }
.admin-kpi small { color: var(--muted); font-size: .76rem; }
.admin-bar { display: block; height: 6px; margin-top: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.admin-bar b { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.admin-bar b.warn { background: var(--warn); }
.admin-grid { display: grid; gap: 0 1rem; }
@media (min-width: 900px) { .admin-grid { grid-template-columns: 1fr 1fr; } }
.admin-chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.admin-chart span { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.admin-chart b { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--accent); }
.admin-chart-axis { display: flex; justify-content: space-between; margin-top: 4px; }
.admin-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.admin-sources li { display: grid; grid-template-columns: minmax(110px, 40%) 1fr auto; align-items: center; gap: 10px; font-size: .9rem; }
.admin-sources i { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.admin-sources i b { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.admin-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }
.admin-table-wrap { overflow-x: auto; margin: 0 -1.15rem; padding: 0 1.15rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 820px; }
.admin-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tbody tr { cursor: pointer; }
.admin-table tbody tr:hover { background: var(--surface-2); }
.admin-table tr.is-internal { opacity: .8; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table .nowrap, .admin-trip .nowrap { white-space: nowrap; }
.admin-who { display: flex; gap: 10px; align-items: flex-start; }
.admin-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 99px; font-size: .7rem; font-style: normal; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.admin-tag.pro { background: var(--accent-soft); color: var(--accent); }
.admin-tag.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.admin-note { color: var(--warn); }
.admin-sheet { max-width: 640px; }
.admin-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 1rem 0; font-size: .9rem; }
.admin-facts dt { color: var(--muted); }
.admin-facts dd { margin: 0; }
.admin-facts .break { word-break: break-all; }
.admin-trip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.admin-trip .grow { min-width: 0; flex: 1 1 220px; }

.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Photo book page ── */
.book-hero { position: relative; margin: -.25rem 0 1rem; padding: 1rem 1.15rem 1.4rem; border-radius: var(--radius); overflow: hidden;
    background: radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
                radial-gradient(80% 100% at 100% 100%, color-mix(in srgb, #f59e0b 14%, transparent), transparent 60%), var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow); }
.book-hero .back-link { display: inline-block; margin-bottom: .6rem; }
.book-hero-grid { display: grid; gap: 1.4rem; align-items: center; }
@media (min-width: 700px) { .book-hero-grid { grid-template-columns: minmax(200px, 300px) 1fr; gap: 2.2rem; } .book-hero { padding: 1.4rem 2rem 2rem; } }
.book-3d-wrap { display: grid; place-items: center; padding: 10px 0 18px; perspective: 1200px; }
.book-3d { --w: 210; --h: 297; position: relative; width: min(100%, calc(230px * var(--w) / max(var(--w), var(--h)) + 40px)); aspect-ratio: var(--w) / var(--h);
    max-height: min(300px, 34vh); transform: rotateY(-16deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .5s var(--ease), aspect-ratio .3s; }
.book-3d:hover { transform: rotateY(-6deg) rotateX(2deg); }
.book-3d::before { content: ""; position: absolute; inset: 3px -9px 3px auto; width: 10px; border-radius: 0 3px 3px 0;
    background: repeating-linear-gradient(to bottom, #f4f1ea 0 2px, #ddd8cc 2px 3px); transform: translateZ(-1px); }
.book-3d::after { content: ""; position: absolute; left: 6%; right: -4%; bottom: -16px; height: 18px; border-radius: 50%; background: rgb(0 0 0 / .28); filter: blur(10px); z-index: -1; }
.book-3d-cover { position: absolute; inset: 0; border-radius: 3px 6px 6px 3px; overflow: hidden; background: var(--accent) center / cover no-repeat;
    box-shadow: inset 6px 0 8px -4px rgb(0 0 0 / .45), inset -1px 0 0 rgb(255 255 255 / .2), 0 14px 30px rgb(0 0 0 / .25); }
.book-3d-cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 9%; background: linear-gradient(90deg, rgb(0 0 0 / .25), transparent); }
.book-3d-text { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 28% 9% 9%; color: #fff;
    background: linear-gradient(transparent, rgb(0 0 0 / .62)); text-shadow: 0 1px 6px rgb(0 0 0 / .4); }
.book-3d-text strong { font-size: clamp(1rem, 4.4vw, 1.35rem); line-height: 1.1; overflow-wrap: anywhere; }
.book-3d-text span { font-size: .72rem; opacity: .9; }
.book-3d.is-serif .book-3d-text strong { font-family: "FB Display", Georgia, serif; font-weight: 400; font-size: clamp(1.1rem, 4.8vw, 1.5rem); }
.book-hero-text .eyebrow { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.book-hero-text h1 { margin: .2rem 0 .35rem; font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.1; }
.book-hero-text > p { margin: 0; }
.book-hero-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: .9rem 0 1.1rem; }
.book-hero-stats span { padding: 5px 11px; border-radius: 99px; background: color-mix(in srgb, var(--surface-2) 80%, transparent); border: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.book-hero-stats b { color: var(--text); }
.book-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.book-hero-actions > * { margin: 0; }

.step-head { display: flex; align-items: center; gap: 10px; }
.step-num { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .85rem; font-weight: 800; }
.book-form .choice-body .page-shape { background: var(--surface-2) center / cover no-repeat; border-radius: 3px; box-shadow: 2px 2px 0 color-mix(in srgb, var(--text) 12%, transparent); }
.book-form .choice input:checked + .choice-body .page-shape { outline: 2px solid var(--accent); outline-offset: 2px; }
.book-form .card { scroll-margin-top: 80px; }

/* The make button stays in reach while scrolling through the choices */
.sticky-actions { position: sticky; bottom: 12px; z-index: 5; padding: 10px; margin: 0 -10px; border-radius: calc(var(--radius) + 6px);
    background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
@media (max-width: 767px) { .has-tabbar .sticky-actions { bottom: calc(var(--tabbar-h) + 8px + env(safe-area-inset-bottom)); } }

.originals-head { display: flex; align-items: center; gap: 12px; }
.originals-head h2 { margin: 0 0 2px; font-size: 1.02rem; }
.originals-head p { margin: 0; }
.originals-head .grow { min-width: 0; flex: 1; }
.originals-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, #f59e0b 16%, var(--surface)); color: #d97706; }
.originals-icon svg { width: 22px; height: 22px; fill: currentColor; }
.originals-body { display: grid; gap: .9rem; }
.originals-body > p { margin: 0; }

details.preview-note > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
details.preview-note > summary::-webkit-details-marker { display: none; }
details.preview-note > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
details.preview-note[open] > summary::after { transform: rotate(-135deg); }
details.preview-note[open] > summary { margin-bottom: .5rem; }
.book-exports .export-list .book-icon { background: var(--accent-soft); color: var(--accent); }
.book-hero-teaser { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
/* Your photo books: date and size with the bin on the first line, the buttons below (phone) */
.book-exports .export-list li { flex-wrap: wrap; }
.book-exports .export-list li > .member-name { flex: 1 1 0; min-width: 140px; }
.book-exports .export-list .member-name > .muted { white-space: nowrap; }
.book-exports .export-list li > .icon-btn { order: 2; }
.book-exports .export-list .export-actions { order: 3; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex-basis: 100%; padding-left: 52px; }
/* Narrow (phone): the buttons side by side under the details, from the left edge */
@container (max-width: 639px) {
    .book-exports .export-list .export-actions { padding-left: 0; flex-wrap: nowrap; gap: 6px; }
    .book-exports .export-list .export-actions .btn { flex: 1 1 auto; min-width: 0; padding-inline: .55rem; font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* All on one line only when the list itself is wide enough (the card, not the window, decides) */
.book-exports .export-list { container-type: inline-size; }
@container (min-width: 640px) {
    .book-exports .export-list li { flex-wrap: nowrap; }
    .book-exports .export-list .export-actions { order: 1; flex-basis: auto; flex-wrap: nowrap; padding-left: 0; }
}
@media (max-width: 560px) {
    .originals-head { flex-wrap: wrap; }
    .originals-head .grow { flex: 1 1 calc(100% - 56px); }
    .originals-head > .btn { margin-left: 52px; }
}

/* Viewer / traveler, right in the trip's travel party */
.role-toggle { display: inline-flex; flex: none; padding: 3px; border-radius: 99px; background: var(--surface-2); }
.role-toggle button { padding: 5px 11px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: 600 .78rem var(--font); cursor: pointer; }
.role-toggle button.on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.originals-app { display: flex; align-items: center; gap: 10px; margin-top: .7rem; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: .86rem; }
.originals-app span { flex: 1; }
.originals-app .btn { flex: none; }

/* VAT per country (admin) */
.vat-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 1rem; }
.vat-quarter { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.vat-quarter select { min-height: 38px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
.vat-bar .btn { margin-left: auto; }
.vat-section h2 { margin-bottom: .2rem; }
.vat-oss { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), var(--shadow); }
.vat-table { min-width: 720px; }
.vat-table tbody tr { cursor: default; }
.vat-table tfoot td { padding: 10px; border-top: 2px solid var(--line); }
.vat-empty { margin: .5rem 0 0; color: var(--muted); font-style: italic; }
.vat-warn { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--text); font-size: .9rem; }
.vat-help summary { cursor: pointer; font-weight: 600; }
.vat-help ul { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: 6px; }

/* Report inappropriate content (someone else's trip) */
.report-box { margin-top: 1.4rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.report-box summary { cursor: pointer; color: var(--muted); font-size: .86rem; font-weight: 600; }
.report-box[open] summary { margin-bottom: .7rem; color: var(--text); }
.report-done { color: var(--accent); font-weight: 600; }
.pages-seg { flex-wrap: wrap; }
.pages-seg label { flex: 1 1 30%; }
.order-atcost { margin-top: .6rem; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 12%, transparent); }

/* Ordered books on the photo book page */
.order-cards { display: grid; gap: 10px; }
.order-card { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; background: var(--surface); }
.order-card:hover { border-color: var(--accent); }
.order-thumb { flex: none; width: 56px; height: 72px; border-radius: 3px 6px 6px 3px; background: var(--accent) center / cover no-repeat;
    box-shadow: inset 4px 0 6px -3px rgb(0 0 0 / .45), 0 4px 10px rgb(0 0 0 / .15); }
.order-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.order-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-progress { display: flex; gap: 4px; max-width: 220px; margin-top: 2px; }
.order-progress i { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-2); }
.order-progress i.done { background: var(--accent); }
.order-step { color: var(--accent); font-weight: 600; }
.order-pill { justify-self: start; padding: 2px 10px; border-radius: 99px; font-size: .76rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.order-pill.wait { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.ordered-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 10px 3px 7px; border-radius: 99px; font-size: .74rem; font-weight: 600; white-space: nowrap; background: var(--accent-soft); color: var(--accent); text-decoration: none; transition: background .15s; }
.ordered-tag:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); text-decoration: none; }
.ordered-tag svg { width: 14px; height: 14px; fill: currentColor; }
.ordered-tag b { font-weight: 700; letter-spacing: .02em; }
.book-exports .export-list .book-icon.is-ordered { background: var(--accent); }
.book-exports .export-list .book-icon.is-ordered svg { fill: var(--accent-ink); }
.book-exports .export-list .export-when { white-space: nowrap; font-weight: 600; }

/* Order page: leaf through the book you order */
.order-flip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.order-flip-head h2 { margin: 0; }
.order-flip-stage { position: relative; display: grid; place-items: center; min-height: 220px; margin: .8rem 0 .4rem; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.order-flip-stage canvas { display: block; max-width: 100%; height: auto; border-radius: 2px; box-shadow: 0 6px 20px rgb(0 0 0 / .18); }
.order-flip-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; margin-top: -19px; padding: 0; border: 0; border-radius: 50%;
    background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgb(0 0 0 / .18); cursor: pointer; }
.order-flip-nav svg { width: 22px; height: 22px; fill: currentColor; }
.order-flip-nav:disabled { opacity: .3; cursor: default; }
.order-flip-nav.prev { left: 8px; }
.order-flip-nav.next { right: 8px; }

/* Postcards: the card preview (one image with both sides; each side shows its half) */
.pc-stage { position: relative; perspective: 1600px; padding: 10px 6px 4px; cursor: pointer; overflow: hidden; }
/* iOS WebKit counts the turned-over back side as overflow: keep the page from scrolling sideways */
.postcard-create, .postcard-show { overflow-x: clip; }
.pc-card { position: relative; width: 100%; max-width: 620px; margin: 0 auto; aspect-ratio: 1794 / 1287; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3, .7, .3, 1); }
.pc-card.flipped { transform: rotateY(180deg); }
.pc-side { position: absolute; inset: 0; border-radius: 6px; background: var(--surface-2) no-repeat; background-size: 200% 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
    box-shadow: 0 10px 30px rgb(0 0 0 / .18), 0 1px 3px rgb(0 0 0 / .12); }
.pc-front { background-position: right center; }
.pc-back { background-position: left center; transform: rotateY(180deg); background-color: #fff; }
.pc-busy { position: absolute; top: 50%; left: 50%; margin: -12px 0 0 -12px; }
.pc-sides { max-width: 260px; margin: .8rem auto .2rem; }
.pc-preview > .muted { text-align: center; margin: .4rem 0 0; }
@media (min-width: 900px) { .postcard-create .pc-preview { position: sticky; top: 12px; z-index: 2; } }
.pc-designs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .pc-designs { grid-template-columns: repeat(4, 1fr); } }
.pc-design { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 2px solid var(--border); border-radius: 14px; cursor: pointer; background: var(--surface); transition: border-color .15s, transform .15s; }
.pc-design:hover { transform: translateY(-1px); }
.pc-design.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.pc-design input { position: absolute; opacity: 0; pointer-events: none; }
.pc-design-icon { display: block; height: 54px; margin-bottom: 4px; border-radius: 6px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 50%, #fff), var(--accent)); position: relative; overflow: hidden; }
.pc-design-stamp::after { content: ''; position: absolute; right: 8px; bottom: 7px; width: 26px; height: 20px; border: 2px solid #fff; border-radius: 4px; transform: rotate(-6deg); }
.pc-design-greetings::after { content: 'Aa'; position: absolute; left: 10px; bottom: 6px; color: #fff; font: 700 22px/1 'DM Serif Display', Georgia, serif; }
.pc-design-polaroid { background: #efe9dc; }
.pc-design-polaroid::after { content: ''; position: absolute; left: 50%; top: 7px; width: 34px; height: 40px; margin-left: -17px; background: linear-gradient(color-mix(in srgb, var(--accent) 60%, #fff) 0 72%, #fff 72%); border: 3px solid #fff; transform: rotate(-5deg); box-shadow: 0 2px 5px rgb(0 0 0 / .2); }
.pc-photos { margin-top: 0; }
.pc-count { text-align: right; margin: -.3rem 0 0; }
.pc-addresses { display: flex; flex-wrap: wrap; gap: 8px; max-height: 196px; overflow-y: auto; padding: 2px; }
.pc-address { display: inline-flex; align-items: stretch; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.pc-address.is-on { border-color: var(--accent); }
.pc-address button { border: 0; background: none; color: inherit; cursor: pointer; padding: 7px 10px; text-align: left; display: flex; flex-direction: column; line-height: 1.2; }
.pc-address .pc-address-x { padding: 0 9px; font-size: 18px; color: var(--muted); justify-content: center; }
.pc-address-new { padding: 7px 12px; cursor: pointer; color: var(--accent); font-weight: 600; }
.pc-recent { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--border); display: grid; gap: 4px; }
.pc-recent h3 { margin: 0 0 .2rem; font-size: .95rem; }
.pc-cta { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 11px 13px; border-radius: 14px; background: var(--surface-2); color: inherit; text-decoration: none; border: 1px dashed var(--border); }
.pc-cta:hover { border-color: var(--accent); }
.pc-cta-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: var(--accent-ink, #fff); }
.pc-cta-icon svg { width: 22px; height: 22px; fill: currentColor; }

/* Postcards: 1 card or a bundle */
.pc-packs { display: grid; gap: 10px; margin: .4rem 0 .6rem; }
.pc-pack { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n total" "unit total"; align-items: center; column-gap: 10px;
    padding: 10px 12px; border: 2px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--surface); }
.pc-pack.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.pc-pack input { position: absolute; opacity: 0; pointer-events: none; }
.pc-pack-n { grid-area: n; font-weight: 600; line-height: 1.25; padding-right: 4px; }
.pc-pack-unit { grid-area: unit; color: var(--muted); font-size: .85rem; }
.pc-pack-total { grid-area: total; font-size: 1.05rem; }
.pc-pack-save { position: absolute; top: -9px; right: 10px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink, #fff); font-size: .72rem; font-weight: 700; }
.pc-credit { display: grid; gap: 2px; padding: 10px 12px; margin-bottom: .6rem; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }

/* Postcards: the envelope next to "Share" in a step */
.pv-icon.pc-icon, .place-share.pc-btn { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.place-share.pc-btn svg { fill: currentColor; }
.place-share.pc-btn + .place-share { margin-left: -4px; }

/* Admin: visitor statistics */
.stats-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: .2rem 0 1rem; }
.stats-tabs a { padding: 7px 14px; border-radius: 999px; background: var(--surface-2); color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; }
.stats-tabs a.on { background: var(--accent); color: var(--accent-ink, #fff); }
.stats-chart { display: flex; align-items: flex-end; gap: 3px; height: 150px; margin-top: 10px; }
.stats-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.stats-col i { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; background: color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 4px 4px 0 0; overflow: hidden; }
.stats-col i b { display: block; width: 100%; background: var(--accent); }
.stats-col span { font-size: 10px; color: var(--muted); height: 14px; white-space: nowrap; }
.stats-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); vertical-align: middle; }
.stats-key.user { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; margin: 14px 0; }
.stats-grid h3 { margin: 1rem 0 .3rem; font-size: .95rem; }
.stats-bar { display: grid; grid-template-columns: minmax(110px, 1.2fr) 2fr 48px; gap: 10px; align-items: center; padding: 5px 0; font-size: .9rem; }
.stats-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-track { height: 9px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.stats-track i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.stats-bar b { text-align: right; }
.stats-own { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.stats-own > div { flex: 1; min-width: 240px; }
.stats-own h2 { margin: 0 0 .2rem; font-size: 1.05rem; }

.pc-design-route::after { content: ''; position: absolute; right: 7px; bottom: 6px; width: 30px; height: 22px; border: 2px solid #fff; border-radius: 4px; background: linear-gradient(150deg, transparent 45%, #fff 46% 54%, transparent 55%), #3e6e5a; }
.pc-design-airmail { background: repeating-linear-gradient(135deg, #ce2636 0 7px, #fff 7px 12px, #1d4591 12px 19px, #fff 19px 24px); }
.pc-design-airmail::after { content: ''; position: absolute; inset: 7px; border-radius: 2px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 50%, #fff), var(--accent)); }
.pc-design-collage { background: #fff; }
.pc-design-collage::after { content: ''; position: absolute; inset: 5px; background: linear-gradient(90deg, transparent 48%, #fff 48% 52%, transparent 52%), linear-gradient(transparent 46%, #fff 46% 54%, transparent 54%), linear-gradient(135deg, color-mix(in srgb, var(--accent) 50%, #fff), var(--accent)); }
.pc-design-boarding { background: linear-gradient(color-mix(in srgb, var(--accent) 55%, #fff) 0 52%, var(--accent) 52% 58%, #f8f4eb 58%); }
.pc-design-boarding::after { content: ''; position: absolute; left: 8px; bottom: 8px; width: 40%; height: 4px; background: #1b2120; box-shadow: 0 -7px 0 #737c78; }
.pc-design-gallery { background: #fff; border: 1px solid var(--border); }
.pc-design-gallery::after { content: ''; position: absolute; left: 6px; right: 6px; top: 6px; bottom: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 50%, #fff), var(--accent)); }
.pc-design-photo { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 50%, #fff), var(--accent)); }
@media (min-width: 640px) { .pc-designs { grid-template-columns: repeat(3, 1fr); } }

/* Orders page */
.orders-page .order-cards { display: grid; gap: 10px; margin-top: .6rem; }
.orders-card-thumb { width: 72px; height: 50px; border-radius: 4px; }
.orders-credit { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: .3rem 0 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.orders-empty { display: grid; gap: 6px; justify-items: start; }
.orders-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.orders-table th, .orders-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.orders-table th { font-size: .78rem; color: var(--muted); font-weight: 600; }
.orders-table .num { text-align: right; }
.orders-table tr.muted td { color: var(--muted); }

/* Trip members & sharing */
.members-page .card { margin-bottom: 14px; }
.seg-mini { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--surface-2); }
.seg-mini button { border: 0; background: none; color: var(--muted); font: inherit; font-size: .82rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.seg-mini button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.member-list.followers li.is-invited { opacity: .75; }
.add-role { display: flex; align-items: center; gap: 10px; margin: .2rem 0 .6rem; }
.buddy-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.buddy-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.buddy-chip svg { width: 16px; height: 16px; fill: var(--accent); }
.buddy-chip:hover { border-color: var(--accent); }
.add-people .share-row { margin-top: .7rem; }
.add-people .invite-main { margin-top: .3rem; }
.email-invite { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.email-invite summary { cursor: pointer; font-weight: 600; }
.email-invite .inline-form { margin-top: .6rem; }

/* Profile: links to route recording and orders */
.profile-links { display: grid; gap: 10px; margin-bottom: 14px; }
.profile-link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; }
.profile-link:hover { border-color: var(--accent); }
.profile-link-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent); }
.profile-link-icon svg { width: 22px; height: 22px; fill: currentColor; }
.profile-link .chevron-right { width: 20px; height: 20px; fill: var(--muted); }

/* Postcards: tap to see it large */
.pc-zoom-badge { position: absolute; right: 14px; top: 18px; z-index: 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgb(0 0 0 / .5); color: #fff; pointer-events: none; }
.pc-zoom-badge svg { width: 20px; height: 20px; fill: currentColor; }
.pc-zoom { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; background: rgb(8 14 13 / .92); }
.pc-zoom-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .14); color: #fff; cursor: pointer; }
.pc-zoom-close svg { width: 24px; height: 24px; fill: currentColor; }
.pc-zoom-area { position: relative; width: 100%; flex: 1; min-height: 0; display: grid; place-items: center; perspective: 2000px; }
.pc-zoom-turn { width: min(96vw, 1200px, calc((100vh - 170px) * 1.394)); cursor: pointer; perspective: 2000px; }
.pc-zoom .pc-card { max-width: none; }
.pc-zoom .pc-sides { flex: none; max-width: 260px; width: 100%; margin: 0; }
.pc-zoom .segmented { background: rgb(255 255 255 / .12); }
.pc-zoom .segmented button { color: #fff; }
.pc-zoom .segmented button.on { background: #fff; color: #111; }
.pc-zoom-hint { margin: 0; color: rgb(255 255 255 / .6); font-size: .82rem; }
/* A phone held upright: the card turned sideways, so it can be nearly twice as large */
@media (orientation: portrait) and (max-width: 700px) {
    .pc-zoom-turn { position: absolute; left: 50%; top: 50%; width: min(calc(100vh - 190px), calc((100vw - 24px) * 1.394)); transform: translate(-50%, -50%) rotate(90deg); }
}

/* Book PDF */
.pdf-points { margin: 0; padding-left: 1.2rem; display: grid; gap: 4px; }
.pdf-ready .btn svg { width: 20px; height: 20px; fill: currentColor; vertical-align: -4px; }

/* Following: trips of others, per person */
.follow-person { margin-bottom: 14px; }
.follow-head { display: flex; align-items: center; gap: 14px; margin-bottom: .6rem; }
.follow-head h2 { margin: 0 0 .15rem; }
.follow-head .on-trip-badge { margin-left: 0; }
.follow-trips { display: grid; gap: 8px; }
.follow-trip { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; background: var(--surface); }
.follow-trip:hover { border-color: var(--accent); }
.follow-cover { flex: none; width: 64px; height: 48px; border-radius: 8px; background: var(--accent) center / cover no-repeat; }
.follow-trip .chevron-right { width: 20px; height: 20px; fill: var(--muted); }
.live-pill { padding: 2px 9px; border-radius: 99px; background: var(--live, #16a34a); color: #fff; font-size: .72rem; font-weight: 700; }
.tab-dot.live { background: var(--live, #16a34a); }
.members-invite { margin: .4rem 0 .6rem; padding: 14px; box-shadow: none; }

/* ══ Look: fresh light / Midnight dark, in our green — 2026-10-19 ═════════════════════════════════
   One layer over everything above. Light: fresh white, ocean blue, ink-black buttons and a
   sunset accent. Dark: deep ink with coral and a soft glow. A modern rounded sans (Plus
   Jakarta Sans, served by us). Only tokens and shared building blocks change, so every
   page follows. */

@font-face { font-family: "Jakarta"; src: url("/fonts/PlusJakartaSans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/PlusJakartaSans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/PlusJakartaSans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/PlusJakartaSans-700.woff2") format("woff2"); font-weight: 700 750; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/PlusJakartaSans-800.woff2") format("woff2"); font-weight: 800 900; font-display: swap; }

:root {
    --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bg: #f7f8fb;
    --bg-glow: transparent;
    --surface: #ffffff;
    --surface-2: #f1f4f9;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e8ecf3;
    --accent: #0f766e;
    --accent-strong: #0b5f58;
    --accent-ink: #ffffff;
    --accent-soft: #e1f3ef;
    --live: #ea580c;
    --live-soft: #fff1e6;
    --gold: #ea580c;
    --btn: linear-gradient(135deg, #129184, #0f766e);
    --btn-hover: linear-gradient(135deg, #0f766e, #0b5f58);
    --btn-ink: #ffffff;
    --btn-shadow: 0 10px 22px -10px rgb(15 118 110 / .55);
    --ring-live: conic-gradient(from 200deg, #f97316, #f59e0b, #14b8a6, #0f766e, #f97316);
    --radius: 24px;
    --radius-sm: 14px;
    --shadow: 0 1px 2px rgb(15 23 42 / .04), 0 12px 32px -18px rgb(15 23 42 / .2);
    --shadow-hover: 0 2px 4px rgb(15 23 42 / .05), 0 22px 44px -18px rgb(15 23 42 / .28);
    --shadow-lg: 0 30px 70px -20px rgb(15 23 42 / .35);
    --tab-bg: rgb(255 255 255 / .9);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0b0d14; --bg-glow: rgb(45 212 191 / .14); --surface: #141826; --surface-2: #1b2032; --text: #f2f4fa; --muted: #8b93a8; --line: #232a3c;
        --accent: #2dd4bf; --accent-strong: #5eead4; --accent-ink: #042f2b; --accent-soft: rgb(45 212 191 / .14);
        --live: #ffb347; --live-soft: rgb(255 179 71 / .14); --gold: #ffb347;
        --btn: linear-gradient(135deg, #2dd4bf, #14b8a6); --btn-hover: linear-gradient(135deg, #5eead4, #2dd4bf); --btn-ink: #042f2b; --btn-shadow: 0 12px 26px -12px rgb(45 212 191 / .55);
        --ring-live: conic-gradient(from 200deg, #2dd4bf, #ffb347, #ff6b57, #2dd4bf);
        --shadow: 0 1px 1px rgb(0 0 0 / .35); --shadow-hover: 0 18px 40px -18px rgb(0 0 0 / .8); --tab-bg: rgb(22 27 42 / .94);
    }
}
:root[data-theme="dark"] {
    --bg: #0b0d14; --bg-glow: rgb(45 212 191 / .14); --surface: #141826; --surface-2: #1b2032; --text: #f2f4fa; --muted: #8b93a8; --line: #232a3c;
    --accent: #2dd4bf; --accent-strong: #5eead4; --accent-ink: #042f2b; --accent-soft: rgb(45 212 191 / .14);
    --live: #ffb347; --live-soft: rgb(255 179 71 / .14); --gold: #ffb347;
    --btn: linear-gradient(135deg, #2dd4bf, #14b8a6); --btn-hover: linear-gradient(135deg, #5eead4, #2dd4bf); --btn-ink: #042f2b; --btn-shadow: 0 12px 26px -12px rgb(45 212 191 / .55);
    --ring-live: conic-gradient(from 200deg, #2dd4bf, #ffb347, #ff6b57, #2dd4bf);
    --shadow: 0 1px 1px rgb(0 0 0 / .35); --shadow-hover: 0 18px 40px -18px rgb(0 0 0 / .8); --tab-bg: rgb(22 27 42 / .94);
}

body { font-family: var(--font); background: radial-gradient(130% 340px at 50% -140px, var(--bg-glow), transparent 72%) no-repeat, var(--bg); letter-spacing: -.006em; }
button, input, select, textarea { font-family: inherit; }

/* Titles: bold, tight, modern */
h1, h2, h3 { letter-spacing: -.025em; }
.page-head h1 { font-weight: 800; font-size: clamp(1.9rem, 7.6vw, 2.4rem); letter-spacing: -.04em; line-height: 1.05; }
.page-head { align-items: flex-end; margin-bottom: 1.4rem; }
.page-head p.muted, .page-head > div > p { font-size: .96rem; margin-top: .45rem; max-width: 34rem; line-height: 1.5; }
h2 { font-size: 1.12rem; font-weight: 800; }
.card > h2:first-child, .card > .section-head:first-child { margin-bottom: .75rem; }
h3.subhead, .subhead { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 1.2rem 0 .6rem; }
.back-link { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .8rem .35rem .6rem; margin-bottom: .75rem; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: .82rem; font-weight: 700; }

/* Brand: a squircle with the pin */
.brand { font-weight: 800; font-size: 1.05rem; letter-spacing: -.03em; gap: .55rem; }
.brand svg { width: 28px; height: 28px; padding: 6px; border-radius: 9px; fill: var(--accent-ink); background: var(--accent); }

/* Cards */
.card { border-color: var(--line); border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1.05rem; }
a.card, .order-card, .follow-trip, .profile-link, .trip-tile, .pc-design, .pc-pack { transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; }
a.card:hover, .profile-link:hover, .trip-tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.card.highlight { background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); }
.stack { gap: 1.05rem; }

/* Buttons: the main one ink-black (light) or coral (dark); the rest quiet */
.btn { min-height: 48px; border-radius: 16px; font-weight: 700; letter-spacing: -.01em; }
.btn.sm { min-height: 38px; border-radius: 12px; padding: .35rem .95rem; }
.btn.primary { background: var(--btn); color: var(--btn-ink); border: 0; box-shadow: var(--btn-shadow); }
.btn.primary:hover { background: var(--btn-hover); }
.btn.ghost { background: var(--surface-2); border-color: transparent; color: var(--text); box-shadow: none; }
.btn.ghost:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--line)); }
.icon-btn { border-radius: 12px; }

/* Fields */
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=tel], input[type=url], input[type=search], select, textarea {
    border-radius: 14px; background: var(--surface-2); border: 1px solid transparent; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field > span, .field > legend { font-size: .85rem; font-weight: 700; }

/* Avatars and the story ring */
.avatar { font-weight: 800; box-shadow: none; }
.story-ring { background: color-mix(in srgb, var(--line) 80%, transparent); }
.story-ring.live { background: var(--ring-live); }
.story-ring > .avatar { box-shadow: 0 0 0 3px var(--bg); }
.story-ring.add { border-color: var(--accent); }
.story-ring.add .add-avatar { background: var(--accent-soft); color: var(--accent); }
.on-trip-badge { background: var(--live-soft); color: var(--live); }
.on-trip-badge::before { background: var(--live); }
.live-pill { background: var(--live); }

/* Invite card: calm, no coloured blobs */
.invite-hero { background: var(--surface); }
.invite-link { background: var(--surface-2); border-color: transparent; }
.invite-link svg { fill: var(--accent); }
.invite-main { border-radius: 16px; }
/* WhatsApp / e-mail / QR: three tiles with a small tinted icon */
.share-row { gap: 8px; }
.invite-pick { padding: 12px 4px 10px; border-radius: 16px; background: var(--surface-2); font-size: .76rem; font-weight: 700; gap: 7px; transition: transform .15s var(--ease), background .15s; }
.invite-pick:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--line)); }
.invite-pick:active { transform: scale(.97); }
.invite-pick > span { width: 36px; height: 36px; border-radius: 11px; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.invite-pick > span svg { width: 20px; height: 20px; }
.invite-pick:hover > span, .invite-pick:focus-visible > span, .invite-pick:active > span { transform: none; }
.invite-pick.wa > span { background: rgb(37 211 102 / .16); color: #1fa855; }
.invite-pick.mail > span { background: var(--accent-soft); color: var(--accent); }
.invite-pick.qr-pick[aria-pressed="true"] { background: var(--accent-soft); }
.invite-pick.qr-pick[aria-pressed="true"] > span { background: var(--accent); color: var(--accent-ink); }

/* Top bar */
.topbar { background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom-color: color-mix(in srgb, var(--line) 60%, transparent); }

/* Tab bar: floating, with a pill behind the active item */
@media (max-width: 767px) {
    .tabbar { inset: auto 12px max(8px, env(safe-area-inset-bottom)) 12px; height: var(--tabbar-h); padding: 0 6px; border-radius: 24px;
        border: 1px solid var(--line); background: var(--tab-bg); box-shadow: 0 18px 40px -16px rgb(0 0 0 / .35); }
    .tabbar a { position: relative; font-size: .67rem; font-weight: 700; }
    .tabbar a::before { content: ""; position: absolute; top: 9px; left: 50%; width: 52px; height: 30px; margin-left: -26px; border-radius: 999px;
        background: var(--accent-soft); opacity: 0; transform: scale(.7); transition: opacity .2s, transform .25s var(--ease); }
    .tabbar a.active::before { opacity: 1; transform: none; }
    .tabbar a svg, .tabbar a span { position: relative; }
    .has-tabbar .container { padding-bottom: calc(var(--tabbar-h) + 2rem + max(8px, env(safe-area-inset-bottom))); }
}
.topnav a.active { background: var(--accent-soft); color: var(--accent); }

/* Lists */
.member-list li { padding-block: .75rem; }
.order-card, .follow-trip, .profile-link { border-color: var(--line); border-radius: 18px; }
.order-card:hover, .follow-trip:hover { box-shadow: var(--shadow); }
.profile-link-icon { background: var(--accent-soft); color: var(--accent); border-radius: 12px; }

/* Segmented controls */
.segmented { border-radius: 14px; background: var(--surface-2); }
.segmented button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 4px 10px -4px rgb(0 0 0 / .18); }
.seg-mini { background: var(--surface-2); }

/* Small accents */
.eyebrow, .book-hero .eyebrow { color: var(--gold); letter-spacing: .12em; }
.pc-pack-save, .badge-gold { background: var(--live); color: #fff; }

/* The install banner never squeezes its text */
.install-banner { flex-wrap: wrap; }
.install-banner > .grow { flex: 1 1 160px; }

/* Grid columns never grow wider than the screen */
.order-grid { grid-template-columns: minmax(0, 1fr); }
.order-grid > * { min-width: 0; }
@media (min-width: 900px) { .order-grid { grid-template-columns: minmax(0, 1fr) 340px; } }

/* Avatars: a profile photo, or initials on a soft gradient of the person's colour */
.avatar { background: linear-gradient(140deg, color-mix(in srgb, var(--c) 72%, #fff), var(--c)); color: #fff; font-weight: 800; letter-spacing: .01em; }
.avatar.has-photo { background: var(--c) center / cover no-repeat; color: transparent; }
.avatar.xxl { width: 88px; height: 88px; font-size: 1.7rem; }
.avatar-btn.has-photo { color: transparent; }
.profile-photo { display: flex; align-items: center; gap: 16px; }
.profile-photo-pick { position: relative; flex: none; cursor: pointer; border-radius: 50%; }
.profile-photo-pick.is-busy { opacity: .55; }
.profile-photo-cam { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: var(--btn); color: var(--btn-ink); border: 3px solid var(--surface); }
.profile-photo-cam svg { width: 15px; height: 15px; fill: currentColor; }
.profile-photo-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: .6rem; }
.profile-photo-actions label { cursor: pointer; }

/* Profile photo: place it in the circle */
.crop-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgb(5 8 14 / .72); }
.crop-box { width: min(100%, 380px); padding: 20px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-lg); text-align: center; }
.crop-box h2 { margin: 0 0 .2rem; }
.crop-stage { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: 1rem auto .8rem; overflow: hidden; border-radius: 18px; background: #000; touch-action: none; cursor: grab; }
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgb(0 0 0 / .5); outline: 2px solid rgb(255 255 255 / .9); outline-offset: -2px; pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: 0 auto 1rem; width: min(100%, 300px); }
.crop-zoom svg { width: 18px; height: 18px; fill: var(--muted); }
.crop-zoom input { flex: 1; accent-color: var(--accent); }
.crop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

button.settings-link { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }

/* Trip from your photos */
.fp-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 38px 20px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--accent-soft); cursor: pointer; transition: border-color .15s; }
.fp-drop:hover { border-color: var(--accent); }
.fp-drop svg { width: 42px; height: 42px; fill: var(--accent); margin-bottom: 4px; }
.fp-suggest { display: grid; gap: 8px; }
.fp-trip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fp-trip:hover { border-color: var(--accent); }
a.fp-trip, a.fp-trip:hover { text-decoration: none; color: inherit; }
a.fp-trip .muted { color: var(--accent); }
.fp-busy { align-items: center; display: flex; gap: 12px; }
.fp-busy.stack { flex-direction: column; align-items: stretch; }
.fp-found { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
.fp-found div { display: flex; flex-direction: column; }
.fp-found strong { font-size: 1.6rem; line-height: 1.1; }
.fp-actions { display: flex; gap: 10px; }
.fp-actions .grow { flex: 1; }

/* Route poster */
.po-preview { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.po-stage { position: relative; width: min(100%, 420px); aspect-ratio: 297 / 420; border-radius: 6px; background: var(--line); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .12); overflow: hidden; }
.po-stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.po-busy { position: absolute; top: 12px; right: 12px; }
.po-wait { position: absolute; inset: 0; display: grid; place-items: center; }
.po-styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .po-styles { grid-template-columns: minmax(0, 1fr); } }
.po-swatch { display: block; height: 54px; border-radius: 8px; margin-bottom: 6px; border: 1px solid var(--line); }
.po-swatch-relief { background: linear-gradient(135deg, #f7f4ee 0 40%, #e9e3d6 40% 55%, #cfe7e4 55%), #f7f4ee; }
.po-swatch-satellite { background: radial-gradient(circle at 30% 40%, #b49568 0 25%, transparent 26%), radial-gradient(circle at 70% 70%, #6f7a4c 0 22%, transparent 23%), #24323a; }
.po-swatch-minimal { background: linear-gradient(160deg, #f1f2f2 0 60%, #d6d9da 60%); }
.order-thumb.po-thumb { border-radius: 6px; }

/* Order page: copies with the print-ready PDF beside it */
.order-qty-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.order-pdf { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.order-pdf svg { width: 16px; height: 16px; fill: currentColor; }

/* Trip settings: products as tiles, the rest in calm grouped lists */
.set-label { margin: 1.3rem 0 .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sheet h2 + .set-label { margin-top: .9rem; }
.make-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.make-tiles.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.make-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 12px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--card, transparent); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.make-tile:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.make-tile strong { font-size: .95rem; margin-top: 8px; }
.make-tile > span:last-child { font-size: .78rem; color: var(--muted); }
.make-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); }
.make-icon svg { width: 21px; height: 21px; fill: var(--accent); }
.make-tile.is-main { background: var(--accent-soft); border-color: transparent; }
.make-tile.is-main .make-icon { background: var(--accent); }
.make-tile.is-main .make-icon svg { fill: var(--accent-ink); }
.set-group { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; padding: 0; margin: 0; list-style: none; }
.set-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.set-row + .set-row { border-top: 1px solid var(--line); }
a.set-row:hover, button.set-row:hover { background: var(--accent-soft); text-decoration: none; }
.set-row svg { width: 20px; height: 20px; fill: var(--accent); flex: none; }
.set-row .chev { font-size: 1.4rem; color: var(--muted); line-height: 1; }
.set-row.switch-row { justify-content: space-between; }
.set-hint { margin: .5rem 2px 0; }
.set-members li { padding: 10px 14px; }
@media (max-width: 380px) { .make-tile { padding: 12px 10px 10px; } .make-tile strong { font-size: .88rem; } }

.set-row-wrap + .set-row, .set-row + .set-row-wrap { border-top: 1px solid var(--line); }
.set-row.set-row-split { padding: 0; gap: 8px; }
.set-row-main { display: flex; align-items: center; gap: 12px; flex: 0 1 auto; min-height: 52px; padding: 10px 0 10px 14px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.set-row-split:hover { background: var(--accent-soft); }
.set-info { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid var(--muted); background: transparent; color: var(--muted); font: 700 .78rem/1 Georgia, serif; font-style: italic; cursor: pointer; }
.set-info:hover, .set-info.on { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
.set-info-text { padding: 0 14px 12px 46px; font-size: .84rem; color: var(--muted); }
.set-info-text p { margin: 0 0 .4rem; }
.set-info-text ul { margin: 0 0 .4rem; padding-left: 1.1rem; }
.set-info-text li { margin-bottom: .2rem; }
.set-row-fill { flex: 1; align-self: stretch; display: flex; align-items: center; justify-content: flex-end; padding: 0 14px 0 8px; border: 0; background: transparent; cursor: pointer; }

/* Members page: travelling along / viewers / invite */
.mem-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: .4rem; }
.mem-head h2 { margin: 0; }
.mem-head p { margin: 2px 0 0; }
.mem-list li { padding-block: .65rem; }
.mem-empty { margin: .4rem 0 0; }
.mem-menu { position: relative; flex: none; }
.mem-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 210px; padding: 6px; border-radius: 14px; background: var(--surface, #fff); border: 1px solid var(--line); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .35); }
.mem-pop button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: none; color: inherit; font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
.mem-pop button:hover { background: var(--accent-soft); }
.mem-pop button.danger { color: #c2410c; }
.add-switch { margin: .2rem 0 .4rem; }
.add-people .set-label:first-of-type { margin-top: 1rem; }
.set-more { display: block; margin: .55rem 2px 0; font-size: .86rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.set-more:hover { text-decoration: underline; }
.members-invite .share-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Members page, v2: one inviting hero, then the two groups folded */
.mp .card { margin-bottom: 14px; }
.mp-hero { position: relative; overflow: hidden; margin-bottom: 14px; padding: 26px 22px 22px; border-radius: 24px; color: #fff; text-align: center;
    background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .16), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(0, 0, 0, .22), transparent 60%), linear-gradient(150deg, #138a7e 0%, #0b5f58 55%, #08443f 100%);
    box-shadow: 0 22px 44px -22px rgba(8, 68, 63, .65); }
.mp-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09;
    background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 1.5px); background-size: 18px 18px; }
.mp-hero > * { position: relative; z-index: 1; }
.mp-hero-art { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); margin-bottom: 12px; }
.mp-hero-art svg { width: 30px; height: 30px; fill: #fff; }
.mp-hero h2 { margin: 0 0 6px; font-size: 1.35rem; color: #fff; letter-spacing: -.01em; }
.mp-hero > p { margin: 0 auto 18px; max-width: 34ch; color: rgba(255, 255, 255, .82); font-size: .92rem; line-height: 1.45; }
.mp-share { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 360px; padding: 14px 20px; border: 0; border-radius: 999px; background: #fff; color: #0b5f58; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); transition: transform .15s; }
.mp-share:hover { transform: translateY(-1px); }
.mp-share svg { width: 20px; height: 20px; fill: currentColor; }
.mp-ways { display: flex; justify-content: center; gap: 18px; margin: 18px 0 4px; flex-wrap: wrap; }
.mp-way { display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .9); font: inherit; font-size: .76rem; font-weight: 600; text-decoration: none; cursor: pointer; min-width: 58px; }
.mp-way b { font-weight: 600; }
.mp-way i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .24); transition: transform .15s, background .15s; }
.mp-way i.wa { background: #25d366; border-color: transparent; }
.mp-way:hover i { transform: translateY(-2px); background: rgba(255, 255, 255, .24); }
.mp-way:hover i.wa { background: #22c55e; }
.mp-way svg { width: 22px; height: 22px; fill: #fff; }
.mp-way[aria-pressed="true"] i { background: #fff; }
.mp-way[aria-pressed="true"] svg { fill: #0b5f58; }
.mp-qr { margin: 14px auto 0; padding: 14px; max-width: 240px; border-radius: 18px; background: #fff; color: #1b2120; }
.mp-qr p { margin: 6px 0 0; font-size: .78rem; color: #59625e; }
.mp-note { margin: 20px 0 0; font-size: .78rem; color: rgba(255, 255, 255, .7); }
.mp-note .linklike { color: #fff; text-decoration: underline; font-size: inherit; }
.mp-buddies { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); }
.mp-buddies > span { display: block; margin-bottom: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.mp-buddies .buddy-chips { justify-content: center; }
.mp-buddies .buddy-chip { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .24); color: #fff; }
.mp-buddies .buddy-chip svg { fill: #fff; }
.mp-section { padding: 0; overflow: visible; }
.mp-section > summary { display: flex; align-items: center; gap: 14px; padding: 16px 18px; list-style: none; cursor: pointer; }
.mp-section > summary::-webkit-details-marker { display: none; }
.mp-sum-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mp-sum-text strong { font-size: 1.02rem; }
.mp-chev { width: 9px; height: 9px; margin: 0 4px 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; flex: none; }
.mp-section[open] > summary .mp-chev { transform: rotate(-135deg); margin-bottom: -4px; }
.mp-section > :not(summary) { margin-left: 18px; margin-right: 18px; }
.mp-section > :last-child { margin-bottom: 16px; }
.mp-section[open] > summary { border-bottom: 1px solid var(--line); }
.mp-section .mem-list { margin-top: .3rem; }
.mp-section .set-label { margin-top: 1rem; }
.mp-stack { display: inline-flex; align-items: center; flex: none; }
.mp-stack .avatar { margin-left: -10px; box-shadow: 0 0 0 2px var(--surface, #fff); }
.mp-stack .avatar:first-child { margin-left: 0; }
.mp-more { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; margin-left: -8px; border-radius: 999px; background: var(--surface-2, #eef1f0); color: var(--muted); font-size: .78rem; font-weight: 700; box-shadow: 0 0 0 2px var(--surface, #fff); }
.mp-stack .mp-more:first-child { margin-left: 0; }
.mp-requests { border: 1.5px solid var(--accent); }

/* Follows all your trips: a small mark */
.all-trips { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .72rem; font-weight: 700; }
.member-name .all-trips { display: table; }
.mem-pop a { display: block; padding: 9px 12px; border-radius: 9px; font-size: .86rem; color: var(--muted); text-decoration: none; }
.mem-pop a:hover { background: var(--accent-soft); }
.mp-hint { margin: .6rem 0 0; }
.bd-switch { display: flex; align-items: center; gap: 8px; flex: none; cursor: pointer; color: var(--muted); }
.bd-follows { line-height: 1.35; }
.bd-list .member-button { flex: 1; min-width: 0; }

/* Hearts and comments under a step */
.react { margin: 1.2rem 0 .4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.react-bar { display: flex; align-items: center; gap: 10px; }
.react-like { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.react-like svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.react-like:hover { border-color: #e11d48; color: #e11d48; }
.react-like.on { background: #ffe4e6; border-color: #fecdd3; color: #e11d48; }
.react-like.on svg { fill: currentColor; stroke: none; animation: react-pop .35s ease; }
@keyframes react-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.react-faces { display: inline-flex; }
.react-faces .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface, #fff); }
.react-faces .avatar:first-child { margin-left: 0; }
.react-text { font-size: .84rem; color: var(--muted); min-width: 0; }
.react-comments { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.react-comments li { display: flex; align-items: flex-start; gap: 10px; }
.react-bubble { flex: 1; min-width: 0; padding: 9px 13px; border-radius: 4px 16px 16px 16px; background: var(--surface-2, #f1f4f3); }
.react-who { margin: 0 0 2px; font-size: .8rem; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.react-body { margin: 0; font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.react-del { flex: none; border: 0; background: none; padding: 6px; cursor: pointer; opacity: .45; }
.react-del:hover { opacity: 1; }
.react-del svg { width: 16px; height: 16px; fill: var(--muted); }
.react-form { display: flex; align-items: flex-end; gap: 10px; margin-top: 14px; }
.react-form textarea { flex: 1; min-height: 42px; max-height: 160px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 21px; background: var(--surface, #fff); color: inherit; font: inherit; font-size: .92rem; resize: none; line-height: 1.35; }
.react-form textarea:focus { outline: none; border-color: var(--accent); }
.react-send { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--accent); cursor: pointer; }
.react-send svg { width: 20px; height: 20px; fill: var(--accent-ink); }
.card-heart svg { fill: #fb7185 !important; }

/* My travel year */
.yr { display: flex; flex-direction: column; gap: 14px; }
.yr-hero { position: relative; overflow: hidden; border-radius: 26px; min-height: 260px; display: flex; align-items: flex-end; padding: 26px 24px; color: #fff; background: linear-gradient(150deg, #138a7e, #08443f); }
.yr-hero-photos { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.yr-hero-photos span { background-size: cover; background-position: center; }
.yr-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(8,40,38,.85) 100%); }
.yr-hero-text { position: relative; z-index: 1; }
.yr-kicker { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a9e2d9; }
.yr-hero h1 { margin: 0; font-family: 'DM Serif Display', Georgia, serif; font-size: clamp(4rem, 16vw, 7rem); line-height: .95; color: #fff; letter-spacing: -.02em; }
.yr-years { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.yr-years a { padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: .82rem; font-weight: 600; text-decoration: none; }
.yr-years a.on { background: #fff; color: #0b5f58; }
.yr-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.yr-figures div { display: flex; flex-direction: column; padding: 16px 14px; border-radius: 18px; background: var(--surface, #fff); border: 1px solid var(--line); }
.yr-figures strong { font-size: clamp(1.5rem, 6vw, 2.1rem); line-height: 1.05; }
.yr-figures span { margin-top: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.yr-share { display: flex; gap: 16px; align-items: center; }
.yr-share img { width: 120px; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--accent-soft); flex: none; border-radius: 12px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.yr-share p { margin: 4px 0 12px; }
.yr-share .btn svg { width: 18px; height: 18px; fill: currentColor; vertical-align: -3px; }
.yr-countries { display: flex; flex-wrap: wrap; gap: 8px; }
.yr-countries span { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); font-weight: 600; font-size: .9rem; }
.yr-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 120px; align-items: end; }
.yr-months div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.yr-months i { display: block; width: 70%; border-radius: 6px 6px 2px 2px; background: var(--line); }
.yr-months div.on i { background: var(--accent); }
.yr-months span { font-size: .62rem; color: var(--muted); text-transform: uppercase; }
.yr-trips { display: grid; gap: 10px; }
.yr-trip { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.yr-trip-cover { width: 64px; height: 64px; flex: none; border-radius: 14px; background: var(--accent-soft) center / cover; }
.yr-trip-text { display: flex; flex-direction: column; min-width: 0; }
.yr-badge { align-self: flex-start; margin-top: 3px; padding: 1px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: .7rem; font-weight: 700; }
.yr-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.yr-photos button { aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; }
.yr-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yr-empty { text-align: center; }
.yr-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding: 14px 18px; border-radius: 20px; color: #fff; text-decoration: none; background: linear-gradient(135deg, #138a7e, #08443f); box-shadow: 0 14px 30px -18px rgba(8,68,63,.7); }
.yr-banner:hover { text-decoration: none; }
.yr-banner-year { font-family: 'DM Serif Display', Georgia, serif; font-size: 2rem; line-height: 1; }
.yr-banner .small { color: rgba(255,255,255,.8); }
@media (max-width: 480px) { .yr-share { flex-direction: column; text-align: center; } }

.yr-share-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 480px) { .yr-share-actions { justify-content: center; } }
.yr-pick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 12px 0 70px; }
@media (max-width: 480px) { .yr-pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.yr-pick-grid button { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer; outline: 3px solid transparent; outline-offset: -3px; }
.yr-pick-grid button.on { outline-color: var(--accent); }
.yr-pick-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yr-pick-grid button.on img { opacity: .82; }
.yr-pick-n { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .85rem; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.yr-pick-bar { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0 4px; background: var(--surface, #fff); border-top: 1px solid var(--line); }

.yr-pick-slots { position: sticky; top: -1px; z-index: 2; display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; padding: 10px 0; background: var(--surface, #fff); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.yr-slot { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; border: 2px dashed var(--line); background: var(--surface-2, #f1f4f3) center / cover; padding: 0; cursor: default; }
.yr-slot.filled { border: 2px solid var(--accent); cursor: pointer; }
.yr-slot-n { position: absolute; left: 4px; top: 4px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 800; }
.yr-slot:not(.filled) .yr-slot-n { position: static; background: transparent; color: var(--muted); }
.yr-slot-x { position: absolute; right: -6px; top: -6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #111; color: #fff; font-size: .95rem; line-height: 1; }
.yr-slot-hint { flex: 1 1 140px; }
.yr-pick-grid button.on img { opacity: 1; filter: brightness(.45); }
.yr-pick-grid button.on { outline: 4px solid var(--accent); }
.yr-pick-on { position: absolute; inset: 0; display: grid; place-items: center; gap: 2px; color: #fff; }
.yr-pick-on b { font-size: 2rem; line-height: 1; }
.yr-pick-on svg { width: 22px; height: 22px; fill: #fff; position: absolute; right: 6px; bottom: 6px; background: var(--accent); border-radius: 50%; padding: 2px; }
.yr-shared-head { display: flex; align-items: center; gap: 14px; }
.yr-shared-head h1 { margin: 2px 0 0; font-size: 1.5rem; }
.yr-shared-head .yr-kicker { color: var(--accent); }
.yr-shared-story { display: grid; place-items: center; }
.yr-shared-story img { width: min(100%, 380px); height: auto; border-radius: 18px; box-shadow: 0 22px 44px -22px rgba(0,0,0,.5); background: var(--accent-soft); }

/* Following: one folded row per person */
details.follow-person { padding: 0; }
details.follow-person > summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; list-style: none; cursor: pointer; }
details.follow-person > summary::-webkit-details-marker { display: none; }
details.follow-person .follow-name { display: block; font-size: 1.05rem; }
details.follow-person[open] > summary { border-bottom: 1px solid var(--line); }
details.follow-person[open] > summary .mp-chev { transform: rotate(-135deg); margin-bottom: -4px; }
details.follow-person > .follow-trips { padding: 10px 14px 14px; }
