:root {
  --bg: #fbf9f6; --surface: #ffffff; --surface-2: #f4f1ec; --line: #e3ded6;
  --ink: #1e2430; --ink-2: #5a6472; --ink-3: #8b94a1;
  --accent: #1f3a5f; --accent-ink: #ffffff; --accent-soft: #eaf0f7;
  --warm: #9a5f2e; --good: #2e6b4f; --bad: #9b3232;
  --radius: 12px; --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(20,28,40,.06), 0 6px 20px rgba(20,28,40,.06);
  --maxw: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14181f; --surface: #1b212b; --surface-2: #232b37; --line: #303a48;
    --ink: #eef2f7; --ink-2: #b3bdcb; --ink-3: #7d8899;
    --accent: #8fb4de; --accent-ink: #0f1621; --accent-soft: #223143;
    --warm: #d9a066; --good: #79c9a3; --bad: #e08a8a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --bg: #14181f; --surface: #1b212b; --surface-2: #232b37; --line: #303a48;
  --ink: #eef2f7; --ink-2: #b3bdcb; --ink-3: #7d8899;
  --accent: #8fb4de; --accent-ink: #0f1621; --accent-soft: #223143;
  --warm: #d9a066; --good: #79c9a3; --bad: #e08a8a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.55 ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.22; margin: 0 0 .4em; letter-spacing: -.011em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.32rem; } h3 { font-size: 1.06rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.tiny { font-size: .8rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 640;
  text-decoration: none; color: var(--ink); letter-spacing: -.01em; }
.brand .crest { width: 28px; height: 28px; border-radius: 8px; background: var(--accent);
  color: var(--accent-ink); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.topnav { display: flex; gap: 2px; margin-left: 6px; flex: 1; overflow-x: auto; }
.topnav a { padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-2);
  font-size: .92rem; white-space: nowrap; }
.topnav a:hover { background: var(--surface-2); color: var(--ink); }
.topnav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 560; }
.topbar .spacer { flex: 1; }

.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: .76rem; font-weight: 650; color: #fff; flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.2rem; }
.avatar.sm { width: 24px; height: 24px; font-size: .66rem; }

/* ---------- buttons & fields ---------- */
.btn { font: inherit; font-size: .92rem; padding: 8px 14px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.sm { padding: 5px 10px; font-size: .84rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

label.field { display: block; margin: 0 0 14px; }
label.field > span { display: block; font-size: .85rem; font-weight: 560; color: var(--ink-2); margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  font: inherit; width: 100%; padding: 9px 11px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 80px; resize: vertical; }
.hint { font-size: .8rem; color: var(--ink-3); margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 14px; }
.card h2 { margin-bottom: .15em; }

.cardgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); }
.pagecard { display: block; text-decoration: none; color: inherit; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease; }
.pagecard:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,28,40,.08), 0 12px 28px rgba(20,28,40,.10); }
.pagecard .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; margin-bottom: 10px; }
.pagecard h3 { margin-bottom: .2em; }
.pagecard.planned { opacity: .62; pointer-events: none; box-shadow: none; border-style: dashed; }
.pagecard .badge { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); font-weight: 650; }

/* ---------- attention strip ---------- */
.attention { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--warm);
  border-radius: var(--radius); padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.attention + .attention { margin-top: 8px; }
.attention .a-body { flex: 1; }
.attention h4 { margin: 0 0 2px; font-size: .95rem; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { font: inherit; font-size: .93rem; background: none; border: none; cursor: pointer;
  padding: 9px 13px; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 580; }
.tabs a { padding: 9px 13px; color: var(--ink-2); text-decoration: none; font-size: .93rem;
  border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 580; }

/* ---------- lists & tables ---------- */
.list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--surface); }
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .t { font-weight: 560; }
.chip { display: inline-block; font-size: .74rem; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.chip.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip.good { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); border-color: transparent; }

.checkline { display: flex; gap: 11px; align-items: flex-start; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.checkline + .checkline { margin-top: 8px; }
.checkline input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: var(--accent); }
.checkline.on { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- splash ---------- */
.splash { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.splash-box { width: 100%; max-width: 380px; text-align: center; }
.splash .crest-lg { width: 62px; height: 62px; border-radius: 18px; background: var(--accent);
  color: var(--accent-ink); display: grid; place-items: center; margin: 0 auto 18px;
  font-weight: 700; font-size: 1.4rem; }
.splash h1 { font-size: 1.5rem; }
.btn.google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px; font-size: .97rem; font-weight: 560; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: .8rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- misc ---------- */
.banner { background: var(--warm); color: #fff; text-align: center; padding: 6px 14px; font-size: .84rem; }
.banner a { color: #fff; text-decoration: underline; }
.page-head { display: flex; align-items: flex-start; gap: 14px; margin: 22px 0 18px; flex-wrap: wrap; }
.page-head .grow { flex: 1; min-width: 200px; }
main { padding-bottom: 60px; }
.empty { text-align: center; padding: 34px 18px; color: var(--ink-2); }

#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 90;
  display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 999px;
  font-size: .88rem; box-shadow: var(--shadow); animation: rise .2s ease; }
.toast.bad { background: var(--bad); color: #fff; }
.toast.out { opacity: 0; transition: opacity .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.modal-wrap { position: fixed; inset: 0; background: rgba(15,20,28,.45); z-index: 80;
  display: grid; place-items: center; padding: 20px; }
.modal { background: var(--surface); border-radius: var(--radius-lg); padding: 22px;
  max-width: 460px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

.err { color: var(--bad); font-size: .87rem; margin-top: 8px; min-height: 1.2em; }

/* Outbound gift links: obviously a link, and obviously going somewhere else. */
.giftlink { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; }
.giftlink:hover { border-bottom-color: currentColor; }
.giftlink .linkmark { font-size: .78em; margin-left: 3px; opacity: .65; }

/* ---------- Covered Dish ---------- */
.chip.warn { background: color-mix(in srgb, var(--warm) 16%, transparent); color: var(--warm); border-color: transparent; }
.linkbtn { font: inherit; background: none; border: none; padding: 2px 4px; color: var(--accent); cursor: pointer; }
.dish .linkbtn.small { font-size: .8rem; color: var(--ink-3); white-space: nowrap; }
.dish .linkbtn.small.has { color: var(--accent); }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.fresh { font-weight: 650; }
.linkbtn.fresh::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warm); margin-left: 5px; vertical-align: middle; }
.newdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warm); margin-left: 7px; vertical-align: middle; }
.dish .card + .card, .dish .card + details, .dish details + details, .dish details + section, .dish .card + section { margin-top: 14px; }
.dish-head h1 { margin-bottom: .2em; }
.dish-vision { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); border-left: 3px solid var(--accent); }
.dish-course { margin-top: 26px; }
.dish-course > h2 { font-size: 1.05rem; margin-bottom: 8px; }
.dish-slot { background: var(--surface); padding: 10px 14px; }
.dish-slot + .dish-slot { border-top: 1px solid var(--line); }
.dish-slot-head { display: flex; align-items: center; gap: 10px; }
.dish-slot-head .grow { flex: 1; min-width: 0; }
.dish-slot-head .t { font-weight: 600; }
.dish-claim { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0 4px 6px; }
.dish-claim .grow { flex: 1; min-width: 0; }
.dish-claim .t { font-weight: 560; }
.dish-claim.held { opacity: .8; }
.dish-claim .avatar { margin-top: 2px; }
.dish-actions { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.dish-meta { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 3px; align-items: center; }
.dish-open { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 8px;
  font: inherit; font-size: .9rem; padding: 9px 12px; border-radius: 10px; cursor: pointer;
  border: 1.5px dashed color-mix(in srgb, var(--warm) 55%, var(--line)); background: color-mix(in srgb, var(--warm) 6%, transparent); color: var(--ink-2); }
.dish-open b { color: var(--accent); }
.dish-open:hover { background: color-mix(in srgb, var(--warm) 12%, transparent); }
.dish-open.closed { cursor: default; justify-content: flex-start; }
.dish-thread { margin: 8px 0 4px 34px; padding: 8px 10px; border-radius: var(--radius); background: var(--surface-2); }
.dish-comment { display: flex; gap: 9px; align-items: flex-start; padding: 6px 0; }
.dish-comment .grow { flex: 1; min-width: 0; white-space: pre-wrap; }
.dish-composer { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.dish-composer textarea { flex: 1; }
.dish-summary { padding: 12px 16px; }
.dish-summary summary { cursor: pointer; }
.dish-portion { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.dish-portion .grow { flex: 1; min-width: 0; }
.dish-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.dish-tag { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; cursor: pointer; }
.dish-tag input { accent-color: var(--accent); }
.dish-recipe { margin-top: 6px; }
.dish-recipe summary { cursor: pointer; font-size: .9rem; color: var(--ink-2); margin-bottom: 8px; }
.dish-modal { max-height: 90dvh; overflow-y: auto; max-width: 520px; }
.dish-slot-edit { padding: 12px 0; border-top: 1px solid var(--line); }
.dish-slot-edit.new { background: var(--surface-2); padding: 12px; border-radius: var(--radius); border-top: none; margin-top: 10px; }
.dish-slot-edit input[type=number] { width: 70px; display: inline-block; }
.dish-link code { display: block; padding: 9px 11px; border-radius: 9px; background: var(--surface-2); word-break: break-all; font-size: .85rem; }
.dish-pick { width: 100%; text-align: left; border: none; font: inherit; cursor: pointer; color: inherit; }
.dish-pick:disabled { opacity: .5; cursor: not-allowed; }
.dish-card h3 { font-size: 1.15rem; }
input[type=time] { font: inherit; width: 100%; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
@media (max-width: 560px) {
  .dish-claim { flex-wrap: wrap; }
  .dish-actions { width: 100%; justify-content: flex-start; padding-left: 34px; }
  .dish-thread { margin-left: 0; }
}

/* Covered Dish release 2: photos, votes, cookbook */
.dish-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
.dish-thumb { width: 64px; height: 64px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); padding: 0; background: var(--surface-2); cursor: zoom-in; position: relative; display: inline-grid; place-items: center; }
.dish-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish-thumb.edit { cursor: default; }
.dish-thumb.edit button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; line-height: 1; }
.dish-mood { width: 100%; max-height: 240px; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; display: block; }
.dish-mood.small { width: 120px; height: 80px; margin: 0; }
.dish-vote { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.dish-recipe-card h3 { margin-top: 2px; }
.dish-recipe-hero { width: calc(100% + 32px); margin: -16px -16px 12px; height: 160px; object-fit: cover; display: block; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-width: none; }
input[type=search] { font: inherit; width: 100%; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

/* ---------- profile picture ---------- */
.avatar.photo { background: var(--surface-2); overflow: hidden; padding: 0; }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.avatar.xl { width: 88px; height: 88px; font-size: 1.8rem; }
.avatar-edit { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.avatar-edit.busy { opacity: .5; pointer-events: none; }
.avatar-actions { display: flex; gap: 2px; }
.avatar-actions .linkbtn { font-size: .8rem; }

/* ---------- the birthday greeting ---------- */
body.bday-open { overflow: hidden; }
.bday-wrap { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, rgba(255, 240, 246, .94), rgba(236, 226, 255, .94) 60%, rgba(214, 236, 255, .95));
  animation: bday-fade .35s ease both;
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", system-ui, sans-serif; }
.bday-wrap.bye { animation: bday-fade .35s ease reverse both; }
.bday-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.bday-balloons { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.bday-balloon { position: absolute; bottom: -140px; animation: bday-rise 10s linear infinite; }
.bday-balloon svg { animation: bday-sway 2.6s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.bday-card { position: relative; z-index: 3; width: 100%; max-width: 420px; text-align: center; color: #4a3b5c;
  background: #fffdfd; border-radius: 30px; padding: 22px 24px 24px;
  box-shadow: 0 0 0 6px #ffe1ee, 0 0 0 12px #e9e1ff, 0 24px 60px rgba(120, 80, 160, .28);
  animation: bday-pop .6s cubic-bezier(.2, 1.5, .4, 1) both .1s; }
.bday-x { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 1.6rem; line-height: 1;
  color: #b3a4c6; cursor: pointer; padding: 4px 8px; border-radius: 50%; }
.bday-x:hover { color: #7c5c9e; }
.bday-cake svg { width: 190px; height: auto; }
.bday-cake { border: 0; background: none; padding: 0; margin: 0 auto 2px; display: block; cursor: pointer; border-radius: 20px; }
.bday-cake:focus-visible { outline: 3px dashed #ff8fbf; outline-offset: 4px; }
.bday-cake .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: bday-flicker .5s ease-in-out infinite alternate; }
.bday-cake .flame-core { transform-box: fill-box; transform-origin: 50% 100%; animation: bday-flicker .35s ease-in-out infinite alternate-reverse; }
.bday-cake .smoke { opacity: 0; }
.bday-cake.out .flame, .bday-cake.out .flame-core { animation: none; opacity: 0; transition: opacity .15s; }
.bday-cake.out .smoke { animation: bday-smoke 1.6s ease-out both; }
.bday-title { margin: 4px 0 2px; font-size: clamp(1.75rem, 8vw, 2.2rem); column-gap: .35em; font-weight: 900; letter-spacing: .02em; line-height: 1.15;
  display: flex; flex-wrap: wrap; justify-content: center; font-family: inherit; }
.bday-letter { display: inline-block; animation: bday-bounce 1.3s ease-in-out infinite;
  text-shadow: 0 2px 0 rgba(74, 59, 92, .18); -webkit-text-stroke: .5px rgba(74, 59, 92, .12); }
.bday-word { white-space: nowrap; }
.bday-name { font-size: 1.6rem; font-weight: 800; margin: 2px 0 8px; color: #7c5c9e; }
.bday-age { margin: 0 auto 10px; display: inline-block; }
.bday-age span { display: inline-block; background: #ffd43b; color: #5c4400; font-weight: 800; font-size: 1.05rem;
  padding: 7px 18px; border-radius: 999px; box-shadow: 0 3px 0 #f0b400; transform: rotate(-3deg); animation: bday-wiggle 2.4s ease-in-out infinite; }
.bday-late { margin: 0 0 6px; font-size: .95rem; color: #9b6aa8; font-style: italic; }
.bday-msg { margin: 0 0 8px; font-size: 1rem; line-height: 1.5; }
.bday-hint { margin: 0 0 16px; font-size: .88rem; color: #a08cb6; }
.bday-btn { font: inherit; font-weight: 800; font-size: 1.08rem; border: 0; cursor: pointer; color: #fff;
  padding: 13px 30px; border-radius: 999px; background: linear-gradient(90deg, #ff5fa2, #b197fc 55%, #4dabf7);
  box-shadow: 0 4px 0 #c2407f, 0 10px 22px rgba(255, 95, 162, .35); transition: transform .12s; }
.bday-btn:hover { transform: translateY(-2px) scale(1.03); }
.bday-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #c2407f; }
.bday-btn:focus-visible { outline: 3px solid #4dabf7; outline-offset: 3px; }
@keyframes bday-fade { from { opacity: 0; } }
@keyframes bday-pop { from { opacity: 0; transform: scale(.6) rotate(-4deg); } }
@keyframes bday-bounce { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-9px) rotate(-5deg); } 50% { transform: translateY(0) rotate(0); } 75% { transform: translateY(-3px) rotate(4deg); } }
@keyframes bday-rise { from { transform: translateY(0); } to { transform: translateY(calc(-100vh - 280px)); } }
@keyframes bday-sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes bday-flicker { from { transform: scale(1, 1) skewX(-3deg); } to { transform: scale(.85, 1.12) skewX(4deg); } }
@keyframes bday-smoke { 0% { opacity: .9; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes bday-wiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) scale(1.05); } }
.bday-wrap.calm, .bday-wrap.calm * { animation-duration: 0s !important; animation-iteration-count: 1 !important; }
.bday-wrap.calm .bday-balloons { display: none; }
@media (prefers-color-scheme: dark) {
  .bday-wrap { background: radial-gradient(circle at 50% 35%, rgba(60, 38, 70, .95), rgba(34, 28, 58, .96) 60%, rgba(20, 30, 50, .97)); }
}

/* ---------- page menu (vertical drop-down) ---------- */
.menu-wrap { position: relative; }
.menu-btn { font: inherit; font-size: .92rem; display: flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 7px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); max-width: 52vw; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: var(--surface-2); }
.menu-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-icon { display: inline-flex; flex-direction: column; gap: 3px; flex: none; }
.menu-icon i { display: block; width: 15px; height: 2px; border-radius: 2px; background: currentColor; }
.menu-panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 6px; display: flex; flex-direction: column; }
.menu-panel[hidden] { display: none; }
.menu-panel a { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.menu-panel a:hover, .menu-panel a:focus-visible { background: var(--surface-2); outline: none; }
.menu-panel a.active { background: var(--accent-soft); color: var(--accent); font-weight: 560; }
@media (max-width: 560px) {
  .brand-name { display: none; }
  .topbar-inner { gap: 8px; }
  .menu-panel { width: min(80vw, 300px); }
}
