:root {
  color-scheme: light;
  --navy: #00245d;
  --accent: #4382d1;
  --muted: #4c6e97;
  --gray: #9aa7b8;
  --line: #e3e9f1;
  --panel: #f4f7fb;
  --panel-2: #eef3f9;
  --ok: #1f9d6b;
  --ok-bg: #e3f6ee;
  --warn-bg: #fff4e0;
  --warn: #8a4b00;
  --bad: #b42318;
  --bad-bg: #fdecec;
  --white: #ffffff;
  --font: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font); color: var(--navy); background: var(--white);
  -webkit-font-smoothing: antialiased; font-size: 17px; line-height: 1.45;
}
a { color: var(--accent); }
button, input, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }

.bar {
  position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--line); max-width: 560px; margin: 0 auto;
}
.brand img { height: 20px; display: block; }
.me {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: grid; place-items: center; font-weight: 700; font-size: 14px; text-decoration: none;
}
.app { max-width: 560px; margin: 0 auto; padding: 18px 18px calc(96px + var(--safe-b)); }

.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; background: var(--white);
  border-top: 1px solid var(--line); display: flex; justify-content: center;
  padding: 6px 8px calc(6px + var(--safe-b));
}
.tabs a {
  flex: 1; max-width: 186px; text-align: center; padding: 10px 4px; font-weight: 600; font-size: 15px;
  color: var(--muted); text-decoration: none; border-radius: 10px;
}
.tabs a.on { color: var(--navy); background: var(--panel-2); }

h1 { font-size: 28px; line-height: 1.15; margin: 8px 0 10px; }
h2 { font-size: 21px; margin: 0 0 8px; }
h3 { font-size: 17px; margin: 0 0 4px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.tiny { font-size: 13px; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }

.btn {
  display: block; width: 100%; border: 0; border-radius: 14px; padding: 15px 18px;
  font-size: 17px; font-weight: 600; background: var(--navy); color: var(--white); cursor: pointer; text-align: center;
  text-decoration: none;
}
.btn:active { transform: scale(.985); }
.btn.secondary { background: var(--panel-2); color: var(--navy); }
.btn.danger { background: var(--bad-bg); color: var(--bad); }
.btn.small { width: auto; display: inline-block; padding: 9px 14px; font-size: 15px; border-radius: 11px; }
.btn:disabled { opacity: .55; cursor: default; }
.link { border: 0; background: none; color: var(--accent); font-weight: 600; padding: 6px 0; cursor: pointer; font-size: 16px; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
input[type=text], input[type=tel], input[type=email], textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px;
  background: var(--panel); font-size: 17px; outline: none;
}
input:focus, textarea:focus { border-color: var(--accent); background: var(--white); }
textarea { min-height: 120px; resize: vertical; }
.code-input { letter-spacing: .4em; font-size: 26px !important; text-align: center; font-weight: 700; }
.error { color: var(--bad); font-size: 15px; margin: -4px 0 12px; }

.card { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--white); }
.card.soft { background: var(--panel); border-color: transparent; }
a.card { display: block; color: inherit; text-decoration: none; }
.list > * + * { margin-top: 10px; }
.snippet { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pill { display: inline-block; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.wait { background: var(--panel-2); color: var(--muted); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--white); flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 17px;
}
.avatar.lg { width: 64px; height: 64px; font-size: 23px; }
.avatar.sm { width: 36px; height: 36px; font-size: 14px; }
.section { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 24px 0 10px; }
.note { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.banner { background: var(--panel); border-radius: 14px; padding: 14px 16px; }
.seg { display: flex; gap: 8px; }
.seg label {
  flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; background: var(--panel);
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: var(--accent); background: var(--white); }
.seg b { display: block; }
.seg small { color: var(--muted); font-size: 13px; }

.item-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.item-row:first-child { border-top: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); margin-top: 8px; flex: none; }
.dot.blue { background: var(--accent); }
.dot.red { background: var(--bad); }
.dot.gray { background: var(--gray); }
.log time { display: block; font-size: 13px; color: var(--gray); }
.fresh { animation: fresh 1.6s ease; }
@keyframes fresh { 0% { background: #fff3c4; } 100% { background: transparent; } }
details.recipe summary { cursor: pointer; list-style: none; }
details.recipe summary::-webkit-details-marker { display: none; }
details.recipe[open] summary .snippet { display: none; }
.recipe-body { white-space: pre-wrap; margin-top: 8px; font-size: 16px; }

.faceid { display: grid; place-items: center; margin: 24px 0 8px; }
.faceid svg { width: 84px; height: 84px; }

.sms {
  position: fixed; top: 10px; left: 50%; z-index: 50; width: min(94vw, 420px);
  transform: translate(-50%, -160%); transition: transform .35s ease;
  background: rgba(248, 249, 252, .98); border-radius: 18px; padding: 12px 16px;
  box-shadow: 0 12px 32px rgba(0, 36, 93, .25); font-size: 15px; cursor: pointer;
}
.sms { opacity: 0; pointer-events: none; }
.sms.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.sms b { font-size: 14px; }
.toast {
  position: fixed; left: 50%; bottom: calc(84px + var(--safe-b)); z-index: 60; transform: translate(-50%, 220%);
  background: var(--navy); color: var(--white); padding: 12px 18px; border-radius: 14px; font-weight: 600;
  transition: transform .3s ease, opacity .3s ease; max-width: 92vw; box-shadow: 0 10px 30px rgba(0, 36, 93, .3);
  opacity: 0; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(0, 20, 50, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet-body {
  background: var(--white); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto;
  border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + var(--safe-b));
}
.chat { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.bubble { border-radius: 16px; padding: 10px 13px; font-size: 15px; max-width: 90%; }
.bubble.mine { align-self: flex-end; background: var(--navy); color: var(--white); }
.bubble.ai { align-self: flex-start; background: var(--panel); }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }

/* Bottom dock for Accept / Get started: where the Face ID sheet appears, under the thumb. */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--white); border-top: 1px solid var(--line); padding: 12px 18px calc(12px + var(--safe-b)); }
.dock-in { max-width: 524px; margin: 0 auto; }
.m-sub-label { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: -2px 0 8px; }
.link.small { font-size: 14px; padding: 0; }

/* The share, dangled blurred one step away while we ask for a name. */
.teaser { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--panel); margin-bottom: 18px; }
.teaser-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.teaser-items { display: flex; flex-direction: column; gap: 8px; }
.blur-item { filter: blur(5px); user-select: none; pointer-events: none; transition: filter .6s ease; }
.blur-item.unblur { filter: blur(0); }
#dbg { position: fixed; left: 8px; right: 8px; top: 60px; z-index: 70; max-height: 30vh; overflow: auto; margin: 0; padding: 8px; font: 11px/1.4 ui-monospace, Menlo, monospace; background: rgba(0, 20, 50, .88); color: #e4ebf5; border-radius: 10px; white-space: pre-wrap; pointer-events: none; }

/* ---------- the gift ---------- */
.gift { margin: 4px 0 18px; }
.gift-from { display: flex; gap: 12px; align-items: center; }
.gift-from b { display: block; font-size: 18px; }
.gift-from small { color: var(--muted); font-size: 15px; }
.parcel { position: relative; height: 150px; margin: 34px 18px 22px; }
.parcel-card {
  position: absolute; inset: 0; background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; box-shadow: 0 10px 28px -12px rgba(0, 36, 93, .35); overflow: hidden;
  filter: blur(4.5px); transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .7s ease, opacity .7s ease;
}
.parcel-card b { display: block; font-size: 17px; margin-bottom: 4px; }
.parcel-card span { color: var(--muted); font-size: 14px; }
.parcel-card:nth-child(1) { transform: rotate(-5deg) translate(-10px, 10px); }
.parcel-card:nth-child(2) { transform: rotate(4deg) translate(10px, 6px); }
.parcel-card:nth-child(3) { transform: none; }
.parcel-badge {
  position: absolute; left: 50%; top: -18px; transform: translateX(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 36, 93, .35); transition: opacity .4s, transform .4s;
}
.parcel.open .parcel-card { filter: blur(0); }
.parcel.open .parcel-card:nth-child(1) { transform: rotate(-9deg) translate(-26px, 14px); opacity: 0; transition-duration: .35s; }
.parcel.open .parcel-card:nth-child(2) { transform: rotate(8deg) translate(26px, 10px); opacity: 0; transition-duration: .35s; }
.parcel.open .parcel-card:nth-child(3) { transform: scale(1.03); box-shadow: 0 16px 36px -14px rgba(0, 36, 93, .45); }
.parcel.open .parcel-badge { opacity: 0; transform: translateX(-50%) scale(.6); }
.ask .ask-q { font-size: 20px; font-weight: 700; color: var(--navy); }
.ask input { font-size: 19px; }
.ask .link { display: block; margin: 10px auto 0; color: var(--muted); }
.btn.cta { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; }
.gift-note { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 15px; margin-top: 8px; }
.fid { width: 22px; height: 22px; border: 2.5px solid var(--accent); border-radius: 7px; flex: none; animation: fidpulse 1.4s ease-in-out infinite; }
@keyframes fidpulse { 50% { transform: scale(.88); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .parcel-card, .parcel-badge, .fid { transition: none; animation: none; } }

/* ---------- one question per screen ---------- */
.step { display: flex; flex-direction: column; padding-top: 14px; }
.step h1 { font-size: 28px; margin: 6px 0 18px; }
.step .sub { color: var(--muted); margin: -8px 0 18px; }
.big-input { font-size: 22px !important; padding: 16px !important; margin-bottom: 14px; }
.hint { color: var(--gray); font-size: 14px; text-align: center; margin: 12px 0 0; }
.link.inline { font-size: inherit; padding: 0; }

/* Six code boxes over one real input, so the keyboard's code suggestion still fills it. */
.otp { position: relative; margin-bottom: 18px; }
.otp input {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; border: 0; padding: 0;
  background: transparent; color: transparent; caret-color: transparent; font-size: 24px; letter-spacing: 1em; outline: none;
}
.otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp-boxes span {
  height: 60px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--panel);
  display: grid; place-items: center; font-size: 26px; font-weight: 700; color: var(--navy); transition: border-color .15s, background .15s;
}
.otp-boxes span:not(:empty) { background: var(--white); }
.otp-boxes span.on { border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(67, 130, 209, .15); }

/* ---------- the unlock: blurred share, name on top ---------- */
.unlock { position: relative; padding-top: 6px; }
.unlock .parcel { margin: 8px 6px 0; height: 132px; transition: height .7s cubic-bezier(.2, .8, .2, 1); }
.unlock .parcel-card { height: 118px; }
.unlock-card {
  position: relative; z-index: 3; margin-top: -34px; background: var(--white); border-radius: 22px;
  padding: 20px 18px 18px; box-shadow: 0 -6px 30px -10px rgba(0, 36, 93, .25), 0 0 0 1px var(--line);
  transition: opacity .45s ease, transform .45s ease;
}
.unlock-card h2 { font-size: 24px; margin: 2px 0 14px; }
.unlock-card .hint { text-align: left; margin: -6px 0 16px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0; }
.unlock-card.working .btn { opacity: .6; }
.unlock.revealing .unlock-card { opacity: 0; transform: translateY(30px); pointer-events: none; }
.unlock.revealing .parcel-card { filter: blur(0); opacity: 1 !important; transition: transform .8s cubic-bezier(.2, .8, .2, 1), filter .8s ease, height .8s ease; }
.recipe.arrive { animation: arrive .5s ease both; }
.recipe.arrive:nth-child(2) { animation-delay: .08s; }
.recipe.arrive:nth-child(3) { animation-delay: .16s; }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .recipe.arrive, .unlock-card, .unlock .parcel { animation: none; transition: none; } }

.phone-wrap { position: relative; }
.phone-wrap .cc-pick { position: absolute; left: 0; top: 0; height: calc(100% - 14px); padding: 0 4px 0 16px; display: flex; align-items: center; gap: 3px; font-size: 22px; font-weight: 600; color: var(--muted); cursor: pointer; }
.phone-wrap .cc-pick select { position: absolute; inset: 0; width: 100%; opacity: 0; font-size: 16px; cursor: pointer; }
.phone-wrap .big-input { padding-left: var(--cc-w, 58px) !important; }
.phone-wrap.intl .cc-pick { display: none; }
.phone-wrap.intl .big-input { padding-left: 16px !important; }
.unlock .caption { text-align: center; font-size: 16px; font-weight: 600; color: var(--navy); margin: 4px 0 2px; }
.unlock-card h2 { margin-bottom: 16px; }

.step:has(.unlock) { padding-top: 0; }
.unlock { padding-top: 0; }
.unlock .parcel { margin: 18px 0 0; }

/* Same text and padding as the share page's cards, so nothing reflows when it opens. */
.parcel-card { padding: 14px 16px; border-radius: 16px; }

/* ---------- the share page ---------- */
.live-dot { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; font-size: 13px; font-weight: 700; color: var(--ok); }
.live-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: livepulse 2s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: .35; } }
.ai-row {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 14px 16px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line); color: var(--navy); font: inherit; font-weight: 600; font-size: 16px; text-align: left; cursor: pointer;
}
.ai-row .ai-spark { color: var(--accent); font-size: 18px; }
.connected {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); z-index: 70; transform: translate(-50%, -140%);
  display: flex; align-items: center; gap: 10px; background: var(--white); color: var(--navy); font-weight: 600;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 30px -8px rgba(0, 36, 93, .35), 0 0 0 1px var(--line);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .45s; opacity: 0; white-space: nowrap;
}
.connected.show { transform: translate(-50%, 0); opacity: 1; }
.connected .tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: var(--white); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .live-dot::before { animation: none; } }

/* The items lead; who shared them is the line under. */
.share-title, .step h1.share-title { font-size: 30px; line-height: 1.15; margin: 8px 0 8px; }
.share-from { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; font-weight: 600; }
.avatar.xs { width: 26px; height: 26px; font-size: 11px; flex: none; }

.copy-row { display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 12px; padding: 12px 14px; }
.copy-row code { flex: 1; min-width: 0; font-size: 13px; white-space: nowrap; overflow-x: auto; color: var(--navy); }
.ai-steps { margin: 16px 0 12px; padding-left: 22px; display: grid; gap: 10px; font-size: 16px; }

/* ---------- inside: one list ---------- */
.from-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--panel); border-radius: 999px; padding: 3px 10px 3px 3px; margin-bottom: 8px; }
.from-tag .avatar.xs { width: 20px; height: 20px; font-size: 9px; }
.tag-link { text-decoration: none; display: inline-block; }
.share-card { display: block; text-decoration: none; color: inherit; border-left: 4px solid var(--accent); }
.share-card h3 { margin-bottom: 2px; }
.waiting { display: inline-flex; align-items: center; gap: 8px; }
.waiting::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: livepulse 1.4s ease-in-out infinite; }
.item-line { display: flex; align-items: center; padding: 12px 16px; font-weight: 600; }
.maybe, .activity { margin-top: 14px; color: var(--muted); font-size: 15px; }
.maybe summary, .activity summary { list-style: none; cursor: pointer; }
.maybe summary::-webkit-details-marker, .activity summary::-webkit-details-marker { display: none; }
.switch-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; background: var(--panel); border-radius: 16px; cursor: pointer; }
.switch-row small { display: block; color: var(--muted); font-size: 14px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch-row input:checked + .switch { background: var(--ok); }
.switch-row input:checked + .switch::after { transform: translateX(20px); }
.quiet-danger { display: block; margin: 26px auto 0; color: var(--bad); }
.share-from.flash { animation: flash 1.6s ease; border-radius: 10px; }
@keyframes flash { 0% { background: var(--ok-bg); box-shadow: 0 0 0 8px var(--ok-bg); } 100% { background: transparent; box-shadow: 0 0 0 8px transparent; } }

.field.sign > span { font-weight: 700; }
.field.ask-again input { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(67, 130, 209, .2); }
.unlock-card.ask-again input { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(67, 130, 209, .2); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tags .from-tag { margin-bottom: 0; }
.from-tag.to { background: var(--ok-bg); color: var(--ok); }
.from-tag .waiting { padding-left: 7px; }

.item-card { display: block; text-decoration: none; color: inherit; }
.item-body { white-space: pre-wrap; font-size: 17px; line-height: 1.55; margin-top: 10px; }
.item-photo { display: block; max-width: 100%; max-height: 70vh; margin-top: 12px; border-radius: 12px; }
input.ask-again { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(67, 130, 209, .2); }

.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.icon-btn:not(.small) { display: flex; }

/* ---------- design review round ---------- */
/* Snippets: two clean lines that fade out, no ellipsis mid-word. */
.snippet { display: block; -webkit-line-clamp: unset; max-height: 2.9em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.parcel-card.blank { filter: none; display: flex; flex-direction: column; gap: 10px; }
.parcel-card.blank i { display: block; height: 10px; border-radius: 5px; background: var(--line); width: 88%; }
.parcel-card.blank i:first-child { height: 14px; width: 58%; background: #c9d5e6; margin-bottom: 4px; }
.invite-line { text-align: center; color: var(--muted); font-size: 16px; margin: 26px 0 0; }
.welcome-title { font-size: 30px; line-height: 1.12; margin: 14px 0 12px; }
.welcome-sub { font-size: 17px; margin: 0 0 26px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--panel); border-radius: 16px; }
.steps b { display: block; font-size: 17px; }
.steps small { color: var(--muted); font-size: 15px; }
.step-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); }
.dock-hint { text-align: center; color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.status { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; margin-top: 4px; }
.status b { display: block; font-size: 18px; }
.status small { font-size: 15px; color: var(--muted); }
.status.opened { background: var(--ok-bg); }
.status.opened small { color: var(--ok); }
.status.waiting-card { background: var(--panel); }
.status.stopped { background: var(--bad-bg); }
.section-head { margin: 24px 0 10px; align-items: baseline; }
.rows { border: 1px solid var(--line); border-radius: 16px; }
.rows-item { display: flex; align-items: center; padding: 14px 16px; font-size: 17px; font-weight: 600; }
.rows-item + .rows-item { border-top: 1px solid var(--line); }
.danger-link { color: var(--bad); }
#meLink svg { display: block; }

.btn.small.icon-btn { display: inline-flex; align-items: center; gap: 6px; }
.icon-btn svg { flex: none; display: block; }
.status .btn.small { flex: none; }

/* ---------- round 2 ---------- */
.checklist .rows-item { gap: 14px; cursor: pointer; }
.checklist input { width: 24px; height: 24px; margin: 0; accent-color: var(--navy); flex: none; }
.checklist .off { color: var(--muted); }
.maybe-pill { font-size: 13px; font-weight: 700; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 3px 10px; }
.btn:disabled { opacity: .45; }
.eyebrow-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 8px 0 10px; }
.they-see { border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: var(--panel); }
.they-see b { display: block; font-size: 22px; margin-bottom: 6px; }
.status.column { flex-direction: column; align-items: stretch; }
.status .indent { display: block; margin-left: 18px; }
.setting small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.setting b { display: block; font-size: 17px; }
.setting b.off { color: var(--muted); font-weight: 600; }
.undo-bar { position: fixed; left: 16px; right: 16px; bottom: calc(18px + var(--safe-b)); z-index: 70; display: flex; align-items: center; gap: 12px;
  background: var(--navy); color: var(--white); padding: 14px 18px; border-radius: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,36,93,.3);
  transform: translateY(160%); transition: transform .3s ease; }
.undo-bar.show { transform: none; }
.sms.show { transform: translate(-50%, 0); }

/* ---------- round 3 ---------- */
.bar .back { width: 44px; height: 44px; margin: -6px 4px -6px -12px; border-radius: 12px; display: grid; place-items: center; color: var(--navy); }
.bar .brand { margin-right: auto; }
.connected { top: calc(72px + env(safe-area-inset-top)); }
.center-link { align-self: center; display: block; margin: 0 auto; }
.maybe-hint { margin: 12px 2px 0; font-size: 15px; }
.share-rows { margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.share-row { display: flex; align-items: center; gap: 12px; height: 72px; box-sizing: border-box; padding: 0 16px; text-decoration: none; color: inherit; }
.share-row + .share-row { border-top: 1px solid var(--line); }
.share-row b { display: block; font-size: 17px; }
.row-snip { display: block; font-size: 15px; color: var(--muted); white-space: nowrap; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
.share-row .grow { min-width: 0; }
.share-row.fresh { animation: flash 1.6s ease; }
.unlock.revealing .parcel-card { padding: 12px 16px; transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .8s ease, height .8s ease, border-radius .8s ease, padding .8s ease; }
.unlock.revealing .parcel-card .snippet { max-height: 1.45em; white-space: nowrap; }
.item-actions { display: flex; flex-direction: column; align-items: stretch; margin-top: 26px; }
.item-actions .quiet-danger { margin-top: 10px; }

/* The "connected" and "opened" pills: low on the screen, where nothing sits under them. */
.connected { top: auto; bottom: calc(28px + var(--safe-b)); transform: translate(-50%, 160%); }
.connected.show { transform: translate(-50%, 0); }

/* ---------- Add from ---------- */
.source-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--panel); color: var(--navy); font: inherit; text-align: left; cursor: pointer; }
.source-row b { display: block; font-size: 17px; }
.source-row small { color: var(--muted); font-size: 14px; }
.source-state { font-size: 14px; font-weight: 700; color: var(--accent); }
.source-line { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.source-line .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.consent h1 { font-size: 28px; line-height: 1.15; margin: 18px 0 8px; }
.consent-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.consent-list li { padding: 14px 16px; background: var(--panel); border-radius: 14px; font-weight: 600; }
.consent-list li.no { background: none; padding: 0 4px; font-weight: 400; color: var(--muted); }
a.btn { text-decoration: none; text-align: center; }

.consent-list li.toggle { background: var(--ok-bg); }
.consent-list li.toggle label { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.consent-list li.toggle input { width: 22px; height: 22px; accent-color: var(--navy); margin: 0; flex: none; }

/* ---------- requests ---------- */
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.actions .btn.small { flex: 1 1 auto; justify-content: center; }
.waiting-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; margin-bottom: 14px; border-radius: 14px; background: var(--panel); color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; }
.purpose { margin: 12px 0 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 12px 12px 0; color: var(--navy); }
.empty-ask { padding: 18px 16px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; }
.empty-ask p { margin: 0 0 12px; color: var(--muted); }
.receipt .tick { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: var(--white); font-size: 14px; flex: none; }
.receipt-body ul { margin: 6px 0; padding-left: 18px; }
.receipt-body p { margin: 6px 0; }
.fid-mini { width: 18px; height: 18px; border: 2.2px solid currentColor; border-radius: 6px; display: inline-block; }

.ask-form .field > span { font-weight: 700; color: var(--navy); }
.ask-form .big-input { margin-bottom: 4px; }

.incoming-line { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 10px; border-radius: 14px; background: #fff7e6; border: 1px solid #f3dfb3; color: var(--navy); text-decoration: none; font-size: 15px; }
.share-from .via { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--panel); border-radius: 999px; padding: 2px 8px; }

/* ---------- access ---------- */
.access-row { gap: 12px; }
.access-row a.grow { text-decoration: none; color: inherit; min-width: 0; }
.access-row b { display: block; }
.access-row small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: flex; gap: 12px; align-items: baseline; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
.history time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.h-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; position: relative; top: -1px; }
.h-dot.k-opened, .h-dot.k-viewed { background: var(--navy); } .h-dot.k-ai { background: var(--accent); } .h-dot.k-answered, .h-dot.k-shared { background: var(--ok); }
.h-dot.k-stopped, .h-dot.k-declined { background: var(--bad); } .h-dot.k-asked { background: var(--warn); }

/* ---------- notifications ---------- */
.bar .bell { position: relative; width: 40px; height: 40px; display: grid; place-items: center; color: var(--navy); margin-right: 6px; border-radius: 12px; }
.bar .bell .badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: #d92d20; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.bar .bell .badge.hidden { display: none; }
.notice { position: fixed; left: 12px; right: 12px; top: calc(70px + env(safe-area-inset-top)); z-index: 75; max-width: 536px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 13px 14px 13px 16px; border-radius: 16px; background: var(--white); color: var(--navy); font-weight: 600; font-size: 15px; cursor: pointer;
  box-shadow: 0 12px 32px -8px rgba(0,36,93,.35), 0 0 0 1px var(--line); transform: translateY(-14px); opacity: 0; pointer-events: none; transition: transform .3s ease, opacity .3s ease; }
.notice.show { transform: none; opacity: 1; pointer-events: auto; }
.notice-view { color: var(--accent); font-weight: 700; }
.notice-close { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); padding: 0 2px; cursor: pointer; }
.note-row { gap: 12px; text-decoration: none; color: inherit; font-weight: 400; font-size: 15px; align-items: baseline; }
.note-row time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.note-row .unread-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: transparent; position: relative; top: -1px; }
.note-row.unread { font-weight: 700; }
.note-row.unread .unread-dot { background: #d92d20; }
.note-answer { gap: 8px; padding-top: 0; justify-content: flex-start; padding-left: 36px; }

/* ---------- receipts and answers ---------- */
.receipt { border: 1px solid var(--line); border-radius: 16px; background: var(--white); padding: 12px 16px; }
.receipt-line { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.details-link summary { list-style: none; cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 8px; }
.details-link summary::-webkit-details-marker { display: none; }
.details-link .receipt-body { padding: 6px 0 0; font-size: 14px; }
.answer-card { border-radius: 18px; background: var(--ok-bg); padding: 16px; }
.answer-card b { display: block; font-size: 18px; }
.answer-card small { color: var(--ok); font-size: 14px; }
.answer-items { margin-top: 12px; background: var(--white); border-radius: 14px; }
.answer-item { display: flex; align-items: center; padding: 13px 14px; text-decoration: none; color: var(--navy); font-weight: 600; }
.answer-item + .answer-item { border-top: 1px solid var(--line); }

.seg3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg3 label { position: relative; display: grid; place-items: center; text-align: center; min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); font-weight: 700; font-size: 15px; cursor: pointer; }
.seg3 input { position: absolute; opacity: 0; pointer-events: none; }
.seg3 label:has(input:checked) { border-color: var(--navy); background: #eef3fb; }
.until-line { margin: 8px 2px 0; }

/* ---------- round 5: actions bar, who line, purpose, history days ---------- */
.actbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 10px 16px calc(12px + var(--safe-b)); }
.actbar-in { max-width: 528px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.act { height: 56px; border: 0; border-radius: 14px; background: var(--panel); color: var(--navy); font: inherit; font-size: 13px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; cursor: pointer; }
.act.primary { background: var(--navy); color: var(--white); }
.who-line { display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 12px; border-radius: 14px; background: var(--panel); color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 600; }
.purpose { margin: 10px 0 0; padding: 0; border: 0; background: none; color: var(--muted); font-size: 16px; }
.day-label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 2px; }
.ended-row { text-decoration: none; color: inherit; }

/* ---------- notifications offer and the Home Screen steps ---------- */
.offer { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0 0; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--panel); color: var(--navy); }
.offer-icon { flex: none; color: var(--accent); margin-top: 1px; }
.offer b { display: block; font-size: 15px; }
.offer small { display: block; color: var(--muted); font-size: 14px; margin: 2px 0 4px; }
.offer .link { padding: 0; font-weight: 700; }
.offer-close { flex: none; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; padding: 0 4px; cursor: pointer; }
.how { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.how-step { display: flex; gap: 12px; align-items: flex-start; }
.how-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.how-step b { display: block; font-size: 15px; margin: 2px 0 8px; }
.how-step img { display: block; width: 100%; max-width: 300px; border-radius: 12px; border: 1px solid var(--line); }

/* ---------- round 6 ---------- */
/* D: a notice takes the bar's place for a moment; the page below, title included, stays as it was. */
.notice { top: env(safe-area-inset-top); left: 0; right: 0; max-width: 560px; border-radius: 0; padding-top: 0; padding-bottom: 0; box-shadow: 0 1px 0 var(--line); transform: translateY(-8px); }
/* N: the invitation is about what's inside. */
body.gift #bellLink, body.gift #meLink { visibility: hidden; }
/* B: a new account starts with where stuff comes from. */
.empty-start { margin-top: 4px; }
.empty-start > p { margin: 0 0 14px; }
/* F: something shared with you that ended leaves a line. */
.ended-line { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 10px; border-radius: 14px; background: var(--panel); color: var(--navy); }
.ended-line b { display: block; font-size: 16px; }
.ended-line small { color: var(--muted); font-size: 14px; }
.ended-line .btn.small { flex: none; }
/* C: someone asks for a share through its link. */
.ask-card { border-radius: 18px; background: #fff7e6; border: 1px solid #f3dfb3; padding: 16px; margin: 4px 0 12px; }
.ask-card b { display: block; font-size: 17px; }
.ask-card small { color: var(--muted); font-size: 14px; }
.ask-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ask-actions .btn { text-align: center; text-decoration: none; }
/* A: the consent page says what the agent can really do. */
.consent-list li b { display: block; }
.consent-list li small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }
.consent-list li.toggle label { align-items: flex-start; }
.consent-list li.toggle input { margin-top: 3px; }

/* ---------- who can see an item: initials on the card ---------- */
.card-top { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.card-top .source-line { flex: 1; }
.seen-by { display: inline-flex; flex-direction: row; margin-left: auto; padding-left: 6px; }
.avatar.xxs { width: 22px; height: 22px; font-size: 10px; border: 2px solid var(--white); margin-left: -6px; }
.avatar.xxs:first-child { margin-left: 0; }
.avatar.link-mark { background: var(--panel); color: var(--accent); }
.avatar.xxs.more { background: var(--panel); color: var(--navy); }
.stop-item { display: block; margin-top: 4px; font-size: 14px; padding: 0; }
a.rows-item, .access-row .grow > a { color: inherit; text-decoration: none; }
.agent-when { display: block; margin-top: 4px; color: var(--muted); }
/* ---------- people: connections and the timeline between two people ---------- */
.people { margin-top: 14px; }
.person-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.person-row b { display: block; font-size: 17px; }
.person-row small { display: block; color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-row small.ok { color: var(--ok); font-weight: 600; }
.person-row.unread b { font-weight: 800; }
.person-row.ended { opacity: .6; }
.person-row .when { color: var(--gray); font-size: 13px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.person-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: block; }
.calling-link { text-decoration: none; }
.calling-bar { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; padding: 14px 16px; border-radius: 16px; background: var(--ok); color: var(--white); font-size: 17px; }
.calling-bar .pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--white); animation: pulse 1.2s ease-in-out infinite; flex: none; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
.calling-note { margin: 0 0 8px; font-size: 14px; }
.connect-pair { display: flex; justify-content: center; margin: 18px 0 14px; }
.connect-pair .avatar + .avatar { margin-left: -10px; box-shadow: 0 0 0 3px var(--white); }
.person-head { display: flex; align-items: center; gap: 12px; }
.person-head b { display: block; font-size: 22px; }
.person-head small { display: block; color: var(--muted); font-size: 15px; }
.icon-plain { border: 0; background: none; color: var(--muted); padding: 8px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.chip { border: 1.5px solid var(--line); background: var(--white); color: var(--navy); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; }
.timeline { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; padding-bottom: 8px; }
.timeline .day-label { align-self: center; }
.tl-line { align-self: center; text-align: center; color: var(--muted); text-decoration: none; font-size: 15px; }
.tl-line b { display: block; color: var(--navy); font-weight: 600; }
.tl-line small { display: block; font-size: 13px; }
.msg { display: flex; flex-direction: column; max-width: 86%; min-width: 0; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.them { align-self: flex-start; }
.msg-body { padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: break-word; font-size: 16px; max-width: 100%; }
.msg.mine .msg-body { background: var(--navy); color: var(--white); border-bottom-right-radius: 6px; }
.msg.them .msg-body { background: var(--panel); border-bottom-left-radius: 6px; }
.msg .meta, .code-card .meta { color: var(--gray); font-size: 12px; margin-top: 4px; }
.att { margin-top: 8px; background: rgba(255, 255, 255, .12); border-radius: 10px; font-size: 14px; }
.msg.them .att { background: var(--white); }
.att summary { padding: 8px 10px; font-weight: 700; cursor: pointer; }
.att ul { margin: 0; padding: 0 12px 8px 26px; }
.code-card, .verify-card, .sched-card { align-self: stretch; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; background: var(--white); }
.code-card .tl-text { margin: 0 0 10px; }
.code-card .label { display: block; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.code { font-size: 32px; font-weight: 800; letter-spacing: .08em; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.code.small { font-size: 18px; margin: 6px 0 0; }
.tl-result { align-self: center; text-align: center; padding: 10px 16px; border-radius: 14px; background: var(--panel); font-weight: 700; }
.tl-result small { display: block; font-weight: 400; color: var(--muted); }
.tl-result.ok { background: var(--ok-bg); color: var(--ok); }
.tl-result.bad { background: var(--bad-bg); color: var(--bad); }
.tl-result.bad small { color: var(--bad); }
.verify-card .asker { display: flex; align-items: center; gap: 12px; }
.verify-card .asker b { display: block; font-size: 17px; }
.verify-card .asker small { color: var(--muted); font-size: 14px; }
.verify-card .stmt-big { margin: 14px 0 16px; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.verify-card .btn svg, .sheet .btn svg { vertical-align: -4px; margin-right: 8px; }
.tl-result .stmt { display: block; font-weight: 400; margin-top: 4px; overflow-wrap: anywhere; }
.tl-result .stmt::before { content: '“'; } .tl-result .stmt::after { content: '”'; }
.tl-result q.stmt { quotes: none; }
.seg.two label { text-align: center; }
label.check { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-top: 10px; }
label.check input { width: 20px; height: 20px; }
.doc-card { display: flex; align-items: center; gap: 12px; max-width: 86%; padding: 12px 14px; border-radius: 16px; background: var(--panel); color: var(--navy); text-decoration: none; }
.doc-card.mine { align-self: flex-end; }
.doc-card b { display: block; overflow-wrap: anywhere; }
.doc-card small { display: block; color: var(--muted); font-size: 13px; }
.sched-card > small { display: block; color: var(--muted); font-size: 13px; }
.sched-card > b { display: block; font-size: 17px; margin: 2px 0 10px; }
.sched-card.done { background: var(--ok-bg); border-color: transparent; }
.sched-card.done > b { font-size: 20px; margin: 4px 0 6px; }
.slot { display: block; width: 100%; text-align: left; margin-top: 8px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); font: inherit; font-weight: 700; color: var(--navy); cursor: pointer; }
.slot-line { padding: 6px 0; font-weight: 600; }
.composer .btn { flex: none; }
.composer { position: sticky; bottom: calc(8px + var(--safe-b)); display: flex; gap: 8px; align-items: flex-end; margin-top: 16px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 6px 20px -12px rgba(0, 36, 93, .4); }
.composer textarea { flex: 1; min-width: 0; height: 40px; min-height: 40px; max-height: 160px; margin: 0; border: 0; box-shadow: none; resize: none; font: inherit; font-size: 17px; line-height: 1.35; padding: 8px 10px; background: transparent; color: var(--navy); outline: none; }
.composer-hint { margin-top: 6px; }
.field-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
#tf input[type=datetime-local], #tf select { width: 100%; margin-bottom: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.switch-row.static { cursor: default; }
.tl-line a { color: inherit; text-decoration: none; }
.tl-line.quiet small { color: var(--gray); }

/* ---------- the two places ---------- */
.stuff-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.stuff-head h1 { margin: 0; white-space: nowrap; }
.stuff-head .row { gap: 6px; flex-wrap: nowrap; }
.stuff-head .icon-btn { padding-left: 11px; padding-right: 11px; }
.places { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 6px 16px calc(8px + var(--safe-b)); }
.places-in { max-width: 528px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.place { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--gray); text-decoration: none; font-size: 12px; font-weight: 700; }
.place.on { color: var(--navy); }
.place .dot { position: absolute; top: 4px; left: calc(50% + 10px); width: 9px; height: 9px; border-radius: 50%; background: var(--bad); }
.org-chip { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--panel-2); color: var(--muted); font-size: 12px; font-weight: 700; vertical-align: 2px; }
.org-chip.light { background: rgba(255, 255, 255, .22); color: var(--white); margin-left: 0; }
.calling-bar small { display: block; font-size: 13px; opacity: .9; }
.org-line { margin: -4px 0 8px; color: var(--muted); font-weight: 700; }
.doc-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 86%; }
.doc-row.mine { align-self: flex-end; align-items: flex-end; }
.doc-row .doc-card { max-width: 100%; }

/* Act for me: a time-limited permission on a person's or an organisation's page. */
.permit-card { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--panel); display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.permit-card .permit-who { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 6px; }
.permit-card .permit-who small { display: block; color: var(--ok); font-weight: 600; }
.permit-card > small { color: var(--muted); }
.permit-card .btn { margin-top: 8px; }
.tl-line.record b { font-weight: 600; }

/* AllClear's pages for other apps: sign in, Act for me, an organisation's websites. */
.app-form .field small { margin: 0 0 6px; }
.app-form input, .app-form textarea { width: 100%; }
.app-form textarea { min-height: 64px; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 14px; word-break: break-all; }
.secret-box { margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: var(--warn-bg); display: flex; flex-direction: column; gap: 6px; }
.secret-box code { font-size: 14px; word-break: break-all; }
.app-head { display: flex; justify-content: center; margin: 18px 0 14px; }
.avatar.org { border-radius: 16px; }
.grow-space { height: 28px; }
.pick-list { display: flex; flex-direction: column; gap: 6px; }
.pick-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; font-size: 17px; }
.pick-row input { accent-color: var(--navy); width: 18px; height: 18px; margin: 0; }
.pick-row:has(input:checked) { border-color: var(--navy); background: var(--panel-2); }


/* Waiting for a passkey, a system sheet or the server: one look everywhere (public/wait.js). */
.is-waiting { cursor: default; }
.btn.is-waiting:disabled { opacity: 1; }
.wait-spin { display: inline-block; box-sizing: border-box; width: 16px; height: 16px; margin-right: 8px; vertical-align: -2px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: waitspin .8s linear infinite; }
.icon-btn .wait-spin, .btn.cta .wait-spin { margin-right: 0; }
@keyframes waitspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wait-spin { animation-duration: 2.4s; } }
.wait-slow { margin: 8px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.rows-item .link.is-waiting { white-space: nowrap; flex: none; }
.rows-item .wait-slow { margin: 4px 0 0; text-align: left; }
.confirmed { display: flex; align-items: center; gap: 8px; margin: 4px 0 18px; font-weight: 600; color: var(--navy); }
.confirmed-check { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ok); color: var(--white); flex: none; }
.center-link[hidden] { display: none; }

/* ---------- an agent spending ---------- */
.avatar.agent { background: #3b5b86; color: #fff; }
.spend-who { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.spend-who b { display: block; font-size: 18px; }
.spend-who small { display: block; color: var(--muted); font-size: 14px; }
.spend-who .agent-name { font-size: 20px; }
.spend-title { margin: 24px 0 14px; font-size: 30px; line-height: 1.15; overflow-wrap: anywhere; }
.facts { border-radius: 18px; background: var(--panel); padding: 6px 16px; margin-bottom: 14px; }
.fact { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 16px; }
.fact + .fact { border-top: 1px solid var(--line); }
.fact span { color: var(--muted); overflow-wrap: anywhere; }
.fact b { text-align: right; overflow-wrap: anywhere; }
.spend-actions { margin-top: 22px; }
.btn.cta svg { flex: none; }
.spend-done { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 40px; gap: 6px; }
.spend-done h1 { margin: 14px 0 0; font-size: 26px; }
.spend-done h1.ok { color: var(--ok); }
.spend-done h1.bad { color: var(--bad); }
.spend-done p { margin: 0; overflow-wrap: anywhere; }
.rule-form { margin-top: 18px; }
.rule-form .field-label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.rule-form input[type=text] { width: 100%; height: 52px; border: 1.5px solid var(--navy); border-radius: 14px; padding: 0 14px; font: inherit; font-size: 17px; color: var(--navy); }
.agent-rule { display: block; font-size: 14px; font-weight: 400; color: var(--accent); margin-top: 2px; overflow-wrap: anywhere; }
.notice b { display: block; font-size: 15px; }
.notice small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }

/* Your pages: rows that open a source, and a page's footnotes */
button.rows-item { width: 100%; background: none; border: 0; font: inherit; font-size: 17px; font-weight: 600; color: inherit; text-align: left; cursor: pointer; }
.page-body { font-size: 17px; line-height: 1.5; }
.page-body ul { padding-left: 22px; margin: 8px 0; }
.page-body sup { line-height: 1; }
.page-body .fn { font-size: 13px; font-weight: 700; padding: 0 2px; min-height: 0; line-height: 1; vertical-align: baseline; }
.page-body .held { background: var(--held-bg, rgba(255, 196, 0, 0.14)); border-radius: 6px; padding: 2px 6px; }
.page-body .held-note { display: block; margin-top: 4px; font-size: 13px; color: var(--muted, inherit); }
.page-body .held-note .btn { margin-left: 6px; }
.page-body .disputed-mark { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--muted, inherit); border: 1px solid currentColor; vertical-align: 1px; }

/* Threads: the list on a person's page, one thread, a new thread, and the step-up draft. */
.threads { border-top: 1px solid var(--line); }
.thread-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 2px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.thread-row b { display: block; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.thread-row small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.thread-row.unread small { color: var(--navy); font-weight: 600; }
.thread-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; max-width: 46%; }
.thread-side .when { display: inline-flex; align-items: center; gap: 6px; color: var(--gray); font-size: 13px; }
.thread-side .pill { white-space: normal; text-align: right; }
.pill.you { background: var(--accent); color: var(--white); }
.threads-empty { margin: 22px 0; }
.bottom-cta { margin-top: 22px; }
.bottom-cta .btn { width: 100%; }
.thread-title { margin: 4px 0 6px; overflow-wrap: anywhere; }
.thread-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.thread-meta small { color: var(--muted); font-size: 14px; }
.thread-ask { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--navy); border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.thread-ask svg { flex: none; margin-top: 2px; }
.thread-ask small { display: block; color: var(--muted); font-size: 13px; }
.thread-ask b { display: block; font-size: 17px; overflow-wrap: anywhere; }
.thread-ask .ask-what, .thread-ask .slot-line { display: block; font-size: 15px; overflow-wrap: anywhere; }
.answer-line { padding: 8px 14px; border-radius: 14px; background: var(--ok-bg); margin-bottom: 4px; }
.answer-line b { display: block; }
.answer-line small { color: var(--ok); font-size: 13px; }
.msg .meta.signed { color: var(--ok); font-weight: 600; }
.msg .doc-card { max-width: 100%; margin-top: 6px; }
.answer-area { margin: 18px 0 8px; }
.seg3.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slot-choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; font-weight: 600; cursor: pointer; }
.slot-choice:has(input:checked) { border-color: var(--navy); background: #eef3fb; }
.prompt-box { white-space: pre-wrap; font-size: 15px; background: var(--panel); border-radius: 12px; padding: 12px 14px; margin: 12px 0 16px; }
.draft-subject { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.draft-text { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--panel); border-radius: 14px; padding: 12px 14px; margin: 0; }
.field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--navy); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical; }

/* ---------- pages, sources, agents and you (the four places) ---------- */
.tab-title { margin: 10px 0 6px; }
.lead { margin: 0 0 16px; }
.block { display: block; }
.page-list { border-top: 1px solid var(--line); }
.page-row { display: flex; align-items: center; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.page-row b { display: block; font-size: 17px; }
.page-row small { display: block; color: var(--muted); font-size: 14px; }
.page-row .tile { width: 38px; height: 38px; border-radius: 10px; background: var(--panel); color: var(--accent); display: grid; place-items: center; flex: none; }
.page-row .avatar { flex: none; }
.chev { color: var(--gray); font-size: 22px; line-height: 1; }
.stale-line { color: var(--warn) !important; font-weight: 600; }
.stale-line::before, .dot-warn { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e08a00; margin-right: 6px; vertical-align: 1px; }
.ok-line { color: var(--ok) !important; font-weight: 600; }
.warn-line { color: var(--warn) !important; font-weight: 600; }
.icon-link { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 4px; font-size: 17px; }
.help-card { margin: 14px 0 6px; }
.help-card .hint, .hint { margin: 8px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.req-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--accent); border-radius: 14px; }
.req-card b { display: block; }
.req-card small { display: block; color: var(--muted); font-size: 14px; }
.req-card .btn { flex: none; }
.activity-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.activity-row small { display: block; color: var(--muted); font-size: 13px; }
.activity-row .avatar { margin-top: 2px; }
.page-meta { margin: 0 0 14px; }
.callout { border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }
.callout.warn { background: var(--warn-bg); color: var(--warn); }
.callout b { display: block; }
.callout small { display: block; font-size: 14px; margin-top: 2px; }
.page-body [data-at] { border-radius: 6px; transition: background .2s; }
.page-body .fn-on { background: #fff1c2; box-shadow: 0 0 0 4px #fff1c2; }
.page-body .fn { color: var(--accent); }
.page-link { color: #2f6db8; font-weight: 700; text-decoration: underline; text-decoration-color: #b8cbe4; text-underline-offset: 3px; }
.page-link:hover { color: #00245d; }
.linked-from { margin-bottom: 8px; }
.fn-still { font-size: 12px; font-weight: 700; color: var(--muted); }
.two-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.two-btns .btn { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; font-size: 16px; }
.quote-line { margin: 0 0 12px; }
.src-card { background: var(--panel); border-radius: 14px; padding: 12px 14px; text-align: left; }
.src-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 15px; }
.src-card-top small { color: var(--muted); font-size: 13px; white-space: nowrap; }
.src-card .num { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 6px; background: var(--white); font-size: 12px; font-weight: 700; color: var(--accent); }
.src-card .quote { margin: 6px 0 0; font-size: 15px; }
.src-card .mark { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.src-card .mark.ok { color: var(--ok); }
.src-kind { color: var(--muted); display: inline-flex; flex: none; }
.versions { border-top: 1px solid var(--line); }
.ver-row { display: flex; gap: 14px; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.ver-row .ver { width: 30px; flex: none; color: var(--muted); font-weight: 700; font-size: 14px; padding-top: 2px; }
.ver-row b { display: block; }
.ver-row small { display: block; color: var(--muted); font-size: 14px; }
.diff { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--panel); font-size: 14px; }
.diff del { display: block; color: var(--bad); }
.diff ins { display: block; color: var(--ok); text-decoration: none; font-weight: 600; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.fchip { border: 0; border-radius: 999px; padding: 5px 12px; background: var(--panel-2); color: var(--navy); font-size: 14px; font-weight: 700; cursor: pointer; }
.fchip.warn { background: var(--warn-bg); color: var(--warn); }
.fchip[aria-pressed="true"] { background: var(--accent); color: var(--white); }
.src-list { border-top: 1px solid var(--line); }
.src-list.list > * + * { margin-top: 0; }
.src-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; text-align: left; text-decoration: none; cursor: pointer; font-size: 17px; }
.src-row b { display: block; }
.src-row small { display: block; color: var(--muted); font-size: 14px; }
.src-row .on-pages { color: var(--accent); font-weight: 600; }
.src-row .src-kind { padding-top: 3px; }
.src-row .from-tag { margin-top: 2px; }
/* A file with its description: the description nested under the file, one row together. */
.src-group { border-bottom: 1px solid var(--line); }
.src-group > .src-row { border-bottom: 0; padding-bottom: 6px; }
.src-desc { display: block; margin: 0 0 12px 34px; width: calc(100% - 34px); padding: 8px 10px 8px 12px; border: 0; border-left: 3px solid var(--line); border-radius: 0 8px 8px 0; background: var(--panel); color: inherit; text-align: left; cursor: pointer; font: inherit; }
.src-desc small { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }
.you-head { display: flex; align-items: center; gap: 14px; margin: 10px 0 4px; }
.you-head b { display: block; font-size: 22px; }
.you-head small { display: block; color: var(--muted); font-size: 14px; }
.nav-list { border-top: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; text-align: left; text-decoration: none; cursor: pointer; font-size: 17px; }
.nav-row b { display: block; }
.nav-row small { display: block; color: var(--muted); font-size: 14px; }
.nav-icon { color: var(--accent); display: inline-flex; flex: none; width: 24px; justify-content: center; }
.agent-head { margin-bottom: 4px; }
.agent-row small { line-height: 1.35; }
.change-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; }
.change-card b svg { vertical-align: -2px; color: var(--accent); }
.change-card p { margin: 6px 0 0; }
.change-card .two-btns { margin-top: 12px; }
.change-card .tiny { margin-top: 8px; }
/* Locked threads: the step-up page, "only for your eyes" and the app's opening screen. */
.lock-open, .locked-gate { text-align: center; margin-top: 24px; }
.lock-badge { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--panel); margin-bottom: 14px; }
.eyes-only { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 16px; }
.eyes-only small { color: inherit; }
.lock-msg { display: flex; flex-direction: column; gap: 6px; }
.lock-line { display: inline-flex; align-items: center; gap: 4px; }
.lock-line svg { flex: none; }
.lock-choices .slot-choice span { display: flex; flex-direction: column; gap: 2px; }
.lock-choices .slot-choice small { font-weight: 400; color: var(--muted); }

/* Pull to refresh, on the Home Screen only. */
html.standalone, html.standalone body { overscroll-behavior-y: contain; }
.ptr { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 6px); left: 50%; z-index: 35; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 10px rgba(0, 36, 93, .18); display: grid; place-items: center; opacity: 0; transform: translateY(calc(var(--pull, 0px) - 44px)); transition: opacity .15s; pointer-events: none; }
.ptr.on, .ptr.spinning { opacity: 1; }
.ptr.spinning { transform: translateY(26px); transition: transform .2s; }
.ptr-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--navy); transform: rotate(var(--turn, 0deg)); }
.ptr.ready .ptr-spin { border-color: var(--navy); border-top-color: var(--line); }
.ptr.spinning .ptr-spin { animation: waitspin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .ptr.spinning .ptr-spin { animation-duration: 2.4s; } }
.page-meta { line-height: 1.6; }
.page-meta a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.page-meta .link.inline { font-size: inherit; padding: 0; vertical-align: baseline; }
.okf { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--panel); font: 13px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--navy); }
button.src-card { display: block; width: 100%; border: 0; font: inherit; color: inherit; cursor: pointer; }
.src-card-top, .src-card .quote, .src-card .mark, .diff { display: block; }
.src-card-top { display: flex; }
.src-card .mark { display: flex; }

/* A shared page: the link anyone opens (/p/), the recipient's view in the app, and the owner's Sharing. */
.ps-page { max-width: 720px; margin: 0 auto; padding: 16px 16px 40px; }
.ps-bar { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; }
.ps-bar .brand img { height: 22px; }
.ps-body .changed { background: #fff3c4; border-radius: 6px; padding: 2px 6px; margin-left: -6px; margin-right: -6px; }
.ps-locked { display: inline-flex; align-items: center; gap: 6px; color: var(--muted, #4c6e97); font-size: 15px; }
.ps-locked::before { content: ""; width: 10px; height: 12px; border: 2px solid currentColor; border-radius: 2px; box-sizing: border-box; }
.ps-updated { margin: 12px 0 16px; }
.ps-updated small { display: block; }
.ps-sources { border-top: 1px solid #e3e9f1; margin-top: 22px; padding-top: 8px; font-size: 14px; }
.ps-sources ol { margin: 6px 0 0; padding-left: 22px; }
.ps-gone { text-align: center; padding-top: 18vh; }
.print-foot { display: none; }
.share-row { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid #e3e9f1; }
.share-row .grow small { display: block; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid #e3e9f1; border-radius: 12px; padding: 12px; margin: 8px 0; cursor: pointer; }
.choice:has(input:checked) { border-color: currentColor; background: #eef3fb; }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0 12px; }
.seg3 button.on { border-color: currentColor; background: #eef3fb; }
@media print {
  .ps-bar button, .ps-foot, .places, .bar { display: none !important; }
  .ps-body .changed { background: none; }
  .print-foot { display: block; margin-top: 28px; padding-top: 8px; border-top: 1px solid #999; font-size: 11px; color: #333; }
}
.icon-only { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; background: none; color: var(--navy); cursor: pointer; flex: none; }
.url-box { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; color: var(--navy); background: var(--panel); margin: 6px 0 10px; }
.share-row .tile { flex: none; }
.share-row a.grow { color: inherit; text-decoration: none; min-width: 0; }
.choice .grow b, .choice .grow small { display: block; }
.choice input { margin-top: 3px; flex: none; }
.gate-mark { display: block; color: var(--muted); font-size: 13px; }
.choice[hidden], .stack[hidden] { display: none; }

/* Pages: the search box on top, Home drawn by its blocks, What's new, A to Z. */
.search { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.search-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; pointer-events: none; }
.search input { flex: 1; min-width: 0; height: 44px; border: 1.5px solid transparent; border-radius: 12px; background: var(--panel); padding: 0 12px 0 42px; font-size: 17px; color: var(--navy); outline: none; -webkit-appearance: none; appearance: none; }
.search input:focus { border-color: var(--navy); background: var(--white); }
.search input::-webkit-search-cancel-button { display: none; }
.sr-list { display: flex; flex-direction: column; }
.sr-row { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; font-size: 16px; }
.sr-row small { display: block; color: var(--accent); font-weight: 700; font-size: 13px; }
.sr-row mark { background: #fff1c2; color: inherit; border-radius: 3px; padding: 0 1px; }
.ask-card { background: var(--panel); border-radius: 14px; padding: 14px; }
.ask-card b { display: block; }
.ask-card small { display: block; color: var(--muted); font-size: 14px; margin: 2px 0 12px; }
.home-head { margin-top: 2px; }
.home-head .tab-title { margin: 4px 0 0; }
.home-meta { margin: 0 0 10px; }
.home-stale { display: flex; align-items: center; gap: 12px; }
.home-stale .btn { width: auto; flex: none; }
.home-body h2, .home-body h3, .home-body h4 { font-size: 18px; margin: 16px 0 8px; }
.home-body > :first-child { margin-top: 4px; }
.dated { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 6px; }
.dated-item { display: flex; align-items: flex-start; gap: 12px; padding: 2px 0; }
.date-badge { flex: none; width: 40px; padding: 4px 0 3px; border-radius: 8px; background: var(--panel); text-align: center; line-height: 1.05; }
.date-badge small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.date-badge b { display: block; font-size: 18px; }
.dated-item .grow { padding-top: 2px; }
.link-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 10px 6px; margin: 4px 0 6px; }
.face-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; color: inherit; text-decoration: none; min-width: 0; }
.face-chip .chip-face { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px; overflow: hidden; }
.face-chip .chip-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.face-chip .chip-name { font-size: 14px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 6px; }
.link-tile { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; min-width: 0; }
.link-tile .tile-icon { color: var(--accent); display: grid; padding-top: 2px; flex: none; }
.link-tile b { display: block; font-size: 16px; line-height: 1.25; }
.link-tile small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.link-tile .fn-still { font-size: 10px; font-weight: 700; color: var(--accent); }
.whatsnew { background: var(--panel); border-radius: 14px; padding: 10px 12px; margin: 18px 0 6px; }
.whatsnew.all { background: none; padding: 0; }
.wn-head { display: flex; align-items: baseline; gap: 8px; font-size: 15px; color: var(--muted); padding-bottom: 4px; }
.wn-head b { color: var(--navy); }
.wn-head a { font-weight: 700; text-decoration: none; font-size: 15px; }
.wn-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; }
.wn-row small { color: var(--muted); font-size: 13px; flex: none; }
.wn-ico { width: 26px; height: 26px; display: grid; place-items: center; color: var(--accent); flex: none; }
.wn-none { margin: 4px 0; }
.az-row { display: flex; align-items: center; gap: 12px; padding: 14px 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; margin-top: 10px; }
.az-row .az-ico { color: var(--accent); display: grid; }
.az-row b { font-size: 17px; }
.pic-thumb { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.pic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pic-pick { aspect-ratio: 1; border: 2px solid transparent; border-radius: 12px; padding: 0; overflow: hidden; background: var(--panel); cursor: pointer; }
.pic-pick.on { border-color: var(--navy); }
.pic-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.date-badge.range { width: auto; min-width: 40px; padding-left: 6px; padding-right: 6px; }
.empty-pages { border: 1.5px dashed var(--line); border-radius: 12px; padding: 16px; color: var(--muted); font-size: 16px; text-align: center; }
.build-card { margin-top: 28px; }

/* One screen per party: sentences in May, Asks you first and Never, each with how it is checked and who set it. */
.party-head { margin-top: 18px; }
.party-lines { border-top: 1px solid var(--line); }
.party-line { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.party-line .grow { display: block; font-size: 16px; }
.party-how { display: inline; margin-left: 6px; color: var(--muted, #6b7a90); font-size: 12px; white-space: nowrap; }
.party-how .badge { display: inline-block; padding: 1px 7px; border-radius: 999px; font-weight: 700; font-size: 11px; margin-right: 4px; }
.party-how .badge.exact { background: #e7f0fb; color: #00245d; }
.party-how .badge.ai { background: #fff1c2; color: #6b4e00; }
.party-card { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 2px 0; padding: 10px 12px; border-radius: 12px; background: #f2f6fb; }
.party-card small { color: var(--muted, #6b7a90); font-size: 13px; }
.party-card b { font-size: 16px; }
.look-row { gap: 8px; }
.look-row .look-set { font-weight: 700; font-size: 14px; }
