/* Daily Walk modern presentation layer. Keep last among shared stylesheets.
   Reader prose and stored content remain unchanged; list previews are intentionally shortened. */
/* Garden sage: fresh sage green on a light, warm page. Dark mode keeps the same greens, a step softer than black. */
:root {
  --dw-bg: #f6f8f0;
  --dw-surface: #ffffff;
  --dw-surface-soft: #eef2e3;
  --dw-text: #25311f;
  --dw-muted: #4f5e47;
  --dw-border: #dfe7d3;
  --dw-control-border: #7c8a72;
  --dw-interactive: #48723f;
  --dw-on-interactive: #ffffff;
  --dw-selected: #e6eedc;
  --dw-sage: #8fae7c;
  --dw-sand: var(--dw-surface-soft);
  --dw-gold: #7fa36a;
  --dw-success: #2f6a3c;
  --dw-warning: #7a5418;
  --dw-danger: #a33435;
  --dw-focus: #48723f;
  --dw-scripture: #ffffff;
  --dw-hl-yellow: #fbefb2; --dw-hl-green: #d9ecc9; --dw-hl-blue: #d4e6f6; --dw-hl-pink: #f7d9e3;
  --dw-shadow: 0 2px 12px #25311f08;
  --dw-shadow-raised: 0 12px 32px #25311f12;
  --dw-radius: 16px;
  --dw-radius-small: 10px;
  --dw-space: clamp(20px, 2.4vw, 28px);
  --dw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --dw-sidebar: 240px;
  --mobile-nav-height: max(74px, 5rem);
  --blue: var(--dw-surface-soft);
  --clay: var(--dw-surface-soft);
  --rose: var(--dw-surface-soft);
  --lavender: var(--dw-surface-soft);
}
html[data-appearance="dark"] {
  --dw-bg: #1c231d;
  --dw-surface: #253026;
  --dw-surface-soft: #2e3a2f;
  --dw-text: #f1f4ec;
  --dw-muted: #c3cfbb;
  --dw-border: #475647;
  --dw-control-border: #8a9b80;
  --dw-interactive: #a9cf96;
  --dw-on-interactive: #1a2a16;
  --dw-selected: #34472f;
  --dw-sage: #9dbb8c;
  --dw-sand: var(--dw-surface-soft);
  --dw-gold: var(--dw-interactive);
  --dw-success: #a7d9b0;
  --dw-warning: #edc582;
  --dw-danger: #ffb4b4;
  --dw-focus: #b7d8a6;
  --dw-scripture: #253026;
  --dw-hl-yellow: #5b4e1e; --dw-hl-green: #2f5530; --dw-hl-blue: #24465e; --dw-hl-pink: #5a2e40;
  --dw-shadow: 0 2px 12px #0000000a;
  --dw-shadow-raised: 0 12px 32px #00000024;
  --blue: var(--dw-surface-soft);
  --clay: var(--dw-surface-soft);
  --rose: var(--dw-surface-soft);
  --lavender: var(--dw-surface-soft);
}
@media (prefers-color-scheme: dark) {
  html:not([data-appearance="light"]):not([data-appearance="dark"]) {
    --dw-bg: #1c231d; --dw-surface: #253026; --dw-surface-soft: #2e3a2f;
    --dw-text: #f1f4ec; --dw-muted: #c3cfbb; --dw-border: #475647; --dw-control-border: #8a9b80;
    --dw-interactive: #a9cf96; --dw-on-interactive: #1a2a16;
    --dw-selected: #34472f; --dw-sage: #9dbb8c; --dw-sand: var(--dw-surface-soft);
    --dw-gold: var(--dw-interactive); --dw-success: #a7d9b0; --dw-warning: #edc582;
    --dw-danger: #ffb4b4; --dw-focus: #b7d8a6; --dw-scripture: #253026;
    --dw-hl-yellow: #5b4e1e; --dw-hl-green: #2f5530; --dw-hl-blue: #24465e; --dw-hl-pink: #5a2e40;
    --dw-shadow: 0 2px 12px #0000000a; --dw-shadow-raised: 0 12px 32px #00000024;
    --blue: var(--dw-surface-soft); --clay: var(--dw-surface-soft); --rose: var(--dw-surface-soft); --lavender: var(--dw-surface-soft);
  }
}

/* A quiet shell and a clear hierarchy; the book/cross identity stays intact. */
body { font-family: var(--dw-font); line-height: 1.65; background: var(--dw-bg); }
h1, h2, h3, .question, .stats b, .platform-metrics b, .platform-metrics strong {
  font-family: var(--dw-font); font-weight: 650; letter-spacing: -.025em;
}
h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; margin: 10px 0 20px; }
h2 { font-size: clamp(1.35rem, 2.1vw, 1.75rem); line-height: 1.3; }
h3 { font-size: 1.2rem; line-height: 1.4; }
main { max-width: 1260px; padding: 38px clamp(24px, 5vw, 68px) 64px; }
main p, main li { text-wrap: pretty; }
main p { margin-bottom: 1.15em; max-inline-size: 72ch; }
.lead, .platform-lead { color: var(--dw-muted); font-size: 1.0625rem; line-height: 1.75; }
.eyebrow, .platform-kicker { font-size: .6875rem; letter-spacing: .1em; font-weight: 700; }
.small, .status, .platform-meta { font-size: .9375rem; line-height: 1.65; }
.tag { border: 1px solid var(--dw-border); border-radius: 6px; background: var(--dw-surface-soft); letter-spacing: .08em; font-size: .75rem; padding: 4px 8px; }
aside { width: var(--dw-sidebar); padding: 30px 18px; background: var(--dw-surface); color: var(--dw-text); border-right: 1px solid var(--dw-border); }
.shell { margin-left: var(--dw-sidebar); }
.brand { font-family: var(--dw-font); font-size: 1.5rem; font-weight: 700; letter-spacing: -.035em; color: var(--dw-text); grid-template-columns: 36px minmax(0, 1fr); gap: 0 10px; }
.brandmark { width: 36px; height: 36px; padding: 0; border-radius: 10px; background: #183e32; }
.brand-sub { color: var(--dw-muted); font-size: 0.5rem; font-weight: 500; letter-spacing: .12em; }
#nav { margin-top: 32px; gap: 4px; }
#nav a { border: 1px solid transparent; border-radius: 10px; color: var(--dw-muted); min-height: 46px; font-size: .875rem; padding: 10px 13px; }
#nav a.active, #nav a.active:hover { background: transparent; color: var(--dw-interactive); border-color: transparent; box-shadow: inset 3px 0 var(--dw-interactive); font-weight: 700; }
#nav a:hover { color: var(--dw-text); background: var(--dw-surface-soft); border-color: transparent; }
#nav .nav-section-label { color: var(--dw-muted); font-size: .625rem; padding: 20px 13px 6px; letter-spacing: .08em; }
.aside-note { font: 500 1rem/1.65 var(--dw-font); color: var(--dw-text); padding: 24px 12px 4px; }
.aside-note p { color: var(--dw-muted); font-size: .75rem; margin-top: 14px; }
header { height: 64px; min-height: 0; padding-inline: clamp(24px, 5vw, 68px); background: var(--dw-bg); border-bottom: 1px solid var(--dw-border); }
footer { border-color: var(--dw-border); font-size: .75rem; }

/* One primary action, quiet secondary controls, and useful native focus. */
button, .button { font-family: var(--dw-font); font-size: .875rem; font-weight: 650; border-radius: 10px; border-color: var(--dw-control-border); min-height: 44px; padding: 10px 16px; box-shadow: none; transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease; }
button:hover, .button:hover { background: var(--dw-surface-soft); border-color: var(--dw-interactive); }
button:active, .button:active { box-shadow: inset 0 2px 3px #0000000c; }
.primary, .mode button.selected { color: var(--dw-on-interactive); background: var(--dw-interactive); border-color: var(--dw-interactive); }
.primary:hover, .mode button.selected:hover { color: var(--dw-on-interactive); background: var(--dw-interactive); filter: brightness(.96); }
.text-link { font-size: .875rem; text-underline-offset: 4px; }
.actions { gap: 10px; margin-top: 20px; }
:focus-visible { outline: 3px solid var(--dw-focus); outline-offset: 3px; }
.skip:focus { top: 10px; }
button:disabled { opacity: 1; color: var(--dw-muted); background: var(--dw-surface-soft); border-color: var(--dw-control-border); cursor: not-allowed; }
.notice { padding: 14px 16px; border: 1px solid var(--dw-border); border-left: 3px solid var(--dw-sage); border-radius: 10px; background: var(--dw-surface-soft); color: var(--dw-text); font-size: .875rem; }
#toast { border-radius: 12px; font-size: .875rem; box-shadow: var(--dw-shadow-raised); }
/* Keep the footer below the first viewport while short pages finish loading. */
#main { min-height: 100vh; min-height: 100dvh; }
.shell-back { display: none; }

/* Surfaces group choices and actions; reading prose remains open. */
.panel, .card, .theme-card, .platform-card, .platform-member, .platform-empty,
.platform-lesson-tools, .platform-completion { border-radius: var(--dw-radius); border-color: var(--dw-border); box-shadow: var(--dw-shadow); }
.panel { padding: 26px; margin: 24px 0; }
.card-body, .platform-card { padding: 24px; }
.card h3, .card .card-title, .platform-card h2, .platform-card h3 { font-size: 1.25rem; }
.card .card-title { line-height: 1.4; margin: 0 0 12px; }
.card p { font-size: 1rem; line-height: 1.7; }
.card-top { height: 88px; padding: 18px 24px; border-bottom: 0; }
.card-top span:first-child { font: 600 1.75rem var(--dw-font); }
.section-head, .platform-section-head { gap: 12px; }
.platform-header { margin-bottom: 24px; }
.platform-header h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.platform-section { margin-block: 32px; }
.platform-section-head h2 { font-size: 1.45rem; }
.platform-grid, .grid, .theme-grid { gap: 16px; }
.platform-hero { grid-template-columns: minmax(0, 1fr); background: var(--dw-surface); color: var(--dw-text); border: 1px solid var(--dw-border); border-top: 3px solid var(--dw-interactive); border-radius: 16px; padding: clamp(24px, 3.5vw, 32px); box-shadow: var(--dw-shadow); }
.platform-hero h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); max-width: 29ch; }
.platform-hero .platform-kicker, .platform-hero .platform-meta, .platform-hero .small { color: var(--dw-muted); }
.platform-hero .primary { background: var(--dw-interactive); border-color: var(--dw-interactive); color: var(--dw-on-interactive); }
.platform-hero .primary:hover { background: var(--dw-interactive); color: var(--dw-on-interactive); }
.platform-hero-art { display: none; }
.platform-hero-art::before { width: 68px; height: 170px; left: 14px; }
.platform-hero-art::after { top: 5px; right: 24px; box-shadow: -48px 131px 0 2px #a6bca8, -18px 65px 0 -1px #a6bca8; }
.platform-hero .platform-progress { height: 7px; background: var(--dw-border); border: 0; }
.platform-hero .platform-progress::-webkit-progress-bar { background: var(--dw-border); }
.platform-hero .platform-progress::-webkit-progress-value { background: var(--dw-interactive); }
.platform-hero .platform-progress::-moz-progress-bar { background: var(--dw-interactive); }
.platform-metrics { gap: 12px; }
.platform-metrics > article, .platform-metrics > div { background: var(--dw-surface-soft); border: 0; border-radius: 12px; padding: 20px 16px; }
.platform-metrics b, .platform-metrics strong, .stats b { font-size: 1.9rem; line-height: 1.2; letter-spacing: -.035em; }
.platform-milestones li { border: 0; font-size: .75rem; }
.platform-empty { border-style: solid; background: var(--dw-surface-soft); box-shadow: none; }
.platform-empty h2 { font-size: 1.5rem; }
.platform-choice { border-radius: 12px; min-height: 64px; padding: 16px; }
.platform-choice.selected, .platform-choice[aria-pressed="true"], .platform-choice:has(input:checked), .option:has(input:checked) { box-shadow: inset 0 0 0 1px var(--dw-interactive); }
.platform-timeline > li { padding-block: 18px; }
.platform-timeline a { font-size: 1rem; display: inline-flex; align-items: center; min-height: 44px; }
.platform-tabs, .platform-guided-bar { gap: 7px; }
.platform-tabs button, .platform-tabs a, .platform-guided-bar a, .platform-guided-bar button { border-radius: 9px; font-size: .8125rem; }
.platform-member { background: var(--dw-surface-soft); box-shadow: none; }

/* Keep full Scripture and teaching in a comfortable continuous reading column. */
.session, .depth-session, .feasts-study, .bible-reader, .year-bible-reader { max-width: 740px; margin-inline: auto; }
.session > h1, .depth-session > h1, .bible-reader > h1 { max-width: none; font-size: clamp(1.7rem, 3vw, 2.25rem); }
.session-block { padding: 30px 0; border-bottom: 1px solid var(--dw-border); }
.session-block h2 { font-size: 1.375rem; margin-bottom: 20px; letter-spacing: -.02em; }
.session-block h3 { font-size: 1.125rem; }
.session-block p, .session-block li, .depth-session .session-block p { font-size: 1.0625rem; line-height: 1.85; max-width: 68ch; }
.session-block p { margin-bottom: 1.25em; }
.session-block p:last-child { margin-bottom: 0; }
.session-block li { margin-bottom: 1.1em; }
main.reader-size-compact .session-block p, main.reader-size-compact .session-block li { font-size: 1rem; }
main.reader-size-large .session-block p, main.reader-size-large .session-block li { font-size: 1.25rem; }
.session > .panel:has(> summary), .depth-session > .panel:has(> summary) { padding: 12px 0; background: transparent; border: 0; border-bottom: 1px solid var(--dw-border); border-radius: 0; box-shadow: none; }
details > summary { font-size: .9375rem; line-height: 1.6; padding-block: 10px; }
.session details > p, .depth-session details > p { font-size: 1rem; line-height: 1.8; }
.translation-controls { padding: 12px 14px; margin-block: 16px; border: 1px solid var(--dw-border); border-radius: 12px; background: var(--dw-surface); }
.translation-controls label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; max-width: none; font-size: .8125rem; }
.translation-controls label > span { margin: 0; }
.translation-controls select { width: auto; flex: 1 1 220px; min-width: 0; max-width: 100%; font-size: .875rem; min-height: 44px; padding: 8px 10px; border-color: var(--dw-control-border); border-radius: 8px; }
.translation-controls .small, .translation-controls p { font-size: .875rem; margin-top: 8px; line-height: 1.6; }
.mode { display: inline-flex; gap: 4px; padding: 4px; margin: 12px 0 16px; background: var(--dw-surface-soft); border-radius: 11px; }
.mode button { min-width: 90px; min-height: 44px; border: 0; padding: 8px 14px; background: transparent; }
.mode button.primary, .mode button.selected, .mode button[aria-pressed="true"] { color: var(--dw-on-interactive); background: var(--dw-interactive); border-color: var(--dw-interactive); box-shadow: 0 2px 5px #153e2d15; }
.lesson-navigation { background: transparent; border: 0; border-bottom: 1px solid var(--dw-border); border-radius: 0; padding: 8px 0 16px; gap: 6px; }
.lesson-navigation a { background: var(--dw-surface-soft); font-size: .8125rem; padding: 10px 12px; border-radius: 8px; }
.scripture { background: var(--dw-scripture); border: 1px solid var(--dw-border); border-radius: 12px; padding: 24px; margin: 18px 0 24px; }
.scripture-heading { gap: 8px 14px; margin-bottom: 24px; }
.scripture-heading h2, .scripture-heading h3, .year-bible-reader .scripture-heading h2 { font: 650 1.25rem/1.4 var(--dw-font); letter-spacing: -.015em; }
.scripture .verse { font-family: Georgia, "Times New Roman", serif; line-height: 1.9; }
.scripture .verse sup { font-family: var(--dw-font); font-size: .625rem; }
.scripture-source { font-size: .875rem; }
.scripture .verse-bookmark { background: transparent; color: var(--dw-muted); }
.scripture .verse:has(> .verse-bookmark) { position: relative; padding-inline-end: 52px; min-block-size: 44px; }
.scripture .verse > .verse-bookmark { position: absolute; inset-inline-end: 0; inset-block-start: 0; margin: 0; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; box-shadow: none; }
.scripture .verse-bookmark[aria-pressed="true"] { background: var(--dw-selected); color: var(--dw-interactive); }
/* Verse highlights, the selection bar for highlighting several verses, and saved chapters. */
p.verse[data-verse-key] { cursor: pointer; border-radius: 8px; }
p.verse[data-verse-key]:focus-visible { outline: 3px solid var(--dw-focus); outline-offset: 2px; }
p.verse.verse-hl { padding-block: 2px; padding-inline-start: 6px; margin-inline-start: -6px; }
.verse-hl-yellow { background: var(--dw-hl-yellow); }
.verse-hl-green { background: var(--dw-hl-green); }
.verse-hl-blue { background: var(--dw-hl-blue); }
.verse-hl-pink { background: var(--dw-hl-pink); }
p.verse.verse-selected { outline: 2px dashed var(--dw-interactive); outline-offset: 2px; }
.verse-mark-bar { position: fixed; left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 25; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; background: var(--dw-surface); border: 1px solid var(--dw-control-border); border-radius: 14px; box-shadow: var(--dw-shadow-raised); }
@media (min-width: 901px) { .verse-mark-bar { left: calc(50% + var(--dw-sidebar) / 2); right: auto; bottom: 24px; width: min(640px, calc(100% - var(--dw-sidebar) - 32px)); transform: translateX(-50%); } }
.verse-mark-count { margin: 0; font-weight: 600; }
.verse-mark-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.verse-swatch { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; border: 2px solid var(--dw-control-border); box-shadow: none; }
.verse-swatch[aria-pressed="true"] { border-color: var(--dw-interactive); box-shadow: 0 0 0 2px var(--dw-interactive); }
.verse-tools-clear { min-height: 44px; margin: 0; }
.chapter-marks { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 4px 0 16px; }
.chapter-save[aria-pressed="true"] { background: var(--dw-selected); color: var(--dw-interactive); }
.saved-group { margin: 24px 0; }
.saved-chapters { display: flex; flex-wrap: wrap; gap: 10px; }
.saved-highlight-text { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; }
.external-reading-links .button { font-size: .8125rem; }
.reader-controls { gap: 7px; margin-block: 20px; }
.reader-controls .small { flex-basis: 100%; }
.reader-chapter-end { background: var(--dw-surface-soft); box-shadow: none; }
.year-range-row h2 { font-size: 1.2rem; }

/* Familiar fields, visible saving/errors, and uncluttered private writing. */
label, .form-label { color: var(--dw-text); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--dw-interactive); }
input:not([type="radio"]):not([type="checkbox"]), select, textarea, .session textarea { border: 1px solid var(--dw-control-border); border-radius: 10px; background: var(--dw-surface); color: var(--dw-text); }
textarea, .session textarea { padding: 16px; font-size: 1rem; line-height: 1.8; }
.session textarea, #journal-text { min-height: 180px; }
input:not([type="radio"]):not([type="checkbox"]), select { min-height: 46px; }
.option { background: var(--dw-surface); border-color: var(--dw-border); font-size: .9375rem; border-radius: 10px; padding: 15px; }
.theme-card { padding: 18px 0; border: 0; border-bottom: 1px solid var(--dw-border); border-radius: 0; background: transparent; box-shadow: none; }
.theme-card label { align-items: center; margin: 0; }
.theme-card input { width: 22px; height: 22px; flex: 0 0 22px; accent-color: var(--dw-interactive); }
.theme-card p { margin: 6px 0 4px 34px; color: var(--dw-muted); max-width: 66ch; }
.theme-card > a { margin-left: 34px; padding: 8px 0; min-height: 44px; font-size: .9375rem; }
.theme-card:last-child { border-bottom: 0; }
.theme-grid { display: block; }
.theme-category { border-bottom: 1px solid var(--dw-border); }
.theme-category > summary { padding: 18px 2px; color: var(--dw-text); font-weight: 650; }
.theme-category > summary span { color: var(--dw-muted); font-weight: 400; margin-left: 8px; font-size: .9375rem; }
.focus-themes { border: 0; padding: 0; margin-top: 28px; }
.focus-themes legend { color: var(--dw-text); font-size: 1.2rem; font-weight: 650; padding: 0; }
.theme-categories { margin-top: 12px; }
.theme-categories section { margin: 0; }
.theme-browser, .theme-results { padding: 0; border: 0; background: transparent; box-shadow: none; }
.theme-browser > .selected-chips { margin-top: 16px; }
.theme-results { margin-top: 36px; }
.theme-browser + .theme-results h2 { font-size: 1.4rem; }
.library-header { max-width: 700px; }
.library-header .actions { margin-bottom: 24px; }
.reader-outline { margin: 12px 0; border-block: 1px solid var(--dw-border); }
.reader-outline > summary { color: var(--dw-interactive); font-weight: 650; min-height: 44px; }
.reader-outline .platform-guided-bar, .reader-outline .lesson-navigation { margin: 0 0 12px; border: 0; }
.reading-preferences { margin: 16px 0; border: 1px solid var(--dw-border); border-radius: 10px; padding: 0 14px; background: var(--dw-surface); }
.reading-preferences > summary { color: var(--dw-text); font-size: .9375rem; min-height: 44px; }
.reading-preferences .translation-controls { padding: 8px 0; border: 0; margin: 0; }
.platform-journey-list { display: block; }
.platform-journey-list > .platform-card { border: 0; border-bottom: 1px solid var(--dw-border); border-radius: 0; box-shadow: none; padding: 22px 0; background: transparent; }
.platform-discovery { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 0 28px; }
.platform-discovery > .platform-card { background: transparent; border: 0; border-bottom: 1px solid var(--dw-border); border-radius: 0; box-shadow: none; padding: 22px 0; }
.platform-discovery .actions { margin-top: 12px; }
progress, .platform-progress { accent-color: var(--dw-interactive); width: 100%; height: 7px; border: 0; border-radius: 5px; overflow: hidden; background: var(--dw-border); }
progress::-webkit-progress-bar { background: var(--dw-border); }
progress::-webkit-progress-value { background: var(--dw-interactive); }
progress::-moz-progress-bar { background: var(--dw-interactive); }
fieldset, legend { color: var(--dw-text); }
.hero { background: var(--dw-surface); border-color: var(--dw-border); }
.platform-hero h2, .platform-hero h3, .platform-hero p { color: var(--dw-text); }
.platform-hero .button:not(.primary) { color: var(--dw-interactive); border-color: var(--dw-control-border); }
.platform-hero .platform-progress { max-width: none; }
.platform-prepare { padding: 0; border: 0; background: transparent; box-shadow: none; }
.platform-prepare > p:not(.platform-kicker) { font-size: 1rem; }
.bible-continuation .small, .bible-year-continue .small { color: var(--dw-muted); }
.platform-lesson-tools { background: var(--dw-surface); }
.selected-chips button { background: var(--dw-selected); color: var(--dw-interactive); }
.platform-status, .platform-kicker { color: var(--dw-muted); }
.theme-card:has(input:checked) { background: var(--dw-selected); border-width: 0 0 1px; border-radius: 8px; box-shadow: none; padding-inline: 12px; }
.modal { background: #11151c99; z-index: 50; }
.modal .panel { width: min(100%, 520px); border-radius: 18px; box-shadow: 0 20px 70px #0000002b; }
.modal h2 { font-size: 1.4rem; }
.modal .actions { gap: 10px; }
[role="status"] { line-height: 1.65; }
.usage-calendar .day-dot { border-color: var(--dw-border); }
.feasts-month { border-spacing: 4px; }
.feasts-day { border-color: transparent; border-radius: 9px; background: var(--dw-surface-soft); }
.feasts-day[aria-pressed="true"] { background: var(--dw-interactive); color: var(--dw-on-interactive); }
.feasts-event { box-shadow: none; }
.feasts-month-nav h2 { font-size: 1.3rem; }
.promises .platform-grid { align-items: stretch; }
.promises .platform-card .actions { padding-top: 16px; }
.promises > label { display: block; margin-top: 20px; margin-bottom: 6px; font-weight: 650; }
.promises .platform-routine > label { display: grid; gap: 6px; }
.promises .scripture .verse { position: relative; padding-inline-end: 52px; min-block-size: 44px; }
.promises .scripture .verse .verse-bookmark { position: absolute; inset-inline-end: 0; inset-block-start: 0; margin: 0; }

/* Simple original line icons keep the existing navigation text accessible. */
@supports (mask-image: url("data:image/svg+xml,%3Csvg/%3E")) {
  .mobile-navigation a > span:first-child { font-size: 0; background: currentColor; mask-size: contain; mask-position: center; mask-repeat: no-repeat; }
  .mobile-navigation [data-destination="today"] > span:first-child { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7M5 9v12h14V9M9 21v-8h6v8'/%3E%3C/svg%3E"); }
  .mobile-navigation [data-destination="my-journey"] > span:first-child { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5c-3-2-6-2-9-1v15c3-1 6-1 9 1 3-2 6-2 9-1V4c-3-1-6-1-9 1v15'/%3E%3C/svg%3E"); }
  .mobile-navigation [data-destination="explore"] > span:first-child { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.4'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.4'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.4'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.4'/%3E%3C/svg%3E"); }
  .mobile-navigation [data-destination="journal"] > span:first-child { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 4H5v17h14V10M3 8h4M3 13h4M3 18h4m6-8 7-7 2 2-7 7-3 1z'/%3E%3C/svg%3E"); }
  .mobile-navigation [data-destination="profile"] > span:first-child { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21v-2c0-4 16-4 16 0v2'/%3E%3C/svg%3E"); }
}

@media (max-width: 1100px) and (min-width: 901px) {
  :root { --dw-sidebar: 214px; }
  aside { padding-inline: 14px; }
  .brand { font-size: 1.375rem; }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  html { scroll-padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 24px); }
  main :is(button, .button, input, select, textarea, summary) { scroll-margin-block: 24px calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 24px); }
  aside { width: auto; position: static; border-right: 0; border-bottom: 1px solid var(--dw-border); padding: max(14px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 14px max(18px, env(safe-area-inset-left)); gap: 10px; }
  .shell { margin-left: 0; }
  .brand { font-size: 1.4375rem; grid-template-columns: 34px minmax(0, 1fr); }
  .brandmark { width: 34px; height: 34px; }
  .brand-sub { display: block; font-size: 0.4375rem; }
  .navigation-toggle { min-height: 44px; min-width: 62px; border-color: var(--dw-control-border); background: var(--dw-surface); color: var(--dw-text); font-size: .8125rem; }
  .navigation-toggle:hover { color: var(--dw-text); background: var(--dw-surface-soft); }
  .navigation-open aside #nav { margin-top: 4px; }
  header { padding: 8px max(18px, env(safe-area-inset-right)) 8px max(18px, env(safe-area-inset-left)); height: auto; min-height: 40px; font-size: .6875rem; gap: 8px; flex-wrap: wrap; }
  header > span:first-child { flex: 1 1 170px; }
  header .tag { font-size: .5625rem; padding: 3px 6px; flex-shrink: 0; }
  main { padding: 26px max(20px, env(safe-area-inset-right)) 40px max(20px, env(safe-area-inset-left)); }
  .mobile-navigation { grid-template-columns: repeat(5, minmax(max-content, 1fr)); overflow-x: auto; overscroll-behavior-inline: contain; padding: 5px max(6px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); background: var(--dw-surface); border-top: 1px solid var(--dw-border); box-shadow: 0 -4px 20px #162b2006; }
  .mobile-navigation a, .mobile-navigation button { min-height: 62px; padding: 7px .5rem; gap: 5px; color: var(--dw-muted); border-radius: 10px; }
  .mobile-navigation .nav-label { font-size: .6875rem; font-weight: 650; letter-spacing: 0; overflow-wrap: normal; white-space: nowrap; }
  .mobile-navigation [aria-current="page"], .mobile-navigation [aria-expanded="true"] { color: var(--dw-interactive); background: transparent; box-shadow: inset 0 2px var(--dw-interactive); }
  .mobile-navigation a > span:first-child { display: block; width: 21px; height: 21px; line-height: 21px; }
  footer { padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 28px); }
  #toast { bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 12px); }
  body:has(textarea:focus, input:focus, select:focus) .mobile-navigation { display: none; }
  .platform-header h1 { font-size: 1.9rem; }
  .platform-hero { padding: 25px; }
  .session-block { padding: 28px 0; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.4rem; }
  .session > h1, .depth-session > h1, .bible-reader > h1 { font-size: 1.8rem; line-height: 1.25; }
  .platform-header h1 { font-size: 1.85rem; }
  .platform-lead, .lead { font-size: 1rem; }
  .platform-hero { padding: 24px 22px; border-radius: 18px; }
  .platform-hero h2 { font-size: 1.65rem; line-height: 1.3; margin-bottom: 14px; }
  .platform-hero-art { display: none; }
  .platform-hero .actions > * { flex-basis: 130px; }
  .platform-card, .panel { padding: 22px 20px; }
  .platform-grid, .platform-routine, .grid, .split { grid-template-columns: 1fr; }
  .platform-metrics b, .platform-metrics strong { font-size: 1.65rem; }
  .platform-metrics > article, .platform-metrics > div { padding: 18px 14px; }
  .platform-section { margin-block: 30px; }
  .session-block p, .session-block li, .depth-session .session-block p { font-size: 1.0625rem; }
  .session-block h2 { font-size: 1.3rem; }
  .scripture { padding: 22px 18px; }
  .scripture .verse { font-size: 1.1875rem; }
  .scripture-heading .tag { margin-top: 0; }
  .platform-guided-bar a, .platform-guided-bar button { flex: 1 1 28%; font-size: .75rem; padding: 9px 10px; }
  .platform-tabs { gap: 6px; }
  .platform-tabs button, .platform-tabs a { font-size: .75rem; padding: 9px 11px; }
  .theme-reflection-questions { padding-left: 1.3rem; }
  .modal { padding-inline: 16px; }
  .modal .panel { padding: 22px; }
  .feasts-month { border-spacing: 2px; }
  .feasts-day { min-height: 54px; font-size: .875rem; }
}
@media (max-width: 360px) {
  main { padding-inline: max(16px, env(safe-area-inset-left)); }
  .brand { font-size: 1.3125rem; }
  .brand-sub { letter-spacing: .08em; }
  .panel, .platform-card { padding: 20px 16px; }
  .platform-hero { padding: 22px 18px; }
  .platform-hero .actions > * { flex-basis: 100%; }
  .translation-controls { padding: 11px; }
  .translation-controls label { display: block; }
  .translation-controls label > span { margin-bottom: 6px; }
  .translation-controls select { width: 100%; }
  .platform-guided-bar a, .platform-guided-bar button { flex-basis: 42%; }
  .mobile-navigation .nav-label { font-size: .625rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .primary, .mode button.selected, .platform-hero, .platform-card, .panel,
  .mobile-navigation [aria-current="page"], .platform-choice.selected { border: 1px solid CanvasText; }
  .brandmark { forced-color-adjust: none; }
}

/* Shared shell refresh: current palette and reading-size choices remain authoritative. */
#main:focus{outline:none;box-shadow:none}
#navigation-panel{flex:1 1 auto;min-height:0;overflow-y:auto}
aside>.brand,aside>.aside-note{flex-shrink:0}
.shell-nav-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 22px;width:22px;height:22px}
.shell-nav-icon svg{display:block;width:22px;height:22px}
#nav .shell-primary-navigation,#nav .shell-secondary-navigation{display:grid;gap:5px}
#nav a{min-height:44px;display:flex;gap:12px;align-items:center}
#nav .shell-primary-navigation a[aria-current="page"]{color:var(--dw-interactive);background:var(--dw-selected);font-weight:650}
#nav .shell-more{margin-top:16px;border:0;border-top:1px solid var(--dw-border);padding:10px 0 0}
#nav .shell-more>summary{min-height:44px;padding:10px 14px;font:600 0.875rem/1.4 var(--dw-font,system-ui,sans-serif);color:var(--dw-muted);cursor:pointer}
#nav .shell-more>summary::marker{color:var(--dw-muted)}
#nav .shell-secondary-navigation a{font-size:0.875rem}
.shell-menu-heading,#navigation-backdrop,.shell-header-brand,#shell-onboarding-exit{display:none}
body{font-size:1rem}
.eyebrow,.platform-kicker,.nav-section-label{font-size:0.75rem;line-height:1.5}
.brand-sub{font-size:0.75rem;letter-spacing:.08em;line-height:1.4}
footer{font-size:0.75rem;line-height:1.65}
.scripture .verse sup,.session .verse sup,.verse sup,.verse-number{font-size:0.75rem}
.platform-metrics:has(>:nth-child(5):last-child){grid-template-columns:repeat(5,minmax(0,1fr))}
.platform-metrics>article,.platform-metrics>div{min-width:0}
.platform-metrics p,.platform-metrics .small{font-size:0.8125rem;overflow-wrap:normal}
.platform-progress,.platform-onboarding>progress{accent-color:var(--dw-interactive)}
.platform-progress::-webkit-progress-value,.platform-onboarding>progress::-webkit-progress-value{background:var(--dw-interactive)}
.platform-progress::-moz-progress-bar,.platform-onboarding>progress::-moz-progress-bar{background:var(--dw-interactive)}
.platform-timeline .is-complete:before{background:var(--dw-interactive);border-color:var(--dw-interactive)}
.platform-tertiary{display:inline-flex;align-items:center;min-height:44px;padding:6px 4px;color:var(--dw-interactive);text-underline-offset:4px;text-decoration:underline;font-weight:550}
.platform-discovery>.platform-empty,.platform-discovery>[data-platform-empty]{grid-column:1/-1}
.platform-appearance-choices{display:inline-flex;gap:0;padding:4px;border:1px solid var(--dw-control-border);border-radius:10px;background:var(--dw-surface)}
.platform-appearance-choices button{border:0;border-radius:6px;min-width:88px;margin:0}
.platform-appearance-choices button[aria-pressed=true]{background:var(--dw-interactive);color:var(--dw-on-interactive,#fff)}
.platform-onboarding{max-width:860px;margin-inline:auto}
.platform-onboarding-body{min-width:0}
.platform-faith-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:12px}
.platform-faith-choices .platform-choice{min-width:0;flex-direction:column;align-items:flex-start;gap:10px;padding:16px}
.platform-faith-choices .platform-choice span{min-width:0}
.platform-onboarding-footer{position:static;margin-top:28px;padding:18px 0 14px;border-top:1px solid var(--dw-border);background:var(--dw-bg)}
.platform-onboarding-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.platform-onboarding-actions .primary{margin-left:auto}
[data-platform-goal-count]{font-size:0.875rem;font-weight:600;color:var(--dw-text)}
.platform-onboarding-footer .small{font-size:0.75rem;margin-bottom:0}
body.shell-onboarding{display:block}
body.shell-onboarding>aside,body.shell-onboarding>.mobile-navigation{display:none}
body.shell-onboarding>.shell{margin-left:0}
body.shell-onboarding .shell>header{max-width:none;min-height:72px;display:flex;justify-content:space-between;gap:16px;padding:12px clamp(20px,5vw,64px);border-bottom:1px solid var(--dw-border)}
body.shell-onboarding .shell>header>span{display:none}
body.shell-onboarding .shell-header-brand{display:inline-flex;align-items:center;gap:10px;color:var(--dw-text);text-decoration:none;font-size:1.25rem;font-weight:650}
.shell-header-brand img{width:32px;height:32px}
body.shell-onboarding #shell-onboarding-exit:not([hidden]){display:inline-flex;min-height:44px}
body.shell-onboarding #main{max-width:960px;margin-inline:auto;padding-top:28px}
.shell-loading{max-width:740px;margin:32px auto;color:var(--dw-text)}
.shell-loading-brand{display:flex;align-items:center;gap:12px;font-size:1.25rem;font-weight:600}
.shell-loading-brand img{width:36px;height:36px}
.shell-loading-bars{display:grid;gap:14px;margin-top:28px}
.shell-loading-bars span{display:block;height:16px;border-radius:6px;background:var(--dw-surface-soft)}
.shell-loading-bars span:nth-child(2){width:82%}
.shell-loading-bars span:nth-child(3){width:61%}
@media(max-width:900px){
 #navigation-panel{display:none}
 body:not(.shell-onboarding)>aside{position:sticky;top:0;z-index:30;min-height:64px;padding:max(10px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) 10px max(18px,env(safe-area-inset-left));background:var(--dw-bg);border-bottom:1px solid var(--dw-border)}
 .brand{max-width:calc(100vw - 110px)}
 .brand-sub{display:none}
 .brandmark{width:32px;height:32px;grid-row:1}
 .brandmark img{width:32px;height:32px}
 .brand{font-size:1.25rem}
 .shell>header{height:auto;min-height:32px;padding:6px max(18px,env(safe-area-inset-right)) 6px max(18px,env(safe-area-inset-left))}
 .shell>header>span{font-size:0.75rem;line-height:1.4}
 body.shell-secondary-screen:not(.shell-onboarding) .shell>header{display:none}
 /* Below a tab, Back takes the logo's place in the top bar. */
 body.shell-secondary-screen:not(.shell-onboarding)>aside>.brand{display:none}
 body.shell-secondary-screen:not(.shell-onboarding) .shell-back{display:inline-flex;align-items:center;gap:2px;justify-self:start;min-height:44px;margin-left:-8px;padding:6px 14px 6px 6px;border:0;background:transparent;color:var(--dw-interactive);font-size:1.0625rem;font-weight:600}
 .shell-back span{font-size:1.875rem;line-height:1;margin-top:-4px}
 .shell-back:hover{background:transparent}
 #main{padding:24px max(20px,env(safe-area-inset-right)) 40px max(20px,env(safe-area-inset-left))}
 #main [id]{scroll-margin-top:88px}
 body.shell-onboarding #main :is(input,select,button,a){scroll-margin-block:88px 160px}
 .navigation-toggle{min-width:64px;min-height:44px;font-size:0.875rem}
 body.navigation-open{overflow:hidden}
 body.navigation-open #navigation-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:69;background:rgb(12 20 32/.48)}
 body.navigation-open #navigation-panel{display:block;position:fixed;top:0;right:0;bottom:0;left:auto;z-index:70;width:min(390px,100%);max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:max(18px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(32px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));background:var(--dw-surface);box-shadow:-12px 0 36px rgb(12 20 32/.16)}
 body.navigation-open #navigation-panel #nav{display:block;position:static;inset:auto;width:auto;max-height:none;overflow:visible;padding:0;margin:0;background:transparent;box-shadow:none}
 body.navigation-open #nav .shell-primary-navigation{display:none}
 body.navigation-open #nav .shell-more{margin:0;padding:0;border:0}
 body.navigation-open #nav .shell-more>summary{display:none}
 body.navigation-open #nav .shell-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:16px;margin-bottom:10px;border-bottom:1px solid var(--dw-border)}
 .shell-menu-heading h2{font-size:1.375rem;margin:0}
 .shell-menu-heading button{min-width:64px;min-height:44px}
 #nav .shell-secondary-navigation a{white-space:normal;font-size:1rem}
 .mobile-navigation{grid-template-columns:repeat(5,minmax(max-content,1fr));overflow-x:auto;gap:0}
 .mobile-navigation a{min-width:0;min-height:60px;padding:7px 10px;gap:4px}
 .mobile-navigation .nav-label{font-size:0.75rem;white-space:nowrap;line-height:1.3}
 .mobile-navigation a>span.shell-nav-icon{width:22px;height:22px;flex-basis:22px;background:none;mask:none;-webkit-mask:none}
 .mobile-navigation .shell-nav-icon svg{display:block;width:22px;height:22px}
 .mobile-navigation a[aria-current="page"]{color:var(--dw-interactive)}
 .platform-faith-choices{grid-template-columns:repeat(6,minmax(0,1fr))}
 .platform-faith-choices .platform-choice{grid-column:span 2}
 .platform-faith-choices .platform-choice:nth-of-type(4){grid-column:2/span 2}
 .platform-faith-choices .platform-choice:nth-of-type(5){grid-column:4/span 2}
 body.shell-onboarding{padding-bottom:0}
 body.shell-onboarding .shell>header{position:sticky;top:0;z-index:40;min-height:64px;padding:max(10px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) 10px max(18px,env(safe-area-inset-left));background:var(--dw-bg)}
 body.shell-onboarding #main{padding:24px max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left))}
 .platform-onboarding-footer{padding-bottom:max(14px,env(safe-area-inset-bottom))}
}
@media(max-width:600px){
 .scripture .verse{font-size:1.125rem}
 .platform-grid,.platform-discovery{grid-template-columns:minmax(0,1fr)}
 .platform-metrics:has(>:nth-child(5):last-child){grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
 .platform-metrics:has(>:nth-child(5):last-child)>article,.platform-metrics:has(>:nth-child(5):last-child)>div{grid-column:span 2;padding:16px 10px}
 .platform-metrics:has(>:nth-child(5):last-child)>:nth-child(4),.platform-metrics:has(>:nth-child(5):last-child)>:nth-child(5){grid-column:span 3}
 .platform-metrics p,.platform-metrics .small{font-size:0.75rem;line-height:1.5}
 .platform-faith-choices{grid-template-columns:minmax(0,1fr)}
 .platform-faith-choices .platform-choice,.platform-faith-choices .platform-choice:nth-of-type(4),.platform-faith-choices .platform-choice:nth-of-type(5){grid-column:auto;flex-direction:row;align-items:center;min-height:64px;padding:14px}
 .platform-onboarding-actions{gap:10px}
 .platform-onboarding-actions .primary{margin-left:0}
 .platform-onboarding-actions>*{flex:1 1 auto;min-width:min(100%,10em);text-align:center;justify-content:center;overflow-wrap:normal}
 .platform-appearance-choices{display:flex;width:100%}
 .platform-appearance-choices button{flex:1;min-width:0}
}
@media(prefers-reduced-motion:reduce){.shell-loading *{animation:none;transition:none}}

/* Shared empty state uses the existing card surface and fills its discovery grid. */
.empty-state{grid-column:1/-1;width:100%;max-width:none;padding:clamp(24px,4vw,40px);background:var(--dw-surface-soft);border:1px solid var(--dw-border);border-radius:var(--dw-radius)}
.empty-state h2{font-size:1.5rem}
.empty-state p{max-inline-size:64ch;font-size:1rem;color:var(--dw-muted)}
.empty-state .actions{margin-top:18px}

/* Legacy dashboard meters share the existing blue progress palette. */
.meter{background:var(--dw-border)}
.meter span{background:var(--dw-interactive)}

/* Search uses the same palette; only the noninteractive status loses its programmatic box. */
.reader-search-summary{font-size:.9375rem;line-height:1.6;color:var(--dw-muted);margin-block:16px}
.reader-search-summary[tabindex="-1"]:focus{outline:none;box-shadow:none}
.reader-search-results{min-width:0}
.search-match{background:var(--dw-selected);color:var(--dw-text);font-weight:650;padding-inline:.08em;border-radius:.15em}
nav.reader-search-pagination.actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:12px;margin:20px 0 0;padding:0}
.reader-search-pagination button{min-width:44px;min-height:44px;font-size:0.875rem}
.reader-search-pagination .small{font-size:0.75rem;color:var(--dw-muted);white-space:normal}
.loading-skeleton{display:grid;gap:14px;max-width:740px;margin-block:24px}
.loading-skeleton>span{display:block;height:16px;border-radius:6px;background:var(--dw-surface-soft)}
.loading-skeleton>span:nth-child(2){width:82%}
.loading-skeleton>span:nth-child(3){width:61%}
@media(prefers-reduced-motion:reduce){.loading-skeleton,.loading-skeleton *{animation:none;transition:none}}

/* Keep the local restore picker and native reminder checkbox clear and usable. */
#backup-file{display:block;width:100%;padding:6px;line-height:1.5}
#backup-file::file-selector-button{min-height:44px;margin-right:12px;padding:8px 14px;border:1px solid var(--dw-control-border);border-radius:8px;background:var(--dw-surface-soft);color:var(--dw-text);font:600 0.875rem/1.4 system-ui,sans-serif;cursor:pointer}
#reminder-form>label:has(>#reminders-enabled){display:flex;align-items:center;gap:12px;min-height:52px;padding:12px 14px;margin-block:16px;border:1px solid var(--dw-control-border);border-radius:10px;cursor:pointer}
#reminders-enabled{width:22px;height:22px;flex:0 0 22px;margin:0;accent-color:var(--dw-interactive)}
#reminder-form>label:has(>#reminders-enabled:checked){background:var(--dw-selected);border-color:var(--dw-interactive)}
.session-row{min-height:64px;gap:16px}
.session-row a{display:inline-flex;align-items:center;min-height:44px}

/* Native markers keep ordinary sections recognizable as accordions. */
#main details:not(.reader-outline):not(.reading-preferences):not(.theme-category):not(.plan-options):not(.explore-more-topics)>summary{min-height:48px;padding:12px 14px;border:1px solid var(--dw-border);border-radius:8px;background:var(--dw-surface-soft)}
@media(max-width:900px){.mobile-navigation [data-destination]>span.shell-nav-icon:first-child{background:none;mask:none;-webkit-mask:none}}
@media(max-height:600px){.platform-onboarding-footer{position:static}}
@media(forced-colors:active){.platform-timeline .is-complete::before{background:Highlight;border-color:Highlight}.platform-appearance-choices button[aria-pressed=true]{border:2px solid Highlight}}

/* Shared active-plan options stay in normal flow and use the existing confirmation controllers. */
#main details.plan-options{padding:0;margin-block:8px;border:0;background:transparent;min-width:0}
#main details.plan-options>summary{display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;min-height:44px;margin-inline-start:auto;padding:8px;border:1px solid var(--dw-control-border);border-radius:8px;background:var(--dw-surface);color:var(--dw-text);font:600 1.25rem/1 system-ui,sans-serif;list-style:none;cursor:pointer}
#main details.plan-options>summary::-webkit-details-marker{display:none}
#main details.plan-options>summary::marker{content:""}
#main details.plan-options[open]>summary{background:var(--dw-selected);border-color:var(--dw-interactive)}
.plan-options-menu{display:grid;gap:8px;min-width:0;max-width:100%;margin-top:8px;padding:10px;border:1px solid var(--dw-border);border-radius:10px;background:var(--dw-surface-soft)}
.plan-options-menu :is(button,a){display:flex;align-items:center;justify-content:flex-start;min-height:44px;max-width:100%;white-space:normal;text-align:left}
.plan-options-remove{font-weight:600}


/* Existing reading controllers own all record/note decisions; this layer only presents their actual controls. */
.reading-format-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.reading-format-controls>button,.reading-format-controls>a{min-height:44px}
.reading-action-bar{position:sticky;bottom:16px;z-index:20;display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:24px;padding:12px;background:var(--dw-surface);border:1px solid var(--dw-control-border);border-radius:12px;box-shadow:0 3px 16px #18253814}
.reading-action-bar>.reading-action-primary{min-height:44px;margin:0}
#main.has-reading-action-bar{padding-bottom:120px}
.settings-section-index{display:flex;flex-wrap:wrap;gap:4px 16px;margin:0 0 24px;padding:12px 0;border-block:1px solid var(--dw-border)}
.settings-section-index>a,.reading-section-index>a{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:900px){
 .reading-action-bar{position:fixed;left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));bottom:calc(84px + env(safe-area-inset-bottom));margin:0;padding:10px}
 .reading-action-bar>.reading-action-primary{width:100%}
 #main.has-reading-action-bar{padding-bottom:calc(196px + env(safe-area-inset-bottom))}
 body.navigation-open .reading-action-bar{visibility:hidden}
}

/* Calendar UI only: complete dates/source conventions and all reader bodies are preserved. */
.feasts-month-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;margin-bottom:20px}
.feasts-month-scroll .feasts-month{min-width:340px;margin-bottom:0}
.feasts-month-scroll .feasts-day{min-width:44px}
.feasts-month-scroll .feasts-day-count{font-size:0.75rem;line-height:1.3}
.feasts-day.has-feast:not([aria-pressed="true"]){background:var(--dw-selected);border-color:var(--dw-control-border)}
.feasts-day:focus-visible{outline-color:var(--dw-focus)}
.feasts-event h3>a{display:inline-flex;align-items:center;min-height:44px}

/* Usability audit: verse controls are siblings of stars; selected filters and previews stay legible. */
.scripture button.verse-select{display:block;width:100%;min-height:44px;margin:0;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;box-shadow:none;font:inherit;line-height:inherit;letter-spacing:inherit;text-align:start;white-space:normal}
.scripture button.verse-select:hover{background:transparent;color:inherit;box-shadow:none}
.scripture button.verse-select:focus-visible{outline:3px solid var(--dw-focus);outline-offset:3px}
.verse-mark-bar{z-index:40}
.platform-journal-results [data-platform-journal-card][hidden]{display:none}
.platform-card .journal-preview{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.platform-journal-filters [aria-current="page"]{background:var(--dw-selected);color:var(--dw-interactive);border-color:var(--dw-control-border);font-weight:700;box-shadow:inset 0 -3px var(--dw-interactive)}

/* System text preferences and one-control list rows. */
@supports(font:-apple-system-body){html.daily-walk-native{font:-apple-system-body}}
li.also-row:has(>a.also-title),li.also-row:not(:has(button,summary,.also-actions)):has(>.also-text>a.also-title){position:relative}
a.also-title,.also-text>a:not(.button){min-height:44px;padding-block:9px}
li.also-row>a.also-title::before,li.also-row:not(:has(button,summary,.also-actions))>.also-text>a.also-title::before{content:"";position:absolute;inset:0}
li.also-row:has(>a.also-title)::after{pointer-events:none}

/* Launch audit follow-up (css-layout): presentation only; record, note and Scripture handling are unchanged. */
/* A11Y-15: while the verse highlight bar is open on desktop, keyboard focus scrolls clear of it. */
@media(min-width:901px){html:has(#verse-mark-bar){scroll-padding-bottom:120px}}
/* A11Y-15: the shell footer's links can also scroll clear of the open verse bar. */
body:has(#verse-mark-bar) .shell>footer{padding-bottom:calc(196px + env(safe-area-inset-bottom))}
@media(min-width:901px){body:has(#verse-mark-bar) .shell>footer{padding-bottom:140px}}
/* LAY-03: the onboarding action footer lines up with the content column, with room above its note. */
.platform-onboarding-footer{margin-inline:0}
.platform-onboarding-footer>.small{margin-top:12px}
/* LAY-06: on phones the shell footer, not the reading, clears the fixed action bar. */
@media(max-width:900px){
 #main.has-reading-action-bar{padding-bottom:40px}
 body:has(#main.has-reading-action-bar) .shell>footer{padding-bottom:calc(196px + env(safe-area-inset-bottom))}
}
/* LAY-08: the verse star reserves space beside the first lines only, not the whole verse. */
.scripture .verse:has(> .verse-bookmark){padding-inline-end:0}
.scripture .verse:has(> .verse-bookmark)>.verse-select::before{content:"";float:right;width:52px;height:44px}
/* LAY-09: Explore card actions sit at the card bottom. */
.explore-card>.explore-card-actions{margin-top:auto;padding-top:20px}
/* LAY-11: with the desktop Menu open, its links take the note's space. */
@media(min-width:901px){body>aside:has(details[open])>.aside-note{display:none}}
/* LAY-12: detail screens start at the reader's depth, with the day counter centred on the back link. */
.session>.section-head:first-child{margin-top:0;align-items:center}
.session>.section-head:first-child>.small{margin-block:0}
/* LAY-13: "More topics" reads as one of the topic chips. */
.explore-more-topics>summary{padding:6px 12px;border:1px solid var(--dw-control-border);border-radius:22px;background:var(--dw-surface);color:var(--dw-text);font-size:.9375rem}
.explore-more-topics>summary:hover{border-color:var(--dw-interactive);background:var(--dw-selected)}
/* LAY-16: the active tab shows a straight bar, not an arc. */
@media(max-width:900px){
 .mobile-navigation :is([aria-current="page"],[aria-expanded="true"]){position:relative;box-shadow:none}
 .mobile-navigation :is([aria-current="page"],[aria-expanded="true"])::before{content:"";position:absolute;top:0;left:22%;right:22%;height:3px;border-radius:0 0 3px 3px;background:var(--dw-interactive)}
}
/* LAY-17: standalone title and brand links are at least 44px tall. */
.explore-card-title a,.platform-hero h2 a,.promise-card h3 a{display:inline-flex;align-items:center;column-gap:.25em;min-height:44px}
body.shell-onboarding .shell-header-brand{min-height:44px}
@media(max-width:900px){body>aside>.brand{min-height:44px;align-items:center}}
