/* Hometime: warm paper, ink type, one terracotta accent and a soft display
   serif, for the app that builds, keeps and shares a family's nursery archive.
   Everything is served from here: the fonts are local (SIL Open Font License,
   fonts/OFL-*.txt), with no web fonts or remote CSS. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("fonts/fraunces-latin-wght-normal.eb2486760f75.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 900; font-display: swap;
  src: url("fonts/fraunces-latin-wght-italic.701ae03b5183.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-wght-normal.260c81a4759b.woff2") format("woff2"); }

:root {
  --bg: #fbf8f4; --bg-tint: #f5eee5; --surface: #ffffff; --surface-2: #f6f1ea; --surface-3: #ece4d8;
  --ink: #1f1b17; --ink-2: #57504a; --ink-3: #847b72; --line: #ece5db; --line-2: #ddd3c5;
  --accent: #b4532a; --accent-2: #8f3d1d; --accent-ink: #ffffff; --accent-soft: #f8e8de; --sun: #e39a55;
  --brand: linear-gradient(140deg, #bf5a2f 0%, #e39a55 100%);
  --good: #2f7a52; --good-soft: #e5f3eb;
  --warn: #8a5a00; --warn-soft: #fbf0d9;
  --bad: #b42d2d; --bad-soft: #fbe8e8;
  --info: #2f63a0; --info-soft: #e8eff8;
  --night: #1d1915; --night-2: #2a241f; --night-ink: #f7efe6; --night-ink-2: #cfc3b6;
  --shadow-1: 0 1px 2px rgba(31,27,23,.04), 0 2px 6px rgba(31,27,23,.05);
  --shadow-2: 0 4px 12px rgba(31,27,23,.06), 0 18px 40px rgba(31,27,23,.08);
  --shadow-3: 0 24px 70px rgba(31,27,23,.16);
  --radius: 18px; --radius-s: 12px; --radius-xs: 8px; --wrap: 1160px; --wrap-narrow: 760px; --topbar: 66px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14120f; --bg-tint: #1b1814; --surface: #1d1a16; --surface-2: #26221d; --surface-3: #322d27;
    --ink: #f3eee7; --ink-2: #c9c0b4; --ink-3: #9b9286; --line: #332e28; --line-2: #463f37;
    --accent: #e8895b; --accent-2: #f3a57f; --accent-ink: #1b120d; --accent-soft: #3a261c; --sun: #f0b07a;
    --good: #6fcf97; --good-soft: #1b3126; --warn: #e3b75c; --warn-soft: #352a15;
    --bad: #f08a8a; --bad-soft: #3b1f1f; --info: #86b4ec; --info-soft: #1b2738;
    --night: #0f0d0b; --night-2: #1c1814;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-2: 0 8px 28px rgba(0,0,0,.45); --shadow-3: 0 24px 70px rgba(0,0,0,.55);
    color-scheme: dark;
  }
}

/* Base ---------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 16px/1.6 var(--font); font-feature-settings: "cv11", "ss03"; min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p, dd, li { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-optical-sizing: auto; }
h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.12; }
h2 { font-size: 24px; }
h3 { font-size: 16.5px; font-weight: 650; letter-spacing: -.005em; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
code { font-family: var(--font-mono); font-size: .88em; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* Layout -------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: var(--wrap-narrow); }
.narrow-col { max-width: var(--wrap-narrow); margin: 0 auto; }
.spaced { margin-top: 20px; }
main { flex: 1; padding: 36px 0 80px; outline: none; }
.stack > * + * { margin-top: 20px; }
.stack-l > * + * { margin-top: 32px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.layout > aside { display: grid; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) {
  .layout, .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  main { padding-top: 22px; }
}

/* Brand --------------------------------------------------------------------- */
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center;
  flex: none; box-shadow: 0 1px 2px rgba(143,61,29,.25), inset 0 1px 0 rgba(255,255,255,.18); }
.brand-mark .icon { width: 21px; height: 21px; stroke-width: 2; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.brand-text b { font-family: var(--font-display); font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.brand-text span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Top bar ------------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 18px; min-height: var(--topbar); }
.nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2);
  text-decoration: none; font-size: 14.5px; font-weight: 550; white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.nav a[aria-current="page"] .icon { color: var(--accent); }
.nav .nav-cta { background: var(--ink); color: var(--bg); margin-left: 6px; }
.nav .nav-cta:hover { background: color-mix(in srgb, var(--ink) 85%, var(--accent)); color: var(--bg); }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.menu { position: relative; }
.menu > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 10px 6px 6px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 550; }
.menu > summary:hover { border-color: var(--line-2); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary .menu-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft);
  color: var(--accent-2); font-weight: 700; font-size: 12.5px; text-transform: uppercase; }
.menu-label { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); padding: 6px; z-index: 40; }
.menu-panel a, .menu-panel button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; min-height: 0;
  border-radius: 9px; background: none; color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; cursor: pointer; text-align: left; box-shadow: none; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); color: var(--ink); }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu-panel .menu-who { padding: 8px 10px 6px; font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; margin: 0; }
@media (prefers-color-scheme: dark) { .menu > summary .menu-avatar { color: var(--accent); } }
@media (max-width: 880px) {
  .topbar .wrap { flex-wrap: wrap; gap: 6px 12px; padding-top: 8px; }
  .nav { order: 3; width: calc(100% + 36px); margin: 0 -18px; padding: 0 14px 8px; }
  .topbar-actions { margin-left: auto; }
  .menu-label { display: none; }
  .menu > summary { padding: 4px; }
}
.topbar.public { background: color-mix(in srgb, var(--bg) 80%, transparent); }
.topbar.public .nav { margin-left: auto; width: auto; order: 0; padding: 0; margin-right: 0; }
@media (max-width: 880px) { .topbar.public .wrap { flex-wrap: nowrap; padding-top: 0; } .topbar.public .nav { margin: 0 0 0 auto; width: auto; } }
@media (max-width: 640px) { .topbar.public .nav .nav-optional { display: none; } .topbar.public .brand-text span { display: none; } }
@media (max-width: 420px) { .topbar.public .wrap { gap: 10px; } .topbar.public .nav a { padding: 8px 9px; font-size: 14px; } .topbar.public .nav .nav-cta { margin-left: 2px; } }

/* Footer -------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 40px; color: var(--ink-3); font-size: 14px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
.footer-grid h2 { font-family: var(--font); font-size: 12.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer .brand { margin-bottom: 12px; }
.footer-note { margin: 0; max-width: 42ch; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.footer.slim { padding: 22px 0 28px; }
.footer.slim .footer-base { margin: 0; padding: 0; border: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Page head ----------------------------------------------------------------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.page-head > div { min-width: 0; }
.eyebrow { margin: 0 0 8px; font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lede { margin: 12px 0 0; color: var(--ink-2); font-size: 17.5px; line-height: 1.6; max-width: 62ch; }
.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 16px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.back:hover { color: var(--ink); }

/* Cards and sections -------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 26px; }
.card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; }
.card-head > div { min-width: 0; }
.card-head h2 { font-size: 22px; }
.card-head p { margin: 4px 0 0; color: var(--ink-2); }
.card-title { display: flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 12.5px; font-weight: 650; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .07em; margin: 0 0 14px; }
.card-title .icon { color: var(--accent); width: 17px; height: 17px; }
.card.flat { box-shadow: none; }
.card.tight { padding: 18px 20px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.section-title h2 { font-size: 22px; }
@media (max-width: 600px) { .card { padding: 20px; } }

/* Next step ----------------------------------------------------------------- */
.next-step { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 20px; align-items: start; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 28px; }
.next-step::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--brand); }
.next-step > :not(.step-icon) { grid-column: 2; }
.next-step .step-icon { grid-column: 1; grid-row: 1 / span 4; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); }
.next-step .step-icon .icon { width: 25px; height: 25px; }
.next-step h2 { font-size: 26px; }
.next-step p { margin: 8px 0 0; color: var(--ink-2); max-width: 66ch; font-size: 16.5px; }
.next-step .actions { margin-top: 18px; }
.next-step .eyebrow { margin: 2px 0 6px; font-size: 12.5px; color: var(--accent); }
.next-step.tone-attention::before { background: var(--warn); }
.next-step.tone-attention .step-icon { background: var(--warn-soft); color: var(--warn); }
.next-step.tone-error::before { background: var(--bad); }
.next-step.tone-error .step-icon { background: var(--bad-soft); color: var(--bad); }
@media (max-width: 600px) {
  .next-step { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .next-step > :not(.step-icon), .next-step .step-icon { grid-column: 1; grid-row: auto; }
  .next-step .step-icon { margin-bottom: 10px; }
}

/* Buttons ------------------------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 19px;
  border: 1px solid var(--accent); border-radius: 12px; background: var(--accent); color: var(--accent-ink);
  font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(143,61,29,.18), inset 0 1px 0 rgba(255,255,255,.14); transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
.button:hover, button:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.button:active, button:active { transform: translateY(1px); }
.button.secondary, button.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-1); }
.button.secondary:hover, button.secondary:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.button.quiet, button.quiet { background: transparent; color: var(--accent); border-color: transparent; padding-left: 10px; padding-right: 10px; box-shadow: none; }
.button.quiet:hover, button.quiet:hover { background: var(--accent-soft); color: var(--accent-2); }
.button.danger, button.danger { background: var(--bad); border-color: var(--bad); color: #fff; box-shadow: none; }
.button.danger:hover, button.danger:hover { background: color-mix(in srgb, var(--bad) 85%, #000); border-color: transparent; }
.button.dark, button.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); box-shadow: none; }
.button.dark:hover, button.dark:hover { background: color-mix(in srgb, var(--ink) 85%, var(--accent)); color: var(--bg); }
.button.wide, button.wide { width: 100%; }
.button.small, button.small { min-height: 36px; padding: 6px 13px; font-size: 14px; border-radius: 10px; }
.button.lg, button.lg { min-height: 52px; padding: 13px 24px; font-size: 16.5px; border-radius: 14px; }
button:disabled, .button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.inline-form { display: inline; margin: 0; }
@media (max-width: 600px) {
  .actions > .button, .actions > form, .actions > form > button { flex: 1 1 auto; }
  .actions > form > button { width: 100%; }
  .button, button { white-space: normal; }
}

/* Badges -------------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.tone-success { background: var(--good-soft); color: var(--good); }
.badge.tone-attention { background: var(--warn-soft); color: var(--warn); }
.badge.tone-error { background: var(--bad-soft); color: var(--bad); }
.badge.tone-progress { background: var(--accent-soft); color: var(--accent-2); }
.badge.tone-progress::before { animation: pulse 1.6s ease-in-out infinite; }
.badge.tone-info { background: var(--info-soft); color: var(--info); }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-color-scheme: dark) { .badge.tone-progress { color: var(--accent); } }

/* Callouts and messages ----------------------------------------------------- */
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 15px 17px; border-radius: 14px; background: var(--info-soft); color: var(--ink); }
.callout > .icon { color: var(--info); margin-top: 3px; }
.callout.tone-attention { background: var(--warn-soft); }
.callout.tone-attention > .icon { color: var(--warn); }
.callout.tone-error { background: var(--bad-soft); }
.callout.tone-error > .icon { color: var(--bad); }
.callout.tone-success { background: var(--good-soft); }
.callout.tone-success > .icon { color: var(--good); }
.callout > div { min-width: 0; }
.callout p { margin: 3px 0 0; }
.messages { display: grid; gap: 10px; margin-bottom: 26px; }
.message { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 13px 16px; border-radius: 14px; box-shadow: var(--shadow-1);
  background: var(--info-soft); border: 1px solid color-mix(in srgb, var(--info) 18%, transparent); }
.message > .icon { margin-top: 3px; color: var(--info); }
.message.success { background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 22%, transparent); }
.message.success > .icon { color: var(--good); }
.message.warning { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 22%, transparent); }
.message.warning > .icon { color: var(--warn); }
.message.error { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 22%, transparent); }
.message.error > .icon { color: var(--bad); }

/* Lists and rows ------------------------------------------------------------ */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li, .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; padding-top: 4px; }
.rows > li:last-child { padding-bottom: 4px; }
.row-main { min-width: 0; flex: 1 1 260px; }
.row-title { display: block; font-weight: 650; color: var(--ink); text-decoration: none; }
a.row-title:hover { color: var(--accent); }
.row-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 3px; color: var(--ink-2); font-size: 14px; }
.row-side { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 15px;
  background: var(--accent-soft); color: var(--accent-2); }
@media (prefers-color-scheme: dark) { .avatar { color: var(--accent); } }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li > .icon { color: var(--good); margin-top: 3px; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 34px 28px; text-align: center; color: var(--ink-2); background: var(--surface-2); }
.empty > .icon { width: 30px; height: 30px; color: var(--ink-3); margin-bottom: 10px; }
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.empty .actions { justify-content: center; margin-top: 16px; }

/* Facts and statistics ------------------------------------------------------ */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 22px; margin: 0; }
.facts div { min-width: 0; }
.facts dt { font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(122px, 1fr)); gap: 12px; margin: 0; }
.stats div { background: var(--surface-2); border-radius: 14px; padding: 13px 15px; min-width: 0; }
.stats dt { font-size: 13px; color: var(--ink-2); }
.stats dd { margin: 3px 0 0; font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* Sync progress ------------------------------------------------------------- */
.sync-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.sync-head h2 { font-size: 24px; }
.sync-message { margin: 12px 0 0; font-size: 17px; color: var(--ink); max-width: 70ch; }
.sync-turn { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; max-width: 70ch; }
.sync-turn .icon { margin-top: 3px; color: var(--ink-3); flex: none; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 24px 0 0; padding: 0; counter-reset: step; }
.stepper li { position: relative; padding-top: 15px; font-size: 13px; color: var(--ink-3); line-height: 1.3; }
.stepper li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; border-radius: 999px; background: var(--surface-3); }
.stepper li.done { color: var(--ink-2); }
.stepper li.done::before { background: var(--accent); }
.stepper li.current { color: var(--ink); font-weight: 650; }
.stepper li.current::before { background: linear-gradient(90deg, var(--accent) 50%, var(--surface-3) 50%); }
.stepper.is-paused li.current::before { background: linear-gradient(90deg, var(--warn) 50%, var(--surface-3) 50%); }
@media (max-width: 700px) {
  .stepper li { font-size: 0; }
  .stepper li.current { font-size: 13px; grid-column: 1 / -1; grid-row: 2; padding-top: 6px; }
  .stepper li.current::before { display: none; }
}
.estimate { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 20px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.estimate dt { font-size: 13px; color: var(--ink-2); }
.estimate dd { margin: 2px 0 0; font-size: 18.5px; font-weight: 650; }
.estimate p { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--ink-3); }
.estimate-note { margin: 6px 0 0; font-size: 14px; color: var(--ink-3); }
.sync-stats { margin-top: 20px; }
.sync-facts { margin-top: 22px; }
[data-sync-summary] > .callout { margin-top: 18px; }
.sync-actions { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.sync-actions form { margin: 0; }
.sync-actions .actions + p, .sync-actions p + .actions, .sync-actions p + form, .sync-actions form + p { margin-top: 12px; }

/* Plans --------------------------------------------------------------------- */
.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; padding: 15px 17px; border-radius: 14px; background: var(--surface-2); }
.plan li .icon { color: var(--accent); margin-top: 3px; }
.plan li strong { display: block; }
.plan li span { color: var(--ink-2); font-size: 14.5px; }

/* Disclosures and danger ---------------------------------------------------- */
details.disclosure { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
details.disclosure > summary { cursor: pointer; padding: 14px 17px; font-weight: 600; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 8px; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
details.disclosure[open] > summary::after { transform: rotate(-135deg); }
details.disclosure > .disclosure-body { padding: 0 17px 17px; }
details.disclosure.danger > summary { color: var(--bad); }
.danger-zone { border: 1px solid color-mix(in srgb, var(--bad) 32%, var(--line)); border-radius: 14px; padding: 18px; background: var(--bad-soft); }
.danger-zone h3 { color: var(--bad); margin-bottom: 6px; }

/* Forms --------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form > .actions { margin-top: 6px; }
.field { display: grid; gap: 7px; }
.field > label { font-weight: 600; font-size: 15px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea, .copy-field input {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--surface); font-size: 16px; box-shadow: inset 0 1px 2px rgba(31,27,23,.03); transition: border-color .15s, box-shadow .15s; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--line-2) 60%, var(--ink-3)); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field textarea { min-height: 110px; resize: vertical; }
.field-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.field-check > label { font-weight: 500; font-size: 15px; color: var(--ink); }
.field-check > .field-help, .field-check > .field-error { grid-column: 2; }
.field-help { margin: 0; font-size: 14px; color: var(--ink-3); }
.field-error, .errorlist { margin: 0; padding: 0; list-style: none; color: var(--bad); font-size: 14.5px; font-weight: 550; }
.field.has-error input, .field.has-error select { border-color: var(--bad); }
.form-errors { padding: 13px 16px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-weight: 500; }
.copy-field { display: flex; gap: 8px; }
.card > .callout + .copy-field { margin-top: 14px; }
.copy-field input { font-family: var(--font-mono); font-size: 14px; }
@media (max-width: 600px) { .copy-field { flex-direction: column; } }

/* Sign-in pages ------------------------------------------------------------- */
.auth { max-width: 470px; margin: 8px auto 0; }
.auth-mark { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-mark .brand-mark { width: 52px; height: 52px; border-radius: 16px; }
.auth-mark .brand-mark .icon { width: 29px; height: 29px; }
.auth .card { padding: 34px; box-shadow: var(--shadow-2); }
.auth h1 { font-size: 30px; margin-bottom: 8px; text-align: center; }
.auth .lede { font-size: 16px; margin: 0 0 24px; text-align: center; }
.auth .eyebrow { text-align: center; }
.auth-foot { margin-top: 20px; text-align: center; font-size: 14.5px; color: var(--ink-2); }
.auth-foot p { margin: 6px 0; }
.auth-aside { margin: 18px 0 0; text-align: center; font-size: 14.5px; }
.auth-reassure { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 13.5px; color: var(--ink-3); }
.auth-reassure .icon { width: 16px; height: 16px; color: var(--good); }
@media (max-width: 520px) { .auth .card { padding: 24px 20px; } }

/* Landing ------------------------------------------------------------------- */
body.landing main { padding: 0; overflow-x: clip; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 72px 0 64px; }
.hero::before { content: ""; position: absolute; inset: -40px -10vw auto auto; width: 620px; height: 620px; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sun) 26%, transparent), transparent 70%); }
.hero h1 { font-size: clamp(40px, 6vw, 66px); line-height: 1.02; letter-spacing: -.03em; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.hero .lede { font-size: 19.5px; max-width: 34em; margin-top: 20px; }
.hero .actions { margin-top: 30px; }
.hero-note { margin: 16px 0 0; font-size: 14.5px; color: var(--ink-3); }
.hero-note a { font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-1); font-size: 13.5px; font-weight: 550; color: var(--ink-2); margin-bottom: 22px; }
.pill b { background: var(--accent-soft); color: var(--accent-2); border-radius: 999px; padding: 2px 9px; font-size: 12px; letter-spacing: .02em; }
@media (prefers-color-scheme: dark) { .pill b { color: var(--accent); } }
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); padding: 44px 0 40px; gap: 40px; } }

/* A drawn preview of an archive day; decorative, no family data. */
.preview { position: relative; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3); overflow: hidden; transform: rotate(.6deg); }
.preview-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.preview-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.preview-bar span { margin-left: 10px; height: 8px; width: 42%; border-radius: 999px; background: var(--line); }
.preview-body { display: grid; grid-template-columns: 92px minmax(0, 1fr); min-height: 330px; }
.preview-side { padding: 16px 12px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 10px; }
.preview-side i { height: 8px; border-radius: 999px; background: var(--surface-3); }
.preview-side i.on { background: var(--accent-soft); }
.preview-main { padding: 18px; display: grid; gap: 14px; align-content: start; }
.preview-day { display: flex; align-items: center; gap: 10px; }
.preview-day b { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.preview-day em { font-style: normal; font-size: 12px; font-weight: 650; color: var(--good); background: var(--good-soft); padding: 2px 9px; border-radius: 999px; }
.preview-photos { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 74px 74px; gap: 8px; }
.preview-photos i { border-radius: 12px; background: linear-gradient(150deg, #f2c9a8, #e39a55); }
.preview-photos i:nth-child(1) { grid-row: span 2; background: linear-gradient(160deg, #bcd3c1, #6f9d82); }
.preview-photos i:nth-child(3) { background: linear-gradient(150deg, #c9d6ea, #7f9fca); }
.preview-photos i:nth-child(4) { background: linear-gradient(150deg, #f4dfae, #dcae4f); }
.preview-photos i:nth-child(5) { background: linear-gradient(150deg, #e8c3c9, #c98591); }
.preview-note { border-radius: 14px; background: var(--surface-2); padding: 13px 14px; display: grid; gap: 8px; }
.preview-note b { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.preview-note b::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); }
.preview-note i { height: 8px; border-radius: 999px; background: var(--surface-3); }
.preview-note i:last-child { width: 62%; }
.preview-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.preview-chips span { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
@media (max-width: 520px) { .preview-body { grid-template-columns: minmax(0, 1fr); } .preview-side { display: none; } .preview { transform: none; } }

.section { padding: 72px 0; }
.section.tint { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.025em; }
.section-head p { margin-top: 14px; font-size: 17.5px; color: var(--ink-2); }
.section.follow { padding-top: 8px; }
.landing-messages { margin-top: 24px; }
@media (max-width: 600px) { .section { padding: 52px 0; } }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-1); }
.feature-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.feature-icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 17.5px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); margin: 0; font-size: 15.5px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.keeps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 36px; list-style: none; margin: 0; padding: 0; }
.keeps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.keeps li .icon { color: var(--accent); margin-top: 3px; }
.keeps li strong { display: block; }
.keeps li span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .keeps { grid-template-columns: minmax(0, 1fr); } }

.night { background: var(--night); color: var(--night-ink); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.night .eyebrow { color: var(--sun); }
.night h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; color: var(--night-ink); }
.night p { color: var(--night-ink-2); margin-top: 16px; }
.night .trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.night .trust-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; }
.night .trust-list .icon { grid-row: span 2; width: 22px; height: 22px; color: var(--sun); margin-top: 2px; }
.night .trust-list strong { color: var(--night-ink); }
.night .trust-list span { color: var(--night-ink-2); font-size: 15px; }
@media (max-width: 860px) { .night { grid-template-columns: minmax(0, 1fr); padding: 34px 26px; border-radius: 22px; } }

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 650; font-size: 16.5px; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 22px; font-weight: 400; color: var(--ink-3); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 18px; color: var(--ink-2); }
.help-contact { margin-top: 24px; }
.help-contact p:last-child { margin-bottom: 0; }

.cta-band { text-align: center; padding: 64px 28px; border-radius: 28px; background: var(--brand); color: #fff; box-shadow: var(--shadow-2); }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.025em; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 17.5px; margin: 14px auto 0; max-width: 46ch; }
.cta-band .actions { justify-content: center; margin-top: 26px; }
.cta-band .button { background: #fff; color: var(--accent-2); border-color: #fff; }
.cta-band .button:hover { background: #fff7f1; color: var(--accent-2); }
.cta-band .button.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); box-shadow: none; }
.cta-band .button.secondary:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Prose pages (privacy, terms, your data) ---------------------------------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: 23px; margin: 32px 0 10px; }
.prose h2.first { margin-top: 0; }
.prose h3 { margin: 22px 0 6px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }

/* Error pages --------------------------------------------------------------- */
.error-page { max-width: 560px; margin: 8vh auto 0; text-align: center; }
.error-page .code { font-family: var(--font-display); font-size: 84px; line-height: 1; font-weight: 600; letter-spacing: -.04em;
  background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { margin-top: 10px; }
.error-page .lede { margin: 14px auto 0; }
.error-page .actions { justify-content: center; margin-top: 26px; }

/* Archive cards ------------------------------------------------------------- */
.archive-card { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 22px; align-items: center; }
.archive-cover { aspect-ratio: 1; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-1); }
.archive-cover .icon { width: 46px; height: 46px; stroke-width: 1.5; }
.archive-card h2 { font-size: 25px; }
.archive-card .row-meta { margin-top: 6px; }
.archive-card .actions { margin-top: 16px; }
@media (max-width: 600px) { .archive-card { grid-template-columns: minmax(0, 1fr); } .archive-cover { display: none; } }

/* First-run setup ----------------------------------------------------------- */
.setup { max-width: var(--wrap-narrow); margin: 0 auto; display: grid; gap: 20px; }
.setup-head { margin-bottom: 22px; }
.setup-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.setup-steps li { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 14.5px; font-weight: 600; }
.setup-steps li:not(:last-child)::after { content: ""; width: 26px; height: 1.5px; background: var(--line-2); margin-left: 4px; }
.setup-step-mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 13.5px;
  border: 1.5px solid var(--line-2); background: var(--surface); font-variant-numeric: tabular-nums; }
.setup-step-mark .icon { width: 15px; height: 15px; }
.setup-steps .is-current { color: var(--ink); }
.setup-steps .is-current .setup-step-mark { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.setup-steps .is-done { color: var(--ink-2); }
.setup-steps .is-done .setup-step-mark { background: var(--good-soft); border-color: transparent; color: var(--good); }
.setup-card h1 { margin-bottom: 4px; }
.setup-card > .card-title { margin-top: 26px; }
.setup-card > .rows { margin-bottom: 8px; }
.setup-promises { margin: 22px 0 24px; }
.setup-promises li > .icon { color: var(--accent); }
.setup-foot { margin: 16px 0 0; }
.setup-start-notes { margin: 12px 0 0; }
.setup-other { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.setup-other p { margin: 0; flex: 1 1 320px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 600px) {
  .setup-steps { flex-wrap: nowrap; gap: 8px; }
  .setup-steps li { gap: 8px; min-width: 0; }
  .setup-steps li:not(:last-child)::after { width: 14px; margin-left: 0; flex: none; }
  .setup-steps li:not(.is-current) .setup-step-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .setup-steps .is-current .setup-step-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Operator console tables --------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
.operator-section { margin-top: 30px; }
.mail-body { white-space: pre-wrap; font-family: var(--font-mono); font-size: 14px; background: var(--surface-2); padding: 14px; border-radius: 10px; }

/* Archive viewer: the sandboxed archive fills the page under a slim owner bar. */
body.archive-browse { height: 100vh; height: 100dvh; overflow: hidden; display: grid; grid-template-rows: minmax(0, 1fr); }
body.archive-browse.with-bar { grid-template-rows: auto minmax(0, 1fr); }
.viewer-bar { display: flex; align-items: center; gap: 12px; padding: 7px 12px; background: var(--night); color: var(--night-ink); font-size: 14px; min-width: 0; overflow: hidden; }
.viewer-bar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; white-space: nowrap; flex: none; }
@media (max-width: 600px) { .viewer-bar .viewer-title { visibility: hidden; } }
.viewer-bar a:hover { background: rgba(255,255,255,.1); color: inherit; }
.viewer-bar .viewer-title { margin-right: auto; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.archive-frame { display: block; width: 100%; height: 100%; border: 0; }
.plan-note { margin: 12px 0 0; }
.card-foot { margin: 18px 0 0; font-size: 14.5px; }
.card-foot a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 600; }
.card-foot a:hover { text-decoration: underline; }
.card > .callout, .card > details, .card > .actions { margin-top: 16px; }
.callout .actions { margin-top: 10px; }
.sync-start { margin-top: 20px; }
.unlock { margin-top: 8vh; }
.unlock-mark { display: flex; justify-content: center; margin-bottom: 18px; }
.unlock-mark .brand-mark { width: 52px; height: 52px; border-radius: 16px; }
.unlock-mark .brand-mark .icon { width: 29px; height: 29px; }
.how h2 { font-size: 19px; margin-bottom: 6px; }

/* Operator console ---------------------------------------------------------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 26px; }
.panel.narrow { max-width: 520px; margin: 0 auto; }
.panel h1 { margin-bottom: 14px; }
.panel form p { display: grid; gap: 6px; margin: 0 0 14px; }
.panel input { min-height: 44px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.status-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0 0 16px; }
.status-list dt { color: var(--ink-3); }
.status-list dd { margin: 0; }
.danger-link { color: var(--bad); }
.op-status { display: grid; gap: 12px; margin-bottom: 22px; }
.section-title p { margin: 0; font-size: 14px; }
.op-table time { white-space: nowrap; }
.op-table strong { font-weight: 600; }
.op-table .row-actions { text-align: right; white-space: nowrap; }
.op-table .row-actions > * + * { margin-left: 6px; }
.button.danger-text, button.danger-text { color: var(--bad); }
.button.danger-text:hover, button.danger-text:hover { background: var(--bad-soft); color: var(--bad); }
.op-invite { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: end; }
.op-invite > .actions { margin: 0; }
.op-invite button { min-height: 48px; }
.op-invite + .field-help { margin-top: 10px; }
.op-confirm { max-width: 680px; margin: 0 auto; }
.op-facts { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.op-facts .wide { grid-column: 1 / -1; }
.op-confirm .card > .actions { margin-top: 24px; }
@media (max-width: 760px) {
  .op-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .op-table, .op-table tbody, .op-table tr, .op-table td { display: block; }
  .op-table tr { padding: 12px 15px; border-bottom: 1px solid var(--line); }
  .op-table tr:last-child { border-bottom: 0; }
  .op-table td { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 10px; padding: 3px 0; border: 0; }
  .op-table td::before { content: attr(data-label); color: var(--ink-3); font-size: 13.5px; }
  .op-table td.row-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; text-align: left; white-space: normal; }
  .op-table td.row-actions::before { content: none; }
  .op-table .row-actions > * + * { margin-left: 0; }
  .op-invite { grid-template-columns: minmax(0, 1fr); }
}
