/* MiShiloh brand tokens. Change the accent here only. */
/* MiShiloh brand tokens. Change the accent here only.
   Themes: dark (brand default), light, and auto (follows the device). */
:root {
  --ink: #11141C;          /* page background */
  --card: #1C2130;         /* cards */
  --card-2: #252B3D;       /* raised surfaces, inputs */
  --line: #343B52;
  --text: #FFFFFF;
  --text-2: #C9CED8;
  --placeholder: #9AA1B2;
  --accent: #F39A2B;       /* MiShiloh orangey gold: fills, borders */
  --accent-text: #F39A2B;  /* accent used as text: 8.3:1 on ink */
  --on-accent: #11141C;    /* always dark ink on accent fills (8.3:1) */
  --signature: #F4B740;    /* Jamaiquita Tech signature gold */
  --ok: #7FD6A5;
  --danger: #FF8A80;
  --story: #8FB8FF;
  --nav-bg: rgba(17, 20, 28, .96);
  --card-border: transparent;
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
/* Light theme. Accent fills stay #F39A2B with ink text; accent TEXT uses a
   deeper gold so it passes WCAG AA (4.75:1 or better on every light surface). */
:root[data-theme="light"] {
  --ink: #F6F4EF; --card: #FFFFFF; --card-2: #EDEAE3; --line: #D6D2C8;
  --text: #11141C; --text-2: #4A5163; --placeholder: #5F6675;
  --accent-text: #9C5400; --signature: #7A5600;
  --ok: #1E7A4C; --danger: #B3261E; --story: #2F5FB3; --nav-bg: rgba(246, 244, 239, .96); --card-border: #E2DED4;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ink: #F6F4EF; --card: #FFFFFF; --card-2: #EDEAE3; --line: #D6D2C8;
    --text: #11141C; --text-2: #4A5163; --placeholder: #5F6675;
    --accent-text: #9C5400; --signature: #7A5600;
    --ok: #1E7A4C; --danger: #B3261E; --story: #2F5FB3; --nav-bg: rgba(246, 244, 239, .96); --card-border: #E2DED4;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: calc(100% * var(--scale, 1)); }
:root[data-size="large"] { --scale: 1.15; }
/* Reading fonts: Atkinson Hyperlegible (Braille Institute, for low vision) and
   Lexend (designed to ease reading difficulties). Inter is the brand default. */
:root[data-font="atkinson"] { --font: "Atkinson Hyperlegible", "Inter", system-ui, sans-serif; }
:root[data-font="lexend"] { --font: "Lexend", "Inter", system-ui, sans-serif; letter-spacing: 0.01em; }
:root[data-font="atkinson"] .eyebrow, :root[data-font="lexend"] .eyebrow { letter-spacing: .04em; }
:root[data-size="xlarge"] { --scale: 1.3; }
body {
  margin: 0; background: var(--ink); color: var(--text); font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.6; min-height: 100vh;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
a { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; z-index: 10; }

.top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; max-width: 720px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.env { font-size: 0.875rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--card-2); color: var(--accent-text); border: 1px solid var(--accent-text); }
.account { margin-left: auto; color: var(--text-2); text-decoration: none; font-size: 0.875rem; font-weight: 600; padding: 8px 4px; max-width: 45vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; }
.account .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--card-2); border: 1px solid var(--accent); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; text-transform: uppercase; }
html, body { overflow-x: hidden; overscroll-behavior-x: none; } /* no accidental swipe-back on laptops */

main { max-width: 720px; margin: 0 auto; padding: 4px 16px 24px; outline: none; }
h1 { font-size: 1.625rem; line-height: 1.25; margin: 8px 0 6px; letter-spacing: -0.015em; }
h2 { font-size: 1.125rem; margin: 22px 0 10px; }
h3 { font-size: 1.0625rem; margin: 0 0 6px; }
p { margin: 0 0 10px; }
.muted { color: var(--text-2); }
.small { font-size: 0.875rem; }
.eyebrow { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); margin: 0 0 6px; }

.card { background: var(--card); border-radius: var(--radius); padding: 18px; margin: 12px 0; border: 1px solid var(--card-border); }
.card.accent { border-color: var(--accent); }
.verse { font-size: 1.25rem; line-height: 1.6; margin: 6px 0 10px; }
.verse sup { color: var(--text-2); font-size: 0.75rem; margin-right: 2px; }
.ref { font-weight: 600; color: var(--accent-text); }
.tr { color: var(--text-2); font-size: 0.875rem; }
.patois { font-size: 1.25rem; font-weight: 600; margin: 4px 0 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 1rem;
  border-radius: 12px; padding: 11px 16px; min-height: 48px; border: 1px solid var(--line); background: var(--card-2); color: var(--text); cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--accent-text); border-color: transparent; padding-left: 4px; padding-right: 4px; }
.btn.danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn:disabled { opacity: .55; cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 1rem; font-weight: 500; padding: 10px 14px; min-height: 48px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); cursor: pointer; text-decoration: none; }
.chip[aria-pressed="true"], .chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.refchip { font: inherit; font-size: 0.875rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card-2); color: var(--accent-text); cursor: pointer; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--card); border-radius: 14px; padding: 14px; color: var(--text); text-decoration: none; font-weight: 600; min-height: 64px; display: flex; align-items: flex-end; border: 1px solid var(--card-border); }
.tile:hover { border-color: var(--line); }
.list { list-style: none; padding: 0; margin: 0; }
.list > li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.list > li:last-child { border-bottom: 0; }

label { display: block; font-weight: 600; font-size: 0.9375rem; margin: 12px 0 6px; color: var(--text-2); }
input, textarea, select { width: 100%; font: inherit; color: var(--text); background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 48px; }
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
.q { margin-top: 14px; }
.q label { color: var(--text); font-size: 1rem; }

.seg { display: flex; gap: 6px; background: var(--card); border-radius: 12px; padding: 4px; overflow-x: auto; }
.seg button { flex: 1; font: inherit; font-size: 1rem; font-weight: 600; border: 0; border-radius: 9px; padding: 10px 8px; min-height: 40px; background: transparent; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

.badge { display: inline-block; font-size: 0.875rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: var(--card-2); color: var(--text-2); }
.badge.ok { color: var(--ok); }
.badge.acc { background: var(--accent); color: var(--on-accent); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.stat { background: var(--card); border-radius: 12px; padding: 12px; }
.stat b { display: block; font-size: 1.5rem; color: var(--accent-text); }
.month { color: var(--text-2); font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: .06em; margin: 20px 0 4px; }
.event { display: grid; grid-template-columns: 12px 1fr; gap: 12px; padding: 10px 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); margin-top: 6px; }
.dot.prayer, .dot.answered { background: var(--accent); }
.dot.gratitude { background: var(--ok); }
.dot.story { background: var(--story); }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--card-2); margin: 10px 0; }
.error { color: var(--danger); font-weight: 600; margin: 8px 0; }
.flash { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--accent); color: var(--on-accent); font-weight: 600; padding: 10px 16px; border-radius: 999px; z-index: 5; }
details > summary { cursor: pointer; font-weight: 600; min-height: 48px; display: flex; align-items: center; }

.flash-card { min-height: 200px; display: flex; flex-direction: column; justify-content: center; }

.sig { text-align: center; padding: 16px 16px 24px; }
.sig span.pw { color: var(--text-2); font-weight: 400; text-transform: none; letter-spacing: 0; }
.sig span { color: var(--signature); font-weight: 600; font-size: 0.875rem; letter-spacing: .08em; text-transform: uppercase; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; background: var(--nav-bg);
  border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); backdrop-filter: blur(8px); z-index: 4; }
.tabs a { flex: 1; max-width: 140px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; min-height: 52px;
  color: var(--text-2); text-decoration: none; font-size: 0.875rem; font-weight: 600; border-radius: 10px; }
.tabs a svg { width: 24px; height: 24px; }
.tabs a[aria-current="page"] { color: var(--accent-text); }

@media (min-width: 720px) { h1 { font-size: 1.875rem; } .verse { font-size: 1.375rem; } }
@media (prefers-reduced-motion: no-preference) { .card { transition: border-color .15s; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plain { color: inherit; text-decoration: none; } .block { display: block; } .hi { color: var(--text); }
.grow { flex: 1; } .minw { min-width: 160px; } .lg { font-size: 1.125rem; } .mt0 { margin-top: 0; } .mt { margin-top: 12px; } .mt-s { margin-top: 6px; }
.my { margin: 12px 0; } .my-s { margin: 8px 0; } .m0 { margin: 0; } .pre { white-space: pre-wrap; } .full { width: 100%; }
[hidden] { display: none !important; }
main:focus, main:focus-visible { outline: none; }
.profile { display: grid; gap: 4px; }
.profile .big { font-size: 1.0625rem; font-weight: 600; }
.verse-tools { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.verse-tools select { width: auto; min-height: 48px; padding: 6px 10px; font-size: 0.875rem; }
.hint { font-size: 0.875rem; color: var(--text-2); margin-top: 6px; }
.tabs a { text-align: center; line-height: 1.2; }
.stack .seg { flex-direction: column; }
.stack .seg button { text-align: left; padding: 12px 14px; white-space: normal; }
.seg button { min-height: 48px; }
/* Bible study night */
.step .stepno { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.step h2 { font-size: 1.1875rem; }
.part { font-size: 0.9375rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-text); margin: 14px 0 6px; }
.qs { padding-left: 1.25em; margin: 0; }
.qs li { margin: 0 0 12px; }
.prayer { font-size: 1.0625rem; line-height: 1.7; }
.hymn { border-top: 1px solid var(--line); padding: 4px 0; }
.lyric { margin: 8px 0; line-height: 1.7; }
.lyric.refrain { padding-left: 12px; border-left: 3px solid var(--accent); }
label.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--text); margin: 0; padding: 10px 0; min-height: 48px; border-bottom: 1px solid var(--line); cursor: pointer; }
label.check input { width: 24px; height: 24px; min-height: 24px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.plainset { border: 0; padding: 0; margin: 16px 0 0; }
.plainset legend { font-weight: 600; font-size: 0.9375rem; color: var(--text-2); padding: 0; }
.btn.small { min-height: 48px; font-size: 0.9375rem; }
.list.card { padding: 4px 18px; }
.hymn > summary { display: block; padding: 12px 0; line-height: 1.4; }
.zone { display: inline-block; font-size: 0.8125rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; vertical-align: middle; border: 1px solid var(--line); color: var(--text-2); }
.zone.group { border-color: var(--accent); color: var(--accent-text); }
.zone.personal::before { content: "🔒 "; }
.zone.group::before { content: "👥 "; }
/* present mode: big, high-contrast text to share on screen */
.present { display: flex; flex-direction: column; min-height: calc(100vh - 160px); background: var(--ink); }
.present:fullscreen { min-height: 100vh; padding: 16px 24px; }
.pbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slide { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 16px 0; }
.slide .eyebrow { font-size: clamp(0.9rem, 2vw, 1.25rem); }
.ptitle { font-size: clamp(2rem, 6vw, 4rem); line-height: 1.15; }
.pbody { font-size: clamp(1.5rem, 4.6vw, 3.25rem); line-height: 1.35; font-weight: 600; color: var(--text); }
.pbody.psmall { font-size: clamp(1.25rem, 3.4vw, 2.4rem); font-weight: 500; }
.pbody.plyric { font-size: clamp(1.25rem, 3.6vw, 2.6rem); font-weight: 500; }
.pverse { font-size: clamp(1.35rem, 3.8vw, 2.75rem); line-height: 1.5; color: var(--text); }
.pverse sup { font-size: 0.5em; color: var(--accent-text); margin-right: 2px; }
.pnav { display: flex; gap: 10px; padding-bottom: 8px; }
.pnav .btn { min-height: 56px; font-size: 1.125rem; }
/* verse highlights: colour plus a symbol, never colour alone */
:root { --hl-key: rgba(243, 154, 43, .30); --hl-promise: rgba(255, 128, 160, .26); --hl-do: rgba(127, 214, 165, .26); --hl-question: rgba(143, 184, 255, .28); --hl-prayer: rgba(186, 150, 255, .28); --hl-comfort: rgba(94, 214, 214, .24); }
:root[data-theme="light"] { --hl-key: #FDE3BC; --hl-promise: #FBD7E1; --hl-do: #D3EFDD; --hl-question: #DAE5FB; --hl-prayer: #E8DDFB; --hl-comfort: #CFF0EE; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --hl-key: #FDE3BC; --hl-promise: #FBD7E1; --hl-do: #D3EFDD; --hl-question: #DAE5FB; --hl-prayer: #E8DDFB; --hl-comfort: #CFF0EE; } }
.vs { cursor: pointer; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.vs:hover { text-decoration: underline dotted var(--line); text-underline-offset: 4px; }
.vs.hl { padding: 1px 2px; }
.hl-key { background: var(--hl-key); } .hl-promise { background: var(--hl-promise); }
.hl-do { background: var(--hl-do); } .hl-question { background: var(--hl-question); }
.hl-prayer { background: var(--hl-prayer); } .hl-comfort { background: var(--hl-comfort); }
.hlsym { font-weight: 700; margin-right: 3px; font-size: 0.85em; }
.notesym { margin-left: 3px; color: var(--accent-text); font-size: 0.9em; }
.vnotes { border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; margin: 6px 0 10px; }
.vnote { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; color: var(--text); padding: 6px 0; min-height: 44px; cursor: pointer; }
.markpanel { border-color: var(--accent); }
.hlpick { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.hlbtn { font: inherit; font-weight: 600; font-size: 0.9375rem; min-height: 48px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--card-2); color: var(--text); cursor: pointer; }
.hlbtn[aria-pressed="true"] { border-color: var(--text); outline: 2px solid var(--accent); }
.hlkey { display: inline-block; border-radius: 6px; padding: 1px 8px; color: var(--text); font-weight: 600; font-size: 0.875rem; }
/* feeling check-in: an icon and a word for each feeling */
.feelgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.feel { display: flex; align-items: center; gap: 10px; text-align: left; font: inherit; font-weight: 600; font-size: 1rem; min-height: 56px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.feel .femoji { font-size: 1.5rem; line-height: 1; }
.feel[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Menu: large rows in plain sections */
.msec { font-size: .95rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-text); margin: 22px 4px 8px; }
.mlist { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden; }
.mlist li + li { border-top: 1px solid var(--card-border); }
.mrow { display: flex; align-items: center; gap: 14px; padding: 12px 14px; min-height: 64px; color: var(--text); text-decoration: none; font-size: 1.1rem; font-weight: 600; }
.mrow:hover { background: var(--ink); }
.mrow small { display: block; font-size: .9rem; font-weight: 500; color: var(--text-2); overflow-wrap: anywhere; }
.mic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-text); }
.mchev { color: var(--text-2); display: flex; }

/* Add to home screen */
.install { border: 2px solid var(--accent); }
.install img { border-radius: 12px; flex: none; }
.install h2 { line-height: 1.25; }
.steps { margin: 8px 0; padding-left: 1.4em; line-height: 1.5; }
.steps li { margin: 6px 0; font-size: 1.05rem; }

/* Offline */
.offline-bar { background: var(--accent); color: var(--on-accent); font-weight: 600; text-align: center; padding: 8px 16px; font-size: 1rem; }
.offline-bar[hidden] { display: none; }
progress { width: 100%; height: 14px; accent-color: var(--accent); }

/* Bible reader */
.bookgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.chapgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.book { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; padding: 8px; background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.book:hover { border-color: var(--accent); }
.pnav-read { margin-top: 12px; }

/* Speak instead of type */
.microw { display: flex; justify-content: flex-end; margin: 4px 0 2px; }
.mic[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

/* ---------- UX pass: lists, reader, verse selection ---------- */
button.mrow { width: 100%; border: 0; background: transparent; font: inherit; font-size: 1.1rem; font-weight: 600; text-align: left; cursor: pointer; }
button.mrow[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: inset 4px 0 0 var(--accent); }
.memoji { font-size: 1.4rem; }
.continue { margin: 8px 0 14px; border: 2px solid var(--accent); }
.continue small { display: block; font-weight: 500; color: var(--text-2); }
.goto { position: relative; margin: 6px 0 2px; }
.goto input { width: 100%; font-size: 1.1rem; padding-left: 44px; }
.goicon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-2); display: flex; pointer-events: none; }
.gojump { color: var(--accent-text); font-weight: 700; }
.bookrow [aria-expanded="true"] { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.bookrow [aria-expanded="true"] .mchev { transform: rotate(90deg); }
.chapnums { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; padding: 10px 14px 14px; }
.chapnum { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; background: var(--ink); }
.chapnum:hover, .chapnum:focus-visible { border-color: var(--accent); }

/* reader */
.readbar { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 4px; margin: 0 -16px 8px; padding: 8px 10px; background: var(--ink); border-bottom: 1px solid var(--line); }
.readtitle { text-align: center; font-size: 1.15rem; font-weight: 800; color: var(--text); text-decoration: none; padding: 8px 6px; border-radius: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.rnav { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; max-width: 100%; padding: 2px 8px; border-radius: 14px; color: var(--accent-text); text-decoration: none; font-weight: 700; font-size: .9rem; line-height: 1.15; }
.rnav.prev { justify-self: start; padding-left: 4px; }
.rnav.next { justify-self: end; padding-right: 4px; }
.rnav svg { flex: none; }
.rnl { min-width: 0; }
.rnav.next .rnl { text-align: right; }
a.rnav:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.readtools { margin-bottom: 8px; }
.small-seg button { padding: 8px 10px; min-height: 40px; font-size: .95rem; }
.reader .verse { margin-top: 0; }
.vnum { color: var(--accent-text); font-weight: 800; font-size: .8em; margin-right: 6px; font-variant-numeric: tabular-nums; }
.verse.lines .vs { display: block; padding: 6px 4px; margin: 0 -4px; }
.verse.lines .vnum { display: inline-block; min-width: 1.6em; }
.vs[data-hit] { animation: hit 2.4s ease-out; }
@keyframes hit { from { background: color-mix(in srgb, var(--accent) 40%, transparent); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .vs[data-hit] { animation: none; outline: 2px solid var(--accent); } }

/* selection: an outline and underline, never colour alone */
.vs[data-sel] { outline: 2px solid var(--accent); outline-offset: 2px; text-decoration: underline 2px var(--accent); text-underline-offset: 5px; }
.vs.hl { text-decoration: underline 2px; text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, var(--text) 45%, transparent); }
.notesym { border: 0; background: var(--accent); color: var(--on-accent); font: inherit; font-size: .8em; font-weight: 700; border-radius: 999px; min-width: 32px; min-height: 32px; padding: 0 8px; margin-left: 4px; cursor: pointer; vertical-align: middle; }

/* the bar that appears when verses are selected, and the note sheet */
.versebar, .markpanel.card { position: fixed; left: 8px; right: 8px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 6; max-width: 560px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 12px; }
.markpanel.card { max-height: 70vh; overflow: auto; }
.vb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.vb-head strong { font-size: 1.05rem; }
.vb-head .small { flex: 1; }
.vb-x { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--text); font-size: 1.1rem; cursor: pointer; }
.vb-colors { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.vb-c { flex: 1; min-width: 64px; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 2px solid transparent; border-radius: 12px; font: inherit; font-size: 1.2rem; cursor: pointer; color: var(--text); background: var(--ink); }
.vb-c small { font-size: .75rem; font-weight: 600; }
.vb-c[aria-checked="true"] { border-color: var(--text); }
.vb-acts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.vb-acts button { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.vb-acts button span { font-size: 1.25rem; color: var(--accent-text); }
.vb-acts button:hover, .vb-acts button:focus-visible { background: var(--ink); }
.fchips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; }
.fchip[aria-current="true"] { border: 2px solid var(--text); }
.labelrow { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.labelrow .hlkey { min-width: 44px; text-align: center; font-size: 1.2rem; }
.labelrow input { flex: 1; }
.vb-colors { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
.vb-c.hl-key { background: var(--hl-key); } .vb-c.hl-promise { background: var(--hl-promise); } .vb-c.hl-do { background: var(--hl-do); }
.vb-c.hl-prayer { background: var(--hl-prayer); } .vb-c.hl-comfort { background: var(--hl-comfort); } .vb-c.hl-question { background: var(--hl-question); }
.vb-c { border-color: var(--line); }
.verse.lines .vnum { min-width: 1.3em; margin-right: 4px; }
.hlsym { margin-right: 4px; }
.vb-none { grid-column: 1 / -1; min-height: 44px; flex-direction: row; gap: 8px; }

/* four plain colours (yellow, green, blue, pink) */
:root { --hl-key: rgba(255, 214, 10, .30); }
:root[data-theme="light"] { --hl-key: #FFF0A3; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --hl-key: #FFF0A3; } }
.vb-colors { grid-template-columns: repeat(4, 1fr); }
.vb-c { min-height: 56px; border-radius: 999px; border: 2px solid color-mix(in srgb, var(--text) 25%, transparent); }
.vb-c[aria-checked="true"] { border: 3px solid var(--text); }
.vb-c[aria-checked="true"]::after { content: "✓"; font-weight: 800; }
.vb-none { border-radius: 12px; }
.hlbtn { min-width: 52px; min-height: 48px; border-radius: 999px; }
.cdot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; border: 1px solid color-mix(in srgb, var(--text) 30%, transparent); }
.cdot.big { width: 32px; height: 32px; flex: none; }
.labelrow label { min-width: 70px; margin: 0; }
/* selection is a dashed box, clearly different from a highlight */
.vs[data-sel] { outline: 2px dashed var(--text); outline-offset: 3px; text-decoration: none; background-image: none; }
.vs.hl { text-decoration: underline 3px; text-underline-offset: 6px; text-decoration-color: color-mix(in srgb, var(--text) 40%, transparent); }
.vs.hl[data-sel] { text-decoration: underline 3px; }
.vb-c:not(.vb-none) { justify-self: center; width: 60px; height: 60px; min-width: 0; padding: 0; }
.flash { max-width: min(92vw, 420px); border-radius: 16px; text-align: center; }

/* ---------- calmer Today: the verse is the hero, quiet controls ---------- */
.hero { margin: 4px 0 6px; }
.hero .verse { font-family: Georgia, "Times New Roman", serif; font-size: 1.6rem; line-height: 1.5; margin: 0; }
@media (min-width: 720px) { .hero .verse { font-size: 1.85rem; } }
.vmeta { margin: 4px 0 6px; color: var(--text-2); font-size: 1.05rem; }
.vmeta .ref { color: var(--accent-text); font-weight: 700; }
.trbtn { border: 0; background: none; font: inherit; font-weight: 700; color: var(--text); padding: 10px 4px; min-height: 44px; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 4px; }
.actions { display: flex; justify-content: space-between; gap: 4px; margin: 2px -6px 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.iconbtn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 56px; min-height: 52px; padding: 4px 6px; border: 0; border-radius: 12px; background: transparent; color: var(--accent-text); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.iconbtn svg { width: 24px; height: 24px; }
.iconbtn span { color: var(--text-2); }
.iconbtn:hover, .iconbtn:focus-visible { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.iconbtn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.iconbtn[aria-pressed="true"] span { color: var(--on-accent); }
.iconbtn:disabled { opacity: .6; }
.reflect { margin: 18px 0 10px; }
.reflect .q label { font-weight: 600; margin-top: 12px; }
.plainsec { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 20px; }

/* text boxes grow as you write, with a small mic inside */
textarea.autogrow { resize: none; overflow: hidden; min-height: 52px; }
.tawrap { position: relative; }
.tawrap textarea { padding-right: 52px; width: 100%; }
.tawrap .mic { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--accent-text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tawrap .mic:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.tawrap .mic[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent); } }
@media (prefers-reduced-motion: reduce) { .tawrap .mic[aria-pressed="true"] { animation: none; } }

/* bottom sheet */
.sheetwrap { position: fixed; inset: 0; z-index: 8; }
.backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 80vh; overflow: auto; background: var(--ink); border-radius: 22px 22px 0 0; padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }
.sheethead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sheet small { display: block; font-weight: 500; color: var(--text-2); }
.mb { margin-bottom: 12px; }

/* Study a verse */
.backlink { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--accent-text); text-decoration: none; font-weight: 600; }
.backlink svg { transform: scaleX(-1); }
.textlink { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--accent-text); text-decoration: none; cursor: pointer; }
.around p { margin: 0 0 8px; color: var(--text-2); line-height: 1.55; }
.around p.here { color: var(--text); font-weight: 600; border-left: 3px solid var(--accent); padding-left: 10px; margin-left: -13px; }
.xrefs { list-style: none; margin: 0; padding: 0; }
.xrefs li + li { border-top: 1px solid var(--line); }
.xrefs a { display: block; padding: 12px 0; color: var(--text); text-decoration: none; }
.xrefs strong { display: block; color: var(--accent-text); }
.xrefs .xt { display: block; color: var(--text-2); line-height: 1.5; margin-top: 2px; }
.credit { font-size: .8rem; color: var(--text-2); margin: 6px 0 0; }
.outline { font-weight: 700; margin: 4px 0 6px; }
.henry p { line-height: 1.6; margin: 0 0 10px; }
.henry:not(.open) p:first-child { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.hero-quote { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; line-height: 1.5; margin: 0 0 12px; }
.hero-quote .ref { display: block; font-family: var(--font); font-size: .95rem; font-weight: 700; color: var(--accent-text); margin-top: 4px; }
.aihelp { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin: 4px 0 14px; }
.aihelp .btn { display: inline-flex; align-items: center; gap: 6px; }
.aihelp p { margin: 6px 0 0; }
.msgform label { display: block; margin-top: 18px; font-weight: 700; }
.msgform .hint { margin: 2px 0 6px; }
.warnline { font-weight: 600; }
.actions.flat { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; justify-content: flex-start; }
.vb-acts svg { color: var(--accent-text); }
.plus { margin-left: 4px; display: inline-block; vertical-align: middle; font-size: .72rem; font-weight: 800; letter-spacing: .03em; line-height: 1; padding: 3px 7px; border-radius: 999px; border: 1.5px solid var(--accent-text); color: var(--accent-text); text-transform: uppercase; }
h1 .plus { font-size: .8rem; vertical-align: .35em; }
.understand { display: flex; align-items: center; gap: 10px; margin: -4px 0 4px; color: var(--text-2); }
.plainverse { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; line-height: 1.5; margin: 0 0 4px; }

/* proverb meets verse: the paired verse shown under the saying, no box */
.pairverse { margin: 12px 0 4px; padding-left: 14px; border-left: 3px solid var(--accent); }
.pairverse .verse { margin: 0 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 1.125rem; line-height: 1.55; }
.pairverse .ref { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.authseg { margin: 12px 0; }
.authseg button { flex: 1; }
.placeline { margin: 8px 0; line-height: 1.5; }
.placeline .textlink { white-space: nowrap; }

/* ---- Bible study night: step-by-step planner ---- */
.stepper { list-style: none; display: flex; gap: 6px; margin: 8px 0 16px; padding: 0; }
.stepper li { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--text-2); }
.stepper li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.stepper li span { display: none; }
.stepper li.done::before, .stepper li.on::before { background: var(--accent); }
.stepper li.on { color: var(--text); }
.stepnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.stepnav .btn { min-width: 120px; }
.vpick .vsnip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#own-ref { margin-top: 8px; }
/* the plan page */
.titlerow { display: flex; align-items: center; gap: 8px; }
.titlerow h1 { margin-bottom: 4px; }
.iconbtn.sm { min-width: 44px; min-height: 44px; padding: 0; }
.iconbtn.sm svg { width: 20px; height: 20px; }
.iconbtn:disabled { opacity: .3; cursor: default; background: transparent; }
.steptools { display: flex; align-items: center; gap: 4px; margin: 8px -6px -6px; padding-top: 6px; border-top: 1px solid var(--line); }
.steptools .textlink { display: inline-flex; align-items: center; gap: 6px; }
.stepedit textarea { width: 100%; }
.ticklist { margin: 4px 0 12px; }
.tickrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.tickrow label.check { border-bottom: 0; flex: 1; min-width: 60%; }
.tickrow .ref-text { flex-basis: 100%; }
.planactions { margin: 28px 0 8px; }
.planactions h2 { margin: 0 0 12px; }
.planactions .btn.full { display: flex; align-items: center; justify-content: center; gap: 8px; }
.textlink.danger { color: var(--danger); }
.center { text-align: center; }
.tickrow .refchip { border: 0; background: none; }
/* journal tools, tags and the print page */
.jtools { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.jtools .goto { margin: 0; }
.jtools select { width: auto; flex: none; }
.ktag { font-weight: 600; color: var(--text); }
.printdoc .pentry { padding: 14px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.printdoc .pentry h2 { margin: 4px 0; font-size: 1.15rem; }
@media print {
  header, nav, #tabs, .noprint, footer.sig, #account { display: none !important; }
  body, .printdoc { background: #fff !important; color: #000 !important; }
  .printdoc .muted, .printdoc .small { color: #444 !important; }
  .printdoc .pentry { border-color: #ccc; }
}
.pluslist { padding-left: 20px; line-height: 1.6; }
.pluslist li { margin: 4px 0; }
.logo-row img { max-height: 48px; max-width: 120px; background: #fff; padding: 4px; border-radius: 8px; }
/* passage helper: suggestions, warnings and what the passage is about */
.refhelp:empty { display: none; }
.refhelp { margin-top: 8px; }
.refhelp .rlabel { font-size: 0.875rem; font-weight: 600; color: var(--text-2); margin: 10px 0 6px; }
.refhelp .chips { gap: 6px; }
.refhelp .chip { min-height: 40px; padding: 8px 12px; font-size: 0.9375rem; }
.numgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; max-height: 236px; overflow-y: auto; }
.numgrid button { font: inherit; font-weight: 600; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.numgrid button.wide { grid-column: span 3; font-weight: 500; }
.refok { font-weight: 600; color: var(--text); margin: 6px 0; }
.refok .tick { color: var(--ok, #1E7A4C); }
.refwarn { color: var(--danger); font-weight: 600; margin: 6px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.tag { font-size: 0.8125rem; padding: 3px 10px; border-radius: 999px; background: var(--card-2); color: var(--text-2); border: 1px solid transparent; }
.tag.kind { border-color: var(--line); background: transparent; font-weight: 600; }
.refhelp details summary { font-size: 0.875rem; font-weight: 600; color: var(--accent-text); cursor: pointer; margin: 8px 0; }
/* mic: tap to start (red, with a pulsing dot), tap again to stop */
.tawrap .mic[aria-pressed="true"] { background: #D93025; color: #fff; animation: micpulse 1.2s infinite; }
.tawrap .mic[aria-pressed="true"] svg { display: none; }
.tawrap .mic[aria-pressed="true"]::after { content: ""; width: 14px; height: 14px; border-radius: 3px; background: #fff; }
.tawrap .mic[aria-pressed="true"]::before { content: ""; position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid #D93025; }
@keyframes micpulse { 50% { box-shadow: 0 0 0 7px rgba(217, 48, 37, .25); } }
@media (prefers-reduced-motion: reduce) { .tawrap .mic[aria-pressed="true"] { animation: none; } }
.micnote { font-size: 0.8125rem; color: var(--text-2); margin: 4px 2px 0; text-align: right; }
.micnote.warn { color: var(--danger); text-align: left; }
.micnote[hidden] { display: none; }
.micnote .recdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #D93025; margin-right: 6px; vertical-align: 1px; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .micnote .recdot { animation: none; } }
/* read-aloud mini player, above the tabs */
.player { position: fixed; left: 8px; right: 8px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 5; max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.player .pdot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; animation: blink 1.2s infinite; }
.player .ptitle { flex: 1; min-width: 0; font-size: 0.875rem; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player button { font: inherit; cursor: pointer; }
.player .pspeed { min-width: 52px; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); color: var(--text); font-weight: 700; }
.player .pseg { display: flex; background: var(--card-2); border-radius: 10px; padding: 3px; }
.player .pseg button { border: 0; background: transparent; color: var(--text-2); font-weight: 600; font-size: 0.875rem; padding: 0 10px; min-height: 34px; border-radius: 8px; }
.player .pseg button[aria-checked="true"] { background: var(--accent); color: var(--on-accent); }
.player .pstop { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.player .pstop span { width: 12px; height: 12px; border-radius: 2px; background: var(--on-accent); }
@media (max-width: 440px) { .player .ptitle { display: none; } .player .pseg { margin-right: auto; } }
@media (prefers-reduced-motion: reduce) { .player .pdot { animation: none; } }
body:has(.player) #view { padding-bottom: 80px; }
#pl-cancel { margin: 8px 0 14px; }
.ppbox { margin: 14px 0 10px; min-height: 48px; }
/* Free vs Plus table */
.ptwrap { margin: 14px 0 6px; }
.plantable { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.plantable th, .plantable td { padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.plantable thead th { font-size: 13px; font-weight: 700; text-align: center; color: var(--text-2); padding-bottom: 8px; }
.plantable thead th:first-child, .plantable tbody th { text-align: left; }
.plantable tbody th { font-weight: 500; line-height: 1.3; padding-right: 8px; }
.plantable .pt-c1 { width: 37%; }
.plantable .pt-c2 { width: 15%; }
.plantable .pt-c3 { width: 24%; }
.plantable td { text-align: center; }
.plantable .pt-price td { font-weight: 700; font-size: 14px; letter-spacing: -0.2px; line-height: 1.2; }
.plantable .pt-price small { display: block; font-weight: 400; font-size: 11px; color: var(--text-2); margin-top: 2px; }
.plantable .pt-yes { color: var(--accent-text); font-weight: 700; font-size: 18px; }
.plantable .pt-no { color: var(--text-2); }
.plantable .pt-note { font-size: 11px; line-height: 1.25; color: var(--text-2); display: block; }
.plantable thead th:nth-child(n+3), .plantable td:nth-child(n+3) { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plantable .pt-or { display: block; font-weight: 400; font-size: 12px; color: var(--text-2); margin-top: 3px; }
.plantable thead th:nth-child(n+3) { color: var(--accent-text); }
.upgrade-pill { flex: none; background: var(--accent); color: var(--on-accent); font-size: .9rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.codebox { margin: 18px 0 6px; }
.codebox summary { color: var(--accent-text); font-weight: 600; cursor: pointer; padding: 6px 0; }
.codebox form { margin-top: 8px; gap: 8px; }
.codebox input { text-transform: uppercase; letter-spacing: .06em; }
.radio-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); }
[aria-pressed="true"] > .radio-dot { border: 7px solid var(--accent); }
.mlist + p.small { margin-top: 10px; }

/* ---------- Flat look ----------
   No boxes: lists, cards and the Bible text sit on the page, separated by thin
   lines, like a phone's settings list. Switches are words with an underline. */
.card { background: transparent; border: 0; border-radius: 0; border-top: 1px solid var(--line); padding: 16px 0 4px; margin: 8px 0; }
.card.accent { border-color: var(--line); }
.card.reader { border-top: 0; padding: 4px 0; }
.list.card { padding: 4px 0; }
.mlist { background: transparent; border: 0; border-radius: 0; margin: 0 -16px; }
.mlist li { border-top: 1px solid var(--line); }
.mlist li:last-child { border-bottom: 1px solid var(--line); }
.mlist li + li { border-top: 1px solid var(--line); }
.mrow { min-height: 52px; padding: 8px 16px; gap: 12px; font-size: 1.05rem; font-weight: 500; }
button.mrow { font-size: 1.05rem; font-weight: 500; padding: 8px 16px; }
.mrow:hover { background: color-mix(in srgb, var(--text) 4%, transparent); }
.mrow .mic { width: 26px; height: 26px; border-radius: 0; background: transparent; }
.mrow .mic svg { width: 22px; height: 22px; }
.mrow .mic.memoji { font-size: 1.25rem; }
.mrow .mic[aria-pressed="true"] { background: transparent; color: var(--accent-text); }
.msec { font-size: .8rem; font-weight: 700; color: var(--text-2); margin: 28px 0 6px; }
.seg { background: transparent; padding: 0; gap: 20px; border-radius: 0; border-bottom: 1px solid var(--line); }
.seg button { flex: none; border-radius: 0; padding: 8px 0; min-height: 44px; border-bottom: 3px solid transparent; }
.seg button[aria-pressed="true"] { background: transparent; color: var(--text); border-bottom-color: var(--accent); }
.stack .seg { gap: 0; border-bottom: 0; }
.stack .seg button { border-bottom: 1px solid var(--line); padding: 12px 14px; }
.stack .seg button[aria-pressed="true"] { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--accent); color: var(--text); }
/* "How are you feeling?" line at the top of Today */
.feelline { display: flex; align-items: center; gap: 10px; padding: 10px 0; margin: 0 0 8px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; }
.feelline .grow { flex: 1; }
.feelline .femojis { font-size: 1.2rem; letter-spacing: 4px; }
.feelline .mchev { color: var(--text-2); }

/* Celebrations and occasions, beside the feelings */
.occjump { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; padding: 10px 0; min-height: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 500; }
.occjump svg { color: var(--accent-text); flex: none; }
.occsub { margin: -2px 0 10px; }
.row.between { justify-content: space-between; }
.row.between { margin-top: 28px; }
.row.between h2 { margin: 0; }
.occnote { margin: 18px 0 6px; color: var(--accent-text); font-weight: 600; }
.occideas { margin: 0; padding-left: 1.2em; }
.occideas li + li { margin-top: 6px; }
/* update bar */
.updbar { position: fixed; left: 12px; right: 12px; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 6; display: flex; align-items: center; gap: 12px;
  max-width: 560px; margin: 0 auto; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--card-border); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.updbar small { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.updbar .btn { flex: none; }
/* admin page */
.adm-find { margin-bottom: 10px; }
.adm-find .btn { flex: none; }
.adm-person summary { list-style: none; cursor: pointer; }
.adm-person summary::-webkit-details-marker { display: none; }
.adm-person summary small + small { margin-top: 0; }
.adm-person[open] .mchev svg { transform: rotate(180deg); }
.adm-acts { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 14px 14px; }
.adm-acts .row.wrap { flex-wrap: wrap; }
.adm-acts p { margin: 0; }
.adm-form { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.adm-form label { margin: 0; }
.adm-code { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.adm-pw { display: inline-block; font-size: 1.35rem; font-weight: 700; letter-spacing: .06em; padding: 6px 10px; border-radius: 10px; background: var(--card-2); user-select: all; }
body.has-updbar { padding-bottom: 96px; }
/* terms and privacy */
.legal h2 { font-size: 1.15rem; margin: 22px 0 6px; }
.legal p { margin: 0 0 10px; }
.legal-list { margin: 0 0 10px; padding-left: 22px; }
.legal-list li { margin: 4px 0; }
.legal-links { margin: 6px 0 0; font-size: .875rem; }
.legal-links a { color: var(--text-2); }
.agree { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 4px; font-size: .95rem; line-height: 1.45; cursor: pointer; }
.agree input { width: 22px; height: 22px; min-height: 0; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.agree a { color: var(--accent-text); font-weight: 600; }
.adm-msg { font-size: .95rem; line-height: 1.45; min-height: 0; }
