/* Layout: dark "night out" luxe. Fixed aurora glow behind a centred 1080px column; frosted-glass cards; gradient used only for primary actions, active tab, countdown and the reveal. Single deliberate dark theme. */
:root{
  color-scheme:dark;
  --bg:#0F0B16; --surface:rgba(255,255,255,.045); --surface-solid:#1A1423; --surface-2:rgba(255,255,255,.075);
  --fg:#F8F2EA; --muted:#AEA3BA; --line:rgba(255,255,255,.09); --line-strong:rgba(255,255,255,.2);
  --gold:#F1D29A; --rose:#FF86AE; --violet:#A98BFF; --ink:#170F1E;
  --accent:#F4CF96; --accent-ink:#170F1E; --accent-soft:rgba(244,207,150,.13);
  --grad:linear-gradient(115deg,#F6DCA4 0%,#FF8FB3 52%,#AE8CFF 100%);
  --ok:#62E3A9; --ok-soft:rgba(98,227,169,.14); --warn:#FFC86E; --warn-soft:rgba(255,200,110,.14); --bad:#FF7C8C; --bad-soft:rgba(255,124,140,.14);
  --t-holiday:#7AD7FF; --t-holiday-soft:rgba(122,215,255,.14); --t-holiday-g:linear-gradient(140deg,#8FE0FF,#7C8CFF);
  --t-dayout:#FFCB74; --t-dayout-soft:rgba(255,203,116,.14); --t-dayout-g:linear-gradient(140deg,#FFE08A,#FF9A6C);
  --t-party:#FF8AD0; --t-party-soft:rgba(255,138,208,.14); --t-party-g:linear-gradient(140deg,#FF9AD5,#A98BFF);
  --t-santa:#FF8577; --t-santa-soft:rgba(255,133,119,.15); --t-santa-g:linear-gradient(140deg,#FF8A80,#FFC27A);
  --t-other:#C3B5FF; --t-other-soft:rgba(195,181,255,.14); --t-other-g:linear-gradient(140deg,#C9B8FF,#7FDCCB);
  --shadow:0 18px 50px rgba(0,0,0,.35);
  --f-display:"Unbounded","Segoe UI",system-ui,sans-serif;
  --f-serif:"Instrument Serif","Times New Roman",Georgia,serif;
  --f-body:"Manrope","Segoe UI",system-ui,-apple-system,sans-serif;
  --r:22px; --r-sm:14px;
}
*{box-sizing:border-box}
html,body{background:var(--bg)}
body{color:var(--fg);font-family:var(--f-body);font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased;min-height:100%}
button,input,select,textarea{font:inherit;color:inherit}
a{color:var(--accent)}
::selection{background:var(--rose);color:var(--ink)}
h1,h2,h3{font-family:var(--f-display);text-wrap:balance;margin:0;line-height:1.12;letter-spacing:-.025em;font-weight:600}
h1{font-size:clamp(1.6rem,4.2vw,2.3rem)}
h2{font-size:1.08rem}
h3{font-size:.98rem;letter-spacing:-.01em}
.serif{font-family:var(--f-serif);font-style:italic;font-weight:400;letter-spacing:0}
.gtext{background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
h1 .serif,h2 .serif{font-size:1.18em}
p{margin:0}
.num{font-variant-numeric:tabular-nums}
.muted{color:var(--muted)}
.small{font-size:.86rem}
.label{font-size:.7rem;text-transform:uppercase;letter-spacing:.14em;font-weight:700;color:var(--muted)}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:10px}

/* aurora */
.aurora{position:fixed;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:var(--bg)}
.aurora i{position:absolute;border-radius:50%;filter:blur(90px);opacity:.42;animation:drift 26s ease-in-out infinite alternate}
.aurora i:nth-child(1){width:55vmax;height:55vmax;left:-18vmax;top:-22vmax;background:#7A3CFF}
.aurora i:nth-child(2){width:45vmax;height:45vmax;right:-16vmax;top:8vmax;background:#FF5C9A;animation-duration:32s;opacity:.3}
.aurora i:nth-child(3){width:40vmax;height:40vmax;left:20vmax;bottom:-26vmax;background:#E9B65E;animation-duration:38s;opacity:.22}
.aurora::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 0%,transparent 0%,rgba(15,11,22,.55) 70%)}
@keyframes drift{to{transform:translate(6vmax,4vmax) scale(1.12)}}

/* header */
.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:10;background:rgba(15,11,22,.62);backdrop-filter:blur(18px) saturate(1.4);-webkit-backdrop-filter:blur(18px) saturate(1.4);border-bottom:1px solid var(--line)}
.wrap{max-width:1080px;margin:0 auto;padding-inline:16px}
.top-row{display:flex;align-items:center;gap:12px;padding-block:14px 10px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.mark{width:38px;height:38px;border-radius:13px;background:var(--grad);color:var(--ink);display:grid;place-items:center;font-family:var(--f-serif);font-style:italic;font-size:1.6rem;line-height:1;flex:none;box-shadow:0 6px 24px rgba(255,134,174,.35)}
.brand-name{font-family:var(--f-display);font-weight:600;font-size:1.05rem;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.who{display:flex;align-items:center;gap:8px}
.tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:12px;margin-inline:-4px;padding-inline:4px}
.tabs::-webkit-scrollbar{display:none}
.tab{border:1px solid transparent;background:none;padding:8px 15px;border-radius:999px;cursor:pointer;white-space:nowrap;color:var(--muted);font-weight:700;font-size:.88rem;transition:color .2s,background .2s}
.tab:hover{color:var(--fg);background:var(--surface-2)}
.tab[aria-current="page"]{background:var(--grad);color:var(--ink);box-shadow:0 6px 22px rgba(255,134,174,.3)}

main.wrap{padding-block:28px 80px;display:flex;flex-direction:column;gap:24px}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap}
.page-head > div{min-width:0;display:flex;flex-direction:column;gap:6px}
.stack{display:flex;flex-direction:column;gap:12px}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr))}
.two{display:grid;gap:24px;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
@media (max-width:820px){.two{grid-template-columns:minmax(0,1fr)}}

/* surfaces */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:18px;display:flex;flex-direction:column;gap:12px;min-width:0;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.card.click{cursor:pointer;transition:transform .25s cubic-bezier(.2,.8,.2,1),border-color .25s,box-shadow .25s}
.card.click:hover{transform:translateY(-3px);border-color:var(--line-strong);box-shadow:0 16px 44px rgba(255,110,170,.14)}
.section{display:flex;flex-direction:column;gap:14px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.banner{border-radius:var(--r-sm);padding:12px 16px;background:var(--warn-soft);color:var(--fg);border:1px solid var(--line);font-size:.9rem}
.banner.info{background:var(--accent-soft)}
.empty{border:1px dashed var(--line-strong);border-radius:var(--r);padding:24px;color:var(--muted);display:flex;flex-direction:column;gap:12px;align-items:flex-start;background:rgba(255,255,255,.02)}
.empty strong{color:var(--fg);font-family:var(--f-display);font-weight:600;font-size:1rem;letter-spacing:-.01em}
hr{border:0;border-top:1px solid var(--line);margin:0}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line-strong);background:var(--surface-2);padding:9px 17px;border-radius:999px;font-weight:700;cursor:pointer;font-size:.88rem;text-decoration:none;color:var(--fg);white-space:nowrap;transition:transform .15s,background .2s,border-color .2s,box-shadow .2s}
.btn:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.32)}
.btn:active{transform:scale(.97)}
.btn.primary{background:var(--grad);border-color:transparent;color:var(--ink);box-shadow:0 8px 26px rgba(255,134,174,.32)}
.btn.primary:hover{box-shadow:0 10px 34px rgba(255,134,174,.48);filter:brightness(1.05)}
.btn.ghost{background:none;border-color:transparent;color:var(--muted)}
.btn.ghost:hover{color:var(--fg);background:var(--surface-2)}
.btn.danger{color:var(--bad)}
.btn.danger.armed{background:var(--bad);border-color:var(--bad);color:var(--ink)}
.btn.sm{padding:6px 12px;font-size:.8rem}
.btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.link{background:none;border:0;padding:0;color:var(--accent);font-weight:700;cursor:pointer}

/* chips */
.chip{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;font-size:.74rem;font-weight:700;background:var(--surface-2);color:var(--muted);white-space:nowrap;letter-spacing:.01em}
.chip.holiday{background:var(--t-holiday-soft);color:var(--t-holiday)}
.chip.dayout{background:var(--t-dayout-soft);color:var(--t-dayout)}
.chip.party{background:var(--t-party-soft);color:var(--t-party)}
.chip.santa{background:var(--t-santa-soft);color:var(--t-santa)}
.chip.other{background:var(--t-other-soft);color:var(--t-other)}
.chip.going{background:var(--ok-soft);color:var(--ok)}
.chip.maybe{background:var(--warn-soft);color:var(--warn)}
.chip.no{background:var(--bad-soft);color:var(--bad)}
.filters{display:flex;gap:8px;flex-wrap:wrap}
.filter{border:1px solid var(--line-strong);background:transparent;border-radius:999px;padding:6px 14px;font-size:.82rem;font-weight:700;cursor:pointer;color:var(--muted)}
.filter:hover{color:var(--fg)}
.filter[aria-pressed="true"]{background:var(--fg);border-color:var(--fg);color:var(--ink)}

/* avatars */
.av{--h:170;width:30px;height:30px;border-radius:50%;display:inline-grid;place-items:center;font-size:.7rem;font-weight:800;background:linear-gradient(135deg,hsl(var(--h) 85% 72%),hsl(calc(var(--h) + 50) 80% 60%));color:var(--ink);flex:none;border:2px solid var(--bg)}
.av.lg{width:46px;height:46px;font-size:.92rem}
.avs{display:flex}
.avs .av+.av{margin-left:-9px}

/* event card */
.ev{display:grid;grid-template-columns:60px minmax(0,1fr);gap:16px;align-items:start}
.date-block{border-radius:16px;background:var(--t-other-g);color:var(--ink);text-align:center;padding:8px 0 9px;display:flex;flex-direction:column;line-height:1;gap:3px;box-shadow:0 8px 22px rgba(0,0,0,.28)}
.date-block .m{font-size:.66rem;font-weight:800;text-transform:uppercase;letter-spacing:.14em;opacity:.75}
.date-block .d{font-family:var(--f-display);font-weight:700;font-size:1.55rem;letter-spacing:-.03em}
.date-block.holiday{background:var(--t-holiday-g)} .date-block.dayout{background:var(--t-dayout-g)}
.date-block.party{background:var(--t-party-g)} .date-block.santa{background:var(--t-santa-g)}
.ev-body{display:flex;flex-direction:column;gap:6px;min-width:0}
.ev-title{font-family:var(--f-display);font-weight:600;font-size:1.02rem;letter-spacing:-.02em;overflow-wrap:anywhere}
.meta{display:flex;gap:6px 14px;flex-wrap:wrap;color:var(--muted);font-size:.85rem}
.month{font-family:var(--f-serif);font-style:italic;color:var(--fg);font-size:1.6rem;padding-top:6px;line-height:1}

/* hero (home) */
.hero{position:relative;overflow:hidden;border-radius:28px;padding:clamp(22px,4vw,36px);display:flex;flex-direction:column;gap:14px;border:1px solid var(--line-strong);
  background:radial-gradient(120% 140% at 100% 0%,rgba(255,134,174,.32),transparent 55%),radial-gradient(90% 120% at 0% 100%,rgba(169,139,255,.32),transparent 60%),rgba(255,255,255,.04);box-shadow:var(--shadow)}
.hero::after{content:"";position:absolute;right:-60px;top:-60px;width:220px;height:220px;border-radius:50%;border:1px solid rgba(246,220,164,.25);box-shadow:0 0 0 30px rgba(246,220,164,.04),0 0 0 70px rgba(246,220,164,.03);pointer-events:none}
.hero .label{color:var(--gold)}
.hero h1{font-size:clamp(1.7rem,5vw,2.8rem)}
.countdown{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.countdown .big{font-family:var(--f-display);font-weight:700;font-size:clamp(4rem,15vw,7.5rem);line-height:.9;letter-spacing:-.06em;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.countdown .serif{font-size:clamp(1.4rem,3.5vw,2rem);color:var(--fg)}
.hero .row{position:relative;z-index:1}

/* rsvp segmented */
.seg{display:inline-flex;gap:6px;flex-wrap:wrap}
.seg button{border:1px solid var(--line-strong);background:var(--surface-2);padding:10px 18px;border-radius:999px;font-weight:700;cursor:pointer;font-size:.88rem;color:var(--fg);transition:transform .15s,background .2s}
.seg button:active{transform:scale(.95)}
.seg button[aria-pressed="true"]{color:var(--ink);border-color:transparent}
.seg button[aria-pressed="true"].going{background:var(--ok);box-shadow:0 6px 22px rgba(98,227,169,.35)}
.seg button[aria-pressed="true"].maybe{background:var(--warn)}
.seg button[aria-pressed="true"].no{background:var(--bad)}

/* lists */
.list{display:flex;flex-direction:column}
.li{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line);min-width:0}
.li:first-child{border-top:0}
.li > .grow{flex:1;min-width:0;overflow-wrap:anywhere}
.amount{font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.pos{color:var(--ok)} .neg{color:var(--bad)}

/* poll */
.opt{position:relative;display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid var(--line);background:rgba(255,255,255,.03);border-radius:var(--r-sm);padding:11px 14px;cursor:pointer;overflow:hidden;transition:border-color .2s}
.opt:hover{border-color:var(--line-strong)}
.opt .bar{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,rgba(246,220,164,.2),rgba(255,143,179,.22));z-index:0;transition:width .5s cubic-bezier(.2,.8,.2,1)}
.opt > *:not(.bar){position:relative;z-index:1}
.opt .grow{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:600}
.opt.mine{border-color:var(--rose)}
.tick{width:20px;height:20px;border-radius:7px;border:1.5px solid var(--muted);display:grid;place-items:center;flex:none;font-size:.75rem;color:var(--ink);font-weight:900}
.opt.mine .tick{background:var(--grad);border-color:transparent}
.opt:disabled{cursor:default}

/* photos */
.photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.ph{aspect-ratio:1;border-radius:16px;overflow:hidden;background:var(--surface-2);border:0;padding:0;cursor:pointer;max-width:100%}
.ph img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.ph:hover img{transform:scale(1.06)}

/* tables */
.tbl-wrap{overflow-x:auto}
table{border-collapse:collapse;width:100%;font-size:.9rem}
th,td{text-align:left;padding:10px 8px;border-top:1px solid var(--line);vertical-align:middle}
th{font-size:.68rem;text-transform:uppercase;letter-spacing:.14em;color:var(--muted);border-top:0}

/* dialog + forms */
dialog{border:1px solid var(--line-strong);padding:0;border-radius:26px;background:var(--surface-solid);color:var(--fg);width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);box-shadow:0 30px 90px rgba(0,0,0,.6)}
dialog::backdrop{background:rgba(8,5,12,.66);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.dlg{position:relative;display:flex;flex-direction:column;max-height:calc(100dvh - 32px)}
.dlg-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:20px 22px 14px;border-bottom:1px solid var(--line)}
.dlg-body{padding:18px 22px 22px;overflow-y:auto;display:flex;flex-direction:column;gap:16px}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field > span{font-weight:700;font-size:.84rem}
.field small{color:var(--muted)}
input[type=text],input[type=email],input[type=url],input[type=number],input[type=date],select,textarea{width:100%;border:1px solid var(--line-strong);background:rgba(255,255,255,.04);border-radius:var(--r-sm);padding:11px 13px;min-width:0;transition:border-color .2s,box-shadow .2s}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--rose);box-shadow:0 0 0 4px rgba(255,134,174,.15)}
select option{background:var(--surface-solid)}
textarea{resize:vertical}
input[type=checkbox]{accent-color:var(--rose);width:16px;height:16px}
.fields2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:480px){.fields2{grid-template-columns:1fr}}
.checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.check{display:flex;align-items:center;gap:9px;padding:8px 10px;border:1px solid var(--line);border-radius:var(--r-sm);cursor:pointer;min-width:0;background:rgba(255,255,255,.03)}
.check:hover{border-color:var(--line-strong)}
.check span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;padding-top:4px}
.err{color:var(--bad);font-size:.88rem}
.lightbox img{width:100%;border-radius:16px;max-height:65dvh;object-fit:contain;background:rgba(0,0,0,.3)}

/* santa reveal */
.reveal{text-align:center;padding:16px 0 8px;display:flex;flex-direction:column;gap:12px;align-items:center}
.reveal .who-name{font-family:var(--f-display);font-weight:700;font-size:clamp(2.2rem,9vw,3.4rem);letter-spacing:-.04em;line-height:1.05;background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;animation:pop .7s cubic-bezier(.2,1.4,.4,1) both}
@keyframes pop{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}
.confetti{position:fixed;inset:0;pointer-events:none;z-index:200}
.dlg .confetti{position:absolute;width:100%;height:100%}

.toast{position:fixed;left:50%;bottom:calc(22px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--fg);color:var(--ink);padding:11px 18px;border-radius:999px;font-weight:700;font-size:.88rem;z-index:100;max-width:calc(100vw - 32px);box-shadow:0 12px 40px rgba(0,0,0,.45)}
.skeleton{height:90px;border-radius:var(--r);background:var(--surface-2)}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* standalone additions */
html,body{margin:0}
body{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
img{max-width:100%}
[hidden]{display:none!important}
.gate{min-height:calc(100dvh - 120px);display:grid;place-items:center;padding-block:40px}
.gate-card{width:min(460px,100%);display:flex;flex-direction:column;gap:18px;padding:clamp(24px,5vw,36px);border-radius:28px;border:1px solid var(--line-strong);
  background:radial-gradient(120% 120% at 100% 0%,rgba(255,134,174,.25),transparent 55%),radial-gradient(90% 120% at 0% 100%,rgba(169,139,255,.25),transparent 60%),rgba(255,255,255,.05);box-shadow:var(--shadow);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.gate-card .mark{width:52px;height:52px;font-size:2.1rem;border-radius:16px}
.gate-card h1{font-size:clamp(1.7rem,6vw,2.4rem)}
.code-input{font-family:var(--f-display);font-size:1.6rem!important;letter-spacing:.3em;text-align:center}

/* trip hub */
.stats{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr))}
.stat{gap:6px;text-align:left;font:inherit;color:inherit}
.stat-v{font-family:var(--f-display);font-weight:600;font-size:1.25rem;letter-spacing:-.02em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.room{padding:0;overflow:hidden;gap:10px}
.room > *:not(.room-img){margin-inline:18px}
.room > *:last-child{margin-bottom:18px}
.room-img{width:100%;aspect-ratio:3/2;object-fit:cover;display:block;max-width:100%}
.room.mine{border-color:var(--ok)}
.plan-img{width:100%;max-width:100%;border-radius:14px;background:#fff;display:block}
.plan-item{align-items:flex-start}
.plan-item > .chip{margin-top:2px;flex:none}
.tickbtn{width:26px;height:26px;border-radius:8px;border:1.5px solid var(--muted);background:transparent;color:var(--ink);font-weight:900;cursor:pointer;flex:none;display:grid;place-items:center}
.tickbtn.on{background:var(--grad);border-color:transparent}
button.chip{border:0;cursor:pointer;font:inherit;font-size:.74rem;font-weight:700}
.shop-item.done .item-name{text-decoration:line-through;color:var(--muted)}
.item-name{font-weight:600}
.bar-track{height:8px;border-radius:999px;background:var(--surface-2);overflow:hidden}
.bar-fill{height:100%;background:var(--grad);border-radius:999px;transition:width .5s}
tr.sub td{border-top:0;padding-top:0}
details.card > summary{list-style:none}
@media (max-width:560px){.hide-sm{display:none}}

/* trip tabs: one swipeable row on phones */
.trip-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;
  margin-inline:-16px;padding:4px 16px}
.trip-tabs::-webkit-scrollbar{display:none}
.trip-tabs .filter{flex:none}
.trip-tabs .filter[aria-pressed="true"]{background:var(--grad);border-color:transparent;color:var(--ink)}
.notes > summary{display:flex;justify-content:space-between;align-items:center;gap:8px;cursor:pointer;list-style:none}
.notes > summary::-webkit-details-marker{display:none}
.notes-text{white-space:pre-wrap;overflow-wrap:anywhere;max-width:65ch;font-size:.92rem}
.page-head > div.row{flex-direction:row}
.stats{grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr))}
@media (max-width:480px){.stat{padding:14px}.stat-v{font-size:1.05rem}}
@media (max-width:480px){.who > span.small{display:none}.brand-name{font-size:.95rem}}
@media (max-width:480px){.who{gap:0}.who .btn.sm{padding:6px 7px;font-size:.76rem}.top-row{gap:8px}}

/* shopping quantities */
.qty-badge{flex:none;width:52px;text-align:center;border-radius:12px;background:var(--surface-2);padding:6px 0;display:flex;flex-direction:column;line-height:1.05}
.qty-badge .num{font-family:var(--f-display);font-weight:700;font-size:1.15rem}
.qty-badge small{font-size:.62rem;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:700}
.shop-item .rule{opacity:.75;font-size:.78rem}
.qty-box{border:1px solid var(--line-strong);border-radius:var(--r-sm);padding:12px 14px;margin:0;display:flex;flex-direction:column;gap:10px}
.qty-box legend{font-weight:700;font-size:.84rem;padding:0 6px}
.qty-box input[type=radio]{accent-color:var(--rose);width:16px;height:16px}
.qty-box .preview{background:var(--accent-soft);border-radius:10px;padding:8px 10px;margin:0}

/* shopping pot */
.stat.owe{border-color:rgba(255,200,110,.45)}
.stat.ok{border-color:rgba(98,227,169,.35)}
.pot > summary{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;cursor:pointer;list-style:none}
.pot > summary::-webkit-details-marker{display:none}
.pot h3{margin-top:2px}

/* drinks plan */
.drinks-plan h3{margin-top:2px}
.mixer-note{color:var(--accent)}

/* "+3" bubble: shows the other names on hover (computers) or tap (phones) */
.av.more{position:relative;cursor:pointer;font:inherit;font-size:.7rem;font-weight:800;padding:0}
.av.lg.more{font-size:.92rem}
.av.more::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 8px);right:-6px;z-index:30;width:max-content;max-width:240px;
  white-space:normal;text-align:left;padding:7px 10px;border-radius:10px;background:var(--fg);color:var(--ink);font-weight:700;font-size:.78rem;line-height:1.35;
  box-shadow:0 10px 30px rgba(0,0,0,.45);opacity:0;transform:translateY(4px);pointer-events:none;transition:opacity .15s,transform .15s}
.av.more:hover::after,.av.more:focus-visible::after{opacity:1;transform:none}
.opt{overflow:visible}
.opt .bar{border-radius:inherit}

/* add to calendar */
.cal-btn{width:100%;padding-block:12px}

/* ---------- extras ---------- */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.install{border-color:rgba(244,207,150,.4)}
.pay-card{border-color:rgba(255,200,110,.45)}
.pay-details{margin:0;white-space:pre-wrap;font:600 .95rem/1.5 var(--f-body);background:rgba(0,0,0,.25);border:1px solid var(--line);border-radius:12px;padding:10px 12px;user-select:all;overflow-wrap:anywhere}
.claims{border-color:rgba(98,227,169,.35)}
.ride.mine,.li.me{border-color:var(--ok)}
.li.me{background:rgba(98,227,169,.06);border-radius:10px;padding-inline:8px}
.trip-mode h4{margin:12px 0 6px;font-family:var(--f-display);font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.trip-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;font:inherit;color:inherit;background:rgba(255,255,255,.03);border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:6px;cursor:pointer}
.trip-row .trip-qty{font-family:var(--f-display);font-weight:700;min-width:2.6em}
.trip-row.done{opacity:.55}
.trip-row.done .grow{text-decoration:line-through}
.chat-list{display:flex;flex-direction:column;gap:10px;max-height:420px;overflow-y:auto;padding-right:4px}
.msg{display:flex;gap:10px;align-items:flex-start}
.msg .bubble{background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:14px;padding:8px 12px;min-width:0;max-width:100%}
.msg.me .bubble{background:var(--accent-soft)}
.msg-body{white-space:pre-wrap;overflow-wrap:anywhere}
.link.danger{color:var(--bad)}
.memories{border-color:rgba(169,139,255,.4)}
.memories .stat{background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:4px}
#cal-url{font-size:.8rem}
.remind-person{border:1px solid var(--line);border-radius:14px;padding:8px 12px 10px;margin:0}
.remind-person legend{padding:0 6px}
.remind-item{align-items:flex-start;padding:4px 0}
.remind-item input{margin-top:3px}

/* ---------- improvements ---------- */
.opt.best{border-color:var(--ok)}
.best-date{margin:0;font-size:.92rem;color:var(--ok)}
table.avail{border-collapse:separate;border-spacing:4px;width:auto;min-width:100%}
table.avail th,table.avail td{border:0;padding:4px;text-align:center;vertical-align:middle;white-space:nowrap}
table.avail thead th{font-size:.72rem;letter-spacing:0;text-transform:none;color:var(--fg);font-weight:600;border-radius:10px;padding:6px 8px}
table.avail tbody th{text-align:left;font-weight:600;font-size:.86rem;display:flex;align-items:center;gap:6px;letter-spacing:0;text-transform:none;color:var(--fg)}
table.avail .best{background:rgba(98,227,169,.10)}
table.avail tr.me th{color:var(--accent)}
.av-btn,.av-cell{width:38px;height:34px;border-radius:10px;display:inline-grid;place-items:center;font-weight:800;font-size:1rem;border:1px solid var(--line)}
.av-btn{cursor:pointer;background:rgba(255,255,255,.04);color:var(--fg)}
.av-btn:disabled{cursor:default;opacity:.7}
.av-btn.yes,.av-cell.yes{background:var(--ok);color:var(--ink);border-color:transparent}
.av-btn.maybe,.av-cell.maybe{background:var(--warn);color:var(--ink);border-color:transparent}
.av-btn.no,.av-cell.no{background:var(--bad-soft);color:var(--bad)}
.av-cell.none{color:var(--muted)}
.plus{gap:10px}
.plus strong{min-width:1.2em;text-align:center}
.headcount{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:12px;padding:8px 12px}
.banner.change{background:rgba(255,200,110,.12);border-color:rgba(255,200,110,.4)}
.idea.top{border-color:rgba(244,207,150,.5)}
.vote-btn{flex:none;width:52px;border-radius:14px;border:1px solid var(--line-strong);background:rgba(255,255,255,.04);color:var(--fg);display:flex;flex-direction:column;align-items:center;padding:6px 0;cursor:pointer;font:inherit}
.vote-btn span{font-size:.8rem;color:var(--muted)}
.vote-btn.on{background:var(--grad);color:var(--ink);border-color:transparent}
.vote-btn.on span{color:var(--ink)}
.grid > .avail-card{grid-column:1/-1}

/* ---------- notification centre ---------- */
.bell{position:relative;display:inline-grid;place-items:center;width:36px;height:36px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface-2);color:var(--fg);cursor:pointer;flex:none}
.bell:hover{background:rgba(255,255,255,.12)}
.bell-badge{position:absolute;top:-5px;right:-6px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:var(--rose);color:var(--ink);font-size:.68rem;font-weight:800;display:grid;place-items:center;border:2px solid var(--bg)}
.notif-list{display:flex;flex-direction:column;gap:6px}
.notif{display:flex;gap:10px;align-items:flex-start;width:100%;text-align:left;font:inherit;color:inherit;background:rgba(255,255,255,.03);border:1px solid var(--line);border-radius:14px;padding:10px 12px;cursor:pointer}
.notif:hover{border-color:var(--line-strong)}
.notif .grow{display:flex;flex-direction:column;gap:2px;min-width:0}
.notif-body{overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.notif-dot{width:9px;height:9px;border-radius:50%;margin-top:6px;flex:none;background:transparent}
.notif.unread{background:var(--accent-soft);border-color:rgba(244,207,150,.35)}
.notif.unread .notif-dot{background:var(--rose)}

/* dialogs clear the iPhone notch / status bar when installed as an app */
dialog{max-height:calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
.dlg{max-height:calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
@media (max-width:560px){dialog{margin-top:calc(env(safe-area-inset-top,0px) + 12px)}}

/* floating new-event button */
.fab{position:fixed;right:calc(18px + env(safe-area-inset-right,0px));bottom:calc(22px + env(safe-area-inset-bottom,0px));z-index:20;width:60px;height:60px;border-radius:50%;border:0;cursor:pointer;display:grid;place-items:center;
  background:linear-gradient(135deg,#F4CF96,#E89AB8 55%,#B79CFF);color:var(--accent-ink);box-shadow:0 14px 34px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.18) inset;transition:transform .15s}
.fab:hover{transform:translateY(-2px) scale(1.04)}.fab:active{transform:scale(.96)}
.fab svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round}
main.wrap{padding-bottom:96px}

/* home to-do list */
.hero.click{cursor:pointer}
.todos{padding:6px 0;gap:0}
.todo{display:flex;align-items:center;gap:12px;padding:12px 18px;border-top:1px solid var(--line)}
.todo:first-child{border-top:0}
.todo .grow{min-width:0}.todo strong{display:block;overflow-wrap:anywhere}
.todo-ic{width:38px;height:38px;flex:none;border-radius:12px;display:grid;place-items:center;background:var(--accent-soft);font-size:1.1rem}
.fold summary{cursor:pointer;padding:6px 0}
.more-links{justify-content:center;margin-top:8px}

/* guest picker */
.gp{display:flex;flex-direction:column;gap:10px}
.gp-chips{display:flex;flex-wrap:wrap;gap:6px}
.gp-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 4px 3px 3px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);font-size:.85rem;font-weight:600;max-width:100%}
.gp-chip .av{width:24px;height:24px;font-size:.62rem}
.gp-chip > span:not(.av){padding-right:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gp-chip button{border:0;background:rgba(255,255,255,.08);color:var(--fg);width:22px;height:22px;border-radius:50%;cursor:pointer;line-height:1;font-size:1rem}
.gp-chip button:hover{background:rgba(255,120,120,.3)}
.gp-hint{border:1px dashed var(--accent);background:transparent;color:var(--accent);border-radius:999px;padding:4px 12px;font-weight:700;font-size:.82rem;cursor:pointer}
.gp-field{position:relative}
.gp-field input{width:100%}
.gp-sug{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:5;background:var(--surface-solid);border:1px solid var(--line-strong);border-radius:14px;padding:4px;box-shadow:0 16px 40px rgba(0,0,0,.5);display:flex;flex-direction:column}
.gp-sug button{display:flex;align-items:center;gap:10px;padding:9px 10px;border:0;border-radius:10px;background:transparent;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.gp-sug button.on,.gp-sug button:hover{background:var(--accent-soft)}
.gp-none{padding:10px}

/* wishlist likes / dislikes */
.wish-sec{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border-radius:16px;border:1px solid var(--line)}
.wish-sec.like{background:rgba(120,220,160,.06)}
.wish-sec.dislike{background:rgba(255,120,120,.06)}
.wish-form{padding-top:10px;border-top:1px solid var(--line)}

/* organiser: everyone's wishlists */
.wish-all summary{display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer;list-style:none}
.wish-all summary::-webkit-details-marker{display:none}
.wish-all[open] summary{margin-bottom:12px}
.wish-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:10px}
.wish-person{border:1px solid var(--line);border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:8px;background:rgba(255,255,255,.02)}
.wish-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.wish-ul{margin:4px 0 0;padding-left:18px;font-size:.86rem;display:flex;flex-direction:column;gap:2px;overflow-wrap:anywhere}

/* key info */
.key-info{border-color:rgba(244,207,150,.35);background:linear-gradient(135deg,rgba(244,207,150,.08),rgba(183,156,255,.06))}
.key-info.empty{background:var(--surface)}
.key-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:10px}
.key-row{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:14px;background:rgba(0,0,0,.18);border:1px solid var(--line)}
.key-ic{font-size:1.15rem;line-height:1.4}
.key-v{font-weight:700;white-space:pre-wrap;overflow-wrap:anywhere}
.key-row .grow{min-width:0}

/* budget check */
.budget-opts{display:flex;flex-wrap:wrap;gap:6px}
.budget-bars{display:flex;flex-direction:column;gap:6px}
.bb-row{display:grid;grid-template-columns:96px 1fr 24px;align-items:center;gap:10px}
.budget-verdict{font-size:.95rem}

/* deposits */
.locked{border-color:rgba(120,220,160,.4);background:rgba(120,220,160,.06)}
.chip.waitlist{background:var(--accent-soft);color:var(--accent)}

/* jobs */
.task .grow{min-width:0}
.task-title{font-weight:600;overflow-wrap:anywhere}
.task.done .task-title{text-decoration:line-through;color:var(--muted)}
.tick-btn{width:28px;height:28px;flex:none;border-radius:9px;border:2px solid var(--line-strong);background:transparent;color:var(--accent-ink);font-weight:800;cursor:pointer}
.tick-btn.on{background:var(--ok,#7ddc9f);border-color:var(--ok,#7ddc9f)}
.late{color:var(--warn,#ffb36b);font-weight:700}

/* event form sections */
.plan-tools{padding:12px 14px;gap:10px}
.plan-tools summary{cursor:pointer}

/* help / user guide */
.help-btn{width:34px;height:34px;padding:0;border-radius:50%;font-weight:800}
.guide-toc{position:sticky;top:calc(env(safe-area-inset-top,0px) + 112px);z-index:5;background:rgba(15,11,22,.85);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);padding:8px 0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.guide-toc::-webkit-scrollbar{display:none}
.guide-toc .filter{flex:none}
.guide-sec{scroll-margin-top:calc(env(safe-area-inset-top,0px) + 170px);gap:12px;line-height:1.6}
.guide-sec h3{margin-top:10px}
.guide-sec ol,.guide-sec ul{padding-left:22px;display:flex;flex-direction:column;gap:6px;margin:0}
.guide-sec td,.guide-sec th{vertical-align:top}
.g-shot{margin:6px auto;max-width:300px;text-align:center}
.g-shot img{width:100%;height:auto;border-radius:18px;border:1px solid var(--line-strong);box-shadow:0 12px 34px rgba(0,0,0,.45)}
.g-shot figcaption{font-size:.8rem;color:var(--muted);margin-top:6px}
.g-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:16px;align-items:start}
.g-row .g-shot{max-width:none;margin:0}
@media (max-width:420px){.top-row .brand-name{display:none}}

/* chat: GIFs and reactions */
.chat-gif{display:block;max-width:min(220px,100%);height:auto;border-radius:12px;margin-top:6px}
.reacts{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:6px;position:relative}
.react-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--fg);border-radius:999px;padding:2px 8px;font-size:.85rem;cursor:pointer;line-height:1.5}
.react-chip .num{font-size:.75rem;font-weight:700;color:var(--muted)}
.react-chip.on{border-color:var(--accent);background:var(--accent-soft)}
.react-chip.on .num{color:var(--accent)}
.react-add{border:1px dashed var(--line-strong);background:transparent;color:var(--muted);border-radius:999px;padding:1px 8px;font-size:.85rem;cursor:pointer;opacity:.7}
.react-add span{font-size:.7rem;margin-left:1px}
.react-add:hover,.react-add[aria-expanded="true"]{opacity:1;color:var(--fg)}
.react-pick{display:flex;flex-wrap:wrap;gap:2px;padding:4px;border-radius:14px;background:var(--surface-solid);border:1px solid var(--line-strong);box-shadow:0 10px 30px rgba(0,0,0,.45);width:100%}
.react-pick button{border:0;background:transparent;font-size:1.3rem;padding:4px 6px;border-radius:10px;cursor:pointer;line-height:1}
.react-pick button:hover,.react-pick button.on{background:var(--accent-soft)}
.gif-btn{padding:9px 12px;font-weight:800;letter-spacing:.03em}
.gif-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:6px;max-height:50vh;overflow-y:auto}
.gif-pick{border:0;padding:0;background:rgba(255,255,255,.04);border-radius:10px;overflow:hidden;cursor:pointer;aspect-ratio:1}
.gif-pick img{width:100%;height:100%;object-fit:cover;display:block}
.gif-credit{text-align:right;font-size:.72rem}

/* ===== group-life release ===== */
:root{--hdr:120px}
/* header: bell + avatar menu */
.me-btn{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:999px;padding:3px 10px 3px 3px;cursor:pointer;font-weight:700}
.me-btn:hover{border-color:var(--line-strong)}
.me-menu{position:fixed;z-index:60;top:calc(env(safe-area-inset-top,0px) + 62px);right:max(12px,calc((100vw - 1080px)/2 + 16px));width:min(300px,calc(100vw - 24px));background:var(--surface-solid);border:1px solid var(--line-strong);border-radius:20px;box-shadow:0 24px 60px rgba(0,0,0,.5);padding:8px;display:flex;flex-direction:column;gap:2px}
.me-menu[hidden]{display:none}
.me-head{display:flex;gap:10px;align-items:center;padding:8px 10px 12px;border-bottom:1px solid var(--line);margin-bottom:4px}
.me-head .small{overflow-wrap:anywhere}
.me-menu > button{border:0;background:none;color:var(--fg);text-align:left;padding:11px 12px;border-radius:12px;font-weight:600;cursor:pointer}
.me-menu > button:hover{background:var(--surface-2)}
.me-menu > button.danger{color:var(--bad)}
.me-theme{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px}
.seg.sm button{padding:5px 10px;font-size:.78rem}
/* tab icons and badges */
.tab{position:relative;display:inline-flex;align-items:center;gap:6px}
.tab-ic{display:none}
.tab-ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tab-badge{min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--rose);color:#170F1E;font-size:.68rem;font-weight:800;display:inline-grid;place-items:center;line-height:1}
.tab-badge.in{margin-left:6px}
.bnav{display:none}
@media (max-width:760px){
  .top .tabs{display:none}
  .top-row{padding-block:12px 12px}
  .bnav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:30;justify-content:space-around;gap:4px;padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));background:rgba(15,11,22,.9);backdrop-filter:blur(18px) saturate(1.4);-webkit-backdrop-filter:blur(18px) saturate(1.4);border-top:1px solid var(--line)}
  .bnav[hidden]{display:none}
  .bnav .tab{flex:1;flex-direction:column;gap:2px;padding:4px 2px;font-size:.68rem;border-radius:14px;color:var(--muted)}
  .bnav .tab-ic{display:grid;place-items:center;padding:3px 16px;border-radius:12px}
  .bnav .tab[aria-current="page"]{background:none;box-shadow:none;color:var(--fg)}
  .bnav .tab[aria-current="page"] .tab-ic{background:var(--grad);color:var(--ink)}
  .bnav .tab-badge{position:absolute;top:0;left:calc(50% + 6px)}
  main.wrap{padding-bottom:calc(120px + env(safe-area-inset-bottom,0px))}
  .fab{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  .toast{bottom:calc(88px + env(safe-area-inset-bottom,0px))}
  .me-name{display:none}
  .me-menu{top:calc(env(safe-area-inset-top,0px) + 60px)}
}
@media (max-width:420px){.top-row .brand-name{display:inline;font-size:.95rem}}
/* sticky offsets follow the real header height */
.guide-toc{top:var(--hdr)}
.guide-sec{scroll-margin-top:calc(var(--hdr) + 60px)}
/* offline */
.banner.offline{border-color:rgba(255,200,110,.4);background:var(--warn-soft)}
.banner.ok{border-color:rgba(98,227,169,.4);background:var(--ok-soft)}
/* pull to refresh */
.ptr{position:fixed;left:50%;top:calc(env(safe-area-inset-top,0px) + 8px);transform:translate(-50%,0);z-index:70;background:var(--surface-solid);border:1px solid var(--line-strong);color:var(--muted);padding:7px 14px;border-radius:999px;font-weight:700;font-size:.8rem;box-shadow:0 10px 30px rgba(0,0,0,.4)}
.ptr.ready{color:var(--accent)}
.ptr[hidden]{display:none}
/* tour */
.tour{display:flex;flex-direction:column;gap:12px;text-align:center;align-items:center}
.tour-ic{font-size:3rem;line-height:1;width:84px;height:84px;border-radius:26px;display:grid;place-items:center;background:var(--accent-soft)}
.tour .actions{width:100%}
.tour-dots{display:flex;gap:6px}
.tour-dots i{width:8px;height:8px;border-radius:50%;background:var(--line-strong)}
.tour-dots i.on{background:var(--accent);width:22px;border-radius:999px}
/* event page */
.ev-hero{height:150px;border-radius:24px;background:var(--t-other-g) center/cover;display:grid;place-items:center;border:1px solid var(--line-strong);overflow:hidden}
.ev-hero.holiday{background-image:var(--t-holiday-g)}
.ev-hero.dayout{background-image:var(--t-dayout-g)}
.ev-hero.party{background-image:var(--t-party-g)}
.ev-hero.santa{background-image:var(--t-santa-g)}
.ev-hero[style*="background-image"]{background-size:cover;background-position:center}
.ev-hero-emoji{font-size:4.2rem;filter:drop-shadow(0 8px 20px rgba(0,0,0,.3))}
.ev-strip{position:sticky;top:var(--hdr);z-index:6;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:8px 0;margin:-8px 0;background:linear-gradient(var(--bg) 70%,transparent)}
.ev-strip::-webkit-scrollbar{display:none}
.ev-strip .chip{border:1px solid var(--line);cursor:pointer;font-size:.78rem;padding:5px 11px;flex:none}
.ev-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;scroll-margin-top:calc(var(--hdr) + 50px)}
.ev-tabs::-webkit-scrollbar{display:none}
.ev-tabs .filter{flex:none;display:inline-flex;align-items:center}
.chat-teaser .ellip{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chip.new-msg{background:var(--rose);color:#170F1E}
/* event cards with covers */
.card.has-cover{padding-top:0;overflow:hidden}
.ev-cover{height:86px;margin:0 -22px 14px;background:var(--t-other-g) center/cover;display:grid;place-items:center}
.ev-cover.holiday{background-image:var(--t-holiday-g)}
.ev-cover.dayout{background-image:var(--t-dayout-g)}
.ev-cover.party{background-image:var(--t-party-g)}
.ev-cover.santa{background-image:var(--t-santa-g)}
.ev-cover[style*="background-image"]{background-size:cover;background-position:center}
.ev-cover span{font-size:2.6rem}
.emoji-picks{display:flex;flex-wrap:wrap;gap:4px}
.emoji-pick{border:1px solid var(--line);background:var(--surface);border-radius:12px;font-size:1.25rem;padding:4px 7px;cursor:pointer;line-height:1.2}
.emoji-pick:hover{border-color:var(--accent)}
/* messenger chat */
.chat-full{gap:10px}
.chat-full .chat-list{height:calc(100dvh - var(--hdr) - 300px);min-height:300px;max-height:none;padding:4px 4px 8px 0;overscroll-behavior:contain}
.chat-day{text-align:center;margin:10px 0 4px}
.chat-day span{font-size:.72rem;font-weight:700;color:var(--muted);background:var(--surface-2);padding:3px 10px;border-radius:999px}
.msg.me{flex-direction:row-reverse}
.msg.me .bubble{border-bottom-right-radius:6px}
.msg:not(.me) .bubble{border-bottom-left-radius:6px}
.msg.cont{margin-top:-6px}
.av-gap{width:30px;flex:none}
.msg.me .av-gap{width:0}
.msg-meta{margin-bottom:2px}
.msg.me .reacts{justify-content:flex-end}
.chat-compose{display:flex;gap:8px;align-items:flex-end;position:sticky;bottom:0;background:var(--surface-solid);padding:8px;margin:0 -8px -8px;border-radius:0 0 18px 18px;border-top:1px solid var(--line)}
.chat-compose textarea{min-height:44px;max-height:140px;resize:none}
@media (max-width:760px){.chat-full .chat-list{height:calc(100dvh - var(--hdr) - 330px)}}
/* today + birthdays + slideshow */
.today{border-color:rgba(122,215,255,.4);background:linear-gradient(135deg,rgba(122,215,255,.1),rgba(169,139,255,.08))}
.slide{position:relative;display:grid;place-items:center;background:#000;border-radius:16px;overflow:hidden;min-height:240px}
.slide img{max-width:100%;max-height:68vh;display:block}
.slide-nav{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;border:0;background:rgba(0,0,0,.5);color:#fff;font-size:1.6rem;cursor:pointer;line-height:1}
.slide-nav.prev{left:8px}
.slide-nav.next{right:8px}

/* ===== light mode ===== */
:root[data-theme="light"]{
  color-scheme:light;
  --bg:#FBF7F2; --surface:rgba(40,20,50,.035); --surface-solid:#FFFFFF; --surface-2:rgba(40,20,50,.06);
  --fg:#1E1527; --muted:#6D6178; --line:rgba(40,20,50,.1); --line-strong:rgba(40,20,50,.2);
  --accent:#A8661F; --accent-ink:#1E1527; --accent-soft:rgba(200,130,50,.14);
  --ok:#14885A; --ok-soft:rgba(20,136,90,.12); --warn:#A86A00; --warn-soft:rgba(220,150,30,.14); --bad:#C8344A; --bad-soft:rgba(200,52,74,.1);
  --t-holiday:#1D7FB0; --t-dayout:#B26A00; --t-party:#B8327E; --t-santa:#C2412F; --t-other:#5E48C2;
  --shadow:0 14px 40px rgba(60,30,70,.12);
}
:root[data-theme="light"] .top{background:rgba(251,247,242,.82)}
:root[data-theme="light"] .bnav{background:rgba(251,247,242,.94)}
:root[data-theme="light"] .aurora{opacity:.35}
:root[data-theme="light"] .aurora::after{background:radial-gradient(ellipse at 50% 0%,transparent 0%,rgba(251,247,242,.7) 70%)}
:root[data-theme="light"] .card{background:rgba(255,255,255,.8);box-shadow:0 8px 24px rgba(60,30,70,.06)}
:root[data-theme="light"] .msg .bubble{background:#F2ECF5}
:root[data-theme="light"] .msg.me .bubble{background:#FBE7D0}
:root[data-theme="light"] dialog::backdrop{background:rgba(40,20,50,.35)}
:root[data-theme="light"] .me-menu,:root[data-theme="light"] .ptr{box-shadow:0 18px 50px rgba(60,30,70,.18)}
:root[data-theme="light"] .chat-compose{background:#fff}
:root[data-theme="light"] input,:root[data-theme="light"] textarea,:root[data-theme="light"] select{background:#fff}
.seg.sm button[aria-pressed="true"]{background:var(--grad);color:var(--ink);border-color:transparent}
.bb-row.usage{grid-template-columns:128px 1fr 40px}
