:root {
  --paper: #f5eedf;
  --card: #fbf7ee;
  --ink: #3b2a1e;
  --ink-soft: #7a6652;
  --line: #e3d8c3;
  --sage: #6b8467;
  --sage-deep: #4f6a4c;
  --gold: #b8903f;
  --wine: #8b2e3a;
  --display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.2; margin: 0; }
a { color: var(--sage-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

#app { min-height: 100dvh; max-width: 560px; margin: 0 auto; position: relative; display: flex; flex-direction: column; }
#app > main { flex: 1; }

/* ---------- Top bar and tabs ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 18px 10px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.top h1 { font-size: 24px; letter-spacing: 0.2px; }
.top .who { border: 0; background: none; padding: 0; border-radius: 50%; }
.top-btns { display: flex; align-items: center; gap: 8px; }
.top .gear { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; padding: 0; border-radius: 50%; color: var(--sage-deep); cursor: pointer; }
.top .gear svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.top .gear:active { background: var(--card); }
.gear-dot { position: absolute; top: 7px; right: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--wine); border: 2px solid var(--paper); }

main { padding: 18px 16px calc(var(--tab-h) + var(--safe-b) + 90px); }

/* The brand line sits at the end of every page, tucked just above the tab bar, and never floats over content. */
.brandfoot { text-align: center; color: var(--ink-soft); font-size: 13px; margin-top: -72px; padding: 0 16px calc(var(--tab-h) + var(--safe-b) + 14px); position: relative; }
.brandfoot p { margin: 0; }
.brandfoot .linkbtn { font-size: 13px; padding: 8px 6px; font-weight: 600; }
.brandfoot.big { margin-top: 40px; padding: 0; font-size: 15px; }
.brandfoot.big .tag { text-wrap: balance; font-family: var(--display); color: var(--sage-deep); font-size: 16px; margin-bottom: 6px; }
.brandfoot.big .linkbtn { font-size: 15px; }
.info p { margin: 0 0 12px; line-height: 1.5; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; justify-content: center;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-bottom: var(--safe-b);
}
.tabs-inner { display: flex; width: 100%; max-width: 560px; }
.tab {
  flex: 1; height: var(--tab-h); border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  position: relative;
}
.tab svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-current="page"] { color: var(--sage-deep); }
.tab-badge {
  position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #b3261e; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.tab-badge[hidden] { display: none; }
.tab[aria-current="page"]::after {
  content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold);
}

/* ---------- Buttons and fields ---------- */
.btn {
  border: 0; border-radius: 999px; padding: 12px 22px; min-height: 46px;
  background: var(--sage-deep); color: var(--paper); font-weight: 700;
}
.btn:active { background: var(--sage); }
.btn.quiet { background: transparent; color: var(--sage-deep); border: 1.5px solid var(--sage); }
.btn.danger { background: transparent; color: var(--wine); border: 1.5px solid var(--wine); }
.btn.small { min-height: 38px; padding: 7px 16px; font-size: 15px; }
.btn[disabled] { opacity: 0.55; }
.linkbtn { border: 0; background: none; padding: 6px 0; color: var(--ink-soft); font-size: 15px; font-weight: 600; }
.linkbtn.wine { color: var(--wine); }

label { display: block; font-weight: 700; font-size: 15px; margin: 14px 0 5px; }
input[type=text], input[type=password], input[type=tel], input[type=datetime-local], input[type=date], input[type=time], input[type=number], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--card);
}
input:focus, textarea:focus, select:focus { border-color: var(--sage); outline: none; box-shadow: 0 0 0 3px rgba(107, 132, 103, 0.25); }
textarea { resize: vertical; min-height: 96px; }
.hint { color: var(--ink-soft); font-size: 15px; margin: 4px 0 0; }
.error { color: var(--wine); font-weight: 600; margin: 12px 0 0; min-height: 1.2em; }

/* ---------- Avatars ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover;
  display: inline-grid; place-items: center;
  font-family: var(--display); font-size: 18px; color: var(--paper);
  border: 2px solid var(--card);
  box-shadow: 0 0 0 1.5px var(--line);
}
.avatar.big { width: 96px; height: 96px; font-size: 40px; }
.avatar.small { width: 30px; height: 30px; font-size: 13px; border-width: 1.5px; }

/* ---------- Sign in ---------- */
.gate { padding: 12vh 24px 40px; }
.gate .mark { width: 76px; height: 76px; border-radius: 20px; display: block; margin-bottom: 22px; }
.gate h1 { font-size: 36px; margin-bottom: 8px; }
.gate p { color: var(--ink-soft); margin: 0 0 8px; }
.gate .btn { width: 100%; margin-top: 22px; }

/* ---------- Feed: photos are mounted like prints in a family album ---------- */
.post { margin: 0 0 30px; }
.post-head { display: flex; align-items: center; gap: 11px; margin: 0 4px 10px; }
.post-head .names { flex: 1; min-width: 0; }
.post-head strong { display: block; font-weight: 700; line-height: 1.2; }
.post-head time { color: var(--ink-soft); font-size: 14px; }

.print {
  position: relative; background: var(--card);
  padding: 12px 12px 14px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px -8px rgba(59, 42, 30, 0.35);
  transform: rotate(-0.5deg);
}
.post:nth-child(even) .print { transform: rotate(0.5deg); }
.print .mount { position: relative; display: block; background: var(--line); }
.print .mount img { display: block; width: 100%; max-height: 78vh; object-fit: cover; }
.mount-grid { display: grid; gap: 3px; }
.mount-grid.n2, .mount-grid.n3, .mount-grid.n4 { grid-template-columns: 1fr 1fr; }
.mount-grid.n3 .mount:first-child { grid-column: 1 / -1; }
.mount-grid.n2 .mount img, .mount-grid.n4 .mount img, .mount-grid.n3 .mount:not(:first-child) img { aspect-ratio: 1; height: 100%; max-height: none; }
.mount-grid.n3 .mount:first-child img { aspect-ratio: 16 / 9; max-height: none; }
.multi-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; margin-top: 10px; }
.multi-previews:empty { display: none; }
.mp { position: relative; }
.mp img { width: 100%; height: 86px; max-height: none; margin: 0; object-fit: cover; border-radius: 10px; display: block; }
.mp-cover { position: absolute; left: 4px; bottom: 4px; border: 0; border-radius: 10px; padding: 3px 8px; background: rgba(0,0,0,.62); color: #fff; font-size: 12px; cursor: pointer; }
.mp-cover.first { background: rgba(0,0,0,.35); cursor: default; }
.mp-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.print .mount::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(135deg, var(--wine) 50%, transparent 50%) top left / 20px 20px no-repeat,
    linear-gradient(225deg, var(--wine) 50%, transparent 50%) top right / 20px 20px no-repeat,
    linear-gradient(45deg, var(--wine) 50%, transparent 50%) bottom left / 20px 20px no-repeat,
    linear-gradient(315deg, var(--wine) 50%, transparent 50%) bottom right / 20px 20px no-repeat;
}
.print .cap { margin: 12px 4px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.print.textonly { transform: none; padding: 16px 18px; }
.print.textonly .cap { margin: 0; }

.actions { display: flex; align-items: center; gap: 18px; margin: 12px 6px 0; }
.act { border: 0; background: none; padding: 6px 2px; display: inline-flex; gap: 7px; align-items: center; font-weight: 700; color: var(--ink-soft); }
.act svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.act.on { color: var(--wine); }
.act.on svg { fill: var(--wine); }
.act.del { margin-left: auto; font-weight: 600; font-size: 15px; }
.likedby { margin: 2px 6px 0; font-size: 15px; color: var(--ink-soft); }

.comments { margin: 10px 4px 0; }
.comment { display: flex; gap: 9px; margin: 9px 0; align-items: flex-start; }
.comment .bubble { flex: 1; min-width: 0; background: rgba(227, 216, 195, 0.45); padding: 8px 12px; border-radius: 4px 16px 16px 16px; }
.comment strong { display: block; font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--ink-soft); }
.comment .txt { overflow-wrap: anywhere; white-space: pre-wrap; }
.comment .x { border: 0; background: none; color: var(--ink-soft); font-size: 13px; padding: 0 0 0 6px; }
.comment-form { display: flex; gap: 8px; margin-top: 10px; }
.comment-form input { flex: 1; border-radius: 999px; padding: 10px 16px; }

.empty { text-align: center; padding: 56px 24px; color: var(--ink-soft); }
.empty h2 { color: var(--ink); font-size: 22px; margin-bottom: 8px; }

.fab {
  position: fixed; z-index: 7;
  right: max(16px, calc(50% - 280px + 16px));
  bottom: calc(var(--tab-h) + var(--safe-b) + 16px);
  width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 0;
  background: var(--gold); color: #2d2014; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(59, 42, 30, 0.55);
}
body.typing .fab { display: none; }
.fab svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; }

/* ---------- Sheets ---------- */
.scrim { position: fixed; inset: 0; background: rgba(59, 42, 30, 0.5); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto;
  background: var(--paper); border-radius: 22px 22px 0 0;
  padding: 20px 18px calc(24px + var(--safe-b));
  animation: rise 0.22s ease-out;
}
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-head h2 { font-size: 24px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.row .btn { flex: 1; }
.photo-pick { margin-top: 12px; }
.photo-pick img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 10px; margin-top: 10px; }

/* ---------- Events ---------- */
.day { margin: 26px 0 10px; font-size: 20px; }
.day:first-child { margin-top: 0; }
.event { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--sage); border-radius: 6px 16px 16px 6px; padding: 14px 16px; margin-bottom: 12px; }
.event h3 { font-family: var(--body); font-weight: 700; font-size: 18px; }
.event .when { color: var(--sage-deep); font-weight: 700; }
.event .meta { color: var(--ink-soft); font-size: 15px; margin-top: 2px; overflow-wrap: anywhere; }
.rsvp { display: flex; gap: 8px; margin-top: 12px; }
.rsvp button { flex: 1; min-height: 42px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; font-weight: 700; font-size: 15px; }
.rsvp button[aria-pressed="true"].going { background: var(--sage-deep); color: var(--paper); border-color: var(--sage-deep); }
.rsvp button[aria-pressed="true"].maybe { background: var(--gold); color: #2d2014; border-color: var(--gold); }
.rsvp button[aria-pressed="true"].no { background: var(--wine); color: var(--paper); border-color: var(--wine); }
.who-list { margin: 10px 0 0; font-size: 15px; color: var(--ink-soft); }
.who-list b { color: var(--ink); }

/* ---------- Chat ---------- */
.thread { display: flex; gap: 13px; align-items: center; width: 100%; text-align: left; padding: 12px 4px; border: 0; background: none; border-bottom: 1px solid var(--line); }
.thread .t { flex: 1; min-width: 0; }
.thread strong { display: block; }
.msg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.msg-top h2 { font-size: 26px; }
.msg-top .btn { display: inline-flex; align-items: center; gap: 6px; }
.msg-top .btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thread .tline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.thread .when { color: var(--ink-soft); font-size: 14px; flex: none; }
.thread.unread strong { font-weight: 800; }
.thread.unread .last { color: var(--ink); }
.thread .count { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--sage-deep); color: var(--paper); font-size: 13px; font-weight: 700; line-height: 22px; text-align: center; }
.to { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.to select { flex: 1; min-width: 0; }
.thread .last { color: var(--ink-soft); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat { display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.chat-head h2 { font-size: 22px; }
.chat-pick { flex: 1; min-width: 0; font-size: 18px; font-weight: 700; padding: 10px 14px; border-radius: 14px; }
.msgs { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; }
.msg { max-width: 82%; padding: 9px 14px; border-radius: 18px 18px 18px 4px; background: var(--card); border: 1px solid var(--line); overflow-wrap: anywhere; white-space: pre-wrap; }
.msg .from { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.msg.fresh { border-left: 4px solid var(--gold); }
.msg .newtag { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.msg.mine { align-self: flex-end; background: var(--sage-deep); border-color: var(--sage-deep); color: var(--paper); border-radius: 18px 18px 4px 18px; }
.composer { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.composer .camera { padding: 0 12px; }
.composer .camera svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.pic-chip { flex-basis: 100%; display: flex; align-items: center; gap: 12px; }
.pic-chip[hidden] { display: none; }
.pic-chip img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.msg-time { display: block; margin-top: 2px; font-size: 11px; opacity: 0.6; }
.daydiv { align-self: center; margin: 8px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-soft); }
.msg-pic { display: block; max-width: 100%; max-height: 260px; border-radius: 12px; margin: 2px 0 6px; }
.msg-del { display: block; margin-top: 4px; padding: 0; border: 0; background: none; color: inherit; opacity: 0.6; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.composer input { flex: 1; min-width: 0; border-radius: 999px; padding: 11px 18px; }

/* ---------- Family ---------- */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.person .avatar { width: 76px; height: 76px; font-size: 32px; }
.person strong { line-height: 1.2; }
.person small { color: var(--ink-soft); }
.profile { text-align: center; }
.profile .avatar { margin: 4px auto 10px; }
.profile h2 { font-size: 28px; }
.profile .bio { color: var(--ink-soft); margin: 8px 0 0; white-space: pre-wrap; }
.section-title { font-size: 20px; margin: 30px 0 4px; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 40;
  bottom: calc(var(--tab-h) + var(--safe-b) + 84px);
  background: var(--ink); color: var(--paper); padding: 11px 20px; border-radius: 999px; font-weight: 600; width: max-content; max-width: 90vw; text-align: center;
}

@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }

.notice { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: 6px 16px 16px 6px; padding: 14px 16px; margin-bottom: 22px; }
.notice strong { display: block; font-family: var(--display); font-weight: 400; font-size: 19px; }
.notice p { margin: 4px 0 0; color: var(--ink-soft); }

/* chores */
.chore-people { display: grid; gap: 10px; margin-top: 14px; }
.chore-person { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; font: inherit; color: var(--ink); }
.cp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.cp-name { font-weight: 700; font-size: 17px; }
.cp-count { font-size: 14px; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.bar { display: block; height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--sage); border-radius: 99px; transition: width .3s; }
.bar.wide { margin: 8px 0 4px; }
.chore-sheet { margin-top: 6px; }
.chore-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; }
.chore-head h3 { font-size: 22px; margin: 0; }
.slot h4 { margin: 20px 0 8px; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.chore { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; margin: 0 0 8px; padding: 10px 14px; text-align: left; font: inherit; font-size: 17px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.chore .box { flex: none; width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--sage); display: grid; place-items: center; background: var(--paper); }
.chore .box svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.chore.done .box { background: var(--sage-deep); border-color: var(--sage-deep); }
.chore.done .box svg { opacity: 1; }
.chore.done { background: transparent; color: var(--ink-soft); }
.chore.done .ct { text-decoration: line-through; text-decoration-color: var(--line); }
.chore small { display: block; font-size: 13px; text-decoration: none; color: var(--ink-soft); }

/* emergency */
.sos-card { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; font: inherit; color: var(--ink); padding: 14px 16px; margin: 0 0 18px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--wine); border-radius: 14px; }
.sos-card strong { font-family: 'Young Serif', serif; font-weight: 400; font-size: 19px; }
.sos-card span { color: var(--ink-soft); font-size: 15px; }
.sos-call { display: flex; flex-direction: column; gap: 2px; margin: 14px 0; padding: 18px; border-radius: 16px; background: var(--wine); color: #fff; text-decoration: none; }
.sos-call strong { font-family: 'Young Serif', serif; font-weight: 400; font-size: 30px; }
.sos-call span { font-size: 15px; opacity: .9; }
.address-card { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.address-card small { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 4px; }
.address-card strong { font-size: 22px; line-height: 1.25; }
.address-card span { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
.dial { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; margin: 0 0 8px; padding: 10px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.dial span { display: flex; flex-direction: column; }
.dial small { color: var(--ink-soft); font-size: 13px; }
.dial b { color: var(--sage-deep); font-size: 17px; white-space: nowrap; }
.step-card { margin: 0 0 10px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.step-card h3 { margin: 0 0 6px; font-size: 18px; }
.step-card p { margin: 4px 0; font-size: 16px; }
.facts { display: grid; gap: 8px; }
.fact { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.fact span { font-size: 13px; color: var(--ink-soft); }
.fact em { color: var(--ink-soft); font-size: 15px; }

/* dashboard */
.dash-h { margin: 26px 0 10px; font-size: 19px; }
.behind { display: grid; gap: 8px; }
.bh { padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--wine); border-radius: 12px; display: flex; flex-direction: column; gap: 2px; }
.bh span { font-size: 14px; color: var(--ink-soft); }
.wk { display: grid; gap: 5px; }
.wk-row { display: grid; grid-template-columns: 72px repeat(7, 1fr); gap: 5px; align-items: center; }
.wk-head span { text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.wk-head span.now { color: var(--wine); }
.wk-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.cell { display: grid; place-items: center; height: 34px; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--line); color: var(--ink-soft); }
.cell.full { background: var(--sage-deep); color: #fff; font-size: 15px; }
.cell.part { background: #e8d9a8; color: #6b5316; }
.cell.zero { background: #ecc9c9; color: var(--wine); }
.cell.future, .cell.none { background: transparent; border: 1px dashed var(--line); }
.ptlist { display: grid; gap: 10px; }
.pt { display: grid; grid-template-columns: 72px 1fr 34px; align-items: center; gap: 8px; }
.pt-name { font-weight: 700; font-size: 15px; }
.pt-bar { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pt-bar > span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.pt-n { text-align: right; font-size: 17px; }
.pt-s { grid-column: 2 / 4; margin-top: -6px; color: var(--ink-soft); font-size: 13px; }
.extra { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.extra > span { flex: 1; min-width: 0; }
.extra small { color: var(--ink-soft); }
.extra b { color: var(--sage-deep); }
.extra .x { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--ink-soft); padding: 4px 8px; }
.pv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pv { width: 64px; min-height: 40px; text-align: center; font: inherit; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.pv.saved { border-color: var(--sage-deep); background: #e3ecdf; }

/* groups */
.gbar { margin: 0 0 16px; }
.gtop { display: flex; align-items: center; gap: 10px; }
.gtop h2 { flex: 1; margin: 0; font-size: 22px; text-align: center; }
.seg { display: flex; gap: 6px; margin-top: 12px; padding: 4px; background: var(--line); border-radius: 12px; }
.seg-b { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink-soft); }
.seg-b.on { background: var(--card); color: var(--sage-deep); box-shadow: 0 1px 3px rgba(59,42,30,.15); }
.group-card { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 4px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; }
.group-open { flex: 1; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.group-open strong { font-family: 'Young Serif', serif; font-weight: 400; font-size: 19px; }
.group-open small { color: var(--ink-soft); font-size: 14px; }
.mem-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mem-name { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.mem-post { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.mem-row input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--sage-deep); }
.tabs-inner .tab { font-size: 12px; }

/* albums */
.album-card { border-left-color: var(--gold); }
.album-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.album { display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 10px; }
.album img, .album-empty { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; background: var(--line); display: block; margin-bottom: 6px; }
.album strong { font-family: 'Young Serif', serif; font-weight: 400; font-size: 16px; padding: 0 4px; }
.album small { color: var(--ink-soft); font-size: 13px; padding: 0 4px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.thumb { padding: 0; border: 0; background: var(--line); aspect-ratio: 1; border-radius: 4px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: #130d08; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.lightbox img { max-width: 100%; max-height: calc(100% - 130px); object-fit: contain; }
.lb-top, .lb-nav { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; }
.lb-top { top: env(safe-area-inset-top); }
.lb-nav { bottom: env(safe-area-inset-bottom); padding-bottom: 18px; }
.lb-who { color: #e9dfc9; font-size: 15px; flex: 1; }
.lb-btn { min-height: 44px; padding: 0 18px; border: 1.5px solid #8a7a62; border-radius: 99px; background: transparent; color: #f5eedf; font: inherit; font-weight: 700; }
.lb-btn[hidden] { display: none; }

/* tagging */
.tagpick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tagchip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 4px 14px 4px 6px; border: 1.5px solid var(--line); border-radius: 99px; background: var(--paper); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; }
.tagchip[aria-pressed="true"] { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.with { color: var(--sage-deep); font-weight: 600; font-size: 15px; }

.group-link { border-left-color: var(--sage); }

.bar[hidden] { display: none; }
button.mount { width: 100%; padding: 0; border: 0; cursor: zoom-in; font: inherit; }
.lightbox img { touch-action: pinch-zoom; }

.duty-note { background: var(--sage-deep); color: #fff; border-radius: 16px; padding: 14px 16px; margin: 10px 0 6px; font-weight: 600; font-size: 17px; }
.duty-note p { margin: 0; }
.duty-note p + p { margin-top: 6px; }

/* math catch-up */
.math-link { margin: 8px 0 4px; }
.math-cards { display: grid; gap: 12px; margin-top: 14px; }
.math-card, .math-sum { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.math-sum { margin: 10px 0 14px; }
.mc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mc-name { font-family: var(--display); font-size: 19px; }
.mpill { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: #e9e1cf; color: var(--ink-soft); }
.mpill.ok { background: #dfeadb; color: var(--sage-deep); }
.mpill.warn { background: #f6e6c2; color: #8a5a0a; }
.mpill.bad { background: #f3d6d6; color: var(--wine); }
.mbar { position: relative; height: 14px; background: #e3d8c3; border-radius: 8px; margin: 12px 0 8px; }
.mfill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--sage); border-radius: 8px; }
.mshould { position: absolute; top: -4px; bottom: -4px; width: 4px; margin-left: -2px; background: var(--gold); border-radius: 2px; }
.mc-nums { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); }
.mc-nums b { color: var(--ink); }
.mc-catch { margin-top: 10px; font-size: 14px; font-weight: 700; color: #8a5a0a; }
.mweek { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 10px; }
.mweek.off { background: transparent; border-style: dashed; color: var(--ink-soft); }
.mweek h3 { margin: 0; font-size: 16px; }
.mweek-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 13px; color: var(--ink-soft); }
.mdays { display: grid; gap: 4px; }
.mday { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 1px 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); min-width: 0; }
.mday .dn { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); font-weight: 700; }
.mday .dd { font-size: 13px; font-weight: 700; }
.mday .goal { font-size: 12px; font-weight: 700; text-align: center; }
.mday .goal.small { font-size: 10px; color: var(--ink-soft); font-weight: 600; }
.mday .tag { font-size: 9px; font-weight: 700; text-transform: uppercase; color: var(--ink-soft); }
.mday input { width: 24px; height: 24px; margin: 0; accent-color: var(--sage-deep); }
.mday.done { background: #dfeadb; border-color: var(--sage); }
.mday.today { border: 2px solid var(--gold); }
.mday.missed { background: #f7e1e1; border-color: #d9a3a3; }
.mday.missed .tag { color: var(--wine); }
.mday.sat { background: #fbf0cf; }
.mday.buf { border-style: dashed; }
.mday.hol { opacity: .65; border-style: dashed; }

.daily-tabs { display: flex; background: #e9e1cf; border-radius: 12px; padding: 3px; margin: 4px 0 8px; }
.daily-tabs button { flex: 1; border: 0; background: transparent; font: inherit; font-weight: 700; color: var(--ink-soft); padding: 9px 0; border-radius: 10px; }
.daily-tabs button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(59,42,30,.15); }

.reacts { display: flex; gap: 6px; margin-top: 6px; }
.react { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 3px 9px; font-size: 14px; line-height: 1.3; color: var(--ink-soft); }
.react span { font-size: 12px; font-weight: 700; }
.react.on { background: #dfeadb; border-color: var(--sage); color: var(--ink); }

.react-wrap { position: relative; display: inline-block; }
.react.add { color: var(--ink-soft); }
.react-pop { display: none; position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 5; gap: 4px; padding: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 4px 14px rgba(59,42,30,.2); }
.react-pop.open { display: flex; }
.react-pop .react { border: 0; font-size: 20px; padding: 4px 7px; }
.reacts { align-items: center; flex-wrap: wrap; }

.comment.reply { margin-left: 34px; }
.comment .to { font-style: normal; font-weight: 600; font-size: 12px; color: var(--ink-soft); }
.comment .reply-btn { display: inline-block; margin: 6px 0 0; padding: 0; font-weight: 700; }
.reply-box .comment-form { margin: 8px 0 2px; }

.reading { margin-top: 6px; }
.book-row { margin-top: 8px; }
.book-row input { width: 100%; border-radius: 12px; padding: 10px 14px; }
.par-sum { display: flex; gap: 8px; margin: 10px 0 14px; }
.par-sum div { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; }
.par-sum b { display: block; font-family: var(--display); font-size: 24px; }
.par-sum span { font-size: 12px; color: var(--ink-soft); }
.par-cards { display: grid; gap: 12px; }
.par-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.par-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font-size: 15px; }
.par-row > span:last-child { text-align: right; }
.par-k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--ink-soft); }
.par-sub { font-size: 13px; color: var(--ink-soft); text-align: right; margin-top: 2px; }
.par-book { font-size: 13px; color: var(--ink-soft); font-style: italic; margin-top: 2px; text-align: right; }
.par-card .mbar { margin: 8px 0 2px; }

.par-link { display: block; width: 100%; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.par-link:active .par-row { opacity: .6; }

.par-sum4 b { font-size: 22px; }
.par-sum4 { margin-bottom: 12px; }
.par-sum4 div { padding: 10px 2px; }
.par-card + .par-cards { margin-top: 12px; }
.seen.away { color: var(--wine); font-weight: 700; }

/* compact family list */
.people { grid-template-columns: 1fr; gap: 8px; }
.person { flex-direction: row; justify-content: flex-start; text-align: left; gap: 12px; padding: 8px 12px; border-radius: 14px; }
.person .avatar { width: 40px; height: 40px; font-size: 18px; flex: none; }
.person strong { font-size: 16px; }
.person small { margin-left: auto; font-size: 12px; }
.small-link { display: block; margin: 18px auto 0; font-size: 13px; color: var(--ink-soft); }

.prayer-card { border-left-color: var(--ink-soft); }
.prayer { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; }
.prayer summary { font-family: var(--display); font-size: 19px; cursor: pointer; }
.prayer-body { white-space: pre-wrap; margin: 10px 0 12px; line-height: 1.55; }

.lang-tabs { margin: 10px 0 4px; }

.rosary-btn { width: 100%; margin: 10px 0 14px; padding: 16px; font-size: 18px; }
.rosary-sets { margin: 8px 0 12px; }
.rosary-list ol { margin: 8px 0 0 20px; padding: 0; line-height: 1.7; }
.rosary-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rosary-top .lang-tabs { margin: 0; }
.rosary-bar { height: 6px; border-radius: 3px; background: var(--line); margin: 12px 0 8px; overflow: hidden; }
.rosary-bar span { display: block; height: 100%; background: var(--ink-soft); }
.rosary-phase { margin: 0 0 6px; font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.rosary-dots { display: flex; gap: 8px; margin-bottom: 10px; }
.rosary-dots span { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink-soft); }
.rosary-dots .done { background: var(--ink-soft); }
.rosary-dots .now { background: var(--card); box-shadow: 0 0 0 3px var(--line); }
.rosary-mystery { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.rosary-mystery small { color: var(--ink-soft); font-size: 14px; }
.rosary-mystery strong { font-family: var(--display); font-size: 22px; }
.rosary-mystery span { font-size: 13px; color: var(--ink-soft); }
.rosary-card h3 { margin: 0 0 6px; font-family: var(--display); font-size: 22px; }
.rosary-count { font-size: 16px; color: var(--ink-soft); font-family: inherit; }
.rosary-card .prayer-body { font-size: 18px; }
.rosary-words summary { font-size: 15px; color: var(--ink-soft); cursor: pointer; }
.rosary-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 12px; }
.rosary-nav .btn { padding: 16px; font-size: 18px; }
.rosary-top .lang-tabs { width: 190px; flex: none; }

.today-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; }
.today-card h3 { margin: 0 0 6px; font-family: var(--display); font-size: 17px; color: var(--ink-soft); font-weight: 400; }
.today-card p { margin: 4px 0; }
.today-big { font-family: var(--display); font-size: 22px; }
.today-big small { display: block; font-family: inherit; font-size: 14px; color: var(--ink-soft); }
.today-ev { line-height: 1.35; }
.meal-row { display: flex; gap: 10px; align-items: baseline; }
.meal-row b { flex: none; width: 5.6em; font-weight: 600; color: var(--ink-soft); }
.meal-row.tonight span { font-weight: 600; }
.meal-row .none { color: var(--ink-soft); opacity: .6; }
.event .linkbtn + .linkbtn { margin-left: 22px; }
.rosary-refl { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; margin: 0 0 12px; }
.rosary-refl summary { cursor: pointer; font-weight: 600; color: var(--sage-deep); }
.rosary-refl p { margin: 10px 0 0; line-height: 1.55; }
.rosary-fruit { color: var(--ink-soft); font-size: 15px; }
.meal-day { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; display: grid; gap: 8px; }
.meal-head { display: flex; justify-content: space-between; align-items: baseline; }
.meal-head span { color: var(--ink-soft); font-size: 14px; }
.meal-cooklab { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.meal-cooklab select { flex: 1; min-width: 0; }
.meal-cook { color: var(--ink-soft); font-weight: 400; }
.meal-day p { margin: 0; }
.feast-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 8px 14px; margin-bottom: 8px; border-left: 4px solid var(--gold); background: var(--card); border-radius: 0 10px 10px 0; }
.feast-row span { color: var(--ink-soft); font-size: 14px; }
.day-feast { display: block; margin-top: 2px; font-family: var(--body); font-size: 14px; font-weight: 400; color: var(--wine); }
p.day-feast { margin: 0 0 8px; }
.today-feast { font-size: 17px; margin: 0 0 10px; padding: 8px 12px; border-left: 4px solid var(--gold); background: var(--card); border-radius: 0 10px 10px 0; }
.season-chip { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 2px 10px 2px 8px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 700; vertical-align: 1px; white-space: nowrap; }
.season-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--season, var(--line)); }

/* ---------- Liturgical season color: green, violet, rose, white (shown as gold) and red ---------- */
:root[data-season="green"] { --season: #4f6a4c; }
:root[data-season="violet"] { --season: #5b3f7a; }
:root[data-season="rose"] { --season: #c77d93; }
:root[data-season="white"] { --season: #cdae5a; }
:root[data-season="red"] { --season: #8b2e3a; }
:root[data-season] .top { border-bottom: 4px solid var(--season); }
:root[data-season] .tab[aria-current="page"]::after { width: 36px; background: var(--season); }
:root[data-season] .today-feast { border-left-color: var(--season); }
.today-ev.feast { color: var(--ink-soft); }
.prayer-cat { margin: 18px 0 8px; font-family: var(--display); font-size: 15px; font-weight: 400; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.prayer-tools { margin-top: 8px; flex-wrap: wrap; gap: 8px; }
.prayer-search { margin: 14px 0 4px; }
.prayer-hint { margin: 0 0 4px; }
.prayer summary:has(> .prayer-star) { display: flex; align-items: center; gap: 8px; }
.prayer summary > .prayer-title { flex: 1; min-width: 0; }
.prayer-star { float: right; margin: -8px -10px -8px 8px; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.prayer-star.on { color: var(--gold); }
.photo-month { margin: 20px 0 8px; font-family: var(--display); font-size: 18px; font-weight: 400; color: var(--ink-soft); }

.readings-link { margin: 8px 0 12px; }
.readings-link a { text-decoration: none; display: inline-block; }
.hs-list { list-style: none; margin: 6px 0 0; padding: 0; }
.hs-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hs-list li small { color: var(--ink-soft); display: block; }
.hs-st { font-size: 13px; font-weight: 700; }
.hs-st.present { color: var(--sage-deep); }
.hs-st.absent { color: var(--wine); }
.keep-row { margin-top: 10px; }
.keep-row span { text-align: left; font-size: 14px; }
.keep-book { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 12px; }
.keep-book figure { margin: 0; }
.keep-book img { width: 100%; height: auto; border-radius: 10px; display: block; }
.keep-book figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
@media (min-width: 700px) { .keep-book { grid-template-columns: 1fr 1fr; } }
@media print {
  header.top, nav.tabs, .keep-noprint, .toast { display: none !important; }
  body, main { background: #fff !important; }
  .keep-book { grid-template-columns: 1fr 1fr; gap: 10px; }
  .keep-book figure { break-inside: avoid; }
  h2.day { margin: 0 0 8px; }
}
.feat-state { color: var(--ink-soft); }
.feat-state.on { color: var(--sage-deep); }

/* Advice page */
.adv-field { display: block; width: 100%; box-sizing: border-box; margin: 8px 0; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--card, #fbf6ec); border: 1px solid var(--line, #e3d9c4); border-radius: 14px; }

/* Prayer requests */
.pr-item { border-left: 4px solid var(--sage-deep, #4f6b4c); }
.pr-item.pr-soon { border-left-color: #c8891f; background: #fbf1dc; }
.pr-item.pr-pinned { border-left-color: var(--gold, #b8933f); }

.pr-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 16px; }
.pr-actions .btn { flex: 0 1 auto; padding: 8px 12px; font-size: 0.9rem; min-height: 0; }

/* Family page: people strip, grouped rows, settings */
.people-strip { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px 6px; padding: 2px 16px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.people-strip::-webkit-scrollbar { display: none; }
.chip-person { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; }
.chip-person .avatar { width: 56px; height: 56px; font-size: 24px; }
.chip-person strong { font-size: 14px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-person small { font-size: 11px; color: var(--ink-soft); margin-top: -3px; }
.fam-group { margin: 0 0 18px; }
.fam-head { font-family: var(--body); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px 4px; }
.fam-list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fam-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 14px; background: none; border: 0; border-top: 1px solid var(--line); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.fam-row:first-child { border-top: 0; }
.fam-row:active { background: var(--paper); }
.fam-row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fam-row strong { font-family: var(--display); font-weight: 400; font-size: 17px; }
.fam-row small { color: var(--ink-soft); font-size: 14px; }
.fam-row > b { color: var(--ink-soft); font-size: 22px; font-weight: 400; }
.feat-group { margin: 16px 0 0; }
.feat-group .mem-row { justify-content: flex-start; }
.feat-sub { padding-left: 28px; }
.feat-note { display: block; font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.feat-sub input[type=checkbox] { align-self: flex-start; margin-top: 2px; }
.feat-group .mem-row input[type=checkbox] { align-self: flex-start; margin-top: 2px; flex: none; }
.feat-note { margin-top: 2px; line-height: 1.35; }
.feat-warn { color: var(--wine); }

/* ---------- Recipe box ---------- */
.recipe-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 14px; background: none; border: 0; border-top: 1px solid var(--line); font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.recipe-row:first-child { border-top: 0; }
.recipe-row:active { background: var(--paper); }
.recipe-row img, .recipe-nophoto { flex: none; width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.recipe-nophoto { font-style: normal; display: grid; place-items: center; background: #e9e1cf; color: var(--sage-deep); font-family: var(--display); font-size: 22px; }
.recipe-row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.recipe-row strong { font-family: var(--display); font-weight: 400; font-size: 17px; }
.recipe-row small { color: var(--ink-soft); font-size: 14px; }
.recipe-row > b { color: var(--ink-soft); font-size: 22px; font-weight: 400; }
.recipe-row > b.recipe-fav { color: var(--gold); font-size: 18px; }
.recipe-hero { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 14px; margin: 12px 0 4px; }
.recipe-head { margin: 8px 0 10px; }
.recipe-head .prayer-star { margin-top: 0; }
.recipe-scale { margin-top: 6px; }
.recipe-scale button.on { color: var(--gold); }
.recipe-peoplelab { font-weight: 400; display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 15px; margin: 4px 0 6px; }
.recipe-peoplelab .recipe-people { flex: none; width: 84px; margin: 0; padding: 8px 10px; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.recipe-ings { list-style: none; margin: 0; padding: 4px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.recipe-ings li { border-top: 1px solid var(--line); }
.recipe-ings li:first-child { border-top: 0; }
.recipe-ings label { font-weight: 400; margin: 0; display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; font-size: 17px; line-height: 1.4; cursor: pointer; }
.recipe-ings input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--sage-deep); }
.recipe-ings input:checked + span { color: var(--ink-soft); text-decoration: line-through; }
.recipe-sub { padding: 12px 0 4px; font-family: var(--display); color: var(--sage-deep); }
.recipe-asis { color: var(--ink-soft); font-size: 13px; }
.recipe-tip { display: block; color: var(--wine); font-size: 14px; }
.recipe-note { margin: 8px 2px 0; }
.recipe-steps { margin: 0; padding: 4px 14px 4px 34px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.recipe-steps li { padding: 8px 0; line-height: 1.55; font-size: 17px; }
.recipe-steps li::marker { color: var(--gold); font-family: var(--display); }
.recipe-notes { white-space: pre-wrap; margin: 0; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 14px; font-style: italic; }

.lb-heart { font-size: 20px; line-height: 1; }
.lb-heart.on { color: #e5736b; }
.thumb { position: relative; }
.thumb-heart { display: none; position: absolute; right: 5px; bottom: 3px; color: #fff; font-size: 16px; line-height: 1; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.thumb.faved .thumb-heart { display: block; }

/* shared lists */
.list-add { display: flex; gap: 8px; margin: 10px 0 14px; }
.list-add input { flex: 1; min-width: 0; }
.list-item { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid var(--line); }
.list-check { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--sage); background: var(--card); color: #fff; font-size: 18px; line-height: 1; padding: 0; }
.list-item.done .list-check { background: var(--sage-deep); border-color: var(--sage-deep); }
.list-text { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.list-text small { color: var(--ink-soft); font-size: 13px; }
.list-item.done .list-text { color: var(--ink-soft); text-decoration: line-through; }
.list-x { flex: none; width: 40px; height: 40px; font-size: 24px; color: var(--ink-soft); }

/* events: list/month switch and month grid */
.seg { display: flex; margin: 4px 0 10px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.seg button { flex: 1; border: 0; background: none; padding: 8px 0; font-weight: 700; color: var(--ink-soft); }
.seg button.on { background: var(--sage-deep); color: #fff; }
.mo-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; }
.mo-head h2 { font-size: 20px; }
.mo-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 8px; }
.mo-dow { text-align: center; font-size: 13px; color: var(--ink-soft); font-weight: 700; padding: 2px 0; }
.mo-cell { min-height: 48px; border: 0; border-radius: 10px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding: 5px 0 3px; }
.mo-cell.blank { background: none; }
.mo-cell b { font-weight: 600; font-size: 15px; }
.mo-cell.today b { color: var(--wine); }
.mo-cell.pick { outline: 2px solid var(--sage-deep); background: #fff; }
.mo-cell i { display: flex; gap: 3px; min-height: 8px; }
.mo-cell .dot { width: 7px; height: 7px; border-radius: 50%; display: block; }
.dot.ev { background: var(--sage-deep); } .dot.bd { background: var(--gold); } .dot.fe { background: var(--wine); }
a.linkbtn { text-decoration: none; display: inline-block; }

/* problem reports */
.report { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.report.done { opacity: .7; }
.report p { margin: 6px 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.report .meta { color: var(--ink-soft); font-size: 14px; }
.report-shot { max-width: 100%; max-height: 260px; border-radius: 10px; display: block; margin: 6px 0; }

.update-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--sage-deep); color: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 4px 16px rgba(59, 42, 30, .25); }
.update-bar button { background: var(--card); color: var(--ink); border: 0; border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 700; min-height: 40px; }

.alert-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 17px; }
.alert-row input { width: 22px; height: 22px; flex: none; }
.quiet-times { display: flex; align-items: center; gap: 10px; padding: 0 0 8px 34px; }
.quiet-times[hidden] { display: none; }
.quiet-times input { width: auto; }

.forgot { margin-top: 14px; text-align: center; }

/* ---------- Homeschool lesson plans: week view, push back, co-op ---------- */
.hs-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 14px; }
.hs-actions .btn { flex: 1 1 140px; }
.hs-card-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.hs-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f3e8cc; border: 1px solid #e2cf9f; border-radius: 12px; padding: 8px 14px; margin: 0 0 12px; font-size: 15px; }
.hs-banner .linkbtn { flex: none; }
.hs-week-nav { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; }
.hs-week-nav strong { flex: 1; text-align: center; font-family: var(--display); font-weight: 400; font-size: 18px; }
.hs-week-nav .btn { min-width: 48px; font-size: 20px; line-height: 1; }
.hint.center { text-align: center; }
.hs-chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 4px; scrollbar-width: none; }
.hs-chips::-webkit-scrollbar { display: none; }
.hs-chips .tagchip { flex: none; padding: 4px 16px; }
.hs-day { margin-top: 18px; }
.hs-day h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 18px; }
.hs-day.today h3 { color: var(--sage-deep); }
.hs-day.today h3::before { content: 'Today'; order: 2; margin-left: auto; font-family: var(--body); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.hs-day h3 .linkbtn { order: 3; color: var(--sage-deep); }
.hs-behind h3 { color: var(--wine); }
.hs-lessons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hs-lesson { display: flex; align-items: flex-start; gap: 12px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--tint, var(--sage)); border-radius: 12px; padding: 10px 12px; }
.hs-lesson input[type=checkbox] { flex: none; width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--sage-deep); }
.hs-open { flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.hs-subj-name { display: block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--tint, var(--sage-deep)); }
.hs-open strong { display: block; font-weight: 700; overflow-wrap: anywhere; }
.hs-open small { display: block; color: var(--ink-soft); font-size: 14px; overflow-wrap: anywhere; }
.hs-lesson.done { background: #eef3ea; }
.hs-lesson.done strong { color: var(--ink-soft); text-decoration: line-through; }
.hs-late { color: var(--wine); font-weight: 700; }
.hs-coop-tag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 99px; background: #efe3c4; color: #7a5d1f; font-size: 11px; font-weight: 800; letter-spacing: .04em; vertical-align: 1px; }
.hs-coop-card { border-left: 5px solid var(--tint, var(--sage)); }
.hs-coop-card .hs-lessons { margin-top: 8px; }
.hs-kidpick .mem-row { margin: 0; font-weight: 600; justify-content: flex-start; }
.hs-subjects { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.hs-subj { display: inline-flex; align-items: center; gap: 2px; padding: 2px 2px 2px 12px; border: 1.5px solid var(--tint); border-radius: 99px; background: var(--card); font-size: 15px; font-weight: 600; }
.hs-x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--ink-soft); font-size: 20px; line-height: 1; }
.hs-add { display: flex; gap: 8px; align-items: center; }
.hs-add input { flex: 1; min-width: 0; }

/* ---------- Daily schedule ---------- */
.sched-day summary { font-family: var(--display); font-size: 17px; color: var(--ink-soft); cursor: pointer; }
.sched-line { display: flex; gap: 12px; margin: 6px 0; }
.sched-line b { flex: none; width: 82px; color: var(--sage-deep); }
.sched-line small { color: var(--ink-soft); }
.sched-line.past { opacity: .5; }
.sched-line.mine span { font-weight: 700; }
.sched-line.mine span small { font-weight: 600; color: var(--sage-deep); }
.sched-glide { overflow: hidden; }
.sched-glide > div { will-change: transform; }
.sched-line.now { background: #efe3c2; border-radius: 8px; padding: 4px 6px; margin-left: -6px; }
.sched-tabs { display: flex; background: #e9e1cf; border-radius: 12px; padding: 3px; margin: 8px 0; }
.sched-tabs button { flex: 1; border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink-soft); padding: 9px 0; border-radius: 10px; }
.sched-tabs button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(59,42,30,.15); }
.sched-row { display: flex; gap: 14px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; }
button.sched-row { cursor: pointer; }
.sched-time { flex: none; width: 80px; font-weight: 800; color: var(--sage-deep); display: flex; flex-direction: column; }
.sched-time small, .sched-title small { font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.sched-title { display: flex; flex-direction: column; }
.sched-times { display: flex; gap: 12px; }
.sched-times > div { flex: 1; }
.sched-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.sched-chip { font: inherit; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.sched-chip.on { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }

/* ---------- Printables: shared look (cream paper, one color per person, serif titles) ---------- */
.sched-print, .board-print { display: none; }
@media print {
  .cc { --tone: #2f5a3f; }
  .pt-green { --tone: #2f5a3f; } .pt-rust { --tone: #b4573a; } .pt-plum { --tone: #6e4a66; } .pt-blue { --tone: #3e5a78; }
  .pt-gold { --tone: #c49a2e; } .pt-teal { --tone: #2f7a78; } .pt-rose { --tone: #d9798f; } .pt-sage { --tone: #8fb79a; }
  .pr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 4mm; }
  .pr-kicker { margin: 0; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; font-size: 11px; color: #2f5a3f; }
  .pr-head h1 { margin: 1mm 0 0; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.05; color: #26221c; }
  .pr-aside { text-align: right; font-size: 11px; color: #4d453a; max-width: 52%; }
  .pr-aside p { margin: 0 0 2px; }
  .pr-foot { display: flex; justify-content: flex-end; align-items: flex-end; gap: 16px; margin-top: 3mm; }
  .pr-foot em { flex: none; font-family: var(--display); font-style: italic; font-size: 16px; color: #2f5a3f; }

  /* The daily schedule: one landscape page, a column for each set of days that read the same */
  body.printing-sched > *:not(.sched-print) { display: none !important; }
  body.printing-sched { background: #f5eedf; }
  body.printing-sched .sched-print { display: flex; flex-direction: column; height: 196mm; box-sizing: border-box; padding: 2mm 3mm; font-family: var(--body); color: #26221c; }
  .sp-cols { flex: 1; display: flex; gap: 4mm; align-items: stretch; min-height: 0; }
  .sp-col { flex: 1; display: flex; flex-direction: column; background: #fffaf0; border: 1px solid #d9cdb4; border-radius: 8px; overflow: hidden; }
  .sp-col h2 { margin: 0; padding: 7px 12px; background: var(--tone); color: #fff; font-family: var(--body); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
  .sp-col > div { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 6px 12px 10px; }
  .sp-row { display: flex; gap: 12px; margin: 3px 0; font-size: 11.5px; line-height: 1.3; break-inside: avoid; }
  .sp-row b { flex: none; width: 40px; color: var(--tone); }
}

/* ---------- Big screen pages (Desktop View): a side menu and cards side by side. Phones never see this. ---------- */
.sos-card.desk-card-link { border-left-color: var(--sage); }
.desk-nav { display: none; }
.desk-grid { display: grid; gap: 14px; margin-top: 14px; }
.desk-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px 16px; }
.desk-card h3 { margin: 0 0 8px; font-family: var(--display); font-size: 18px; color: var(--ink-soft); font-weight: 400; }
.desk-card p { margin: 4px 0; }
.desk-card > .desk-more { margin-top: auto; align-self: flex-start; }
.desk-card > :nth-last-child(2) { margin-bottom: 14px; }
.desk-alert { border-left: 6px solid var(--wine); border-radius: 6px 14px 14px 6px; }
.desk-line { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.desk-line:first-of-type { border-top: 0; padding-top: 0; }
.desk-line .btn { flex: none; }
.desk-line small { color: var(--ink-soft); }
.desk-people { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 1100px) {
  body.desk #app { max-width: 1280px; padding: 0 24px; display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 32px; }
  body.desk .top { grid-column: 1 / -1; }
  body.desk .tabs { display: none; }
  body.desk main { padding: 8px 0 60px; max-width: 760px; }
  body.desk main:has(.desk-grid, .dash-parts, .hs-students, .feat-groups, .setup-cols, .dsk-grid, .dsk-head, .col-dash) { max-width: none; }
  body.desk .desk-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 76px; align-self: start; padding-top: 26px; }
  .desk-link { text-align: left; border: 0; background: none; padding: 10px 14px; min-height: 46px; border-radius: 10px; font-size: 17px; font-weight: 700; color: var(--ink-soft); }
  .desk-link:hover { background: var(--card); }
  .desk-link[aria-current="page"] { background: var(--card); color: var(--sage-deep); box-shadow: inset 4px 0 0 var(--gold); }
  .desk-link.desk-back { margin-top: 20px; font-size: 15px; font-weight: 600; }
  .desk-link.desk-sub { min-height: 38px; padding: 6px 14px 6px 28px; font-size: 15px; font-weight: 600; }
  .desk-link.desk-sub[aria-current="page"] { box-shadow: inset 4px 0 0 var(--sage); }
  .desk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .desk-wide { grid-column: 1 / -1; }
  body.desk .dash-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; align-items: start; }
  body.desk .dash-part { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px 18px; }
  body.desk .hs-students { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
  body.desk .hs-students .today-card { margin: 0; }
  body.desk .hs-actions .btn { flex: 0 1 auto; }
  body.desk .feat-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  body.desk main:has(.feat-groups) .row, body.desk main:has(.hs-students) input, body.desk main:has(.hs-students) select, body.desk main:has(.hs-students) .mem-row { max-width: 560px; }
}

/* ---------- Homeschool subject pages ---------- */
.hs-subjrow { margin: 4px -16px 8px; padding: 6px 16px; }
.hs-subjbtn { flex: none; min-height: 40px; padding: 4px 16px; border: 1.5px solid var(--tint, var(--sage)); border-radius: 99px; background: var(--card); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; }
.hs-subjbtn.on { background: var(--tint, var(--sage-deep)); color: #fff; }
.hs-subj-title { color: var(--tint, var(--ink)); }
.hs-total { font-family: var(--body); font-size: 15px; font-weight: 800; color: var(--ink-soft); }
.hs-notes li small { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Homeschool courses ---------- */
.mday.blank { visibility: hidden; border: 0; }
.hs-dow button { padding: 9px 0; font-size: 14px; }
.hs-preview { min-height: 1.4em; color: var(--sage-deep); font-weight: 600; }
.hs-today .hs-lesson input[type=checkbox] { width: 30px; height: 30px; }
.hs-big { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.hs-bigbtn { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 88px; padding: 14px 16px; border: 2px solid var(--line); border-left: 8px solid var(--tint, var(--sage)); border-radius: 18px; background: var(--card); color: var(--ink); font: inherit; text-align: left; }
.hs-bigbox { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border: 3px solid var(--tint, var(--sage)); border-radius: 50%; background: var(--paper); font-size: 34px; line-height: 1; color: #fff; }
.hs-big .done .hs-bigbox { background: var(--tint, var(--sage-deep)); }
.hs-big .done .hs-bigbtn { background: #eef3ea; }
.hs-bigtext small { display: block; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tint, var(--sage-deep)); }
.hs-bigtext strong { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.hs-big .done .hs-bigtext strong { color: var(--ink-soft); text-decoration: line-through; }
.hs-allset { margin: 22px 0 4px; text-align: center; font-family: var(--display); font-size: 26px; color: var(--gold); }

/* Homeschool status page */
.hs-prog { margin: 10px 0 4px; font-size: 15px; }
.hs-stat { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; }
.hs-stat button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 10px; border: 1px solid var(--line); border-left: 6px solid var(--tint, var(--sage)); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; text-align: left; }
.hs-stat .hs-bigbox { width: 30px; height: 30px; border-width: 2px; font-size: 19px; }
.hs-stat .done .hs-bigbox { background: var(--tint, var(--sage-deep)); }
.hs-stat .done button { background: #eef3ea; }
.hs-stat small { display: block; font-size: 12px; opacity: .75; }
.hs-stat strong { font-weight: 600; }
.hs-flag { margin: 4px 0; font-size: 14px; color: var(--wine); }
.hs-daybar { margin: 6px 0 10px; }
.hs-daybar .hs-prog { margin: 0 0 6px; font-size: 17px; }
.hs-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hs-cardhead h3 { margin: 0; }
.hs-summary { margin: 4px 0 12px; font-size: 16px; }
.hs-rowlinks { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }

/* ---------- chore setup (admin) ---------- */
.setup-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setup-slot { margin: 14px 0 6px; font-family: var(--body); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.setup-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 14px; margin-bottom: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.sr-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sr-t { overflow-wrap: break-word; }
.sr-main small { color: var(--ink-soft); font-size: 14px; }
.sr-btns { display: flex; align-items: center; gap: 4px; flex: none; }
.sr-arrow { width: 44px; height: 44px; padding: 0; font-size: 15px; color: var(--sage-deep); background: transparent; border: 0; border-radius: 10px; }
.sr-arrow[disabled] { opacity: .3; }
.setup-more { gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.days { display: flex; gap: 6px; }
.day-btn { flex: 1; min-height: 46px; font-weight: 800; color: var(--sage-deep); background: transparent; border: 1.5px solid var(--sage); border-radius: 10px; }
.day-btn.on { background: var(--sage-deep); color: #fff; border-color: var(--sage-deep); }
.days-quick { display: flex; gap: 16px; margin-top: 6px; }
.days-quick .linkbtn { min-height: 40px; }
@media (min-width: 1100px) {
  .setup-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
  .setup-cols .setup-person { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 16px; }
  .setup-cols .setup-row { background: #fff; }
  body.desk .desk-tabs { max-width: 380px; }
}
.sched-more { margin: 4px 0; font-size: 14px; }
.sched-head { display: flex; align-items: center; justify-content: space-between; }
.sched-head h3 { margin: 0; }
.sched-foot { margin-top: 8px; }
.sched-flip { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--sage-deep); display: grid; place-items: center; cursor: pointer; }
.sched-flip svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.sched-flip.open svg { transform: rotate(180deg); }
/* Feed tabs, like folder tabs: the open one joins the line under it */
.gstrip { display: flex; gap: 4px; margin: 0 0 16px; padding: 0 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 2px solid var(--sage-deep); }
.gstrip::-webkit-scrollbar { display: none; }
.gchip { flex: none; min-height: 40px; margin-bottom: -2px; padding: 0 18px; border: 1px solid var(--line); border-bottom: 2px solid var(--sage-deep); border-radius: 12px 12px 0 0; background: #e2dccd; font: inherit; font-weight: 600; font-size: 15px; color: #8b8372; cursor: pointer; }
.gchip.on { background: var(--bg, #f5eddc); border-color: var(--sage-deep); border-bottom-color: var(--bg, #f5eddc); font-weight: 700; color: var(--sage-deep); box-shadow: 0 -2px 0 var(--sage-deep) inset; }
.today-line { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 10px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.today-line b { flex: none; font-family: var(--display); font-weight: 400; font-size: 17px; color: var(--ink-soft); }
.today-line span { flex: 1; }
.today-line i { font-style: normal; font-size: 22px; color: var(--ink-soft); }
.dinner-head { display: flex; align-items: center; justify-content: space-between; }
.dinner-head h3 { margin: 0 0 6px; }
.dinner-head span { display: flex; gap: 6px; }
.dinner-step { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.dinner-step:disabled { opacity: .35; cursor: default; }
.ty-sub { margin: 12px 0 2px; font-family: var(--display); font-weight: 400; font-size: 15px; color: var(--ink-soft); }
.ty-list { list-style: none; margin: 0; padding: 0; }
.ty-row button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.ty-row small { display: block; color: var(--ink-soft); font-size: 13px; }
.ty-row.late small { color: var(--bad, #a13d2d); }
.ty-row.done strong { text-decoration: line-through; color: var(--ink-soft); font-weight: 400; }
/* Chore swaps on Today */
.ty-row.has-swap { display: flex; flex-wrap: wrap; align-items: center; }
.ty-row.has-swap > button:first-child { flex: 1; width: auto; }
.ty-row .ty-swap { width: auto; min-height: 36px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 18px; font-size: 14px; color: var(--sage-deep); }
.swap-pick { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 0 10px 52px; }
.swap-pick[hidden] { display: none; }
.swap-pick small { flex-basis: 100%; }
.ty-row .swap-pick button { width: auto; min-height: 40px; }
.swap-ask p { margin: 0 0 8px; }
.swap-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.today-school { list-style: none; margin: 4px 0 6px; padding: 0; }
.today-school li { display: flex; flex-direction: column; margin: 8px 0; }
.today-school small { color: var(--ink-soft); font-size: 13px; }
.today-school li.late small { color: var(--bad, #a13d2d); }
.ty-row .hs-bigbox { width: 40px; height: 40px; font-size: 24px; border-color: var(--sage-deep); }
.ty-row.done .hs-bigbox { background: var(--sage-deep); }

/* School identity heading: logo, name, patron saint and motto */
.school-id { display: flex; align-items: center; gap: 14px; margin: 4px 0 6px; }
.school-id .day { margin: 0; }
.school-logo { width: 64px; height: 64px; flex: none; }
.school-saint { margin: 2px 0 0; font-size: .85rem; color: var(--muted, #6b6258); }
.school-motto { margin: 2px 0 0; font-style: italic; font-size: .9rem; }
.guided-card { padding: 4px 16px 10px; margin: 6px 0 14px; }
.guided-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.guided-row:first-of-type { border-top: 0; }
.guided-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.guided-text small { color: var(--ink-soft); font-size: 13px; }
.guided-star { margin: 0; flex: none; }
.litany p { margin: 0 0 8px; }
.prayer-count { margin-left: auto; color: var(--ink-soft); font-size: 14px; }
.prayer-all > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; padding: 12px 2px; border-bottom: 2px solid var(--line); min-height: 44px; }
.prayer-all > summary::-webkit-details-marker { display: none; }
.prayer-all > summary .prayer-cat { margin: 0; }
.prayer-all > summary::after { content: '▸'; color: var(--ink-soft); order: 3; }
.prayer-all[open] > summary::after { content: '▾'; }

/* Switch person list */
.switch-list { display: grid; gap: 8px; margin: 8px 0 12px; }
.switch-row.chip-person { width: 100%; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 8px 10px; border: 1px solid var(--line, #ddd); border-radius: 12px; }
.switch-row small { margin-left: auto; color: var(--ink-soft); }

/* Chore deadlines: late and missed tags */
.due-tag { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.due-tag.late, .due-tag.missed { color: var(--bad, #a13d2d); }
.late-lock { border-left: 4px solid var(--bad, #a13d2d); }

/* The store, laid out like a little shop front */
.shop { margin: 6px 0 18px; }
.shop-awning { position: relative; height: 30px; border-radius: 12px 12px 0 0; background: repeating-linear-gradient(90deg, var(--sage-deep) 0 28px, #e8d9b0 28px 56px); }
.shop-awning::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; background: repeating-linear-gradient(90deg, var(--sage-deep) 0 28px, #e8d9b0 28px 56px);
  -webkit-mask: radial-gradient(circle at 14px 0, #000 13.5px, transparent 14px) 0 0 / 28px 14px repeat-x; mask: radial-gradient(circle at 14px 0, #000 13.5px, transparent 14px) 0 0 / 28px 14px repeat-x; }
.shop-sign { margin: 22px auto 10px; max-width: 260px; text-align: center; padding: 8px 14px 6px; background: var(--card); border: 2px solid var(--gold); border-radius: 12px; box-shadow: 0 2px 0 rgba(184, 144, 63, .35); }
.shop-sign h2 { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 400; color: var(--sage-deep); }
.shop-sign small { display: block; font-size: 13px; color: var(--ink-soft); letter-spacing: .04em; }
.shop-purse { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: 0 auto 14px; padding: 7px 18px; background: #f6e9c4; border: 1px solid var(--gold); border-radius: 999px; color: var(--ink); font-size: 16px; }
.shop-purse b { font-family: var(--display); font-size: 24px; font-weight: 400; color: #8a6820; }
.shop-lock { margin: 0 0 12px; padding: 8px 12px; background: #f7e3df; border-left: 4px solid var(--wine); border-radius: 8px; font-size: 15px; }
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.shop-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 0 var(--line); }
.shop-pic { width: 100%; height: 92px; display: grid; place-items: center; font-size: 52px; line-height: 1; background: radial-gradient(circle at 50% 40%, #fff7e0, #f1e4c2); border-radius: 12px; margin-bottom: 10px; }
.shop-name { font-family: var(--display); font-size: 17px; line-height: 1.2; min-height: 40px; display: grid; place-items: center; max-width: 100%; overflow-wrap: anywhere; }
.shop-price { margin: 8px 0 10px; padding: 3px 12px; background: #f6e9c4; border: 1px solid var(--gold); border-radius: 8px; color: #6e5214; font-size: 14px; }
.shop-price span { font-family: var(--display); font-size: 18px; }
.shop-buy { width: 100%; min-height: 44px; border: 0; border-radius: 12px; background: var(--sage-deep); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.shop-note { color: var(--ink-soft); font-size: 14px; min-height: 44px; display: grid; place-items: center; gap: 2px; }
.shop-undo { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; }
.shop-card.far .shop-pic { filter: saturate(.6); }
@media (min-width: 640px) { .shop-grid { grid-template-columns: repeat(3, 1fr); } }

.shop-boost { text-align: center; font-weight: 700; color: #7a4b00; background: #fff1c9; border-radius: 10px; padding: .4rem .6rem; margin: .5rem 0; }
.shop-cash { grid-column: 1 / -1; }
.shop-cash-row { display: flex; gap: .5rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.shop-cash-row input { width: 5rem; }
.shop-cash-out { font-weight: 700; }

.shop-edit input[type=text] { width: 100%; box-sizing: border-box; text-align: center; font-family: var(--display); font-size: 16px; margin-bottom: 8px; }
.shop-edit textarea, .shop-edit select { width: 100%; box-sizing: border-box; text-align: center; font-family: var(--display); font-size: 16px; margin-bottom: 8px; resize: none; }
.shop-pricebox { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 8px; font-weight: 700; }
.shop-pricebox input { width: 4.5rem; text-align: center; }
.shop-edit-btns { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: auto; }
.shop-add { border-style: dashed; background: transparent; }

.late-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; font-family: var(--display); font-size: 18px; }
.late-fold > summary::-webkit-details-marker { display: none; }
.late-fold > summary::after { content: '\203a'; font-size: 22px; color: var(--ink-soft); transition: transform .2s; }
.late-fold[open] > summary::after { transform: rotate(90deg); }
.late-fold > summary .late-title { flex: 1; }
.late-count { min-width: 1.6em; padding: 1px 8px; text-align: center; border-radius: 999px; background: #f3d9c9; color: #8a3b12; font: 700 14px var(--body, inherit); }
.late-fold[open] > summary { margin-bottom: 10px; }

/* ---------- Printed chore cards: one week card per child, two to a page with a cut line ---------- */
.chart-print { display: none; }
@media print {
  body.printing-chart > *:not(.chart-print) { display: none !important; }
  body.printing-chart { background: #f5eedf; }
  body.printing-chart .chart-print { display: block; font-family: var(--body); color: #26221c; }
  .cc-page { height: 258mm; display: grid; grid-template-rows: 1fr auto 1fr; align-items: start; break-after: page; }
  .cc-cut { padding: 2mm 0; }
  .cc-page:last-child { break-after: auto; }
  .cc { border: 1.5px solid #26221c; border-radius: 12px; overflow: hidden; break-inside: avoid; background: #fffaf0; }
  .cc > header { display: flex; justify-content: space-between; align-items: center; background: var(--tone); color: #fff; padding: 9px 16px; }
  .cc > header h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }
  .cc > header h2 small { font-family: var(--body); font-size: 12px; font-weight: 700; margin-left: 8px; }
  .cc > header span { font-size: 12px; font-weight: 700; }
  .cc-row { display: grid; grid-template-columns: 1.75fr repeat(7, 1fr); gap: 5px; align-items: center; padding: 5px 14px; }
  .cc-head { font-size: 10px; letter-spacing: .1em; font-weight: 800; color: #2f5a3f; text-align: center; padding-top: 10px; }
  .cc-name { font-size: 11px; font-weight: 700; line-height: 1.2; }
  .cc-name small { display: block; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: #2f5a3f; margin-top: 1px; }
  .cc-cell { display: flex; justify-content: center; }
  .cc-box { display: inline-block; width: 6mm; height: 6mm; border: 1.4px solid #26221c; border-radius: 1.5mm; background: #fff; box-sizing: border-box; }
  .cc-box.off { border-style: dashed; border-color: #cfc4ad; background: none; }
  .cc-meal { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 1px solid #b9ad93; background: #efe6d0; border-radius: 6px; padding: 4px 3px; min-height: 16mm; box-sizing: border-box; justify-content: space-between; text-align: center; }
  .cc-meal span { font-size: 8.5px; font-weight: 700; line-height: 1.2; }
  .cc-meal span small { display: block; font-weight: 400; font-size: 7px; }
  .cc-meal.off { border: 1px dashed #b9ad93; background: none; color: #6b5e4e; font-style: italic; font-size: 9px; justify-content: center; }
  .cc-low { display: grid; grid-template-columns: 1.45fr 1fr; gap: 10px; padding: 10px 14px 0; }
  .cc-low > div { border-radius: 8px; padding: 7px 10px; position: relative; }
  .cc-low small, .cc-today small { display: block; font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: #2f5a3f; }
  .cc-reset { background: #e9dfc4; border: 1.6px solid #2f5a3f; }
  .cc-reset strong { display: block; font-family: var(--display); font-weight: 400; font-size: 14px; max-width: 82%; margin-top: 1px; }
  .cc-reset.none strong { font-family: var(--body); font-size: 11px; font-style: italic; color: #6b5e4e; }
  .cc-reset .cc-box { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
  .cc-pray { border: 1px solid #b9ad93; background: #fffaf0; }
  .cc-pray > div { display: flex; justify-content: space-between; margin-top: 3px; }
  .cc-pray span { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 8px; font-weight: 700; }
  .cc-pray .cc-box { width: 4.5mm; height: 4.5mm; }
  .cc-today { margin: 8px 14px 0; border: 1px solid #b9ad93; border-radius: 8px; padding: 5px 10px; min-height: 11mm; }
  .cc > footer { display: flex; justify-content: space-between; align-items: baseline; font-size: 10px; padding: 7px 16px 9px; color: #26221c; }
  .cc > footer em { font-family: var(--display); font-size: 13px; color: #2f5a3f; }
  .cc-cut { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 9px; color: #6b5e4e; }
  .cc-cut::before, .cc-cut::after { content: ''; flex: 1; border-top: 1.5px dashed #9c907a; }
}

/* ---------- Printed chore board: the whole family on one landscape page ---------- */
@media print {
  body.printing-board > *:not(.board-print) { display: none !important; }
  body.printing-board { background: #f5eedf; }
  body.printing-board .board-print { display: flex; flex-direction: column; height: 196mm; box-sizing: border-box; padding: 2mm 3mm; font-family: var(--body); color: #26221c; }
  .fb-week { font-size: 12px; font-weight: 700; color: #26221c; margin-bottom: 4px !important; }
  .fb-body { flex: 1; display: flex; gap: 3mm; min-height: 0; }
  .fb-grid { flex: 1; display: grid; grid-template-columns: 1.1fr repeat(6, 1fr) 1.35fr; gap: 1.6mm; }
  .fb-day { align-self: end; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: #2f5a3f; padding-bottom: 1px; }
  .fb-who { background: var(--tone); color: #fff; border-radius: 7px; padding: 4px 8px; display: flex; flex-direction: column; justify-content: center; }
  .fb-who strong { font-family: var(--display); font-weight: 400; font-size: 17px; line-height: 1.05; }
  .fb-who small { font-size: 9px; font-weight: 700; }
  .fb-job { display: flex; align-items: center; justify-content: center; text-align: center; background: #fffdf7; border: 1px solid #b9ad93; border-radius: 7px; padding: 3px; font-size: 10px; line-height: 1.25; }
  .fb-job.off { background: none; border-style: dashed; font-style: italic; color: #6b5e4e; }
  .fb-reset { display: flex; align-items: center; background: #e9dfc4; border: 1.6px solid #2f5a3f; border-radius: 7px; padding: 3px 8px; font-size: 10px; font-weight: 700; line-height: 1.25; }
  .fb-reset.none { font-weight: 400; font-style: italic; color: #6b5e4e; }
  .fb-sun { width: 33mm; flex: none; background: #2f5a3f; color: #fff; border-radius: 8px; padding: 8px 9px; text-align: center; font-size: 9.5px; line-height: 1.35; display: flex; flex-direction: column; gap: 5px; }
  .fb-sun > small { font-size: 9px; font-weight: 800; letter-spacing: .14em; }
  .fb-sun p { margin: 0; }
  .fb-sun hr { width: 100%; border: 0; border-top: 1px solid rgba(255, 255, 255, .5); margin: 2px 0; }
  .fb-mass { font-family: var(--display); font-size: 17px; line-height: 1.1; }
  .fb-foot { justify-content: space-between; }
  .fb-foot > div { font-size: 9.5px; line-height: 1.45; max-width: 86%; }
}

/* House rules */
.rules-list { margin: 0; padding-left: 26px; }
.rule-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rule-item::marker { color: var(--sage-deep); font-weight: 700; }
.rule-text { display: block; line-height: 1.4; }
.rule-tools { display: flex; gap: 14px; margin-top: 6px; }

/* ---------- Compact look (Settings > Today > Compact look): crisper Today, same colors and headings ---------- */
body.compact main { padding-top: 12px; }
body.compact .today-card, body.compact .today-line {
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 9px 2px; margin-bottom: 0;
}
body.compact .today-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-family: var(--body); font-weight: 700; margin: 0 0 3px; }
body.compact .today-card p { margin: 2px 0; font-size: 15px; line-height: 1.35; }
body.compact .today-big { font-size: 18px; }
body.compact .today-big small { font-size: 13px; }
body.compact .today-ev, body.compact .meal-row { font-size: 15px; line-height: 1.3; }
body.compact .today-line b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-family: var(--body); font-weight: 700; }
body.compact .today-line { gap: 8px; font-size: 15px; }
body.compact .today-line i { font-size: 18px; }
body.compact .today-feast { font-size: 15px; margin-bottom: 6px; padding: 5px 10px; }
body.compact .today-school li { margin: 5px 0; }
body.compact .today-school small { font-size: 12px; }
body.compact .chore { min-height: 40px; margin: 0; padding: 6px 2px; gap: 10px; font-size: 15px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
body.compact .chore .box { width: 22px; height: 22px; border-radius: 6px; }
body.compact .chore .box svg { width: 15px; height: 15px; }
body.compact .chore small { font-size: 12px; }
body.compact .today-card .btn, body.compact .today-line .btn { min-height: 34px; padding: 5px 14px; font-size: 14px; }
body.compact .rosary-btn { margin: 8px 0 10px; padding: 8px 16px; min-height: 38px; font-size: 15px; }

/* ---------- Compact look on every screen ---------- */
body.compact { font-size: 15px; line-height: 1.4; }
body.compact h1 { font-size: 21px; }
body.compact .top { padding-top: calc(6px + env(safe-area-inset-top, 0px)); padding-bottom: 6px; }
body.compact .top h1 { font-size: 20px; }
body.compact .top .gear, body.compact .top .gear svg { width: 38px; height: 38px; }
body.compact .top .gear svg { width: 22px; height: 22px; }
body.compact { --tab-h: 54px; }
body.compact .tab { font-size: 12px; }
body.compact .tab svg { width: 22px; height: 22px; }
body.compact main { padding-left: 14px; padding-right: 14px; }
body.compact .btn { min-height: 38px; padding: 7px 18px; font-size: 15px; }
body.compact .btn.small { min-height: 32px; padding: 4px 13px; font-size: 14px; }
body.compact input[type=text], body.compact input[type=password], body.compact input[type=tel], body.compact input[type=datetime-local], body.compact input[type=date], body.compact input[type=time], body.compact input[type=number], body.compact textarea, body.compact select { padding: 8px 12px; font-size: 15px; min-height: 40px; }
body.compact textarea { min-height: 72px; }
body.compact .hint { font-size: 13px; }
body.compact .section-title { font-size: 17px; margin: 20px 0 4px; }
body.compact .sheet-head h2 { font-size: 20px; }
body.compact .day { font-size: 17px; margin: 18px 0 8px; }
body.compact .post { margin-bottom: 20px; }
body.compact .post-head time { font-size: 13px; }
body.compact .event { padding: 9px 12px; margin-bottom: 8px; border-left-width: 4px; }
body.compact .event h3 { font-size: 16px; }
body.compact .event .meta { font-size: 13px; }
body.compact .thread { padding: 8px 2px; gap: 10px; }
body.compact .thread .last { font-size: 13px; }
body.compact .daily-tabs button { padding: 6px 0; font-size: 14px; }
body.compact .fam-head { font-size: 11px; }
body.compact .fam-row { min-height: 44px; padding: 7px 12px; }
body.compact .fam-row strong { font-size: 15px; }
body.compact .fam-row small { font-size: 12px; }
body.compact .chore-person { padding: 8px 12px; }
body.compact .meal-day { padding: 8px 12px; margin-bottom: 8px; gap: 6px; }
body.compact .dash-h { font-size: 17px; margin: 18px 0 8px; }

/* Today photo banner: a family photo with a soft green-brown fade, the greeting in serif, and the day of the Church year in gold. */
.tbanner { position: relative; min-height: 300px; margin: -4px -2px 14px; border-radius: 16px; overflow: hidden; background: var(--sage-deep, #4f6a4c); color: #faf6ee; display: flex; align-items: flex-end; }
.tbanner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.tbanner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(42,29,18,.28) 0%, rgba(42,29,18,0) 30%, rgba(38,48,31,.7) 68%, rgba(30,42,26,.92) 100%); }
.tbanner-text { position: relative; z-index: 1; padding: 18px; width: 100%; }
.tbanner-text small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #e6cf8f; }
.tbanner-text h2 { margin: 4px 0 2px; font-size: 30px; line-height: 1.1; color: #faf6ee; }
.tbanner-text p { margin: 0 0 12px; font-size: 15px; opacity: .92; }
.sched-note { display: none; }
.tbanner-btn { display: inline-block; margin-top: 10px; padding: 8px 16px; border: 1.5px solid rgba(250,246,238,.8); border-radius: 99px; background: rgba(255,255,255,.14); color: #faf6ee; font-weight: 700; font-size: 14px; text-decoration: none; backdrop-filter: blur(4px); }
.tbanner.nodim::after { background: none; }
.tbanner-live { margin: 8px 0; pointer-events: none; }
.tbanner-live .tbanner { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { padding: 8px 14px; border: 1.5px solid var(--line, #cfc6b0); border-radius: 99px; background: transparent; color: inherit; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--sage-deep, #4f6a4c); border-color: var(--sage-deep, #4f6a4c); color: #faf6ee; }
.tbanner-preview { display: block; width: 100%; max-height: 200px; object-fit: cover; border-radius: 12px; margin: 8px 0; }
body.compact .tbanner { min-height: 220px; }

/* ---------- Compact look, second pass: School, Daily, Store, Prayers, Calendar, Chat, People ---------- */
/* School and Daily */
body.compact .hs-bigbtn { min-height: 64px; padding: 9px 12px; gap: 12px; border-left-width: 6px; }
body.compact .hs-bigbox { width: 40px; height: 40px; border-width: 2px; }
body.compact .hs-bigtext strong { font-size: 18px; }
body.compact .hs-allset { font-size: 20px; margin: 16px 0 4px; }
body.compact .hs-stat button { min-height: 42px; }
body.compact .hs-day h3 { font-size: 16px; }
body.compact .hs-week-nav strong { font-size: 16px; }
body.compact .hs-subjbtn, body.compact .gchip, body.compact .tagchip { min-height: 34px; }
body.compact .day-btn { min-height: 38px; }
body.compact .ty-row button { min-height: 42px; }
body.compact .ty-row .hs-bigbox { width: 32px; height: 32px; font-size: 20px; }
body.compact .chore-head h3 { font-size: 18px; }
body.compact .step-card { padding: 10px 12px; }
body.compact .step-card h3 { font-size: 16px; }
body.compact .math-card, body.compact .math-sum { padding: 10px 12px; }
body.compact .mc-name { font-size: 16px; }
body.compact .par-card { padding: 10px; }
body.compact .par-sum b { font-size: 20px; }
body.compact .par-sum4 b { font-size: 18px; }
body.compact .duty-note { padding: 9px 12px; font-size: 15px; }
body.compact .notice { padding: 9px 12px; border-left-width: 4px; }
body.compact .notice strong { font-size: 16px; }
/* Prayers */
body.compact .prayer summary { font-size: 16px; }
body.compact .rosary-card h3, body.compact .rosary-mystery strong { font-size: 18px; }
body.compact .rosary-card .prayer-body { font-size: 16px; }
body.compact .rosary-nav .btn { padding: 10px; font-size: 16px; }
body.compact .photo-month { font-size: 16px; margin: 14px 0 6px; }
body.compact .prayer-all > summary { padding: 8px 2px; }
body.compact .prayer-star { font-size: 20px; min-width: 40px; min-height: 40px; }
/* Store */
body.compact .shop-sign h2 { font-size: 21px; }
body.compact .shop-purse b { font-size: 20px; }
body.compact .shop-pic { height: 72px; font-size: 42px; }
body.compact .shop-name { font-size: 15px; min-height: 34px; }
body.compact .shop-price span { font-size: 16px; }
body.compact .shop-buy { min-height: 38px; }
body.compact .shop-note { min-height: 38px; font-size: 13px; }
/* Calendar */
body.compact .mo-head h2 { font-size: 17px; }
body.compact .mo-cell { min-height: 40px; }
body.compact .rsvp button { min-height: 36px; }
/* Chat */
body.compact .msg-top h2 { font-size: 21px; }
body.compact .chat-head h2 { font-size: 18px; }
body.compact .chat-pick { font-size: 16px; padding: 7px 12px; }
/* People and profile */
body.compact .profile h2 { font-size: 22px; }
body.compact .person { padding: 12px 8px 10px; }
body.compact .empty { padding: 36px 20px; }
body.compact .empty h2 { font-size: 18px; }
body.compact .late-fold > summary { font-size: 16px; }
body.compact .gtop h2 { font-size: 18px; }
body.compact .sheet { padding-top: 14px; }

/* Compact look: Shop, School, Albums, Guided prayers, delete buttons (2026-11-01) */
body.compact .btn.danger { min-height: 38px; padding: 7px 18px; font-size: 15px; }
body.compact .btn.danger.small { min-height: 32px; padding: 4px 13px; font-size: 14px; }
body.compact .chat-head .btn { flex: none; }
/* Shop */
body.compact .shop { margin: 4px 0 12px; }
body.compact .shop-awning { height: 22px; }
body.compact .shop-sign { margin: 16px auto 8px; padding: 6px 12px 4px; }
body.compact .shop-sign h2 { font-size: 21px; }
body.compact .shop-sign small { font-size: 12px; }
body.compact .shop-purse { margin-bottom: 10px; padding: 5px 14px; }
body.compact .shop-purse b { font-size: 20px; }
body.compact .shop-grid { gap: 10px; }
body.compact .shop-card { padding: 9px 8px 10px; border-radius: 14px; }
body.compact .shop-pic { height: 72px; font-size: 40px; margin-bottom: 7px; }
body.compact .shop-name { font-size: 15px; min-height: 34px; }
body.compact .shop-price { margin: 6px 0 8px; padding: 2px 10px; font-size: 13px; }
body.compact .shop-price span { font-size: 16px; }
body.compact .shop-buy { min-height: 38px; font-size: 15px; }
body.compact .shop-note { min-height: 38px; font-size: 13px; }
/* School */
body.compact .hs-day { margin-top: 14px; }
body.compact .hs-day h3 { font-size: 17px; }
body.compact .hs-lesson { padding: 8px 10px; gap: 10px; }
body.compact .hs-lesson input[type=checkbox] { width: 22px; height: 22px; }
body.compact .hs-open small { font-size: 13px; }
body.compact .hs-subj-name { font-size: 11px; }
body.compact .hs-list li { padding: 6px 0; }
body.compact .hs-week-nav strong { font-size: 16px; }
body.compact .hs-week-nav .btn { min-width: 44px; }
body.compact .hs-actions { margin: 10px 0 12px; }
body.compact .hs-bigbtn { min-height: 72px; padding: 10px 14px; }
body.compact .hs-bigbox { width: 46px; height: 46px; }
body.compact .hs-bigtext strong { font-size: 20px; }
body.compact .hs-allset { font-size: 22px; }
body.compact .hs-stat button { min-height: 44px; }
body.compact .hs-summary { font-size: 15px; }
body.compact .hs-daybar .hs-prog { font-size: 15px; }
/* Albums */
body.compact .album-grid { gap: 10px; }
body.compact .album { padding: 8px; }
body.compact .album strong { font-size: 15px; }
body.compact .album small { font-size: 12px; }
/* Guided prayers */
body.compact .guided-card { padding: 2px 14px 8px; margin: 4px 0 10px; }
body.compact .guided-row { padding: 8px 0; }
body.compact .guided-text small { font-size: 12px; }
body.compact .rosary-nav { margin-top: 10px; }
body.compact .rosary-mystery { margin-bottom: 8px; }

/* ---------- Clean look (Settings > Today > Clean look): white, flat, plain type. Same layout, different skin. ---------- */
body.clean {
  --paper: #ffffff; --card: #f4f6f5; --ink: #222222; --ink-soft: #6f7773; --line: #e3e6e4;
  --sage: #5b8a69; --sage-deep: #3f6b4f; --gold: #3f6b4f; --wine: #b3261e;
  --display: var(--body);
}
body.clean h1, body.clean h2, body.clean h3, body.clean .top h1 { font-weight: 700; letter-spacing: 0; }
body.clean .top { background: var(--sage-deep); border-bottom: 0; color: #fff; }
body.clean .top h1, body.clean .top .gear { color: #fff; }
body.clean .gear-dot { border-color: var(--sage-deep); }
body.clean .today-card, body.clean .today-line { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
body.clean .today-card h3 { font-weight: 700; color: var(--sage-deep); }
body.clean .btn.quiet { border-color: var(--line); }
body.clean .tabs { border-top: 1px solid var(--line); }
body.clean .tab { color: #8a918d; font-weight: 600; }
body.clean .tab svg { stroke-width: 2.2; }
body.clean .tab[aria-current="page"] { color: var(--sage-deep); font-weight: 700; }
body.clean .tab[aria-current="page"] svg { fill: currentColor; fill-opacity: .18; stroke-width: 2.4; }
body.clean .tab[aria-current="page"]::after { display: none; }
body.clean .tbanner { margin-left: -14px; margin-right: -14px; }
/* Feed photos in Clean: level (no tilt), flat, even gaps, same crops for every photo */
body.clean .print, body.clean .post:nth-child(even) .print { transform: none; box-shadow: none; padding: 0; border: 0; background: transparent; }
body.clean .print .mount::after { display: none; }
body.clean .print .mount { background: var(--line); }
body.clean .print .mount img { width: 100%; max-height: none; aspect-ratio: 4 / 3; object-fit: cover; }
body.clean .mount-grid { gap: 2px; }
body.clean .mount-grid.n3 .mount:first-child img { aspect-ratio: 2 / 1; }
body.clean .mount-grid.n2 .mount img, body.clean .mount-grid.n4 .mount img, body.clean .mount-grid.n3 .mount:not(:first-child) img { aspect-ratio: 1; height: auto; }
body.clean .print .cap { margin: 10px 0 0; }
body.clean .print.textonly { padding: 12px 0; border-bottom: 1px solid var(--line); }
/* Sharp corners: everything square in Clean, then put back the true circles (photos, dots, round icon buttons) */
body.clean *, body.clean *::before, body.clean *::after { border-radius: 0; }
body.clean :is(.avatar, .top .who, .top .gear, .gear-dot, .mp-x, .rosary-dots span, .season-chip i, .list-check, .mo-cell .dot, .hs-x, .hs-bigbox, .sched-flip, .dinner-step) { border-radius: 50%; }

/* ---------- Templates page (Settings > Templates): small preview cards ---------- */
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 14px 14px; }
.tpl-card { display: flex; flex-direction: column; gap: 4px; padding: 8px; text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.tpl-card.on { border-color: var(--sage-deep); }
.tpl-card strong { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 15px; }
.tpl-card small { font-size: 12px; color: var(--ink-soft); line-height: 1.3; }
.tpl-on { font-size: 11px; font-weight: 700; color: #fff; background: var(--sage-deep); border-radius: 999px; padding: 1px 8px; }
.tpl-shot { position: relative; height: 150px; border-radius: 8px; overflow: hidden; border: 1px solid #0001; padding: 0 8px; }
.tpl-shot .tpl-bar { margin: 0 -8px 8px; height: 22px; display: flex; align-items: center; gap: 6px; padding: 0 8px; }
.tpl-shot .tpl-bar i { width: 8px; height: 8px; border-radius: 50%; }
.tpl-shot .tpl-bar b { height: 5px; width: 40%; border-radius: 3px; }
.tpl-shot .tpl-hero { height: 34px; border-radius: 6px; margin-bottom: 8px; }
.tpl-shot .tpl-line { height: 6px; border-radius: 3px; margin: 7px 0; }
.tpl-shot .tpl-line.short { width: 60%; }
.tpl-shot .tpl-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; display: flex; justify-content: space-around; align-items: center; }
.tpl-shot .tpl-tabs i { width: 10px; height: 10px; border-radius: 3px; }
.tpl-shot.cream { background: #f5eedf; }
.tpl-shot.cream .tpl-bar { background: #f5eedf; border-bottom: 1px solid #e3d8c3; }
.tpl-shot.cream .tpl-bar i { background: #b8903f; }
.tpl-shot.cream .tpl-bar b { background: #3b2a1e; }
.tpl-shot.cream .tpl-hero { background: #fbf7ee; border: 1px solid #e3d8c3; }
.tpl-shot.cream .tpl-line { background: #e3d8c3; }
.tpl-shot.cream .tpl-tabs { background: #fbf7ee; border-top: 1px solid #e3d8c3; }
.tpl-shot.cream .tpl-tabs i { background: #6b8467; }
.tpl-shot.clean { background: #fff; }
.tpl-shot.clean, .tpl-shot.clean .tpl-hero, .tpl-shot.clean .tpl-bar b, .tpl-shot.clean .tpl-tabs i { border-radius: 0; }
.tpl-shot.clean .tpl-bar i { border-radius: 0; }
.tpl-shot.clean .tpl-bar { background: #3f6b4f; }
.tpl-shot.clean .tpl-bar i { background: #fff; }
.tpl-shot.clean .tpl-bar b { background: #fff; }
.tpl-shot.clean .tpl-hero { background: #f4f6f5; }
.tpl-shot.clean .tpl-line { background: #e3e6e4; border-radius: 0; height: 1px; margin: 12px 0; }
.tpl-shot.clean .tpl-tabs { background: #fff; border-top: 1px solid #e3e6e4; }
.tpl-shot.clean .tpl-tabs i { background: #3f6b4f; }

/* ---------- Clean look: Today redesign ---------- */
/* Both looks: on Today the top bar sits on the photo; other pages keep their normal bar. */
:root body.on-today:not(.desk) .top { position: absolute; left: 0; right: 0; top: 0; background: transparent; border-bottom: 0; z-index: 5; }
body.on-today:not(.desk) .top h1, body.on-today:not(.desk) .top .gear { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
body.on-today:not(.desk) .top .gear { filter: drop-shadow(0 1px 4px rgba(0,0,0,.4)); }
body.on-today:not(.desk) .top .who .avatar { box-shadow: 0 0 0 2px #fff; }
body.on-today:not(.desk) main { padding-top: 0; }
body.clean.on-today:not(.desk) .top h1 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
body.clean .tbanner { margin: 0 -16px 0; min-height: 290px; }
body.clean .tbanner::after { background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 30%, rgba(10,22,14,.74) 100%); }
body.clean .tbanner.nodim::after { background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 25%); }
body.clean .tbanner-text { padding: 0 18px 20px; }
body.clean .tbanner-text small { color: #f0d98f; }
body.clean .tbanner-text h2 { font-size: 32px; margin: 6px 0 10px; letter-spacing: -.01em; }
body.clean .tbanner-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
body.clean .tbanner-row p { margin: 0; display: flex; align-items: center; gap: 8px; }
body.clean .tbanner-row p::before { content: ''; flex: none; width: 10px; height: 10px; background: var(--season, #3f8a5a); border: 1.5px solid #fff; }
body.clean .tbanner-btn { margin: 0; padding: 8px 12px; background: transparent; backdrop-filter: none; font-size: 13px; white-space: nowrap; }
/* The note under the photo runs edge to edge, with a small fork-and-knife mark. */
body.clean .duty-note { margin: 0 -16px; padding: 14px 18px 14px 52px; font-weight: 500; font-size: 15px; line-height: 1.35; background: #2f5d43 no-repeat 18px 50% / 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3v8a3 3 0 0 0 3 3v7M9 3v6M12 3v8a3 3 0 0 1-3 3M18 3c-2 2-3 5-3 8h3v10'/%3E%3C/svg%3E"); }
/* Section rows: small caps headings, full-width dividers. */
body.clean .today-card, body.clean .today-line { margin: 0 -16px; padding: 12px 18px 14px; }
body.clean .today-card h3, body.clean .dinner-head h3 { font-size: 12px; letter-spacing: .14em; font-weight: 800; margin: 4px 0 8px; }
body.clean .today-big { font-size: 19px; font-weight: 700; }
body.clean .today-big small { font-weight: 400; margin-top: 2px; }
body.clean .dinner-head span { gap: 0; }
body.clean .dinner-step { width: 40px; height: 40px; background: #fff; color: var(--sage-deep); font-size: 22px; margin-left: -1px; }
body.clean .dinner-step:disabled { opacity: 1; color: #c5cbc8; }
body.clean .rosary-btn { margin: 20px 0 14px; min-height: 52px; font-size: 17px; background: #2f5d43; }
/* Next up as a timeline: time column, a thin line with square markers, the current block highlighted. */
body.clean .sched-glide { margin: 0 -18px; }
body.clean .sched-line { display: grid; grid-template-columns: 70px 1fr; gap: 0 12px; margin: 0; padding: 0 18px; }
body.clean .sched-line b { width: auto; text-align: right; padding: 11px 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
body.clean .sched-line > span { position: relative; padding: 10px 0 10px 26px; }
body.clean .sched-line > span::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--line); }
body.clean .sched-line > span::after { content: ''; position: absolute; left: 2px; top: 17px; width: 10px; height: 10px; background: #fff; border: 2px solid #b9c2bd; }
body.clean .sched-line.past { opacity: .45; }
body.clean .sched-line.past > span::after { background: #b9c2bd; }
body.clean .sched-line.now { background: var(--card); border-radius: 0; padding: 0 18px; margin: 0; }
body.clean .sched-line.now b { color: var(--sage-deep); font-weight: 800; }
body.clean .sched-line.now > span { font-weight: 700; }
body.clean .sched-line.now > span::after { background: var(--sage-deep); border-color: var(--sage-deep); }
body.clean .sched-note { display: block; font-style: normal; font-size: 13px; font-weight: 600; color: var(--sage-deep); }
/* Bottom menu: slimmer icons, a green bar over the open tab. */
body.clean .tab svg { stroke-width: 1.9; }
body.clean .tab[aria-current="page"] svg { stroke-width: 2.2; }
:root body.clean .tab[aria-current="page"]::after { display: block; top: -1px; left: 22%; right: 22%; width: auto; height: 3px; background: var(--sage-deep); }

body.clean .today-card .sched-line { margin: 0; }
body.clean .dinner-head .dinner-step { border-radius: 0; }
body.clean .tbanner-row p::before { filter: brightness(1.6) saturate(1.2); }
/* Pray the Rosary: ten beads and a crucifix beside the words. The figure takes the button color so it shows on the white cross. */
.rosary-btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.rosary-ic { flex: none; width: 21px; height: 27px; fill: currentColor; }
.rosary-ic .corpus { fill: var(--sage-deep); }
.rosary-btn:active .rosary-ic .corpus { fill: var(--sage); }
body.clean .rosary-ic .corpus { fill: #2f5d43; }

/* ---------- Cream look: Today redesign (same ideas as Clean, warm and rounded) ---------- */
body:not(.clean) .tbanner { margin: 0 -16px 14px; min-height: 290px; border-radius: 0 0 22px 22px; }
body:not(.clean) .tbanner-text { padding: 0 18px 20px; }
body:not(.clean) .tbanner-text h2 { font-size: 32px; margin: 6px 0 10px; }
body:not(.clean) .tbanner-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
body:not(.clean) .tbanner-row p { margin: 0; display: flex; align-items: center; gap: 8px; }
body:not(.clean) .tbanner-row p::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #e6cf8f; }
body:not(.clean) .tbanner-btn { margin: 0; white-space: nowrap; }
body:not(.clean) .duty-note { padding: 14px 16px 14px 50px; font-weight: 500; font-size: 15px; line-height: 1.35; background: var(--sage-deep) no-repeat 16px 50% / 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3v8a3 3 0 0 0 3 3v7M9 3v6M12 3v8a3 3 0 0 1-3 3M18 3c-2 2-3 5-3 8h3v10'/%3E%3C/svg%3E"); }
/* Cards come back in Cream: soft, rounded, with a quiet serif heading. */
body.compact:not(.clean) .today-card, body.compact:not(.clean) .today-line { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; margin: 0 0 12px; }
body.compact:not(.clean) .today-card h3 { font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--ink-soft); margin: 0 0 8px; }
body:not(.clean) .today-big { font-size: 20px; }
/* Next up timeline: round markers, gold for now. */
body:not(.clean) .sched-glide { margin: 0 -16px; }
body:not(.clean) .sched-line { display: grid; grid-template-columns: 70px 1fr; gap: 0 12px; margin: 0; padding: 0 16px; }
body.compact:not(.clean) .today-card .sched-line { margin: 0; }
body:not(.clean) .sched-line b { width: auto; text-align: right; padding: 11px 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
body:not(.clean) .sched-line > span { position: relative; padding: 10px 0 10px 26px; }
body:not(.clean) .sched-line > span::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--line); }
body:not(.clean) .sched-line > span::after { content: ''; position: absolute; left: 1px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid #cdbf9f; }
body:not(.clean) .sched-line.past { opacity: .5; }
body:not(.clean) .sched-line.past > span::after { background: #cdbf9f; }
body:not(.clean) .sched-line.now { background: #efe3c2; border-radius: 0; padding: 0 16px; margin: 0; }
body:not(.clean) .sched-line.now b { color: #8a6d2f; font-weight: 800; }
body:not(.clean) .sched-line.now > span { font-weight: 700; }
body:not(.clean) .sched-line.now > span::after { background: var(--gold); border-color: var(--gold); }
body:not(.clean) .sched-note { display: block; font-style: normal; font-size: 13px; font-weight: 600; color: #8a6d2f; }
/* Bottom menu: a wider gold marker and a lightly filled icon on the open tab. */
:root body:not(.clean) .tab[aria-current="page"]::after { width: 40%; left: 30%; background: var(--gold); }
body:not(.clean) .tab[aria-current="page"] svg { fill: var(--gold); fill-opacity: .22; stroke-width: 2.1; }
body:not(.clean) .tab[aria-current="page"] { font-weight: 700; }

/* ---------- Every page, Cream: same quiet headings and soft cards ---------- */
body:not(.clean) .fam-head { font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--ink-soft); margin: 0 0 8px 4px; }
body:not(.clean) .fam-list, body:not(.clean) .sos-card, body:not(.clean) .chore-person { border-radius: 16px; }
body:not(.clean) .event { border-radius: 16px; border-left-width: 5px; }
body:not(.clean) .section-title { font-size: 19px; color: var(--ink-soft); }

/* ---------- Every page, Clean: flat edge-to-edge rows, small green headings, underlined tabs ---------- */
body.clean { --sage-deep: #2f5d43; --sage: #3f6b4f; --gold: #2f5d43; }
body.clean .day { font-size: 22px; font-weight: 700; }
body.clean .fam-head, body.clean .section-title { font-family: var(--body); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 8px; }
body.clean .section-title { margin-top: 24px; }
body.clean .fam-list { margin: 0 -16px; background: #fff; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
body.clean .fam-row { padding: 12px 18px; }
body.clean .fam-row strong { font-family: var(--body); font-weight: 700; font-size: 16px; }
body.clean .fam-row > b { color: var(--sage-deep); }
body.clean .sos-card { margin: 0 -16px 18px; width: calc(100% + 32px); padding: 14px 18px; background: #fff; border: 0; border-bottom: 1px solid var(--line); border-left: 4px solid var(--wine); }
body.clean .sos-card strong { font-family: var(--body); font-weight: 700; font-size: 17px; }
body.clean .chore-people { gap: 0; margin: 14px -16px 0; border-top: 1px solid var(--line); }
body.clean .chore-person { padding: 12px 18px; background: #fff; border: 0; border-bottom: 1px solid var(--line); }
body.clean .bar { height: 5px; }
body.clean .event { margin: 0 -16px; padding: 14px 18px 14px 15px; background: #fff; border: 0; border-left: 3px solid var(--sage-deep); border-bottom: 1px solid var(--line); }
body.clean .daily-tabs, body.clean .seg { background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 0; margin: 4px -16px 10px; gap: 0; }
body.clean .daily-tabs button, body.clean .seg button { padding: 11px 0; background: transparent; color: var(--ink-soft); box-shadow: none; }
body.clean .daily-tabs button.on, body.clean .seg button.on { background: transparent; color: var(--sage-deep); box-shadow: inset 0 -3px 0 var(--sage-deep); }
body.clean .btn.quiet { border-color: var(--sage-deep); }
body.clean .people-strip { padding-top: 6px; }
/* The small crucifix before a feast name on the calendar; the figure is cut in the page color. */
.feast-ic { display: inline-block; vertical-align: -2px; width: 11px; height: 15px; fill: currentColor; }
.feast-ic .corpus { fill: var(--paper); }

/* ---------- Getting started ---------- */
.gs-welcome { text-align: center; padding: 14px 8px 18px; }
.gs-crucifix svg { width: 30px; height: 42px; fill: var(--gold); margin-bottom: 8px; }
.gs-crucifix .corpus { fill: var(--paper); }
.gs-welcome h2 { font-size: 27px; margin-bottom: 8px; }
.gs-welcome p { color: var(--ink-soft); margin: 0 auto; max-width: 34ch; font-size: 16px; }
.gs-prog { display: flex; align-items: center; gap: 10px; margin: 0 4px 6px; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.gs-bar { flex: 1; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.gs-bar span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.gs-head { margin-top: 22px !important; }
.gs-step { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
.gs-step.open { border-left: 6px solid var(--gold); border-radius: 6px 16px 16px 6px; }
.gs-dot { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--sage); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: var(--sage-deep); }
.gs-step.done .gs-dot { background: var(--sage); border-color: var(--sage); color: #fff; }
.gs-step.skip .gs-dot { border-color: var(--line); color: var(--ink-soft); }
.gs-step.done h3, .gs-step.skip h3 { color: var(--ink-soft); }
.gs-step h3 { font-family: var(--body); font-weight: 700; font-size: 17px; }
.gs-step p { margin: 2px 0 0; color: var(--ink-soft); font-size: 15px; }
.gs-tag { margin-left: 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.gs-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; }
.gs-btns .linkbtn { font-size: 15px; font-weight: 700; padding: 6px 2px; }
.gs-intro { margin: 0 4px 12px; }
.gs-grp { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; overflow: hidden; }
.gs-grp h3 { padding: 12px 16px 4px; font-size: 18px; color: var(--sage-deep); }
.gs-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 11px 16px; }
.gs-grp h3 + .gs-row { border-top: 0; }
.gs-row > span { flex: 1; }
.gs-row strong { display: block; font-size: 16px; }
.gs-row small { display: block; color: var(--ink-soft); font-size: 14px; line-height: 1.35; }
.gs-row > b { color: var(--sage); font-size: 20px; transition: transform .15s; }
.gs-row[aria-expanded="true"] > b { transform: rotate(90deg); }
.gs-pill { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 99px; padding: 3px 8px; background: var(--line); color: var(--ink-soft); }
.gs-pill.on { background: #e3ecdf; color: var(--sage-deep); }
.gs-how { padding: 2px 16px 14px; background: #f7f0e2; border-top: 1px dashed var(--line); }
.gs-how ol { margin: 8px 0 0; padding-left: 20px; font-size: 15px; }
.gs-how li { margin: 3px 0; }
body.clean .gs-step, body.clean .gs-grp { border-radius: 0; }
body.clean .gs-how { background: #f6f7f5; }

/* ---------- Settings: grouped rounded lists, a small icon per row, the current value on the right, real on/off switches ---------- */
.set-group { margin: 18px 0 0; }
.set-head { font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--ink-soft); margin: 0 6px 6px; }
.set-list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 14px; margin: 0; background: none; border: 0; border-top: 1px solid var(--line); font: inherit; font-weight: 400; color: var(--ink); text-align: left; cursor: pointer; }
.set-list > .set-row:first-child, .set-list > :first-child { border-top: 0; }
button.set-row:active, label.set-row:active { background: var(--paper); }
.set-static { cursor: default; align-items: flex-start; }
.set-ic { flex: none; width: 30px; height: 30px; border-radius: 8px; background: #ebe2cf; color: var(--sage-deep); display: grid; place-items: center; }
.set-ic svg { width: 18px; height: 18px; }
.set-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.set-txt strong { font-weight: 700; font-size: 15.5px; }
.set-txt small { color: var(--ink-soft); font-size: 13px; line-height: 1.35; }
.set-txt small.set-warn { color: var(--wine); }
.set-val { flex: none; color: var(--ink-soft); font-size: 14px; white-space: nowrap; }
.set-badge { flex: none; background: var(--wine); color: #fff; border-radius: 99px; font-size: 12px; font-weight: 800; padding: 1px 8px; }
.set-chev { flex: none; color: var(--ink-soft); font-size: 20px; font-weight: 400; }
.set-need { background: #fff7e6; border-color: #e8cf9a; }
.set-need .set-ic { background: #f3e2b8; color: #8a6a22; }
.set-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.set-acts .btn { margin: 0; }
.set-sub { padding-left: 34px; }
.set-note { font-size: 13px; color: var(--ink-soft); margin: 6px 8px 0; line-height: 1.4; }
.set-row .avatar { flex: none; }
/* Fields on the right of a row: a time, a pick list. */
.set-field input[type=time], .set-field select, .set-switch input[type=time] { width: auto; max-width: 55%; min-height: 36px; margin: 0; padding: 6px 10px; font-size: 15px; flex: none; }
/* Panel order arrows on the wall screen settings */
.set-move { display: flex; flex-direction: column; gap: 2px; flex: none; }
.set-arrow { width: 30px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--sage-deep); font-size: 13px; line-height: 1; cursor: pointer; }
.set-arrow:disabled { opacity: .3; cursor: default; }
/* The prayer chooser folds inside its row */
details.set-row { display: block; cursor: default; }
details.set-row > summary { border-bottom: 0; padding: 4px 0; }
/* The on/off switch: a checkbox drawn as a sliding toggle */
input.tog { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 46px; height: 28px; margin: 0; border-radius: 14px; background: #d6cdbb; cursor: pointer; transition: background .15s; }
input.tog::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: left .15s; }
input.tog:checked { background: var(--sage-deep); }
input.tog:checked::after { left: 21px; }
input.tog:disabled { opacity: .45; cursor: default; }
input.tog:focus-visible { outline: 3px solid rgba(107, 132, 103, .45); outline-offset: 2px; }
/* Clean look: flat, square, green caps headings, like the rest of Clean */
body.clean .set-head { font-family: var(--body); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); margin: 0 0 8px; }
body.clean .set-list { border-radius: 0; border-left: 0; border-right: 0; }
body.clean .set-ic { background: #eef2ec; }
body.clean .set-chev { color: var(--sage-deep); }
body.clean .set-arrow { border-radius: 0; }
.set-danger strong { color: var(--wine); }

/* ---------- School records: days-present bar, and the printed year report (one page per child) ---------- */
.rec-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 6px 0 8px; }
.rec-bar i { display: block; height: 100%; background: var(--sage-deep); border-radius: inherit; }
.rec-goal input { max-width: 120px; }
.yr-print { display: none; }
@media print {
  body.printing-yr > *:not(.yr-print) { display: none !important; }
  body.printing-yr { background: #fff; }
  body.printing-yr .yr-print { display: block; font-family: var(--body); color: #26221c; }
  @page { size: letter portrait; margin: 14mm; }
  .yr { break-after: page; }
  .yr:last-child { break-after: auto; }
  .yr > header { display: flex; gap: 14px; align-items: center; border-bottom: 2px solid #2f5a3f; padding-bottom: 10px; }
  .yr > header img { width: 22mm; height: 22mm; object-fit: contain; }
  .yr-kicker { margin: 0; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: #2f5a3f; }
  .yr h1 { margin: 2px 0; font-family: var(--display); font-weight: 400; font-size: 30px; }
  .yr-who { margin: 0; font-size: 14px; font-weight: 700; }
  .yr-motto { margin: 2px 0 0; font-size: 11px; font-style: italic; color: #6b5e4e; }
  .yr-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
  .yr-stats > div { border: 1px solid #d9cdb4; border-radius: 6px; padding: 6px 8px; }
  .yr-stats small { display: block; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: #2f5a3f; }
  .yr-stats strong { font-size: 16px; }
  .yr-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
  .yr-table th { text-align: left; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #2f5a3f; border-bottom: 1.5px solid #2f5a3f; padding: 4px 6px; }
  .yr-table td { vertical-align: top; border-bottom: 1px solid #e6dcc6; padding: 6px; }
  .yr-table td:nth-child(3) { white-space: nowrap; }
  .yr-book + .yr-book { margin-top: 4px; }
  .yr-book small { display: block; color: #6b5e4e; font-size: 10px; }
  .yr > footer { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
  .yr-sign i { display: block; border-bottom: 1px solid #26221c; height: 22px; }
  .yr-sign span { font-size: 10px; color: #6b5e4e; }
  .yr > footer p { grid-column: 1 / -1; margin: 0; font-size: 9.5px; color: #6b5e4e; }
}

/* ---------- Desktop View: School today and Plan the year ---------- */
.dsk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.dsk-head .hs-actions { flex: none; }
.dsk-scroll { overflow-x: auto; }
.dsk-grid { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dsk-grid > div { border-top: 1px solid var(--line); border-left: 1px solid var(--line); padding: 8px 10px; min-width: 0; }
.dsk-grid > .dsk-h { background: #efe6d2; border-top: 0; padding: 10px 12px; }
.dsk-grid > .dsk-h:first-child, .dsk-grid > .dsk-subj, .dsk-grid > .dsk-addrow { border-left: 0; }
.dsk-h small { display: block; color: var(--ink-soft); font-size: 13px; }
.dsk-kid { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dsk-name { border: 0; background: none; padding: 0; font-family: var(--display); font-size: 19px; color: var(--ink); text-align: left; cursor: pointer; }
.dsk-name:hover { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; }
.dsk-bar { height: 6px; margin: 6px 0 2px; border-radius: 99px; background: #e2d9c4; overflow: hidden; }
.dsk-bar i { display: block; height: 100%; background: var(--sage); }
.dsk-subj { display: flex; align-items: center; font-weight: 800; font-size: 15px; box-shadow: inset 6px 0 0 var(--tint, var(--sage)); padding-left: 18px !important; }
.dsk-none { color: #b5a78e; font-size: 14px; display: flex; align-items: center; }
.dsk-task { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 4px 6px; margin: 1px 0; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.dsk-task:hover { background: #f1eadb; }
.dsk-box { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--tint, var(--sage)); background: var(--paper); color: #fff; font-size: 15px; line-height: 1; }
.dsk-task.done .dsk-box { background: var(--tint, var(--sage-deep)); }
.dsk-task.done .dsk-tx { color: var(--ink-soft); text-decoration: line-through; }
.dsk-tx { line-height: 1.25; overflow-wrap: anywhere; }
.dsk-tx small { display: block; font-size: 12px; font-weight: 700; color: var(--wine); }
.dsk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.dsk-stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.dsk-stat strong { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.2; }
.dsk-stat span { color: var(--ink-soft); font-size: 14px; }
.dsk-stat.alert { border-left: 6px solid var(--wine); border-radius: 6px 14px 14px 6px; }
.dsk-stat .linkbtn { padding: 0; min-height: 0; font-size: 14px; color: var(--wine); font-weight: 700; text-decoration: underline; }
.dsk-weekhead { margin: 26px 0 0; font-size: 20px; }
.dsk-week { margin-top: 8px; }
.dsk-day { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.dsk-day.now { background: #e4ecdf !important; color: var(--sage-deep); }
.dsk-wkname { box-shadow: none; padding-left: 12px !important; }
.dsk-wk { display: flex; align-items: center; min-height: 40px; }
.dsk-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.dsk-dots i { width: 13px; height: 13px; border-radius: 50%; background: var(--sage); }
.dsk-dots i.open { background: transparent; border: 2px solid #c9bb9d; }
.dsk-dots i.late { background: var(--wine); }
.dsk-off { color: var(--gold); font-weight: 700; font-size: 13px; }
/* Plan the year */
.dsk-yearbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; margin-bottom: 14px; }
.dsk-yearbar > span { font-weight: 700; }
.dsk-yearbar small { margin-right: 8px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.dsk-yearbar .btn { margin-left: auto; }
.dsk-plan > div { min-height: 74px; }
.dsk-plan > .dsk-h { min-height: 0; }
.dsk-cell { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.dsk-cell.shared { background: #f2ecdf; }
.dsk-book { display: block; width: 100%; padding: 4px 6px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.dsk-book:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.dsk-book b { display: block; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.dsk-book span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-soft); line-height: 1.3; }
.dsk-add { align-self: flex-start; padding: 8px 12px; border: 1.5px dashed #c9bb9d; border-radius: 10px; background: none; color: #9c8d72; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.dsk-add:hover { border-color: var(--sage); color: var(--sage-deep); background: #fff; }
.dsk-another { align-self: flex-start; padding: 0 6px; min-height: 0; font-size: 13px; opacity: 0; }
.dsk-cell:hover .dsk-another, .dsk-another:focus-visible { opacity: 1; }
.dsk-cell.editing { background: #fff; box-shadow: inset 0 0 0 2px var(--gold); }
.dsk-edit input { width: 100%; min-height: 34px; margin: 0 0 6px; padding: 5px 9px; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.dsk-two { display: flex; gap: 6px; }
.dsk-two input { flex: 1; min-width: 0; }
.dsk-pace { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--sage-deep); }
.dsk-editbtns { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dsk-editbtns .linkbtn { min-height: 0; padding: 4px 2px; font-size: 13px; }
.dsk-rowact { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.dsk-rowact .linkbtn { min-height: 0; padding: 4px 0; font-size: 13px; text-align: left; }
.dsk-addrow { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; min-height: 0 !important; padding: 10px 12px !important; }
.dsk-addrow select { width: auto; min-height: 38px; margin: 0; padding: 4px 10px; }
.dsk-addrow .hint { margin: 0; }
.dsk-addrow .linkbtn { min-height: 0; padding: 0; }
.dsk-panels { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.dsk-tpls { display: grid; gap: 8px; margin-top: 10px; }
.dsk-tpl { display: block; width: 100%; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.dsk-tpl:hover { border-color: var(--sage); }
.dsk-tpl b { display: block; }
.dsk-tpl span { font-size: 13px; color: var(--ink-soft); }
@media print { .dsk-head .hs-actions, .dsk-another, .dsk-add { display: none; } }

/* ---------- college schedule ---------- */
.col-sum { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 14px; margin: 10px 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.col-sum > div { display: flex; flex-direction: column; }
.col-sum strong { font-family: var(--display); font-weight: 400; font-size: 26px; }
.col-sum small { color: var(--ink-soft); font-size: 13px; }
.col-sum p { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--ink-soft); }
.col-sum.tight { border-color: #b4572f; }
.col-sum.tight p { color: #b4572f; font-weight: 700; }
.col-head { font-family: var(--display); font-weight: 400; font-size: 19px; margin: 20px 0 6px; }
.col-list, .col-windows { list-style: none; margin: 0; padding: 0; }
.col-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.col-item.late { border-left: 4px solid #b4572f; padding-left: 8px; }
.col-item.soon { border-left: 4px solid #c9a24a; padding-left: 8px; }
.col-item.done .col-main strong { text-decoration: line-through; color: var(--ink-soft); }
.col-box { width: 26px; height: 26px; margin-top: 2px; flex: none; }
.col-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.col-main small, .col-time small, .col-windows small { color: var(--ink-soft); font-size: 13px; display: block; }
.col-plan { color: var(--sage-deep) !important; font-weight: 600; }
.col-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.col-day-card { padding: 8px 12px; margin: 8px 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.col-day-card h3 { margin: 0 0 4px; font-size: 16px; }
.col-busy { margin: 0 0 4px; font-size: 13px; color: var(--ink-soft); }
.col-windows li { padding: 6px 0; border-top: 1px solid var(--line); }
.col-windows li.over small:first-of-type { color: #b4572f; font-weight: 700; }
.col-time { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.col-field { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; font-size: 14px; font-weight: 600; }
.col-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.col-days { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
.col-day, .col-check { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; font-weight: 600; }
.col-sub { margin: 10px 0 2px; font-size: 14px; font-weight: 600; }
.col-finished { margin-top: 16px; }

/* ---------- college dashboard (wide screens): the cream and sage look of the rest of the app ---------- */
.col-dash { --cd-panel: var(--card); --cd-line: var(--line); --cd-ink: var(--ink); --cd-ink2: var(--ink-soft); --cd-mute: #8a7761; color: var(--cd-ink); margin: 12px 0 8px; display: flex; flex-direction: column; gap: 16px; }
.cd-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cd-tile { background: var(--cd-panel); border: 1px solid var(--cd-line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.cd-tile small { color: var(--cd-ink2); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.cd-tile strong { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.1; }
.cd-tile span { color: var(--cd-mute); font-size: 13px; }
.cd-tile.bad strong { color: var(--wine); }
.cd-say { margin: 0; font-size: 16px; color: var(--cd-ink2); }
.cd-say.bad { color: var(--wine); font-weight: 700; }
.cd-hint { margin: 0; font-size: 14px; color: var(--cd-mute); }
.cd-card { background: var(--cd-panel); border: 1px solid var(--cd-line); border-radius: 14px; padding: 16px 18px 18px; min-width: 0; }
.cd-card h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--cd-ink); }
.cd-two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
.cd-legendrow { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; }
.cd-lg { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--cd-ink2); }
.cd-lg i, .cd-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.cd-svg { width: 100%; height: auto; display: block; }
.cd-axis { fill: var(--cd-mute); font-size: 12px; font-family: inherit; }
.cd-day { fill: var(--cd-ink2); font-weight: 600; }
.cd-day.now { fill: var(--cd-ink); font-weight: 800; }
.cd-seg { fill: #2a1d13; font-size: 12px; font-weight: 700; pointer-events: none; }
.cd-mark { transition: opacity .12s; }
.cd-mark:hover, g:focus .cd-mark, .cd-mark:focus { opacity: .8; }
.cd-svg [tabindex]:focus-visible, .cd-ring [tabindex]:focus-visible { outline: 2px solid var(--cd-ink); outline-offset: 2px; }
.cd-ringrow { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cd-ring { width: 210px; height: 210px; flex: none; }
.cd-ring-big { fill: var(--cd-ink); font-family: var(--display); font-size: 40px; }
.cd-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 8px; }
.cd-legend li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--cd-ink2); }
.cd-legend li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-legend li b { color: var(--cd-ink); font-weight: 600; }
.cd-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cd-month h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--cd-ink2); }
.cd-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cd-dow { text-align: center; font-size: 11px; color: var(--cd-mute); padding-bottom: 2px; }
.cd-cell { aspect-ratio: 1.25; min-height: 40px; border: 0; border-radius: 8px; background: #ece3d0; color: var(--cd-ink2); font: inherit; font-size: 13px; padding: 4px 6px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; cursor: default; text-align: left; }
.cd-cell.blank { background: none; }
.cd-cell b { font-size: 12px; font-weight: 700; align-self: flex-end; }
.cd-cell.past { opacity: .55; }
.cd-cell.now { box-shadow: 0 0 0 2px var(--cd-ink); opacity: 1; }
.cd-cell.hot { color: #fff; }
.cd-cell:not(.blank):hover { filter: brightness(1.2); }
.cd-cell:focus-visible { outline: 2px solid var(--cd-ink); outline-offset: 1px; }
.cd-key { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--cd-mute); }
.cd-key i { width: 22px; height: 12px; border-radius: 3px; }
.cd-table { color: var(--cd-ink2); font-size: 14px; }
.cd-table summary { cursor: pointer; padding: 4px 0; }
.cd-table table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.cd-table th, .cd-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--cd-line); }
.cd-table th { color: var(--cd-mute); font-weight: 600; font-size: 12px; }
.col-tip { position: fixed; z-index: 9999; display: none; max-width: 300px; padding: 7px 10px; border-radius: 8px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); font-size: 13px; pointer-events: none; box-shadow: 0 4px 14px rgba(59,42,30,.3); }
.col-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 1100px) {
  body:not(.desk) #app:has(.col-dash) { max-width: 1280px; padding: 0 24px; }
  body:not(.desk) main:has(.col-dash) { max-width: none; }
}
@media (max-width: 1099px) { .col-dash { display: none; } }

.col-when { margin-top: 6px; padding-top: 4px; border-top: 1px solid var(--line); }
.col-sessions li { border-top: 1px solid var(--line); }

@media (min-width: 1100px) { .col-list.col-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; } }

.col-sess { padding: 8px 0; border-bottom: 1px solid var(--line); }
.col-sess .col-pair { align-items: end; }

.cd-block { cursor: grab; }
.cd-block:active { cursor: grabbing; }
.cd-handle { cursor: ew-resize; }
.cd-block.cd-bad .cd-drag { fill: var(--wine); }
