:root {
  --green: #2f6b4f;
  --green-dark: #22503b;
  --cream: #fbf8f2;
  --ink: #23302a;
  --muted: #5d6b64;
  --line: #e3ddd0;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(35, 48, 42, 0.16);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; overflow-x: hidden; }
main { max-width: 1040px; margin: 0 auto; padding: 0 20px 96px; }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.brand {
  font-weight: 700; color: var(--green-dark); text-decoration: none; font-size: 1.1rem;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
}
.brand-logo { width: 36px; height: 36px; flex: none; }
.site-nav { display: flex; gap: 8px; }
.site-nav a {
  color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 8px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav a:hover { background: var(--cream); }
.site-nav a[aria-current="page"] { color: var(--green-dark); font-weight: 600; background: var(--cream); }
.menu-toggle, .menu-close { display: none; }
/* Tablet widths: the menu wraps onto a second row instead of running off the right edge. */
@media (min-width: 721px) { .site-nav { flex-wrap: wrap; justify-content: flex-end; min-width: 0; } .brand { flex: none; } }

.hero { text-align: center; padding: 56px 0 32px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.2; margin: 0 0 16px; }
.hero p { color: var(--muted); max-width: 640px; margin: 0 auto 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled { background: #a9bdb2; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h2 { font-size: 1.1rem; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }
.card-lead { grid-column: 1 / -1; border: 2px solid var(--green); padding: 24px; }
.card-lead h2 { font-size: clamp(1.3rem, 3.5vw, 1.6rem); }
.card-lead .lead-tag, .fee-match .lead-tag, .signups .lead-tag, .org-signups .lead-tag, .org-lodging .lead-tag, .org-handoff .lead-tag,
.org-directory .lead-tag, .dir-mine .lead-tag, .org-newsletter .lead-tag, .try-badge, .home-try .lead-tag, .home-beta .lead-tag, .beta-badge {
  display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 999px;
  background: #e3f1e9; color: #1e4d36; font-size: 0.85rem; font-weight: 700;
}
.card-lead .lead-points { margin: 12px 0 16px; padding-left: 1.2em; color: var(--ink); }
.lead-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-actions .btn:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
@media (max-width: 720px) { .lead-actions .btn { flex: 1 1 100%; } }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.timeline-step ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.timeline-step li + li { margin-top: 6px; }
.when {
  display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--green); margin-bottom: 4px;
}
.band { margin-top: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.band h2 { margin-top: 0; }

/* Main family page */
.reunion-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin: 0 0 12px; }
.reunion-facts dt { color: var(--muted); font-size: 0.9rem; }
.reunion-facts dd { margin: 0; font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.news-list h3 { margin: 0 0 6px; font-size: 1.05rem; }
.news-list p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.news-list .news-from { margin-top: 8px; font-style: italic; }
.news-list + .empty:not([hidden]) { padding: 8px 0 0; text-align: left; }
.family-links { margin-top: 40px; }
.family-links a.card { color: var(--ink); text-decoration: none; min-height: 44px; }
.family-links a.card:hover { border-color: var(--green); }
.family-links a.card:focus-visible, .hero .btn:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }

.site-footer { text-align: center; color: var(--muted); padding: 24px; font-size: 0.9rem; }

/* Forms (RSVP, organizer key, record payment) */
.form-card { max-width: 560px; margin: 0 auto; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="tel"],
.field input[type="url"], .field input[type="search"], .field textarea, .field select,
.pay-form input, .pay-form select {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink);
  border: 1px solid #8a968f; border-radius: 8px; background: #fff;
}
.field textarea { min-height: 88px; resize: vertical; }
.hint, .optional, .count-fee { color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.hint { margin: 6px 0 0; }
.choice label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; }
.choice input { width: 22px; height: 22px; margin: 0; accent-color: var(--green); }
.counts:disabled { opacity: 0.5; }
.count-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.count-row + .count-row { border-top: 1px solid var(--line); }
.count-row label { font-weight: 400; }
.count-label { display: block; font-weight: 600; }
.stepper { display: flex; align-items: center; flex: none; }
.stepper input {
  width: 56px; min-height: 44px; text-align: center; font: inherit; border: 1px solid #8a968f; border-radius: 0;
  border-left: 0; border-right: 0; -moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.step {
  width: 44px; height: 44px; font-size: 1.3rem; background: var(--cream); color: var(--ink);
  border: 1px solid #8a968f; cursor: pointer;
}
.step:first-child { border-radius: 8px 0 0 8px; }
.step:last-child { border-radius: 0 8px 8px 0; }
.fee-total { font-size: 1.1rem; margin: 0 0 16px; }
.fee-total .head-line { display: block; margin-bottom: 4px; }
.form-error { background: #fdecea; color: #8a1c14; border-radius: 8px; padding: 10px 12px; margin: 0 0 16px; }
.form-success { color: var(--green); font-weight: 600; margin: 0 0 16px; }
.form-success:empty { display: none; }
.news-intro { margin: 0 0 16px; }
.done h2 { margin-top: 0; }
.done .pay-note { background: var(--cream); color: var(--ink); border-radius: 8px; padding: 10px 12px; font-weight: 600; overflow-wrap: anywhere; }
.done:focus { outline: none; }
.pay-box { background: var(--cream); border-radius: 8px; padding: 12px; margin: 0 0 12px; }
.pay-box .pay-code-line { margin: 0; color: var(--ink); font-weight: 600; }
.pay-box .pay-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.15rem; letter-spacing: 0.04em; }
.pay-box .hint { margin: 4px 0 10px; }
.pay-box .btn[hidden] { display: none; }
.pay-box .btn:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
.change-box input { width: 100%; min-height: 44px; margin: 0 0 8px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; }
.form-card :focus-visible, .ledger :focus-visible, .ledger-tools :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }

/* Organizer fee ledger */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat-label { color: var(--muted); font-size: 0.9rem; }
.stat-value { display: block; font-size: 1.5rem; font-weight: 700; }
.stat-sub { display: block; color: var(--muted); font-size: 0.85rem; }
.ledger-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ledger-tools h2 { margin: 0; }
.ledger-tools select { min-height: 44px; padding: 8px 10px; font: inherit; border: 1px solid #8a968f; border-radius: 8px; background: #fff; }
.ledger { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ledger th, .ledger td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger th { background: var(--cream); font-size: 0.9rem; }
.ledger .num { text-align: right; white-space: nowrap; }
.ledger .who { font-weight: 600; }
.ledger .sub { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 400; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.badge-unpaid { background: #fdecea; color: #8a1c14; }
.badge-partial { background: #fff4d6; color: #6b4a00; }
.badge-paid, .badge-overpaid { background: #e3f1e9; color: #1e4d36; }
.badge-nothing-due { background: #eceae4; color: #3f4a44; }
.pay-form { display: flex; gap: 6px; align-items: center; }
.pay-form input { width: 96px; }
.pay-form select { width: auto; }
.pay-form .btn { padding: 8px 14px; white-space: nowrap; }
/* Head count by age (organizer) */
.head-count { margin-bottom: 20px; border-top: 4px solid var(--green); }
.head-count-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.head-count-top h2 { margin: 0; font-size: 1.3rem; }
.head-count .hint { margin: 8px 0 12px; }
.head-count-table { width: 100%; border-collapse: collapse; }
.head-count-table th, .head-count-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.head-count-table thead th { background: var(--cream); font-size: 0.9rem; }
.head-count-table .num { text-align: right; white-space: nowrap; }
.head-count-table tbody th .sub { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 400; }
.head-count-table tfoot th, .head-count-table tfoot td { font-weight: 700; border-bottom: 0; }
.head-count .head-count-food { margin: 12px 0 0; color: var(--ink); font-weight: 600; }
.head-count .share-status { margin: 6px 0 0; min-height: 1.55em; color: var(--green-dark); font-weight: 600; }
.head-count :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
@media (max-width: 720px) {
  .head-count { padding: 16px 12px; }
  .head-count-top .btn { flex: 1 1 100%; }
  .head-count-table th, .head-count-table td { padding: 8px 4px; font-size: 0.95rem; }
  .head-count-table thead th { font-size: 0.8rem; white-space: normal; }
}
/* Web app: organizer's RSVP link to send relatives */
.share-card { margin-bottom: 20px; }
.share-card p { margin: 0 0 16px; }
.share-card .field input { width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink); border: 1px solid #8a968f; border-radius: 8px; background: #fff; }
.share-card #share-link { background: var(--cream); overflow: hidden; text-overflow: ellipsis; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-card .share-status { margin: 10px 0 0; min-height: 1.55em; color: var(--green-dark); font-weight: 600; }
.share-card :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
@media (max-width: 720px) { .share-actions .btn { flex: 1 1 100%; } }
.empty { color: var(--muted); text-align: center; padding: 24px; }
.locked-out { text-align: right; margin: 0 0 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }

@media (max-width: 720px) {
  /* The ledger becomes one card per household so nothing scrolls sideways. */
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger { border: 0; background: none; }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger tr { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 6px 0; }
  .ledger td { border: 0; padding: 6px 14px; display: flex; justify-content: space-between; gap: 12px; }
  .ledger td[data-label]::before { content: attr(data-label); color: var(--muted); font-weight: 400; }
  .ledger td.who { display: block; }
  .ledger .num { text-align: right; }
  .pay-form { flex-wrap: wrap; width: 100%; }
  .pay-form input, .pay-form select { flex: 1 1 100px; }
  .pay-form .btn { flex: 1 1 100%; }
}

@media (max-width: 720px) {
  .menu-toggle, .menu-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; font-size: 1.4rem; background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .menu-close { align-self: flex-end; }
  .site-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(280px, 80vw);
    flex-direction: column; padding: 12px; background: #fff; box-shadow: var(--shadow);
    transform: translateX(100%); transition: transform 0.2s ease; z-index: 70; visibility: hidden;
    /* On short screens (a phone turned sideways) the links scroll inside the drawer instead of falling off the bottom. */
    overflow-y: auto; overscroll-behavior: contain;
  }
  .site-nav > * { flex-shrink: 0; }
  /* The page behind the open drawer stays put, so swipes scroll the menu. */
  body.menu-open { overflow: hidden; }
  .site-nav.open { transform: none; visibility: visible; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 60; }
  /* Lift the open drawer above the floating Send Feedback button (80), still under the feedback dialog (90+). */
  .menu-open .site-header { z-index: 85; }
}

/* Fee collection tied to RSVPs: match a Venmo / PayPal / bank statement to households */
.fee-match { margin-bottom: 20px; border: 2px solid var(--green); }
.fee-match h2 { margin: 0; font-size: 1.3rem; }
.fee-match > .hint { margin: 6px 0 12px; }
.match-form { display: grid; grid-template-columns: 1fr 180px; gap: 0 12px; align-items: end; }
.match-form .match-paste { grid-column: 1 / -1; }
.match-form .field { margin-bottom: 12px; }
.match-form textarea { min-height: 56px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; }
.match-form input[type="file"] { width: 100%; min-height: 44px; padding: 8px 0; font: inherit; }
.match-form .btn { justify-self: start; }
.match-summary { margin: 12px 0 10px; color: var(--ink); font-weight: 600; }
.match-summary:empty { display: none; }
.match-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.match-table th, .match-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.match-table thead th { background: var(--cream); font-size: 0.9rem; }
.match-table .num { text-align: right; white-space: nowrap; }
.match-table .who { font-weight: 600; overflow-wrap: anywhere; }
.match-table .sub { display: block; color: var(--muted); font-size: 0.85rem; font-weight: 400; overflow-wrap: anywhere; margin-top: 2px; }
.match-table select { min-height: 44px; width: 100%; max-width: 280px; padding: 8px 10px; font: inherit; border: 1px solid #8a968f; border-radius: 8px; background: #fff; }
.fee-match :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
@media (max-width: 720px) {
  .fee-match { padding: 16px 12px; }
  .match-form { grid-template-columns: 1fr; }
  .match-form .btn, #match-record { width: 100%; }
  /* One card per payment so nothing scrolls sideways. */
  .match-table, .match-table tbody, .match-table tr, .match-table td { display: block; width: 100%; }
  .match-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .match-table tr { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 6px 0; }
  .match-table td { border: 0; padding: 6px 12px; }
  .match-table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.85rem; }
  .match-table .num { text-align: left; }
  .match-table select { max-width: none; }
}

/* Potluck and task sign-ups: the board on the RSVP page and the organizer page */
.signups { max-width: 760px; margin: 20px auto 0; }
.org-signups { margin-bottom: 20px; }
.signups h2, .org-signups h2, .org-lodging h2 { margin: 0; font-size: 1.3rem; }
.signups > .hint, .org-signups > .hint, .org-lodging > .hint { margin: 6px 0 12px; }
.signups .field input { width: 100%; max-width: 360px; }
.signup-summary { margin: 0 0 12px; color: var(--ink); font-weight: 600; }
.signup-summary:empty, .signup-missing:empty, .signup-status:empty { display: none; }
.signup-missing { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #fff4d6; color: #4d3500; overflow-wrap: anywhere; }
.signup-status { margin: 0 0 12px; color: var(--green-dark); font-weight: 600; }
.signup-board h3 { font-size: 1.05rem; margin: 16px 0 8px; }
.slot-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.slot { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.slot-mine { border: 2px solid var(--green); background: #f3f9f5; }
.slot-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.slot-title { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.card .slot-detail { margin: 0; font-size: 0.9rem; color: var(--muted); overflow-wrap: anywhere; }
.slot-people { margin: 0; padding-left: 1.1em; font-size: 0.95rem; color: var(--ink); overflow-wrap: anywhere; }
.slot-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.slot-form input { flex: 1 1 140px; min-width: 0; min-height: 44px; padding: 8px 10px; font: inherit; color: var(--ink); border: 1px solid #8a968f; border-radius: 8px; background: #fff; }
.slot-form .btn { padding: 8px 16px; }
.slot-add { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr 1fr 140px; gap: 0 12px; align-items: end; }
.slot-add h3 { grid-column: 1 / -1; margin: 0 0 10px; font-size: 1.05rem; }
.slot-add .field { margin-bottom: 12px; }
.slot-add .field input { width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink); border: 1px solid #8a968f; border-radius: 8px; background: #fff; }
.slot-add .btn { justify-self: start; }
.signup-next { margin: 0 0 12px; }
.signup-next .btn[hidden], .signup-next[hidden] { display: none; }
.signups :focus-visible, .org-signups :focus-visible, .org-lodging :focus-visible, .signup-next :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
.org-signups h2:focus, .org-lodging h2:focus { outline: none; }
@media (max-width: 720px) {
  .signups, .org-signups { padding: 16px 12px; }
  .slot-form .btn, .slot-add .btn, .signup-next .btn { flex: 1 1 100%; width: 100%; }
  .slot-add { grid-template-columns: 1fr; }
}

/* Lodging block sign-ups: the RSVP page's places to stay and the organizer's rooming list */
.signup-next { display: flex; flex-wrap: wrap; gap: 8px; }
.lodging-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.lodging .field input { max-width: none; }
.slot-form .count-input { flex: 0 0 88px; }
.count-unit { align-self: center; color: var(--muted); font-size: 0.95rem; }
.lodging-elsewhere { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.card .lodging-elsewhere .hint { flex: 1 1 280px; margin: 0; }
.org-lodging { margin-bottom: 20px; }
.card .stay-note { margin: 2px 0 0; font-size: 0.9rem; color: var(--muted); font-style: italic; overflow-wrap: anywhere; }
.org-lodging .slot-add { grid-template-columns: 180px 1fr 1fr 160px; }
@media (max-width: 720px) {
  .org-lodging { padding: 16px 12px; }
  .lodging-fields, .org-lodging .slot-add { grid-template-columns: 1fr; }
  .lodging-elsewhere .btn { flex: 1 1 100%; width: 100%; }
  .slot-form .count-input { flex: 0 0 80px; }
}
.card .lodging-away { margin: 0 0 12px; color: var(--muted); overflow-wrap: anywhere; }
.lodging-away:empty { display: none; }
.card .lodging-download { margin: 16px 0 0; }

/* Organizer hand-off to next year: the organizer's carry-over packet and the successor's take-over page */
.org-handoff { margin-bottom: 20px; border: 2px solid var(--green); }
.org-handoff h2 { margin: 0; font-size: 1.3rem; }
.org-handoff h2:focus { outline: none; }
.org-handoff > .hint { margin: 6px 0 16px; }
.org-handoff h3 { font-size: 1.1rem; margin: 20px 0 10px; }
.org-handoff h4 { font-size: 1rem; margin: 0 0 8px; }
.handoff-stats { margin-bottom: 12px; }
.handoff-pass { background: var(--cream); border-radius: 10px; padding: 4px 16px 16px; }
.card .handoff-current { margin: 0 0 12px; color: var(--ink); }
.card .handoff-current:empty { display: none; }
.handoff-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0 12px; align-items: end; }
.handoff-form .field { margin-bottom: 12px; }
.handoff-form .btn { margin-bottom: 12px; }
#handoff-new-year-form { grid-template-columns: minmax(0, 220px) auto; justify-content: start; }
.org-handoff .field input, .handoff-accept .field input {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink); border: 1px solid #8a968f; border-radius: 8px; background: #fff;
}
.handoff-link-box { margin-top: 4px; }
.handoff-link-box[hidden] { display: none; }
#handoff-link, #handoff-key { background: #fff; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9rem; }
.handoff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.handoff-part { border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; }
.handoff-grid + .handoff-part, .handoff-part + .handoff-part { margin-top: 12px; }
.card .handoff-part > p { margin: 0 0 10px; }
.handoff-budget { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; }
.handoff-budget dt { color: var(--muted); }
.handoff-budget dd { margin: 0; text-align: right; font-weight: 600; }
.handoff-table { width: 100%; border-collapse: collapse; }
.handoff-table th, .handoff-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.handoff-table thead th { background: var(--cream); font-size: 0.9rem; }
.handoff-table .num { text-align: right; }
.handoff-vendors { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.handoff-vendor { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.handoff-vendor .sub { display: block; color: var(--muted); font-size: 0.9rem; }
.org-handoff .vendor-add { grid-template-columns: 1fr 1fr 1fr 110px auto; margin-top: 8px; }
.handoff-checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 8px 16px; }
.handoff-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.handoff-step legend { font-weight: 600; padding: 0; margin-bottom: 2px; }
.handoff-step .choice label { align-items: flex-start; padding: 10px 0; min-height: 44px; font-size: 0.95rem; }
.handoff-step .choice input { flex: none; margin-top: 1px; }
.handoff-accept { margin-top: 0; }
.handoff-accept h2:focus { outline: none; }
.card .handoff-accept p, .handoff-accept > p { margin: 0 0 12px; color: var(--ink); }
.handoff-inherit { margin: 0 0 16px; padding-left: 1.2em; }
.handoff-inherit[hidden], .handoff-accept .btn[hidden], #handoff-done[hidden] { display: none; }
.handoff-accept .share-status { margin: 10px 0 0; min-height: 1.55em; color: var(--green-dark); font-weight: 600; }
.step-link { margin: 12px 0 0; }
.step-link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green-dark); font-weight: 600; }
.org-handoff :focus-visible, .handoff-accept :focus-visible, .step-link a:focus-visible, .locked-out a:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
@media (max-width: 720px) {
  .org-handoff { padding: 16px 12px; }
  .handoff-pass { padding: 4px 12px 12px; }
  .handoff-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .handoff-form, #handoff-new-year-form, .org-handoff .vendor-add { grid-template-columns: 1fr; }
  .handoff-form .btn, .org-handoff .vendor-add .btn, .handoff-accept .btn, .org-handoff .share-actions .btn { width: 100%; }
  .handoff-vendor { flex-wrap: wrap; }
  .handoff-vendor .btn { flex: 1 1 100%; }
}
/* Short pages keep their main button clear of the floating Send Feedback button on a phone. */
@media (max-width: 720px) { .hero-compact { padding: 24px 0 16px; } .hero-compact p { margin-bottom: 8px; } }

/* Self-updating family directory: the directory page and the organizer's directory card. */
.dir-progress-line { margin: 0 0 10px; font-weight: 600; }
.dir-meter { height: 12px; border-radius: 999px; background: #eceae4; overflow: hidden; }
.dir-meter span { display: block; height: 100%; width: 0; background: var(--green); }
.dir-mine, .dir-family, .dir-join { margin-top: 24px; }
.dir-mine { max-width: 720px; border: 2px solid var(--green); }
.dir-join { max-width: 720px; }
.dir-mine h2:focus, .dir-join h2:focus, .org-directory h2:focus, .dir-links h3:focus { outline: none; }
.card .dir-mine .hint, .dir-mine > .hint { margin: 0 0 12px; color: var(--ink); }
.dir-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.dir-form .dir-wide { grid-column: 1 / -1; }
.dir-form .share-actions { margin-top: 4px; }
.dir-keep { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.dir-forget { margin: 12px 0 0; text-align: right; }
.dir-search { max-width: 360px; }
.card .dir-family > .hint, .dir-family > .hint { margin: 0 0 12px; }
.dir-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.dir-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-width: 0; overflow-wrap: anywhere; }
.dir-card[hidden] { display: none; }
.dir-card address { font-style: normal; margin: 6px 0; }
.card .dir-card p { margin: 4px 0; }
.dir-card a { color: var(--green-dark); display: inline-flex; align-items: center; min-height: 44px; }
.card .dir-members { color: var(--muted); font-size: 0.95rem; }
.dir-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 0 20px; }
.dir-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.dir-name { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.org-directory { margin-bottom: 20px; border: 2px solid var(--green); }
.org-directory h2 { margin: 0; font-size: 1.3rem; }
.org-directory > .hint { margin: 6px 0 16px; }
.org-directory h3 { font-size: 1.1rem; margin: 20px 0 10px; }
.org-directory .field input { width: 100%; }
.dir-round-form .hint { margin: 0 0 12px; align-self: center; }
.dir-links { background: var(--cream); border-radius: 10px; padding: 4px 16px 12px; }
.dir-link-list, .dir-entries { list-style: none; margin: 0; padding: 0; }
.dir-link, .dir-entry { padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.dir-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card .dir-entry .slot-detail { margin: 4px 0 8px; overflow-wrap: anywhere; }
.dir-mine :focus-visible, .dir-family :focus-visible, .dir-join :focus-visible, .org-directory :focus-visible, .dir-forget :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
@media (max-width: 720px) {
  .dir-form { grid-template-columns: 1fr; }
  .dir-mine, .dir-join, .org-directory { padding: 16px 12px; }
  .dir-form .share-actions .btn, .dir-join .btn, .dir-keep .btn, .org-directory .share-actions .btn, .dir-round-form .btn { width: 100%; }
  .dir-round-form { grid-template-columns: 1fr; }
  .dir-forget { text-align: left; }
}

/* Monthly email newsletter: the newsletter page (and its print edition) and the organizer's card. */
.nl-upcoming-line { margin: 0 0 12px; font-weight: 600; }
.nl-issue { margin-top: 24px; max-width: 760px; margin-left: auto; margin-right: auto; border-top: 4px solid var(--green); }
.nl-issue h2 { margin: 0 0 12px; font-size: 1.6rem; }
.nl-issue h2:focus, .org-newsletter h2:focus, .nl-send h3:focus { outline: none; }
.card .nl-intro { color: var(--ink); font-size: 1.05rem; margin: 0 0 12px; white-space: pre-line; overflow-wrap: anywhere; }
.card .nl-reunion { background: var(--cream); color: var(--ink); border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; font-weight: 600; }
.nl-items { list-style: none; margin: 0; padding: 0; }
.nl-item { padding: 14px 0; border-top: 1px solid var(--line); }
.card .nl-item .news-from { margin: 0; font-style: italic; }
.nl-item h3 { margin: 0 0 6px; font-size: 1.15rem; overflow-wrap: anywhere; }
.card .nl-body { color: var(--ink); margin: 0 0 6px; white-space: pre-line; overflow-wrap: anywhere; }
.card .nl-foot { margin: 12px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.nl-actions { margin: 0; }
.nl-none { max-width: 760px; margin: 24px auto 0; }
.nl-archive-list { margin: 0; padding-left: 1.2em; }
.nl-archive-list li { padding: 2px 0; }
.nl-archive-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green-dark); }
.nl-archive-list a[aria-current] { font-weight: 700; }
.nl-subscribe { margin-top: 24px; }
.nl-subscribe .hint { margin: 0 0 12px; }
.org-newsletter { margin-bottom: 20px; border: 2px solid var(--green); }
.org-newsletter h2 { margin: 0; font-size: 1.3rem; }
.org-newsletter > .hint { margin: 6px 0 16px; }
.org-newsletter h3 { font-size: 1.1rem; margin: 20px 0 10px; }
.nl-issue-form { max-width: 640px; }
.nl-pick-list, .nl-people { list-style: none; margin: 0; padding: 0; }
.nl-pick-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; min-height: 44px; }
.nl-pick-item label { display: block; min-height: 0; overflow-wrap: anywhere; min-width: 0; font-weight: 400; }
.card .nl-pick-item .slot-detail, .card .nl-person .slot-detail { color: var(--muted); }
.nl-send { background: var(--cream); border-radius: 10px; padding: 4px 16px 16px; }
.card .nl-send .hint { margin: 0 0 12px; }
.nl-person { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.nl-person .slot-detail { flex: 1 1 200px; min-width: 0; }
.nl-person a { color: var(--green-dark); display: inline-flex; align-items: center; min-height: 44px; }
.news-post .share-actions { margin-left: auto; }
@media (max-width: 720px) { .org-news .share-actions { width: 100%; } }
.nl-recipients summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.nl-issue :focus-visible, .nl-archive :focus-visible, .nl-subscribe :focus-visible, .org-newsletter :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
@media (max-width: 720px) {
  .nl-issue, .org-newsletter { padding: 16px 12px; }
  .nl-issue h2 { font-size: 1.35rem; }
  .nl-upcoming .btn, .nl-actions .btn, .nl-subscribe .btn, .nl-issue-form .btn, .nl-send .share-actions .btn, .nl-pending .share-actions .btn { width: 100%; }
  .nl-pending .share-actions { flex: 1 1 100%; }
}
/* Print edition: just the issue, in black on white, for relatives who read it on paper. */
@media print {
  .site-header, .site-footer, .nl-hero, .nl-upcoming, .nl-archive, .nl-subscribe, .np-request, .nl-actions, .nl-none, .fb-launcher, .fb-panel, .fb-backdrop { display: none !important; }
  :root, body { background: #fff; color: #000; }
  .nl-issue { border: 0; box-shadow: none; max-width: none; padding: 0; margin: 0; }
  .card .nl-intro, .card .nl-body, .card .nl-reunion, .nl-issue .news-from, .nl-issue .lead-tag { color: #000; }
  .nl-item { break-inside: avoid; }
}

/* Printed newsletter: the large-type paper edition, its address labels, and the organizer's print desk. */
.np-tools { margin-top: 0; max-width: 760px; margin-left: auto; margin-right: auto; }
.np-tools h2 { margin: 0 0 12px; font-size: 1.2rem; }
.np-tools .field { max-width: 420px; }
.np-choice { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 0 8px; }
.np-choice label { font-weight: 600; }
.np-tools .hint { margin: 0 0 8px; }
.np-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.np-status { margin: 12px 0 0; color: var(--green-dark); font-weight: 600; min-height: 1.55em; }
.np-paper { max-width: 760px; margin: 24px auto 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; color: #111; font-family: Georgia, "Times New Roman", serif; line-height: 1.5; }
.np-masthead { text-align: center; border-bottom: 3px double #111; padding-bottom: 12px; margin-bottom: 16px; }
.np-kicker { margin: 0; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85em; font-weight: 700; color: #111; }
.np-masthead h2 { margin: 4px 0; font-size: 2em; line-height: 1.2; overflow-wrap: anywhere; }
.np-masthead h2:focus { outline: none; }
.np-date { margin: 0; font-style: italic; }
.np-intro { font-size: 1.1em; white-space: pre-line; overflow-wrap: anywhere; margin: 0 0 16px; }
.np-reunion { border: 2px solid #111; border-radius: 8px; padding: 10px 14px; font-weight: 700; margin: 0 0 16px; overflow-wrap: anywhere; }
.np-items { list-style: none; margin: 0; padding: 0; }
.np-item { padding: 14px 0; border-top: 1px solid #999; break-inside: avoid; }
.np-item h3 { margin: 0 0 6px; font-size: 1.3em; overflow-wrap: anywhere; }
.np-body { margin: 0 0 6px; white-space: pre-line; overflow-wrap: anywhere; }
.np-from { margin: 0; font-style: italic; }
.np-empty { font-style: italic; }
.np-back { margin-top: 20px; padding-top: 14px; border-top: 3px double #111; break-inside: avoid; }
.np-back h3 { margin: 0 0 6px; font-size: 1.2em; }
.np-back p { margin: 0 0 6px; overflow-wrap: anywhere; }
.np-url { font-weight: 700; overflow-wrap: anywhere; }
body.np-large .np-paper { font-size: 1.3rem; }
.np-labels { max-width: 760px; margin: 24px auto 0; }
.np-labels h2 { font-size: 1.2rem; margin: 0 0 4px; }
.np-labels-note { margin: 0 0 12px; }
.np-label-sheet { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.np-label { display: flex; flex-direction: column; justify-content: center; background: #fff; border: 1px dashed #8a968f; border-radius: 6px; padding: 8px 12px; font-size: 0.95rem; line-height: 1.3; overflow-wrap: anywhere; min-width: 0; }
.np-tools :focus-visible, .np-desk :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
.np-desk { margin-top: 20px; background: var(--cream); border-radius: 10px; padding: 4px 16px 16px; }
.card .np-desk .hint { margin: 0 0 12px; }
.np-desk details { margin: 8px 0; }
.np-desk summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.np-add-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 12px; }
.np-add-form .field { margin-bottom: 12px; }
.np-add-form .np-wide, .np-add-form .btn { grid-column: 1 / -1; }
.np-add-form .btn { justify-self: start; }
.np-request { margin-top: 24px; }
.np-request .hint { margin: 0 0 12px; }
.np-request-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.np-request-form .np-wide, .np-request-form .form-error, .np-request-form .form-success, .np-request-form .btn { grid-column: 1 / -1; }
.np-request-form .btn { justify-self: start; }
.np-request :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
@media (max-width: 720px) {
  .np-paper { padding: 20px 14px; }
  body.np-large .np-paper { font-size: 1.15rem; }
  .np-masthead h2 { font-size: 1.6em; }
  .np-buttons .btn, .np-desk .share-actions .btn, .np-add-form .btn, .np-request-form .btn { width: 100%; }
  .np-add-form, .np-request-form { grid-template-columns: 1fr; }
}
/* On paper: only the issue (and the label sheet when asked for), letter size, black on white. */
@page { margin: 0.6in; }
@page labels { size: letter; margin: 0.5in 0.19in; }
@media print {
  .np-hero, .np-tools { display: none !important; }
  .np-paper { border: 0; border-radius: 0; max-width: none; margin: 0; padding: 0; font-size: 12pt; }
  body.np-large .np-paper { font-size: 18pt; }
  .np-labels { page: labels; break-before: page; max-width: none; margin: 0; }
  .np-labels h2, .np-labels-note { display: none; }
  .np-label-sheet { grid-template-columns: repeat(3, 2.625in); grid-auto-rows: 1in; gap: 0 0.125in; }
  .np-label { border: 0; border-radius: 0; padding: 0.08in 0.15in; font-size: 10pt; overflow: hidden; break-inside: avoid; }
}
.card .np-home-link { margin: 10px 0 0; }
.np-home-link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green-dark); font-weight: 600; }
.np-home-link a:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
.np-choice[hidden], .np-desk [hidden] { display: none; }

/* Try the prototype: the early testers' guided tour */
.try-note { margin-top: 0; }
.try-note ul { margin: 0; padding-left: 1.2em; }
.try-note li + li { margin-top: 6px; }
.try-key { font-family: ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.try-heading { margin: 40px 0 16px; }
.try-steps { list-style: none; margin: 0; padding: 0; }
.try-steps h3 { font-size: 1.1rem; margin: 0 0 8px; }
.try-steps p { margin: 0 0 16px; color: var(--muted); }
.try-steps .btn:focus-visible, .home-try .btn:focus-visible, .home-beta .btn:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
.home-try, .home-beta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; border-color: var(--green); }
.home-try p, .home-beta p { margin: 0; }
.home-try .lead-tag, .home-beta .lead-tag { margin-right: 8px; }
@media (max-width: 720px) { .try-steps .btn, .home-try .btn, .home-beta .btn { width: 100%; } }

/* Beta program: the beta sign-up and the owner's list of beta families and feedback */
.pricing-actions { margin: 16px 0 0; }
.pricing-actions .btn:focus-visible, .beta-join :focus-visible, .ba-list :focus-visible, .try-beta a:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
.try-beta { margin: 12px 0 0; }
.beta-seats { margin-top: 0; margin-bottom: 24px; }
.beta-seats p { margin: 0 0 12px; font-weight: 600; }
.beta-points { margin: 0; padding-left: 1.2em; color: var(--muted); }
.beta-points li + li { margin-top: 6px; }
.beta-join .field input[type="number"], .beta-join .field input[type="month"] {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink);
  border: 1px solid #8a968f; border-radius: 8px; background: #fff;
}
.beta-join > .hint { margin: 0 0 16px; }
.beta-join .btn { width: 100%; }
.beta-try { margin: 16px 0 0; }
.beta-try a { display: inline-block; padding: 12px 0; }
.ba-list { list-style: none; margin: 0; padding: 0; }
.ba-item { border-top: 1px solid var(--line); padding: 14px 0; }
.ba-item:first-child { border-top: 0; }
.ba-item p { margin: 0 0 6px; overflow-wrap: anywhere; }
.ba-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ba-tag { font-size: 0.85rem; font-weight: 600; background: var(--cream); color: var(--green-dark); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.ba-approved .ba-tag { background: var(--green); color: #fff; border-color: var(--green); }
.ba-who { color: var(--muted); font-size: 0.9rem; }
.ba-note { white-space: pre-line; }
.ba-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ba-requests, .ba-feedback { margin-top: 24px; }
@media (max-width: 720px) { .ba-actions .btn, .pricing-actions .btn { flex: 1 1 100%; width: 100%; } }

/* Ready to market: the home page's product screenshots and differentiators, the sample-reunion tour,
   the owner's "how families heard about us" list and the "Made with" line */
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.home-hero { padding: 40px 0 32px; }
.home-hero .hero-text p { margin-bottom: 16px; }
.hero-shots { position: relative; max-width: 560px; margin: 24px auto 0; padding-right: 72px; }
.hero-shots img { display: block; height: auto; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shot-desktop { width: 100%; border-radius: var(--radius); }
.shot-phone { position: absolute; right: 0; bottom: -16px; width: 32%; border-radius: 18px; }
.why-list { list-style: none; margin: 0 auto 20px; padding: 0; max-width: 640px; display: grid; gap: 6px; }
.why-list strong { color: var(--green-dark); }
.why-list span { color: var(--muted); }
.tour-actions .btn:focus-visible, .tour-next a:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
@media (min-width: 900px) {
  .home-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; text-align: left; padding: 40px 0 40px; }
  .home-hero .hero-text p, .why-list { margin-left: 0; }
  .home-hero .hero-actions { justify-content: flex-start; }
  .hero-shots { margin: 0; max-width: none; }
}
.tour-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.tour-step { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: center; }
.tour-step.tour-wide { grid-template-columns: 1fr; }
.tour-step h2 { font-size: clamp(1.2rem, 3.5vw, 1.5rem); }
.tour-step img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.tour-phone { max-width: 260px; margin: 0 auto; border-radius: 24px; }
.tour-desktop { border-radius: var(--radius); }
.tour-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.tour-next .hint a { display: inline-block; padding: 12px 0; }
.ba-sources { margin-top: 24px; }
.ba-source-list { list-style: none; margin: 0; padding: 0; max-width: 520px; }
.ba-source { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ba-source:first-child { border-top: 0; }
.made-with { margin: 0 0 6px; }
.made-with a { color: var(--green-dark); font-weight: 600; display: inline-block; padding: 12px 4px; }
.made-with a:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
.np-made-with { margin-top: 16px; font-size: 0.95em; }
@media (max-width: 720px) {
  .hero-shots { padding-right: 0; }
  .shot-phone { position: static; width: 45%; max-width: 200px; margin: -40px 8px 0 auto; }
  .hero-actions .btn, .tour-actions .btn { flex: 1 1 100%; }
  .tour-step { grid-template-columns: 1fr; }
}

/* Sign in with Google and My family (the signed-in family's private page) */
.signin-card { margin-top: 8px; }
.signin-card .google-button { min-height: 44px; margin: 8px 0 16px; }
.dev-signin { margin-top: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
.dev-signin .btn, .beta-google .dev-signin .btn { width: 100%; }
.signin-note { margin-top: 16px; }
.mf-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; overflow-wrap: anywhere; }
.mf-signout { min-height: 44px; }
.mf-page { overflow-wrap: anywhere; }
.mf-page h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); margin: 8px 0 12px; }
.mf-page h3 { font-size: 1.2rem; margin: 24px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.mf-page p { color: var(--ink); margin: 0 0 10px; }
.mf-page ul { margin: 0 0 12px; padding-left: 1.4em; }
.mf-page li { margin: 4px 0; }
.mf-page a { color: #1d5a3f; text-underline-offset: 2px; }
.mf-page a:focus-visible, .mf-files a:focus-visible, .mf-members :focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
.mf-banner { display: block; width: 100%; height: auto; border-radius: 8px; margin: 0 0 8px; }
.mf-storage { margin: 0 0 12px; }
.mf-storage-text { margin: 0 0 6px; font-weight: 600; }
.mf-meter { height: 12px; border-radius: 999px; background: #eceae4; overflow: hidden; }
.mf-meter span { display: block; height: 100%; min-width: 2px; background: var(--green); }
.mf-meter.mf-meter-full span { background: #b3261e; }
.mf-limit { border: 2px solid #b3261e; background: #fdecea; color: #5c130d; border-radius: var(--radius); padding: 16px; margin: 0 0 16px; }
.mf-limit p { margin: 0 0 12px; }
.mf-upload { margin: 0 0 8px; }
.mf-upload:focus-within .mf-pick { outline: 3px solid #1d5fbf; outline-offset: 2px; }
.mf-upload .hint { margin: 8px 0 0; }
.mf-gallery { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 12px; }
.mf-file { border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.mf-preview { display: block; aspect-ratio: 4 / 3; background: var(--cream); border-radius: 6px; overflow: hidden; }
.mf-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mf-file-icon { display: flex; height: 100%; align-items: center; justify-content: center; font-size: 2.5rem; }
.mf-file-name { margin: 0; overflow-wrap: anywhere; }
.mf-file-name a { display: inline-block; min-height: 24px; }
.mf-sharebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 12px; margin: 0 0 16px; }
.mf-shared-with { margin: 0; }
.mf-share-open:focus-visible { outline: 3px solid #1d5fbf; outline-offset: 2px; }
/* Share dialog (like Google Docs): add people on top, "People with access" below, Done at the bottom. */
.mf-share {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; overflow-wrap: anywhere;
  padding: 20px 24px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); background: #fff;
}
.mf-share::backdrop { background: rgba(0, 0, 0, 0.45); }
.mf-share-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mf-share-head h2 { margin: 6px 0 8px; font-size: 1.4rem; line-height: 1.3; min-width: 0; }
.mf-share-close { min-width: 44px; padding: 0; border-color: transparent; font-size: 1.1rem; flex: none; }
.mf-share > .hint { margin: 0 0 16px; }
.mf-access-heading { font-size: 1.05rem; margin: 20px 0 0; }
.mf-share-foot { display: flex; justify-content: flex-end; margin-top: 16px; }
.mf-member-list { list-style: none; padding: 0; margin: 8px 0 0; }
.mf-member { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mf-member-email { overflow-wrap: anywhere; min-width: 0; }
.mf-member-name { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.mf-member-name + .mf-member-email { flex: 1; color: var(--muted); }
.mf-import { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.mf-import-panel { margin: 12px 0 0; }
.mf-import-panel > .hint { margin: 0 0 12px; }
.mf-import-file { margin: 0 0 16px; }
.mf-import-file:focus-within .mf-import-pick { outline: 3px solid #1d5fbf; outline-offset: 2px; }
.mf-import-file .hint { margin: 8px 0 0; }
.mf-sheet-form { margin: 0 0 12px; }
@media (max-width: 720px) {
  .mf-member-form .btn, .mf-limit .btn, .mf-pick, .mf-import .btn, .mf-share-foot .btn { width: 100%; }
  .mf-share { padding: 16px; }
}

/* Pricing: free during the beta, then pay for more storage */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin: 16px 0; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--cream); }
.plan-free { border: 2px solid var(--green); background: #fff; }
.plan h3 { margin: 0 0 4px; }
.plan-price { font-size: 1.4rem; font-weight: 700; margin: 0 0 8px; }
.plan ul { margin: 0; padding-left: 1.2em; }
.plan li + li { margin-top: 4px; }
.storage-rule { border-left: 4px solid var(--green); padding: 8px 12px; background: #f3f8f5; border-radius: 4px; }

/* Beta: log right in with Google */
.beta-google { margin-top: 24px; }
.beta-google .google-button { min-height: 44px; margin: 8px 0 12px; }
