/* My stay. Same tokens as the main site: one ember accent, day and dusk themes.
   Shape rule: buttons, chips and tags are pills; cards and photos 20px; inputs 12px; sheets 24px. */
:root {
  color-scheme: light;
  --bg: #f3f4ee; --surface: #e8eae0; --surface-2: #dcdfd2;
  --text: #131a14; --muted: #4b554a; --line: rgba(19, 26, 20, .14);
  --accent: #ee7a30; --accent-hover: #f68c47; --accent-ink: #1c1206; --accent-text: #a5420c; --accent-soft: rgba(238, 122, 48, .15);
  --photo-ink: #f8f5ec; --photo-accent: #ffb27c; --logo-solid: none;
  --shadow: 0 30px 70px -30px rgba(28, 40, 28, .45);
  --r-card: 20px; --r-input: 12px; --r-sheet: 24px;
  --font-display: 'Cabinet Grotesk', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Satoshi', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e120e; --surface: #161b15; --surface-2: #1f261e; --text: #efece1; --muted: #a7ac9c; --line: rgba(239, 236, 225, .14);
    --accent: #f2843c; --accent-hover: #f89653; --accent-text: #f79a5c; --accent-soft: rgba(242, 132, 60, .16);
    --logo-solid: brightness(0) invert(1); --shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e120e; --surface: #161b15; --surface-2: #1f261e; --text: #efece1; --muted: #a7ac9c; --line: rgba(239, 236, 225, .14);
  --accent: #f2843c; --accent-hover: #f89653; --accent-text: #f79a5c; --accent-soft: rgba(242, 132, 60, .16);
  --logo-solid: brightness(0) invert(1); --shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; transition: background-color .3s, color .3s; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; left: 12px; top: 12px; z-index: 80; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.app { width: min(100%, 480px); margin-inline: auto; min-height: 100dvh; background: var(--bg); position: relative; }
.side { display: none; }
#view { padding: 4px 16px calc(104px + env(safe-area-inset-bottom)); outline: none; }
#view > * + * { margin-top: 14px; }
@media (min-width: 700px) {
  body { background: var(--surface); }
  .app { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
}
@media (min-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr) 480px minmax(0, 1fr); }
  .app { grid-column: 2; }
  .side { display: block; grid-column: 1; justify-self: end; align-self: start; position: sticky; top: 0; width: min(380px, 100%); padding: 56px 40px; }
}
.side h2 { font-size: 1.8rem; line-height: 1.1; margin: 8px 0 12px; }
.side p { color: var(--muted); }
.side-kicker { font-weight: 700; font-size: .85rem; color: var(--accent-text); }
.qr { width: 156px; height: 156px; margin: 20px 0; padding: 12px; border-radius: var(--r-card); background: #fff; }
.qr img, .qr canvas { width: 100% !important; height: 100% !important; }
.side-list { display: grid; gap: 10px; margin-bottom: 22px; }
.side-list li { display: flex; gap: 10px; align-items: flex-start; }
.side-list i { margin-top: 3px; color: var(--accent-text); }

/* Header and tabs */
.top { position: sticky; top: 0; z-index: 10; height: 60px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.brand img { height: 40px; width: auto; filter: var(--logo-solid); }
.top-actions { display: flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .2s, transform .2s var(--ease); }
.pill:hover { background: var(--surface); }
.pill:active { transform: scale(.97); }
.pill-sos { background: var(--text); color: var(--bg); box-shadow: none; }
.pill-sos:hover { background: var(--text); opacity: .88; }
.tabs { position: fixed; z-index: 20; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 480px); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 -1px 0 var(--line); }
.tabs a { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; border-radius: 16px; font-size: .74rem; font-weight: 700; color: var(--muted); transition: color .2s, background-color .2s; }
.tabs a i { font-size: 1.45rem; }
.tabs a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); }

/* Cards, buttons, chips */
.card { padding: 18px; border-radius: var(--r-card); background: var(--surface); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2 { font-size: 1.2rem; line-height: 1.15; }
.tag { padding: 3px 11px; border-radius: 999px; background: var(--bg); font-size: .8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.note { color: var(--muted); font-size: .94rem; }
.note.pad { padding: 0 4px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.row.between { justify-content: space-between; align-items: center; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 700; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s; }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .94rem; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn-photo { background: rgba(255, 255, 255, .16); color: var(--photo-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.card > .btn:not(.btn-sm) { margin-top: 14px; }
.link { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; font-weight: 700; font-size: .92rem; color: var(--accent-text); text-underline-offset: 3px; }
.link:hover { text-decoration: underline; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 42px; padding: 0 15px; border-radius: 999px; font-weight: 700; font-size: .92rem; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .2s, color .2s; }
.chip:hover { background: var(--bg); }
.chip.on { background: var(--text); color: var(--bg); box-shadow: none; }
.card .chip { background: var(--bg); box-shadow: none; }
.card .chip.on { background: var(--text); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); }
.seg button { min-height: 42px; padding: 0 10px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.seg.small { grid-auto-flow: column; width: max-content; background: var(--bg); }
.seg.small button { min-height: 36px; font-size: .85rem; }

/* Hero */
.hero-card, .lodge-hero { position: relative; display: flex; align-items: flex-end; min-height: 430px; padding: 0; border-radius: var(--r-card); overflow: hidden; isolation: isolate; color: var(--photo-ink); background: #10140f var(--photo) center / cover; }
.lodge-hero { min-height: 270px; }
.hero-card::before, .lodge-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 10, 7, .15) 0%, rgba(8, 10, 7, .25) 35%, rgba(8, 10, 7, .88) 100%); }
.hero-in { width: 100%; padding: 22px; display: grid; gap: 10px; }
.kicker { font-weight: 700; font-size: .85rem; color: var(--photo-accent); }
.hero-in h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); line-height: .98; letter-spacing: -.035em; }
.hero-sub { color: rgba(248, 245, 236, .9); }
.count { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.count div { display: grid; justify-items: center; padding: 12px 6px; border-radius: 16px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.count b { font: 800 2.1rem/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.count span { font-size: .78rem; color: rgba(248, 245, 236, .85); }
@media (prefers-reduced-transparency: reduce) { .count div, .btn-photo { background: rgba(20, 24, 18, .85); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Demo bar */
.demo { padding: 12px 16px 14px; border-radius: var(--r-card); background: var(--accent-soft); display: grid; gap: 8px; font-size: .92rem; overflow: hidden; }
.demo .chip { background: var(--bg); min-height: 38px; font-size: .86rem; }
.demo .chip.on { background: var(--text); }

/* Weather and sky */
.wx-now { display: flex; align-items: center; gap: 14px; }
.wx-icon { font-size: 3.2rem; color: var(--accent-text); }
.wx-temp { font: 800 2.4rem/1 var(--font-display); letter-spacing: -.03em; }
.wx-temp small { font-size: 1.2rem; color: var(--muted); font-weight: 700; }
.wx-label { color: var(--muted); }
.wx-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0 10px; }
.wx-strip li { display: grid; justify-items: center; gap: 2px; padding: 10px 2px; border-radius: 14px; background: var(--bg); font-size: .85rem; }
.wx-strip li.on { box-shadow: inset 0 0 0 2px var(--accent); }
.wx-strip i { font-size: 1.5rem; color: var(--accent-text); }
.wx-strip small { color: var(--muted); }
.arc { margin: 0 0 8px; }
.arc svg { width: 100%; height: auto; display: block; }
.arc-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; }
.arc-ground { stroke: var(--line); stroke-width: 2; }
.arc-sun { fill: var(--accent); filter: drop-shadow(0 0 8px var(--accent)); }
.arc figcaption { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.arc figcaption span { display: grid; gap: 0; font-size: .86rem; }
.arc figcaption span:last-child { text-align: right; }
.arc figcaption b { color: var(--text); font: 800 1.35rem/1.1 var(--font-display); letter-spacing: -.02em; }

/* Timeline, checklists */
.timeline { display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; }
.timeline li > i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 1.35rem; }
.timeline h3 { font-size: 1.05rem; }
.timeline p { color: var(--muted); font-size: .94rem; }
.timeline .when { font-size: .82rem; font-weight: 700; color: var(--accent-text); }
.checks { display: grid; gap: 4px; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.checks li > span { flex: 1; line-height: 1.35; }
.checks .done > span { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.box { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); color: transparent; font-size: 1rem; transition: background-color .2s, color .2s, box-shadow .2s; }
.box[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.sub { margin: 16px 0 6px; font-size: 1rem; }
.more { margin-top: 8px; }
.bullets { display: grid; gap: 8px; margin: 12px 0; padding-left: 18px; list-style: disc; }
.bullets li::marker { color: var(--accent-text); }

/* Lists and rows */
.rows { display: grid; gap: 4px; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.rows li > div { flex: 1; min-width: 0; display: grid; }
.rows small { color: var(--muted); font-size: .88rem; line-height: 1.35; }
.rows .todo { color: var(--accent-text); font-weight: 500; }
.rows .lead { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 1.25rem; }
.rows.tight li { padding: 6px 0; }
.big-time { font: 800 2.4rem/1 var(--font-display); letter-spacing: -.03em; margin: 14px 0 6px; }
.route p { color: var(--muted); }
.route .big-time { color: var(--text); }
.eta { margin-top: 12px; padding: 16px; border-radius: 16px; background: var(--accent-soft); display: grid; gap: 6px; justify-items: start; }
.eta.warn { background: var(--bg); box-shadow: inset 0 0 0 2px var(--accent); }
.eta-time { font: 800 2.2rem/1 var(--font-display); letter-spacing: -.03em; }
.field-row, .flight label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; }
input[type="time"], input[type="date"], input[type="text"] { width: 100%; min-height: 48px; padding: 0 12px; border-radius: var(--r-input); border: 1.5px solid var(--line); background: var(--bg); font-weight: 500; }
input:focus-visible { outline-offset: 0; border-color: var(--accent); }
.flight { margin: 14px 0 0; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); min-width: 0; }
.flight legend { display: inline-flex; align-items: center; gap: 8px; padding: 0 8px; font-weight: 800; font-family: var(--font-display); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Accordions */
.acc { display: grid; gap: 8px; }
.acc details { border-radius: 16px; background: var(--bg); }
.acc summary, .animal summary { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; list-style: none; font-weight: 700; }
.acc summary::-webkit-details-marker, .animal summary::-webkit-details-marker { display: none; }
.acc summary > span { flex: 1; }
.acc summary > i:first-child { font-size: 1.3rem; color: var(--accent-text); }
.caret { transition: transform .3s var(--ease); }
details[open] > summary .caret { transform: rotate(180deg); }
.acc-body { padding: 0 14px 14px; display: grid; gap: 10px; justify-items: start; }
.acc-body p { color: var(--muted); }
.src summary { cursor: pointer; font-weight: 700; padding: 8px 0; }

/* Places and map */
.map-card { padding: 10px; }
.map { height: 320px; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.map-off { padding: 24px; color: var(--muted); }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(.92) hue-rotate(180deg) saturate(.7) brightness(.95); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(.92) hue-rotate(180deg) saturate(.7) brightness(.95); } }
.pin { display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--accent-text); box-shadow: 0 0 0 2px var(--accent), 0 6px 16px rgba(0, 0, 0, .35); font-size: 1.1rem; }
.pin-home { background: var(--accent); color: var(--accent-ink); font-size: 1.3rem; }
.map-card .note { padding: 8px 6px 2px; font-size: .8rem; }
.places { display: grid; gap: 12px; }
.place { padding: 16px; border-radius: var(--r-card); background: var(--surface); display: grid; gap: 6px; scroll-margin-top: 80px; }
.place-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.place h3 { font-size: 1.08rem; }
.place p { color: var(--muted); font-size: .94rem; }
.place .meta, .meta { display: flex; gap: 6px; align-items: center; font-size: .88rem; color: var(--muted); }
.place .meta i { color: var(--accent-text); }
.badge { flex: none; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge.open { background: var(--accent-soft); color: var(--accent-text); }
.badge.closed { background: var(--bg); color: var(--muted); }
.gates { background: var(--accent-soft); }

/* Wildlife */
.intro .h1 { font-size: 1.8rem; line-height: 1.05; margin-bottom: 8px; }
.animals { display: grid; gap: 8px; margin-top: 12px; }
.animal { border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s; }
.animal.seen { box-shadow: inset 0 0 0 2px var(--accent); }
.animal summary { padding: 10px 14px 10px 10px; }
.animal summary img, .ph-wrap { flex: none; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.ph-wrap { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-size: 1.6rem; }
.an-main { flex: 1; display: grid; min-width: 0; }
.an-main b { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.2; }
.an-main small { color: var(--muted); font-weight: 500; font-size: .84rem; }
.animal .acc-body { padding: 0 14px 12px; }
.care { display: flex; gap: 8px; align-items: flex-start; color: var(--text) !important; font-size: .94rem; }
.care i { margin-top: 3px; color: var(--accent-text); }
.tickbtn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px; padding: 0 14px; border-top: 1px solid var(--line); font-weight: 700; font-size: .92rem; color: var(--muted); border-radius: 0 0 16px 16px; }
.tickbtn i { font-size: 1.35rem; }
.tickbtn[aria-pressed="true"] { color: var(--accent-text); }
.rule-list { display: grid; gap: 10px; counter-reset: r; }
.rule-list li { counter-increment: r; display: grid; grid-template-columns: 30px 1fr; gap: 10px; }
.rule-list li::before { content: counter(r); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; font-size: .9rem; }
.install { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.install .big { font-size: 2.6rem; color: var(--accent-text); }

/* Sheet (SOS) */
dialog.sheet { width: min(100%, 480px); max-width: 480px; max-height: 92dvh; margin: auto auto 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); border: 0; border-radius: var(--r-sheet) var(--r-sheet) 0 0; background: var(--bg); color: var(--text); overflow: auto; box-shadow: var(--shadow); }
dialog.sheet::backdrop { background: rgba(6, 8, 5, .7); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.close { position: sticky; top: 0; float: right; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); font-size: 1.3rem; }
#sos-body { display: grid; gap: 8px; }
#sos-body h2 { font-size: 1.6rem; line-height: 1.05; padding-right: 52px; }
.callrows { display: grid; gap: 6px; }
.callrows a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-radius: 16px; background: var(--surface); transition: background-color .2s; }
.callrows a:hover { background: var(--surface-2); }
.callrows i { font-size: 1.3rem; color: var(--accent-text); }
.callrows span { flex: 1; line-height: 1.25; }
.callrows b { font-family: var(--font-display); font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* Toast and welcome */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 700; font-size: .92rem; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.welcome { position: fixed; inset: 0; z-index: 70; display: grid; align-items: end; justify-items: center; color: var(--photo-ink); background: #0b0d0a var(--photo) center / cover; isolation: isolate; transition: opacity .5s, transform .6s var(--ease); }
.welcome::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 10, 7, .55) 0%, rgba(8, 10, 7, .1) 35%, rgba(8, 10, 7, .92) 100%); }
.welcome.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.welcome-in { width: min(100%, 480px); padding: 28px 22px calc(34px + env(safe-area-inset-bottom)); display: grid; gap: 14px; justify-items: start; }
.welcome-logo { width: 84px; height: auto; filter: brightness(0) invert(1); }
.welcome h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: .95; letter-spacing: -.04em; }
.welcome p { color: rgba(248, 245, 236, .92); max-width: 36ch; }
.welcome .welcome-meta { font-weight: 700; color: var(--photo-accent); }
.welcome .welcome-demo { font-size: .88rem; opacity: .85; }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  #view.enter > * { animation: rise .6s var(--ease) both; }
  #view.enter > *:nth-child(2) { animation-delay: .05s; } #view.enter > *:nth-child(3) { animation-delay: .1s; } #view.enter > *:nth-child(4) { animation-delay: .15s; }
  .welcome-in > * { animation: rise .8s var(--ease) both; }
  .welcome-in > *:nth-child(2) { animation-delay: .1s; } .welcome-in > *:nth-child(3) { animation-delay: .18s; } .welcome-in > *:nth-child(4) { animation-delay: .26s; } .welcome-in > *:nth-child(5) { animation-delay: .34s; }
  dialog.sheet[open] { animation: sheet .45s var(--ease); }
  .arc-sun { animation: glow 3.2s ease-in-out infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes glow { 50% { filter: drop-shadow(0 0 14px var(--accent)); } }

/* Host tool */
.host-body { background: var(--bg); }
.host-page { width: min(100% - 32px, 560px); margin: 0 auto; padding: 28px 0 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.host-page .grid2 > *, .host-form > * { min-width: 0; }
.host-page input, .host-page select { max-width: 100%; }
.host-page h1 { font-size: clamp(2rem, 7vw, 2.6rem); line-height: 1; }
.host-page .lead { color: var(--muted); font-size: 1.05rem; }
.host-page .card { box-shadow: none; }
.host-page .back { justify-self: start; }
.host-form { display: grid; gap: 14px; }
.host-form label, .host-page .card > label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; }
select, input[type="number"], input[type="text"], input[type="date"], input[type="time"] { width: 100%; min-height: 48px; padding: 0 12px; border-radius: var(--r-input); border: 1.5px solid var(--line); background: var(--bg); font-weight: 500; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
textarea { width: 100%; padding: 12px; border-radius: var(--r-input); border: 1.5px solid var(--line); background: var(--bg); line-height: 1.5; resize: vertical; }
textarea:focus-visible, select:focus-visible { outline-offset: 0; border-color: var(--accent); }
.host-page .qr { margin: 16px 0 6px; }

/* Embedded in another page (owner studio, website): no side panel. */
.embed .side { display: none !important; }
.embed .layout { grid-template-columns: minmax(0, 1fr) !important; }
.embed .app { box-shadow: none !important; }

/* ===== Flat sections: most of the app is calm text on the page, with cards kept for a few focal points ===== */
.sec { display: grid; gap: 10px; align-content: start; }
#view > .sec:not(.intro) { padding-top: 22px; border-top: 1px solid var(--line); }
#view > .sec { margin-top: 20px; }
#view > .hero-card + .sec { margin-top: 22px; }
.sec h2, .card-head h2 { font-size: 1.25rem; line-height: 1.15; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sec .btn, .sec .row { justify-self: start; }
.sec .row { margin-top: 2px; }
.sec .acc { width: 100%; }
.intro .h1 { font-size: 1.85rem; line-height: 1.05; }
.kicker-sm { font-weight: 700; font-size: .8rem; color: var(--accent-text); }
.dim { color: var(--muted); }
.note.ok { display: flex; gap: 8px; align-items: center; color: var(--accent-text); font-weight: 700; }
.note.pad { display: flex; gap: 8px; align-items: flex-start; }
.note i { margin-top: 3px; }
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--accent-soft); font-size: .94rem; }
.callout i { margin-top: 3px; color: var(--accent-text); flex: none; }
.tag.warn { background: var(--accent-soft); color: var(--accent-text); }
.src-note { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; }
.hero-cta { margin-top: 6px; }
.hero-cta .btn { width: 100%; }
.hero-card { min-height: 470px; }
.kicker { text-transform: none; }

/* Header extras and offline banner */
.pill-demo { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-text); }
.wordmark { font: 800 1.05rem/1.1 var(--font-display); letter-spacing: -.02em; max-width: 160px; display: block; }
.net { position: sticky; top: 60px; z-index: 9; display: flex; gap: 10px; align-items: flex-start; margin: 0 16px; padding: 10px 14px; border-radius: 14px; background: var(--text); color: var(--bg); font-size: .88rem; line-height: 1.35; }
.net[hidden] { display: none; }
.net i { margin-top: 2px; }
.dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .74rem; font-weight: 800; }
.seg button[aria-selected="true"] .dot { background: var(--accent); }

/* Switches and forms */
.switch { display: flex; gap: 12px; align-items: center; min-height: 44px; font-weight: 700; cursor: pointer; }
.switch input, .opt input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.switch span { display: inline-flex; gap: 8px; align-items: center; }
.field-label { font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field-label small { font-weight: 500; color: var(--muted); }
.field { display: grid; gap: 4px; }
.x-form .grid2 label, .sight-form label.field-row { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; }
.opts { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opt span { display: grid; gap: 2px; }
.opt small { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.opt[hidden] { display: none; }
.link.danger { color: var(--muted); }
.link.danger:hover { color: var(--text); }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; }
.file { position: relative; overflow: hidden; cursor: pointer; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.file:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Species lists and rows */
.sp-list { display: grid; }
.sp-list li + li { border-top: 1px solid var(--line); }
.sp-row, .x-row, .log-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 0; text-align: left; }
.sp-row img, .ph-wrap { flex: none; border-radius: 14px; object-fit: cover; }
.ph-wrap { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-size: 1.6rem; }
.sp-row img { width: 56px; height: 56px; }
.sp-main { flex: 1; min-width: 0; display: grid; }
.sp-main b { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.2; }
.sp-main small { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.seen-tick { color: var(--accent-text); font-size: 1.4rem; display: grid; }
.sp-row.seen .sp-main b::after { content: ""; }
.lead-ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 1.3rem; }
.lead-ic.big { width: 56px; height: 56px; font-size: 1.6rem; }
.x-list { display: grid; }
.x-list li + li { border-top: 1px solid var(--line); }
.x-row .sp-main small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Passport */
.score { display: grid; grid-template-columns: auto 1fr; gap: 14px 20px; align-items: center; padding: 18px; border-radius: var(--r-card); background: var(--surface); }
.ring { --p: 0; position: relative; width: 104px; height: 104px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0); }
.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface); }
.ring b, .ring small { position: relative; line-height: 1.05; }
.ring b { font: 800 2rem/1 var(--font-display); letter-spacing: -.03em; }
.ring small { color: var(--muted); font-size: .8rem; }
.stats { display: grid; gap: 8px; }
.stats li { display: flex; align-items: baseline; gap: 8px; }
.stats b { font: 800 1.5rem/1 var(--font-display); min-width: 1.4ch; }
.stats span { color: var(--muted); font-size: .92rem; }
.score-note { grid-column: 1 / -1; }
.challenge { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-card); background: var(--accent-soft); }
.challenge .big { font-size: 2.2rem; color: var(--accent-text); flex: none; }
.challenge h2 { font-size: 1.1rem; }
.challenge.done .big { color: var(--accent-text); }
.challenge-line { display: flex; gap: 10px; align-items: flex-start; }
.challenge-line i { margin-top: 3px; color: var(--accent-text); }
.challenge-line.done { color: var(--muted); }
.stamps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.stamp { display: grid; justify-items: center; gap: 6px; width: 100%; padding: 4px 0; text-align: center; }
.stamp-art { position: relative; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 20px; overflow: hidden; background: var(--surface); filter: grayscale(1); opacity: .5; transition: filter .3s, opacity .3s; }
.stamp-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.stamp-art .ph-wrap { width: 100% !important; height: 100% !important; border-radius: 0; }
.stamp.on .stamp-art { filter: none; opacity: 1; box-shadow: 0 0 0 2.5px var(--accent); }
.stamp-tick { position: absolute; right: 4px; bottom: 4px; font-size: 1.25rem; color: var(--accent-ink); background: var(--accent); border-radius: 50%; display: grid; }
.stamp-name { font-size: .82rem; font-weight: 700; line-height: 1.2; min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.badge-tile { display: grid; justify-items: center; gap: 2px; text-align: center; }
.badge-tile .badge-ic { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 1.5rem; box-shadow: inset 0 0 0 1.5px var(--line); }
.badge-tile.on .badge-ic { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.badge-tile b { font-size: .84rem; line-height: 1.2; font-family: var(--font-display); overflow-wrap: anywhere; }
.badge-tile small { color: var(--muted); font-size: .78rem; }
.badge-tile.on small { color: var(--accent-text); font-weight: 700; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 28px 16px; text-align: center; border-radius: var(--r-card); background: var(--surface); }
.empty .big { font-size: 2.6rem; color: var(--accent-text); }
.log { display: grid; }
.log li + li { border-top: 1px solid var(--line); }
.log-row { min-height: 66px; }
.log-art { flex: none; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); }
.log-art img, .log-art .ph-wrap { width: 52px; height: 52px; object-fit: cover; }
img[data-photo] { opacity: 0; transition: opacity .4s; background: var(--surface-2); }
img[data-photo].ready { opacity: 1; }
[data-photo-wrap].missing img { display: none; }

/* Sheets: species, extras, photo options, demo preview */
#sheet-body, #guard-body { display: grid; gap: 10px; }
#sheet-body h2, #guard-body h2 { font-size: 1.5rem; line-height: 1.08; }
.sp-head { display: flex; align-items: center; gap: 14px; padding-right: 52px; min-height: 56px; }
.sp-head img, .sp-head .ph-wrap { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; flex: none; }
.sight-form, .x-form, .share-form { display: grid; gap: 12px; padding-top: 4px; }
.photo-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.photo-pick img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.photo-pick img[hidden] { display: none; }
.big-photo { border-radius: 16px; overflow: hidden; background: var(--surface-2); min-height: 120px; }
.big-photo img { width: 100%; height: auto; display: block; }
.msg-preview { margin: 0; padding: 14px; border-radius: 14px; background: var(--surface); border-left: 4px solid var(--accent); white-space: pre-wrap; font-size: .92rem; overflow-wrap: anywhere; }
.steps { display: grid; gap: 8px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; font-size: .86rem; }
.reqs { display: grid; }
.req { display: grid; gap: 4px; padding: 12px 0; }
.req + .req { border-top: 1px solid var(--line); }
.req-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.status { padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.status.sent { background: var(--accent-soft); color: var(--accent-text); }
.status.confirmed { background: var(--accent); color: var(--accent-ink); }
textarea[data-msg] { min-height: 150px; }

/* Memories */
.mem { display: grid; gap: 14px; }
.card-canvas { display: grid; gap: 6px; }
#mem-canvas { width: 100%; height: auto; display: block; border-radius: 16px; background: #0e120e; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .6); }
.canvas-msg:empty { display: none; }
.mem-opts { display: grid; gap: 4px; }
.pick { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.pick::-webkit-scrollbar { display: none; }
.pick-b { flex: none; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--line); opacity: .65; }
.pick-b.on { opacity: 1; box-shadow: 0 0 0 3px var(--accent); }
.pick-b img { width: 64px; height: 64px; object-fit: cover; }
.demo-note { display: flex; gap: 8px; }
.days { display: grid; gap: 12px; }
.days .when { font-size: .82rem; font-weight: 700; color: var(--accent-text); }
.mini-photos { display: flex; gap: 8px; }
.mini-photos li { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.mini-photos img { width: 100%; height: 100%; object-fit: cover; }

/* Data and offline */
.data .rows small { font-variant-numeric: tabular-nums; }
.off-list li { align-items: flex-start; }
.card .row.between { margin-top: 12px; }
.card .row.between:first-child { margin-top: 0; }
.steps + .note { margin-top: 2px; }

@media (max-width: 360px) {
  .stamps, .badges { gap: 10px 6px; }
  .stamp-art { width: 68px; height: 68px; }
  .score { grid-template-columns: 1fr; justify-items: start; }
}

/* ===== Owner studio ===== */
.studio-body { background: var(--bg); }
.studio-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 20px; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.studio-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.studio-nav::-webkit-scrollbar { display: none; }
.studio-nav a { flex: none; padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.studio-nav a:hover { background: var(--surface); color: var(--text); }
.studio { width: min(100% - 32px, 1120px); margin: 0 auto; padding: 36px 0 96px; }
.studio-hero { display: grid; gap: 12px; max-width: 720px; margin-bottom: 36px; }
.studio-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: .98; letter-spacing: -.035em; }
.studio-hero .lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.studio-main { display: contents; }
.studio-main > * { order: var(--o, 0); min-width: 0; }
.phone-col { order: 2; }
.studio-sec { display: grid; gap: 14px; align-content: start; padding-top: 28px; border-top: 1px solid var(--line); }
.studio-sec h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.05; }
.studio-sec h3.sub { margin: 10px 0 2px; }
.studio-sec .btn[disabled] { opacity: .4; }
@media (min-width: 900px) {
  .studio-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; }
  .studio-main { display: grid; gap: 40px; grid-column: 1; grid-row: 1; }
  .phone-col { grid-column: 2; grid-row: 1; position: sticky; top: 76px; }
}
.demo-steps { display: grid; gap: 6px; }
.demo-steps button { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px 14px; border-radius: 16px; text-align: left; transition: background-color .2s; }
.demo-steps button:hover { background: var(--surface); }
.demo-steps .on button { background: var(--accent-soft); }
.demo-steps .num { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-weight: 800; font-size: .92rem; }
.demo-steps .on .num { background: var(--accent); color: var(--accent-ink); }
.demo-steps b { display: block; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.25; }
.demo-steps small { display: block; margin-top: 4px; color: var(--muted); font-size: .94rem; line-height: 1.45; }
.phone { padding: 12px; border-radius: 46px; background: #0a0d09; box-shadow: 0 44px 80px -34px rgba(0, 0, 0, .65), inset 0 0 0 2px #262d25; max-width: 392px; margin: 0 auto; }
.phone iframe { display: block; width: 100%; height: 680px; border: 0; border-radius: 34px; background: var(--bg); color-scheme: normal; }
@media (min-width: 900px) { .phone iframe { height: min(720px, calc(100dvh - 190px)); } }
.phone-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.brand-form { display: grid; gap: 14px; }
.brand-form label, .brand-form legend { font-weight: 700; font-size: .9rem; }
.brand-form label { display: grid; gap: 6px; }
.swatches { border: 0; padding: 0; margin: 0; min-width: 0; }
.swatches > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.swatch { position: relative; display: grid !important; justify-items: center; gap: 4px !important; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; }
.swatch span { width: 48px; height: 48px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); transition: box-shadow .2s; }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--text); }
.swatch input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 4px; }
.swatch small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.pack, .work { display: grid; gap: 14px; }
.pack li, .work li { display: flex; gap: 14px; align-items: flex-start; }
.work-ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-size: 1.3rem; }
.pack b, .work b { font-family: var(--font-display); font-size: 1.05rem; }
.pack p, .work p { color: var(--muted); font-size: .96rem; }
.studio-sec .card { box-shadow: none; display: grid; gap: 12px; }
.studio-sec .card > label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; }
.status-group { display: grid; gap: 8px; }
.status-group h3 { font-size: 1rem; }
.pill-s { display: inline-block; padding: 4px 12px; border-radius: 999px; font: 700 .86rem var(--font-body); }
.pill-s.ok { background: var(--accent); color: var(--accent-ink); }
.pill-s.demo { background: var(--accent-soft); color: var(--accent-text); }
.pill-s.need { box-shadow: inset 0 0 0 1.5px var(--text); }
.check-list { display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 22px; line-height: 1.45; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--line); box-shadow: inset 0 0 0 2px var(--muted); }
#s-ok li::before { background: var(--accent); box-shadow: none; }
#s-demo li::before { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.lang-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.lang-table th, .lang-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lang-table th { font-size: .8rem; color: var(--muted); font-weight: 700; }
.review { border-radius: 16px; background: var(--surface); margin-top: 8px; }
.review summary { padding: 14px 16px; cursor: pointer; font-weight: 700; }
.review summary small { color: var(--muted); font-weight: 500; margin-left: 6px; }
.review .lang-table { display: block; overflow-x: auto; }
.review .lang-table td:nth-child(2), .review .lang-table td:nth-child(3) { min-width: 240px; }

/* Comfortable touch targets */
.chip { min-height: 44px; }
.pill { min-height: 44px; }
.demo .chip { min-height: 44px; }
.rows .link, .sec .link, .card .link { min-height: 44px; }
.seg button { min-height: 44px; }
.phone { position: relative; }
.phone-loading { position: absolute; inset: 12px; display: grid; place-items: center; border-radius: 34px; color: var(--muted); font-weight: 700; text-align: center; padding: 0 24px; background: #10140f; }
.phone iframe { position: relative; z-index: 1; background: transparent; }
.studio-top .back { flex: none; white-space: nowrap; }
.studio-top { padding-inline: 16px; }

/* Language menu: working languages, then the ones a lodge can ask for. */
.pill-lang .caret { font-size: .8em; opacity: .7; }
.lang-more { margin-top: 20px; }
.chip-soon { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--muted); font-weight: 500; opacity: .45; cursor: not-allowed; }
.chip-soon:hover { background: none; }
#lang-note { margin-top: 16px; }

/* Wildlife guide as photo cards, and a full-width photo at the top of each animal's sheet. */
.sp-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
.sp-cards li + li { border-top: 0; }
.sp-cards .sp-row { position: relative; display: block; min-height: 0; padding: 0; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.sp-cards .sp-row img, .sp-cards .sp-row .ph-wrap { display: grid; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; border-radius: 0; object-fit: cover; }
.sp-cards .sp-row .ph-wrap { font-size: 2.2rem; }
.sp-cards .sp-main { padding: 10px 12px 12px; }
.sp-cards .sp-main b { font-size: .98rem; }
.sp-cards .sp-row > i.dim { display: none; }
.sp-cards .seen-tick { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 1.1rem; }
.sp-photo { display: block; width: calc(100% + 0px); height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; margin: 0 0 16px; }

/* Guest assistant: the entry on the home screen and the ask sheet. */
.ask-open { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); text-align: left; transition: background-color .2s; }
.ask-open:hover { background: var(--bg); }
.ask-open-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ask-open-text b { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.25; }
.ask-open-text small { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.ask-form { display: grid; gap: 10px; margin-top: 14px; }
.ask-ideas { margin-top: 12px; }
.ask-out { margin-top: 18px; display: grid; gap: 10px; justify-items: start; }
.ask-out:empty { display: none; }
.ask-q-echo { font-weight: 700; }
.ask-answer { width: 100%; padding: 14px 16px; border-radius: var(--r-card); background: var(--accent-soft); line-height: 1.55; white-space: pre-line; }
.ask-answer.problem { background: var(--surface); }
.ask-busy { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.spin { animation: ask-spin 1s linear infinite; }
@keyframes ask-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
