/* Click to Commit — styles
 * A warm, reverent, modern aesthetic: parchment light, wine + gold accents,
 * calm ink type. Serif display (Fraunces), clean body (Inter).
 */

:root {
  --wine: #7a1f2b;
  --wine-deep: #5c1520;
  --wine-soft: #9a3542;
  --gold: #b8893b;
  --gold-soft: #d8b877;
  --ink: #2b2622;
  --ink-soft: #5f5750;
  --ink-faint: #8b827a;
  --parchment: #faf6ef;
  --parchment-2: #f3ece0;
  --card: #ffffff;
  --line: #e8ddcc;
  --green: #4c7a52;
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, 0.06), 0 2px 8px rgba(60, 40, 20, 0.05);
  --shadow-md: 0 4px 14px rgba(60, 40, 20, 0.10), 0 12px 28px rgba(60, 40, 20, 0.08);
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1080px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--parchment);
  background-image:
    radial-gradient(1200px 600px at 100% -10%, rgba(184, 137, 59, 0.10), transparent 60%),
    radial-gradient(1000px 500px at -10% 110%, rgba(122, 31, 43, 0.07), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -0.01em; }
a { color: var(--wine); text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--gold-soft); }

/* ---------- Layout shell ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(250, 246, 239, 0.82);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; margin-right: auto; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--wine), var(--wine-deep));
  color: var(--gold-soft); font-family: var(--serif); font-weight: 700; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.brand b { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand b span { color: var(--wine); }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); font-weight: 500; font-size: 14.5px;
  transition: background .18s, color .18s;
}
.nav a:hover { background: var(--parchment-2); color: var(--ink); }
.nav a.active { background: var(--wine); color: #fff; }
.nav a.active:hover { background: var(--wine-deep); color:#fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .12s, box-shadow .18s, background .18s, border-color .18s;
  background: var(--wine); color: #fff; box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--wine-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--wine); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--parchment-2); border-color: var(--gold-soft); }
.btn.gold { background: linear-gradient(150deg, var(--gold), #a9772f); color: #2b1e08; }
.btn.gold:hover { filter: brightness(1.03); }
.btn.sm { padding: 8px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background: var(--parchment-2); color: var(--ink-soft);
  border: 1px solid var(--line);
}
.chip.area { background: #fff; }

/* ---------- View transition ---------- */
main { flex: 1; padding: 34px 0 90px; }
.view { animation: rise .38s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--gold); }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-faint); }
.center { text-align: center; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm); transition: transform .16s, box-shadow .2s, border-color .2s;
}
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Area cards (explore hub) */
.area-card { cursor: pointer; display: flex; flex-direction: column; gap: 8px; min-height: 168px; position: relative; overflow: hidden; }
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.area-card .ico { font-size: 30px; }
.area-card h3 { margin: 4px 0 0; font-size: 20px; }
.area-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.area-card .count { margin-top: auto; font-size: 12.5px; color: var(--gold); font-weight: 700; }
.area-card .sheen { position: absolute; inset: 0; background: radial-gradient(300px 120px at 90% -10%, rgba(184,137,59,.10), transparent 70%); pointer-events: none; }

/* Practice rows */
.practice {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
  transition: transform .14s, box-shadow .2s, border-color .2s;
}
.practice:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.practice .body { flex: 1; min-width: 0; }
.practice h4 { margin: 0 0 3px; font-size: 17px; }
.practice p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.practice .meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }

/* Commitment cards (home) */
.commit {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, border-color .2s, transform .14s;
}
.commit:hover { box-shadow: var(--shadow-md); }
.commit.done { border-color: #cfe3d0; background: linear-gradient(0deg, #f5faf3, #fff); }
.commit .info { flex: 1; min-width: 0; cursor: pointer; }
.commit .info h4 { margin: 0 0 2px; font-size: 16.5px; }
.commit .info .sub { font-size: 13px; color: var(--ink-faint); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.check {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line);
  background: #fff; cursor: pointer; display: grid; place-items: center; font-size: 20px; color: transparent;
  transition: all .18s cubic-bezier(.2,.7,.2,1);
}
.check:hover { border-color: var(--green); transform: scale(1.06); }
.check.on { background: var(--green); border-color: var(--green); color: #fff; }
.check.on:hover { background: #3f6844; }

/* streak flame */
.flame { color: var(--wine); font-weight: 700; }

/* ---------- Hero / Welcome ---------- */
.hero { text-align: center; padding: 30px 0 10px; }
.hero .quote { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 4.4vw, 42px); color: var(--ink); max-width: 18ch; margin: 0 auto .2em; line-height: 1.2; }
.hero .attr { color: var(--gold); font-weight: 700; letter-spacing: .04em; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); margin-top: .5em; }
.hero h1 span { color: var(--wine); }

.pledge-card { max-width: 720px; margin: 0 auto; }
.pledge-card ul { margin: 14px 0 0; padding-left: 0; list-style: none; display: grid; gap: 12px; }
.pledge-card li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.pledge-card li .b { color: var(--gold); font-weight: 800; }
.field { display: block; margin: 18px 0 6px; font-weight: 600; font-size: 14px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  font-family: inherit; font-size: 15px; color: var(--ink); transition: border-color .16s, box-shadow .16s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,137,59,.18); }
.textarea { min-height: 84px; resize: vertical; }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat .n { font-family: var(--serif); font-size: 30px; color: var(--wine); line-height: 1; }
.stat .l { font-size: 13px; color: var(--ink-faint); margin-top: 4px; }

/* virtues */
.virtue-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--line); }
.virtue-row:last-child { border-bottom: none; }
.virtue-row .v { text-align: right; }
.virtue-row .v b { font-family: var(--serif); font-size: 19px; color: var(--green); }
.virtue-row .arrow { color: var(--gold); font-weight: 800; }
.virtue-row .x b { font-family: var(--serif); font-size: 18px; color: var(--wine-soft); }
.virtue-row small { display: block; color: var(--ink-faint); font-size: 12px; }
.virtue-full { }
.virtue-full .card { margin-bottom: 12px; }
.virtue-full .card h3 { color: var(--green); display: flex; align-items: baseline; gap: 10px; }
.virtue-full .card h3 small { color: var(--wine-soft); font-family: var(--sans); font-weight: 600; font-size: 13px; }

/* section header */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 30px 0 16px; }
.section-head:first-child { margin-top: 0; }
.section-head h2 { margin: 0; font-size: 24px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-weight: 600; font-size: 14px; cursor: pointer; margin-bottom: 6px; }
.back:hover { color: var(--wine); }

/* empty state */
.empty { text-align: center; padding: 46px 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.5); }
.empty .big { font-size: 40px; }

/* ---------- Modal ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 90; background: rgba(43, 21, 24, .38); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 20px; animation: fade .2s both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 500px; background: var(--parchment); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(43,21,24,.35); border: 1px solid var(--line); overflow: hidden;
  animation: pop .28s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal .head { padding: 20px 22px 12px; }
.modal .head .ico { font-size: 26px; }
.modal .body-pad { padding: 4px 22px 8px; max-height: 60vh; overflow: auto; }
.modal .foot { padding: 14px 22px 20px; display: flex; gap: 10px; }

/* option pills (cadence / privacy) */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  padding: 9px 13px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--ink-soft); transition: all .14s; display:flex; align-items:center; gap:7px;
}
.opt:hover { border-color: var(--gold-soft); }
.opt.sel { border-color: var(--wine); background: var(--wine); color: #fff; }
.daybtns { display: flex; gap: 6px; flex-wrap: wrap; }
.day { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background:#fff; cursor:pointer; font-weight:700; font-size:13px; color:var(--ink-soft); transition: all .14s; }
.day.sel { background: var(--wine); color:#fff; border-color: var(--wine); }

/* privacy list */
.privacy-opt { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background:#fff; cursor: pointer; margin-bottom: 8px; transition: all .14s; }
.privacy-opt:hover { border-color: var(--gold-soft); }
.privacy-opt.sel { border-color: var(--wine); box-shadow: 0 0 0 2px rgba(122,31,43,.12); }
.privacy-opt .ico { font-size: 20px; }
.privacy-opt b { font-size: 14.5px; }
.privacy-opt small { color: var(--ink-faint); font-size: 12.5px; }

/* toast */
.toast-wrap { position: fixed; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; z-index: 120; pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px; animation: toastin .3s cubic-bezier(.2,.8,.2,1) both;
}
.toast .em { font-size: 18px; }
@keyframes toastin { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* footer */
.foot-note { text-align: center; color: var(--ink-faint); font-size: 13px; padding: 24px 20px 40px; }
.foot-note a { color: var(--ink-soft); }

/* search */
.searchbar { position: relative; margin-bottom: 18px; }
.searchbar input { padding-left: 42px; }
.searchbar .mag { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); }

/* confetti dots */
.spark { position: fixed; width: 9px; height: 9px; border-radius: 2px; pointer-events: none; z-index: 200; }

/* ============ profile menu (top-right) ============ */
.profile { position: relative; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  background: linear-gradient(150deg, var(--gold-soft), #fff); color: var(--wine); font-family: var(--serif);
  font-weight: 700; font-size: 17px; display: grid; place-items: center; transition: box-shadow .18s, transform .12s;
}
.avatar:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.menu {
  position: absolute; right: 0; top: 48px; width: 220px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-md); padding: 6px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all .18s; z-index: 60;
}
.menu.open { opacity: 1; visibility: visible; transform: none; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink-soft); font-weight: 500; font-size: 14.5px; cursor: pointer; }
.menu a:hover { background: var(--parchment-2); color: var(--ink); }
.menu a.active { color: var(--wine); }
.menu .mi { width: 20px; text-align: center; }

/* ============ mobile bottom tab bar ============ */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none;
  background: rgba(250, 246, 239, 0.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  grid-template-columns: repeat(5, 1fr);
}
.tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; color: var(--ink-faint); font-size: 11px; font-weight: 600; border-radius: 10px; }
.tabbar .tab .ti { font-size: 20px; line-height: 1; }
.tabbar .tab.active { color: var(--wine); }
.tabbar .tab.active .ti { transform: translateY(-1px); }

/* ============ liturgical banner ============ */
.lit-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--sc) 9%, #fff); border: 1px solid color-mix(in srgb, var(--sc) 24%, var(--line)); margin-bottom: 16px; }
.lit-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sc) 18%, transparent); flex: none; }
.lit-txt { line-height: 1.35; font-size: 14px; }
.lit-txt b { color: var(--sc); }
.lit-txt small { display: block; color: var(--ink-faint); font-size: 12.5px; }
.lit-feast { color: var(--ink-soft); font-weight: 600; }

/* ============ E-push + peek cards ============ */
.epush { background: linear-gradient(150deg, #fff, #fbf6ec); border-color: var(--gold-soft); }
.epush-text { font-family: var(--serif); font-size: 19px; font-style: italic; color: var(--ink); margin: 6px 0 0; }
.peek { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.peek:hover { box-shadow: var(--shadow-md); border-color: var(--gold-soft); transform: translateY(-1px); }
.peek .peek-ico { font-size: 26px; flex: none; }
.peek b { display: block; font-size: 15.5px; }
.peek small { color: var(--ink-faint); font-size: 13px; }
.peek .peek-go { margin-left: auto; color: var(--gold); font-size: 20px; font-weight: 700; }
.gold-peek { background: linear-gradient(150deg, #fff, #fbf3e4); border-color: var(--gold-soft); }

/* ============ practice detail ============ */
.learn-tag { font-family: var(--sans); font-size: 11.5px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; margin-left: 6px; white-space: nowrap; }
.learn-tag.subtle { color: var(--ink-faint); }
.steps { margin: 8px 0 0; padding-left: 20px; color: var(--ink-soft); display: grid; gap: 8px; }
.steps li { padding-left: 4px; }
.tips { margin: 8px 0 0; padding-left: 18px; color: var(--ink-soft); display: grid; gap: 6px; }
.card.soft { background: var(--parchment-2); box-shadow: none; }
.scripture { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--wine); text-align: center; padding: 16px; margin: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prayer-block { margin-bottom: 16px; }
.prayer-block:last-child { margin-bottom: 0; }
.prayer-block h4 { margin: 0 0 4px; color: var(--wine); }
.prayer-block .pl { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.mystery { margin-bottom: 12px; }
.mystery ol { margin: 4px 0 0; padding-left: 20px; color: var(--ink-soft); font-size: 14px; }

/* ============ feed / circle ============ */
.preview-note { background: #fbf3e4; border: 1px dashed var(--gold-soft); color: var(--ink-soft); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 18px; }
.preview-note.gold { background: #fbf3e4; }
.feed { display: grid; gap: 12px; }
.feed-item { display: flex; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.feed-item.idea { align-items: center; }
.ava { flex: none; border-radius: 50%; color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 15px; }
.fi-body { flex: 1; min-width: 0; }
.fi-head { font-size: 14.5px; margin-bottom: 2px; }
.fi-body p { margin: 4px 0 8px; color: var(--ink); font-size: 15px; }
.react { border: 1px solid var(--line); background: var(--parchment); border-radius: 999px; padding: 5px 13px; font-weight: 600; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; transition: all .14s; display: inline-flex; gap: 6px; align-items: center; }
.react:hover { border-color: var(--gold-soft); }
.react.on { background: var(--wine); color: #fff; border-color: var(--wine); }
.vote { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; border: 1px solid var(--line); background: var(--parchment); border-radius: 10px; cursor: pointer; font-weight: 700; color: var(--ink-soft); font-size: 12px; padding: 6px 0; transition: all .14s; flex: none; }
.vote span { font-size: 14px; }
.vote:hover { border-color: var(--gold-soft); }
.vote.on { background: var(--gold); color: #2b1e08; border-color: var(--gold); }
.chip.tiny { font-size: 11px; padding: 2px 8px; }
.chip.ok { background: #eef6ee; color: var(--green); border-color: #cfe3d0; }
.composer { padding: 14px; }
.composer .textarea { min-height: 70px; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }

/* ============ examen / reflect ============ */
.examen { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 12px; }
.examen li { padding-left: 4px; color: var(--ink); }

/* ============ growth / milestones ============ */
.ms { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); opacity: .6; }
.ms.got { opacity: 1; border-color: var(--gold-soft); background: linear-gradient(150deg, #fff, #fbf6ec); }
.ms-ico { font-size: 24px; flex: none; }
.ms b { display: block; font-size: 15px; }
.ms small { color: var(--ink-faint); font-size: 12.5px; }

/* ============ library / prayer ============ */
.prayer-card { cursor: pointer; }
.prayer-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.prayer-card h4 { margin: 0 0 4px; color: var(--wine); }
.prayer-full p { margin: 0 0 2px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.printable { }

/* ============ ministries / portals ============ */
.season-flag { position: absolute; top: 12px; right: 12px; background: var(--gold); color: #2b1e08; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.portal-card { display: flex; align-items: center; gap: 14px; }
.portal-card.on { border-color: var(--gold-soft); background: linear-gradient(150deg, #fff, #fbf6ec); }
.swatch { width: 34px; height: 34px; border-radius: 9px; flex: none; }

/* ============ settings ============ */
.themes { display: flex; gap: 12px; flex-wrap: wrap; }
.theme-swatch { border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 92px; transition: all .14s; }
.theme-swatch span { width: 100%; height: 14px; border-radius: 5px; display: block; }
.theme-swatch span + span { height: 8px; width: 60%; }
.theme-swatch small { color: var(--ink-soft); font-size: 11.5px; font-weight: 600; margin-top: 2px; }
.theme-swatch.sel { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(122,31,43,.12); }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--wine); }
.menu-list { display: grid; gap: 8px; }
.menu-row { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); font-weight: 600; color: var(--ink); cursor: pointer; }
.menu-row:hover { border-color: var(--gold-soft); }
.menu-row .mi { width: 22px; text-align: center; font-size: 18px; }
.menu-row .peek-go { margin-left: auto; color: var(--gold); }

/* reduce motion */
body.reduce-motion * { animation: none !important; transition: none !important; }
body.reduce-motion .spark { display: none !important; }

/* print */
@media print {
  .topbar, .tabbar, .foot-note, .no-print, .back { display: none !important; }
  body { background: #fff; }
  .card, .printable { box-shadow: none; border: none; }
  main { padding: 0; }
}

/* responsive */
@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .tabbar { display: grid; }
  .app { padding-bottom: 68px; }
  main { padding-bottom: 40px; }
  body { background-attachment: scroll; } /* avoid fixed-bg scroll jank on iOS */
}
@media (max-width: 560px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat .n { font-size: 24px; }
  main { padding-top: 22px; }
  .virtue-row { grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .brand b { font-size: 17px; }
  .composer-foot { flex-direction: column; align-items: stretch; }
  .composer-foot .btn { width: 100%; }
}
