:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --text: #24302c;
  --muted: #6b7672;
  --border: #e3ddd2;
  --brand: #2f6f5e;
  --brand-ink: #ffffff;
  --brand-soft: #e3efe9;
  --accent: #d99a2b;
  --danger: #b4443a;
  --line: #b9b2a5;
  --female: #c0577a;
  --male: #3d6fa8;
  --other: #7c62a8;
  --shadow: 0 1px 2px rgb(30 40 35 / 6%), 0 4px 16px rgb(30 40 35 / 6%);
  --radius: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151a18;
    --surface: #1d2422;
    --surface-2: #232b28;
    --text: #e6ebe8;
    --muted: #9aa6a1;
    --border: #2f3a36;
    --brand: #5fb39a;
    --brand-ink: #0e1513;
    --brand-soft: #22352f;
    --accent: #e5b25a;
    --danger: #e0786d;
    --line: #4d5a55;
    --female: #e48aa8;
    --male: #7fa9dd;
    --other: #b59ae0;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 16px rgb(0 0 0 / 25%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.loading { padding: 3rem; text-align: center; color: var(--muted); }
.hidden { display: none !important; }

/* ---------- layout ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.brand img { width: 28px; height: 28px; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: .25rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a {
  padding: .4rem .75rem; border-radius: 999px; color: var(--muted); white-space: nowrap; font-weight: 500;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--brand-soft); color: var(--brand); }
.badge {
  display: inline-block; min-width: 1.3em; padding: 0 .4em; margin-left: .3em;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; text-align: center; line-height: 1.4;
}
.usermenu { display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
main.wide { max-width: none; padding: 0; }

@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; padding: .5rem 1rem; gap: .5rem; }
  .nav { order: 3; flex-basis: 100%; }
  .usermenu .who { display: none; }
  main { padding: 1rem 1rem 3rem; }
}
body.embed .topbar { position: static; }

/* ---------- components ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.card + .card, .stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .5rem .9rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 500; cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--danger); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: .3rem .6rem; font-size: .85rem; }
.btn:disabled { opacity: .55; cursor: default; }

label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .25rem; }
input, select, textarea {
  width: 100%; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
input[type="checkbox"] { width: auto; }
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: .9rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.hint { font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.error { color: var(--danger); font-size: .9rem; margin: .5rem 0; }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.tabs button {
  border: 0; background: none; padding: .5rem .8rem; font: inherit; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.active { color: var(--brand); border-color: var(--brand); font-weight: 600; }

/* avatar */
.avatar {
  --c: var(--muted);
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; overflow: hidden;
  background: color-mix(in srgb, var(--c) 18%, var(--surface)); color: var(--c);
  font-weight: 700; font-size: .9rem; border: 2px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 96px; height: 96px; font-size: 1.8rem; }
.g-female { --c: var(--female); }
.g-male { --c: var(--male); }
.g-other { --c: var(--other); }

/* person chip / list item */
.chip {
  display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); min-width: 0;
}
a.chip:hover { border-color: var(--brand); text-decoration: none; }
.chip .avatar { width: 34px; height: 34px; font-size: .8rem; }
.chip .meta { min-width: 0; flex: 1; }
.chip .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip .sub { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.chip .nm .pill { font-size: .7rem; padding: 0 .4rem; vertical-align: 1px; }
.chip .x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: 0 .25rem; }
.chip .x:hover { color: var(--danger); }

.stat { text-align: center; }
.stat b { display: block; font-size: 1.8rem; color: var(--brand); }
.stat span { color: var(--muted); font-size: .85rem; }

.hero { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.hero .info { flex: 1; min-width: 220px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: .5rem 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.bio { white-space: pre-wrap; }
.pill {
  display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem;
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
}
.pill.warn { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.pill.grey { background: var(--surface-2); color: var(--muted); }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 1.25rem 0 .5rem; }
.section-title h3 { margin: 0; }
.empty { padding: 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 10px; }

/* auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 1rem; padding: 1.5rem; }
.auth { width: 100%; max-width: 420px; }
.auth .brand { justify-content: center; font-size: 1.3rem; margin-bottom: .25rem; }
.auth .tagline { text-align: center; color: var(--muted); margin-bottom: 1.25rem; }

/* dialog */
dialog {
  width: min(640px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text);
  box-shadow: 0 20px 60px rgb(0 0 0 / 25%);
}
dialog::backdrop { background: rgb(20 25 23 / 45%); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.dlg-head h2 { margin: 0; }
.dlg-body { padding: 1.25rem; }
.dlg-foot { display: flex; justify-content: flex-end; gap: .5rem; padding-top: .5rem; }

/* picker */
.picker-results { max-height: 280px; overflow: auto; display: grid; gap: .35rem; margin-top: .5rem; }
.picker-results button.chip { width: 100%; text-align: left; cursor: pointer; font: inherit; }
.picker-results button.chip.selected { border-color: var(--brand); background: var(--brand-soft); }

/* toasts */
#toasts { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: .5rem; width: min(480px, calc(100vw - 2rem)); }
.toast { padding: .7rem 1rem; border-radius: 10px; background: var(--text); color: var(--bg); box-shadow: var(--shadow); animation: pop .2s ease-out; }
.toast.err { background: var(--danger); color: #fff; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

/* requests */
.req { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.req + .req { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1rem; }
.req .msg { font-style: italic; color: var(--muted); }

/* world */
.country { display: flex; flex-direction: column; gap: .5rem; }
.country .head { display: flex; align-items: center; gap: .6rem; }
.country .fl { font-size: 1.8rem; line-height: 1; }
.bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.names { display: flex; flex-wrap: wrap; gap: .25rem .6rem; font-size: .88rem; }

/* photos */
.photo-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.photo {
  position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  aspect-ratio: 4 / 3; background: var(--surface-2); box-shadow: var(--shadow);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.photo:hover img { transform: scale(1.04); }
.photo .cap {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem .6rem .45rem; text-align: left;
  color: #fff; font-size: .8rem; line-height: 1.25; background: linear-gradient(transparent, rgb(0 0 0 / 70%));
}
.photo .cap i { opacity: .8; font-style: normal; }
.photo-full { display: block; width: 100%; max-height: 65vh; object-fit: contain; border-radius: 10px; background: #000; }
dialog.wide { width: min(900px, calc(100vw - 2rem)); }
details summary { cursor: pointer; color: var(--brand); }
.upload-preview { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.upload-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
.tag {
  display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .3rem .15rem .2rem;
  border-radius: 999px; background: var(--brand-soft); font-size: .85rem;
}
.tag .avatar { width: 22px; height: 22px; font-size: .6rem; border-width: 1px; }
.tag button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 .2rem; }
.tag button:hover { color: var(--danger); }

/* code */
pre.code {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .8rem;
  overflow-x: auto; font-size: .85rem; white-space: pre-wrap; word-break: break-all;
}

/* ---------- tree ---------- */
.tree-toolbar {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; padding: .75rem 1.25rem;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.tree-toolbar .focus-info { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 220px; }
.tree-toolbar select { width: auto; padding: .35rem .5rem; }
.tree-toolbar .search { width: 220px; }
.search { position: relative; }
.search .picker-results {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: .35rem; box-shadow: var(--shadow);
}
.tree-viewport {
  height: calc(100vh - 125px); min-height: 420px; overflow: auto; cursor: grab;
  background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 22px 22px;
}
body.embed .tree-viewport { height: calc(100vh - 120px); }
.tree-viewport.dragging { cursor: grabbing; user-select: none; }
.tree-canvas { display: flex; flex-direction: column; align-items: center; min-width: max-content; padding: 2.5rem; }

.tree, .tree ul { --gap: 22px; display: flex; justify-content: center; margin: 0; padding: 0; list-style: none; }
.tree ul { position: relative; padding-top: var(--gap); }
.tree li { position: relative; display: flex; flex-direction: column; align-items: center; padding: var(--gap) 6px 0; }
.tree li::before, .tree li::after {
  content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: var(--gap);
  border-top: 2px solid var(--line);
}
.tree li::after { right: auto; left: 50%; border-left: 2px solid var(--line); }
.tree li:only-child::before, .tree li:only-child::after { display: none; }
.tree li:only-child { padding-top: 0; }
.tree li:first-child::before, .tree li:last-child::after { border: 0 none; }
.tree li:last-child::before { border-right: 2px solid var(--line); border-radius: 0 8px 0 0; }
.tree li:first-child::after { border-radius: 8px 0 0 0; }
.tree ul::before, .tree.kids::before {
  content: ''; position: absolute; top: 0; left: 50%; height: var(--gap); border-left: 2px solid var(--line);
}
.tree.up > li { padding-top: 0; }
.tree.up > li::before, .tree.up > li::after { display: none; }
.tree.kids { position: relative; padding-top: var(--gap); }
/* Ancestors are the same tree drawn upside down; the cards are flipped back. */
.tree.up, .tree.up .couple { transform: scaleY(-1); }

.couple {
  display: flex; align-items: center; gap: 0; padding: 4px; border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.couple .amp { width: 14px; height: 2px; background: var(--line); }
.couple .more {
  margin-left: 4px; font-size: .75rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 0 .45rem;
}
.pcard {
  --c: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: .2rem; width: 132px; padding: .6rem .4rem .5rem;
  border-radius: 12px; border: 1px solid var(--border); border-top: 3px solid var(--c);
  background: var(--surface); color: var(--text); font: inherit; cursor: pointer; box-shadow: var(--shadow);
  text-align: center;
}
.pcard.g-female { --c: var(--female); }
.pcard.g-male { --c: var(--male); }
.pcard.g-other { --c: var(--other); }
.pcard:hover { border-color: var(--c); }
.pcard.focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.pcard.deceased { opacity: .82; }
.pcard .nm { font-weight: 600; font-size: .85rem; line-height: 1.2; }
.pcard .yr, .pcard .loc { font-size: .72rem; color: var(--muted); line-height: 1.2; }
.pcard .avatar { width: 44px; height: 44px; }
.pcard .dist {
  margin-top: .15rem; padding: .05rem .45rem; border-radius: 999px; font-size: .7rem; font-weight: 600;
  background: var(--brand-soft); color: var(--brand);
}
.pcard .dist.flight { background: color-mix(in srgb, var(--accent) 16%, transparent); color: color-mix(in srgb, var(--accent) 80%, var(--text)); }
.tree-empty { padding: 4rem 1rem; text-align: center; }

/* relationship finder */
.kinship {
  margin-top: 1rem; padding: .75rem 1rem; border-radius: 10px; background: var(--brand-soft);
  border-left: 4px solid var(--brand); display: grid; gap: .25rem;
}
.kinship .chain { line-height: 1.6; }
.chosen { display: flex; align-items: center; gap: .4rem; margin-bottom: .4rem; font-weight: 600; }
.chosen .avatar { width: 26px; height: 26px; font-size: .65rem; }

/* privacy & members */
fieldset.privacy { border: 1px solid var(--border); border-radius: 10px; padding: .75rem 1rem 0; margin: 0 0 1rem; }
fieldset.privacy legend { font-weight: 700; padding: 0 .3rem; }
.member { display: grid; gap: .4rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.member:last-child { border-bottom: 0; padding-bottom: 0; }
.member-actions { padding-left: 48px; }
.couple .amp.former { background: none; border-top: 2px dashed var(--line); height: 0; }

/* plans */
.plan h2 { font-size: 1.15rem; }
.rsvp .btn.primary { pointer-events: auto; }

/* printable report */
.report-page { max-width: 1100px; }
.report-controls { margin-bottom: 1rem; }
.report-options { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; margin-top: .75rem; }
.report-options select { width: auto; padding: .25rem .4rem; }
.report {
  /* The report is for paper, so it always uses the light palette. */
  --surface: #fff; --surface-2: #faf8f4; --text: #24302c; --muted: #6b7672; --border: #e3ddd2; --line: #9a9284;
  --brand: #2f6f5e; --brand-soft: #e3efe9; --accent: #d99a2b; --female: #c0577a; --male: #3d6fa8; --other: #7c62a8;
  background: #fff; color: #222; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); color-scheme: light;
}
.report .couple { background: transparent; }
.report .muted { color: #666; }
.report h1 { font-size: 2rem; margin: 0; }
.report h2 { font-size: 1.2rem; margin: 1.5rem 0 .6rem; padding-bottom: .3rem; border-bottom: 2px solid #2f6f5e; color: #2f6f5e; }
.report-head { text-align: center; }
.report-tree { overflow: hidden; }
.report-tree .tree-canvas { padding: .5rem; min-width: 0; width: max-content; margin: 0 auto; }
.report .pcard { --line: #9a9284; cursor: default; box-shadow: none; background: #fff; color: #222; border-color: #d9d3c7; }
.report .tree, .report .tree ul { --line: #9a9284; }
.report .tree li::before, .report .tree li::after, .report .tree ul::before, .report .tree.kids::before { border-color: #9a9284; }
.report-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .75rem; margin-top: 1.25rem; }
.report-facts .stat { border: 1px solid #e3ddd2; border-radius: 10px; padding: .6rem; }
.report-facts .stat b { color: #2f6f5e; }
.report-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.report-table th, .report-table td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid #e3ddd2; vertical-align: top; }
.interview li { margin-bottom: 1rem; }
.answer-lines { height: 3.6rem; background: repeating-linear-gradient(transparent, transparent 1.15rem, #cfc8bb 1.15rem, #cfc8bb calc(1.15rem + 1px)); }
.report footer { margin-top: 2rem; text-align: center; }

@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { background: #fff; }
  .topbar, .no-print, #toasts, dialog { display: none !important; }
  main, main.report-page { padding: 0; max-width: none; }
  .report { box-shadow: none; padding: 0; border-radius: 0; }
  .page-break { break-before: page; }
  .report section, .report-table tr { break-inside: avoid; }
  .pcard { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* multi-hub start page */
.start { max-width: 1000px; }
.start-hero { text-align: center; padding: 1.5rem 0 2rem; }
.start-hero .brand { justify-content: center; font-size: 1.3rem; margin-bottom: 1rem; }
.start-hero h1 { font-size: 2rem; max-width: 720px; margin: 0 auto .75rem; }
.start-hero p { max-width: 640px; margin: 0 auto; }
.slug-row { display: flex; align-items: center; gap: .3rem; }
.slug-row span { white-space: nowrap; font-size: .9rem; }
.features { margin: 0; padding-left: 0; list-style: none; display: grid; gap: .5rem; }
.start hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }

/* install instructions */
.steps { padding-left: 1.25rem; display: grid; gap: .5rem; }
@media (display-mode: standalone) {
  .topbar { padding-top: max(.6rem, env(safe-area-inset-top)); }
}

/* local time */
.pcard .clock { font-size: .7rem; color: var(--muted); }
.zone-time { font-size: 1.8rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* stories & recorder */
.story { display: grid; gap: .5rem; }
.story + .story { border-top: 1px solid var(--border); padding-top: 1rem; }
.story-head { display: flex; gap: .75rem; align-items: center; }
.story audio { width: 100%; height: 40px; }
.prompt { background: var(--brand-soft); border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1rem; font-weight: 500; }
.prompt .btn { margin-top: .25rem; padding-left: 0; }
.recorder { display: flex; gap: 1rem; align-items: center; margin-bottom: .5rem; }
.rec-btn {
  width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--border); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.rec-btn span { width: 26px; height: 26px; border-radius: 50%; background: #d63b3b; transition: border-radius .2s; }
.rec-btn.on { border-color: #d63b3b; animation: pulse 1.4s infinite; }
.rec-btn.on span { border-radius: 6px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgb(214 59 59 / 15%); } }
.rec-time { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.meter { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin: .3rem 0; }
.meter i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .08s; }

/* report sharing */
.share-card { margin-bottom: 1rem; }
.share-card h3 { margin-bottom: .25rem; }
.share-row { padding: .4rem 0; border-top: 1px solid var(--border); }
.shared-report { padding-top: 1.5rem; }

/* connected hubs */
.bridge-banner {
  margin-top: .75rem; padding: .6rem .9rem; border-radius: 10px; border: 1px dashed var(--brand);
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between;
}
.bridge-row { padding: .75rem 0; border-top: 1px solid var(--border); }
.bridge-row .msg { font-style: italic; color: var(--muted); }

/* sign-up agreement, account deletion */
.check.terms { align-items: flex-start; margin: .25rem 0 1rem; font-size: .9rem; line-height: 1.4; }
.check.terms input { margin-top: .2rem; flex: none; }
.auth-foot { text-align: center; }
.auth-foot a { color: inherit; }
.danger-zone h2 { color: var(--danger, #b3261e); }
