/* Sanctuary & Soul daily prayer */

@font-face { font-family: 'Lexend'; font-weight: 300; font-display: swap; src: url('fonts/lexend-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lexend'; font-weight: 400; font-display: swap; src: url('fonts/lexend-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lexend'; font-weight: 500; font-display: swap; src: url('fonts/lexend-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Lexend'; font-weight: 600; font-display: swap; src: url('fonts/lexend-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 500; font-display: swap; src: url('fonts/work-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 600; font-display: swap; src: url('fonts/work-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 700; font-display: swap; src: url('fonts/work-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Uncial Antiqua'; font-weight: 400; font-display: swap; src: url('fonts/uncial-antiqua-latin-400-normal.woff2') format('woff2'); }

:root {
  --ink: #1f2b2c;
  --ink-soft: #3c4a4b;
  --ink-quiet: #5c6b6c;
  --paper: #ffffff;
  --beige: #f4f2ea;
  --beige-2: #e7e5d8;
  --olive-1: #beb683;
  --olive-2: #938a4d;
  --olive-3: #696026;
  --olive-4: #3e370c;
  --olive-5: #332c01;

  /* office theme (set per screen) */
  --t-deep: #064142;
  --t-ink: #1c6b6d;
  --t-main: #1c6b6d;
  --t-mid: #409697;
  --t-soft: #72c0c2;
  --t-light: #b3ebec;
  --t-pale: #e0feff;
  --t-ghost: #e8f5f5;
  --t-on-main: #ffffff;

  --display: 'Work Sans', system-ui, sans-serif;
  --body: 'Lexend', system-ui, sans-serif;
  --celtic: 'Uncial Antiqua', Georgia, serif;
}

.theme-morning { --h-band:#1c6b6d; --h-light:#b3ebec; --f-band:#1c6b6d; --f-light:#72c0c2; }
.theme-midday  { --h-band:#405f97; --h-light:#b3c7ec; --f-band:#405f97; --f-light:#728ec2; }
.theme-night   { --h-band:#341c6d; --h-light:#c4b3ec; --f-band:#341c6d; --f-light:#8e72c2; }
.theme-thanks, .theme-earth { --h-band:#938a4d; --h-light:#e7e5d8; --f-band:#938a4d; --f-light:#e7e5d8; }
.theme-others { --h-band:#696026; --h-light:#beb683; --f-band:#696026; --f-light:#beb683; }
.ftr .knot { stroke: var(--f-band); fill: none; stroke-width: 5px; }
.theme-morning { --t-deep:#064142; --t-ink:#1c6b6d; --t-main:#1c6b6d; --t-mid:#409697; --t-soft:#72c0c2; --t-light:#b3ebec; --t-pale:#e0feff; --t-ghost:#e8f5f5; }
.theme-midday  { --t-deep:#061b42; --t-ink:#1c386d; --t-main:#405f97; --t-mid:#405f97; --t-soft:#728ec2; --t-light:#b3c7ec; --t-pale:#e0ebff; --t-ghost:#eef3ff; }
.theme-night   { --t-deep:#180642; --t-ink:#341c6d; --t-main:#5a4097; --t-mid:#5a4097; --t-soft:#8e72c2; --t-light:#c4b3ec; --t-pale:#e9e0ff; --t-ghost:#f3eeff; }
.theme-thanks  { --t-deep:#332c01; --t-ink:#696026; --t-main:#938a4d; --t-mid:#938a4d; --t-soft:#beb683; --t-light:#beb683; --t-pale:#f4f2ea; --t-ghost:#f4f2ea; }
.theme-others  { --t-deep:#332c01; --t-ink:#696026; --t-main:#696026; --t-mid:#938a4d; --t-soft:#938a4d; --t-light:#938a4d; --t-pale:#e7e5d8; --t-ghost:#f4f2ea; }
.theme-earth   { --t-deep:#332c01; --t-ink:#696026; --t-main:#938a4d; --t-mid:#938a4d; --t-soft:#beb683; --t-light:#e7e5d8; --t-pale:#f4f2ea; --t-ghost:#f4f2ea; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #ffffff; }
body {
  font-family: var(--body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--t-ink); }
:focus-visible { outline: 3px solid var(--t-main); outline-offset: 2px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- page frame ---------- */
#app { min-height: 100vh; min-height: 100dvh; }
.screen {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.screen > * { position: relative; }
.screen-body { flex: 1; display: flex; flex-direction: column; padding-bottom: 96px; }

.hdr { position: relative; width: 100%; flex: none; }
.hdr svg.hdr-bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.hdr.full { aspect-ratio: 1179 / 594; }
.hdr.thin { height: 112px; }
.hdr .hdr-symbol { position: absolute; left: 4.6%; top: 14px; width: 16%; aspect-ratio: 1; }
.hdr.thin .hdr-symbol { left: 20px; top: 12px; width: 46px; }
.hdr .hdr-text { position: absolute; left: 23%; top: 16px; display: flex; flex-direction: column; }
.hdr .hdr-day { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.1; color: var(--t-deep); }
.hdr .hdr-saint { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--t-ink); }
.hdr .hdr-title { position: absolute; left: 22px; top: 14px; margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.1; color: var(--olive-5); }
.hdr .hdr-back { position: absolute; right: 12px; top: 8px; }

.saint-symbol { display: block; width: 100%; height: 100%; overflow: visible; }
.saint-symbol .knot { stroke: var(--sym-stroke, var(--t-main)); fill: none; }
.saint-symbol .knot.knot-fill { fill: var(--sym-fill, var(--t-light)); }
.symbol-initial { width: 100%; height: 100%; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--celtic); font-size: 26px; color: var(--sym-stroke, var(--t-main)); border: 2px solid currentColor; }

.ftr { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; aspect-ratio: 1179 / 594; pointer-events: none; z-index: 0; }
.ftr > svg { width: 100%; height: 100%; display: block; }
[hidden] { display: none !important; }

.ghost-word {
  position: absolute; right: -6px; top: 250px; z-index: 0;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--display); font-weight: 700; font-size: 84px; line-height: 1;
  color: var(--t-ghost); pointer-events: none; user-select: none;
}

.eyebrow { padding: 0 28px 6px 28px; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-ink); }

.steps { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 28px 8px 28px; margin: 0; list-style: none; font-size: 13px; color: var(--ink-quiet); }
.steps li { display: flex; }
.steps a, .steps span.step {
  display: flex; align-items: center; gap: 6px; min-height: 32px; color: var(--ink-quiet); text-decoration: none;
}
.steps .dot { width: 7px; height: 7px; border-radius: 999px; border: 1.5px solid var(--t-soft); flex: none; }
.steps .done .dot { background: var(--t-soft); border-color: var(--t-soft); }
.steps [aria-current="step"] { color: var(--t-deep); font-weight: 600; }
.steps [aria-current="step"] .dot { width: 9px; height: 9px; background: var(--t-main); border-color: var(--t-main); }

.preview-note {
  margin: 0 24px 10px; padding: 8px 12px; border-radius: 12px; background: var(--beige);
  font-size: 13px; line-height: 1.45; color: var(--olive-4);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border: none; border-radius: 999px;
  background: var(--t-main); color: var(--t-on-main);
  font-family: var(--display); font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(0.95); }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn.wide { width: 100%; }
.btn svg { flex: none; }
.btn-amen { flex-direction: column; gap: 0; width: 240px; min-height: 62px; }
.btn-amen .big { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.1; }
.btn-amen .small { font-family: var(--body); font-weight: 400; font-size: 12px; opacity: 0.9; }
.link-btn {
  min-height: 44px; border: none; background: transparent; padding: 0 8px;
  font-size: 14px; color: var(--t-ink); text-decoration: underline; cursor: pointer;
}
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 2px solid var(--t-light); background: #ffffff; color: var(--t-deep); font-size: 15px; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--t-main); border-color: var(--t-main); color: #ffffff; font-weight: 500; }

/* ---------- choose ---------- */
.choose-main { padding: 0 24px; display: flex; flex-direction: column; gap: 10px; }
.choose-main h1 { margin: 0 0 4px; font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--olive-5); }
.prayer-card {
  min-height: 76px; display: flex; align-items: center; gap: 14px; padding: 10px 16px;
  border-radius: 16px; border: 2px solid var(--t-light); background: var(--t-pale); text-decoration: none;
}
.prayer-card .bar { flex: none; width: 10px; height: 44px; border-radius: 999px; background: var(--t-main); }
.prayer-card .txt { display: flex; flex-direction: column; gap: 1px; }
.prayer-card .name { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--t-deep); }
.prayer-card .sub { font-size: 13px; color: var(--t-ink); }
.prayer-card .tags { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tag { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.tag.now { background: var(--t-main); color: #ffffff; }
.tag.prayed { background: #ffffff; color: var(--t-ink); border: 1.5px solid var(--t-light); }
.card-morning { --t-deep:#064142; --t-ink:#1c6b6d; --t-main:#1c6b6d; --t-light:#72c0c2; --t-pale:#e0feff; }
.card-thanks  { --t-deep:#332c01; --t-ink:#696026; --t-main:#beb683; --t-light:#beb683; --t-pale:#f4f2ea; }
.card-thanks .tag.now { background: #938a4d; }
.card-midday  { --t-deep:#061b42; --t-ink:#1c386d; --t-main:#405f97; --t-light:#b3c7ec; --t-pale:#e0ebff; }
.card-others  { --t-deep:#332c01; --t-ink:#3e370c; --t-main:#696026; --t-light:#938a4d; --t-pale:#e7e5d8; }
.card-night   { --t-deep:#180642; --t-ink:#341c6d; --t-main:#5a4097; --t-light:#c4b3ec; --t-pale:#e9e0ff; }
.choose-foot { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--olive-4); }
.rhythm-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--olive-3); }

/* ---------- arrive ---------- */
@keyframes settle { 0% { opacity: 0; color: var(--t-main); } 35% { opacity: 1; color: var(--t-main); } 100% { opacity: 1; color: var(--t-light); } }
@keyframes rise { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } }
.arrive .ghost-word { top: 150px; font-size: 128px; color: var(--t-light); animation: settle 3.2s ease-out both; }
.arrive-body { position: relative; padding: 0 32px; margin-top: 10vh; width: 240px; display: flex; flex-direction: column; gap: 14px; animation: rise 1.4s ease-out 1.2s both; }
.arrive-body .sym { width: 76px; height: 76px; }
.arrive-body .eyebrow { padding: 0; }
.arrive-body h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.1; color: var(--t-deep); }
.arrive-body .with { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--t-ink); }
.arrive-body p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.arrive-body .btn { margin-top: 8px; width: 150px; }

/* ---------- swipe stack ---------- */
.stack-wrap { position: relative; margin: 16px 40px 0 20px; touch-action: none; user-select: none; }
.pcard {
  position: absolute; left: 0; right: 0; top: 0;
  padding: 22px; border-radius: 22px; background: #ffffff;
  border: 2px solid var(--t-light); box-shadow: 0 10px 28px rgba(6, 65, 66, 0.10);
  display: flex; align-items: center; transform-origin: 50% 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.pcard p, .measure p { margin: 0; font-size: 19px; line-height: 1.55; white-space: pre-wrap; color: var(--ink); }
.measure { position: absolute; left: 0; right: 0; top: 0; visibility: hidden; pointer-events: none; }
.measure .pcard { position: relative; }
.stack-done {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center;
}
.stack-done p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink-soft); }
.stack-done .close-line { font-size: 19px; color: var(--ink); }
.stack-done .counted { font-size: 13px; color: var(--ink-soft); }
.dots { display: flex; justify-content: center; gap: 6px; padding: 14px 40px 0 20px; }
.dots button { width: 28px; height: 28px; border: none; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dots .d { display: block; width: 10px; height: 10px; border-radius: 999px; border: 2px solid var(--t-soft); }
.dots .filled .d { background: var(--t-main); border-color: var(--t-main); }
.dots [aria-current="true"] .d { width: 13px; height: 13px; }
.next-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 40px 0 20px; }
.next-btn { width: 48px; height: 48px; border-radius: 999px; border: 2px solid var(--t-light); background: #ffffff; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--t-main); }
.next-wrap .hint { font-size: 12px; color: var(--ink-quiet); }

/* ---------- read ---------- */
.read-main { padding: 18px 56px 24px 28px; display: flex; flex-direction: column; gap: 16px; }
.read-main .title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.read-main h1, .read-main h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink); }
.read-main .ref { font-size: 13px; color: var(--t-ink); text-align: right; }
.read-main .lead { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.scripture { font-size: 18px; line-height: 1.75; display: flex; flex-direction: column; gap: 14px; }
.scripture p { margin: 0; }
.scripture sup { font-size: 11px; color: var(--t-mid); margin-right: 2px; }
.w {
  display: inline; border: none; margin: 0; padding: 2px 0.28em 2px 0; font: inherit; color: inherit;
  background: transparent; cursor: pointer; text-align: left; line-height: inherit; border-radius: 0;
}
.w.on { background: var(--t-light); color: var(--t-deep); }
.w.on.first { border-top-left-radius: 6px; border-bottom-left-radius: 6px; padding-left: 3px; }
.w.on.last { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.w.anchor { box-shadow: inset 0 -3px 0 var(--t-main); }
.holding { background: var(--t-pale); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.holding .lbl { font-size: 12px; font-family: var(--display); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-ink); }
.holding .val { font-size: 20px; line-height: 1.35; color: var(--t-deep); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.own-word { display: flex; flex-direction: column; gap: 6px; }
.own-word label { font-size: 14px; color: var(--t-deep); }
.own-word input { min-height: 44px; padding: 0 14px; border: 2px solid var(--t-light); border-radius: 12px; font-size: 16px; color: var(--t-deep); }
.quiet { margin: 0; font-size: 13px; color: var(--ink-quiet); }
.reflect-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.reflect-list li { background: var(--t-pale); border-radius: 16px; padding: 14px 16px; }
.reflect-list .q { font-size: 18px; line-height: 1.4; color: var(--t-deep); }
.reflect-list .l { font-size: 13px; color: var(--t-ink); margin-top: 2px; }

/* ---------- go ---------- */
.go-main { padding: 6px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.go-top { display: flex; align-items: center; gap: 14px; padding: 0 4px; }
.go-top svg { flex: none; }
.go-top h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--t-deep); }
.go-top p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.noticed { background: var(--t-pale); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.noticed h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--t-deep); }
.noticed .words { display: flex; flex-wrap: wrap; gap: 6px; }
.wchip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 999px; font-size: 14px; background: #ffffff; color: var(--t-deep); border: 1.5px solid var(--t-light); }
.wchip.mine { background: var(--t-main); color: #ffffff; border-color: var(--t-main); font-weight: 500; }
.noticed .note { margin: 0; font-size: 13px; color: var(--ink-soft); }
.noticed .carry { margin: 0; font-size: 15px; color: var(--t-deep); text-align: center; }
.tomorrow { border: 2px solid var(--t-light); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.tomorrow .lbl { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-ink); }
.tomorrow p { margin: 0; font-size: 20px; line-height: 1.35; font-style: italic; color: var(--t-deep); }
.go-links { display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* ---------- thanks & others ---------- */
.flow-main { padding: 14px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.flow-main h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--olive-5); }
.flow-main .lead { margin: 0; font-size: 14px; line-height: 1.5; color: var(--olive-4); }
.thanks-input {
  width: 100%; padding: 14px 16px; border: 2px solid var(--olive-1); border-radius: 16px;
  font-size: 18px; line-height: 1.45; color: var(--olive-5); background: var(--beige); resize: none;
}
.thanks-input::placeholder { color: #9e977a; font-style: italic; opacity: 1; }
.meta-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--olive-3); }
.thanks-list { background: var(--beige); border-radius: 20px; padding: 6px 14px; display: flex; flex-direction: column; margin: 0; list-style: none; }
.thanks-list li { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 0; border-bottom: 1px solid var(--beige-2); }
.thanks-list li:last-child { border-bottom: none; }
.thanks-list .t { flex: 1; font-size: 15px; line-height: 1.4; color: var(--olive-4); }
.thanks-list .mine .t { color: var(--olive-5); font-weight: 500; }
.thanks-list .yours { flex: none; font-size: 11px; color: var(--olive-3); }
.flag-btn { flex: none; width: 44px; height: 44px; border: none; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--olive-1); }
.flag-btn[aria-pressed="true"] { color: var(--olive-3); }
.gather-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--olive-4); }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tile {
  width: 48px; height: 52px; border-radius: 12px; border: 2px solid var(--olive-3); background: var(--olive-3);
  color: #ffffff; font-family: var(--celtic); font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.tile-input {
  width: 48px; height: 52px; border-radius: 12px; border: 2px dashed var(--olive-2); background: var(--beige);
  text-align: center; font-family: var(--celtic); font-size: 24px; color: var(--olive-5); text-transform: uppercase; padding: 0;
}
.tile-input::placeholder { color: var(--olive-2); }
.small-note { margin: 0; font-size: 12px; color: var(--olive-3); }
.soft-box { background: var(--beige); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.soft-box p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--olive-5); }
.pool { background: var(--beige); border-radius: 20px; padding: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0; list-style: none; }
.pool li { width: 40px; height: 44px; border-radius: 10px; background: #ffffff; border: 1.5px solid var(--olive-1); display: flex; align-items: center; justify-content: center; font-family: var(--celtic); font-size: 20px; color: var(--olive-5); }
.center-text { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.center-text .big { margin: 0; font-size: 18px; line-height: 1.45; font-style: italic; color: var(--olive-5); }
.center-text .sm { margin: 0; font-size: 14px; line-height: 1.5; color: var(--olive-4); }
.steps button.step {
  display: flex; align-items: center; gap: 6px; min-height: 32px; padding: 0; border: none; background: transparent;
  font-size: 13px; color: var(--ink-quiet); cursor: pointer;
}
.steps button.step[disabled] { cursor: default; }
.steps button.step[aria-current="step"] { color: var(--olive-5); font-weight: 600; }
.steps button.step[aria-current="step"] .dot { width: 9px; height: 9px; background: var(--t-main); border-color: var(--t-main); }

/* ---------- rhythm ---------- */
.rhythm-main { padding: 0 16px 24px; display: flex; flex-direction: column; gap: 10px; }
.rhythm-main .motto { margin: 0 4px; font-size: 15px; line-height: 1.5; color: var(--olive-4); }
.rhythm-main .motto strong { font-weight: 600; color: var(--olive-5); }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--beige); border-radius: 999px; padding: 4px; }
.tabs button { min-height: 44px; border: none; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 14px; cursor: pointer; background: transparent; color: var(--olive-3); }
.tabs button[aria-selected="true"] { background: #ffffff; color: var(--olive-5); box-shadow: 0 1px 4px rgba(51, 44, 1, 0.15); }
.tabpanel { touch-action: pan-y; }
.panel-box { background: var(--beige); border-radius: 20px; padding: 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.panel-box h2 { margin: 0; align-self: flex-start; padding-left: 4px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--olive-5); }
.ring { position: relative; width: 300px; height: 300px; max-width: 100%; }
.ring svg.track { position: absolute; left: 0; top: 0; }
.ring .total { position: absolute; left: 95px; top: 122px; width: 110px; text-align: center; display: flex; flex-direction: column; }
.ring .total .n { font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--olive-5); }
.ring .total .l { font-size: 11px; line-height: 1.3; color: var(--olive-4); }
.saint-btn { position: absolute; width: 64px; min-height: 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; border: none; background: transparent; padding: 0; cursor: pointer; }
.saint-btn .disc { width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--celtic); font-size: 16px; background: #ffffff; border: 1.5px solid var(--olive-1); color: var(--olive-3); }
.saint-btn.held .disc { border-style: dashed; border-color: var(--olive-2); background: var(--beige); }
.saint-btn.ahead .disc { border-style: dotted; border-color: #d6d2bf; color: #9e977a; }
.saint-btn.today .disc { background: var(--olive-3); border: none; color: #ffffff; }
.saint-btn[aria-pressed="true"] .disc { box-shadow: 0 0 0 2px var(--beige), 0 0 0 4px var(--olive-2); }
.saint-btn .nm { font-size: 10px; color: var(--olive-4); }
.saint-btn.today .nm { font-weight: 600; color: var(--olive-5); }
.saint-btn .pips { display: flex; gap: 2px; min-height: 7px; }
.pip { display: block; width: 7px; height: 7px; border-radius: 999px; }
.detail { align-self: stretch; background: #ffffff; border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 1px; min-height: 52px; }
.detail .d1 { font-size: 12px; color: var(--olive-3); }
.detail .d2 { font-size: 15px; color: var(--olive-5); }
.detail .d2.held { font-style: italic; color: var(--olive-3); }
.key { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; font-size: 11px; color: var(--olive-4); margin: 0; padding: 0; list-style: none; }
.key li { display: flex; align-items: center; gap: 4px; }
.key .sw { display: block; width: 8px; height: 8px; border-radius: 999px; }
.month-box { border: 3px solid var(--m-border, var(--olive-2)); border-radius: 18px; padding: 12px 8px 10px; background: #ffffff; display: flex; flex-direction: column; gap: 7px; }
.month-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.month-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--olive-5); }
.month-head span { font-size: 12px; color: var(--olive-3); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal .dow { text-align: center; font-size: 11px; font-weight: 500; color: var(--olive-3); }
.cal .cell {
  width: 100%; min-height: 48px; border-radius: 7px; padding: 3px 2px; display: flex; flex-direction: column; align-items: center;
  gap: 1px; text-align: center; border: 1.5px dotted #d6d2bf; background: #ffffff; cursor: pointer;
}
.cal .cell .num { font-size: 10px; color: var(--olive-3); }
.cal .cell .wd { font-size: 8.5px; line-height: 1.1; overflow-wrap: anywhere; }
.cal .cell.prayed { background: var(--m-cell, var(--olive-1)); border: none; }
.cal .cell.prayed .num { color: var(--m-num, var(--olive-4)); }
.cal .cell.prayed .wd { color: var(--m-word, var(--olive-5)); font-weight: 500; }
.cal .cell.held { background: var(--beige); border: 1.5px dashed var(--olive-2); }
.cal .cell.held .wd { color: var(--olive-3); font-style: italic; }
.cal .cell.today:not(.prayed) { border: 1.5px solid var(--olive-2); }
.cal .cell.ahead { cursor: default; }
.cal .cell[aria-pressed="true"] { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--olive-2); }
.mkey { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 4px; font-size: 11px; color: var(--olive-4); }
.mkey span { display: flex; align-items: center; gap: 5px; }
.mkey .sw { width: 11px; height: 11px; border-radius: 3px; }
.way-box { background: var(--beige); border-radius: 20px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.way-top { display: flex; gap: 12px; align-items: center; }
.way-top svg { flex: none; }
.way-top h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--olive-5); }
.way-top .s { font-size: 13px; line-height: 1.4; color: var(--olive-4); }
.clue { background: #ffffff; border-radius: 12px; padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.clue .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.clue .ref { font-size: 11px; color: var(--olive-3); }
.clue .cbtns { display: flex; gap: 4px; flex: none; }
.clue .cbtns button { min-height: 32px; padding: 0 10px; border-radius: 999px; font-size: 11px; cursor: pointer; background: #ffffff; color: var(--olive-3); border: 1.5px solid var(--olive-1); }
.clue .cbtns button[aria-pressed="true"] { background: var(--olive-3); color: #ffffff; border-color: var(--olive-3); }
.clue p { margin: 0; font-size: 13.5px; line-height: 1.45; font-style: italic; color: var(--m-ink, var(--olive-5)); }
.reveal { background: #ffffff; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; border: 2px solid var(--m-border, var(--olive-2)); }
.reveal .name { font-family: var(--celtic); font-size: 30px; line-height: 1.1; color: var(--m-ink, var(--olive-5)); }
.reveal .tagline { font-size: 15px; color: var(--olive-4); }
.reveal .lbl { font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive-3); margin-top: 4px; }
.reveal .txt { font-size: 14px; line-height: 1.45; color: var(--olive-5); font-weight: 500; }
.year-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 2px; }
.year-head h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--olive-5); }
.year-head span { font-size: 12px; color: var(--olive-3); }
.year { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 6px; column-gap: 6px; }
.year .strand { text-align: center; font-family: var(--display); font-weight: 600; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.year .wm { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.year .wdot { display: block; width: 22px; height: 22px; border-radius: 999px; border: 2px dashed var(--olive-2); }
.year .wname { font-size: 12px; line-height: 1.2; color: var(--olive-3); font-style: italic; }
.year .wsub { font-size: 10px; color: var(--olive-3); }
.year .walked .wname { color: var(--olive-5); font-weight: 500; font-style: normal; }

.loading { padding: 40px 24px; color: var(--ink-quiet); }
.error-box { margin: 40px 24px; padding: 16px; border-radius: 16px; background: var(--beige); color: var(--olive-5); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}
@media (max-height: 700px) {
  .hdr.full { aspect-ratio: auto; height: 150px; }
  .arrive-body { margin-top: 2vh; }
}
@media (min-width: 441px) {
  body { background: var(--beige); }
  .screen { box-shadow: 0 0 0 1px var(--beige-2); }
}
.cal .cell .wd { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 350px) {
  .hdr .hdr-day { font-size: 22px; }
  .hdr .hdr-saint { font-size: 15px; }
  .stack-wrap { margin-left: 14px; margin-right: 24px; }
}
