/* Wala — one stylesheet, no build step. Dark by default (the founder's choice, 6 Oct 2026), light on request. */
:root, :root[data-theme="dark"] {
  --bg: #000000;            /* the canvas */
  --panel: #000000;         /* rail and sidebar */
  --topbar: #000000;
  --card: #0a0a0a;
  --card-hi: #161616;       /* hover, inputs */
  --ink: #f2f2f2;
  --ink-strong: #ffffff;
  --muted: #8d8d8d;
  --faint: #626262;
  --line: #262626;
  --line-soft: #1a1a1a;
  --active: #1c1c1c;        /* the selected row */
  --primary: #ffffff;       /* white buttons, as in the reference */
  --primary-ink: #000000;
  --accent: #ffffff;        /* links and focus: the logo's violet, lifted for dark */
  --accent-soft: rgba(255, 255, 255, .12);
  --banner: #6d28d9;
  --gold: #ffffff;
  --gold-soft: rgba(255, 255, 255, .1);
  --danger: #ff8a80;
  --danger-soft: rgba(255, 99, 88, .14);
  --scripture: #ffffff;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 10px 28px rgba(0, 0, 0, .28);
  /* The logo (7 Oct 2026): electric blue, violet, magenta, hot pink, coral. */
  --logo-blue: #1f6bff; --logo-violet: #7c2dfb; --logo-magenta: #e83cf4; --logo-pink: #ff2d8f; --logo-coral: #ff7a3d;
  --glow-1: var(--logo-coral); --glow-2: var(--logo-pink); --glow-3: var(--logo-violet); --glow-4: var(--logo-blue);
  --brand-grad: linear-gradient(120deg, var(--logo-blue) 0%, var(--logo-violet) 32%, var(--logo-magenta) 56%, var(--logo-pink) 76%, var(--logo-coral) 100%);
  --mark-grad: linear-gradient(100deg, #7fa8ff 0%, #b986ff 34%, #ff6ed8 68%, #ffa56b 100%);   /* key lines, readable on dark */
  --tab-active: #ffffff;
  --radius: 12px;
  --gap: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ffffff; --panel: #ffffff; --topbar: #ffffff; --card: #ffffff; --card-hi: #f4f4f5;
  --ink: #111111; --ink-strong: #000000; --muted: #6b6f76; --faint: #a1a4aa;
  --line: #e6e6e9; --line-soft: #efeff1; --active: #ececef;
  --primary: #000000; --primary-ink: #ffffff;
  --accent: #000000; --accent-soft: rgba(0, 0, 0, .07); --banner: #6d28d9;
  --mark-grad: linear-gradient(100deg, #1d4ed8 0%, #6d28d9 34%, #c026d3 68%, #ea580c 100%);
  --tab-active: #000000;
  --gold: #000000; --gold-soft: rgba(0, 0, 0, .06);
  --danger: #b3261e; --danger-soft: #fdecea; --scripture: #000000;
  --shadow: 0 1px 2px rgba(16, 17, 20, .05), 0 8px 22px rgba(16, 17, 20, .06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
a.ref { border-bottom: 1px dotted currentColor; }
a.ref:hover { text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 8px; letter-spacing: -.015em; color: var(--ink-strong); font-weight: 650; }
h1 { font-size: 1.65rem; }
h2 { font-size: 1.15rem; margin-top: 2px; }
h3 { font-size: 1rem; }
p { margin: 0 0 10px; }
ul, ol { margin: 0 0 10px; padding-left: 20px; }
li { margin-bottom: 4px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; margin: 6px 0 12px; }
th, td { text-align: left; vertical-align: top; padding: 8px 9px; border-bottom: 1px solid var(--line); }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
kbd { font: 500 .72rem var(--sans); color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }

/* ── The shell: top bar, icon rail, sidebar, canvas ─────────────────────────── */
.shell { min-height: 100vh; display: grid; grid-template-columns: 72px 264px minmax(0, 1fr); grid-template-rows: 52px 1fr; grid-template-areas: "top top top" "rail side main"; }
.topbar { grid-area: top; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 0 14px; background: var(--topbar); border-bottom: 1px solid var(--line-soft); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-strong); font-weight: 650; font-size: 1.02rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand small { font-size: .68rem; font-weight: 500; color: var(--faint); letter-spacing: .04em; text-transform: uppercase; }
.mark { display: inline-block; width: 26px; height: 26px; flex: none; background: url("/images/wala-icon.png") center / contain no-repeat; }
.brand-icon { display: block; width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 10px rgba(124, 45, 251, .45)); }
.search { position: relative; display: flex; align-items: center; gap: 8px; width: min(460px, 40vw); margin: 0 auto; padding: 0 10px; height: 34px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); color: var(--faint); }
.search:focus-within { border-color: var(--accent); }
.search input[type=search] { flex: 1; width: auto; min-width: 0; height: 100%; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: .9rem; outline: none; padding: 0; }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.help-btn { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--danger-soft); color: var(--danger); font-weight: 600; font-size: .84rem; white-space: nowrap; }
.help-btn:hover { text-decoration: none; filter: brightness(1.1); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: #f1f1f1; color: #111; font-weight: 700; font-size: .74rem; letter-spacing: .02em; }
.avatar:hover { text-decoration: none; }
:root[data-theme="light"] .avatar { background: #1f2023; color: #fff; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--active); }
.menu-btn { display: none; }
.icon { flex: none; vertical-align: middle; }

.rail { grid-area: rail; position: sticky; top: 52px; height: calc(100vh - 52px); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0; background: var(--panel); border-right: 1px solid var(--line-soft); overflow-y: auto; }
.rail .spacer { flex: 1; }
.rail-item { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; padding: 6px 0; border: 0; background: none; color: var(--muted); font: 600 .68rem var(--sans); cursor: pointer; text-decoration: none; }
.rail-item:hover { color: var(--ink); text-decoration: none; }
.rail-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; transition: background .15s ease; }
.rail-item:hover .rail-icon { background: var(--active); }
.rail-item[aria-current="page"] { color: var(--ink-strong); }
.rail-item[aria-current="page"] .rail-icon { background: linear-gradient(135deg, rgba(31, 107, 255, .32), rgba(124, 45, 251, .32) 45%, rgba(255, 45, 143, .3)); color: var(--ink-strong); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }

.sidebar { grid-area: side; position: sticky; top: 52px; height: calc(100vh - 52px); overflow-y: auto; padding: 12px 10px 16px; background: var(--panel); border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 6px 10px; }
.side-head h2 { margin: 0; font-size: 1.05rem; }
.side-group { padding: 6px 0 8px; border-bottom: 1px solid var(--line-soft); }
.side-group:last-of-type { border-bottom: 0; }
.side-title { padding: 8px 8px 4px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.side-link, .side-add { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; color: var(--ink); font-size: .9rem; text-decoration: none; min-height: 32px; }
.side-link:hover, .side-add:hover { background: var(--active); text-decoration: none; }
.side-link[aria-current="page"] { background: var(--active); color: var(--ink-strong); font-weight: 550; }
.side-link .icon { color: var(--muted); }
.side-link.sub { padding-left: 22px; font-size: .86rem; color: var(--muted); }
.side-link.sub[aria-current="page"] { color: var(--ink-strong); }
.side-add { color: var(--faint); }
.side-meta { margin-left: auto; font-size: .72rem; color: var(--faint); }
.tag { display: inline-grid; place-items: center; min-width: 26px; height: 18px; padding: 0 4px; border-radius: 5px; background: var(--card-hi); border: 1px solid var(--line); color: var(--muted); font-size: .66rem; font-weight: 700; }
.avatar-sq { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, var(--glow-3), var(--glow-4)); color: #fff; font-size: .62rem; font-weight: 700; flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; margin: 0 5px; }
.dot.state-thinking { background: var(--glow-4); } .dot.state-speaking { background: var(--glow-2); } .dot.state-praying { background: var(--glow-3); } .dot.state-doing { background: var(--glow-1); }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 2px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line-soft); }
.side-foot:hover { text-decoration: none; }
.side-foot b { display: block; font-size: .9rem; } .side-foot small { color: var(--muted); font-size: .74rem; }
.ring { --p: 0; width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--logo-blue) 0%, var(--logo-violet) calc(var(--p) * .45%), var(--logo-pink) calc(var(--p) * 1%), var(--line) 0); position: relative; flex: none; }
.ring::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--panel); }

.main { grid-area: main; min-width: 0; display: flex; flex-direction: column; }
.main-inner { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 22px 28px 28px; }
.scrim { display: none; }
.tabbar { display: none; }

/* Tablet: the sidebar slides in from the menu button. Phone: the rail becomes bottom tabs. */
@media (max-width: 1099px) {
  .shell { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "top top" "rail main"; }
  .menu-btn { display: inline-grid; }
  .sidebar { position: fixed; z-index: 40; top: 52px; left: 0; bottom: 0; width: 280px; height: auto; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 12px 0 32px rgba(0, 0, 0, .35); }
  .sidebar.open { transform: none; }
  .scrim { display: block; position: fixed; inset: 52px 0 0 0; z-index: 35; background: rgba(0, 0, 0, .45); }
}
@media (max-width: 759px) {
  body { font-size: 15.5px; }
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "main"; }
  .rail { display: none; }
  .topbar { gap: 8px; padding: 0 8px; }
  .brand small, .brand-name, .search kbd, .topbar .top-signin { display: none; }
  .search { width: auto; flex: 1 1 0; min-width: 0; margin: 0; }
  .top-actions { flex: none; gap: 6px; }
  .topbar .brand { flex: none; }
  .help-btn { padding: 6px 10px; font-size: .78rem; }
  .main-inner { padding: 16px 14px calc(84px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--topbar); border-top: 1px solid var(--line-soft); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; color: var(--muted); font-size: .68rem; font-weight: 600; text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--ink-strong); }
  .tabbar a[aria-current="page"] .icon { color: var(--tab-active); }
  .foot { padding-bottom: 90px; }
}

/* ── Building blocks ─────────────────────────────────────────────────────────── */
.read { max-width: 780px; margin: 0 auto; }
.grid { display: grid; gap: var(--gap); }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.stack > * + * { margin-top: var(--gap); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card.flat { box-shadow: none; background: transparent; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
a.card:hover { border-color: #3a3a3a; background: var(--card-hi); text-decoration: none; }
:root[data-theme="light"] a.card:hover { border-color: #d6d6db; }
.page-intro { padding: 6px 2px 4px; }
.page-intro h1 { font-size: 1.9rem; letter-spacing: -.02em; }
.page-intro .lead { max-width: 640px; }
.eyebrow { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.eyebrow a { color: var(--muted); } .eyebrow a:hover { color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.lead { font-size: 1.02rem; color: var(--muted); line-height: 1.6; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .74rem; font-weight: 600; white-space: nowrap; }
.pill.gold { background: var(--gold-soft); color: var(--gold); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: .84rem; text-decoration: none; }
.chip:hover { background: var(--card-hi); text-decoration: none; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.section-title { display: flex; align-items: baseline; gap: 8px; margin: 26px 2px 12px; font-size: 1.08rem; font-weight: 650; color: var(--ink-strong); }
.section-title span { font-weight: 400; color: var(--muted); font-size: .95rem; }

/* Tinted icon tiles, like the reference's analytics cards. */
.tile { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.tint-pink { background: rgba(244, 114, 182, .14); color: #f472b6; } .tint-orange { background: rgba(251, 146, 60, .14); color: #fb923c; }
.tint-blue { background: rgba(96, 165, 250, .14); color: #60a5fa; } .tint-green { background: rgba(74, 222, 128, .13); color: #4ade80; }
.tint-purple { background: rgba(167, 139, 250, .15); color: #a78bfa; } .tint-teal { background: rgba(45, 212, 191, .13); color: #2dd4bf; }
.tint-yellow { background: rgba(250, 204, 21, .13); color: #facc15; } .tint-red { background: rgba(248, 113, 113, .14); color: #f87171; }
.stat-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stat-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.stat-grid.five .stat span { font-size: .8rem; }
.stat { padding: 16px; }
.stat b { display: block; margin: 12px 0 2px; font-size: 1.6rem; font-weight: 650; color: var(--ink-strong); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .86rem; }
.suggest-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .suggest-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.suggest { display: block; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; }
.suggest:hover { background: var(--card-hi); text-decoration: none; }
.suggest .icon { color: var(--muted); }
.suggest strong { display: block; margin-top: 8px; font-size: .9rem; color: var(--ink-strong); }
.suggest small { display: block; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tab { padding: 10px 2px; color: var(--muted); font-weight: 550; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab[aria-current="page"], .tab.active { color: var(--ink-strong); border-bottom-color: var(--ink-strong); }
.list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line-soft); }
.list-row:first-child { border-top: 0; }
.list-row:hover { background: var(--card-hi); text-decoration: none; }
.list-row .muted { font-size: .84rem; }

/* The gradient glow around what matters most on a page (the verse), after the reference's input box. */
.glow { position: relative; isolation: isolate; border-color: transparent; }
.glow::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--brand-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 1; pointer-events: none; }
.glow::after { content: ""; position: absolute; z-index: -1; left: 6%; right: 6%; top: -26px; height: 70px; border-radius: 50%; background: radial-gradient(closest-side at 30% 50%, rgba(31, 107, 255, .42), transparent), radial-gradient(closest-side at 55% 50%, rgba(232, 60, 244, .4), transparent), radial-gradient(closest-side at 78% 50%, rgba(255, 45, 143, .38), transparent); filter: blur(26px); pointer-events: none; }
.hero { text-align: center; padding: 34px 0 6px; }
.hero .wordmark { display: inline-flex; align-items: center; gap: 14px; font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink-strong); margin: 0; }
.hero .wordmark { display: block; }
.hero-logo { display: block; width: min(520px, 94%); height: auto; margin: -18px auto -26px; mix-blend-mode: screen; }   /* the logo's black melts into the page */
.hero-icon { display: none; width: 128px; height: 128px; margin: 0 auto; }
:root[data-theme="light"] .hero-logo { display: none; }
:root[data-theme="light"] .hero-icon { display: block; }
.hero .lead { margin: 10px auto 0; max-width: 560px; }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--primary); background: var(--primary); color: var(--primary-ink); font: 600 .9rem var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.secondary { background: var(--card-hi); border-color: var(--line); color: var(--ink); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.secondary:hover, .btn.ghost:hover { background: var(--active); }
.btn.small { padding: 5px 10px; font-size: .82rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; color: var(--ink); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=time], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: .92rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 110px; resize: vertical; }
.field { margin-bottom: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-weight: 400; }
.check input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--accent); }
.error { color: var(--danger); font-size: .86rem; margin-top: 4px; }
.flash { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 10px; background: linear-gradient(120deg, #2b4fd8, #6d28d9 45%, #b0249b 82%, #c2410c); color: #fff; margin-bottom: 16px; font-weight: 500; }
.device-note { flex-wrap: wrap; font-weight: 400; font-size: .92rem; }
.device-note a { color: #fff; text-decoration: underline; font-weight: 600; }
.device-note .btn.ghost { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }

/* Scripture */
.scripture { font-family: var(--serif); font-size: 1.2rem; line-height: 1.65; color: var(--scripture); }
.scripture .vn { font-family: var(--sans); font-size: .6em; vertical-align: super; color: var(--faint); margin-right: 3px; font-weight: 600; }
.scripture .nd { font-variant: small-caps; letter-spacing: .02em; }
.scripture i { font-style: italic; }
.scripture .wj { color: inherit; }
.scripture-ref { font-family: var(--sans); font-size: .82rem; color: var(--muted); margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.psalm-title { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: .96rem; margin-bottom: 4px; }
.margin-note { font-size: .82rem; color: var(--muted); margin: 4px 0 0; }
.margin-note b { font-weight: 600; }
.verse-card { position: relative; }

/* Seed page */
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0 4px; }
.stage { text-align: center; font-size: .72rem; font-weight: 600; color: var(--muted); padding: 7px 2px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); }
.stage.done { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.stage.now { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.locked { position: relative; }
.locked .veil { padding: 14px; border-radius: 10px; background: var(--gold-soft); color: var(--ink); font-size: .92rem; }
.cocktail { padding-left: 0; list-style: none; }
.cocktail li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.cocktail li:last-child { border-bottom: 0; }
.cocktail .why { color: var(--muted); font-size: .88rem; margin: 2px 0 4px; }
.cocktail .vt { font-family: var(--serif); font-size: 1.02rem; color: var(--scripture); }

/* Notices */
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--gold-soft); border: 1px solid rgba(242, 196, 90, .18); font-size: .9rem; color: var(--ink); }
.notice strong { display: block; color: var(--gold); margin-bottom: 2px; }
.notice.crisis { background: var(--danger-soft); border-color: rgba(255, 99, 88, .25); }
.notice.crisis strong, .notice.crisis h2 { color: var(--danger); }
.notice li strong { display: inline; color: inherit; }
.notice li a[href^="tel:"] { font-weight: 700; white-space: nowrap; }
.crisis-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0 0 6px; }
.crisis-head h2 { margin: 0; }
.crisis-pick select { max-width: 100%; padding: 7px 10px; border: 1px solid rgba(255, 99, 88, .35); border-radius: 9px; background: var(--card); color: var(--ink); font: 600 .9rem var(--sans); }
.crisis-list { margin: 6px 0; padding-left: 18px; }
.crisis-list li { margin: 3px 0; }
.crisis-list a[href^="tel:"], .crisis-here a[href^="tel:"] { font-weight: 700; white-space: nowrap; }
.crisis-here { display: block; margin-top: 4px; font-weight: 600; }
.today-label { font-size: .78rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }

/* Week strip */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { text-align: center; padding: 8px 0; border-radius: 9px; background: var(--bg); border: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.day b { color: var(--ink); }
.day.yes { background: linear-gradient(135deg, rgba(31, 107, 255, .8), rgba(124, 45, 251, .8) 50%, rgba(255, 45, 143, .75)); color: #fff; border-color: transparent; }
.day.yes b { color: #fff; }
.day[aria-current="date"] { border: 1px solid var(--gold); color: var(--ink-strong); font-weight: 700; }
summary.btn::-webkit-details-marker { display: none; }

/* The daily goal of returns */
.goal { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-hi); }
.goal .five { margin: 10px 0 6px; padding-left: 20px; }
.goal .five li { margin-bottom: 3px; }
.ring.big { width: 34px; height: 34px; }
.ring.big::after { inset: 6px; background: var(--card-hi); }

/* Groups */
.together { margin: 12px 0 0; color: var(--muted); }
.together b { font-size: 1.5rem; color: var(--ink-strong); margin-right: 4px; font-variant-numeric: tabular-nums; }
.post { position: relative; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.post:first-of-type { border-top: 0; padding-top: 4px; }
.post-remove { position: absolute; top: 8px; right: 0; }
.member { padding: 8px 0; border-top: 1px solid var(--line-soft); }

/* Start light, grow by asking: "more" panels open only when tapped (or when the believer chose full days). */
details.more > summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; color: var(--ink-strong); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; width: 1em; color: var(--muted); font-weight: 600; }
details.more[open] > summary::before { content: "\2013"; }
details.more[open] > summary { margin-bottom: 12px; }
.deeper-link { display: block; padding: 11px 13px; margin-bottom: 10px; border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--card-hi); border-radius: 9px; color: inherit; text-decoration: none; }
.deeper-link:hover { text-decoration: none; border-color: #3a3a3a; }
.deeper-link .row { margin-bottom: 4px; }

/* The day in 60 seconds: a finite stack of full-height cards that snap into place. */
.minute { height: calc(100vh - 112px); height: calc(100dvh - 112px); overflow-y: auto; scroll-snap-type: y mandatory; max-width: 560px; margin: 0 auto; scrollbar-width: none; }
.minute::-webkit-scrollbar { display: none; }
.mcard { position: relative; scroll-snap-align: start; scroll-snap-stop: always; min-height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 30px 26px; margin-bottom: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.mcard.cover { background: radial-gradient(120% 60% at 15% 0%, rgba(31, 107, 255, .32), transparent 60%), radial-gradient(120% 70% at 90% 15%, rgba(255, 45, 143, .3), transparent 60%), radial-gradient(140% 80% at 50% 110%, rgba(124, 45, 251, .34), transparent 60%), var(--card); }
.mcard.end { text-align: center; align-items: center; }
.mcard .big { font-size: 1.35rem; line-height: 1.5; color: var(--ink-strong); font-weight: 500; }
.mcard .scripture { font-size: 1.3rem; }
.mtitle { font-size: 2rem; letter-spacing: -.02em; }
.mcount { position: absolute; top: 14px; right: 16px; font-size: .72rem; color: var(--faint); font-variant-numeric: tabular-nums; }
@media (max-width: 759px) { .minute { height: calc(100vh - 166px); height: calc(100dvh - 166px); } .mcard { padding: 26px 20px; } .mtitle { font-size: 1.7rem; } }

/* Footer */
.foot { width: 100%; max-width: 1180px; margin: 10px auto 0; padding: 16px 28px 22px; color: var(--faint); font-size: .78rem; border-top: 1px solid var(--line-soft); }
.foot a { color: var(--muted); }

/* Prose from content */
.prose h2 { margin-top: 20px; }
.prose h3 { margin-top: 14px; }
.prose blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--muted); }
.prose strong { color: var(--ink-strong); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .topbar, .rail, .sidebar, .tabbar, .foot, .help-btn { display: none; } .shell { display: block; } body { background: #fff; color: #000; } .card { box-shadow: none; } }

[x-cloak] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── Instants: one verse per screen (docs/INSTANTS.md) ───────────────────────── */
.main-instants .main-inner { max-width: none; padding: 0; }
.main-instants .foot { display: none; }
.instants { --ins-bg: #030303; --ins-ink: #f5f1e8; --ins-muted: rgba(245, 241, 232, .5); --ins-line: rgba(245, 241, 232, .16); --ins-hl: var(--accent);
  position: relative; height: calc(100vh - 52px); height: calc(100dvh - 52px); background: var(--ins-bg); color: var(--ins-ink); overflow: hidden; isolation: isolate; }
:root[data-theme="light"] .instants { --ins-bg: #ffffff; --ins-ink: #111111; --ins-muted: rgba(17, 17, 17, .5); --ins-line: rgba(17, 17, 17, .14); }
.ins-top { position: absolute; z-index: 4; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 12px 16px; pointer-events: none; }
.ins-trail { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.ins-crumb { font: 600 .74rem var(--sans); letter-spacing: .04em; color: var(--ins-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ins-crumb + .ins-crumb::before { content: "›"; margin-right: 6px; opacity: .7; }
.ins-crumb.is-current { color: var(--ins-ink); }
.ins-howto { margin-left: auto; pointer-events: auto; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--ins-muted); cursor: pointer; }
.ins-stage { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; overscroll-behavior-x: none; }   /* sideways swipes belong to Instants, not the browser */
.ins-lane { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; overscroll-behavior-y: contain; scrollbar-width: none; outline: none;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .32s ease; }
.ins-lane::-webkit-scrollbar { display: none; }
.ins-lane.from-right { transform: translateX(100%); transition: none; }
.ins-lane.from-left { transform: translateX(-100%); transition: none; }
.ins-lane.to-left { transform: translateX(-28%); opacity: 0; }
.ins-lane.to-right { transform: translateX(28%); opacity: 0; }
.ins-card { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; padding: 60px 76px 44px 26px; }
.ins-body { width: 100%; max-width: 36rem; text-align: center; }
.ins-chip { display: inline-block; margin-bottom: 26px; padding: 4px 11px; border: 1px solid var(--ins-line); border-radius: 99px; color: var(--ins-muted); font: 600 .68rem var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.ins-chip:hover { color: var(--ins-ink); text-decoration: none; }
.ins-verse { margin: 0 auto 20px; font-family: var(--serif); font-size: clamp(1.45rem, 5.4vw, 2.2rem); line-height: 1.4; letter-spacing: -.004em; color: var(--ins-ink); text-wrap: balance; }
.size-xl .ins-verse { font-size: clamp(1.8rem, 7.2vw, 2.8rem); line-height: 1.32; }
.size-md .ins-verse { font-size: clamp(1.28rem, 4.6vw, 1.85rem); }
.size-sm .ins-verse { font-size: clamp(1.1rem, 3.9vw, 1.55rem); line-height: 1.46; }
.ins-verse mark, .home-verse-text mark, .fit-verse mark { background: none; color: inherit; font-weight: 700; }   /* key lines in bold (19 Oct 2026) */
.ins-ref { margin: 0; color: var(--ins-muted); font: 600 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.ins-ref span { margin-left: 8px; opacity: .7; }
.ins-via { margin: 10px 0 0; color: var(--ins-muted); font-size: .78rem; }
.ins-note { margin: 16px auto 0; max-width: 24rem; color: var(--ins-muted); font-size: .74rem; line-height: 1.4; }
.ins-eyebrow { margin: 0 0 16px; color: var(--ins-hl); font: 700 .74rem var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.ins-insight { margin: 0 auto 18px; font-family: var(--serif); font-size: clamp(1.32rem, 5vw, 1.95rem); line-height: 1.38; font-style: italic; text-wrap: balance; }
.ins-actions { position: absolute; z-index: 2; right: 10px; bottom: 30px; display: flex; flex-direction: column; gap: 16px; }
.ins-act { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 56px; padding: 0; border: 0; background: none; color: var(--ins-ink); font: 600 .64rem var(--sans); letter-spacing: .02em; cursor: pointer; text-decoration: none; opacity: .92; }
.ins-act:hover { opacity: 1; text-decoration: none; }
.ins-act .icon { filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .35)); }
.ins-act[aria-pressed="true"] .icon { color: var(--ins-hl); fill: currentColor; fill-opacity: .25; }
.ins-act[data-act="amen"][aria-pressed="true"] .icon { color: #ff5c8a; fill: #ff5c8a; fill-opacity: 1; }
.ins-card.is-amen::after { content: ""; position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; pointer-events: none;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff5c8a' d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E");
  animation: ins-amen .7s ease-out forwards; }
@keyframes ins-amen { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: .95; transform: scale(1.05); } 100% { opacity: 0; transform: scale(1.3) translateY(-30px); } }
.ins-loading { height: 72px; display: grid; place-items: center; scroll-snap-align: end; }
.ins-loading span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ins-line); border-top-color: var(--ins-hl); animation: ins-spin .8s linear infinite; }
@keyframes ins-spin { to { transform: rotate(360deg); } }
.ins-controls { position: absolute; z-index: 3; right: 22px; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; gap: 10px; }
.ins-controls button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ins-line); border-radius: 50%; background: transparent; color: var(--ins-ink); cursor: pointer; }
.ins-controls button:hover { border-color: var(--ins-hl); color: var(--ins-hl); }
.is-branching .ins-controls [data-act="branch"] { border-color: var(--ins-hl); color: var(--ins-hl); }
.ins-coach { position: absolute; z-index: 6; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, .78); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ins-coach[hidden] { display: none; }
.ins-coach-in { max-width: 22rem; text-align: center; }
.ins-coach h2 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.ins-coach ul { list-style: none; padding: 0; margin: 18px 0 22px; text-align: left; }
.ins-coach li { padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: .92rem; }
.ins-coach .btn { background: #fff; border-color: #fff; color: #111; min-width: 140px; }
.ins-toast { position: absolute; z-index: 7; left: 50%; bottom: 26px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 9px 16px; border-radius: 99px; background: var(--ins-ink); color: var(--ins-bg); font-size: .82rem; font-weight: 600; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.ins-toast[hidden] { display: none; }
.ins-toast a { color: inherit; text-decoration: underline; }
.ins-noscript { position: absolute; inset: auto 16px 24px; text-align: center; color: var(--ins-muted); }
@media (min-width: 760px) {
  .ins-controls { display: flex; }
  .ins-card { padding: 64px 160px 48px; }
  .ins-actions { right: max(84px, calc(50% - 26rem)); bottom: 50%; transform: translateY(50%); }
}
@media (prefers-reduced-motion: reduce) { .ins-card.is-amen::after { display: none; } }

/* The centre tab: Instants, raised in the brand colours. */
.tabbar .tab-instants .tab-orb { display: grid; place-items: center; width: 44px; height: 32px; margin-top: -2px; border-radius: 11px; color: #fff;
  background: var(--brand-grad); box-shadow: 0 4px 16px rgba(232, 60, 244, .45), 0 2px 10px rgba(31, 107, 255, .35); }
.tabbar .tab-instants .icon, .tabbar .tab-instants[aria-current="page"] .icon { color: #fff; }
.tabbar .tab-instants[aria-current="page"] .tab-orb { box-shadow: 0 0 0 2px var(--topbar), 0 0 0 3.5px var(--logo-magenta), 0 6px 18px rgba(232, 60, 244, .5); }
@media (max-width: 759px) {
  :root { --tabbar-h: calc(62px + env(safe-area-inset-bottom)); }
  .instants { height: calc(100vh - 52px - var(--tabbar-h)); height: calc(100dvh - 52px - var(--tabbar-h)); }
  .main-instants .main-inner { padding: 0; }
  .ins-card { padding: 56px 70px 36px 20px; }
  .ins-actions { right: 6px; bottom: 22px; gap: 14px; }
}

/* ── The Bible tab ───────────────────────────────────────────────────────────── */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.book-link { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; }
.book-link:hover { border-color: var(--accent); text-decoration: none; }
.book-link small { color: var(--faint); font-size: .74rem; }
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.chapter-link { display: grid; place-items: center; height: 46px; border-radius: 9px; border: 1px solid var(--line-soft); color: var(--ink); font-weight: 600; text-decoration: none; }
.chapter-link:hover { border-color: var(--accent); text-decoration: none; }
.bible-text { font-size: 1.12rem; line-height: 1.75; }
.bible-text .bv { scroll-margin-top: 70px; }
.bible-text .bv:target { background: var(--accent-soft); border-radius: 4px; }
.bible-text .vn { font-family: var(--sans); font-size: .62em; vertical-align: super; color: var(--accent); margin: 0 3px 0 6px; font-weight: 700; text-decoration: none; }
.bible-heading { font: 650 1rem var(--sans); margin: 18px 0 6px; color: var(--ink-strong); }
.bible-parallel { font-size: .8rem; color: var(--faint); margin: -2px 0 6px; font-style: italic; }

/* ── The home page's opening verse (Ps 119:130) ──────────────────────────────── */
.home-verse { margin: 18px auto 0; max-width: 640px; text-align: center; }
.home-verse-text { margin: 0; font-family: var(--serif); font-size: clamp(1.35rem, 4.2vw, 1.9rem); line-height: 1.38; color: var(--scripture); text-wrap: balance; }
.home-verse figcaption { margin-top: 8px; color: var(--muted); font: 600 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.home-verse figcaption span { opacity: .7; margin-left: 4px; }
.home-verse figcaption a { text-transform: none; letter-spacing: 0; font-weight: 600; }

/* ── Continue with Google or Facebook ────────────────────────────────────────── */
.social-buttons { display: grid; gap: 8px; margin: 12px 0 4px; }
.btn.social { justify-content: center; gap: 10px; width: 100%; padding: 10px 14px; font-weight: 600; }
.btn.social-google { background: #ffffff; border-color: #dadce0; color: #1f1f1f; }
.btn.social-facebook { background: #1877f2; border-color: #1877f2; color: #ffffff; }
.or-line { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; color: var(--muted); font-size: .8rem; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ── Is Wala for me? ─────────────────────────────────────────────────────────── */
.fit-q { border-color: var(--line); }
.fit-q legend { float: left; width: 100%; display: flex; align-items: baseline; gap: 10px; padding: 0; margin-bottom: 6px; font-weight: 650; color: var(--ink-strong); font-size: 1rem; line-height: 1.35; }   /* floated: the question sits inside its card, not on its border */
.fit-q legend ~ * { clear: both; }
.fit-n { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-size: .74rem; font-weight: 700; }
.fit-verdict h1 { font-size: 1.5rem; margin-bottom: 10px; }
.fit-start:hover { border-color: var(--accent); text-decoration: none; }
/* Two stages (7 Oct 2026): where you are, then whether Wala fits. */
.fit-steps { display: flex; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.fit-steps li { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: .84rem; font-weight: 600; line-height: 1.25; }
.fit-steps b { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; background: var(--card-hi); font-size: .72rem; }
.fit-steps li[aria-current="step"] { border-color: transparent; background: var(--accent-soft); color: var(--ink-strong); }
.fit-steps li[aria-current="step"] b, .fit-steps li.done b { border-color: transparent; background: var(--brand-grad); color: #fff; }
.fit-stage-head { padding: 10px 2px 0; }
.fit-stage-head h2 { font-size: 1.25rem; }
.fit-stage-head p { margin: 0; color: var(--muted); }
.fit-scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.fit-scale label { position: relative; margin: 0; cursor: pointer; }
.fit-scale input { position: absolute; left: 50%; bottom: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.fit-scale span { display: grid; place-items: center; min-height: 40px; padding: 6px 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--card-hi); color: var(--ink); font-size: clamp(.74rem, 3.2vw, .88rem); font-weight: 600; line-height: 1.2; text-align: center; transition: background-color .12s, border-color .12s; }
.fit-scale label:hover span { border-color: var(--accent); }
.fit-scale input:checked + span { border-color: transparent; background: var(--brand-grad); color: #fff; }
.fit-scale input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 350px) { .fit-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); } }   /* the smallest phones: two by two */
.fit-figure { margin: 0; }
.fit-wheel { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; overflow: visible; }
.fit-wheel .ring { fill: none; stroke: var(--line); }
.fit-wheel .spoke { stroke: var(--line-soft); }
.fit-wheel .promise { fill: none; stroke: url(#fit-grad); stroke-width: 1.6; stroke-dasharray: 3 5; stroke-linecap: round; }
.fit-wheel .you { fill: url(#fit-grad); fill-opacity: .3; stroke: url(#fit-grad); stroke-width: 2.4; stroke-linejoin: round; }
.fit-wheel .dot { fill: var(--ink-strong); }
.fit-wheel text { fill: var(--ink); font: 600 15px var(--sans); }
.fit-wheel text.low { fill: var(--tab-active); }
.fit-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 6px; color: var(--muted); font-size: .8rem; }
.fit-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }
.fit-legend i.you { background: var(--brand-grad); }
.fit-legend i.promise { border: 1.5px dashed var(--logo-violet); }
.fit-legend i.low { background: var(--tab-active); }
.fit-under { margin: 10px 0 0; color: var(--muted); font-size: .86rem; text-align: center; }
.fit-insight { display: block; margin: 0; }
.fit-verse { margin: 2px 0 6px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; color: var(--scripture); }
.fit-ref { margin: 0 0 10px; color: var(--muted); font: 600 .74rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.fit-ref span { margin-left: 4px; opacity: .7; }
.fit-way { font-size: .9rem; font-weight: 600; }
.fit-value h2 { font-size: 1.1rem; }
.fit-value p:last-child { margin-bottom: 0; }
.fit-tag { display: inline-block; margin-bottom: 6px; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* In one minute: the heart of a verse page, first (14 Oct 2026). */
.one-minute-steps { margin: 6px 0 10px; padding: 0; list-style: none; display: grid; gap: 8px; }
.one-minute-steps li { line-height: 1.5; }
.one-minute-steps b { display: block; color: var(--accent); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.newcomer-start { text-align: center; padding: 22px 18px; }
.newcomer-start .btn { font-size: 1.05rem; padding: 12px 22px; }

/* Instants together (17 Oct 2026): stay in a topic, your own highlight, thoughts, the welcome. */
.ins-lock { margin-left: auto; pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--ins-line); border-radius: 99px;
  background: rgba(0, 0, 0, .25); color: var(--ins-muted); font: 600 .72rem var(--sans); letter-spacing: .04em; cursor: pointer; max-width: 52vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ins-lock[aria-pressed="true"] { color: #fff; border-color: transparent; background: var(--brand-grad); box-shadow: 0 4px 14px rgba(232, 60, 244, .35); }
.ins-lock + .ins-howto { margin-left: 4px; }
.ins-verse.is-choosing .hlw { cursor: pointer; border-radius: 6px; padding: 0 1px; transition: background .15s; }
.ins-verse.is-choosing .hlw.on { font-weight: 700; text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 6px; }
.ins-hlbar { position: absolute; z-index: 8; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  width: min(560px, calc(100% - 24px)); padding: 10px 12px; border-radius: 16px; background: rgba(20, 20, 24, .92); color: #fff; box-shadow: 0 12px 34px rgba(0, 0, 0, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ins-hlbar[hidden] { display: none; }
.ins-hlbar-tip { flex: 1 1 100%; text-align: center; font-size: .82rem; opacity: .85; }
.ins-hlbar .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .3); background: transparent; }
.ins-sheet { position: absolute; z-index: 9; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .55); }
.ins-sheet[hidden] { display: none; }
.ins-sheet-in { width: min(640px, 100%); max-height: 78%; display: flex; flex-direction: column; padding: 14px 16px 16px; border-radius: 20px 20px 0 0; background: var(--panel, #15151a); color: var(--ink, #f5f1e8);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .45); animation: ins-sheet-up .22s ease-out; }
@keyframes ins-sheet-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.ins-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ins-sheet-head h2 { margin: 0; font-size: 1.05rem; }
.ins-sheet-head .icon-btn { font-size: 1.6rem; line-height: 1; background: none; border: 0; color: inherit; cursor: pointer; }
.ins-thoughts { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.ins-thoughts li { padding: 10px 0; border-bottom: 1px solid var(--line, rgba(255, 255, 255, .1)); }
.ins-thoughts p { margin: 4px 0 0; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.ins-th-head { display: flex; align-items: center; gap: 8px; font-size: .86rem; }
.ins-th-head span { color: var(--muted, #999); font-size: .76rem; }
.ins-th-head button { margin-left: auto; border: 0; background: none; color: var(--muted, #999); font-size: .76rem; cursor: pointer; }
.ins-thought-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.ins-thought-form[hidden] { display: none; }
.ins-thought-form textarea { flex: 1; resize: none; border-radius: 12px; padding: 10px 12px; font: inherit; }
.ins-sheet-note { margin: 8px 0 0; color: var(--muted, #999); }
.kind-welcome .ins-body { max-width: 26rem; }
.ins-welcome-icon { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 14px; display: block; box-shadow: 0 10px 40px rgba(232, 60, 244, .35); }
.ins-welcome-title { margin: 0 0 12px; font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ins-welcome-list { list-style: none; padding: 0; margin: 8px auto 0; display: grid; gap: 10px; text-align: left; max-width: 22rem; color: var(--ins-ink); font-size: .92rem; }
.ins-welcome-list li { display: flex; gap: 10px; align-items: center; }
.ins-welcome-list .icon { flex: none; color: var(--ins-hl); }
.ins-scroll-hint { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ins-muted); font: 600 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.ins-scroll-phone { position: relative; width: 26px; height: 42px; border: 2px solid var(--ins-muted); border-radius: 14px; }
.ins-scroll-dot { position: absolute; left: 50%; top: 24px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--ins-hl); animation: ins-scroll 1.6s ease-in-out infinite; }
@keyframes ins-scroll { 0% { top: 26px; opacity: 0; } 25% { opacity: 1; } 80% { top: 8px; opacity: 1; } 100% { top: 6px; opacity: 0; } }
.kind-welcome { animation: ins-welcome-nudge 2.6s ease-in-out 1.2s 2; }
@keyframes ins-welcome-nudge { 0%, 100% { transform: none; } 40% { transform: translateY(-14px); } 60% { transform: translateY(-14px); } }
.ins-ref a { color: inherit; text-decoration: none; }
.ins-ref a:hover { color: var(--ins-ink); }
.kind-saying .ins-insight { font-style: normal; }
.kind-saying .ins-eyebrow { color: #ffb36b; }
@media (prefers-reduced-motion: reduce) { .ins-scroll-dot, .kind-welcome { animation: none; } }

/* Instants: make it yours, your journey, reminders, "it became real" (17 Oct 2026). */
.kind-onboard .ins-body { max-width: 30rem; }
.ins-onboard-title { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(1.5rem, 6vw, 2.1rem); line-height: 1.25; color: var(--ins-ink); text-wrap: balance; }
.ins-choices { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0 18px; }
.ins-choice { padding: 9px 14px; border: 1px solid var(--ins-line); border-radius: 99px; background: transparent; color: var(--ins-ink); font: 600 .84rem var(--sans); cursor: pointer; }
.ins-choice[aria-pressed="true"] { border-color: transparent; color: #fff; background: var(--brand-grad); box-shadow: 0 4px 14px rgba(232, 60, 244, .3); }
.ins-onboard-go { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ins-onboard-go .btn.ghost { color: var(--ins-ink); border-color: var(--ins-line); background: transparent; }
.ins-journey-pill { pointer-events: auto; margin-left: auto; display: inline-flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 4px 10px 5px; border: 1px solid var(--ins-line); border-radius: 12px; background: rgba(0, 0, 0, .25); color: var(--ins-ink); font: 700 .68rem var(--sans); letter-spacing: .04em; cursor: pointer; }
.ins-journey-pill[hidden] { display: none; }
.ins-journey-pill + .ins-lock { margin-left: 6px; }
.ins-pill-bar, .ins-meter { display: block; height: 4px; border-radius: 4px; background: var(--ins-line, rgba(255, 255, 255, .15)); overflow: hidden; }
.ins-pill-bar i, .ins-meter i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--brand-grad); transition: width .5s ease; }
.ins-meter { height: 10px; margin: 6px 0 12px; }
.ins-journey-day { margin: 4px 0 0; font-size: 1.1rem; }
.ins-journey-n { font-size: 1.6rem; }
.ins-journey-sub { margin: 16px 0 2px; font-size: .95rem; }
.ins-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 14px; margin-top: 6px; }
.ins-sheet-journey .ins-sheet-in { overflow-y: auto; }
.ins-bulb[aria-pressed="true"] .icon { color: #ffd36e; fill: #ffd36e; fill-opacity: .9; filter: drop-shadow(0 0 8px rgba(255, 211, 110, .8)); }
.ins-th-amen { margin-top: 6px; padding: 3px 10px; border: 1px solid var(--line, rgba(255, 255, 255, .2)); border-radius: 99px; background: none; color: inherit; font-size: .76rem; cursor: pointer; }
.ins-th-amen[aria-pressed="true"] { border-color: transparent; background: var(--brand-grad); color: #fff; }
.ins-th-real { font-size: .72rem; color: #ffb36b; }
.ins-thoughts li.is-real { border-left: 3px solid #ffd36e; padding-left: 10px; }
.ins-testimony-check { flex: 1 1 100%; font-size: .8rem; }
.ins-thought-form { flex-wrap: wrap; }
.kind-remind .ins-eyebrow { color: #ffd36e; }
.kind-remind .ins-insight { font-style: normal; }

/* Notes to yourself in Instants (17 Oct 2026). */
.ins-note-form { display: grid; gap: 10px; }
.ins-note-form textarea { width: 100%; resize: none; border-radius: 12px; padding: 10px 12px; font: inherit; }
.ins-note-kinds { display: grid; gap: 6px; font-size: .86rem; }
.kind-affirmation .ins-eyebrow { color: #7fe3b0; }
.kind-reminder .ins-eyebrow { color: #ffb36b; text-transform: none; letter-spacing: .02em; font-size: .9rem; }
.kind-affirmation .ins-insight, .kind-reminder .ins-insight { font-style: normal; }
.kind-affirmation .ins-ref, .kind-reminder .ins-ref { text-transform: none; letter-spacing: .02em; font-size: .86rem; }

/* The app frame is locked (18 Oct 2026): on phones and tablets the page itself never scrolls. The shell fills the visible
   screen; the top bar and the bottom tabs stay put, and only the content in between scrolls. No more tabs that float up
   and leave a black gap when the browser's address bar slides away or a page bounces at its end. */
@media (max-width: 1099px) {
  html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
  .shell { position: fixed; inset: 0; height: 100vh; height: 100dvh; min-height: 0; grid-template-rows: 52px minmax(0, 1fr); }
  .topbar { position: relative; top: auto; }
  .rail { position: relative; top: 0; height: 100%; }
  .main { min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 759px) {
  .shell { grid-template-rows: 52px minmax(0, 1fr) auto; grid-template-areas: "top" "main" "tabs"; }
  .tabbar { grid-area: tabs; position: relative; left: auto; right: auto; bottom: auto; }
  .main-inner { padding-bottom: 20px; }
  .foot { padding-bottom: 24px; }
  .main-instants { overflow: hidden; }
  .main-instants .main-inner { position: relative; height: 100%; }
  .instants { position: absolute; inset: 0; height: auto; }
}

/* Instants sound: the mute button at the top left (18 Oct 2026). */
.ins-sound { pointer-events: auto; flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-right: 6px; border: 1px solid var(--ins-line); border-radius: 50%; background: rgba(0, 0, 0, .25); color: var(--ins-ink); cursor: pointer; }
.ins-sound[hidden] { display: none; }
.ins-sound .snd-off, .ins-sound[aria-pressed="false"] .snd-on { display: none; }
.ins-sound[aria-pressed="false"] .snd-off { display: block; }
.ins-sound[aria-pressed="false"] { color: var(--ins-muted); }
.ins-sound[aria-pressed="true"] { border-color: transparent; background: var(--brand-grad); color: #fff; box-shadow: 0 4px 14px rgba(232, 60, 244, .3); }

/* Instants looks (19 Oct 2026): calm backgrounds per topic, cross-faded; no flashing; slow drift only. */
.ins-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ins-art i { position: absolute; inset: -6%; opacity: 0; transition: opacity 2.6s ease; background-repeat: no-repeat; }
.ins-art i.on { opacity: 1; }
.ins-art i.drift { animation: ins-drift 90s ease-in-out infinite alternate; }
@keyframes ins-drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-1.5%, 1%, 0) scale(1.04); } }
.ins-looks { margin-top: 18px; text-align: left; }
.ins-looks h3 { margin: 0 0 4px; font-size: .95rem; }
.ins-look-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ins-look-chip { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--ins-line, rgba(255,255,255,.2)); border-radius: 12px; background: transparent; color: var(--ins-ink, #fff); font: 600 .78rem var(--sans); text-align: left; cursor: pointer; }
.ins-look-chip[aria-pressed="true"] { border-color: var(--ins-hl, #fff); box-shadow: 0 0 0 1px var(--ins-hl, #fff) inset; }
.ins-look-sw { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
@media (prefers-reduced-motion: reduce) { .ins-art i { transition: none; } .ins-art i.drift { animation: none; } }

/* Saved verses as a gallery of thumbnails (19 Oct 2026). */
.kept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.kept-tile { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,.18); overflow: hidden; }
.kept-tile:hover { text-decoration: none; transform: translateY(-2px); }
.kept-snip { font-family: var(--serif); font-size: .9rem; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.kept-ref { font: 700 .66rem var(--sans); letter-spacing: .1em; text-transform: uppercase; opacity: .8; }

/* Black and white dashboard (19 Oct 2026): white on black in dark, black on white in light; banners keep their gradient. */
.brand-icon { filter: none; }
.rail-item[aria-current="page"] .rail-icon { background: var(--ink-strong); color: var(--bg); box-shadow: none; }
.day.yes { background: var(--ink-strong); color: var(--bg); border-color: transparent; }

/* Accent colours (19 Oct 2026): Apple's system colours, dark and light variants. Mono keeps black and white. */
:root[data-accent="blue"]   { --ac: #0a84ff; } :root[data-theme="light"][data-accent="blue"]   { --ac: #007aff; }
:root[data-accent="purple"] { --ac: #bf5af2; } :root[data-theme="light"][data-accent="purple"] { --ac: #af52de; }
:root[data-accent="pink"]   { --ac: #ff375f; } :root[data-theme="light"][data-accent="pink"]   { --ac: #ff2d55; }
:root[data-accent="red"]    { --ac: #ff453a; } :root[data-theme="light"][data-accent="red"]    { --ac: #ff3b30; }
:root[data-accent="orange"] { --ac: #ff9f0a; } :root[data-theme="light"][data-accent="orange"] { --ac: #ff9500; }
:root[data-accent="yellow"] { --ac: #ffd60a; } :root[data-theme="light"][data-accent="yellow"] { --ac: #ffcc00; }
:root[data-accent="green"]  { --ac: #30d158; } :root[data-theme="light"][data-accent="green"]  { --ac: #34c759; }
:root[data-accent="teal"]   { --ac: #40c8e0; } :root[data-theme="light"][data-accent="teal"]   { --ac: #30b0c7; }
:root[data-accent="indigo"] { --ac: #5e5ce6; } :root[data-theme="light"][data-accent="indigo"] { --ac: #5856d6; }
:root:not([data-accent="mono"])[data-accent] { --accent: var(--ac); --tab-active: var(--ac); --gold: var(--ac); --accent-soft: color-mix(in srgb, var(--ac) 16%, transparent); --primary: var(--ac); --primary-ink: #fff; }
:root[data-accent="yellow"], :root[data-accent="orange"], :root[data-accent="green"], :root[data-accent="teal"] { --primary-ink: #000; }
:root:not([data-accent="mono"])[data-accent] .rail-item[aria-current="page"] .rail-icon,
:root:not([data-accent="mono"])[data-accent] .day.yes { background: var(--ac); color: var(--primary-ink); }
.theme-wrap { position: relative; }
.theme-pop { position: fixed; left: 84px; bottom: 16px; z-index: 60; width: 214px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.theme-mode { width: 100%; }
.theme-pop-label { margin: 10px 0 6px; font-size: .74rem; color: var(--muted); }
.accent-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.accent-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; outline-offset: 2px; }
.accent-dot[data-a="mono"] { background: linear-gradient(135deg, #fff 50%, #000 50%); border-color: var(--line); }
.accent-dot[data-a="blue"] { background: #0a84ff; } .accent-dot[data-a="purple"] { background: #bf5af2; } .accent-dot[data-a="pink"] { background: #ff375f; }
.accent-dot[data-a="red"] { background: #ff453a; } .accent-dot[data-a="orange"] { background: #ff9f0a; } .accent-dot[data-a="yellow"] { background: #ffd60a; }
.accent-dot[data-a="green"] { background: #30d158; } .accent-dot[data-a="teal"] { background: #40c8e0; } .accent-dot[data-a="indigo"] { background: #5e5ce6; }
:root[data-accent="mono"] .accent-dot[data-a="mono"], :root[data-accent="blue"] .accent-dot[data-a="blue"], :root[data-accent="purple"] .accent-dot[data-a="purple"], :root[data-accent="pink"] .accent-dot[data-a="pink"], :root[data-accent="red"] .accent-dot[data-a="red"], :root[data-accent="orange"] .accent-dot[data-a="orange"], :root[data-accent="yellow"] .accent-dot[data-a="yellow"], :root[data-accent="green"] .accent-dot[data-a="green"], :root[data-accent="teal"] .accent-dot[data-a="teal"], :root[data-accent="indigo"] .accent-dot[data-a="indigo"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink-strong); }
.rail { z-index: 40; }

/* Inverted cards (19 Oct 2026): black page with white cards, or white page with black cards. */
:root[data-cards="invert"]:not([data-theme="light"]) :is(.card, .mcard, .list, .suggest) {
  --card: #ffffff; --card-hi: #f2f2f2; --ink: #111111; --ink-strong: #000000; --muted: #5f5f5f; --faint: #9a9a9a;
  --line: #e3e3e3; --line-soft: #eeeeee; --active: #ececec; --scripture: #000000; color: var(--ink); border-color: transparent;
}
:root[data-cards="invert"][data-theme="light"] :is(.card, .mcard, .list, .suggest) {
  --card: #000000; --card-hi: #161616; --ink: #f2f2f2; --ink-strong: #ffffff; --muted: #9a9a9a; --faint: #666666;
  --line: #262626; --line-soft: #1a1a1a; --active: #1c1c1c; --scripture: #ffffff; color: var(--ink); border-color: transparent;
}
:root[data-cards="invert"][data-accent="mono"]:not([data-theme="light"]) :is(.card, .mcard) { --primary: #000; --primary-ink: #fff; --accent: #000; --gold: #000; }
:root[data-cards="invert"][data-accent="mono"][data-theme="light"] :is(.card, .mcard) { --primary: #fff; --primary-ink: #000; --accent: #fff; --gold: #fff; }
.theme-modes { display: grid; gap: 4px; }
.theme-mode { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: inherit; font-size: .84rem; cursor: pointer; text-align: left; }
.theme-mode:hover { background: var(--card-hi); }
.theme-mode i { width: 22px; height: 16px; border-radius: 4px; border: 1px solid var(--line); flex: none; }
.theme-mode[data-m="dark"] i { background: #000; } .theme-mode[data-m="light"] i { background: #fff; }
.theme-mode[data-m="ink"] i { background: radial-gradient(circle, #fff 0 4px, #000 4.5px); } .theme-mode[data-m="paper"] i { background: radial-gradient(circle, #000 0 4px, #fff 4.5px); }
:root[data-theme="dark"][data-cards="same"] .theme-mode[data-m="dark"], :root[data-theme="light"][data-cards="same"] .theme-mode[data-m="light"],
:root[data-theme="dark"][data-cards="invert"] .theme-mode[data-m="ink"], :root[data-theme="light"][data-cards="invert"] .theme-mode[data-m="paper"] { background: var(--active); font-weight: 600; }
.tr-pick { max-width: 230px; padding: 5px 28px 5px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--card-hi); color: var(--ink); font: inherit; font-size: .82rem; }

/* Shared menus and the floating pill bar (19 Oct 2026). */
.ver-pill { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card-hi); color: var(--ink-strong); font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.ver-pill span { font-size: .6rem; opacity: .6; }
.theme-top { display: none; }
.theme-pop, .ver-pop { position: fixed; z-index: 80; border-radius: 22px; background: color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid var(--line); box-shadow: 0 18px 48px rgba(0, 0, 0, .28); }
.ver-pop { top: 60px; right: 14px; width: 300px; max-height: min(70vh, 560px); overflow-y: auto; padding: 8px 10px 12px; }
.ver-item { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: .86rem; }
.ver-item b { min-width: 34px; font-size: .74rem; letter-spacing: .04em; color: var(--ink-strong); }
.ver-item:hover { background: var(--card-hi); }
.ver-item[aria-current="true"] { background: var(--accent-soft); font-weight: 600; }
.ver-note { margin: 0 10px 6px; font-size: .74rem; color: var(--muted); }
.ver-ext { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px; }
.ver-ext a { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .74rem; font-weight: 700; color: var(--ink); text-decoration: none; }
@media (max-width: 759px) {
  .theme-top { display: inline-grid; }
  .ver-pill { height: 30px; padding: 0 10px; }
  .theme-pop { left: auto; right: 12px; top: 60px; bottom: auto; }
  .ver-pop { right: 12px; left: 12px; width: auto; }
  .tabbar { width: auto; box-sizing: border-box; left: auto; right: auto; bottom: auto; margin: 0 14px calc(10px + env(safe-area-inset-bottom)); padding: 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--topbar) 82%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 12px 34px rgba(0, 0, 0, .3); }
  .main-inner { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* Highlight colours in Instants (19 Oct 2026): a soft marker under the words, never hiding them. */
.instants { --hlc: transparent; }
.instants[data-hl="yellow"] { --hlc: rgba(255, 214, 10, .42); } .instants[data-hl="green"] { --hlc: rgba(48, 209, 88, .38); }
.instants[data-hl="blue"] { --hlc: rgba(10, 132, 255, .36); } .instants[data-hl="pink"] { --hlc: rgba(255, 55, 95, .34); }
.instants[data-hl="orange"] { --hlc: rgba(255, 159, 10, .4); } .instants[data-hl="purple"] { --hlc: rgba(191, 90, 242, .36); }
.instants .ins-verse mark, .instants .ins-verse.is-choosing .hlw.on { background: linear-gradient(transparent 52%, var(--hlc) 52%, var(--hlc) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; color: inherit; font-weight: 700; border-radius: 2px; }
.ins-hl-colors { display: inline-flex; gap: 6px; align-items: center; }
.ins-hl-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer; }
.ins-hl-dot[data-c="bold"] { background: var(--ins-ink, #fff); position: relative; } .ins-hl-dot[data-c="bold"]::after { content: "B"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 11px/1 var(--sans); color: var(--ins-bg, #000); }
.ins-hl-dot[data-c="yellow"] { background: #ffd60a; } .ins-hl-dot[data-c="green"] { background: #30d158; } .ins-hl-dot[data-c="blue"] { background: #0a84ff; }
.ins-hl-dot[data-c="pink"] { background: #ff375f; } .ins-hl-dot[data-c="orange"] { background: #ff9f0a; } .ins-hl-dot[data-c="purple"] { background: #bf5af2; }
.instants[data-hl="bold"] .ins-hl-dot[data-c="bold"], .instants[data-hl="yellow"] .ins-hl-dot[data-c="yellow"], .instants[data-hl="green"] .ins-hl-dot[data-c="green"], .instants[data-hl="blue"] .ins-hl-dot[data-c="blue"], .instants[data-hl="pink"] .ins-hl-dot[data-c="pink"], .instants[data-hl="orange"] .ins-hl-dot[data-c="orange"], .instants[data-hl="purple"] .ins-hl-dot[data-c="purple"] { box-shadow: 0 0 0 2px var(--ins-bg, #000), 0 0 0 4px var(--ins-ink, #fff); }

/* The original Instants design, the default again (19 Oct 2026). */
.instants.is-original::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 60% at 50% -12%, rgba(255, 255, 255, .08), transparent 58%), radial-gradient(48% 30% at 24% 106%, rgba(31, 107, 255, .34), transparent 72%),
    radial-gradient(48% 30% at 52% 108%, rgba(232, 60, 244, .3), transparent 72%), radial-gradient(48% 30% at 80% 106%, rgba(255, 45, 143, .28), transparent 72%); }
:root[data-theme="light"] .instants.is-original::before { background: radial-gradient(120% 60% at 50% -12%, rgba(0, 0, 0, .03), transparent 58%), radial-gradient(48% 30% at 24% 106%, rgba(31, 107, 255, .12), transparent 72%),
  radial-gradient(48% 30% at 52% 108%, rgba(232, 60, 244, .1), transparent 72%), radial-gradient(48% 30% at 80% 106%, rgba(255, 45, 143, .1), transparent 72%); }

/* Topic line pattern: a gentle overlay rising from the bottom, fading out before the verse (19 Oct 2026). */
.ins-art b { position: absolute; inset: 0; opacity: .32; pointer-events: none; transition: opacity 2.6s ease;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 22%, transparent 58%); mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 22%, transparent 58%); }
.instants.is-original .ins-art b { opacity: 0; }
/* The original gradient highlight is the default again (owner, 19 Oct 2026): brand colours, made for attention. */
.instants[data-hl="gradient"] .ins-verse mark, .instants[data-hl="gradient"] .ins-verse.is-choosing .hlw.on { background: var(--mark-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: inherit; }
.home-verse-text mark, .fit-verse mark { background: var(--mark-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: inherit; }
:root { --mark-grad: linear-gradient(100deg, #7fa8ff 0%, #b986ff 34%, #ff6ed8 68%, #ffa56b 100%); }
:root[data-theme="light"] { --mark-grad: linear-gradient(100deg, #1d4ed8 0%, #6d28d9 34%, #c026d3 68%, #ea580c 100%); }
.ins-hl-dot[data-c="gradient"] { background: linear-gradient(135deg, #7fa8ff, #b986ff, #ff6ed8, #ffa56b); }
.instants[data-hl="gradient"] .ins-hl-dot[data-c="gradient"] { box-shadow: 0 0 0 2px var(--ins-bg, #000), 0 0 0 4px var(--ins-ink, #fff); }
.ins-look-group { margin: 12px 0 6px; }
.ins-art i { background-size: cover; }
/* Stay is one lock above Amen on every verse (owner, 19 Oct 2026). */
.ins-top .ins-lock { display: none; }
.ins-lock-act[aria-pressed="true"] svg { color: #ff6ed8; }
/* Topic chooser on phones (19 Oct 2026): compact, and the card scrolls so the button is never hidden. */
@media (max-width: 759px) {
  .kind-onboard .ins-body { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; padding-top: 56px; padding-bottom: 24px; justify-content: flex-start; }
  .kind-onboard .ins-onboard-title { font-size: 1.45rem; line-height: 1.2; margin-bottom: 6px; }
  .kind-onboard .ins-insight { font-size: .95rem; margin-bottom: 12px; }
  .kind-onboard .ins-choices { gap: 7px; }
  .kind-onboard .ins-choice { padding: 7px 12px; font-size: .82rem; }
  .kind-onboard .ins-onboard-go { margin-top: 14px; }
}
/* Topic picker in Instants (19 Oct 2026). */
.ins-topics-btn { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; margin-left: auto; border: 1px solid var(--ins-line); border-radius: 99px; background: rgba(0, 0, 0, .18); color: var(--ins-ink); font: 600 .74rem var(--sans); cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ins-topics { position: absolute; z-index: 9; top: 54px; right: 12px; width: min(340px, calc(100% - 24px)); max-height: 70%; overflow-y: auto; padding: 12px; border-radius: 22px; border: 1px solid var(--ins-line); background: color-mix(in srgb, var(--ins-bg) 86%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 18px 48px rgba(0, 0, 0, .35); }
.ins-topics-h { margin: 2px 4px 10px; font: 600 .74rem var(--sans); color: var(--ins-muted); letter-spacing: .04em; }
.ins-topics-list { display: flex; flex-wrap: wrap; gap: 7px; }
.ins-topics-list a { padding: 7px 12px; border: 1px solid var(--ins-line); border-radius: 99px; color: var(--ins-ink); font: 600 .8rem var(--sans); text-decoration: none; }
.ins-topics-list a:hover { background: rgba(255, 255, 255, .08); }
.ins-topics-btn + .ins-howto { margin-left: 4px; }
.ins-journey-pill:not([hidden]) ~ .ins-topics-btn { margin-left: 6px; }
