/* =====================================================================
   Littlepath — styles
   ===================================================================== */

:root {
  --paper: #fbf5ee;
  --paper-2: #f5ebe0;
  --card: #fffdf9;
  --ink: #3a2c27;
  --ink-soft: #6b5850;
  --muted: #9a877d;
  --hair: rgba(58, 44, 39, 0.1);
  --hair-strong: rgba(58, 44, 39, 0.18);

  --accent: #d9837a;
  --accent-deep: #b9625a;
  --accent-soft: #f6d9d3;
  --accent-wash: #fbece8;
  --gold: #e8b04a;
  --sage: #9db79a;
  --sky: #9fbfd6;

  --blob-1: #f4cfc6;
  --blob-2: #f8e3b8;
  --blob-3: #d8e6d3;

  --shadow-sm: 0 1px 2px rgba(80, 50, 40, 0.06), 0 2px 6px rgba(80, 50, 40, 0.05);
  --shadow: 0 2px 4px rgba(80, 50, 40, 0.05), 0 10px 30px -8px rgba(80, 50, 40, 0.16);
  --shadow-lg: 0 4px 10px rgba(80, 50, 40, 0.06), 0 30px 60px -20px rgba(80, 50, 40, 0.3);

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Figtree', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-hand: 'Caveat', 'Bradley Hand', cursive;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

[data-theme='sage'] {
  --accent: #7fa37b; --accent-deep: #5d8159; --accent-soft: #d9e7d5; --accent-wash: #eef4ec;
  --blob-1: #d6e6cf; --blob-2: #f3e5bd; --blob-3: #e7dccf;
}
[data-theme='sky'] {
  --accent: #6f9cc0; --accent-deep: #4f7ea4; --accent-soft: #d6e5f0; --accent-wash: #edf3f8;
  --blob-1: #d3e3ef; --blob-2: #f1dfe6; --blob-3: #e2ecd9;
}
[data-theme='butter'] {
  --accent: #d4a03c; --accent-deep: #ae7f22; --accent-soft: #f5e6c2; --accent-wash: #fbf3e1;
  --blob-1: #f7e3b3; --blob-2: #f4d2c8; --blob-3: #dfe8d2;
}
[data-theme='lilac'] {
  --accent: #a58bc4; --accent-deep: #8268a5; --accent-soft: #e6dcf1; --accent-wash: #f3eef8;
  --blob-1: #e4d9f0; --blob-2: #f6dcd6; --blob-3: #d9e7e3;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-mode='light']) {
    --paper: #1d1719; --paper-2: #251e20; --card: #2a2224;
    --ink: #f4e9e3; --ink-soft: #d2c2ba; --muted: #9c8a82;
    --hair: rgba(255, 240, 230, 0.1); --hair-strong: rgba(255, 240, 230, 0.18);
    --accent-soft: color-mix(in srgb, var(--accent) 28%, #2a2224);
    --accent-wash: color-mix(in srgb, var(--accent) 14%, #1d1719);
    --blob-1: color-mix(in srgb, var(--accent) 35%, #1d1719);
    --blob-2: #3a2f22; --blob-3: #22302a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 12px 30px -8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.3), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent-deep); }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---------- ambient background ---------- */
.bg-blobs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; width: 52vmax; height: 52vmax; border-radius: 50%;
  filter: blur(70px); opacity: 0.55; animation: drift 38s var(--ease) infinite alternate;
}
.b1 { background: var(--blob-1); top: -20vmax; left: -14vmax; }
.b2 { background: var(--blob-2); top: 30vh; right: -24vmax; animation-duration: 46s; }
.b3 { background: var(--blob-3); bottom: -26vmax; left: 20vw; animation-duration: 52s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6vmax, 4vmax) scale(1.12); }
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.25 0 0 0 0 0.2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) { .grain { mix-blend-mode: screen; opacity: 0.15; } }

/* ---------- boot ---------- */
.boot { min-height: 80vh; display: grid; place-items: center; }
.boot-dot {
  width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(0.8); opacity: 0.5; } 50% { transform: scale(1.3); opacity: 1; } }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 100, 'opsz' 96;
  font-weight: 420;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }
em.soft { font-style: italic; color: var(--accent-deep); font-weight: 380; }
.hand { font-family: var(--font-hand); font-size: 1.25em; line-height: 1; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

/* ---------- layout ---------- */
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(560px, 100% - 32px); margin-inline: auto; }
.stack > * + * { margin-top: var(--gap, 14px); }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap-ok { flex-wrap: wrap; }
.spacer { flex: 1; }
/* opacity only: a transform here would trap the fixed dock/chat inside the view */
.view { animation: fade 0.6s var(--ease) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 14px max(16px, env(safe-area-inset-left));
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.topbar.scrolled { border-bottom-color: var(--hair); }
.brand {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-size: 1.3rem; font-variation-settings: 'SOFT' 100; font-weight: 500;
}
.brand svg { width: 30px; height: 30px; }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--card); --b-fg: var(--ink); --b-bd: var(--hair-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; min-height: 44px;
  border-radius: 999px; border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--spring), box-shadow 0.25s, background 0.2s, opacity 0.2s;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { --b-bg: var(--accent); --b-fg: #fff; --b-bd: transparent; }
.btn.primary:hover { --b-bg: var(--accent-deep); }
.btn.dark { --b-bg: var(--ink); --b-fg: var(--paper); --b-bd: transparent; }
.btn.ghost { --b-bg: transparent; --b-bd: transparent; box-shadow: none; }
.btn.ghost:hover { --b-bg: var(--accent-wash); box-shadow: none; }
.btn.soft { --b-bg: var(--accent-wash); --b-bd: transparent; --b-fg: var(--accent-deep); box-shadow: none; }
.btn.danger { --b-fg: #b4423a; }
.btn.sm { padding: 7px 14px; min-height: 36px; font-size: 0.85rem; }
.btn.icon { padding: 0; width: 44px; }
.btn.icon.sm { width: 36px; }
.btn.block { width: 100%; }
.btn .spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: rot 0.7s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.field { display: block; }
.field > span { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.input, textarea.input, select.input {
  width: 100%; padding: 13px 16px; border-radius: 14px;
  border: 1px solid var(--hair-strong); background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea.input { resize: vertical; min-height: 96px; line-height: 1.5; }
.input::placeholder { color: var(--muted); }
.hint { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.divider {
  display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.8rem; margin: 18px 0;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--hair-strong); }

.toggle { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; cursor: pointer; }
.toggle + .toggle { border-top: 1px dashed var(--hair); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .sw {
  flex: none; width: 46px; height: 28px; border-radius: 99px; background: var(--hair-strong);
  position: relative; transition: background 0.25s; margin-top: 1px;
}
.toggle .sw::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--spring);
}
.toggle input:checked + .sw { background: var(--accent); }
.toggle input:checked + .sw::after { transform: translateX(18px); }
.toggle input:focus-visible + .sw { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.toggle b { display: block; font-weight: 600; font-size: 0.95rem; }
.toggle small { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.4; margin-top: 2px; }

.seg { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--paper-2); gap: 2px; }
.seg button {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 99px; font-size: 0.8rem;
  font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--card); cursor: pointer;
  box-shadow: 0 0 0 1px var(--hair-strong); transition: transform 0.25s var(--spring);
}
.swatch:hover { transform: scale(1.1); }
.swatch.on { box-shadow: 0 0 0 2.5px var(--ink); }

/* ---------- cards / panels ---------- */
.card {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow);
  border: 1px solid var(--hair); padding: clamp(22px, 4vw, 36px);
}
.panel-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }

/* ---------- landing ---------- */
.hero { padding: clamp(40px, 9vh, 110px) 0 40px; display: grid; gap: 48px; grid-template-columns: 1.1fr 0.9fr; align-items: center; }
.hero h1 { margin: 14px 0 20px; }
.hero p.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34ch; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.join-card { margin-top: 30px; padding: 18px; border-radius: var(--r); background: color-mix(in srgb, var(--card) 70%, transparent); border: 1px solid var(--hair); max-width: 460px; }
.join-card form { display: flex; gap: 8px; margin-top: 10px; }
.join-card .input { border-radius: 999px; padding: 11px 18px; }

.hero-art { position: relative; height: 520px; }
.hero-art svg.path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-art .path-line { stroke: var(--accent); stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3.2s var(--ease) 0.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-art .chip {
  position: absolute; background: var(--card); border-radius: 18px; box-shadow: var(--shadow);
  padding: 12px 14px; font-size: 0.85rem; display: flex; gap: 10px; align-items: center;
  animation: pop-in 0.7s var(--spring) both;
  border: 1px solid var(--hair);
}
.hero-art .chip .em { font-size: 1.4rem; }
.hero-art .polaroid {
  position: absolute; width: 170px; padding: 10px 10px 30px; background: #fff; border-radius: 6px;
  box-shadow: var(--shadow-lg); transform: rotate(-5deg); animation: pop-in 0.8s var(--spring) both;
}
.hero-art .polaroid .ph {
  aspect-ratio: 1; border-radius: 3px;
  background: radial-gradient(circle at 35% 40%, #fff6ef 0 18%, transparent 19%), radial-gradient(120% 90% at 50% 100%, var(--accent-soft), var(--blob-2));
}
.hero-art .polaroid p { font-family: var(--font-hand); font-size: 1.25rem; color: #6b5850; margin: 8px 2px 0; line-height: 1; }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(0.9); } }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 40px 0 90px; }
.feature { padding: 26px; border-radius: var(--r); background: color-mix(in srgb, var(--card) 65%, transparent); border: 1px solid var(--hair); }
.feature .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent-deep); margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }
.footer { padding: 30px 0 50px; text-align: center; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .hero-art { height: 380px; order: -1; }
  .features { grid-template-columns: 1fr; }
}

/* ---------- auth ---------- */
.auth { min-height: calc(100vh - 80px); display: grid; place-items: center; padding: 30px 0 60px; }
.auth .card { width: min(440px, 100%); }
.auth h2 { margin-bottom: 6px; }
.google-btn svg { width: 18px; height: 18px; }

/* ---------- dashboard ---------- */
.dash-head { padding: 40px 0 26px; display: flex; align-items: end; gap: 16px; flex-wrap: wrap; }
.grid-journeys { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding-bottom: 80px; }
.jcard {
  position: relative; display: flex; flex-direction: column; min-height: 220px; padding: 26px;
  border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--hair); box-shadow: var(--shadow);
  text-decoration: none; color: inherit; overflow: hidden;
  transition: transform 0.35s var(--spring), box-shadow 0.3s;
}
.jcard:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: var(--shadow-lg); }
.jcard .jline { position: absolute; right: -10px; bottom: -6px; width: 70%; opacity: 0.9; }
.jcard h3 { font-size: 1.5rem; margin: 10px 0 6px; }
.jcard .meta { margin-top: auto; display: flex; gap: 14px; font-size: 0.85rem; color: var(--muted); position: relative; }
.jcard.new {
  align-items: center; justify-content: center; text-align: center; gap: 10px;
  background: transparent; border: 2px dashed var(--hair-strong); box-shadow: none; color: var(--ink-soft);
}
.jcard.new .plus { width: 54px; height: 54px; border-radius: 50%; background: var(--accent-wash); color: var(--accent-deep); display: grid; place-items: center; }
.jcard.new .plus svg { width: 26px; height: 26px; }

/* ---------- journey hero ---------- */
.jhero { padding: clamp(30px, 7vh, 70px) 0 10px; text-align: center; position: relative; }
.jhero h1 { max-width: 16ch; margin: 12px auto 12px; }
.jhero .sub { color: var(--ink-soft); font-size: 1.1rem; max-width: 46ch; margin: 0 auto; }
.countdown {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 8px 16px 8px 10px;
  border-radius: 999px; background: var(--card); box-shadow: var(--shadow-sm); border: 1px solid var(--hair); font-size: 0.9rem;
}
.countdown .ring { width: 30px; height: 30px; }
.countdown b { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.jtools { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.viewer-as { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }
.viewer-as button { border: 0; background: none; color: var(--accent-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }

/* ---------- timeline ---------- */
.timeline { position: relative; padding: 40px 0 60px; min-height: 300px; }
.tl-svg { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.tl-svg .ghost { fill: none; stroke: var(--hair-strong); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.tl-svg .drawn { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 3px color-mix(in srgb, var(--accent) 30%, transparent)); }
.tl-svg .conn { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 5; opacity: 0.55; stroke-linecap: round; }
.tl-svg .dot { fill: var(--card); stroke: var(--accent); stroke-width: 3; transition: r 0.3s var(--spring); }
.tl-svg .dot.small { stroke-width: 2; }
.tl-svg .dot.lit { fill: var(--accent); }

.tl-list { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 34px; }
.tl-item { position: relative; width: calc(50% - 56px); }
.tl-item.left { align-self: flex-start; }
.tl-item.right { align-self: flex-end; }
.tl-item.compact { width: calc(50% - 70px); max-width: 380px; }
.tl-item.left.compact { margin-left: auto; margin-right: calc(50% + 70px); align-self: auto; }
.tl-item.right.compact { margin-left: calc(50% + 70px); align-self: auto; }
.tl-item { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.tl-item.in { opacity: 1; transform: none; }
.tl-item.flash .post, .tl-item.flash .bubble { animation: flash 1.6s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: var(--shadow); } 30% { box-shadow: 0 0 0 6px var(--accent-soft), var(--shadow-lg); } }

.tl-day { align-self: center; position: relative; z-index: 1; }
.tl-day span {
  display: inline-block; padding: 4px 16px 6px; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--hair-strong); font-family: var(--font-hand); font-size: 1.35rem; color: var(--ink-soft);
}
.tl-start, .tl-now { align-self: center; text-align: center; position: relative; z-index: 1; }
.tl-start .seed { font-family: var(--font-hand); font-size: 1.5rem; color: var(--muted); background: var(--paper); padding: 0 12px; }
.tl-now .now-dot {
  width: 22px; height: 22px; margin: 0 auto 10px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft); animation: beat 2.2s ease-out infinite;
}
@keyframes beat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 70%, 100% { box-shadow: 0 0 0 22px transparent; } }
.tl-now p { margin: 0 0 14px; font-family: var(--font-hand); font-size: 1.5rem; color: var(--ink-soft); background: var(--paper); padding: 0 10px; display: inline-block; }

@media (max-width: 760px) {
  .tl-item, .tl-item.compact, .tl-item.left.compact, .tl-item.right.compact {
    width: auto; align-self: stretch; margin-left: 52px; margin-right: 0; max-width: none;
  }
  .tl-day, .tl-start, .tl-now { align-self: flex-start; margin-left: 4px; }
  .tl-now { text-align: left; }
  .tl-now .now-dot { margin: 0 0 10px 6px; }
  .tl-list { gap: 26px; }
}

/* post card */
.post {
  position: relative; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow);
  border: 1px solid var(--hair); overflow: hidden;
}
.post-body { padding: 18px 22px 16px; }
.post-body .caption { margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.post.text .post-body { padding: 26px 26px 18px; }
.post.text .caption { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.45; font-variation-settings: 'SOFT' 100, 'opsz' 30; font-weight: 380; }
.post-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.8rem; margin-bottom: 8px; }
.post-meta .time { font-family: var(--font-hand); font-size: 1.2rem; color: var(--ink-soft); }
.post-meta .tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 99px; background: var(--accent-wash); color: var(--accent-deep);
}
.post-meta .lock { display: inline-flex; color: var(--muted); }
.post-meta .lock svg { width: 14px; height: 14px; }
.post-foot { display: flex; align-items: center; gap: 6px; padding: 0 14px 12px 16px; flex-wrap: wrap; }

.post.photo { padding: 12px 12px 0; transform: rotate(var(--tilt, -0.8deg)); border-radius: 10px; }
.tl-item.right .post.photo { --tilt: 0.9deg; }
.post.photo::before {
  content: ''; position: absolute; top: -8px; left: 50%; width: 92px; height: 24px; z-index: 3;
  transform: translateX(-50%) rotate(-3deg);
  background: color-mix(in srgb, var(--accent-soft) 80%, transparent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 50%);
}
.post.photo .post-body { padding: 14px 8px 12px; }
.post.photo .post-foot { padding: 0 4px 12px; }

.post.milestone {
  text-align: center; background:
    radial-gradient(circle at 20% 10%, var(--accent-wash), transparent 50%),
    radial-gradient(circle at 90% 90%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 50%),
    var(--card);
}
.post.milestone .post-body { padding: 30px 24px 16px; }
.post.milestone .m-emoji { font-size: 3rem; line-height: 1; margin-bottom: 10px; display: inline-block; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(4deg); } }
.post.milestone h3 { font-size: 1.7rem; margin-bottom: 8px; }
.post.milestone .post-meta, .post.milestone .post-foot { justify-content: center; }

.post .menu-btn { position: absolute; top: 10px; right: 10px; z-index: 4; }
.post.photo .menu-btn { top: 20px; right: 20px; background: color-mix(in srgb, var(--card) 85%, transparent); }

/* media */
.media { position: relative; background: var(--paper-2); overflow: hidden; }
.post.photo .media { border-radius: 4px; }
.media .img { width: 100%; height: 100%; background-size: cover; background-position: center; }
.media img { width: 100%; height: auto; }
.media video { width: 100%; max-height: 70vh; background: #000; }
.media .shimmer { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%) var(--paper-2); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.media .guard { position: absolute; inset: 0; z-index: 2; }
.media .watermark { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0.55; background-repeat: repeat; }
.media .dl {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(6px);
}
.nosave, .nosave * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.nosave img, .nosave video { pointer-events: auto; -webkit-user-drag: none; }

/* voice memo */
.voice { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--accent-wash); }
.voice .play {
  flex: none; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--spring);
}
.voice .play:hover { transform: scale(1.06); }
.voice .play svg { width: 20px; height: 20px; }
.voice .wave { flex: 1; height: 44px; display: flex; align-items: center; gap: 2.5px; cursor: pointer; }
.voice .wave i { flex: 1; min-width: 2px; border-radius: 3px; background: color-mix(in srgb, var(--accent) 35%, transparent); transition: background 0.15s; }
.voice .wave i.on { background: var(--accent-deep); }
.voice .dur { font-variant-numeric: tabular-nums; font-size: 0.85rem; color: var(--ink-soft); min-width: 40px; text-align: right; }
.voice.compact { padding: 10px 12px; border-radius: 14px; }
.voice.compact .play { width: 38px; height: 38px; }
.voice.compact .wave { height: 30px; }

/* comment bubble */
.bubble {
  position: relative; display: flex; gap: 10px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--hair); border-radius: 20px; padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.tl-item.left .bubble { border-bottom-right-radius: 6px; }
.tl-item.right .bubble { border-bottom-left-radius: 6px; }
.bubble .who { font-weight: 700; font-size: 0.85rem; }
.bubble .when { font-size: 0.75rem; color: var(--muted); margin-left: 6px; }
.bubble .text { margin: 2px 0 0; white-space: pre-wrap; word-wrap: break-word; font-size: 0.95rem; }
.bubble .content { flex: 1; min-width: 0; }
.bubble .media { border-radius: 12px; margin-top: 8px; }
.bubble .reply-to {
  display: block; margin: 4px 0 2px; padding: 3px 10px; border-left: 3px solid var(--accent-soft);
  font-size: 0.8rem; color: var(--muted); background: none; border-top: 0; border-right: 0; border-bottom: 0;
  cursor: pointer; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.bubble .room-tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-deep); background: var(--accent-wash); padding: 1px 7px; border-radius: 99px; margin-left: 6px; }
.bubble .x { position: absolute; top: 6px; right: 6px; opacity: 0; transition: opacity 0.2s; }
.bubble:hover .x, .bubble:focus-within .x { opacity: 1; }
.bubble-foot { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }

.avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.02em;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}
.avatar.sm { width: 26px; height: 26px; font-size: 0.68rem; }

/* reactions */
.rx {
  display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 99px;
  border: 1px solid var(--hair); background: var(--paper); cursor: pointer; font-size: 0.88rem;
  transition: transform 0.2s var(--spring), background 0.2s, border-color 0.2s;
}
.rx:hover { transform: translateY(-1px); }
.rx.mine { background: var(--accent-wash); border-color: var(--accent-soft); }
.rx b { font-weight: 600; font-size: 0.8rem; color: var(--ink-soft); }
.rx.pop { animation: rxpop 0.45s var(--spring); }
@keyframes rxpop { 40% { transform: scale(1.3); } }
.rx-add { width: 30px; justify-content: center; padding: 0; color: var(--muted); }
.rx-add svg { width: 16px; height: 16px; }
.icon-link { border: 0; background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; font-weight: 600; padding: 6px 8px; border-radius: 99px; }
.icon-link:hover { color: var(--accent-deep); background: var(--accent-wash); }
.icon-link svg { width: 16px; height: 16px; }

.emoji-pop {
  position: fixed; z-index: 90; display: flex; gap: 2px; padding: 6px; border-radius: 99px;
  background: var(--card); box-shadow: var(--shadow-lg); border: 1px solid var(--hair);
  animation: pop-in 0.3s var(--spring);
}
.emoji-pop button { border: 0; background: none; font-size: 1.4rem; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: transform 0.2s var(--spring), background 0.2s; }
.emoji-pop button:hover { transform: scale(1.25) translateY(-3px); background: var(--accent-wash); }

.burst { position: fixed; z-index: 95; pointer-events: none; font-size: 1.4rem; animation: burst 0.9s var(--ease) forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(0.6) rotate(var(--rot)); opacity: 0; } }

/* ---------- dock (floating action bar) ---------- */
.dock {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 40; display: flex; gap: 6px; padding: 7px; border-radius: 999px;
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg); border: 1px solid var(--hair);
  animation: dock-in 0.7s var(--spring) 0.3s both;
}
@keyframes dock-in { from { transform: translate(-50%, 120%); } }
.dock .btn { box-shadow: none; }
.dock .btn.ghost { color: var(--ink-soft); }
.dock .badge {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--accent); color: #fff; font-size: 0.68rem; font-weight: 700; display: grid; place-items: center;
}
.dock .chat-btn { position: relative; }
@media (max-width: 520px) { .dock .lbl { display: none; } .dock .btn { padding: 0; width: 46px; } .dock .btn.primary { width: auto; padding: 0 18px; } .dock .btn.primary .lbl { display: inline; } }

/* ---------- chat drawer ---------- */
.chat {
  position: fixed; right: 18px; bottom: 90px; z-index: 45; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 140px));
  display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  background: var(--card); border: 1px solid var(--hair); box-shadow: var(--shadow-lg);
  transform-origin: bottom right; transition: transform 0.4s var(--spring), opacity 0.25s;
}
.chat.closed { transform: scale(0.85) translateY(20px); opacity: 0; pointer-events: none; }
.chat-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--hair); display: flex; align-items: center; gap: 10px; background: var(--accent-wash); }
.chat-head h3 { font-size: 1.15rem; }
.presence { display: flex; align-items: center; }
.presence .avatar { width: 24px; height: 24px; font-size: 0.6rem; border: 2px solid var(--accent-wash); margin-left: -7px; }
.presence .count { font-size: 0.75rem; color: var(--muted); margin-left: 6px; }
.chat-list { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 4px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 82%; }
.msg .m-who { font-size: 0.72rem; font-weight: 700; color: var(--muted); margin: 8px 10px 2px; }
.msg .m-txt { padding: 8px 13px; border-radius: 18px; background: var(--paper-2); white-space: pre-wrap; word-wrap: break-word; font-size: 0.93rem; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me .m-txt { background: var(--accent); color: #fff; }
.msg .m-time { font-size: 0.68rem; color: var(--muted); margin: 2px 10px 0; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); padding: 30px; }
.chat-empty .hand { font-size: 1.6rem; color: var(--ink-soft); display: block; margin-bottom: 6px; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--hair); }
.chat-form .input { border-radius: 999px; padding: 10px 16px; }
@media (max-width: 520px) { .chat { right: 12px; left: 12px; width: auto; bottom: 86px; } }

/* ---------- modal / sheet ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 80; background: rgba(40, 26, 22, 0.38); backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 16px; animation: fade 0.25s ease both; overflow-y: auto;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--hair);
  animation: sheet-in 0.45s var(--spring) both;
}
.modal.wide { width: min(720px, 100%); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(30px) scale(0.97); } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 20px 22px 6px; position: sticky; top: 0; background: var(--card); z-index: 2; }
.modal-head h2 { font-size: 1.5rem; }
.modal-body { padding: 10px 22px 22px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px 20px; border-top: 1px solid var(--hair); position: sticky; bottom: 0; background: var(--card); }
@media (max-width: 600px) {
  .modal-back { place-items: end center; padding: 0; }
  .modal { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 94vh; animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(100%); } }
}

/* ---------- composer ---------- */
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kind {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px 16px;
  border-radius: var(--r); border: 1px solid var(--hair); background: var(--paper); cursor: pointer;
  font-weight: 600; font-size: 0.9rem; transition: transform 0.3s var(--spring), border-color 0.2s, background 0.2s;
}
.kind:hover { transform: translateY(-3px); border-color: var(--accent-soft); background: var(--accent-wash); }
.kind .ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--card); color: var(--accent-deep); box-shadow: var(--shadow-sm); }
.kind .ic svg { width: 24px; height: 24px; }
@media (max-width: 420px) { .kinds { grid-template-columns: repeat(2, 1fr); } }

.capture { position: relative; border-radius: var(--r); overflow: hidden; background: #191213; aspect-ratio: 4 / 5; max-height: 62vh; margin-inline: auto; width: 100%; }
.capture video { width: 100%; height: 100%; object-fit: cover; }
.capture video.mirror { transform: scaleX(-1); }
.capture .ctrls { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; align-items: center; justify-content: center; gap: 28px; z-index: 2; }
.shutter {
  width: 74px; height: 74px; border-radius: 50%; border: 4px solid #fff; background: rgba(255, 255, 255, 0.25);
  cursor: pointer; display: grid; place-items: center; transition: transform 0.2s var(--spring);
}
.shutter::after { content: ''; width: 56px; height: 56px; border-radius: 50%; background: #fff; transition: all 0.25s var(--ease); }
.shutter:active { transform: scale(0.92); }
.shutter.rec::after { background: #e5484d; }
.shutter.recording::after { width: 28px; height: 28px; border-radius: 8px; background: #e5484d; }
.cam-btn { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.2); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.cam-btn svg { width: 22px; height: 22px; }
.rec-timer { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 2; color: #fff; font-variant-numeric: tabular-nums; font-weight: 600; background: rgba(0, 0, 0, 0.35); padding: 4px 12px; border-radius: 99px; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.rec-timer::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; animation: pulse 1s infinite; }
.flash-fx { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 3; }
.flash-fx.go { animation: flashfx 0.4s ease-out; }
@keyframes flashfx { 0% { opacity: 0.9; } 100% { opacity: 0; } }

.recorder { text-align: center; padding: 26px 10px 10px; }
.recorder canvas { width: 100%; height: 120px; margin: 0 auto 20px; }
.recorder .big-time { font-family: var(--font-display); font-size: 2.8rem; font-variant-numeric: tabular-nums; margin-bottom: 18px; font-weight: 400; }
.mic-btn {
  width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer; margin: 0 auto;
  background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
  transition: transform 0.25s var(--spring), border-radius 0.3s var(--ease);
}
.mic-btn svg { width: 32px; height: 32px; }
.mic-btn.on { background: #e5484d; animation: beat 1.6s ease-out infinite; }

.draft-label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-hand); font-size: 1.35rem; color: var(--accent-deep); margin-bottom: 8px; }
.draft-preview { border-radius: var(--r); overflow: hidden; border: 1px dashed var(--accent-soft); padding: 12px; background: var(--paper); }
.draft-preview .media { border-radius: 12px; }
.draft-preview img, .draft-preview video { width: 100%; border-radius: 12px; max-height: 50vh; object-fit: contain; background: var(--paper-2); }
details.privacy { border-radius: var(--r); background: var(--paper); padding: 4px 16px; border: 1px solid var(--hair); }
details.privacy summary { cursor: pointer; padding: 12px 0; font-weight: 600; display: flex; align-items: center; gap: 8px; list-style: none; }
details.privacy summary::-webkit-details-marker { display: none; }
details.privacy summary svg { width: 18px; height: 18px; color: var(--accent-deep); }
details.privacy[open] summary { border-bottom: 1px dashed var(--hair); }
.tri-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.tri-row + .tri-row { border-top: 1px dashed var(--hair); }
.tri-row b { font-size: 0.92rem; font-weight: 600; display: block; }
.tri-row small { color: var(--muted); font-size: 0.78rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--hair-strong); cursor: pointer; font-size: 0.85rem; font-weight: 600; background: var(--card); transition: all 0.2s; }
.chip-check input { display: none; }
.chip-check:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #fff; }
.emoji-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-grid button { width: 44px; height: 44px; font-size: 1.5rem; border-radius: 12px; border: 1px solid var(--hair); background: var(--paper); cursor: pointer; }
.emoji-grid button.on { border-color: var(--accent); background: var(--accent-wash); box-shadow: 0 0 0 2px var(--accent-soft); }
.reply-chip { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--accent-wash); font-size: 0.85rem; color: var(--ink-soft); }
.reply-chip span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- rooms panel ---------- */
.room-card { border: 1px solid var(--hair); border-radius: var(--r); padding: 16px 18px; background: var(--paper); }
.room-card + .room-card { margin-top: 12px; }
.room-card.inactive { opacity: 0.65; }
.room-card h3 { font-size: 1.2rem; }
.linkbox { display: flex; align-items: center; gap: 6px; margin: 12px 0 6px; padding: 6px 6px 6px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--hair); }
.linkbox code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; color: var(--ink-soft); }
.room-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin-top: 6px; }
.room-toggles .toggle { padding: 8px 0; border: 0; }
.room-toggles .toggle .sw { width: 38px; height: 24px; }
.room-toggles .toggle .sw::after { width: 18px; height: 18px; }
.room-toggles .toggle input:checked + .sw::after { transform: translateX(14px); }
@media (max-width: 480px) { .room-toggles { grid-template-columns: 1fr; } }

/* ---------- invite gate ---------- */
.gate { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 30px 0 80px; }
.invite {
  width: min(480px, 100%); text-align: center; position: relative;
  background: var(--card); border-radius: 36px; box-shadow: var(--shadow-lg); border: 1px solid var(--hair);
  padding: 46px 30px 32px; overflow: hidden;
}
.invite::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 150px;
  background: radial-gradient(80% 120% at 50% 0%, var(--accent-soft), transparent 70%);
}
.invite > * { position: relative; }
.invite .seal { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 2.2rem; box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
.invite h1 { font-size: clamp(2rem, 6vw, 2.6rem); margin: 8px 0 10px; }
.invite form { margin-top: 26px; text-align: left; }

/* ---------- empty ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty .hand { font-size: 2rem; display: block; margin-bottom: 8px; color: var(--accent-deep); }

/* ---------- toasts ---------- */
#toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  padding: 11px 18px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 0.9rem; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: toast-in 0.4s var(--spring) both; pointer-events: auto; max-width: calc(100vw - 32px);
}
.toast.err { background: #a73a33; color: #fff; }
.toast.out { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(0.95); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px); } }

/* ---------- menu ---------- */
.menu { position: fixed; z-index: 90; min-width: 190px; padding: 6px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-lg); border: 1px solid var(--hair); animation: pop-in 0.25s var(--spring); }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px; cursor: pointer; font-size: 0.9rem; text-align: left; }
.menu button:hover { background: var(--accent-wash); }
.menu button svg { width: 17px; height: 17px; color: var(--muted); }
.menu button.danger { color: #b4423a; }

/* ---------- content protection ---------- */
#veil {
  position: fixed; inset: 0; z-index: 99; display: none; place-items: center;
  background: color-mix(in srgb, var(--paper) 55%, transparent); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
}
#veil .veil-card { text-align: center; font-family: var(--font-hand); font-size: 1.6rem; color: var(--ink-soft); }
#veil .veil-card span { font-size: 2.4rem; }
body.veiled #veil { display: grid; }
body.veiled .shield .media { filter: blur(30px); }
@media print {
  .shield, .bubble .media, .timeline, .chat { display: none !important; }
  body::after { content: 'This journey is private and cannot be printed.'; display: block; padding: 40px; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .tl-item { opacity: 1; transform: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- misc additions ---------- */
.view.journey { padding-bottom: 120px; }
.voice-wrap { display: flex; align-items: center; gap: 4px; }
.voice-wrap .voice { flex: 1; min-width: 0; }
.bubble .voice-wrap { margin-top: 8px; }
.post .voice-wrap .voice { border-radius: 0; }
.post.audio .voice-wrap { background: var(--accent-wash); padding-right: 52px; }
.post.audio .menu-btn { top: 22px; }
.post-meta .by { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }
.pill-alert { font-size: 0.72rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--accent); color: #fff; }
.access-box { margin-top: 10px; padding: 10px 14px 4px; border-radius: 14px; background: var(--card); border: 1px solid var(--hair); }
.access-box .small svg { width: 14px; height: 14px; display: inline; vertical-align: -2px; }
.people-box { margin-top: 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--hair); padding: 0 14px; }
.people-box summary { cursor: pointer; padding: 11px 0; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; list-style: none; }
.people-box summary::-webkit-details-marker { display: none; }
.people-box summary svg { width: 17px; height: 17px; color: var(--accent-deep); }
.people { padding-bottom: 10px; }
.person { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--hair); }
.person .who { min-width: 0; }
.person .who .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn .badge-dot { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 0.68rem; font-weight: 700; display: inline-grid; place-items: center; }
