/* Stories (round 246; the founder's mock-ups 1-5). Every colour is a main.css token; the one
   character mark is the "✓" of a Seenary place. Phone width 360-390: nothing scrolls sideways except
   the filter chips, on purpose. Every image has its size before it loads, so nothing jumps. */

/* ---------- shared pieces ---------- */
.st-main { background: var(--bg-soft); color: var(--ink); }
main.marketing-main.st-main { padding: calc(var(--marketing-nav-h, 84px) + 18px) 0 48px; }
.st-story-main { padding-top: var(--marketing-nav-h, 84px); padding-bottom: 56px; }
.st-wrap { max-width: 1216px; margin: 0 auto; padding: 0 32px; }
.st-narrow { max-width: 760px; }
.st-eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st-eyebrow a { color: inherit; }
.st-h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 38px); letter-spacing: -.3px; margin: 4px 0; line-height: 1.1; }
.st-h2 { font-family: var(--font-display); font-size: 22px; margin: 28px 0 8px; }
.st-sub { margin: 0; color: var(--muted); font-size: 16px; }
.st-muted { color: var(--muted); }
.st-small { font-size: 12.5px; }
.st-status { color: var(--muted); font-size: 13.5px; min-height: 1.4em; margin: 6px 0; }
.st-ico { flex: none; vertical-align: -2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; font: 600 14px/1.2 var(--font-ui); cursor: pointer; text-decoration: none; border: 1px solid transparent;
  transition: background var(--duration-quick, .18s), border-color var(--duration-quick, .18s), box-shadow var(--duration-quick, .18s); }
.st-btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; font-weight: 700; }
.st-btn-primary:hover { box-shadow: 0 6px 18px rgba(var(--accent-rgb), .3); }
.st-btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--border); }
.st-btn-ghost:hover { background: var(--bg-soft); }
.st-btn-danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-bg); }
.st-btn-block { width: 100%; }
.st-btn-icon { width: 44px; padding: 0; }
.st-btn:disabled, .st-btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.st-btn:focus-visible, .st-chip:focus-visible, .st-seg button:focus-visible, .st-icon-btn:focus-visible, .st-linkbtn:focus-visible,
.st-card-link:focus-visible, .st-day-toggle:focus-visible, .st-photo-btn:focus-visible, .se-choice:focus-visible, .se-trip:focus-visible,
.se-pill:focus-visible, .se-icon:focus-visible, .se-close:focus-visible, .st-hero-count:focus-visible, .st-reuse-row:focus-within,
.nt-bell:focus-visible, .pv-btn:focus-visible { outline: 3px solid var(--focus-ring, var(--accent-dark)); outline-offset: 2px; }
.st-linkbtn { background: none; border: 0; padding: 0; min-height: 32px; color: var(--accent-ink, var(--accent-dark)); font: inherit; font-weight: 600; cursor: pointer; }
.st-linkbtn.is-danger { color: var(--danger); }
.st-icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; flex: none; }
.st-icon-btn:hover { background: var(--bg-soft); }
.st-icon-btn[aria-pressed="true"] { color: var(--pop); border-color: var(--pop); }
.st-icon-btn[aria-pressed="true"] svg path { fill: currentColor; }
.st-input { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-height: 44px;
  background: var(--bg); color: var(--ink); font: 400 15px/1.45 var(--font-ui); }
textarea.st-input { resize: vertical; }
.st-input:focus { outline: 2px solid rgba(var(--accent-rgb), .45); border-color: var(--accent); }
.st-label { display: block; font-weight: 700; font-size: 13px; margin: 14px 0 6px; }

.st-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.st-badge-trip { background: var(--accent-bg-soft); color: var(--accent-dark); }
.st-badge-place { background: #FEF3C7; color: #92400E; }
.st-badge-sm { font-size: 9.5px; padding: 2px 7px; }
.st-level { font-size: 12px; color: var(--muted); border-bottom: 1px dotted var(--muted); text-decoration: none; }
a.st-level:hover { color: var(--ink); }
.st-level.st-editorial { border-bottom: 0; color: var(--accent-ink, var(--accent-dark)); background: var(--accent-bg-soft); padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.st-editorial-note { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.st-level-lg { font-size: 20px; font-family: var(--font-display); color: var(--ink); border-bottom-width: 2px; }
.st-handle { font-weight: 700; color: var(--ink); text-decoration: none; }
.st-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--success); background: var(--success-bg); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.st-own-pill { display: inline-flex; font-size: 10.5px; font-weight: 700; color: #92400E; background: #FEF3C7; padding: 2px 8px; border-radius: 999px; letter-spacing: 0; text-transform: none; }
.st-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-size: 13px; font-weight: 600; }
.st-av { width: 30px; height: 30px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--accent), var(--pop)); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 12px; text-transform: uppercase; }
.st-av-sm { width: 22px; height: 22px; font-size: 10px; }
.st-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--accent), var(--pop)); color: #fff; display: grid; place-items: center; font-weight: 700; }

.st-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1300; max-width: calc(100vw - 32px); }
.st-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
html.st-sheet-open, html.pv-open { overflow: hidden; }

/* ---------- the feed (mock 1, 5) ---------- */
.st-feed-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.st-feed-title { flex: 1 1 320px; min-width: 0; }
.st-share-btn { padding: 0 22px; min-height: 48px; font-size: 15px; }
.st-controls { display: flex; align-items: center; gap: 12px; margin: 20px 0 10px; flex-wrap: wrap; }
.st-search { position: relative; display: flex; align-items: center; flex: 0 1 320px; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 0 6px 0 14px; color: var(--muted); }
.st-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 8px; min-height: 44px; font: 400 15px var(--font-ui); color: var(--ink); }
.st-search input:focus { outline: none; }
.st-search:focus-within { outline: 2px solid rgba(var(--accent-rgb), .45); border-color: var(--accent); }
.st-search input::-webkit-search-cancel-button { display: none; }
.st-search-clear { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.st-seg { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 3px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.st-seg::-webkit-scrollbar { display: none; }
.st-seg button { border: 0; background: none; padding: 0 14px; min-height: 38px; border-radius: 999px; font: 600 13.5px var(--font-ui); color: var(--muted); cursor: pointer; white-space: nowrap; }
.st-seg button[aria-checked="true"] { background: var(--accent-bg-soft); color: var(--accent-dark); }
.st-levels-link { margin-left: auto; font-size: 13px; color: var(--muted); text-decoration: underline; }
.st-chips { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 8px; margin: 0 -32px; padding-left: 32px; padding-right: 32px; }
.st-chips::-webkit-scrollbar { display: none; }
.st-chip { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--ink); font: 600 13.5px var(--font-ui); cursor: pointer; white-space: nowrap; }
.st-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.st-chip-sep { flex: none; width: 1px; height: 22px; background: var(--border); margin: 0 4px; }

.st-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 12px; }
.st-grid-dp { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.st-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; min-width: 0; transition: box-shadow .2s, transform .2s; }
.st-card:hover { box-shadow: 0 10px 28px rgba(var(--shadow-ink), .1); }
.st-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.st-card-photo { position: relative; aspect-ratio: 4 / 3; background: var(--accent-bg-soft) center / cover no-repeat; }
.st-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-card-photo .st-badge { position: absolute; top: 10px; left: 10px; background-color: rgba(255, 255, 255, .94); }
.st-card-photo .st-badge-place { background-color: #FEF3C7; }
.st-card-body { padding: 13px 15px 15px; }
.st-card-title { font-family: var(--font-display); font-size: 17.5px; line-height: 1.25; margin: 0 0 6px; overflow-wrap: anywhere; }
.st-card-place { margin: 0; font-size: 13.5px; display: flex; gap: 4px; align-items: center; }
.st-card-place.is-strong { font-weight: 700; }
.st-card-facts { margin: 2px 0 0; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.st-card-foot { display: flex; align-items: center; gap: 7px; margin: 11px 0 0; font-size: 13px; min-width: 0; }
.st-card-foot .st-handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.st-counts { margin-left: auto; display: inline-flex; gap: 10px; color: var(--muted); flex: none; }
.st-count { display: inline-flex; align-items: center; gap: 4px; }
.st-empty { text-align: center; padding: 48px 16px; max-width: 460px; margin: 0 auto; }
.st-empty-ico { color: var(--accent); display: inline-block; }
.st-empty h2 { font-family: var(--font-display); font-size: 22px; margin: 12px 0 6px; }
.st-empty p { color: var(--muted); margin: 0 0 18px; }
.st-empty-actions { display: flex; flex-direction: column; gap: 10px; }
.st-more-row { text-align: center; margin-top: 24px; }

/* ---------- a story (mock 2, 3) ---------- */
.st-hero { position: relative; min-height: 300px; background: var(--accent-deep) center / cover no-repeat; display: flex; align-items: flex-end; color: #fff; }
.st-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--hero-scrim-rgb), .05), rgba(var(--hero-scrim-rgb), .78)); }
.st-hero-body { position: relative; width: 100%; max-width: 1216px; margin: 0 auto; padding: 60px 32px 24px; box-sizing: border-box; }
.st-crumbs { margin: 0 0 8px; font-size: 13px; opacity: .92; }
.st-crumbs a { color: #fff; }
.st-story-title { font-family: var(--font-display); font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; margin: 8px 0 12px; overflow-wrap: anywhere; letter-spacing: -.3px; }
.st-hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.st-hero-chips li { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(4px); padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.st-hero-credit { position: absolute; right: 24px; top: 20px; max-width: min(60%, 420px); margin: 0; padding: 4px 10px; border-radius: 999px;
  background: rgba(var(--hero-scrim-rgb), .55); color: #fff; font-size: 11.5px; line-height: 1.4; overflow-wrap: anywhere; }
.st-hero-credit a { color: #fff; }
.st-hero-count { position: absolute; right: 24px; top: 20px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 0; background: rgba(var(--hero-scrim-rgb), .62); color: #fff; font: 700 13px var(--font-ui); cursor: pointer; }
.st-banner { max-width: 1216px; margin: 16px auto 0; padding: 12px 32px; box-sizing: border-box; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.st-banner p { margin: 0; flex: 1 1 260px; background: var(--accent-bg-soft); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.st-banner-refused p, .st-banner-hidden p { background: var(--danger-bg); color: var(--danger); }
.st-banner-why { font-weight: 400; display: block; }

.st-story-grid { max-width: 1216px; margin: 0 auto; padding: 20px 32px 30px; box-sizing: border-box; display: grid; gap: 20px 28px;
  grid-template-columns: minmax(0, 1fr) 330px; grid-template-areas: "intro side" "photos side" "days side" "comments side"; align-items: start; }
.st-intro { grid-area: intro; min-width: 0; }
.st-side { grid-area: side; min-width: 0; position: sticky; top: calc(var(--marketing-nav-h, 84px) + 12px); }
.st-photos { grid-area: photos; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; min-width: 0; }
.st-days { grid-area: days; }
.st-comments { grid-area: comments; }
.st-byline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-byline-text { display: flex; flex-direction: column; min-width: 0; }
.st-byline-text .st-level { align-self: flex-start; }
.st-when { color: var(--muted); font-size: 13px; }
.st-byline-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st-helpful[aria-pressed="true"] { background: var(--accent-bg-soft); color: var(--accent-dark); border-color: var(--accent-bg-soft); }
.st-helpful-own { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; }
.st-summary { font-size: 16px; line-height: 1.65; margin: 16px 0 4px; white-space: pre-line; overflow-wrap: anywhere; }
.st-goodfor { margin: 8px 0 0; }
.st-menu-wrap { position: relative; display: inline-flex; }
.st-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--bg); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(var(--shadow-ink), .14);
  min-width: 170px; z-index: 20; padding: 4px; display: flex; flex-direction: column; }
.st-menu[hidden] { display: none; }
.st-menu button { text-align: left; border: 0; background: none; padding: 0 12px; min-height: 44px; border-radius: 8px; font: 500 14px var(--font-ui); color: var(--ink); cursor: pointer; }
.st-menu button:hover, .st-menu button:focus-visible { background: var(--bg-soft); outline: none; }
.st-menu .is-danger { color: var(--danger); }

.st-photo-btn { position: relative; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 2 / 3; background: var(--accent-bg-soft); display: block; width: 100%; }
.st-photo-btn:first-child { aspect-ratio: 4 / 3; }
.st-photos .st-photo-btn:only-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.st-photo-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-photo-more { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.st-photos figure { margin: 0; }

.st-card-block { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; min-width: 0; }
.st-card-block h2 { font-family: var(--font-display); font-size: 22px; margin: 0; }
.st-block-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.st-block-head h2 { flex: 1 1 auto; }
.st-own-note { margin: 0; color: var(--muted); font-size: 12.5px; }
.st-day { border-top: 1px solid var(--border); }
.st-day:first-of-type { border-top: 0; }
.st-day-h { margin: 0; font-size: inherit; }
.st-day-toggle { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 48px; border: 0; background: none; padding: 6px 0; text-align: left;
  font: 700 15px var(--font-ui); color: var(--accent-dark); cursor: pointer; }
.st-day-caret { display: inline-flex; transition: transform .15s; }
.st-day-toggle[aria-expanded="true"] .st-day-caret { transform: rotate(90deg); }
.st-day-count { color: var(--muted); font-weight: 500; font-size: 13px; }
.st-stops { list-style: none; margin: 0; padding: 0 0 6px; }
.st-stop { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); align-items: flex-start; }
.st-stop-n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-bg-soft); color: var(--accent-dark); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.st-stop-body { flex: 1; min-width: 0; }
.st-stop-name { margin: 0; overflow-wrap: break-word; }
.st-stop-kind { color: var(--muted); font-size: 13px; }
.st-stop-note { margin: 3px 0 0; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.st-stop-actions { display: flex; gap: 6px; flex: none; }

.st-side-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.st-side-card h2 { font-family: var(--font-display); font-size: 20px; margin: 0 0 6px; }
.st-side-card > .st-muted { font-size: 14px; margin: 0; }
.st-side-chips { display: flex; gap: 8px; margin: 12px 0 0; flex-wrap: wrap; }
.st-side-card .st-btn-block { margin-top: 14px; }
.st-side-h { border-top: 1px solid var(--border); margin: 18px 0 8px; padding-top: 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-tips { padding-left: 18px; margin: 0; font-size: 14px; }
.st-tips li { margin: 4px 0; overflow-wrap: anywhere; }
.st-side-more { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--border); margin-top: 18px; padding-top: 12px; min-height: 32px; font-size: 13px; color: var(--muted); text-decoration: none; }
.st-side-more:hover { color: var(--ink); }

.st-comment { display: flex; gap: 10px; margin-top: 12px; }
.st-replies { margin-left: 40px; }
.st-comment.is-reply { margin-top: 8px; }
.st-c-main { flex: 1; min-width: 0; background: var(--bg-soft); border-radius: 12px; padding: 10px 12px; }
.st-c-main.is-author { background: var(--accent-bg-soft); }
.st-c-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.st-c-when { color: var(--muted); font-size: 12.5px; }
.st-c-review { font-size: 12px; font-weight: 700; color: #92400E; }
.st-c-menu { margin-left: auto; }
.st-c-menu .st-icon-btn { width: 36px; height: 36px; border: 0; background: none; }
.st-c-body { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.st-c-body.is-removed { color: var(--muted); font-style: italic; }
.st-c-reply { font-size: 13px; color: var(--muted); }
.st-c-edit textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font: inherit; margin-top: 6px; }
.st-c-edit-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.st-composer { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; flex-wrap: wrap; }
.st-composer textarea { flex: 1 1 200px; min-width: 0; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; min-height: 44px; font: 400 15px var(--font-ui); resize: vertical; box-sizing: border-box; }
.st-c-error { flex-basis: 100%; color: var(--danger); font-size: 13px; margin: 0; }
.st-signin-line { margin: 14px 0 0; }
.st-reuse-bar { display: none; }
.st-gone { padding: 48px 32px; text-align: center; }

/* 900-1100: the reuse panel moves under the introduction (the founder's note on mock 2). */
@media (max-width: 1100px) {
  .st-story-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "side" "photos" "days" "comments"; }
  .st-side { position: static; }
}
/* Below 900 (mock 3): the page ends above one fixed "Reuse this trip" button. */
@media (max-width: 899px) {
  .st-story-grid { grid-template-areas: "intro" "photos" "days" "side" "comments"; padding-bottom: 96px; }
  .st-reuse-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--border); z-index: 40; }
  /* The support launcher (support-widget.js) stands above a docked bar by --dock-h. */
  :root:has(.st-reuse-bar) { --dock-h: 74px; }
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .st-wrap, .st-story-grid, .st-banner { padding-left: 16px; padding-right: 16px; }
  .st-hero-body { padding: 48px 16px 18px; }
  .st-hero { min-height: 250px; }
  .st-hero-count { right: 16px; top: 14px; }
  .st-hero-credit { right: 16px; top: 14px; max-width: calc(100% - 32px); }
  .st-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .st-chips { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .st-controls { gap: 10px; }
  .st-search { flex: 1 1 100%; }
  .st-levels-link { margin-left: 0; }
  .st-share-btn { width: 100%; }
  .st-byline-actions { margin-left: 0; width: 100%; }
  .st-photos { grid-template-columns: 1.6fr 1fr 1fr; gap: 6px; }
  .st-card-block { padding: 14px; }
  .st-stop { gap: 10px; flex-wrap: wrap; }
  .st-stop-body { flex: 1 1 calc(100% - 40px); }
  .st-stop-actions { margin-left: 38px; }
  .st-replies { margin-left: 20px; }
}

/* ---------- levels ---------- */
.st-levels { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.st-level-row { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; }
.st-level-row h2 { margin: 0 0 4px; }
.st-level-row p { margin: 0; color: var(--muted); }
.st-points { padding-left: 20px; }
.st-points li { margin: 6px 0; }

/* ---------- sheets (reuse, report) ---------- */
.st-sheet-wrap { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; }
.st-sheet-backdrop { position: absolute; inset: 0; background: rgba(var(--hero-scrim-rgb), .55); }
.st-sheet { position: relative; background: var(--bg); border-radius: 20px; width: min(520px, calc(100vw - 32px)); max-height: min(86vh, 760px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.st-sheet-grip { display: none; }
.st-sheet-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px 6px; }
.st-sheet-head h2 { flex: 1; margin: 0; font-family: var(--font-display); font-size: 22px; }
.st-sheet-head .st-icon-btn { border: 0; }
.st-sheet-body { overflow-y: auto; padding: 0 20px 12px; }
.st-sheet-foot { border-top: 1px solid var(--border); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.st-sheet-foot .st-small { flex-basis: 100%; text-align: center; margin: 0; }
.st-reuse-top { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; font-weight: 700; }
.st-reuse-day { font-size: 14px; color: var(--accent-dark); margin: 14px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.st-reuse-list { list-style: none; margin: 0; padding: 0; }
.st-reuse-list li + li { border-top: 1px solid var(--border); }
.st-reuse-row { display: flex; gap: 12px; align-items: center; min-height: 56px; cursor: pointer; padding: 6px 2px; border-radius: 8px; }
.st-reuse-row input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin: 0; }
.st-reuse-text { display: flex; flex-direction: column; min-width: 0; }
.st-reuse-text span { color: var(--muted); font-size: 13px; }
@media (max-width: 640px) {
  .st-sheet-wrap { align-items: flex-end; }
  .st-sheet { width: 100%; max-height: 90vh; border-radius: 20px 20px 0 0; }
  .st-sheet-grip { display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--border); margin: 10px auto 0; }
}

/* ---------- the share sheet (mock 4) ---------- */
.se-wrap { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; }
.se-backdrop { position: absolute; inset: 0; background: rgba(var(--hero-scrim-rgb), .55); }
.se-modal { position: relative; width: min(680px, calc(100vw - 32px)); height: min(880px, calc(100vh - 40px)); background: var(--bg); border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3); display: flex; flex-direction: column; overflow: hidden; }
.se-head { padding: 18px 24px 0; }
.se-head-row { display: flex; align-items: center; gap: 10px; }
.se-title { flex: 1; margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.se-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; flex: none; }
.se-close:hover { background: var(--bg-soft); }
.se-steps { list-style: none; display: flex; gap: 16px; margin: 4px 0 14px; padding: 0; overflow-x: auto; scrollbar-width: none; }
.se-steps::-webkit-scrollbar { display: none; }
.se-step { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.se-step b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--border); color: var(--ink); font-size: 12px; flex: none; }
.se-step.is-on { color: var(--ink); }
.se-step.is-on b { background: var(--accent); color: #fff; }
.se-step.is-done b { background: var(--success); color: #fff; }
.se-body { flex: 1; overflow-y: auto; padding: 0 24px 20px; overscroll-behavior: contain; }
.se-body:focus { outline: none; }
.se-foot { border-top: 1px solid var(--border); padding: 12px 24px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.se-foot-note { flex: 1 1 140px; color: var(--muted); font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.se-status { color: var(--muted); }
.se-message { background: var(--danger-bg); color: var(--danger); padding: 9px 12px; border-radius: 10px; font-size: 13.5px; margin: 0 0 10px; }
.se-message[hidden] { display: none; }
.se-lead { font-weight: 600; margin: 4px 0 12px; }
.se-choices { display: grid; gap: 12px; }
.se-choice, .se-trip { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; width: 100%; padding: 16px 18px; min-height: 64px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--bg); cursor: pointer; font: inherit; color: var(--ink); }
.se-choice:hover, .se-trip:hover { border-color: var(--accent); background: var(--accent-bg-soft); }
.se-choice b, .se-trip b { font-size: 16px; }
.se-choice span, .se-trip span { color: var(--muted); font-size: 13.5px; }
.se-trips { display: grid; gap: 10px; }
.se-trip-none { border-style: dashed; }
.se-field { margin: 0 0 4px; border: 0; padding: 0; min-width: 0; }
.se-label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; padding: 0; }
.se-label-sm { font-weight: 600; margin-top: 6px; }
.se-hint { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.se-privacy-line { margin: 4px 0 0; }
.se-err { color: var(--danger); font-size: 13px; margin: 4px 0 0; }
.se-err[hidden] { display: none; }
.se-field.is-bad .st-input { border-color: var(--danger); }
.se-row { display: flex; gap: 12px; flex-wrap: wrap; }
.se-row .se-field { flex: 1 1 120px; }
.se-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.se-pill { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font: 600 14px var(--font-ui); color: var(--ink); cursor: pointer; }
.se-pill[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.se-place { position: relative; }
.se-place-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--bg); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 24px rgba(var(--shadow-ink), .14); list-style: none; margin: 0; padding: 4px; z-index: 5; }
.se-place-list[hidden] { display: none; }
.se-place-list li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; min-height: 44px; justify-content: center; }
.se-place-list li span { color: var(--muted); font-size: 12.5px; }
.se-place-list li:hover, .se-place-list li[aria-selected="true"] { background: var(--accent-bg-soft); }
.se-photos { display: flex; gap: 10px; flex-wrap: wrap; }
.se-photo { width: 118px; display: flex; flex-direction: column; gap: 4px; }
.se-photo-img { position: relative; width: 118px; height: 88px; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.se-photo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.se-photo-x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(var(--hero-scrim-rgb), .7); color: #fff; display: grid; place-items: center; cursor: pointer; }
.se-ph-status { font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.se-ph-status.is-live { color: var(--success); }
.se-ph-status.is-review { color: #92400E; }
.se-ph-status.is-wait { color: var(--muted); }
.se-caption { min-height: 36px; padding: 6px 8px; font-size: 13px; }
.se-cover { font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; min-height: 28px; cursor: pointer; }
.se-photo-add { width: 118px; height: 88px; border: 2px dashed var(--border); border-radius: 10px; background: none; color: var(--muted); font: 600 13px var(--font-ui); cursor: pointer; }
.se-photo-add:hover { border-color: var(--accent); color: var(--accent-dark); }
.se-refused-row { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--danger-bg); color: var(--danger); font-size: 13px; }
.se-day { border: 1px solid var(--border); border-radius: 12px; margin-top: 8px; padding: 0 12px; }
.se-day-h { margin: 0; font-size: inherit; }
.se-day-toggle { display: flex; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; border: 0; background: none; font: 700 14px var(--font-ui); color: var(--accent-dark); cursor: pointer; text-align: left; align-items: center; }
.se-day-body { padding-bottom: 12px; }
.se-stops { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.se-stop { border: 1px solid var(--border); border-radius: 10px; padding: 8px; background: var(--bg); display: grid; gap: 6px; }
.se-stop-main { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.se-stop-name { flex: 1 1 180px; min-width: 0; }
.se-stop-name > .st-input { width: 100%; }
.se-stop-meta { margin: 4px 0 0; display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.se-stop-meta:not(:has(> :not([hidden]))) { display: none; }

.se-stop-ok[hidden], .se-stop-pin[hidden] { display: none; }
.se-stop-pin { color: var(--muted); }
.se-stop-kind { flex: 0 1 150px; min-width: 0; }
.se-stop-tools { display: inline-flex; gap: 2px; }
.se-icon { width: 44px; height: 44px; border-radius: 10px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.se-icon:hover:not(:disabled) { background: var(--bg-soft); color: var(--ink); }
.se-icon:disabled { opacity: .35; cursor: default; }
.se-stop-note { min-height: 40px; font-size: 14px; }
.se-day-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.se-day-add { margin-top: 10px; }
.se-tip { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.se-preview { margin-bottom: 8px; }
.se-preview .st-card { max-width: none; }
.se-preview .st-card-photo { aspect-ratio: 16 / 7; }
.se-preview-summary { margin: 8px 0 2px; font-size: 14px; }
.se-sub { font-size: 14px; font-weight: 700; margin: 18px 0 8px; padding: 0; }
.se-privacy { border: 1px solid var(--border); border-radius: 12px; font-size: 13.5px; overflow: hidden; }
.se-privacy p { margin: 0; padding: 10px 12px; display: flex; gap: 8px; align-items: flex-start; }
.se-privacy p + p { border-top: 1px solid var(--border); }
.se-privacy svg { flex: none; margin-top: 2px; }
.se-privacy .is-warn { background: #FFFBEB; }
.se-vis { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.se-vis-opt { flex: 1 1 220px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-size: 13.5px; }
.se-vis-opt.is-on { border: 2px solid var(--accent); background: var(--accent-bg-soft); padding: 9px 11px; }
.se-vis-opt input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.se-vis-opt span { display: flex; flex-direction: column; gap: 2px; }
.se-done { text-align: center; padding: 40px 10px; }
.se-done-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--success-bg); color: var(--success); }
.se-done-mark svg { width: 28px; height: 28px; }
.se-done h2 { font-family: var(--font-display); margin: 14px 0 6px; }
@media (max-width: 640px) {
  .se-wrap { align-items: stretch; }
  .se-modal { width: 100%; height: 100%; border-radius: 0; }
  .se-head, .se-body, .se-foot { padding-left: 16px; padding-right: 16px; }
  .se-hide-sm { display: none; }
  .se-foot .st-btn { padding: 0 14px; }
}

/* ---------- the photo viewer (mock 3, middle) ---------- */
.pv { position: fixed; inset: 0; z-index: 1400; background: #000; color: #fff; display: flex; flex-direction: column; }
.pv[hidden] { display: none; }
.pv-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); }
.pv-count { margin: 0; font-weight: 700; font-size: 16px; }
.pv-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.pv-btn:hover { background: rgba(255, 255, 255, .18); }
.pv-btn[hidden] { display: none; }
.pv-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
.pv-frame { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.pv-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .12s ease-out; user-select: none; -webkit-user-drag: none; }
.pv.is-zoomed .pv-img { cursor: grab; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.pv-prev { left: 12px; }
.pv-next { right: 12px; }
.pv-foot { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); text-align: center; }
.pv-caption { margin: 0; font-size: 15px; }
.pv-hint { margin: 4px 0 10px; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.pv-dots { display: flex; justify-content: center; gap: 6px; }
.pv-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.pv-dots span.is-on { background: #fff; }
@media (prefers-reduced-motion: reduce) { .pv-img, .st-toast, .st-day-caret { transition: none; } }

/* ---------- My Trips: my stories, saved places ---------- */
.st-mine { display: grid; gap: 12px; }
.st-mine-row { display: flex; gap: 14px; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 12px; flex-wrap: wrap; }
.st-mine-thumb { width: 96px; height: 72px; border-radius: 10px; background: var(--accent-bg-soft) center / cover no-repeat; flex: none; }
.st-mine-body { flex: 1 1 200px; min-width: 0; }
.st-mine-body h3 { margin: 4px 0 2px; font-size: 16px; overflow-wrap: anywhere; }
.st-mine-body p { margin: 0; }
.st-mine-top { display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.st-mine-counts { display: flex; align-items: center; gap: 12px; margin-top: 4px !important; }
.st-mine-counts .st-counts { margin-left: 0; }
.st-unread { font-size: 12.5px; font-weight: 700; color: var(--pop); }
.st-mine-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.st-status-pill { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-weight: 700; font-size: 11.5px; background: var(--bg-soft); color: var(--muted); }
.st-status-pill.is-published { background: var(--success-bg); color: var(--success); }
.st-status-pill.is-review { background: #FEF3C7; color: #92400E; }
.st-status-pill.is-refused, .st-status-pill.is-hidden { background: var(--danger-bg); color: var(--danger); }
.st-saved { margin-top: 16px; }
.st-saved h3 { margin: 0 0 4px; font-family: var(--font-display); }
.st-saved-list { list-style: none; padding: 0; margin: 10px 0 0; }
.st-saved-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.st-saved-ico { color: var(--accent); flex: none; }
.st-saved-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-saved-text b { overflow-wrap: anywhere; }
.sidebar-share-btn { width: 100%; margin-top: 10px; justify-content: center; }
.trip-story-btn, .td-story { white-space: nowrap; }

/* ---------- the destination guide's tab ---------- */
.st-dp h2 { margin-bottom: 4px; }
.st-dp-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
/* The Explore panel's Stories view is styled in explore.css (21 Oct 2026): not every page with the panel loads this file. */

/* ---------- the admin's review list ---------- */
.admin-st-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.admin-st-item { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 12px; flex-wrap: wrap; }
.admin-st-thumb { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; flex: none; }
.admin-st-body { flex: 1 1 260px; min-width: 0; }
.admin-st-body p { margin: 2px 0; }
.admin-st-text { white-space: pre-line; overflow-wrap: anywhere; }
.admin-st-actions { display: flex; gap: 8px; }
.st-photo-review { position: absolute; left: 8px; bottom: 8px; background: #FEF3C7; color: #92400E; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
