/* Larlebee — warm cream paper, deep honey, evergreen. One family, every generation. */
:root {
  --bg: #f7f2e7;
  --bg-2: #efe6d4;
  --surface: #fffcf5;
  --surface-2: #fbf5e9;
  --ink: #241d14;
  --ink-2: #4a3f31;
  --muted: #76695a;
  --line: #e7dcc7;
  --line-2: #d8cab0;
  --accent: #94560a;
  --accent-2: #2f6b4f;
  --accent-soft: #f6e8cc;
  --on-accent: #fff8ea;
  --honey: #f2b53c;
  --gold: #b9820f;
  --danger: #b33a3a;
  --ok: #2f7a55;
  --shadow: 0 1px 2px rgb(60 40 10 / .06), 0 6px 20px -8px rgb(60 40 10 / .16);
  --shadow-lg: 0 18px 50px -12px rgb(50 30 5 / .32);
  --radius: 16px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --band-even: rgb(148 86 10 / .045);
  --band-odd: rgb(47 107 79 / .04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16120c; --bg-2: #1c170f; --surface: #221c13; --surface-2: #2a2318; --ink: #f2eadb; --ink-2: #d8cdb9;
    --muted: #a59a8a; --line: #362d20; --line-2: #483b29; --accent: #f0b44c; --accent-2: #7cc29a; --accent-soft: #3a2c14;
    --on-accent: #241703; --gold: #f2c45c; --danger: #ec6b6b; --ok: #7cc29a; --honey: #f7cf6a;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -10px rgb(0 0 0 / .5); --shadow-lg: 0 18px 50px -12px rgb(0 0 0 / .7);
    --band-even: rgb(240 180 76 / .05); --band-odd: rgb(124 194 154 / .045);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16120c; --bg-2: #1c170f; --surface: #221c13; --surface-2: #2a2318; --ink: #f2eadb; --ink-2: #d8cdb9;
  --muted: #a59a8a; --line: #362d20; --line-2: #483b29; --accent: #f0b44c; --accent-2: #7cc29a; --accent-soft: #3a2c14;
  --on-accent: #241703; --gold: #f2c45c; --danger: #ec6b6b; --ok: #7cc29a; --honey: #f7cf6a;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -10px rgb(0 0 0 / .5); --shadow-lg: 0 18px 50px -12px rgb(0 0 0 / .7);
  --band-even: rgb(240 180 76 / .05); --band-odd: rgb(124 194 154 / .045);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent-2); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .82rem; font-weight: 400; }
.eyebrow { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.error-text { color: var(--danger); font-size: .9rem; min-height: 1em; }
.danger-text { color: var(--danger) !important; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.ico { flex-shrink: 0; }
[hidden] { display: none !important; }

/* ---------- buttons & inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px; font-weight: 600;
  cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: transform .12s, background .15s, box-shadow .15s;
}
.btn:hover { box-shadow: 0 4px 14px -4px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.small { padding: 7px 12px; font-size: .86rem; }
.btn.block { width: 100%; }
.btn.icon { padding: 10px; border-radius: 50%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; font-size: .9rem; }
label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface);
  font-weight: 400; font-size: .95rem; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
legend { font-size: .86rem; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check.agree { align-items: flex-start; font-weight: 400; color: var(--ink-2); line-height: 1.45; }
.check.agree input { margin-top: 2px; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form { display: grid; gap: 14px; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.seg { display: flex; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 14px; margin-bottom: 16px; overflow-x: auto; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.seg.small button { font-size: .85rem; padding: 6px 10px; }
/* A required choice drawn as a segmented control (Male / Female / Prefer not to say). */
.seg.choice { margin: 4px 0 14px; }
.seg.choice label { flex: 1; display: block; position: relative; cursor: pointer; }
.seg.choice input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.seg.choice span { display: block; text-align: center; padding: 9px 8px; border-radius: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg.choice input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.more-fields { margin: 4px 0 8px; }
.more-fields summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .9rem; padding: 6px 0; }
.more-fields[open] summary { margin-bottom: 10px; }
.more-fields > label { margin-bottom: 12px; }
.callout.small { padding: 9px 12px; font-size: .85rem; margin: 0 0 12px; }
.callout { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-soft); color: var(--ink-2); padding: 12px 14px; border-radius: 12px; font-size: .9rem; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }
.chip.gold { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.chip.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.chip.link { background: color-mix(in srgb, var(--accent-2) 14%, transparent); color: var(--accent-2); }
.badge { margin-left: auto; background: var(--accent-2); color: #fff; font-size: .72rem; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; font-weight: 700; }

.avatar {
  display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex-shrink: 0; object-fit: cover;
  background: var(--accent); letter-spacing: .02em; box-shadow: 0 0 0 2px var(--surface);
}
.avatar.group { width: 40px; height: 40px; background: var(--accent-soft); color: var(--accent); box-shadow: none; }

.loading { display: grid; place-items: center; padding: 60px; }
.loading.full { height: 100vh; }
.loading span { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { display: grid; place-items: center; text-align: center; gap: 8px; padding: 60px 20px; }
.empty.small { padding: 30px; }
.empty-ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }

/* ---------- brand */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none !important; letter-spacing: -.01em; }
.brand.small { font-size: 1.1rem; }
.brand.light { color: #fff3dc; }

/* ---------- auth */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-art {
  background: radial-gradient(1000px 520px at 0% 0%, #7a4a0c 0%, transparent 62%), radial-gradient(700px 400px at 100% 100%, #23523d 0%, transparent 60%), linear-gradient(160deg, #3a250a, #1c1206);
  color: #fff3dc; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; position: relative; overflow: hidden;
}
.auth-art h1 { font-size: clamp(2rem, 3.4vw, 3rem); max-width: 14ch; margin-bottom: 14px; color: #fff3dc; }
.auth-art p { max-width: 42ch; opacity: .8; font-size: 1.05rem; }
.auth-art .logo { --accent: #f2b53c; --on-accent: #2a1a04; --honey: #fff1c9; }
.tagline { font-family: var(--serif); font-style: italic; color: #f2b53c; font-size: 1.05rem; margin-top: 4px; }
.art { color: #f2b53c; width: 100%; max-width: 440px; }
.auth-form { display: grid; place-items: center; padding: 32px 20px; }
.auth-form form { width: 100%; max-width: 380px; }
.auth-form h2 { font-size: 1.9rem; }
.switch { text-align: center; color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-art { padding: 20px; }
  /* On a phone the box to sign in comes first: just the name above it, not the pitch. */
  .auth-art .art, .auth-art .auth-pitch { display: none; }
  .auth-form { place-items: start center; padding-top: 24px; }
}

/* ---------- welcome */
.welcome { max-width: 1000px; margin: 0 auto; padding: 24px 16px 60px; }
.welcome header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; gap: 10px; }
.welcome h1 { font-size: clamp(2rem, 5vw, 3rem); }
.lead { font-size: 1.1rem; margin: 8px 0 32px; }
.welcome-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.welcome-grid.single { grid-template-columns: minmax(0, 640px); }
/* The two first choices on the welcome page: big, plain, easy to tap. */
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 24px; }
.choice-card { display: grid; gap: 6px; justify-items: start; text-align: left; padding: 18px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.choice-card b { font-size: 1.08rem; }
.choice-card small { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.choice-card svg { color: var(--accent); }
.choice-card.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
@media (max-width: 760px) { .choice-cards { grid-template-columns: 1fr; } }
.welcome-grid h2 { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; }
@media (max-width: 760px) { .welcome-grid { grid-template-columns: 1fr; } }

/* ---------- shell */
.shell { display: grid; grid-template-columns: 252px 1fr; height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px 14px; gap: 20px; overflow-y: auto; }
.sidebar .brand { padding: 0 8px; }
.fam-switch { padding: 0 4px; gap: 4px; }
.fam-switch select { font-weight: 600; font-family: var(--serif); font-size: 1.05rem; background: var(--surface-2); }
.sidebar nav { display: grid; gap: 2px; }
.sidebar nav a, .side-foot a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 500; text-decoration: none;
}
.sidebar nav a:hover, .side-foot a:hover { background: var(--surface-2); }
.sidebar nav a.on, .side-foot a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-foot { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.me-link span { display: grid; line-height: 1.25; }
.me-link small { color: var(--muted); font-size: .76rem; font-weight: 400; }
.main-col { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.topbar { display: none; }
main { flex: 1; overflow-y: auto; outline: none; position: relative; }
.view { display: contents; } /* one page's box (app.js render): no box of its own in the layout */
.scrim { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgb(0 0 0 / .35); z-index: 40; }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
  /* The visible screen, not the one behind Safari's toolbars: no band below the tab bar, no page scroll under it. */
  .shell, .main-col { height: 100vh; height: 100dvh; }
  /* Only inside the app: pages on their own (an invite, a sign-in) scroll as usual, or their buttons are out of reach. */
  body:has(.shell) { overflow: hidden; }
}

/* ---------- pages */
.page { padding: 32px 36px 60px; max-width: 1200px; margin: 0 auto; }
.page.narrow { max-width: 820px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-title { font-size: 2.1rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 14px; align-content: start; }
.panel h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.panel + .panel, .panel + form.panel, form.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; }
.panel-head a { font-size: .88rem; font-weight: 600; }
@media (max-width: 860px) { .page { padding: 20px 16px 48px; } .page-title { font-size: 1.7rem; } }

/* ---------- home */
.hero {
  display: grid; grid-template-columns: 1fr auto; gap: 24px 32px; align-items: end; padding: 32px; border-radius: 24px; margin-bottom: 20px;
  background: radial-gradient(800px 300px at 100% 0%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface));
  border: 1px solid var(--line);
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 6px 0; }
.motto { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 1.1rem; margin-bottom: 16px; }
.head-chip { display: inline-flex; gap: 10px; align-items: center; background: var(--surface); padding: 6px 16px 6px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.head-chip span { display: grid; line-height: 1.2; }
.head-chip small { color: var(--gold); font-size: .72rem; font-weight: 600; display: flex; gap: 4px; align-items: center; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 26px; }
.hero-stats div { display: grid; }
.hero-stats b { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; line-height: 1; }
.hero-stats span { color: var(--muted); font-size: .82rem; }
.hero > .btn { grid-column: 1 / -1; justify-self: start; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card-grid .panel + .panel { margin-top: 0; }
.span2 { grid-column: 1 / -1; }
.prompt { background: linear-gradient(160deg, color-mix(in srgb, var(--accent-2) 12%, var(--surface)), var(--surface)); }
.prompt h2 { font-size: 1.45rem; font-style: italic; font-weight: 500; }
.prompt .btn { justify-self: start; }
.upcoming, .nudges, .member-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.upcoming li, .member-list li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.upcoming li:last-child, .member-list li:last-child { border-bottom: 0; }
.upcoming li > span:nth-child(2), .nudges a > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.upcoming small, .nudges small { color: var(--muted); font-size: .82rem; }
.member-list li > span.grow { display: grid; }
.up-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.up-ico.birthday { background: color-mix(in srgb, var(--accent-2) 15%, transparent); color: var(--accent-2); }
.up-ico.anniversary { background: color-mix(in srgb, #c0577a 15%, transparent); color: #c0577a; }
.up-ico.memorial { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.nudges a { display: flex; gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 12px; color: var(--ink); text-decoration: none !important; }
.nudges a:hover { background: var(--surface-2); }
.nudges a > .ico:last-child { color: var(--muted); }
.gen-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.gen-bars li { display: grid; grid-template-columns: 56px 1fr 28px; align-items: center; gap: 10px; font-size: .86rem; }
.gen-bars span { color: var(--muted); font-weight: 600; }
.gen-bars i { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: var(--w); min-width: 6px; }
.gen-bars b { text-align: right; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 22px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 4px 12px; }
  .hero-stats b { font-size: 1.6rem; }
  .card-grid { grid-template-columns: 1fr; }
}

/* ---------- posts */
.post { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post > div { flex: 1; min-width: 0; }
.post header { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.post time { color: var(--muted); font-size: .8rem; }
.post p { white-space: normal; overflow-wrap: anywhere; color: var(--ink-2); }
.post footer { display: flex; gap: 14px; margin-top: 6px; }
.post.pinned { background: color-mix(in srgb, var(--gold) 7%, transparent); margin: 0 -12px; padding: 14px 12px; border-radius: 12px; }
[data-posts] { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px; margin-top: 16px; box-shadow: var(--shadow); }
.prompt-q { font-family: var(--serif); font-style: italic; font-size: 1.2rem; }

/* ---------- tree */
.tree-page { display: flex; flex-direction: column; height: 100%; }
.tree-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--surface); flex-wrap: wrap; }
.tree-title h1 { font-size: 1.5rem; }
.tree-title p { font-size: .85rem; }
.tree-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box > .ico { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.search-box input { padding-left: 36px !important; border-radius: 999px !important; min-width: 220px; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 20; display: grid; }
.search-results button { display: flex; gap: 10px; align-items: center; border: 0; background: none; text-align: left; padding: 8px; border-radius: 10px; cursor: pointer; }
.search-results button:hover { background: var(--surface-2); }
.search-results span { display: grid; line-height: 1.25; }
.search-results small { color: var(--muted); font-size: .78rem; }
.banner { display: flex; gap: 8px; align-items: center; padding: 10px 24px; background: color-mix(in srgb, var(--accent-2) 12%, var(--surface)); font-size: .9rem; border-bottom: 1px solid var(--line); }
.tree-stage { position: relative; flex: 1; min-height: 420px; overflow: hidden; background: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0 / 22px 22px, var(--bg); }
.tree-canvas { position: absolute; inset: 0; }
.tree-svg { display: block; cursor: grab; touch-action: none; user-select: none; }
.tree-svg.grabbing { cursor: grabbing; }
.vp.animate { transition: transform .38s cubic-bezier(.2, .8, .2, 1); }
.band.even { fill: var(--band-even); }
.band.odd { fill: var(--band-odd); }
.band-label { font: 700 13px var(--sans); letter-spacing: .14em; fill: var(--accent); }
.band-sub { font: 500 11px var(--sans); fill: var(--muted); }
.descent { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.marriage { stroke: var(--accent-2); stroke-width: 2.4; }
.marriage.divorced { stroke-dasharray: 5 5; stroke: var(--muted); }
.marriage-dot { fill: var(--surface); stroke: var(--accent-2); stroke-width: 2.2; }
.marriage-dot.widowed { fill: var(--accent-2); }
.card { cursor: pointer; transition: opacity .2s; }
.card-bg { fill: var(--surface); stroke: var(--line-2); stroke-width: 1; filter: drop-shadow(0 2px 4px rgb(40 35 20 / .08)); transition: stroke .15s; }
.card:hover .card-bg { stroke: var(--accent); }
.card:focus { outline: none; }
.card:focus-visible .card-bg, .card.selected .card-bg { stroke: var(--accent-2); stroke-width: 2.5; }
.card.married-in .card-bg { stroke-dasharray: 5 4; fill: var(--surface-2); }
.card.deceased .card-avatar, .card.deceased image { filter: grayscale(.7); opacity: .8; }
.card.me .card-bg { stroke: var(--accent); stroke-width: 2.5; }
.card-initials { font: 700 15px var(--sans); fill: #fff; text-anchor: middle; }
.card-avatar-ring { fill: none; stroke: var(--surface); stroke-width: 2; }
.card-name { font: 600 13.5px var(--sans); fill: var(--ink); }
.card-sub { font: 500 11.5px var(--sans); fill: var(--muted); }
.crown path { fill: var(--gold); }
.me-pill { fill: var(--accent); }
.me-pill-text { font: 800 8.5px var(--sans); fill: var(--on-accent); text-anchor: middle; letter-spacing: .08em; }
.branch-tag { font: 800 9px var(--sans); fill: #fff; text-anchor: middle; letter-spacing: .1em; }
.ext-chip { cursor: pointer; }
.ext-chip rect { fill: color-mix(in srgb, var(--accent-2) 16%, var(--surface)); stroke: var(--accent-2); stroke-width: 1; }
.ext-chip text { font: 600 11px var(--sans); fill: var(--accent-2); text-anchor: middle; }
.ext-chip:hover rect { fill: var(--accent-2); }
.ext-chip:hover text { fill: #fff; }
.card.pulse .card-bg { animation: pulse 1.2s ease 2; }
@keyframes pulse { 50% { stroke: var(--accent-2); stroke-width: 5; } }
.tree-svg.tracing .card:not(.on-path) { opacity: .28; }
.tree-svg.tracing .lines { opacity: .35; }
.trace-line { fill: none; stroke: var(--accent-2); stroke-width: 4; stroke-dasharray: 10 8; stroke-linecap: round; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.trace-step circle { fill: var(--accent-2); }
.trace-step text { font: 700 11px var(--sans); fill: #fff; text-anchor: middle; }
.tree-zoom { position: absolute; right: 16px; bottom: 16px; display: grid; gap: 6px; }
.tree-zoom .icon-btn { box-shadow: var(--shadow); }
.legend { position: absolute; left: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 90px); }
.legend button, .legend-note { display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; cursor: pointer; color: var(--ink-2); box-shadow: var(--shadow); }
.legend-note { cursor: default; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-ring { border: 1.5px dashed var(--muted); }
.trace-card { position: absolute; top: 16px; left: 16px; width: min(360px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-lg); z-index: 5; display: grid; gap: 8px; }
.trace-card h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.trace-card em { color: var(--accent-2); font-style: normal; }
.close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; }
.path { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 2px; font-size: .9rem; }
.path li { counter-increment: step; display: flex; align-items: baseline; gap: 8px; }
.path li::before { content: counter(step); width: 20px; height: 20px; border-radius: 50%; background: var(--accent-2); color: #fff; font-size: .7rem; font-weight: 700; display: inline-grid; place-items: center; flex-shrink: 0; transform: translateY(3px); }
.path small { color: var(--muted); font-size: .76rem; }
.path.big { gap: 6px; font-size: 1rem; }
.side-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 100%); background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; padding: 24px; z-index: 10;
  display: grid; gap: 16px; align-content: start;
}
.side-panel.open { transform: none; }
.panel-hero { display: grid; justify-items: center; text-align: center; gap: 6px; padding-top: 8px; }
.panel-hero h2 { font-size: 1.5rem; margin-top: 6px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.kin { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.kin span { color: var(--muted); font-size: .9rem; }
.kin b { font-family: var(--serif); font-size: 1.15rem; color: var(--accent); }
.kin .link-btn { margin-left: auto; font-size: .82rem; }
.kin.inline { display: inline-flex; margin: 10px 0 14px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.bio { color: var(--ink-2); font-size: .94rem; border-left: 3px solid var(--accent-2); padding-left: 12px; font-style: italic; }
.rel h4 { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.rel-row { display: flex; gap: 10px; flex-wrap: wrap; }
.rel-row a { display: grid; justify-items: center; gap: 2px; font-size: .78rem; color: var(--ink-2); width: 56px; text-align: center; text-decoration: none !important; }
.rel-row a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 860px) {
  .tree-bar { padding: 12px 16px; }
  .search-box input { min-width: 0; width: 160px; }
  .side-panel { top: auto; height: 78%; width: 100%; border-left: 0; border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; transform: translateY(105%); }
  .legend { display: none; }
}

/* ---------- people */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.filters .search-box { flex: 1; min-width: 220px; }
.filters .search-box input { width: 100%; }
.filters select { width: auto; }
.gen-head { display: flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 28px 0 12px; font-family: var(--sans); }
.gen-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.gen-head small { color: var(--muted); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.person-card {
  display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--branch, var(--accent));
  padding: 12px 14px; border-radius: 14px; color: var(--ink); text-decoration: none !important; position: relative; transition: transform .15s, box-shadow .15s;
}
a.person-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.person-card > span { display: grid; min-width: 0; }
.person-card small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-card i { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: .68rem; font-weight: 700; color: var(--ok); }
.person-card i.you { background: var(--accent); color: var(--on-accent); padding: 1px 7px; border-radius: 8px; }
.person-card.couple { border-left-color: var(--accent-2); }
.heart { color: var(--accent-2); margin: 0 -6px; z-index: 1; }

/* ---------- profile */
.back-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
.profile-head { display: flex; gap: 28px; align-items: center; margin-bottom: 24px; }
.profile-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.profile-head .avatar { box-shadow: 0 0 0 5px var(--surface), var(--shadow); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-grid .panel + .panel { margin-top: 0; }
.rel-line { display: flex; gap: 10px; align-items: center; padding: 6px 0; color: var(--ink); text-decoration: none !important; }
.rel-line span { display: grid; line-height: 1.25; }
.rel-line small { color: var(--muted); font-size: .8rem; }
.rel + .rel { margin-top: 10px; }
.me-card { display: flex !important; align-items: center; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .profile-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .profile-grid { grid-template-columns: 1fr; }
}

/* ---------- chat */
.chat { display: grid; grid-template-columns: 320px 1fr; grid-template-rows: minmax(0, 1fr); height: 100%; }
.chat > * { min-height: 0; }
.chat-list { border-right: 1px solid var(--line); overflow-y: auto; padding: 24px 12px; background: var(--surface); }
.chat-list .page-title { padding: 0 8px 12px; font-size: 1.6rem; }
.chat-list .eyebrow { padding: 14px 8px 6px; }
.small-pad { padding: 4px 8px; font-size: .88rem; }
.chat-item { display: flex; gap: 10px; align-items: center; padding: 10px 8px; border-radius: 12px; color: var(--ink); text-decoration: none !important; }
.chat-item:hover { background: var(--surface-2); }
.chat-item.on { background: var(--accent-soft); }
.chat-item-text { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.chat-item-text small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.chat-item time { font-size: .72rem; color: var(--muted); align-self: flex-start; margin-top: 3px; }
.chat-item .badge { margin-left: 0; }
.chat-pane { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.chat-head { display: flex; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-head h2 { font-size: 1.15rem; }
.chat-head .push { margin-left: auto; }
.chat-head .back { display: none; }
.messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 2px; }
.day-sep { text-align: center; margin: 14px 0 8px; }
.day-sep span { font-size: .74rem; font-weight: 600; color: var(--muted); background: var(--bg-2); padding: 3px 12px; border-radius: 999px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 78%; margin-top: 8px; }
.msg.cont { margin-top: 0; }
.msg-spacer { width: 32px; flex-shrink: 0; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg.mine .msg-spacer { display: none; }
.bubble { background: var(--surface); border: 1px solid var(--line); padding: 8px 12px; border-radius: 18px 18px 18px 6px; min-width: 0; }
.bubble b { display: block; font-size: .78rem; color: var(--accent-2); margin-bottom: 1px; }
.bubble p { overflow-wrap: anywhere; }
.bubble time { display: block; text-align: right; font-size: .68rem; color: var(--muted); margin-top: 2px; }
.msg.mine .bubble { background: var(--accent); color: var(--on-accent); border-color: transparent; border-radius: 18px 18px 6px 18px; }
.msg.mine .bubble time { color: color-mix(in srgb, var(--on-accent) 70%, transparent); }
.composer { display: flex; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--line); background: var(--surface); align-items: flex-end; grid-template-columns: none; }
.composer textarea { resize: none; border-radius: 20px; max-height: 160px; }
@media (max-width: 860px) {
  .chat { grid-template-columns: 1fr; }
  .chat.has-active .chat-list { display: none; }
  .chat:not(.has-active) .chat-pane { display: none; }
  .chat-head .back { display: inline-grid; }
  .messages { padding: 14px; }
  .msg { max-width: 90%; }
  .composer { padding: 10px 12px 14px; }
}

/* ---------- events */
.event-row { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; }
.event-row .grow { display: grid; gap: 2px; }
.event-row p { color: var(--ink-2); font-size: .9rem; margin-top: 4px; }
.date-tile { width: 48px; display: grid; justify-items: center; line-height: 1.1; }
.date-tile b { font-family: var(--serif); font-size: 1.5rem; }
.date-tile small { color: var(--muted); font-size: .72rem; text-transform: uppercase; font-weight: 600; }

/* ---------- network */
.network svg { width: 100%; height: auto; }
.net-edge { stroke: var(--accent-2); stroke-width: 2.5; stroke-dasharray: 6 6; }
.net-label-bg { fill: var(--surface); stroke: var(--accent-2); }
.net-label { font: 600 11.5px var(--sans); fill: var(--accent-2); text-anchor: middle; }
.net-node circle { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 2; transition: transform .2s; }
.net-node.mine circle { fill: var(--accent); stroke: var(--accent); }
.net-node:hover circle { stroke: var(--accent-2); stroke-width: 4; }
.net-name { font: 600 15px var(--serif); text-anchor: middle; fill: var(--ink); }
.net-sub { font: 500 11px var(--sans); text-anchor: middle; fill: var(--muted); }
.net-node.mine .net-name, .net-node.mine .net-sub { fill: var(--on-accent); }
.legend-note .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; background: var(--surface-2); border: 2px solid var(--line-2); }
.legend-note .dot.mine { background: var(--accent); border-color: var(--accent); }
.network .legend-note { box-shadow: none; justify-self: center; border: 0; }

/* ---------- settings */
.code-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.code-row code { font: 700 1.6rem/1 ui-monospace, Menlo, monospace; letter-spacing: .25em; background: var(--surface-2); border: 1px dashed var(--line-2); padding: 12px 18px; border-radius: 12px; color: var(--accent); }
.member-list select { width: auto; padding: 6px 10px; }

/* ---------- modal & toasts */
.modal-wrap { position: fixed; inset: 0; background: rgb(15 20 15 / .45); display: grid; place-items: center; padding: 16px; z-index: 100; animation: fade .16s ease; backdrop-filter: blur(2px); }
.modal-wrap.out { opacity: 0; transition: opacity .16s; }
.modal { background: var(--surface); border-radius: 20px; width: 100%; max-width: 460px; max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: var(--shadow-lg); animation: rise .2s cubic-bezier(.2, .8, .2, 1); }
.modal.wide { max-width: 600px; }
.modal > header { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 0; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal > header h2 { font-size: 1.3rem; }
.modal-body { padding: 16px 22px 22px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.photo-field { display: flex; gap: 16px; align-items: center; }
.photo-field > div:last-of-type { display: grid; gap: 6px; justify-items: start; }
.photo-field label.btn { display: inline-flex; }
.photo-preview .avatar { background: var(--bg-2); color: var(--muted); }
.pick-list { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.pick { display: flex; flex-direction: row; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; }
.pick span { display: grid; flex: 1; line-height: 1.25; }
.pick > .avatar { flex: none; display: inline-grid; }
.pick small { color: var(--muted); }
.pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pick input { accent-color: var(--accent); }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 200; width: min(420px, calc(100% - 32px)); }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .92rem; animation: rise .2s ease; transition: opacity .3s, transform .3s; }
.toast.error { background: var(--danger); color: #fff; }
.toast.success { background: var(--accent); color: var(--on-accent); }
.toast.out { opacity: 0; transform: translateY(8px); }
.toast.with-action { display: flex; align-items: center; gap: 10px; pointer-events: auto; }
.toast.with-action span { flex: 1; }
.toast.with-action .btn { background: var(--surface); color: var(--ink); white-space: nowrap; }
.toast.with-action .icon-btn { color: inherit; background: transparent; border: 0; box-shadow: none; width: 32px; height: 32px; }
/* A language being prepared, or ready, in My profile. */
.lang-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; margin: 0; }
.lang-note span { flex: 1; min-width: 12em; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- gather & family index */
.seg a { flex: 1; text-align: center; padding: 8px 12px; border-radius: 10px; font-weight: 600; color: var(--muted); white-space: nowrap; text-decoration: none !important; }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.row.between { justify-content: space-between; }
.row.center { justify-content: center; }
.pad { padding: 4px 2px 8px; }
.push { margin-left: auto; }
.small { font-size: .85rem; }
.meter { position: relative; display: grid; place-items: center; }
.meter svg { transform: rotate(-90deg); }
.meter-bg { fill: none; stroke: var(--line); stroke-width: 3.5; }
.meter-fg { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; }
.meter span { position: absolute; display: grid; text-align: center; line-height: 1; }
.meter b { font-family: var(--serif); font-size: 1rem; }
.meter small { font-size: .62rem; color: var(--muted); }
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; display: grid; gap: 12px; }
.q-card.for-me { border-color: var(--accent-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 12%, transparent); }
.q-card header { display: flex; gap: 12px; align-items: flex-start; }
.q-text { font-family: var(--serif); font-size: 1.12rem; font-weight: 500; }
.q-card form { gap: 8px; }
blockquote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 12px 12px 0; color: var(--ink-2); }
blockquote cite { display: block; font-size: .8rem; color: var(--muted); font-style: normal; margin-top: 4px; }
.gaps { display: grid; gap: 10px; }
.gap { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.gap.done { border-color: var(--ok); }
.gap-input { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.gap-input input, .gap-input textarea { flex: 1; min-width: 160px; }
.elder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.interview header small { display: block; }
.progress { height: 6px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s; }
.interview-q { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.3; }
.panel.center { justify-items: center; text-align: center; }
.panel.center > * { max-width: 100%; }
.people-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; max-height: 220px; overflow-y: auto; }
.pick.small { padding: 5px 8px; font-size: .86rem; }
.index-hero { background: radial-gradient(800px 300px at 100% 0%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 12%, var(--surface)), var(--surface)); }
.lead-text { font-size: 1.05rem; color: var(--ink-2); max-width: 60ch; margin-top: 8px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cat-tile { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: transform .15s; }
.cat-tile .ico { color: var(--accent-2); }
.cat-tile small { color: var(--muted); font-size: .8rem; }
.cat-tile:hover { transform: translateY(-2px); border-color: var(--accent-2); }
.cat-tile.empty-cat { opacity: .7; border-style: dashed; }
.keepers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.keepers li { display: flex; gap: 10px; align-items: center; }
.keepers .grow { display: grid; line-height: 1.25; }
.keepers small { color: var(--muted); font-size: .8rem; }
.rank { width: 22px; font-family: var(--serif); font-weight: 700; color: var(--muted); text-align: center; }
.entry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.entry-card { display: grid; gap: 6px; align-content: start; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.entry-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.entry-card > b { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.entry-card p { color: var(--ink-2); font-size: .9rem; }
.entry-card footer { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.entry-card footer small { color: var(--muted); font-size: .78rem; }
.entry-cat { display: inline-flex; gap: 6px; align-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.entry-full { display: grid; gap: 12px; }
.entry-full h2 { font-size: 1.6rem; }
.entry-body { font-size: 1.02rem; line-height: 1.65; color: var(--ink-2); }
.comment { display: flex; gap: 10px; align-items: flex-start; }
.comment p { color: var(--ink-2); font-size: .92rem; }
.timeline section { position: relative; padding-left: 28px; border-left: 2px solid var(--line); margin-left: 10px; padding-bottom: 8px; }
.decade { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 10px -46px; background: var(--bg); display: inline-block; padding: 2px 8px; color: var(--accent); }
.tl-item { display: flex; gap: 12px; align-items: center; padding: 6px 0; }
.tl-item > div { display: grid; line-height: 1.3; }
.tl-item .link-btn { text-align: left; }
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.place-grid .panel + .panel { margin-top: 0; }
.place h3 { display: flex; gap: 6px; align-items: center; font-size: 1.05rem; }
.az { display: flex; flex-wrap: wrap; gap: 4px; position: sticky; top: 0; background: var(--bg); padding: 8px 0; z-index: 2; }
.az a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; text-decoration: none !important; }
.life-story { display: grid; gap: 10px; font-family: var(--serif); font-size: 1.08rem; line-height: 1.6; color: var(--ink-2); max-width: 75ch; }
.life-story .link-btn { font-family: var(--serif); font-size: inherit; display: inline; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- groups, announcements, polls, voice */
.avatar.group.household { background: color-mix(in srgb, var(--accent-2) 15%, transparent); color: var(--accent-2); }
.avatar.group.branch { background: color-mix(in srgb, #3d6f9a 15%, transparent); color: #3d6f9a; }
.avatar.group.generation { background: color-mix(in srgb, #86538a 15%, transparent); color: #86538a; }
.avatar.group.inlaws { background: color-mix(in srgb, #c0577a 15%, transparent); color: #c0577a; }
.quiet-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .6; flex-shrink: 0; }
.msg-card-wrap { margin: 10px 0; display: flex; justify-content: center; }
.msg-card { width: min(560px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.msg-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.msg-card footer { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ann-type { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.ann-body { font-family: var(--serif); font-size: 1.12rem; line-height: 1.45; overflow-wrap: anywhere; }
.announce { border-left: 5px solid var(--accent-2); }
.announce.birth { border-left-color: #3d8f6a; } .announce.birth .ann-type { color: #3d8f6a; }
.announce.wedding { border-left-color: #c0577a; } .announce.wedding .ann-type { color: #c0577a; }
.announce.passing { border-left-color: var(--muted); } .announce.passing .ann-type { color: var(--muted); }
.announce.meeting { border-left-color: #3d6f9a; } .announce.meeting .ann-type { color: #3d6f9a; }
.announce.urgent { border-left-color: var(--danger); background: color-mix(in srgb, var(--danger) 5%, var(--surface)); } .announce.urgent .ann-type { color: var(--danger); }
.seen-meter { position: relative; flex: 1; min-width: 140px; height: 28px; border-radius: 14px; background: var(--bg-2); border: 0; overflow: hidden; cursor: pointer; text-align: left; padding: 0 12px; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.seen-meter i { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--ok) 25%, transparent); transition: width .3s; }
.seen-meter span { position: relative; }
.who-list { font-size: .82rem; }
.poll-options { display: grid; gap: 6px; }
.poll-opt { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; overflow: hidden; text-align: left; font-weight: 500; }
.poll-opt i { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--accent) 14%, transparent); transition: width .35s; }
.poll-opt span, .poll-opt b { position: relative; }
.poll-opt.mine { border-color: var(--accent); font-weight: 700; }
.poll-opt.lead i { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.poll-opt:hover { border-color: var(--accent); }
.attach { position: relative; }
.attach-menu { position: absolute; bottom: calc(100% + 8px); left: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; min-width: 250px; z-index: 5; }
.attach-menu button { display: grid; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.attach-menu button:hover { background: var(--surface-2); }
.attach-menu small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.type-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.type-chip { display: inline-flex; cursor: pointer; }
.type-chip input { position: absolute; opacity: 0; }
.type-chip span { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: .86rem; }
.type-chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.type-chip input:focus-visible + span { outline: 2.5px solid var(--accent-2); }
.poll-inputs { display: grid; gap: 8px; }
/* The player, by its attribute: a voice note's chat bubble also has the class "voice" (its kind). */
[data-voice] { display: flex; align-items: center; gap: 10px; min-width: 200px; padding: 2px 0; }
.voice-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); cursor: pointer; flex-shrink: 0; }
.voice-track { flex: 1; height: 6px; border-radius: 3px; background: color-mix(in srgb, currentColor 18%, transparent); overflow: hidden; }
.voice-track i { display: block; height: 100%; width: 0; background: currentColor; transition: width .2s linear; }
[data-voice] time { font-size: .78rem; font-variant-numeric: tabular-nums; }
.msg.mine .voice-btn { background: var(--on-accent); color: var(--accent); }
.recording { display: flex; gap: 10px; align-items: center; padding: 12px 20px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--danger); animation: blink 1s ease infinite; display: inline-block; }
@keyframes blink { 50% { opacity: .25; } }
.recording-now { border-color: var(--danger) !important; color: var(--danger) !important; }
.big-record { margin: 0 20px 10px; padding: 16px; border-radius: 18px; border: 2px dashed var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 1.1rem; display: flex; gap: 12px; justify-content: center; align-items: center; cursor: pointer; }
.record-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.entry-audio { display: grid; gap: 6px; padding: 12px 14px; background: var(--accent-soft); border-radius: 14px; color: var(--accent); }

/* home announcement strip + elder panel */
.announce-strip { display: grid; gap: 10px; margin-bottom: 20px; }
.announce-strip .msg-card { width: 100%; transition: opacity .25s, transform .25s; }
.announce-strip .msg-card.acked { opacity: 0; transform: translateY(-6px); }
.elder-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.elder-tile { display: grid; gap: 6px; justify-items: start; padding: 22px; border-radius: 22px; background: var(--surface); border: 2px solid var(--line); color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow); }
.elder-tile .ico { color: var(--accent); }
.elder-tile b { font-family: var(--serif); font-size: 1.35rem; }
.elder-tile small { color: var(--muted); font-size: 1rem; }
.elder-tile.accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.elder-tile.accent .ico, .elder-tile.accent small { color: var(--on-accent); }
.elder-tile:hover { border-color: var(--accent-2); }
.check.big { align-items: flex-start; }
.check.big input { flex-shrink: 0; margin-top: .2em; }
.check.big span { display: grid; gap: 2px; min-width: 0; }

/* elder mode: bigger, calmer, simpler */
html.elder { font-size: 19px; }
html.elder body { font-size: 18px; line-height: 1.55; }
html.elder .btn { padding: 13px 20px; }
html.elder .btn.small { padding: 10px 16px; font-size: .95rem; }
html.elder .sidebar nav a { padding: 14px; font-size: 1.05rem; }
html.elder .bubble p, html.elder .ann-body { font-size: 1.15rem; }
html.elder .chat-item-text small, html.elder .muted, html.elder .hint { color: var(--ink-2); }
html.elder .voice-btn { width: 48px; height: 48px; }
html.elder .msg { max-width: 92%; }
html.elder .hero h1 { font-size: 2.6rem; }

.brand-story { margin-top: 18px; padding-left: 12px; border-left: 3px solid #f2b53c; font-size: .95rem !important; opacity: .9 !important; }
.brand-story b { color: #f2b53c; }

/* ---------- names, origins, houses, history */
.card-nick { font: italic 500 11.5px var(--sans); fill: var(--accent); }
.house-bracket { fill: none; stroke: var(--accent-2); stroke-width: 2.2; stroke-linejoin: round; opacity: .8; }
.house-label { font: 800 9.5px var(--sans); letter-spacing: .1em; fill: var(--accent-2); text-anchor: middle; }
.tree-toggle { cursor: pointer; }
.tree-toggle rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.2; }
.tree-toggle text { font: 700 12px var(--sans); fill: var(--ink-2); text-anchor: middle; }
.tree-toggle.collapsed rect { fill: var(--accent); stroke: var(--accent); }
.tree-toggle.collapsed text { fill: var(--on-accent); font-size: 11px; }
.tree-toggle:hover rect, .tree-toggle:focus-visible rect { stroke: var(--accent); stroke-width: 2; }
.tree-toggle:focus { outline: none; }
.nick { font-family: var(--serif); font-style: italic; color: var(--accent); margin-top: -2px; }
.nick.big { font-size: 1.2rem; margin: 2px 0 4px; }
.origin-line { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; color: var(--ink-2); }
.aka h4 { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.aka-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.aka-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.aka-chip small { color: var(--muted); font-size: .74rem; }
.icon-btn.tiny { width: 22px; height: 22px; border-radius: 7px; border: 0; background: transparent; }
.grid3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
.form-section { border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.form-section legend { padding: 0 6px; font-family: var(--serif); font-size: 1rem; color: var(--ink); }
.history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.history-list li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.history-list li:last-child { border-bottom: 0; }
.history-list li.undone > span { opacity: .55; text-decoration: line-through; text-decoration-color: var(--line-2); }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr; } }
.honorary-link { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; }
.honorary-label { font: 800 9.5px var(--sans); letter-spacing: .1em; fill: var(--gold); text-anchor: middle; }
.card.honorary .card-bg { fill: color-mix(in srgb, var(--gold) 7%, var(--surface)); stroke: var(--gold); stroke-dasharray: 2 4; }
.descent.adopted { stroke-dasharray: 6 5; }
.versions { color: var(--muted); font-size: .88rem; }
.versions b { color: var(--accent-2); }
.version-list { display: grid; gap: 10px; margin: 12px 0; }
.version { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.version.main { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 5%, var(--surface)); }
.version header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.version header b { font-family: var(--serif); font-size: 1.2rem; }
.version ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.version li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.row-actions { margin-left: auto; display: flex; gap: 12px; }
.panel.subtle, .subtle-form { background: var(--surface-2); box-shadow: none; }
.subtle-form { border: 1px dashed var(--line-2); border-radius: 14px; padding: 14px; margin-top: 8px; }
.callout.gold { background: color-mix(in srgb, var(--gold) 14%, var(--surface)); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; }
.head-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.head-history li { display: flex; gap: 10px; align-items: center; }
.head-history span { display: grid; line-height: 1.25; }
.rel-line-wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.guardian-note { display: block; color: var(--gold); font-weight: 600; font-size: .78rem; margin-top: 2px; }
.read-only-msgs { display: grid; gap: 10px; margin-top: 12px; max-height: 50vh; overflow-y: auto; }

/* ---------- sign-in, invites, onboarding */
.auth-box { width: 100%; max-width: 400px; display: grid; gap: 12px; }
.auth-box h2 { font-size: 1.9rem; }
.auth-box form { display: grid; gap: 14px; }
.code-input { font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.row.between { justify-content: space-between; }
.center { text-align: center; }
.join-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
.join-card { display: grid; gap: 14px; align-content: center; padding: 48px max(24px, 6vw); max-width: 620px; }
.join-card h1 { font-size: clamp(2rem, 5vw, 3rem); text-wrap: balance; }
.join-art { background: radial-gradient(900px 500px at 0% 0%, #7a4a0c 0%, transparent 62%), linear-gradient(160deg, #3a250a, #1c1206); color: #f2b53c; display: grid; place-items: center; padding: 32px; }
.join-art .art { max-width: 420px; }
.is-this-you { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; border: 2px solid var(--accent); background: var(--accent-soft); }
.is-this-you > div { display: grid; line-height: 1.3; }
.is-this-you b { font-family: var(--serif); font-size: 1.3rem; }
.join-app { display: grid; gap: 6px; justify-items: start; }
.narrow-card { max-width: 480px; margin: 10vh auto; }
.center-page { padding: 16px; }
.claim-list { display: grid; gap: 8px; margin: 16px 0; }
.claim-item { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.claim-item:hover { border-color: var(--accent); }
.claim-item > span:nth-child(2) { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.claim-item small { color: var(--muted); }
.not-in-tree summary { cursor: pointer; padding: 4px 0; }
.not-in-tree form { margin-top: 12px; }
.stepper { display: flex; gap: 8px; }
.stepper span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--bg-2); color: var(--muted); }
.stepper span.on { background: var(--accent); color: var(--on-accent); }
.stepper span.done { background: var(--accent-soft); color: var(--accent); }
[data-start] details summary { cursor: pointer; color: var(--accent); font-weight: 600; margin-top: 8px; }
[data-start] details form { margin-top: 12px; }
/* Below a window (.modal-wrap, 100): a tip is about the page, so a window opened over the page covers it. */
.tip { position: fixed; z-index: 90; background: var(--ink); color: var(--bg); padding: 14px 16px; border-radius: 16px; box-shadow: var(--shadow-lg); display: grid; gap: 10px; animation: rise .25s ease; }
.tip p { font-size: .95rem; line-height: 1.45; }
.tip .btn { justify-self: end; background: var(--honey); color: #2a1a04; }
.tip .row { justify-content: flex-end; }
.tip .btn.ghost { background: transparent; color: var(--bg); border: 1px solid currentColor; }
.share-preview { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; font-size: .95rem; overflow-wrap: anywhere; }
.share-actions { display: grid; gap: 8px; margin-top: 12px; }
.btn.whatsapp { background: #1f8f4e; color: #fff; }
.invite-link { font-size: .95rem !important; letter-spacing: 0 !important; overflow-wrap: anywhere; }
.install-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 0; background: var(--accent-soft); color: var(--accent); font-weight: 600; cursor: pointer; text-align: left; }

/* ---------- phones: bottom tabs, safe areas */
.tabbar { display: none; }
@media (max-width: 860px) {
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); flex: none; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a, .tabbar button {
    display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; font-size: .78rem; font-weight: 600; color: var(--muted);
    text-decoration: none !important; border: 0; background: none; cursor: pointer; position: relative; min-height: 56px;
  }
  .tabbar .on { color: var(--accent); }
  .tabbar .badge { position: absolute; top: 4px; left: calc(50% + 6px); margin: 0; }
  .topbar { padding-top: calc(10px + env(safe-area-inset-top)); }
  .topbar [data-menu] { display: none; }
  body.in-thread .tabbar { display: none; }
  .join-page { grid-template-columns: 1fr; }
  .join-art { display: none; }
  .join-card { padding: 32px 16px; }
  .welcome-grid { gap: 14px; }
}
html.elder .tabbar a, html.elder .tabbar button { font-size: .8rem; min-height: 64px; }

/* ---------------------------------------------------------------- phones, safety, notifications */
button.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.pair-box { display: grid; gap: 12px; justify-items: center; text-align: left; }
.pair-box .qr { width: min(240px, 70vw); background: #fff; padding: 8px; border-radius: 14px; border: 1px solid var(--line); }
.pair-box .qr svg { display: block; width: 100%; height: auto; }
.pair-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.pair-code { font-size: 2rem; font-weight: 700; letter-spacing: .14em; margin: 0; font-variant-numeric: tabular-nums; }
.pair-done { color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.pair-confirm { display: grid; gap: 12px; justify-items: center; text-align: center; }
.plain-list { margin: 0 0 8px; padding-left: 20px; }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.msg { position: relative; }
.msg-more { align-self: center; background: none; border: 0; color: var(--muted); padding: 6px; border-radius: 50%; cursor: pointer; opacity: .55; }
.msg-more:hover, .msg-more:focus-visible { opacity: 1; background: color-mix(in srgb, var(--muted) 14%, transparent); }
@media (hover: hover) { .msg-more { opacity: 0; } .msg:hover .msg-more { opacity: .7; } }
.msg.blocked .bubble { background: transparent; border-style: dashed; font-style: italic; }
.menu-list { display: grid; gap: 8px; }
.menu-list .btn { justify-content: flex-start; }
.reason-list { display: grid; gap: 4px; border: 0; padding: 0; margin: 0 0 10px; }
.report-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.report-list li { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.report-list li:not(.open) { opacity: .65; }
.report-list .excerpt { margin: 4px 0; padding-left: 10px; border-left: 3px solid var(--line); white-space: pre-wrap; }
.link-btn.tiny { font-size: .8rem; }

/* ---------------------------------------------------------------- titles */
.title-tag rect { fill: var(--gold); }
.title-tag text { font: 800 9px var(--sans); fill: #2a1d05; text-anchor: middle; letter-spacing: .08em; }
.title-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.title-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); background: color-mix(in srgb, var(--gold) 12%, transparent); color: var(--ink); font: inherit; font-size: .85rem; cursor: pointer; }
.title-chip:disabled { cursor: default; }
.title-chip .ico { color: var(--gold); }
.title-chip small { color: var(--muted); }
.title-chip.past { background: transparent; border-color: var(--line); }
.title-block { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; display: grid; gap: 8px; }
.title-block header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.holder-line { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 8px; }
.holder-line li { display: flex; align-items: center; gap: 6px; position: relative; }
.holder-line li::before { content: ''; position: absolute; left: -20px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--line-2); }
.holder-line li.current::before { background: var(--gold); }
.holder-line a { display: flex; align-items: center; gap: 8px; color: inherit; flex: 1; min-width: 0; }
.holder-line a span { display: grid; min-width: 0; }
.holder-line small { color: var(--muted); }

/* ---------------------------------------------------------------- guest pages and guestbooks */
.guest-page { max-width: 720px; margin: 0 auto; padding: 16px 16px 48px; display: grid; gap: 18px; }
.guest-top { display: flex; justify-content: center; padding: 6px 0; }
.guest-hero { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 18px 8px 4px; }
.guest-hero h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.15; }
.guest-people { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.guest-people > div { display: grid; justify-items: center; gap: 6px; }
.guest-people small { color: var(--muted); }
.guest-people .amp { font-size: 1.6rem; color: var(--gold); }
.guest-page.memorial .guest-people .avatar { filter: grayscale(.35); }
.guest-desc { max-width: 560px; margin: 4px auto 0; color: var(--ink-2); }
.guest-book h2 { margin-top: 0; }
.guest-cta { display: grid; gap: 10px; justify-items: start; margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--accent-soft); }
.guest-foot { text-align: center; }
.book-entries { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.book-entries li { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 4px; }
.book-entries li p { margin: 0; white-space: pre-wrap; }
.book-entries li small { color: var(--muted); }
.book-entries li.muted { background: none; border: 0; padding: 0; }
.book-entries.manage li { grid-template-columns: 1fr auto; }
.book-entries.manage li p, .book-entries.manage li small { grid-column: 1; }
.book-entries.manage li .link-btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.book-entries li.hidden-entry { opacity: .55; }
.member-list.requests li { flex-wrap: wrap; }
.member-list.requests li .grow { flex: 1 1 220px; display: grid; gap: 2px; }

/* ---------------------------------------------------------------- RSVPs */
.rsvp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.rsvp .seg button.on { background: var(--accent); color: var(--on-accent); }

/* ---------------------------------------------------------------- contributions */
.fund-list { display: grid; gap: 12px; }
.fund-card { display: grid; gap: 6px; color: inherit; text-decoration: none; }
.fund-card:hover { text-decoration: none; border-color: var(--line-2); }
.fund-card header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fund-card p { margin: 0; }
.fund-card.closed { opacity: .7; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.ok-text { color: var(--ok); font-weight: 600; }
.warn-line { margin: 0; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--ink); }
.fund-totals { display: grid; gap: 8px; }
.fund-totals .big-number { font-size: 2rem; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.fund-totals p { margin: 0; }
.fund-totals .btn { justify-self: start; }
.pay-to.changed { border-color: var(--danger); }
.pay-to-text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; margin: 0; }
.pay-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pay-list li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.pay-list li .grow { display: grid; gap: 2px; flex: 1 1 220px; }
.pay-list li.rejected, .pay-list li.reversed { opacity: .6; }
.pay-list li.pending { border-style: dashed; }
.pay-list li.muted { border: 0; padding: 0; }
.share-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.share-table th, .share-table td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.share-table th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.share-inputs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 10px 0; }
.share-input { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 8px; }
.ledger summary { cursor: pointer; list-style: none; display: grid; gap: 2px; }
.ledger summary h2 { margin: 0; }
.ledger-list { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.ledger-list li { display: grid; gap: 2px; }
.rate-check { color: var(--danger); font-size: .85rem; }
/* Events with RSVPs and books: actions drop below the text on phones. */
.event-row { flex-wrap: wrap; }
.event-row .grow { flex: 1 1 200px; min-width: 0; }
.rsvp .link-btn { display: inline; text-align: left; }
.rsvp .seg { max-width: 100%; }
@media (max-width: 520px) {
  .event-row > .btn, .event-row > .icon-btn { margin-left: auto; }
  .event-row .rsvp .seg button { padding-inline: 8px; font-size: .84rem; }
}

/* ---------------------------------------------------------------- heritage */
.heritage-section h2 { margin-top: 0; }
.heritage-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 12px; }
.heritage-item { display: flex; gap: 10px; align-items: flex-start; }
.heritage-item .grow { display: grid; gap: 4px; min-width: 0; }
.heritage-item .grow > .chip { justify-self: start; } /* "1932", "Every December": as wide as its words */
.heritage-body { margin: 2px 0 0; font-family: var(--serif); font-size: 1.05rem; line-height: 1.55; white-space: pre-wrap; }
.heritage-meaning { margin: 0; font-style: italic; }
.town-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.voice-field { display: grid; gap: 6px; justify-items: start; }
.label-text { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.family-term { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--muted); font-style: italic; }

/* ---------------------------------------------------------------- Bee */
.bee-ask textarea { width: 100%; font-size: 1.02rem; }
.bee-ask .row { align-items: center; gap: 12px; }
.bee-answer { display: grid; gap: 10px; }
.bee-q { margin: 0; font-weight: 600; }
.bee-a { font-family: var(--serif); font-size: 1.05rem; line-height: 1.6; }
@media (max-width: 860px) { .bee-a { font-family: var(--sans); font-size: 1rem; line-height: 1.55; } }
.bee-a.unknown { color: var(--ink-2); }
.bee-sources { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bee-ask-family { padding: 12px; border-radius: 12px; background: var(--accent-soft); display: grid; gap: 6px; justify-items: start; }
.bee-ask-family p { margin: 0; }
.bee-suggested { font-style: italic; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.thumbs img { width: 84px; height: 112px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.prog-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.prog-people li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.prog-people .grow { display: grid; gap: 2px; flex: 1 1 180px; }
.prog-people select { max-width: 100%; }

/* ---------------------------------------------------------------- photos */
.album-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; }
.album-card { flex: 0 0 150px; display: grid; gap: 4px; color: inherit; text-decoration: none; }
.album-card img, .album-empty { width: 150px; height: 150px; object-fit: cover; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.photo-tile { position: relative; padding: 0; border: 0; background: var(--surface-2); border-radius: 8px; overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-badge { position: absolute; left: 6px; bottom: 6px; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; }
.photo-badge.ask { left: auto; right: 6px; background: var(--gold); color: #2a1d05; }
.viewer { display: grid; gap: 12px; }
.viewer-img { position: relative; border-radius: 12px; overflow: hidden; background: #000; }
.viewer-img img { display: block; width: 100%; max-height: 70vh; object-fit: contain; }
.tag-dot { position: absolute; transform: translate(-50%, -50%); font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.65); color: #fff; white-space: nowrap; pointer-events: none; }
.viewer-nav { display: flex; justify-content: space-between; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.turnable { padding: 0; border: 0; background: none; cursor: pointer; }
.turnable img { transform: rotate(var(--turn, 0deg)); transition: transform .2s; }
.thumb-unreadable { display: grid; place-items: center; text-align: center; padding: 6px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: .78rem; width: 84px; height: 112px; box-sizing: border-box; }

/* ---------------------------------------------------------------- interviews with Bee */
.suggest { display: grid; gap: 6px; margin: 4px 0 12px; }
.suggest-q { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; cursor: pointer; }
.suggest-q.on { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.transcript { margin-top: 14px; }
.transcript summary { cursor: pointer; color: var(--muted); }
.transcript ol { padding-left: 20px; display: grid; gap: 10px; }
.transcript p { margin: 2px 0 0; white-space: pre-wrap; }
.draft-story { display: grid; gap: 10px; }
.draft-story select[multiple] { min-height: 96px; }
.report-photo { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin: 6px 0; }

/* Time capsule */
.capsule-list { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 8px; }
.capsule-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.capsule-list li > span { display: grid; flex: 1; min-width: 0; }
.letter { padding: 14px 0; border-top: 1px solid var(--line); }
.letter h3 { margin: 0 0 2px; }
.letter-body { white-space: normal; line-height: 1.6; margin: 10px 0; overflow-wrap: anywhere; }
.letter-form fieldset input[type=date] { margin-top: 6px; }

/* Living Portrait */
.portrait-para { margin: 0 0 14px; }
.portrait-para p { margin: 0 0 6px; line-height: 1.65; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.source-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .76rem; text-decoration: none; cursor: pointer; font: inherit; font-size: .76rem; }
a.source-chip:hover, button.source-chip:hover { color: var(--text); border-color: var(--accent); }
.portrait-editor { display: grid; gap: 12px; }
.portrait-edit-para { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.gaps ul { margin: 4px 0; padding-left: 18px; }

/* ---------- touch screens: fields iPhone won't zoom into, targets a thumb can hit, text that can be read */
@media (pointer: coarse) {
  /* Safari zooms the page into any field under 16px and leaves it zoomed. */
  html body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea) { font-size: max(16px, 1em); }
  input[type=checkbox], input[type=radio] { width: 20px; height: 20px; flex: none; }
  .link-btn:not(.life-story .link-btn):not(.rsvp .link-btn), .back-link { min-height: 40px; }
  .icon-btn { min-width: 40px; min-height: 40px; }
  .icon-btn.tiny { width: 32px; height: 32px; }
  .meter small, .gen-head small { font-size: .72rem; }
  .person-card i, .bubble time { font-size: .74rem; }
}

/* ---------- narrow phones: nothing runs off the edge or sits on top of something else */
@media (max-width: 600px) {
  /* Filter tabs wrap onto a second line instead of hiding off the right edge. */
  .seg { flex-wrap: wrap; overflow-x: visible; }
  .seg button, .seg a { flex: 1 0 auto; }
  /* My profile: the name beside the photo, View and Edit on their own row underneath. */
  .me-card .grow { flex: 1 1 calc(100% - 100px); min-width: 0; }
  .me-card .grow h2 { overflow-wrap: anywhere; }
  .me-card > .btn { flex: 1; justify-content: center; }
}

/* ---------- the offer to turn on notifications, on the family home page */
.notify-offer { display: flex; gap: 14px; align-items: flex-start; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--accent-soft); }
.notify-offer h2 { margin: 0 0 4px; font-size: 1.15rem; }
.notify-offer p { margin: 0 0 12px; }
.notify-offer-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }

/* The check before saving names: its lines and buttons stacked, full width. */
.callout.name-check { display: grid; gap: 8px; justify-items: start; }
.name-check p { margin: 0; }
.name-check .btn { white-space: normal; text-align: left; }
.name-preview { margin: -4px 0 0; }

/* ---------- someone special before marriage */
.partner-chip rect { fill: var(--surface); stroke: #c2627c; stroke-width: 1.5; stroke-dasharray: 4 3; }
.partner-chip.engaged rect { stroke-dasharray: none; }
.partner-chip text { fill: #a3405c; font-size: 11px; font-weight: 600; text-anchor: middle; }
.partner-line { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.partner-line .ico, .rel-line .ico { color: #c2627c; }

/* A person's marriages, in order, each with a Change button. */
.marriage-row { display: flex; align-items: center; gap: 8px; }
.marriage-row .rel-line { flex: 1; min-width: 0; }

/* Add a relative right under the relatives of that kind on the person page. */
.add-rel { display: flex; margin: 6px 0 12px; font-size: .86rem; }
.add-rel[hidden] { display: none; }
.family-more { margin-top: 10px; }
.stack-links { display: grid; gap: 12px; justify-items: start; }
.add-about { margin: 4px 0 12px; gap: 16px; }


/* Help: situations under headings, each folded until tapped. */
.help h1 { display: flex; align-items: center; gap: 10px; }
.help-search { width: 100%; margin: 8px 0 18px; }
.help-group { margin-bottom: 20px; }
.help-group h2 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-family: var(--sans); margin: 0 0 8px; }
.help-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.help-item summary { cursor: pointer; padding: 13px 16px; font-weight: 600; }
.help-item ol { margin: 0; padding: 0 18px 14px 36px; display: grid; gap: 8px; color: var(--ink-2); }
.help-item[hidden], .help-group[hidden] { display: none; }

/* ---------- inviting relatives */
.invite-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; max-height: 50vh; overflow-y: auto; }
.invite-list li { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.invite-list li:last-child { border-bottom: 0; }
.invite-list .grow { display: grid; min-width: 0; }
.invite-list .grow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite-family { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }

/* ---------- finding your place in the tree, one question at a time */
.find-place .claim-list { max-height: 52vh; overflow-y: auto; }
.find-next { display: grid; gap: 10px; margin-top: 16px; }
.find-foot { margin-top: 18px; }

/* ---------- the pages of a tab, along the top */
.subnav { display: flex; gap: 6px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); background: var(--bg); flex: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.subnav a:hover { background: var(--surface-2); color: var(--ink); }
.subnav a.on { background: var(--accent-soft); color: var(--accent); }
.subnav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html.elder .subnav a { padding: 12px 18px; font-size: 1.05rem; }

/* ---------- More */
.more-list { display: grid; gap: 8px; margin-bottom: 20px; }
.more-list a, .more-list button { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; }
.more-list a > span, .more-list button > span { display: grid; gap: 2px; flex: 1; min-width: 0; }
.more-list small { color: var(--muted); }
.more-list a:hover, .more-list button:hover { background: var(--surface-2); }
.more-list a > svg:first-child, .more-list button > svg:first-child { color: var(--accent); flex: none; }
.more-families { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
.more-families a { display: block; padding: 8px 0; color: var(--ink); }
.more-families a.on { font-weight: 600; }

@media (max-width: 860px) {
  /* On a phone the pages of a tab wrap onto a second line rather than run off the screen. */
  .subnav { flex-wrap: wrap; overflow: visible; padding: 8px 12px; }
  /* Messages and notices sit above the tab bar, not on it. */
  #toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
.subnav a { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; }
.subnav a.back { color: var(--accent); padding-left: 8px; }
.topbar-family { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; max-width: 55%; background: none; border: 0; padding: 8px 4px; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.topbar-family span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.elder .tabbar a span { font-size: .86rem; letter-spacing: 0; white-space: nowrap; }

/* ---------- a short list of choices, one per line (how a family works) */
.choice-list { display: grid; gap: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang-pick { display: inline-flex; align-items: center; gap: 6px; margin: 12px auto 0; color: var(--muted); }
.lang-pick select { width: auto; min-height: 40px; padding: 6px 10px; }


/* A relative's code to read out (account.js accessPanel). */
.big-code { display: block; white-space: nowrap; margin-bottom: 4px; font: 700 1.7rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.callout.code-box { display: block; }

/* Place boxes that suggest towns as you type (places-ui.js). */
.place-host { position: relative; }
.place-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin-top: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 60vh; overflow-y: auto; }
.place-list li { display: grid; gap: 1px; padding: 10px 12px; border-radius: 9px; cursor: pointer; min-height: 44px; }
.place-list li b { font-weight: 600; }
.place-list li small { color: var(--muted); font-size: .85rem; font-weight: 400; }
.place-list ul { margin: 0; padding: 0; list-style: none; }
.place-list li[aria-selected="true"], .place-list li:hover { background: var(--accent-soft); }
.place-list .place-hint { margin: 4px 12px 6px; color: var(--muted); font-size: .85rem; font-weight: 400; }

/* Something from a muted branch, folded (mutes-ui.js). */
.msg-fold, .post-fold { margin: 4px 0; }
.fold-btn { font-size: .9rem; padding: 6px 0; }
/* A relative's page: the buttons drawn into these hosts join the row and its spacing. */
.row > [data-safety], .row > [data-mute] { display: contents; }
/* Work & business (board-ui.js). */
/* On a phone the tabs wrap onto a second line, as every .seg does (see "narrow phones"). */
.board-filter { justify-content: flex-start; }
.board-filter button { flex: 1 0 auto; }
.board-hint { margin-bottom: 14px; }
.listing { display: grid; gap: 6px; margin-bottom: 12px; }
.listing header { display: flex; gap: 6px; }
.listing h3 { margin: 0; font-size: 1.1rem; }
.listing p { margin: 0; }
.listing.closed { opacity: .75; }
.listing-meta a { color: inherit; }
.listing footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
/* On a phone the name keeps a line of its own and the buttons sit together underneath. */
@media (max-width: 600px) { .listing footer .grow { flex-basis: calc(100% - 40px); } }
.skills { margin-top: 12px; }
/* Little Bee: a child's home (little-bee-ui.js). Big, friendly, easy to tap. */
.lb-hello { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.lb-hello .page-title { margin: 0; }
.lb-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.lb-tabs button { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); font-size: 1.6rem; cursor: pointer; }
.lb-tabs button span { font-size: .95rem; font-weight: 700; color: var(--ink); }
.lb-tabs button.on { border-color: var(--accent); background: var(--accent-soft); }
.lb-group h2 { font-size: 1.15rem; margin: 18px 0 10px; }
.lb-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.lb-person { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; text-align: center; }
.lb-person b { font-size: 1.05rem; }
.lb-person small { color: var(--muted); }
.lb-person.gone { opacity: .8; }
.lb-card { display: grid; justify-items: center; gap: 8px; text-align: center; }
.lb-card h2, .lb-card p { margin: 0; }
.lb-label { font-size: 1.15rem; font-weight: 700; color: var(--accent); }
.lb-game { display: grid; justify-items: center; gap: 12px; text-align: center; }
.lb-game h2 { margin: 0; font-size: 1.4rem; }
.lb-options { display: grid; gap: 10px; width: 100%; max-width: 420px; }
.lb-option { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 14px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.lb-option.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--surface)); }
.lb-option.wrong { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
.lb-feedback { min-height: 1.5em; font-weight: 700; margin: 0; }
.lb-big { font-size: 3.5rem; margin: 0; }
.lb-talk { display: grid; gap: 10px; margin-top: 10px; }
.lb-chat { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.lb-chat b { flex: 1; }
.lb-group-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); }
.lb-new { padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .85rem; font-weight: 700; }
