@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0a0a0b;
  --body: #3a3f4a;
  --muted: #6b7280;
  --line: #e7e8ec;
  --soft: #f4f5f8;
  --blue: #3b6cf6;
  --blue-deep: #2f55d4;
  --danger: #b42318;
  --radius: 10px;
  --radius-lg: 20px;
  --width: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 15px/1.55 "Geist", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header and footer ---------- */
.site-header {
  max-width: var(--width); margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; letter-spacing: -0.03em; text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; color: var(--body); }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
.site-header form { margin: 0; }
.site-footer {
  max-width: var(--width); margin: 72px auto 0; padding: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--muted);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer span { margin-right: auto; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px;
  border: 0; border-radius: var(--radius); background: var(--ink); color: #fff; cursor: pointer;
  font: 500 14px/1 inherit; font-family: inherit; letter-spacing: -0.006em; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.55), 0 1px 2px rgba(10, 10, 11, 0.2);
  transition: background 0.15s;
}
.button:hover { background: #26262a; }
.button.small { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 8px; }
.button.secondary { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(10, 10, 11, 0.05); }
.button.secondary:hover { background: var(--soft); }
button.link { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
button.link:hover { text-decoration: underline; }
.danger { color: var(--danger) !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Home: hero ---------- */
.hero { max-width: var(--width); margin: 0 auto; padding: 64px 24px 0; text-align: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 50px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.04; }
.lede { max-width: 520px; margin: 18px auto 24px; font-size: 17px; line-height: 1.55; color: var(--body); }
.hero-note { margin-top: 12px; font-size: 13px; color: var(--muted); }

.stage {
  margin-top: 48px; padding: 36px 36px 0; border-radius: var(--radius-lg); overflow: hidden; text-align: left;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #4f8df7 0%, #7fb2fb 55%, #cfe3ff 100%);
}
.window {
  background: #fff; border-radius: 14px 14px 0 0; overflow: hidden;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.35), 0 24px 60px rgba(20, 45, 110, 0.28);
}
.window-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafafb; }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d9dbe1; }
.window-bar span { margin: 0 auto; padding: 3px 60px; border-radius: 6px; background: #eff0f3; font-size: 11px; color: var(--muted); transform: translateX(-21px); }
.window-body { display: grid; grid-template-columns: 250px 1fr; min-height: 330px; }
.mock-side { padding: 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.mock-label { font-weight: 600; font-size: 14px; letter-spacing: -0.02em; }
.mock-link { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--blue-deep); font-weight: 500; }
.mock-bubble { padding: 9px 11px; border-radius: 12px 12px 12px 3px; background: var(--soft); color: var(--body); line-height: 1.45; }
.mock-bubble.reply { align-self: flex-end; border-radius: 12px 12px 3px 12px; background: var(--blue); color: #fff; }
.mock-main { padding: 18px; background: #fcfcfd; }
.mock-main-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.mock-btn { padding: 6px 11px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 500; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-entry { display: flex; flex-direction: column; gap: 1px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 11.5px; color: var(--body); }
.mock-entry-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; margin-bottom: 3px; }
.mock-entry strong { font-size: 12.5px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.mock-entry em { margin-top: 5px; font-style: normal; color: var(--blue-deep); font-size: 11px; }
.pill { flex: none; padding: 1px 7px; border-radius: 99px; background: var(--soft); color: var(--muted); font-size: 10px; font-weight: 500; white-space: nowrap; }
.pill.new { background: #e5edff; color: var(--blue-deep); }

/* ---------- Home: sections ---------- */
.band { max-width: var(--width); margin: 0 auto; padding: 96px 24px 0; }
.band h2, .closing h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 24px; }
.band h2 span, .closing h2 span { color: #8a909c; }
.bento { display: grid; gap: 16px; }
.bento.two { grid-template-columns: 1fr 1fr; }
.bento.three { grid-template-columns: repeat(3, 1fr); }
.card { border-radius: var(--radius-lg); padding: 26px 26px 0; overflow: hidden; display: flex; flex-direction: column; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; max-width: 360px; }
.card.grey { background: linear-gradient(180deg, #f6f7fa 0%, #eceef4 100%); box-shadow: inset 0 0 0 1px rgba(10, 10, 11, 0.04); }
.card.blue { background: linear-gradient(160deg, #3b6cf6 0%, #5b8af9 55%, #86aefc 100%); color: #fff; }
.card.blue p { color: rgba(255, 255, 255, 0.86); }
.card-art { margin-top: 26px; flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.bento.three .card { padding: 0 24px 26px; }
.bento.three .card h3 { font-size: 17px; }
.card-art.small { margin: 0 -24px 22px; height: 150px; align-items: center; background: rgba(255, 255, 255, 0.55); border-bottom: 1px solid rgba(10, 10, 11, 0.05); }

.chat { width: 100%; max-width: 330px; padding: 18px 16px 22px; border-radius: 16px 16px 0 0; background: #fff; color: var(--ink); display: flex; flex-direction: column; gap: 8px; font-size: 13px; box-shadow: 0 16px 40px rgba(15, 35, 100, 0.25); }
.chat-msg { align-self: flex-end; max-width: 85%; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--blue); color: #fff; }
.chat-msg.them { align-self: flex-start; border-radius: 14px 14px 14px 4px; background: var(--soft); color: var(--ink); }
.chat-link { align-self: flex-end; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); color: var(--blue-deep); font-weight: 500; }

.mini-form { width: 100%; max-width: 330px; padding: 18px 18px 22px; border-radius: 16px 16px 0 0; background: #fff; display: flex; flex-direction: column; gap: 5px; box-shadow: 0 16px 40px rgba(10, 10, 11, 0.08); }
.mini-label { font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 5px; }
.mini-input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.mini-button { margin-top: 10px; padding: 9px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; text-align: center; }

.label-sheet { display: grid; grid-template-columns: repeat(3, 62px); gap: 6px; padding: 10px; background: #fff; border-radius: 8px; box-shadow: 0 6px 18px rgba(10, 10, 11, 0.08); }
.label-sheet span { display: flex; flex-direction: column; gap: 3px; padding: 7px 6px; border: 1px dashed #d5d8df; border-radius: 4px; }
.label-sheet b, .label-sheet i { display: block; height: 3px; border-radius: 2px; background: #c9cdd6; }
.label-sheet b { width: 80%; background: #7d8494; }
.label-sheet i:last-child { width: 60%; }
.sheet-rows { display: grid; width: 82%; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 18px rgba(10, 10, 11, 0.08); font-size: 11px; }
.sheet-rows span { display: grid; grid-template-columns: 1.4fr 1fr 0.7fr; border-bottom: 1px solid var(--line); }
.sheet-rows span:last-child { border: 0; }
.sheet-rows b, .sheet-rows i { padding: 6px 9px; font-style: normal; border-right: 1px solid var(--line); color: var(--body); white-space: nowrap; overflow: hidden; }
.sheet-rows b { background: #f1f8f3; color: #256b3c; font-weight: 600; }
.bday { display: flex; flex-direction: column; gap: 6px; width: 78%; }
.bday span { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: #fff; border-radius: 8px; font-size: 12px; color: var(--body); box-shadow: 0 2px 8px rgba(10, 10, 11, 0.06); }
.bday b { flex: none; width: 46px; color: var(--blue-deep); font-weight: 600; font-size: 11px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.facts strong { display: block; font-size: 30px; font-weight: 500; letter-spacing: -0.04em; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.facts h3 { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.facts p { color: var(--muted); font-size: 14px; }

.closing { max-width: var(--width); margin: 0 auto; padding: 110px 24px 40px; text-align: center; }
.closing h2 { line-height: 1.2; }

/* ---------- App pages ---------- */
.panel { max-width: 860px; margin: 28px auto 0; padding: 0 24px; }
.panel.narrow { max-width: 468px; }
.panel h1 { font-size: 26px; margin-bottom: 8px; }
.panel h2 { font-size: 17px; letter-spacing: -0.02em; }
.panel > p { margin-bottom: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 32px 0 12px; }
.panel-head h1 { margin: 0; }
.panel > .panel-head:first-child { margin-top: 0; }
.eyebrow { font-size: 12.5px; font-weight: 500; color: var(--blue-deep); margin-bottom: 8px !important; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px !important; }
.crumbs a { text-decoration: none; }
.notice { padding: 10px 13px; border-radius: var(--radius); background: #eef3ff; color: #1e3a8a; font-size: 14px; margin: 12px 0 !important; }
blockquote { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--line); color: var(--body); }
.empty { padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

form { margin: 18px 0 0; }
label, legend { display: block; margin: 14px 0 5px; font-size: 13px; font-weight: 500; }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #d8dbe2; border-radius: 8px; background: #fff;
  font: inherit; color: var(--ink); appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 28px; }
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }
input[readonly], textarea[readonly] { background: var(--soft); color: var(--body); }
.hint { margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.field-error { margin-top: 5px; font-size: 13px; color: var(--danger); }
.row { display: flex; gap: 10px; }
.row .grow { flex: 1; min-width: 0; }
.row .short { width: 92px; flex: none; }
fieldset { border: 0; margin: 0; padding: 0; }
fieldset .row label { margin: 0; }
form .button { margin-top: 20px; }
.panel.narrow form > .button { width: 100%; }
.code-input { font-size: 22px; letter-spacing: 0.3em; text-align: center; }
.hp { position: absolute; left: -9999px; }
form + .small, details + .small { margin-top: 18px; }

.share { margin-top: 20px; padding: 20px; border-radius: 14px; background: var(--soft); }
.share label { margin-top: 16px; }
.copy-row { display: flex; gap: 8px; margin-top: 10px; }
.copy-row input { font-weight: 500; color: var(--blue-deep); background: #fff; }
.copy-row .button { flex: none; height: auto; }
.share textarea { background: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share .actions { margin-top: 10px; }
.actions .button { margin: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { font-size: 12px; font-weight: 500; color: var(--muted); background: #fafafb; }
tbody tr:last-child > * { border-bottom: 0; }
td form { margin: 0; }
td strong { font-weight: 600; }

details { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
details summary { padding: 13px 0; font-weight: 500; font-size: 14px; cursor: pointer; }
details[open] { padding-bottom: 16px; }
details form:first-of-type { margin-top: 0; }
details .link.danger { font-size: 13px; }

.list-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list-cards a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.list-cards a:hover { background: var(--soft); }

.address-card { display: flex; flex-direction: column; margin: 18px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; }
.address-card span:first-child { font-weight: 600; }
.address-card .small { margin-top: 8px; }
.invite { margin: 22px 0; padding: 22px; border-radius: 16px; color: #fff; background: linear-gradient(160deg, #3b6cf6 0%, #5b8af9 60%, #86aefc 100%); }
.invite h2 { font-size: 19px; margin-bottom: 6px; }
.invite p { color: rgba(255, 255, 255, 0.88); font-size: 14px; margin-bottom: 16px; }
.invite .button { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(10, 10, 11, 0.2); }

.prose { max-width: 660px; margin: 32px auto 0; padding: 0 24px; color: var(--body); }
.prose h1 { font-size: 28px; color: var(--ink); margin-bottom: 18px; }
.prose h2 { font-size: 17px; color: var(--ink); margin: 26px 0 8px; letter-spacing: -0.02em; }
.prose p, .prose ul { margin: 0 0 12px; }
.prose ul { padding-left: 20px; }

.pill[title] { cursor: help; }
td .pill { vertical-align: 1px; margin-left: 2px; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
label.check input { width: auto; appearance: auto; margin: 0; }
.upcoming { margin-top: 28px; }
.upcoming ul, .share-list ul { list-style: none; margin: 10px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; }
.upcoming li { display: flex; align-items: baseline; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.upcoming li strong { width: 108px; flex: none; font-weight: 500; color: var(--blue-deep); }
.upcoming li .small { margin-left: auto; }
.upcoming li:last-child, .share-list li:last-child { border-bottom: 0; }
.share-list { margin-top: 30px; }
.share-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.share-list li div:first-child { display: flex; flex-direction: column; min-width: 0; }
.share-list form { margin: 0; }
.share-list .actions { align-items: center; flex-wrap: nowrap; }
.share-list .button { margin: 0; }
.saved-share { margin: 18px 0 8px; padding: 18px; border-radius: 14px; background: var(--soft); }
.saved-share .address-card { background: #fff; margin: 12px 0; }
.saved-share form { margin: 0 0 10px; }
.saved-share .button { margin: 0; width: 100%; }
.keep { margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; }
.keep h2 { margin-bottom: 6px; }
.keep p { font-size: 14px; color: var(--muted); }
.keep form { margin-top: 4px; }
.keep .button { margin-top: 14px; }
.mini-note { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #eef3ff; color: #1e3a8a; font-size: 12px; margin-bottom: 6px; }
.mini-note b { font-size: 13px; }
.mini-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 2px; border-top: 1px solid var(--line); font-size: 13px; }
.mini-row i, .mini-row em { font-style: normal; }
.card.blue .mini-label { color: var(--muted); }

/* ---------- Contacts ---------- */
.name-ask { margin: 16px 0 0; padding: 4px 16px 16px; border-radius: 12px; background: #fff7e6; }
.name-ask .hint { margin: 0; }
.name-ask .button { margin: 0; }
.starter { margin-top: 18px; padding: 26px; border-radius: 16px; color: #fff; background: linear-gradient(160deg, #3b6cf6 0%, #5b8af9 60%, #86aefc 100%); }
.starter h2 { font-size: 20px; margin-bottom: 8px; }
.starter p { color: rgba(255, 255, 255, 0.9); max-width: 520px; margin-bottom: 18px; }
.starter .button { background: #fff; color: var(--ink); }
.starter .button.secondary { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.summary div { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 12px; background: var(--soft); }
.summary strong { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.summary span { font-size: 13px; color: var(--muted); }
details.share { padding: 0 18px; border: 0; }
details.share summary { color: var(--ink); }
details.share[open] { padding-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.chips.tight { margin-top: 0; }
.chip, .chip-add summary { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--body); box-shadow: inset 0 0 0 1px var(--line); background: #fff; white-space: nowrap; }
.chip span { color: var(--muted); font-weight: 400; }
.chip:hover { background: var(--soft); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.chip.on span { color: rgba(255, 255, 255, 0.7); }
details.chip-add { margin: 0; padding: 0; border: 0; position: relative; }
details.chip-add summary { padding: 0 12px; list-style: none; border-style: dashed; color: var(--muted); }
details.chip-add summary::-webkit-details-marker { display: none; }
details.chip-add summary::before { content: "+"; }
details.chip-add form { position: absolute; z-index: 5; top: 40px; left: 0; width: 260px; margin: 0; padding: 4px 14px 14px; border-radius: 12px; background: #fff; box-shadow: 0 8px 30px rgba(10, 10, 11, 0.14), inset 0 0 0 1px var(--line); }
details.chip-add .button { margin-top: 12px; }
.ask-all { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #eef3ff; }
.ask-all div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ask-all strong { font-weight: 600; color: #1e3a8a; font-size: 14px; }
.ask-all progress { width: 100%; max-width: 320px; height: 6px; margin: 5px 0 4px; accent-color: #2563eb; }
.ask-all form { margin: 0; flex: none; }
.ask-all .button { margin: 0; }
.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 10px; }
.toolbar-row input[type="search"] { max-width: 260px; }
form.bulk { margin: 0; }
th.tick, td.tick { width: 34px; padding-right: 0; }
.tick input, .bulk-bar select { width: auto; }
.tick input { appearance: auto; margin: 3px 0 0; width: 16px; height: 16px; }
table.people label { display: inline; margin: 0; font-size: inherit; cursor: pointer; }
.ask { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.ask .button { height: 28px; padding: 0 10px; font-size: 12.5px; margin: 0; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.bulk-bar .button { margin: 0; }
.bulk-bar select { height: 34px; padding-top: 0; padding-bottom: 0; font-size: 13px; max-width: 200px; }
.bulk-bar label.inline { margin: 0; font-weight: 400; color: var(--muted); }
.table-wrap.tall { max-height: 62vh; overflow-y: auto; }
.table-wrap.tall thead th { position: sticky; top: 0; z-index: 1; }
.import-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; align-items: start; }
.import-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; }
.import-card h2 { margin-bottom: 6px; }
.import-card .button { width: 100%; }
.import-card input[type="file"] { padding: 9px; font-size: 13px; height: auto; }
.steps { margin: 0; padding: 0 0 0 20px; font-size: 14px; color: var(--body); }
.steps li { margin-bottom: 6px; }
.keep .actions { margin-top: 12px; }
.keep .actions .button { margin: 0; }
form[aria-busy="true"] .button[type="submit"] { opacity: 0.6; pointer-events: none; }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .hero { padding-top: 40px; }
  .stage { padding: 18px 18px 0; margin-top: 36px; }
  .window-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-grid { grid-template-columns: 1fr 1fr; }
  .mock-grid .mock-entry:nth-child(n + 5) { display: none; }
  .bento.two, .bento.three, .facts { grid-template-columns: 1fr; }
  .band { padding-top: 64px; }
  .closing { padding-top: 72px; }
  .hide-sm { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 15px; }
  .site-header, .hero, .band, .closing, .panel, .prose { padding-left: 16px; padding-right: 16px; }
  .row { flex-wrap: wrap; }
  .row .grow { flex-basis: 100%; }
  .row .short { flex: 1; width: auto; }
  .birthday .row { flex-wrap: nowrap; }
  .birthday .row .grow { flex-basis: auto; }
  .copy-row { flex-direction: column; }
  .copy-row .button { height: 36px; }
  input, select, textarea { font-size: 16px; }
  .import-grid { grid-template-columns: 1fr; }
  .ask-all { flex-direction: column; align-items: stretch; }
  .ask-all .button { width: 100%; }
  .summary div { padding: 11px 12px; }
  .summary strong { font-size: 20px; }
  /* Contacts read as cards on a phone instead of a wide table. */
  table.people thead { display: none; }
  table.people, table.people tbody { display: block; }
  table.people tr { display: grid; grid-template-columns: 30px 1fr auto; gap: 2px 6px; padding: 12px 12px; border-bottom: 1px solid var(--line); }
  table.people tr:last-child { border-bottom: 0; }
  table.people td { display: block; padding: 0; border: 0; }
  table.people td.tick { grid-row: 1 / span 3; }
  table.people td:nth-child(2) { grid-column: 2; }
  table.people td:nth-child(3) { grid-column: 2 / span 2; grid-row: 2; font-size: 14px; }
  table.people td:nth-child(4) { grid-column: 2 / span 2; grid-row: 3; font-size: 13px; color: var(--muted); }
  table.people td:nth-child(4):empty { display: none; }
  table.people td:nth-child(5) { grid-column: 3; grid-row: 1; }
  .ask .button { height: 34px; padding: 0 14px; font-size: 13.5px; }
  .tick input { width: 18px; height: 18px; }
  .panel-head { flex-wrap: wrap; }
  details.chip-add form { left: auto; right: 0; }
}

/* Worklist: the progress banner's button stays on one line, and the actions for ticked people stay in reach on a long list. */
.ask-all > .button { flex: none; white-space: nowrap; }
form.bulk .bulk-bar { position: sticky; bottom: 0; z-index: 2; margin-top: 0; padding: 12px 0; background: #fff; border-top: 1px solid var(--line); }

/* Calmer My contacts page. */
[hidden] { display: none !important; }
.progress-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 18px; }
.progress-line strong { font-weight: 600; font-size: 14px; color: var(--ink); }
.progress-line progress { flex: 1; min-width: 140px; max-width: 360px; height: 6px; accent-color: var(--blue); }
.toolbar-row input[type="search"] { height: 34px; font-size: 13px; }
.list-links { display: flex; gap: 18px; margin: 14px 0 0; font-size: 13px; }
.list-links a { color: var(--muted); }
details.share { margin-top: 28px; }
form.bulk .bulk-bar { box-shadow: 0 -6px 12px -8px rgba(10, 10, 11, 0.12); }

td.row-actions { white-space: nowrap; text-align: right; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0 0 0 8px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; vertical-align: middle; }
.icon-button:hover, .icon-button:focus-visible { background: #fdecec; color: #c62828; }

.site-header nav a { white-space: nowrap; }
@media (max-width: 480px) { .site-header nav { gap: 14px; font-size: 13px; } }

/* ---------- Guides ---------- */
.guide { max-width: 700px; margin: 0 auto; padding: 0 24px; color: var(--body); font-size: 16px; line-height: 1.6; }
.guide-top { padding: 48px 0 8px; text-align: center; }
.guide-top h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 500; letter-spacing: -0.04em; color: var(--ink); }
.guide-top .lede { max-width: 600px; }
.guide h2 { margin: 52px 0 14px; font-size: 24px; color: var(--ink); }
.guide h3 { font-size: 16px; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); }
.guide p { margin: 0 0 12px; }
.guide-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 16px; }
.guide-steps li { counter-increment: step; position: relative; padding-left: 44px; display: flex; flex-direction: column; }
.guide-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--ink); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.guide-steps strong { color: var(--ink); }
.guide-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guide-compare > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14.5px; }
.guide-compare > div.ours { border-color: var(--blue); background: #f5f8ff; }
.guide-compare h3 { margin-bottom: 8px; }
.guide-compare p { margin: 0 0 6px; }
.guide-compare b { color: var(--ink); font-weight: 600; }
.guide-q { margin-top: 20px; margin-bottom: 4px; }
.guide-end { margin-top: 56px; padding: 36px 24px; border-radius: var(--radius-lg); background: var(--soft); text-align: center; }
.guide-end h2 { margin: 0 0 18px; }
.guide-more { margin-top: 28px; font-size: 14px; color: var(--muted); }
@media (max-width: 520px) { .guide { padding: 0 16px; } .guide-compare { grid-template-columns: 1fr; } .guide-top { padding-top: 32px; } }

/* ---------- Admin ---------- */
.admin h2 { margin: 28px 0 10px; }
.admin table { font-size: 14px; }
.nowrap { white-space: nowrap; }
