/* Wala · the new shell and its screens (2 Dec 2026): Today, Discover, You, lists, statements, the admin, and the scroll's new cards.
   Built on wala.css's tokens, so every theme (dark, light, inverted cards) and accent colour carries through. */

:root {
  --tint-0: linear-gradient(140deg, #1f6bff, #5b2bd6);
  --tint-1: linear-gradient(140deg, #7c2dfb, #e83cf4);
  --tint-2: linear-gradient(140deg, #0f766e, #22c55e);
  --tint-3: linear-gradient(140deg, #c2410c, #f59e0b);
  --tint-4: linear-gradient(140deg, #be185d, #ff2d8f);
  --tint-5: linear-gradient(140deg, #1e3a8a, #0ea5e9);
  --tint-6: linear-gradient(140deg, #4d7c0f, #a3a019);
  --tint-7: linear-gradient(140deg, #7f1d1d, #ea580c);
  --soft: color-mix(in srgb, var(--ink) 6%, transparent);
}
.tint-0 { background: var(--tint-0); } .tint-1 { background: var(--tint-1); } .tint-2 { background: var(--tint-2); } .tint-3 { background: var(--tint-3); }
.tint-4 { background: var(--tint-4); } .tint-5 { background: var(--tint-5); } .tint-6 { background: var(--tint-6); } .tint-7 { background: var(--tint-7); }

.page-h { font-size: clamp(1.7rem, 6vw, 2.2rem); letter-spacing: -.02em; margin: 4px 0 10px; }
.stack-sm > * + * { margin-top: 10px; }
.see-all { margin-left: auto; font-size: .88rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font: inherit; display: inline-flex; gap: 5px; align-items: center; }
.wala-link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.error-flash { background: var(--danger-soft); color: var(--danger); }
[x-cloak] { display: none !important; }

/* Tabbar: the You tab carries the believer's initial, like an avatar. */
.tab-avatar { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid currentColor; font-size: .72rem; font-weight: 700; }
.tabbar a[aria-current="page"] .tab-avatar { background: var(--ink-strong); color: var(--bg); border-color: var(--ink-strong); }

/* ── Today ─────────────────────────────────────────────────────────────── */
.today-head { display: flex; align-items: center; gap: 12px; }
.today-tabs { display: flex; align-items: baseline; gap: 14px; }
.today-tabs b { font-size: 1.7rem; letter-spacing: -.02em; border-bottom: 3px solid var(--logo-pink); padding-bottom: 4px; }
.today-tabs a { color: var(--muted); font-weight: 650; font-size: 1.2rem; text-decoration: none; }
.today-streak { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.today-greet { margin: 18px 2px 4px; font-weight: 650; font-size: 1.1rem; }
.vod { position: relative; overflow: hidden; border-radius: 22px; padding: 22px 20px 12px; color: #f5f1e8;
  background: radial-gradient(90% 70% at 85% 110%, rgba(232, 60, 244, .35), transparent 60%), radial-gradient(70% 60% at 0% 120%, rgba(31, 107, 255, .35), transparent 60%), linear-gradient(170deg, #0b0f1d, #05060b); }
.vod-eyebrow { margin: 0; font-size: .86rem; opacity: .85; }
.vod-ref { margin: 2px 0 14px; font-weight: 700; font-size: 1.05rem; }
.vod-ref span { font-weight: 600; opacity: .7; margin-left: 4px; }
.vod-text { margin: 0 0 18px; font: clamp(1.35rem, 5.4vw, 1.75rem)/1.4 var(--serif); }
.vod-actions { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 8px; }
.vod-act { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; background: none; border: 0; color: inherit; font: 600 .82rem var(--sans); cursor: pointer; text-decoration: none; }
.guided { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.guided:hover { text-decoration: none; background: var(--card-hi); }
.guided-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.guided-text small { color: var(--muted); font-size: .86rem; }
.guided-text b { font-size: 1.12rem; line-height: 1.3; }
.guided-text i { font-style: normal; color: var(--muted); font-size: .86rem; display: inline-flex; gap: 6px; align-items: center; }
.guided-art { width: 92px; height: 92px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.art-a { background: radial-gradient(60% 60% at 50% 40%, #ffd98a55, transparent), linear-gradient(160deg, #102040, #050a18); }
.art-b { background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 9px), linear-gradient(160deg, #0b0b12, #1c1030); }
.art-c { background: linear-gradient(140deg, #7c2dfb, #ff2d8f); }
.ask-real h2 { font-size: 1.2rem; }
.hammer-card { border-radius: 18px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--logo-coral) 45%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--logo-coral) 10%, var(--card)), var(--card)); }
.hammer-text { font: 1.3rem/1.42 var(--serif); margin: 10px 0 4px; }
.hammer-ref { margin: 0 0 10px; color: var(--muted); font-weight: 600; font-size: .86rem; }
.due-line { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 1rem/1.4 var(--serif); cursor: pointer; text-decoration: none; }
.due-line small { font: 600 .78rem var(--sans); color: var(--muted); }
.continue-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cc-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint-1); color: #fff; flex: none; }
.cc-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cc-text small { color: var(--muted); font-weight: 600; }
.cc-bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.cc-bar i { display: block; height: 100%; background: var(--brand-grad); }
.cc-go { font-weight: 650; font-size: .86rem; color: var(--muted); }
.hrow { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; }
.hrow::-webkit-scrollbar { display: none; }
.tile-card { flex: 0 0 168px; min-height: 132px; scroll-snap-align: start; border-radius: 16px; padding: 14px; color: #fff; display: flex; flex-direction: column; gap: 4px; text-decoration: none; background: var(--tint-0); }
.tile-card:hover { text-decoration: none; filter: brightness(1.08); }
.tile-card small { opacity: .85; font-weight: 600; font-size: .76rem; }
.tile-card b { font-size: 1.05rem; line-height: 1.25; }
.tile-card span { margin-top: auto; font-size: .78rem; opacity: .85; }
.tile-card.mini { background: linear-gradient(150deg, #3a2a10, #7a4a12); }

/* ── Discover ──────────────────────────────────────────────────────────── */
.discover-search { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 52px; border-radius: 26px; background: var(--card-hi); border: 1px solid var(--line); color: var(--muted); }
.discover-search input { flex: 1; background: none; border: 0; color: var(--ink); font: 1rem var(--sans); outline: 0; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-grid a { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 650; text-decoration: none; }
.topic-row { display: grid; grid-auto-flow: column; grid-template-rows: 1fr 1fr; grid-auto-columns: 160px; }
.topic-tile { min-height: 92px; border-radius: 14px; padding: 12px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; scroll-snap-align: start; }
.topic-tile b { font-size: .98rem; line-height: 1.2; }
.topic-tile-icon { opacity: .85; }
.plan-row { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; color: var(--ink); text-decoration: none; }
.plan-row:hover { background: var(--card-hi); text-decoration: none; }
.plan-art { width: 84px; height: 84px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.plan-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plan-text small { color: var(--muted); font-weight: 600; }
.plan-text b { font-size: 1.08rem; }
.plan-text span { color: var(--muted); font-size: .88rem; }
.plan-go { padding: 9px 18px; border-radius: 20px; background: var(--card-hi); border: 1px solid var(--line); font-weight: 650; font-size: .9rem; }
.draft-tag { font-style: normal; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--gold-soft); font-size: .72rem; }
.statement-mini { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 1.02rem/1.45 var(--serif); }
.statement-mini small { font: 600 .78rem var(--sans); color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }

/* ── You ───────────────────────────────────────────────────────────────── */
.you-head { display: flex; align-items: flex-start; gap: 12px; }
.you-head h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); margin: 0; letter-spacing: -.02em; }
.you-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.you-avatar { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--ink); display: grid; place-items: center; font-size: 1.8rem; font-weight: 700; }
.you-avatar.big { width: 84px; height: 84px; margin: 0 auto; }
.leader-badge { display: inline-flex; gap: 6px; align-items: center; margin: 6px 0 0; color: var(--muted); font-weight: 600; font-size: .88rem; }
.you-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 14px 0 16px; }
.you-tabs button { background: none; border: 0; padding: 10px 0; font: 650 1.05rem var(--sans); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.you-tabs button[aria-selected="true"] { color: var(--ink-strong); border-color: var(--ink-strong); }
.stat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-pair.three { grid-template-columns: repeat(3, 1fr); }
.stat-box { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.stat-box small { color: var(--muted); font-weight: 600; font-size: .86rem; }
.stat-box b { font-size: 2.2rem; display: inline-flex; align-items: center; gap: 6px; }
.stat-box span { color: var(--muted); font-size: .84rem; }
.stat-box.small-box b { font-size: 1.5rem; }
.milestones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.milestone { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; opacity: .38; }
.milestone span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); }
.milestone small { font-size: .7rem; font-weight: 600; line-height: 1.2; }
.milestone.on { opacity: 1; }
.milestone.on span { background: var(--brand-grad); border-color: transparent; color: #fff; }
.activity-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.activity-row b { font-weight: 500; font-size: .95rem; }
.activity-row small { color: var(--muted); }
.saved-menu { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.saved-menu > a, .saved-menu > button { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 16px 4px; border: 0; border-bottom: 1px solid var(--line-soft); background: none; color: var(--ink); font: 600 1.05rem var(--sans); text-decoration: none; text-align: left; cursor: pointer; }
.saved-menu small { color: var(--muted); font-weight: 500; font-size: .88rem; }
.hl-card { padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.hl-head { display: flex; gap: 8px; margin: 0 0 10px; font-size: .95rem; }
.hl-head small { margin-left: auto; color: var(--muted); }
.hl-card blockquote { margin: 0 0 10px; padding-left: 14px; border-left: 3px solid var(--ink); font: 1.15rem/1.5 var(--serif); }
.note-row { padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.note-row small { color: var(--muted); font-weight: 600; }
.note-row p { margin: 4px 0 0; }

/* ── Lists ─────────────────────────────────────────────────────────────── */
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.list-tile { min-height: 120px; border-radius: 16px; padding: 14px; color: #fff; display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.list-tile b { font-size: 1.1rem; }
.list-tile small { opacity: .85; }
.list-vis { margin-top: auto; font-size: .74rem; opacity: .8; }
.list-tile.new { background: var(--card); border: 1px dashed var(--line); color: var(--ink); }
.list-tile.new input { width: 100%; }
.sort-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.list-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.list-line { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.list-line.state-real { border-color: color-mix(in srgb, #30d158 50%, var(--line)); }
.list-line.state-hammering { border-color: color-mix(in srgb, var(--logo-coral) 60%, var(--line)); }
.list-line.dragging { opacity: .5; }
.list-line .drag { cursor: grab; color: var(--muted); padding-top: 4px; touch-action: none; }
.line-main { flex: 1; min-width: 0; }
.line-text { margin: 0 0 4px; font: 1.08rem/1.45 var(--serif); }
.line-ref { margin: 0; font-size: .8rem; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.line-ref a { color: var(--muted); }
.real-tag, .hammer-tag { display: inline-flex; gap: 3px; align-items: center; padding: 1px 7px; border-radius: 8px; font-size: .72rem; }
.real-tag { background: rgba(48, 209, 88, .16); color: #30d158; }
.hammer-tag { background: color-mix(in srgb, var(--logo-coral) 18%, transparent); color: var(--logo-coral); }
.line-acts { display: flex; gap: 2px; }
.share-url { flex: 1; min-width: 0; }

/* ── Statements ────────────────────────────────────────────────────────── */
.statement-card { border-radius: 22px; padding: 22px 20px; color: #f5f1e8; background: radial-gradient(80% 60% at 90% 110%, rgba(232, 60, 244, .3), transparent 60%), linear-gradient(165deg, #0b1020, #1a1030); }
.ins-statement { margin: 0 0 14px; font: clamp(1.15rem, 4.6vw, 1.5rem)/1.5 var(--serif); }
.ins-statement.big { font-size: clamp(1.3rem, 5.2vw, 1.8rem); }
.st-line { display: inline; }
.st-line + .st-line::before { content: " "; }
.st-join { font: italic .82em var(--sans); opacity: .62; margin: 0 .25em; }
.st-ref { font: 700 .62em var(--sans); letter-spacing: .04em; margin-left: .35em; padding: 1px 5px; border-radius: 6px; background: rgba(255, 255, 255, .12); color: inherit; text-decoration: none; vertical-align: .15em; }
.st-build { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.st-seg { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--card-hi); border: 1px solid var(--line); }
.st-seg.join { background: transparent; border-style: dashed; }
.st-seg .seg-text { flex: 1; font: 1rem/1.4 var(--serif); }
.st-seg small { color: var(--muted); font-weight: 600; white-space: nowrap; }
.st-seg .join-input { flex: 1; font-style: italic; }
.seg-acts { display: flex; gap: 2px; }
.seg-acts button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.wordcount.over b { color: var(--danger); }
.tray { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; }
.tray-item { display: grid; grid-template-columns: 34px 1fr; gap: 2px 10px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.tray-item:hover { background: var(--card-hi); }
.tray-item span { font: .98rem/1.4 var(--serif); }
.tray-item small { grid-column: 2; color: var(--muted); font-weight: 600; font-size: .76rem; }
.tray-add { grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.2rem; cursor: pointer; }

/* ── The scroll's new cards ────────────────────────────────────────────── */
.ins-draft { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 196, 0, .16); color: #ffcc4d; font: 700 .7rem var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.ins-setup { margin: 0 auto 14px; max-width: 30rem; color: var(--ins-muted); font: 1.02rem/1.5 var(--sans); }
.ins-personal { margin: 6px auto 16px; font: italic 1.12rem/1.45 var(--serif); color: var(--ins-ink); opacity: .9; }
.ins-guide-verse { font-size: clamp(1.2rem, 4.4vw, 1.7rem) !important; }
.ins-guide-btn { margin: 8px auto 0; }
.instants .btn { background: var(--ins-ink); color: var(--ins-bg); border-color: var(--ins-ink); }
.instants .btn.ghost { background: transparent; color: var(--ins-ink); border-color: var(--ins-line); }
.ins-later { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--ins-muted); font: 600 .84rem var(--sans); cursor: pointer; text-decoration: underline; }
.instants .ins-statement { color: var(--ins-ink); }
.instants .st-ref { background: var(--ins-line); }
.ins-then, .ins-now { text-align: left; margin: 0 auto 12px; max-width: 30rem; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--ins-line); }
.ins-then span, .ins-now span { display: block; font: 700 .7rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ins-muted); }
.ins-now span { color: var(--ins-hl); }
.ins-then p, .ins-now p { margin: 4px 0; font: 1.05rem/1.45 var(--serif); color: var(--ins-ink); }
.ins-then a, .ins-now a { font: 600 .74rem var(--sans); color: var(--ins-muted); text-decoration: none; }
.ins-bridge-line { margin: 10px auto 0; max-width: 30rem; font: italic 1.08rem/1.45 var(--serif); color: var(--ins-ink); }
.ins-day-title { margin: 0 auto 12px; font: 600 clamp(1.5rem, 6vw, 2.1rem)/1.25 var(--serif); color: var(--ins-ink); }
.ins-daybar { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.ins-daybar i { width: 26px; height: 5px; border-radius: 3px; background: var(--ins-line); }
.ins-daybar i.on { background: var(--mark-grad); }
.kind-truth .ins-insight, .kind-declaration .ins-insight, .kind-prayer .ins-insight { font-style: normal; }
.kind-declaration .ins-insight { font-weight: 600; }
.ins-ref a + a { margin-left: 10px; }
.ins-toast-btn { margin-left: 8px; background: none; border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; color: inherit; font: 600 .8rem var(--sans); cursor: pointer; }

/* ── Sheets and toasts on any page ─────────────────────────────────────── */
.wala-sheet { position: fixed; inset: 0; z-index: 9000; background: rgba(0, 0, 0, .5); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
.wala-sheet.in { opacity: 1; }
.wala-sheet-in { width: 100%; max-width: 520px; max-height: 84vh; overflow-y: auto; background: var(--card); color: var(--ink); border-radius: 20px 20px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(20px); transition: transform .2s; }
.wala-sheet.in .wala-sheet-in { transform: none; }
.wala-sheet-head { display: flex; align-items: center; gap: 10px; }
.wala-sheet-head h2 { margin: 0; font-size: 1.15rem; flex: 1; }
.wala-list-opts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.wala-list-opt { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.wala-list-opt span { display: flex; flex-direction: column; flex: 1; }
.wala-list-opt small { color: var(--muted); }
.wala-new-title { margin-top: 6px; width: 100%; }
.wala-toast { position: fixed; z-index: 9500; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: min(92vw, 460px); padding: 10px 16px; border-radius: 12px; background: var(--ink-strong); color: var(--bg); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); }
.wala-toast a { color: inherit; text-decoration: underline; }

/* ── Admin ─────────────────────────────────────────────────────────────── */
.admin { max-width: 980px; margin: 0 auto; }
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-nav a { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .88rem; }
.admin-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .92rem; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.admin-table th { color: var(--muted); font-weight: 600; font-size: .8rem; }
.review-card { padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); margin-top: 10px; }
.review-card.status-approved { border-left: 4px solid #30d158; }
.review-card.status-rejected { opacity: .6; border-left: 4px solid var(--danger); }
.review-card .pill { font-size: .74rem; }
.pill.warn { background: rgba(255, 159, 10, .16); color: #ff9f0a; }
.rv-verse { margin: 8px 0; padding-left: 12px; border-left: 3px solid var(--line); font: 1.02rem/1.45 var(--serif); }
.rv-verse cite { font: 600 .76rem var(--sans); color: var(--muted); font-style: normal; }
.rv-form textarea { width: 100%; margin: 6px 0; }
.stage-head { margin-top: 22px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; margin: 10px 0 18px; }
.bars i { flex: 1; background: var(--brand-grad); border-radius: 3px 3px 0 0; min-height: 2px; }
.bars.alt i { background: var(--tint-2); }

/* ── Light mode for slow connections ───────────────────────────────────── */
body.lite .ins-art, body.lite .hero-logo, body.lite .hero-icon, body.lite .guided-art { display: none !important; }
body.lite .vod, body.lite .statement-card { background: #0b0f1d; }
body.lite *, body.lite *::before, body.lite *::after { transition: none !important; animation: none !important; }

@media (max-width: 420px) {
  .milestones { grid-template-columns: repeat(4, 1fr); }
  .stat-box b { font-size: 1.8rem; }
  .guided-art { width: 76px; height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .wala-sheet, .wala-sheet-in { transition: none; }
}

/* ── The Bible reader's verse bar ──────────────────────────────────────── */
.bible-text .bv { cursor: pointer; border-radius: 4px; transition: background .15s; }
.bible-text .bv.bv-on { background: var(--accent-soft); text-decoration: underline dotted; text-underline-offset: 4px; }
.bible-text .bv.bv-saved { box-shadow: inset 0 -2px 0 var(--logo-pink); }
.bible-bar { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 2px; max-width: calc(100vw - 20px); padding: 6px 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.bible-bar .bb-ref { padding: 0 8px; font-size: .8rem; white-space: nowrap; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }
.bible-bar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 6px; background: none; border: 0; color: var(--ink); font: 600 .66rem var(--sans); cursor: pointer; }
.bible-bar button[data-a="close"] { font-size: 1.3rem; padding: 0 6px; }
@media (min-width: 900px) { .bible-bar { bottom: 24px; } }
.st-seg { flex-wrap: wrap; }
.st-seg .seg-text, .st-seg .join-input { flex: 1 1 100%; }
.st-seg .seg-acts { margin-left: auto; }
.section-title { flex-wrap: wrap; }
.st-ref { white-space: nowrap; }

/* ── Calm (2 Dec 2026, the founder): the meditate screen's look becomes Instants' default and sets the tone everywhere.
      Deep night blue, warm light for the key words, serif Scripture, nothing that competes with the verse. ── */
:root { --calm-bg: #0d0f14; --calm-bg2: #18202c; --calm-ink: #f3efe6; --calm-light: #ffd98a; --calm-key: #9fd3ff; }
:root[data-theme="light"] { --calm-bg: #f6f2ea; --calm-bg2: #fffaf0; --calm-ink: #1d1a16; --calm-light: #b86b00; --calm-key: #1f5fa8; }
.instants.is-original { --ins-bg: var(--calm-bg); --ins-ink: var(--calm-ink); --ins-muted: color-mix(in srgb, var(--calm-ink) 55%, transparent); --ins-line: color-mix(in srgb, var(--calm-ink) 14%, transparent); --ins-hl: var(--calm-light);
  background: radial-gradient(120% 80% at 50% 0%, var(--calm-bg2), var(--calm-bg) 70%); }
.instants.is-original .ins-art { display: none; }
.instants.is-original .ins-verse mark { background: none; color: var(--calm-light); font-weight: 600; }
.instants.is-original .ins-verse { font-family: Georgia, "Times New Roman", serif; }
.instants.is-original .ins-chip { border-color: var(--ins-line); color: var(--ins-muted); }
.instants.is-original .ins-eyebrow { color: var(--calm-light); }
.instants.is-original .btn { background: var(--calm-light); border-color: var(--calm-light); color: #1b1408; border-radius: 24px; }
.instants.is-original .btn.ghost { background: transparent; color: var(--ins-ink); border-color: var(--ins-line); }
.instants.is-original .ins-act { opacity: .78; }
.instants.is-original .ins-act[aria-pressed="true"] { opacity: 1; color: var(--calm-light); }

/* The same calm across the app: fewer gradients, softer cards, warm light for what is active. */
.vod, .statement-card { background: radial-gradient(120% 80% at 50% 0%, #18202c, #0d0f14 70%); color: #f3efe6; }
.vod-text, .statement-card .ins-statement { font-family: Georgia, "Times New Roman", serif; }
.tabbar .tab-instants .tab-orb { background: var(--calm-light) !important; color: #1b1408; box-shadow: none !important; }
.tabbar .tab-instants .icon, .tabbar .tab-instants[aria-current="page"] .icon { color: #1b1408; }
.today-tabs b { border-color: var(--calm-light); }
.cc-bar i, .milestone.on span, .bars i { background: var(--calm-light); }
.milestone.on span { color: #1b1408; }
.flash { background: var(--card-hi); color: var(--ink); border: 1px solid var(--line); }
.art-a, .art-b, .art-c { background: radial-gradient(120% 80% at 50% 0%, #18202c, #0d0f14 70%); color: var(--calm-light); }
.card, .guided, .continue-card, .stat-box, .hl-card, .list-line, .due-line, .statement-mini, .quick-grid a { box-shadow: none; border-color: var(--line-soft); }
.instants.is-original::before, .instants.is-original::after { display: none !important; }
.instants.is-original .ins-lock[aria-pressed="true"], .instants.is-original .ins-sound[aria-pressed="true"], .instants.is-original .ins-choice[aria-pressed="true"] { background: var(--calm-light); color: #1b1408; box-shadow: none; }

/* Black and white base (2 Dec 2026, the founder): no purple. Black in dark, white in light; colour only on elements. */
:root { --calm-bg: #000; --calm-bg2: #000; --calm-ink: #f5f5f5; --tint-0: linear-gradient(140deg, #0a84ff, #0059b3); --tint-1: linear-gradient(140deg, #30b0c7, #0f766e); }
:root[data-theme="light"] { --calm-bg: #fff; --calm-bg2: #fff; --calm-ink: #111; }
.instants.is-original { background: var(--calm-bg); }
.vod, .statement-card, .art-a, .art-b, .art-c { background: var(--calm-bg); color: var(--calm-ink); border: 1px solid var(--line); }
:root[data-theme="light"] .vod-actions { border-color: var(--line); }
.cc-icon { background: var(--calm-light); color: #1b1408; }
.tile-card.mini { background: linear-gradient(140deg, #c2410c, #f59e0b); }
.ins-draft { background: rgba(255, 196, 0, .16); }

/* Instants: the meditate screen's own gradient is the default look (2 Dec 2026, the founder). */
.instants.is-original { background: radial-gradient(120% 80% at 50% 0%, #18202c, #0d0f14 70%); }
:root[data-theme="light"] .instants.is-original { background: radial-gradient(120% 80% at 50% 0%, #fffaf0, #f6f2ea 70%); --ins-ink: #1d1a16; --ins-hl: #b86b00; --calm-light: #b86b00; }
/* The reading glow: the word being read lit, the rest faded. */
.ins-verse .rw { transition: opacity .45s ease, color .3s ease, text-shadow .3s ease; }
.ins-verse.is-reading .rw { opacity: .32; }
.ins-verse.is-reading .rw.done { opacity: .9; }
.ins-verse.is-reading .rw.on { opacity: 1; color: var(--calm-light); text-shadow: 0 0 18px rgba(255, 217, 138, .55); }
/* Fit any phone: four actions on the card, the rest in More; long verses scroll inside the card; nothing under the tabs. */
.ins-card { padding-right: 64px; }
.ins-body { max-height: 100%; overflow-y: auto; scrollbar-width: none; }
.ins-body::-webkit-scrollbar { display: none; }
.ins-actions { gap: 12px; }
.ins-act span { font-size: .66rem; }
.ins-more { position: relative; }
.ins-more > summary { list-style: none; cursor: pointer; }
.ins-more > summary::-webkit-details-marker { display: none; }
.ins-more-pop { position: absolute; right: 52px; bottom: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 10px; border-radius: 16px; background: color-mix(in srgb, var(--ins-bg) 92%, transparent); border: 1px solid var(--ins-line); backdrop-filter: blur(10px); }
@media (max-height: 640px) { .ins-verse { font-size: clamp(1.1rem, 3.6dvh, 1.7rem) !important; } .ins-actions { gap: 8px; bottom: 12px; } .ins-act span { display: none; } }
.ins-autoplay[aria-pressed="true"] { background: var(--calm-light); color: #1b1408; border-color: transparent; }
@media (max-width: 420px) { .ins-top .ins-journey-pill { display: none; } }

/* ═══ The new logo's palette across the whole platform (2 Dec 2026) ═══
   Dark: the logo's night blue, #07080D → #1A2036, with its gold #E9C46A. Light: the logo's cream #F6F1E6 with its deep gold #9A7420.
   No black, no purple. */
:root, :root[data-theme="dark"] {
  --bg: #0b0e18; --panel: #090b13; --topbar: #090b13; --card: #121626; --card-hi: #1a2036; --active: #1d2338;
  --ink: #eceaf2; --ink-strong: #ffffff; --muted: #9aa0b4; --faint: #6b7189; --line: #252b40; --line-soft: #1b2032;
  --primary: #E9C46A; --primary-ink: #07080D; --accent: #E9C46A; --accent-soft: rgba(233, 196, 106, .14); --banner: #E9C46A;
  --gold: #E9C46A; --gold-soft: rgba(233, 196, 106, .14); --tab-active: #E9C46A; --scripture: #ffffff;
  --logo-blue: #E9C46A; --logo-violet: #E9C46A; --logo-magenta: #E9C46A; --logo-pink: #E9C46A; --logo-coral: #d9a441;
  --brand-grad: linear-gradient(120deg, #f3d98f, #E9C46A 55%, #c99a3c); --mark-grad: linear-gradient(100deg, #f3d98f, #E9C46A);
  --calm-bg: #07080D; --calm-bg2: #1A2036; --calm-ink: #f3efe6; --calm-light: #E9C46A;
  --app-bg: linear-gradient(160deg, #07080D 0%, #10131f 55%, #1A2036 100%);
}
:root[data-theme="light"] {
  --bg: #F6F1E6; --panel: #F3EDE0; --topbar: #F3EDE0; --card: #FFFBF3; --card-hi: #EFE8D9; --active: #E9E1CF;
  --ink: #17191f; --ink-strong: #07080D; --muted: #6c675c; --faint: #a39d90; --line: #E2D9C6; --line-soft: #EBE4D5;
  --primary: #07080D; --primary-ink: #F6F1E6; --accent: #9A7420; --accent-soft: rgba(154, 116, 32, .12); --banner: #9A7420;
  --gold: #9A7420; --gold-soft: rgba(154, 116, 32, .12); --tab-active: #9A7420; --scripture: #07080D;
  --logo-blue: #9A7420; --logo-violet: #9A7420; --logo-magenta: #9A7420; --logo-pink: #9A7420; --logo-coral: #9A7420;
  --brand-grad: linear-gradient(120deg, #b8902f, #9A7420); --mark-grad: linear-gradient(100deg, #9A7420, #7d5c14);
  --calm-bg: #F6F1E6; --calm-bg2: #FFFBF3; --calm-ink: #17191f; --calm-light: #9A7420;
  --app-bg: linear-gradient(160deg, #FFFBF3 0%, #F6F1E6 60%, #EFE6D3 100%);
}
:root[data-accent="gold"] { --ac: #E9C46A; } :root[data-theme="light"][data-accent="gold"] { --ac: #9A7420; }
html, body { background: var(--app-bg) fixed; background-color: var(--bg); }
.shell, .main { background: transparent; }
.topbar, .rail, .sidebar, .tabbar { background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(12px); }

/* Instants, the meditate player and the hero cards wear the logo's gradient. */
.instants.is-original, .vod, .statement-card, .art-a, .art-b, .art-c { background: linear-gradient(160deg, var(--calm-bg) 0%, var(--calm-bg2) 100%); color: var(--calm-ink); }
.instants.is-original { --ins-ink: var(--calm-ink); --ins-hl: var(--calm-light); }
:root[data-theme="light"] .instants.is-original { background: linear-gradient(160deg, #FFFBF3, #F6F1E6 60%, #EFE6D3); }
.wm { --wm-bg: #07080D; --wm-bg2: #1A2036; --wm-light: #E9C46A; --wm-key: #f3d98f; background: linear-gradient(160deg, var(--wm-bg), var(--wm-bg2)); }
:root[data-theme="light"] .wm { --wm-bg: #FFFBF3; --wm-bg2: #EFE6D3; --wm-ink: #17191f; --wm-light: #9A7420; --wm-key: #7d5c14; }
.ins-verse.is-reading .rw.on { text-shadow: 0 0 18px rgba(233, 196, 106, .55); }
.wala-toast { background: var(--primary); color: var(--primary-ink); }
.flash { background: var(--card-hi); color: var(--ink); }
.tile-card.mini { background: linear-gradient(140deg, #9A7420, #E9C46A); color: #07080D; }
.ins-draft { color: var(--calm-light); }

/* The logos: white on the dark theme, ink-and-gold on cream in light. */
.hero-logo { display: block; } .hero-logo-light { display: none; } .hero-icon { display: none !important; }
:root[data-theme="light"] .hero-logo { display: none; } :root[data-theme="light"] .hero-logo-light { display: block; }
.hero-logo, .hero-logo-light { width: min(440px, 82vw); height: auto; margin: 0 auto; }
.brand-icon { border-radius: 9px; }

/* Smaller "Need help now?"; a theme button you can see. */
.help-btn { padding: 3px 9px !important; font-size: .7rem !important; font-weight: 600; }
.theme-top, .rail-item .icon { color: var(--ink-strong); }
.theme-top { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 999px; background: var(--card-hi); }
/* The last of the purple, gone. */
.tint-purple { background: var(--accent-soft); color: var(--accent); }
.glow::after { display: none; }
.tabbar .tab-instants .tab-orb, .ins-lock[aria-pressed="true"], .ins-choice[aria-pressed="true"], .ins-sound[aria-pressed="true"] { box-shadow: none !important; }
.ins-lock[aria-pressed="true"], .ins-choice[aria-pressed="true"], .ins-sound[aria-pressed="true"] { color: #07080D; }
.ins-welcome-icon { box-shadow: 0 10px 40px rgba(233, 196, 106, .18); }
.ins-hl-dot[data-c="gradient"] { background: linear-gradient(135deg, #f3d98f, #E9C46A, #c99a3c); }
.instants[data-hl="purple"] { --hlc: rgba(233, 196, 106, .4); }
.instants[data-hl="gradient"], .instants:not([data-hl]) { --hlc: rgba(233, 196, 106, .34); }
.ins-verse.is-reading mark .rw:not(.on):not(.done) { opacity: .5; }
/* Tiles in the logo's family: night blue, gold, and earthy companions. No violet or pink. */
:root, :root[data-theme="light"] {
  --tint-0: linear-gradient(140deg, #1A2036, #33406a); --tint-1: linear-gradient(140deg, #9A7420, #E9C46A);
  --tint-2: linear-gradient(140deg, #14532d, #3f8f4f); --tint-3: linear-gradient(140deg, #9a4a12, #d98a2b);
  --tint-4: linear-gradient(140deg, #7f1d1d, #c2512b); --tint-5: linear-gradient(140deg, #0f3b57, #2b7a9e);
  --tint-6: linear-gradient(140deg, #3d4a1c, #8a8f2a); --tint-7: linear-gradient(140deg, #07080D, #1A2036);
}
.tint-1 { color: #07080D; }
.ins-verse.is-reading mark .rw:not(.on):not(.done) { opacity: .75; }

/* Reading style "bubble" (2 Dec 2026): the word being read grows and brightens, the rest stays faint.
   Words already lit in gold always read as a bubble, since a glow would not show on them. */
.ins-verse .rw { display: inline-block; transition: opacity .4s ease, color .3s ease, transform .28s ease, text-shadow .3s ease; transform-origin: 50% 70%; }
.instants[data-readstyle="bubble"] .ins-verse.is-reading .rw.on,
.ins-verse.is-reading mark .rw.on { transform: scale(1.38); opacity: 1; color: #fff; text-shadow: 0 0 22px rgba(233, 196, 106, .35); position: relative; z-index: 1; }
:root[data-theme="light"] .instants[data-readstyle="bubble"] .ins-verse.is-reading .rw.on,
:root[data-theme="light"] .ins-verse.is-reading mark .rw.on { color: #07080D; }
.ins-verse.is-reading mark .rw.on { color: var(--calm-light); }
.instants[data-readstyle="bubble"] .ins-verse.is-reading .rw:not(.on) { opacity: .28; }
.instants[data-readstyle="bubble"] .ins-verse.is-reading .rw.done { opacity: .5; }
.ins-speed { min-width: 40px; height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--ins-line); background: transparent; color: var(--ins-ink); font: 700 .8rem var(--sans); cursor: pointer; }
.ins-howto { color: var(--ins-ink); }
/* The settings panel: scrolls on any phone, and always has a close button. */
.ins-coach { place-items: start center; overflow-y: auto; overscroll-behavior: contain; padding: 20px 18px 40px; }
.ins-coach-in { position: relative; margin: auto 0; padding-top: 34px; width: 100%; max-width: 24rem; }
.ins-coach-x { position: sticky; top: 0; float: right; margin: -30px -6px 0 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(7,8,13,.85); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 2; }
.ins-readstyle { margin-bottom: 18px; text-align: left; }
/* The meditate player: the same bubble, and a speed button. */
.wm.wm-bubble .wm-w { display: inline-block; transform-origin: 50% 70%; transition: transform .28s ease, color .2s ease, opacity .3s ease; }
.wm.wm-bubble .wm-w.on, .wm .wm-w.key.on { display: inline-block; transform: scale(1.38); color: #fff; text-shadow: 0 0 22px rgba(233, 196, 106, .35); }
.wm .wm-w.key.on { color: var(--wm-light); }
.wm.wm-bubble .wm-line.now .wm-w:not(.on):not(.done) { opacity: .3; }
.wm-speed { min-width: 52px; }
/* Gold key words are coloured directly (no clipped gradient), so each word can grow on its own. */
.instants .ins-verse mark, .instants[data-hl] .ins-verse mark { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: var(--calm-light) !important; -webkit-text-fill-color: currentColor; }
.instants .ins-verse mark .rw { color: inherit; }
.instants[data-readstyle="bubble"] .ins-verse.is-reading mark .rw:not(.on) { opacity: .55; }
.instants[data-readstyle="bubble"] .ins-verse.is-reading mark .rw.done { opacity: .85; }
/* Bubble size: a tap cycles it (default bigger). */
.instants { --bubble: 1.7; }
.instants[data-readstyle="bubble"] .ins-verse.is-reading .rw.on, .ins-verse.is-reading mark .rw.on { transform: scale(var(--bubble)); }
.ins-read-toggle[aria-pressed="true"] { background: var(--calm-light); color: #07080D; border-color: transparent; }
.ins-size { font-family: Georgia, serif; }
.ins-top { flex-wrap: nowrap; gap: 6px; }
@media (max-width: 400px) { .ins-top .ins-topics-btn span { display: none; } .ins-top > :nth-child(2) { display: none; } }
.wm { --bubble: 1.7; }
.wm.wm-bubble .wm-w.on, .wm .wm-w.key.on { transform: scale(var(--bubble)); }
.ins-verse .rw, .wm-w { transition: opacity .4s ease, color .3s ease, transform .28s ease, margin .28s ease, text-shadow .3s ease; }
/* The bubble in 3D (2 Dec 2026): the word keeps its own colour (white, or gold if it is a key word), lifts forward with a
   shadow beneath it, and the rest of the verse darkens so the contrast is clear. */
.instants[data-readstyle="bubble"] .ins-verse.is-reading .rw.on,
.ins-verse.is-reading mark .rw.on {
  color: inherit !important; opacity: 1 !important;
  transform: translateY(-.12em) scale(var(--bubble));
  text-shadow: 0 .14em .22em rgba(0, 0, 0, .65), 0 .4em 1.1em rgba(0, 0, 0, .55), 0 0 1px currentColor;
}
.ins-verse.is-reading mark .rw.on { color: var(--calm-light) !important; }
.instants[data-readstyle="bubble"] .ins-verse.is-reading .rw:not(.on) { opacity: .2; }
.instants[data-readstyle="bubble"] .ins-verse.is-reading .rw.done { opacity: .34; }
.instants[data-readstyle="bubble"] .ins-verse.is-reading mark .rw:not(.on) { opacity: .3; }
:root[data-theme="light"] .instants[data-readstyle="bubble"] .ins-verse.is-reading .rw.on { text-shadow: 0 .14em .22em rgba(7, 8, 13, .28), 0 .4em 1.1em rgba(7, 8, 13, .22); }
.instants { --bubble: 1.6; }
.wm.wm-bubble .wm-w.on, .wm .wm-w.key.on { color: inherit; transform: translateY(-.12em) scale(var(--bubble)); text-shadow: 0 .14em .22em rgba(0,0,0,.65), 0 .4em 1.1em rgba(0,0,0,.55); }
.wm .wm-w.key.on { color: var(--wm-light); }
.wm.wm-bubble .wm-line.now .wm-w:not(.on):not(.done) { opacity: .2; }

/* Top bar (2 Dec 2026): the wordmark larger, search as an icon, "Get help", more room at the top. */
.topbar { padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 6px; height: auto; min-height: 60px; gap: 6px; }
.brand-word { display: inline-flex; align-items: center; margin-right: auto; }
.brand-logo { height: 42px; width: auto; display: block; }
.brand-logo-light { display: none; }
:root[data-theme="light"] .brand-logo-dark { display: none; } :root[data-theme="light"] .brand-logo-light { display: block; }
.search-icon { width: 36px; height: 36px; border-radius: 999px; }
@media (max-width: 759px) {
  .shell { grid-template-rows: auto minmax(0, 1fr); }
  .instants { height: calc(100dvh - 68px - var(--tabbar-h)); }
}

/* Scenery: a new landscape behind each card, veiled so the words stay clear. */
.instants.is-scenes { --ins-ink: #ffffff; --ins-muted: rgba(255, 255, 255, .78); --ins-line: rgba(255, 255, 255, .28); --ins-hl: #E9C46A; --calm-light: #E9C46A; background: #07080D; }
.instants.is-scenes .ins-art { display: none; }
.instants.is-scenes .ins-card { background: linear-gradient(180deg, rgba(7, 8, 13, .55) 0%, rgba(7, 8, 13, .38) 40%, rgba(7, 8, 13, .72) 100%), var(--scene, none) center / cover no-repeat; }
.instants.is-scenes .ins-verse, .instants.is-scenes .ins-insight, .instants.is-scenes .ins-setup { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.instants.is-scenes .ins-verse mark { color: #E9C46A !important; }
.instants.is-scenes .ins-chip { background: rgba(7, 8, 13, .35); backdrop-filter: blur(6px); }
.instants.is-scenes .ins-act { color: #fff; opacity: .95; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .6)); }
.instants.is-scenes .btn { background: #E9C46A; border-color: #E9C46A; color: #07080D; }
.instants.is-scenes .ins-card { background: linear-gradient(180deg, rgba(7, 8, 13, .66) 0%, rgba(7, 8, 13, .55) 45%, rgba(7, 8, 13, .8) 100%), var(--scene, none) center / cover no-repeat; }
.instants.is-scenes[data-readstyle] .ins-verse.is-reading .rw:not(.on) { opacity: .45; }
.instants.is-scenes[data-readstyle] .ins-verse.is-reading .rw.done { opacity: .7; }
/* The smallest phones (320–340px): everything in the Instants top bar fits; long buttons wrap. */
@media (max-width: 360px) {
  .ins-top { gap: 4px; padding-left: 6px; padding-right: 6px; }
  .ins-top .ins-speed { min-width: 30px; height: 30px; padding: 0 6px; }
  .ins-top .ins-topics-btn { padding: 0 8px; }
  .ins-top .ins-sound { width: 32px; height: 32px; }
}
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; max-width: 100%; } }
.instants .ins-top { z-index: 30; } .instants .ins-top > * { pointer-events: auto; position: relative; z-index: 1; }
.ins-verse .rw { transition: opacity .9s ease, color .6s ease, transform .7s cubic-bezier(.2,.8,.2,1), margin .7s ease, text-shadow .7s ease; }

/* ═══ The chosen colour drives every accent (2 Dec 2026) ═══
   Gold is the default (the logo's). Any other colour replaces gold everywhere it appears: buttons, the Instants tab,
   active tabs, milestones, key words, the reading bubble, pressed controls, the meditate player. */
:root[data-accent="mono"] { --ac: #ffffff; } :root[data-theme="light"][data-accent="mono"] { --ac: #07080D; }
:root[data-accent]:not([data-accent="gold"]) {
  --primary: var(--ac); --accent: var(--ac); --tab-active: var(--ac); --calm-light: var(--ac); --gold: var(--ac); --banner: var(--ac);
  --accent-soft: color-mix(in srgb, var(--ac) 16%, transparent); --gold-soft: color-mix(in srgb, var(--ac) 16%, transparent);
  --brand-grad: var(--ac); --mark-grad: var(--ac);
  --logo-blue: var(--ac); --logo-violet: var(--ac); --logo-magenta: var(--ac); --logo-pink: var(--ac); --logo-coral: var(--ac);
}
:root[data-accent]:not([data-accent="gold"]):not([data-accent="yellow"]):not([data-accent="mono"]) { --primary-ink: #ffffff; }
:root[data-theme="dark"][data-accent="mono"], :root:not([data-theme="light"])[data-accent="mono"] { --primary-ink: #07080D; }
:root[data-accent]:not([data-accent="gold"]) .instants { --ins-hl: var(--ac); --calm-light: var(--ac); }
:root[data-accent]:not([data-accent="gold"]) .instants.is-scenes { --ins-hl: var(--ac); --calm-light: var(--ac); }
:root[data-accent]:not([data-accent="gold"]) .instants .ins-verse mark,
:root[data-accent]:not([data-accent="gold"]) .instants.is-scenes .ins-verse mark { color: var(--ac) !important; }
:root[data-accent]:not([data-accent="gold"]) .wm { --wm-light: var(--ac); --wm-key: var(--ac); }
.tabbar .tab-instants .tab-orb { background: var(--calm-light) !important; }
.tabbar .tab-instants .icon { color: var(--primary-ink) !important; }
.milestone.on span, .cc-icon, .ins-autoplay[aria-pressed="true"], .ins-read-toggle[aria-pressed="true"],
.instants.is-original .ins-lock[aria-pressed="true"], .instants.is-original .ins-sound[aria-pressed="true"], .ins-sound[aria-pressed="true"] { background: var(--calm-light) !important; color: var(--primary-ink) !important; }
.instants .btn, .instants.is-scenes .btn, .instants.is-original .btn { background: var(--calm-light); border-color: var(--calm-light); color: var(--primary-ink); }
.today-tabs b { border-color: var(--calm-light); }
.cc-bar i, .bars i { background: var(--calm-light); }
.btn:not(.ghost):not(.secondary):not(.social) { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }

/* ═══ Light mode on Instants' scenery: a cream veil over the photo, dark words ═══ */
:root[data-theme="light"] .instants.is-scenes { --ins-ink: #17191f; --ins-muted: rgba(23, 25, 31, .66); --ins-line: rgba(23, 25, 31, .2); background: #F6F1E6; }
:root[data-theme="light"]:not([data-accent]) .instants.is-scenes, :root[data-theme="light"][data-accent="gold"] .instants.is-scenes { --ins-hl: #9A7420; --calm-light: #9A7420; }
:root[data-theme="light"] .instants.is-scenes .ins-card { background: linear-gradient(180deg, rgba(255, 251, 243, .82) 0%, rgba(246, 241, 230, .72) 45%, rgba(246, 241, 230, .9) 100%), var(--scene, none) center / cover no-repeat; }
:root[data-theme="light"] .instants.is-scenes .ins-verse, :root[data-theme="light"] .instants.is-scenes .ins-insight, :root[data-theme="light"] .instants.is-scenes .ins-setup { color: #17191f; text-shadow: 0 1px 10px rgba(255, 251, 243, .7); }
:root[data-theme="light"][data-accent="gold"] .instants.is-scenes .ins-verse mark, :root[data-theme="light"]:not([data-accent]) .instants.is-scenes .ins-verse mark { color: #9A7420 !important; }
:root[data-theme="light"] .instants.is-scenes .ins-ref, :root[data-theme="light"] .instants.is-scenes .ins-via { color: rgba(23, 25, 31, .7); }
:root[data-theme="light"] .instants.is-scenes .ins-chip { background: rgba(255, 251, 243, .6); color: #17191f; border-color: rgba(23, 25, 31, .2); }
:root[data-theme="light"] .instants.is-scenes .ins-act { color: #17191f; filter: none; }
:root[data-theme="light"] .instants .ins-top .ins-speed, :root[data-theme="light"] .instants .ins-top .ins-topics-btn, :root[data-theme="light"] .instants .ins-howto { color: #17191f; border-color: rgba(23, 25, 31, .22); background: rgba(255, 251, 243, .7); }
:root[data-theme="light"] .instants[data-readstyle="bubble"] .ins-verse.is-reading .rw.on { text-shadow: 0 .14em .22em rgba(7, 8, 13, .25), 0 .4em 1.1em rgba(7, 8, 13, .18); }

/* ═══ The Instants settings panel: always light words on its dark panel ═══ */
.ins-coach, .ins-coach h2, .ins-coach h3, .ins-coach p, .ins-coach li, .ins-coach .small, .ins-coach .muted { color: #f3efe6 !important; }
.ins-coach .muted, .ins-coach p.small { color: rgba(243, 239, 230, .72) !important; }
.ins-coach .ins-look-chip { color: #f3efe6; border-color: rgba(243, 239, 230, .28); background: rgba(255, 255, 255, .06); }
.ins-coach .ins-look-chip[aria-pressed="true"] { border-color: var(--calm-light); background: color-mix(in srgb, var(--calm-light) 22%, transparent); }
.ins-coach { background: rgba(7, 8, 13, .9); }
.accent-dot[data-a="gold"] { background: #E9C46A; }
:root[data-theme="light"] .accent-dot[data-a="gold"] { background: #9A7420; }

/* The bubble rises slowly, and only the word being read moves (3 Dec 2026, the founder). */
.ins-verse .rw, .wm .wm-w, .wm.wm-bubble .wm-w { transition: opacity .9s ease, color .6s ease, transform .9s cubic-bezier(.22, .8, .3, 1), text-shadow .9s ease; margin: 0; }
.instants .ins-verse.is-reading .rw.on, .wm .wm-w.on { position: relative; z-index: 3; }
@media (prefers-reduced-motion: reduce) { .ins-verse .rw, .wm .wm-w, .wm.wm-bubble .wm-w { transition: none; } }

/* ═══ The app, offered on phones (3 Dec 2026) ═══ */
.app-bar { position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(var(--tabbar-h, 64px) + 26px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; max-width: 520px; margin: 0 auto; padding: 10px 8px 10px 12px; border: 1px solid rgba(233, 196, 106, .45); border-radius: 18px; background: #10131F; color: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.app-bar[hidden] { display: none; }
.app-bar img { border-radius: 10px; flex: none; }
.app-bar-t { flex: 1; min-width: 0; line-height: 1.25; }
.app-bar-t b { display: block; font-size: .92rem; color: #fff; }
.app-bar-t small { color: rgba(255, 255, 255, .72); }
.app-bar .btn { flex: none; background: #E9C46A !important; border-color: #E9C46A !important; color: #1b1408 !important; }
.app-bar-x { flex: none; width: 36px; height: 36px; border: 0; background: none; color: rgba(255, 255, 255, .8); font-size: 22px; line-height: 1; }
.app-top { display: none; }
:root[data-device="android"] .app-top { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 999px; background: #E9C46A; color: #1b1408; font: 700 .76rem var(--sans); white-space: nowrap; text-decoration: none; }
@media (max-width: 400px) { :root[data-device="android"] .topbar .search-icon { display: none; } }
.app-for { display: none; }
:root[data-device="ios"] .app-for-ios, :root[data-device="other"] .app-for-other { display: block; }
.main-instants ~ .app-bar, body.has-app-bar .main-instants ~ .app-bar { bottom: auto; top: calc(116px + env(safe-area-inset-top)); }
