/* Your Family Dispatch: "newsprint" design system.
   Serif headlines (Newsreader), a highly legible sans body (Atkinson Hyperlegible),
   warm paper, dark ink, brand amber accents. Text colors meet WCAG AA on the paper. */
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader.woff") format("woff"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-italic.woff") format("woff"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/caveat.woff") format("woff"); font-weight: 400 700; font-display: swap; }
:root {
  --paper: #f7f1e3; --paper-2: #fffbf2; --card: #fffdf8; --ink: #1f1a14; --muted: #5a5044; --line: #ddd0b6; --rule: #2a231b;
  --amber: #e8a23a; --amber-soft: #fbe9c4; --amber-ink: #8a4f00;
  --brand: #1f5f8b; --brand-dark: #174a6d; --brand-soft: #e4eef5;
  --ok: #1d6a43; --ok-soft: #e1f1e6; --warn: #8a4f00; --warn-soft: #fbecd0; --bad: #a32418; --bad-soft: #fbe4e0;
  --serif: "Newsreader", "Georgia", "Times New Roman", serif; --sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --radius: 10px; --shadow: 0 1px 2px rgba(60,40,10,.06), 0 3px 10px rgba(60,40,10,.05);
  --bar-h: 76px; --tab-h: 0px;
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body { margin: 0; font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -.005em; }
h1 { font-size: 2rem; margin: 0 0 .25rem; } h2 { font-size: 1.35rem; margin: 0 0 .7rem; } h3 { font-size: 1.12rem; margin: 0 0 .4rem; } h4 { font-size: 1.05rem; margin: .1rem 0 .3rem; }
a { color: var(--brand); text-underline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.proto-banner { background: var(--rule); color: #fff; text-align: center; font-size: .8rem; padding: .3rem 1rem; letter-spacing: .02em; }
.kicker { font-family: var(--sans); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--amber-ink); margin: 0 0 .35rem; }
h2.kicker, h3.kicker { font-family: var(--sans); font-size: .82rem; }

/* controls: big, plain, high-contrast */
button, .btn { font: inherit; font-weight: 700; border-radius: 999px; border: 2px solid var(--brand); background: var(--brand); color: #fff; padding: .5rem 1.15rem; min-height: 48px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; line-height: 1.2; }
button:hover, .btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
button.secondary, .btn.secondary { background: var(--card); color: var(--brand-dark); }
button.secondary:hover, .btn.secondary:hover { background: var(--brand-soft); }
button.danger { background: var(--card); color: var(--bad); border-color: var(--bad); } button.danger:hover { background: var(--bad-soft); }
button.ok { background: var(--ok); border-color: var(--ok); } button.ok:hover { background: #15513a; }
button.small, .btn.small { min-height: 44px; padding: .3rem .9rem; font-size: .9rem; }
button:disabled { opacity: .55; cursor: default; }
button.linkish { background: none; border: none; color: inherit; padding: 0; min-height: 0; font-weight: inherit; text-align: left; display: inline; border-radius: 4px; }
button.linkish:hover { background: none; text-decoration: underline; }
button.linkish.small { color: var(--brand); font-weight: 700; min-height: 32px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
input, select, textarea { font: inherit; padding: .55rem .75rem; border: 2px solid #cbbd9f; border-radius: 10px; width: 100%; background: #fff; color: var(--ink); min-height: 48px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
textarea { min-height: 90px; resize: vertical; }
label { font-weight: 700; display: block; margin-bottom: .25rem; }
.field { margin-bottom: .9rem; } .hint, .field .hint { color: var(--muted); font-size: .85rem; font-weight: 400; }
.field .err { color: var(--bad); font-size: .85rem; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }

/* ---------- shell: masthead bar + section nav ---------- */
.topbar { background: var(--paper-2); border-bottom: 3px double var(--rule); position: sticky; top: 0; z-index: 30; }
.topbar-in { max-width: 1280px; margin: 0 auto; padding: .45rem 1.5rem; display: flex; align-items: center; gap: 1.4rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); flex: none; }
.brand span { font-family: var(--serif); font-weight: 800; font-size: 1.35rem; line-height: 1; }
.brand small { display: block; font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: .1rem; }
nav.sections { display: flex; align-items: center; gap: .15rem; flex: 1; flex-wrap: wrap; }
nav.sections > a, nav.sections summary { font-weight: 700; text-decoration: none; color: var(--ink); padding: .55rem .8rem; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; }
nav.sections > a:hover, nav.sections summary:hover { background: var(--amber-soft); }
nav.sections > a.on, details.more.on > summary { background: var(--ink); color: var(--paper-2); }
details.more { position: relative; } details.more summary { list-style: none; } details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "▾"; margin-left: .35rem; font-size: .8rem; }
.more-menu { position: absolute; top: calc(100% + .4rem); left: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(40,25,5,.18); padding: .5rem; width: 330px; z-index: 40; }
.more-menu a, .more-sheet a { display: block; padding: .6rem .75rem; border-radius: 8px; color: var(--ink); text-decoration: none; }
.more-menu a span, .more-sheet a span { display: block; font-size: .82rem; color: var(--muted); }
.more-menu a:hover, .more-menu a.on, .more-sheet a:hover { background: var(--amber-soft); }
.more-who { border-top: 1px solid var(--line); margin-top: .4rem; padding: .6rem .75rem .3rem; font-size: .85rem; color: var(--muted); }
.more-who a { display: inline; padding: 0; color: var(--brand); text-decoration: underline; }
.more-sheet { display: grid; gap: .25rem; margin-bottom: 1rem; }
.me-chip { width: 42px; height: 42px; border-radius: 50%; background: var(--amber-soft); color: var(--amber-ink); border: 2px solid var(--amber); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex: none; }
.tabbar { display: none; }
main { padding: 1.6rem 1.5rem calc(var(--bar-h) + 2.5rem); max-width: 1280px; margin: 0 auto; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: .8rem; }
.page-head h1 { font-size: 2.3rem; }
.page-head p { margin: 0; color: var(--muted); max-width: 46rem; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.15rem 1.3rem; border: 1px solid var(--line); overflow-x: auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; }
.dash { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; }
.headline { background: var(--ink); color: var(--paper-2); border: none; font-family: var(--serif); font-size: 1.15rem; }
.headline a { color: #fff; }
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean > li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
ul.clean > li:last-child { border-bottom: none; }
.muted { color: var(--muted); } .small { font-size: .88rem; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .14rem .55rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); vertical-align: middle; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.grey { background: #ece5d6; color: #4d4539; }
.dose { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.dose .time { font-weight: 700; width: 5.2rem; flex: none; }
.dose .what { flex: 1; min-width: 8rem; }
.empty { color: var(--muted); padding: 1rem 0; text-align: center; font-style: italic; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tabs { display: inline-flex; background: #ebe2cf; border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.tabs button { background: transparent; border: none; color: var(--ink); min-height: 42px; }
.tabs button.on { background: var(--card); color: var(--brand-dark); box-shadow: var(--shadow); }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { border: 2px solid #cbbd9f; background: var(--card); color: var(--ink); border-radius: 999px; padding: .25rem .95rem; min-height: 44px; font-weight: 700; }
.chip:hover { background: var(--amber-soft); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }
.chip .n { display: inline-block; min-width: 1.5rem; padding: 0 .35rem; border-radius: 999px; background: var(--amber-soft); color: var(--amber-ink); font-size: .8rem; }
.chip.on .n { background: var(--amber); color: var(--ink); }

/* ---------- The Daily Dispatch ---------- */
.frontpage { background: var(--paper-2); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 1.4rem 1.8rem 1.8rem; border-radius: 4px; }
.masthead { text-align: center; border-bottom: 3px double var(--rule); padding-bottom: .5rem; margin-bottom: 1.1rem; }
.ears { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-bottom: 1px solid var(--rule); padding-bottom: .4rem; }
.nameplate { font-family: var(--serif); font-weight: 800; font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.05; letter-spacing: -.02em; margin: .35rem 0 .3rem; font-variation-settings: "opsz" 72; }
.dateline { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: .35rem; font-size: .85rem; font-weight: 700; color: var(--ink); }
.dateline span:last-child { color: var(--amber-ink); font-style: italic; font-family: var(--serif); font-size: .98rem; }
.lead { text-align: center; max-width: 52rem; margin: 0 auto 1.3rem; }
.lead .headline { background: none; color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; margin: .2rem 0 .5rem; font-variation-settings: "opsz" 60; }
.deck { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); margin: 0; }
.fp-cols { display: grid; grid-template-columns: 1.05fr 1fr 1fr; border-top: 2px solid var(--rule); }
.fp-col { padding: 1rem 1.2rem 0; min-width: 0; }
.fp-col + .fp-col { border-left: 1px solid var(--line); }
.fp-col:first-child { padding-left: 0; } .fp-col:last-child { padding-right: 0; }
.fp-col > .kicker { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: .35rem; color: var(--ink); letter-spacing: .14em; }
.kicker.sub { margin-top: 1.4rem; border-bottom: 1px solid var(--ink); padding-bottom: .3rem; color: var(--ink); }
.kicker .count { background: var(--bad); color: #fff; border-radius: 999px; min-width: 1.6rem; padding: 0 .45rem; text-align: center; letter-spacing: 0; }
.covlist li.cov { display: grid; grid-template-columns: 4.6rem 1fr auto; gap: .2rem .6rem; align-items: center; }
.covlist li.cov .t { font-weight: 700; font-size: .92rem; }
.covlist li.cov:not(:has(.t)) { grid-template-columns: 1fr auto; }
.covlist .by { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; text-align: right; }
.person { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; white-space: nowrap; }
.person .av { width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.person.ghost .av { background: var(--card); color: var(--brand-dark); border: 2px dashed var(--brand); }
.person.nobody .av { background: var(--amber-soft); color: var(--amber-ink); border: 2px dashed var(--amber); }
.dose-box { margin-top: .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.dose-box summary { cursor: pointer; padding: .6rem .8rem; font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.dose-box ul { padding: 0 .8rem .4rem; }
.attlist li.att { padding: .75rem 0 .75rem .85rem; border-left: 4px solid var(--line); margin: .55rem 0; border-bottom: none; background: linear-gradient(90deg, rgba(0,0,0,.015), transparent); }
.attlist li.att.high { border-left-color: var(--bad); } .attlist li.att.medium { border-left-color: var(--amber); }
.att .sev { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.att.high .sev { color: var(--bad); } .att.medium .sev { color: var(--amber-ink); }
.att .act { margin-top: .45rem; }
.dottie-note { margin: .8rem 0 0; display: flex; gap: .8rem; align-items: flex-start; background: var(--amber-soft); border-radius: 12px; padding: .9rem 1rem; }
.dottie-note p { margin: 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.45; }
.dottie-note cite { display: block; margin-top: .4rem; font-family: var(--serif); font-style: italic; font-weight: 700; color: var(--amber-ink); }
.dottie-note cite::before { content: "— "; }
.ahead li { display: flex; gap: .7rem; align-items: center; }
.ahead .day { flex: none; width: 3rem; text-align: center; border: 1px solid var(--rule); border-radius: 6px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .15rem 0; line-height: 1.1; }
.ahead .day b { display: block; font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0; }
.warnword { color: var(--bad); font-weight: 700; }
.fp-photo { display: block; margin-top: 1.2rem; text-decoration: none; color: var(--ink); }
.fp-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); filter: saturate(.92); }
.fp-photo .cap { display: block; font-size: .85rem; margin-top: .3rem; font-style: italic; }
.wire li { padding: .45rem 0; }

/* ---------- The Relay ---------- */
.relay-filter { margin-bottom: 1rem; }
.lanes { display: grid; gap: .8rem; }
.lanes > li.lane { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--brand); border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: var(--shadow); }
.lane.high { border-left-color: var(--amber); } .lane.overdue { border-left-color: var(--bad); } .lane.mine { background: #fffaf0; box-shadow: 0 0 0 2px var(--amber-soft), var(--shadow); }
.lane-top { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.lane-top .linkish b { font-family: var(--serif); font-size: 1.25rem; }
.lane-top .tags { display: flex; gap: .3rem; flex-wrap: wrap; }
.track { display: grid; grid-template-columns: auto minmax(70px, 1fr) auto auto; gap: .9rem; align-items: center; margin-top: .7rem; }
.leg { display: flex; flex-direction: column; gap: .15rem; }
.leg .role { font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.leg .person .av { width: 2.6rem; height: 2.6rem; font-size: .9rem; }
.baton { position: relative; height: 18px; }
.baton::before { content: ""; position: absolute; left: 0; right: 10px; top: 50%; border-top: 3px dotted #b9a77f; }
.baton::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); border: 8px solid transparent; border-left: 11px solid #b9a77f; border-right: 0; }
.baton span { position: absolute; left: 6px; top: 50%; transform: translateY(-50%) rotate(-8deg); width: 38px; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--amber), #f6c15f); border: 2px solid var(--amber-ink); }
.lane-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.lane-trail { margin-top: .55rem; border-top: 1px dashed var(--line); padding-top: .45rem; }
.finished li { padding: .5rem 0; }
.trail li { padding: .45rem 0; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.pickone { display: flex; align-items: center; gap: .55rem; border: 2px solid #cbbd9f; border-radius: 12px; padding: .55rem .7rem; cursor: pointer; font-weight: 700; margin: 0; min-height: 56px; }
.pickone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pickone .av { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; flex: none; }
.pickone:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pickone:has(input:checked) .av { background: var(--brand); color: #fff; }
.pickone:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- The Family Paper ---------- */
.paper-head { text-align: center; border-bottom: 3px double var(--rule); padding-bottom: .9rem; margin-bottom: 1rem; }
.small-np { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.paper-head p { margin: .2rem 0 .8rem; }
.paper-actions { justify-content: center; }
#pstatus { margin-top: .4rem; }
.drop { border: 3px dashed #c4b28c; border-radius: var(--radius); padding: 1.5rem; text-align: center; background: var(--paper-2); transition: .15s; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop.slim { padding: .7rem 1rem; display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; border-width: 2px; }
.edition { background: var(--paper-2); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 4px; padding: 1.1rem 1.5rem 1.4rem; margin-bottom: 1.6rem; }
.edition.current { border-top: 5px solid var(--amber); }
.ed-head { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding-bottom: .4rem; margin-bottom: .9rem; }
.ed-head h2 { margin: 0; font-size: 1.6rem; flex: 1; }
.ed-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--amber-ink); width: 100%; }
.ed-lead { border-bottom: 1px solid var(--line); padding-bottom: .8rem; margin-bottom: 1rem; }
.ed-lead h3 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: .1rem 0 .35rem; }
.ed-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; }
.ed-body:not(:has(.prints)) { grid-template-columns: 1fr; }
.prints { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; align-content: start; }
.print { margin: 0; background: #fff; padding: .55rem .55rem .7rem; box-shadow: 0 2px 8px rgba(40,25,5,.14); border-radius: 2px; transform: rotate(-.6deg); }
.print:nth-child(even) { transform: rotate(.7deg); }
.print-img { display: block; padding: 0; border: none; background: none; width: 100%; border-radius: 0; min-height: 0; }
.print-img:hover { background: none; }
.print img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.print figcaption { padding-top: .5rem; display: flex; flex-direction: column; gap: .1rem; }
.print figcaption b { font-family: var(--serif); font-size: 1.05rem; }
.print figcaption span { font-size: .9rem; }
.clips { display: grid; gap: .9rem; align-content: start; }
.clip { border-top: 2px solid var(--ink); padding-top: .5rem; }
.clip p { margin: .2rem 0; }
.clip.visit p { font-family: var(--serif); font-size: 1.05rem; }
.relaybox { background: var(--amber-soft); border-top: none; border-radius: 8px; padding: .7rem .9rem; }
.relaybox li { padding: .3rem 0; border-color: rgba(138,79,0,.2) !important; }
.older { text-align: center; margin: 1rem 0 2rem; }

/* calendar */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.month .dow { font-size: .8rem; font-weight: 700; color: var(--muted); padding: .4rem; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); text-transform: uppercase; letter-spacing: .06em; }
.month .day { min-height: 108px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .3rem; background: var(--card); cursor: pointer; min-width: 0; }
.month .day:hover { background: #fff; }
.month .day.other { background: #f3ecdc; color: #8d8170; }
.month .day.today .num { background: var(--ink); color: var(--paper-2); border-radius: 999px; padding: 0 .45rem; }
.month .num { font-size: .85rem; font-weight: 700; }
.ev { display: block; font-size: .78rem; background: var(--brand-soft); color: var(--brand-dark); border-left: 3px solid var(--brand); border-radius: 5px; padding: .1rem .35rem; margin-top: .2rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ev.done { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.ev.cancelled { text-decoration: line-through; opacity: .7; }
.ev.nodriver { border-color: var(--amber); }
/* files */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.doc .thumb { height: 130px; background: #efe6d3; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.doc .thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc .thumb .pdf { font-weight: 700; color: #fff; background: var(--bad); padding: .5rem .8rem; border-radius: 8px; }
.doc .body { padding: .7rem .85rem; flex: 1; }
.doc .actions { display: flex; gap: .4rem; padding: 0 .85rem .8rem; flex-wrap: wrap; }
/* modal + toast */
.backdrop { position: fixed; inset: 0; background: rgba(31,26,20,.5); display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; z-index: 70; overflow-y: auto; }
.modal { background: var(--card); border-radius: 14px; width: min(640px, 100%); padding: 1.4rem 1.5rem; box-shadow: 0 20px 50px rgba(0,0,0,.25); border-top: 5px solid var(--amber); }
.modal.wide { width: min(980px, 100%); }
.modal .foot { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.modal .foot .left { margin-right: auto; }
#toast { position: fixed; top: 4.6rem; left: 50%; transform: translateX(-50%) translateY(-30%); background: var(--ink); color: #fff; padding: .8rem 1.3rem; border-radius: 12px; font-weight: 700; transition: .25s; z-index: 80; max-width: 90vw; opacity: 0; visibility: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; } #toast.bad { background: var(--bad); }
/* auth */
.auth { min-height: calc(100vh - 30px); display: grid; grid-template-columns: 1.15fr 1fr; }
.auth .pitch { background: var(--paper-2); border-right: 3px double var(--rule); padding: 3rem 3.5rem; display: flex; align-items: center; }
.pitch-in { max-width: 40rem; }
.pitch-ears { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border-bottom: 1px solid var(--rule); padding-bottom: .4rem; margin-bottom: 1.2rem; }
.pitch .wordmark { display: block; width: 300px; max-width: 100%; height: auto; margin: 0 0 1rem; }
.auth .pitch h1 { font-size: clamp(2rem, 4vw, 3rem); border-bottom: 3px double var(--rule); padding-bottom: .6rem; }
.pitch-deck { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; }
.pitch-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; margin-top: 1.4rem; font-size: .95rem; }
.pitch-cols > div { border-top: 2px solid var(--ink); padding-top: .5rem; }
.auth .formside { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth .card { width: min(460px, 100%); }
.demo-hint { background: var(--amber-soft); border-radius: 10px; padding: .7rem .9rem; font-size: .9rem; margin-bottom: 1rem; }
.summary-text { white-space: pre-wrap; font-family: inherit; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; font-size: .95rem; }
.sec li { margin: .25rem 0; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: .35rem 1rem; }
.kv dt { color: var(--muted); font-weight: 700; } .kv dd { margin: 0; }
.list-edit .item { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: .5rem; margin-bottom: .5rem; }
.xfields { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; margin-bottom: .8rem; }
.xfields .frow label { font-size: .8rem; color: var(--muted); margin: 0; } .xfields .frow input { min-height: 42px; padding: .3rem .55rem; }
.consent { background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; margin-top: .4rem; font-size: .85rem; }
.consent.done { background: var(--ok-soft); border-color: #b5dcc3; }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.obody { white-space: pre-wrap; }
.alerts .alert { display: flex; align-items: center; gap: .8rem; }

/* ---------- Tell Dottie bar + conversation drawer ---------- */
#tell-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + .8rem); width: min(860px, calc(100vw - 1.6rem)); z-index: 50; display: flex; align-items: center; gap: .5rem; background: var(--card); border: 2px solid var(--amber); border-radius: 999px; padding: .35rem .4rem .35rem .45rem; box-shadow: 0 10px 30px rgba(70,40,0,.22); }
#tell-bar .tb-av { flex: none; display: flex; }
#tell-bar input { flex: 1; border: none; min-height: 50px; background: transparent; font-size: 1rem; padding: .4rem .5rem; min-width: 0; }
#tell-bar input:focus { outline: none; }
#tell-bar:focus-within { box-shadow: 0 0 0 4px var(--amber-soft), 0 10px 30px rgba(70,40,0,.22); }
#tell-bar button[type=submit] { background: var(--ink); border-color: var(--ink); min-width: 5rem; }
#tell-bar .tb-open { width: 50px; padding: 0; border-color: var(--line); }
#dottie-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 430px; max-width: 100vw; background: var(--paper-2); border-left: 3px double var(--rule); box-shadow: -8px 0 30px rgba(0,0,0,.1); z-index: 60; display: none; flex-direction: column; padding-bottom: calc(var(--bar-h) + var(--tab-h) + .4rem); }
body.dottie-open #dottie-panel { display: flex; }
body.dottie-open #tell-bar { z-index: 65; }
@media (min-width: 1100px) { body.dottie-open main { padding-right: 460px; } body.dottie-open #tell-bar { left: auto; right: .8rem; transform: none; width: 410px; } }
#dottie-panel header { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; background: var(--amber-soft); border-bottom: 1px solid var(--line); }
#dottie-panel header div { flex: 1; line-height: 1.3; } #dottie-panel header b { font-family: var(--serif); font-size: 1.3rem; }
#dottie-close { width: 44px; padding: 0; }
#dottie-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.lmsg.me { align-self: flex-end; background: var(--ink); color: #fff; padding: .55rem .9rem; border-radius: 16px 16px 4px 16px; max-width: 85%; }
.lmsg.bot { display: flex; gap: .5rem; align-items: flex-start; max-width: 100%; }
.lmsg.bot .dottie-ico { flex: none; margin-top: .2rem; }
.lbody { background: #fff; border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: .65rem .85rem; min-width: 0; flex: 1; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.ltext { white-space: pre-wrap; }
.litems { list-style: none; padding: 0; margin: .5rem 0 0; } .litems li { padding: .4rem 0 .4rem .6rem; border-left: 3px solid var(--line); margin-bottom: .3rem; }
.litems li.high { border-left-color: var(--bad); } .litems li.medium { border-left-color: var(--amber); }
.litems a { color: var(--ink); text-decoration: none; } .litems a.small { color: var(--brand); text-decoration: underline; }
.lchips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; } .lchips .chip { font-size: .85rem; min-height: 40px; padding: .2rem .75rem; }
.lconfirm { margin-top: .6rem; background: var(--brand-soft); border: 2px solid var(--brand); border-radius: 12px; padding: .6rem .8rem; }
.lconfirm.done { border-color: var(--ok); background: var(--ok-soft); } .lconfirm ul { margin: .3rem 0 .6rem; padding-left: 1.2rem; }

/* ---------- small screens: bottom tabs, single column ---------- */
@media (max-width: 1000px) { .fp-cols { grid-template-columns: 1fr 1fr; } .fp-col:nth-child(3) { grid-column: span 2; border-left: none; border-top: 1px solid var(--line); padding: 1rem 0 0; margin-top: 1rem; } }
@media (max-width: 760px) {
  :root { --tab-h: 66px; }
  html { font-size: 17px; }
  .topbar-in { padding: .4rem .9rem; } nav.sections { display: none; }
  .brand { flex: 1; }
  .tabbar { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: var(--tab-h); background: var(--paper-2); border-top: 3px double var(--rule); z-index: 55; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; font-size: .7rem; font-weight: 700; color: var(--ink); text-decoration: none; background: none; border: none; border-radius: 0; min-height: 0; padding: .2rem 0; }
  .tabbar a span, .tabbar button span { font-size: 1.25rem; line-height: 1; }
  .tabbar a.on, .tabbar button.on { color: var(--amber-ink); box-shadow: inset 0 3px 0 var(--amber); }
  main { padding: 1rem .9rem calc(var(--bar-h) + var(--tab-h) + 1.5rem); }
  .page-head h1 { font-size: 1.8rem; }
  .frontpage { padding: 1rem .9rem 1.2rem; margin: 0 -.3rem; }
  .ears .mid { display: none; }
  .fp-cols { grid-template-columns: 1fr; }
  .fp-col, .fp-col:first-child, .fp-col:last-child { padding: 1rem 0 0; } .fp-col + .fp-col { border-left: none; border-top: 1px solid var(--line); margin-top: 1rem; }
  .fp-col:nth-child(3) { grid-column: auto; }
  .fp-att { order: -1; border-top: none !important; margin-top: 0 !important; } .fp-cov { border-top: 1px solid var(--line); margin-top: 1rem; }
  .covlist li.cov { grid-template-columns: 4rem 1fr; } .covlist .by { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; align-items: center; flex-wrap: wrap; }
  .track { grid-template-columns: auto minmax(40px, 1fr) auto; } .lane-actions { grid-column: 1 / -1; justify-content: stretch; } .lane-actions button { flex: 1; }
  .edition { padding: .9rem 1rem 1.1rem; } .ed-body { grid-template-columns: 1fr; } .print { transform: none !important; }
  .dash, .board, .auth, .grid2, .xfields, .types, .pitch-cols { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; }
  .auth .pitch { border-right: none; border-bottom: 3px double var(--rule); padding: 1.5rem 1.2rem; } .pitch-cols { display: none; }
  #tell-bar { width: calc(100vw - 1rem); } #tell-bar input { font-size: .95rem; }
  #tell-bar .tb-open { display: none; }
  #dottie-panel { width: 100vw; border-left: none; }
  body.dottie-open .tabbar { z-index: 64; }
  .month .day { min-height: 70px; } .ev { font-size: .68rem; }
  #toast { top: 4rem; }
}

/* ===================== Keepsakes ===================== */
.badge.premium { background: linear-gradient(135deg, #f6d27a, #e8a23a); color: #3d2600; letter-spacing: .04em; text-transform: uppercase; font-size: .68rem; }
.more-menu.right { left: auto; right: 0; }
.more-sheet .kicker { margin: .7rem .75rem .2rem; }
.composer .tabs { margin-bottom: .8rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); border-radius: 16px; width: 100%; } .composer .tabs button { border-radius: 12px; padding: .4rem .5rem; font-size: .92rem; } .composer textarea, .composer input:not([type=checkbox]), .composer select { width: 100%; }
.composer .foot { display: flex; justify-content: flex-end; margin-top: .8rem; }

/* The Fridge Door: brushed steel with magnets */
.fridge-layout { display: grid; grid-template-columns: 340px 1fr; gap: 1.2rem; align-items: start; }
.fridge-door { position: relative; min-height: 520px; border-radius: 22px; padding: 2.2rem 2.4rem 2.4rem 2rem; border: 1px solid #c7cdd1;
  background: linear-gradient(100deg, #eef1f3 0%, #f8f9fa 22%, #e3e7ea 48%, #f4f6f7 70%, #e6e9ec 100%); box-shadow: inset 0 0 0 6px rgba(255,255,255,.55), inset 0 -10px 30px rgba(0,0,0,.05), var(--shadow); }
.fridge-door .handle { position: absolute; right: 14px; top: 90px; width: 14px; height: 200px; border-radius: 8px; background: linear-gradient(90deg, #b9c1c6, #e9edef 50%, #aab3b9); box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.pins { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.6rem 1.3rem; align-items: start; }
.pin { position: relative; margin: 0; padding: 1.1rem .95rem .7rem; transform: rotate(var(--r, 0deg)); box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 8px 18px rgba(30,30,30,.12); background: #fff3b0; transition: transform .15s; }
.pin:hover { transform: rotate(0deg) scale(1.02); }
.pin.yellow { background: #fff3b0; } .pin.pink { background: #ffd9e0; } .pin.blue { background: #d8ecff; } .pin.green { background: #dff3d6; } .pin.white { background: #fff; }
.pin.photo, .pin.drawing { background: #fff; padding: .6rem .6rem .5rem; } .pin img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid #eee; }
.pin p { margin: .1rem 0 .5rem; font-family: var(--serif); font-size: 1.12rem; line-height: 1.3; overflow-wrap: anywhere; }
.pin.photo p, .pin.drawing p { font-size: .95rem; margin-top: .45rem; }
.pin.thinking { text-align: center; } .pin.thinking .thinking-heart { display: block; font-size: 2.4rem; line-height: 1; color: #d6455b; margin-top: .2rem; }
.pin figcaption { display: flex; justify-content: space-between; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.magnet { position: absolute; top: -10px; left: 50%; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a7a, #c8342a 70%); box-shadow: 0 3px 4px rgba(0,0,0,.25); }
.pin.blue .magnet, .mini-pin.blue .magnet { background: radial-gradient(circle at 35% 30%, #ffe27a, #d79a12 70%); } .pin.green .magnet, .mini-pin.green .magnet { background: radial-gradient(circle at 35% 30%, #8ac4ff, #2f6fb5 70%); }
.pin.pink .magnet, .mini-pin.pink .magnet { background: radial-gradient(circle at 35% 30%, #9be39b, #2d8a43 70%); } .pin.photo .magnet, .pin.drawing .magnet { background: radial-gradient(circle at 35% 30%, #c6a6ff, #6a45b8 70%); }
.pin-acts { display: inline-flex; gap: .25rem; }
button.heart, button.unpin { min-height: 36px; padding: .15rem .6rem; font-size: .85rem; border-radius: 999px; background: rgba(255,255,255,.7); color: #b3263c; border: 1.5px solid rgba(179,38,60,.35); }
button.heart.on { background: #d6455b; color: #fff; border-color: #d6455b; } button.unpin { color: var(--muted); border-color: rgba(0,0,0,.15); }
button.heart:hover { background: #fde3e8; } button.heart.on:hover { background: #b9344a; } button.unpin:hover { background: #fff; }
.swatches { display: flex; gap: .5rem; margin-top: .6rem; } .sw { width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid rgba(0,0,0,.15); }
.sw.yellow { background: #fff3b0; } .sw.pink { background: #ffd9e0; } .sw.blue { background: #d8ecff; } .sw.green { background: #dff3d6; } .sw.white { background: #fff; } .sw.on { outline: 3px solid var(--ink); outline-offset: 2px; } .sw:hover { filter: brightness(.96); }
.pad canvas { width: 100%; aspect-ratio: 3 / 2; background: #fff; border: 2px solid var(--line); border-radius: 10px; touch-action: none; cursor: crosshair; display: block; }
.pad-tools { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-top: .5rem; }
.pen { width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); } .pen.on { box-shadow: 0 0 0 3px var(--ink); } .pen:hover { background: var(--c); filter: brightness(1.1); }
/* front-page fridge strip */
.fp-fridge { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; padding: .9rem .6rem .6rem; border-radius: 12px; background: linear-gradient(100deg, #eef1f3, #f8f9fa 40%, #e3e7ea); text-decoration: none; color: var(--ink); margin-bottom: .6rem; }
.mini-pin { position: relative; padding: .6rem .45rem .35rem; transform: rotate(var(--r)); background: #fff3b0; box-shadow: 0 4px 10px rgba(0,0,0,.12); font-size: .78rem; line-height: 1.25; display: flex; flex-direction: column; gap: .2rem; min-height: 70px; }
.mini-pin.pink { background: #ffd9e0; } .mini-pin.blue { background: #d8ecff; } .mini-pin.green { background: #dff3d6; } .mini-pin.white, .mini-pin.photo, .mini-pin.drawing { background: #fff; }
.mini-pin .magnet { width: 16px; height: 16px; margin-left: -8px; top: -7px; } .mini-pin img { width: 100%; aspect-ratio: 4/3; object-fit: cover; } .mini-pin .t { font-family: var(--serif); } .mini-pin .by { color: var(--muted); font-size: .7rem; margin-top: auto; }
.fp-ask { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .2rem; } .fp-q { font-family: var(--serif); font-size: 1.2rem; font-style: italic; line-height: 1.3; margin: .2rem 0 .4rem; }
/* Mom's view: big, calm, read-only */
.momview { min-height: 100vh; padding: 1.5rem 2rem 2rem; background: linear-gradient(100deg, #eef1f3 0%, #f8f9fa 22%, #e3e7ea 48%, #f4f6f7 70%, #e6e9ec 100%); }
.momview header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; } .momview h1 { font-size: 2.6rem; margin: 0; }
.momview .kicker { font-size: 1rem; }
.mv-pins { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.4rem 2rem; max-width: 1400px; margin: 0 auto; }
.momview.cycling .mv-pins { grid-template-columns: minmax(0, 820px); justify-content: center; margin-top: 4vh; } .momview.cycling .pin.big p { font-size: 2.6rem; } .momview.cycling .pin.big { padding: 2.4rem 2rem 1.4rem; }
.pin.big { padding: 1.6rem 1.4rem 1rem; } .pin.big p { font-size: 1.9rem; line-height: 1.25; } .pin.big.photo p, .pin.big.drawing p { font-size: 1.4rem; }
.pin.big figcaption { font-size: 1.15rem; } .pin.big .magnet { width: 40px; height: 40px; margin-left: -20px; top: -16px; } .pin.big .hearts { color: #b3263c; font-weight: 700; font-size: 1.3rem; } .pin.big.thinking .thinking-heart { font-size: 4.5rem; }
.mv-count { text-align: center; font-size: 1.2rem; color: var(--muted); margin-top: 1.4rem; }

/* Ask + Story */
.ask-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 1.3rem; align-items: start; }
.ask-card { background: var(--paper-2); border: 1px solid var(--line); border-top: 4px double var(--rule); padding: 1.4rem 1.5rem; margin-bottom: 1.2rem; border-radius: 4px; }
.ask-q { font-size: 2rem; font-style: italic; font-weight: 600; line-height: 1.2; margin: .3rem 0 .5rem; }
.answer { border-left: 4px solid var(--amber); padding: .5rem 0 .5rem .9rem; margin: .9rem 0; } .answer audio { width: 100%; max-width: 420px; display: block; margin: .3rem 0; }
.said { font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; margin: .3rem 0; }
.ans-photo { max-width: 100%; max-height: 300px; border-radius: 6px; border: 1px solid var(--line); display: block; margin: .3rem 0; }
.ans-acts { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; margin-top: .4rem; }
.queue { padding-left: 1.2rem; } .queue li { display: flex; justify-content: space-between; gap: .6rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
#qf input, #qf select { width: 100%; margin-top: .3rem; }
.past-week { border-top: 1px solid var(--line); padding: .55rem 0; } .past-week summary { cursor: pointer; display: grid; gap: .1rem; list-style: none; } .past-week summary::-webkit-details-marker { display: none; }
.past-week summary .badge { justify-self: start; }
.recorder { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; } .recorder audio { width: 100%; max-width: 440px; }
.rec-btn { background: var(--card); color: var(--bad); border-color: var(--bad); } .rec-btn:hover { background: var(--bad-soft); }
.rec-btn .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--bad); display: inline-block; } .rec-btn.on { background: var(--bad); color: #fff; } .rec-btn.on .dot { background: #fff; border-radius: 3px; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.toc { margin-bottom: 1.3rem; } a.chip { text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.story { max-width: 820px; } .story-ch { margin-bottom: 2.2rem; } .story-ch h2 { font-size: 2rem; border-bottom: 3px double var(--rule); padding-bottom: .3rem; }
.story-a { margin: 1.1rem 0 1.6rem; } .story-a .q { font-size: 1.15rem; color: var(--muted); font-style: italic; font-weight: 600; }
.clip.askclip h4 { font-style: italic; }

/* Own Words */
.words-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.filters { justify-content: space-between; gap: .8rem; margin-bottom: 1rem; flex-wrap: wrap; } .filters input[type=search] { max-width: 280px; }
.clips-list { display: grid; gap: 1rem; }
.clip-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); } .clip-card.fav { border-left: 5px solid var(--amber); }
.clip-card h3 { font-size: 1.3rem; margin: .25rem 0 .4rem; } .clip-card audio { width: 100%; max-width: 520px; margin: .2rem 0 .3rem; }
.clip-top { display: flex; justify-content: space-between; gap: .6rem; align-items: start; }
button.star { background: none; border: 2px solid #d9c9a6; color: #c6b48f; font-size: 1.3rem; width: 48px; padding: 0; } button.star.on { color: #d99413; border-color: #e8a23a; background: var(--amber-soft); } button.star:hover { background: var(--amber-soft); }

/* Recipe Box: a wooden card box */
.recipe-box { background: linear-gradient(180deg, #a86f43, #8c5a35); border-radius: 18px; padding: 1rem 1.2rem 1.6rem; box-shadow: inset 0 2px 0 rgba(255,255,255,.2), 0 10px 24px rgba(60,30,10,.25); }
.box-lid { padding: .3rem 0 1rem; } .box-lid input { width: 100%; max-width: 520px; background: #fffaf0; }
.cards-in-box { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; } .cards-in-box .empty { color: #fff3e0; }
.index-card { position: relative; text-align: left; display: flex; flex-direction: column; align-items: stretch; min-height: 200px; padding: .9rem 1rem .8rem; border-radius: 4px; border: none; color: var(--ink); font-weight: 400;
  background: repeating-linear-gradient(transparent 0 27px, #b9d3ea 27px 28px) 0 82px / 100% calc(100% - 82px) no-repeat, #fffaf0; box-shadow: 0 2px 0 #e8dcc2, 0 6px 12px rgba(0,0,0,.2); gap: 0; }
.index-card::before { content: ""; position: absolute; left: 0; right: 0; top: 78px; border-top: 2px solid #e58b8b; }
.index-card:hover { transform: translateY(-2px); box-shadow: 0 2px 0 #e8dcc2, 0 10px 18px rgba(0,0,0,.25); background-color: #fffdf6; }
.ic-title { font-family: "Caveat", var(--serif); font-size: 1.45rem; font-weight: 700; color: #2d3a7a; line-height: 1.05; padding-right: 64px; height: 62px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .ic-from { font-size: .82rem; color: var(--muted); line-height: 28px; margin-top: 4px; }
.ic-lines { font-size: .86rem; color: #3a3326; line-height: 28px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .ic-tags { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: auto; padding-top: .3rem; }
.ic-thumb { position: absolute; right: 10px; top: 8px; width: 58px; height: 44px; object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transform: rotate(4deg); }
.recipe-edit.with-card, .recipe-view.with-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1.2rem; align-items: start; }
.card-photo { margin: 0; position: sticky; top: 0; } .card-photo img { width: 100%; border-radius: 6px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.recipe-edit textarea { min-height: 120px; } .recipe-title { font-size: 2rem; } .recipe-view h3 { margin-top: .6rem; } .recipe-view li { margin: .2rem 0; }
.recipe-view .voice { background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; margin-top: .8rem; } .recipe-view .voice audio { width: 100%; margin-top: .3rem; }

/* The Year in Dispatches */
.yb-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.yb-pick { max-height: calc(100vh - 210px); overflow: auto; position: sticky; top: calc(var(--bar-h) + 1rem); }
.yb-month { border-top: 1px solid var(--line); padding: .4rem 0; } .yb-month summary { cursor: pointer; padding: .3rem 0; }
.yb-item { display: grid; grid-template-columns: auto 52px 1fr; gap: .6rem; align-items: center; padding: .4rem .2rem; border-radius: 8px; cursor: pointer; font-weight: 400; margin: 0; }
.yb-item:hover { background: var(--amber-soft); } .yb-item input { width: 22px; height: 22px; min-height: 0; } .yb-item img, .yb-ico { width: 52px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.yb-ico { display: flex; align-items: center; justify-content: center; background: var(--paper-2); color: var(--amber-ink); font-size: 1.2rem; } .yb-item.out { opacity: .5; } .yb-item.out b { text-decoration: line-through; }
.yb-actions { gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.yb-frame { background: #d9d0bd; border-radius: 12px; padding: .6rem; height: calc(100vh - 260px); min-height: 560px; } .yb-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 6px; background: #e9e2d2; }
#ybyear { min-width: 120px; }

@media (max-width: 1000px) { .fridge-layout, .ask-grid, .words-grid, .yb-grid { grid-template-columns: 1fr; } .yb-pick { position: static; max-height: none; } }
@media (max-width: 760px) {
  .fridge-door { padding: 1.6rem 1rem 1.4rem .9rem; min-height: 0; border-radius: 16px; } .fridge-door .handle { display: none; }
  .pins { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem .8rem; } .pin p { font-size: 1rem; } .pin figcaption { font-size: .72rem; }
  .momview { padding: 1rem; } .momview h1 { font-size: 1.9rem; } .mv-pins { grid-template-columns: 1fr; } .pin.big p { font-size: 1.5rem; }
  .ask-q { font-size: 1.55rem; } .ask-card { padding: 1rem; } .recipe-edit.with-card, .recipe-view.with-card { grid-template-columns: 1fr; } .card-photo { position: static; }
  .cards-in-box { grid-template-columns: 1fr; } .recipe-box { padding: .8rem .7rem 1rem; margin: 0 -.3rem; } .filters input[type=search] { max-width: none; width: 100%; }
  .yb-frame { height: 70vh; min-height: 420px; padding: .3rem; } .story-ch h2 { font-size: 1.6rem; }
}

@media print { .topbar, .tabbar, #dottie-root, #tell-bar, .proto-banner, .page-head button, .noprint { display: none !important; } main { padding: 0; } body:has(#modal-root .modal) .shell { display: none; } #modal-root .backdrop { position: static; background: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.auth .tabs { flex-wrap: nowrap; } .auth .tabs button { padding: .5rem .85rem; font-size: .92rem; }
.dottie-note .dottie-ico { flex: none; }
.fp-ask .said { font-size: 1rem; }

/* Plans & billing */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-bottom: 1rem; }
.plan-grid .card { display: flex; flex-direction: column; } .plan-grid .card .foot { margin-top: auto; }
@media (max-width: 760px) { .plan-grid { grid-template-columns: 1fr; } }

/* Persistent safety + legal footer (every page) */
.legal-foot { max-width: 1200px; margin: 2rem auto 0; padding: 1rem 1.2rem 7rem; font-size: .82rem; color: #5b5244; text-align: center; border-top: 1px solid #e2d8c3; }
.legal-foot a { color: inherit; font-weight: 700; }
@media (max-width: 760px) { .legal-foot { padding-bottom: 10rem; } }
/* Legal pages */
.legal-page { max-width: 46rem; margin: 2rem auto; padding: 1.5rem 1.6rem; line-height: 1.55; }
.legal-page h1 { margin-top: 0; } .legal-page h2 { margin-top: 1.6rem; font-size: 1.15rem; }
.draft-banner { background: #fde9c4; border: 2px solid #c98a12; color: #4d3200; padding: .8rem 1rem; border-radius: 10px; font-weight: 700; margin-bottom: 1rem; }

/* ---------- Moral support ---------- */
.card.emergency { border: 3px solid var(--bad); background: var(--bad-soft); margin-bottom: 1rem; }
.card.emergency h2 { color: var(--bad); margin-top: 0; }
.emergency-list { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; font-size: 1.05rem; }
.emergency-list a { font-weight: 800; }
.disclaimer { margin: 0 0 1rem; }
.checkin { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.checkin button.on { background: var(--brand); color: #fff; }
.encourage { font-size: 1.05rem; background: var(--brand-soft); border-radius: 12px; padding: .75rem 1rem; }
.tips { padding-left: 1.2rem; display: grid; gap: .4rem; }
.journal, .resources { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .75rem; }
.journal-entry { border-top: 1px solid #e6dccb; padding-top: .6rem; }
.journal-entry p { margin: .25rem 0 .5rem; white-space: normal; }
.resource { border-top: 1px solid #e6dccb; padding-top: .7rem; }
.resource p { margin: .25rem 0; }
#vent-crisis .card.emergency { margin-top: .5rem; }
.meter { height: 10px; border-radius: 999px; background: #ece5d6; overflow: hidden; margin-top: .5rem; }
.meter span { display: block; height: 100%; background: var(--brand); }
