
:root {
  color-scheme: light;
  --ink: #18352e;
  --ink-soft: #52665f;
  --muted: #7d8983;
  --green: #31765b;
  --green-dark: #245d49;
  --mint: #eaf2e9;
  --mint-strong: #d8e8d9;
  --coral: #e17f5f;
  --line: #e8ece5;
  --paper: #f7f8f2;
  --white: #fff;
  --shadow: 0 20px 60px rgba(31, 60, 47, .09);
  --radius: 20px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.topbar { width: min(1180px, calc(100% - 64px)); height: 84px; margin: auto; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 17px; letter-spacing: -.055em; font-weight: 780; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--green); color: white; font-size: 20px; font-weight: 400; }
.brand-light { font-weight: 450; color: #718079; }
.topbar-right { display: flex; align-items: center; gap: 20px; }
.subtle-link, .site-footer a { font-size: 13px; color: var(--ink-soft); text-decoration: none; font-weight: 650; transition: color .18s; }
.subtle-link:hover, .site-footer a:hover { color: var(--green); }
.account-label { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); font-size: 13px; }

.hero-layout { width: min(1180px, calc(100% - 64px)); min-height: 690px; margin: 6px auto 52px; padding: 36px 0 42px; display: grid; grid-template-columns: 1fr 438px; align-items: center; gap: 68px; position: relative; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.eyebrow-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(225, 127, 95, .12); }
h1, h2, h3, p { margin-top: 0; }
.hero-copy h1 { margin: 24px 0 18px; font-size: clamp(54px, 6vw, 80px); line-height: .99; letter-spacing: -.075em; font-weight: 740; }
.text-accent { color: var(--green); }
.hero-lede { max-width: 490px; color: var(--ink-soft); font-size: 17px; line-height: 1.7; margin-bottom: 32px; }
.hero-points { display: grid; gap: 15px; }
.hero-points > div { display: flex; align-items: center; gap: 13px; }
.point-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 11px; color: var(--green); background: var(--mint); font-size: 10px; letter-spacing: .03em; font-weight: 800; }
.hero-points strong, .hero-points small { display: block; }
.hero-points strong { font-size: 13px; font-weight: 720; }
.hero-points small { margin-top: 3px; font-size: 12px; color: var(--muted); }
.hero-note { display: inline-flex; gap: 8px; align-items: center; margin-top: 32px; padding: 10px 13px; border: 1px solid #e7ebe3; border-radius: 100px; color: var(--ink-soft); background: rgba(255,255,255,.58); font-size: 11px; font-weight: 600; }
.hero-note span { color: var(--coral); font-size: 15px; }
.hero-decoration { position: absolute; pointer-events: none; border-radius: 50%; }
.hero-decoration-one { width: 140px; height: 140px; right: -36px; top: 20px; background: rgba(216, 232, 217, .36); }
.hero-decoration-two { width: 54px; height: 54px; left: 43%; bottom: 28px; border: 1px solid rgba(49, 118, 91, .16); }

.card { border: 1px solid rgba(225, 232, 222, .9); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.auth-card { position: relative; z-index: 1; padding: 30px; }
.auth-card-top { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.auth-card-top .eyebrow { font-size: 9px; }
.auth-card h2 { margin: 9px 0 0; font-size: 25px; letter-spacing: -.045em; }
.auth-art { width: 76px; height: 76px; object-fit: contain; border-radius: 50%; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 21px 0; padding: 4px; border-radius: 12px; background: #f2f4ef; }
.tab { min-height: 38px; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: #75817b; cursor: pointer; font-size: 12px; font-weight: 700; transition: all .15s; }
.tab.is-active { color: var(--ink); background: white; box-shadow: 0 2px 8px rgba(28,55,42,.08); }
.form-stack { display: grid; gap: 14px; }
.field { min-width: 0; display: grid; gap: 7px; color: #475d54; font-size: 11px; font-weight: 700; }
.field small { color: #929b96; font-weight: 500; }
.field .field-hint { display: block; color: #aeb9b2; font-size: 11px; font-weight: 400; line-height: 1.45; }
.field input, .field textarea { width: 100%; min-height: 46px; border: 1px solid #e3e8e1; border-radius: 10px; outline: none; padding: 12px 13px; color: var(--ink); background: #fff; font-size: 13px; font-weight: 500; transition: border-color .16s, box-shadow .16s; }
.field textarea { min-height: 88px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #a5aea8; }
.field input:focus, .field textarea:focus { border-color: #75a78c; box-shadow: 0 0 0 3px rgba(49,118,91,.1); }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 19px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; text-decoration: none; font-size: 12px; font-weight: 750; transition: background .16s, transform .16s, box-shadow .16s; }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .58; cursor: wait; }
.button-primary { color: #fff; background: var(--green); box-shadow: 0 6px 14px rgba(49,118,91,.17); }
.button-primary:hover:not(:disabled) { background: var(--green-dark); box-shadow: 0 8px 18px rgba(49,118,91,.24); }
.button-wide { width: 100%; margin-top: 3px; }
.button-small { min-height: 34px; padding: 0 13px; font-size: 11px; }
.button-quiet { color: var(--ink-soft); border-color: var(--line); background: #fff; }
.button-quiet:hover { color: var(--green); border-color: var(--mint-strong); background: #fbfdf9; }
.button-danger { color: #9f4a37; border-color: #f1d9d1; background: #fff8f5; }
.button-danger:hover { background: #fff0eb; }
.form-message { min-height: 15px; margin: -7px 0 0; color: #b44836; font-size: 11px; line-height: 1.45; }
.form-message.success { color: var(--green); }
.privacy-note { margin: 20px 0 0; color: #7d8983; font-size: 10px; line-height: 1.6; text-align: center; }
.privacy-note span { color: var(--green); margin-right: 4px; }

.page-width { width: min(1030px, calc(100% - 64px)); margin: 52px auto 82px; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 42px; }
.dashboard-heading h1 { margin: 11px 0 8px; font-size: clamp(34px, 4vw, 45px); letter-spacing: -.065em; }
.dashboard-heading h1 span { color: var(--green); }
.dashboard-heading p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.section-label { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: var(--ink); font-size: 14px; font-weight: 760; }
.count-pill { min-width: 24px; height: 24px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: 99px; background: var(--mint); color: var(--green); font-size: 10px; }
.events-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.event-card { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: transform .18s, box-shadow .18s, border-color .18s; }
.event-card:hover { transform: translateY(-2px); border-color: #d5e3d5; box-shadow: 0 12px 28px rgba(31,60,47,.07); }
.event-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.event-card-open { width: 100%; display: block; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.event-card-open:focus-visible { outline: 3px solid rgba(49,118,91,.35); outline-offset: 6px; border-radius: 3px; }
.event-card-title { min-width: 0; overflow-wrap: anywhere; font-size: 17px; letter-spacing: -.03em; font-weight: 740; }
.event-card-description { min-height: 18px; display: block; margin: 8px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: #738078; font-size: 10px; }
.event-meta span { display: inline-flex; align-items: center; gap: 5px; }
.status-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 99px; color: var(--green); background: #eef5ed; font-size: 9px; font-weight: 750; }
.status-badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ''; }
.status-badge.drawn { color: #9a5b28; background: #fbf2e7; }
.empty-state { max-width: 530px; margin: 24px auto 0; padding: 42px 30px; text-align: center; box-shadow: 0 12px 38px rgba(31,60,47,.05); }
.empty-illustration { width: 60px; height: 60px; margin: auto auto 17px; display: grid; place-items: center; border-radius: 19px; background: var(--mint); font-size: 28px; }
.empty-state h2 { margin-bottom: 8px; font-size: 22px; letter-spacing: -.04em; }
.empty-state p { max-width: 340px; margin: 0 auto 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.event-screen { margin-top: 24px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px; padding: 7px 0; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 12px; font-weight: 700; }
.back-link:hover { color: var(--green); }
.event-detail-head { padding: 26px 28px; display: flex; align-items: start; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 17px; background: white; }
.event-detail-head h1 { margin: 8px 0 7px; font-size: clamp(28px, 4vw, 39px); line-height: 1.1; letter-spacing: -.06em; overflow-wrap: anywhere; }
.event-detail-head p { margin-bottom: 0; max-width: 630px; color: var(--muted); font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.event-detail-summary { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; color: var(--ink-soft); font-size: 11px; }
.event-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-grid { display: grid; grid-template-columns: 1fr 305px; gap: 16px; margin-top: 16px; align-items: start; }
.detail-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.detail-card h2 { margin-bottom: 5px; font-size: 16px; letter-spacing: -.03em; }
.detail-card > p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.participant-list { display: grid; gap: 0; margin-top: 15px; }
.person-row { min-height: 48px; display: flex; align-items: center; gap: 10px; border-top: 1px solid #f0f2ee; font-size: 12px; }
.person-avatar { width: 30px; height: 30px; display: grid; flex: 0 0 30px; place-items: center; border-radius: 10px; background: var(--mint); color: var(--green); font-size: 11px; font-weight: 800; }
.person-name { flex: 1; font-weight: 650; overflow-wrap: anywhere; }
.person-group { color: var(--muted); font-size: 10px; }
.remove-person { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 28px; border: 0; border-radius: 8px; background: #fff7f4; color: #a55740; cursor: pointer; font-size: 17px; line-height: 1; }
.remove-person:hover { background: #fce7de; }
.detail-side { display: grid; gap: 14px; }
.invite-box { display: grid; gap: 10px; }
.invite-link { min-width: 0; padding: 11px 12px; border: 1px dashed #b9cebd; border-radius: 9px; background: #f8fbf6; color: var(--green-dark); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.code-label { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; }
.code-label strong { color: var(--ink); letter-spacing: .13em; font-size: 14px; }
.draw-help { padding: 12px; border-radius: 10px; background: #f5f7f1; color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
.draw-help strong { color: var(--ink); }
.empty-participants { padding: 20px 8px; color: var(--muted); text-align: center; font-size: 11px; }
.side-danger { border-top: 1px solid var(--line); padding-top: 14px; }
.side-danger .button { width: 100%; }

.dialog { width: min(520px, calc(100% - 28px)); max-height: min(92vh, 820px); padding: 0; overflow: auto; border: 0; border-radius: 20px; background: transparent; color: var(--ink); }
.dialog::backdrop { background: rgba(15, 34, 27, .45); backdrop-filter: blur(3px); }
.dialog-card { position: relative; padding: 30px; background: white; border-radius: 20px; box-shadow: 0 24px 80px rgba(10,35,25,.22); }
.dialog-card h2 { margin: 8px 0 2px; font-size: 27px; letter-spacing: -.05em; }
.dialog-card > .muted { margin-bottom: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.dialog-close { width: 31px; height: 31px; position: absolute; top: 17px; right: 17px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #f1f4ee; color: var(--ink-soft); cursor: pointer; font-size: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; top: 14px; left: 13px; color: var(--muted); font-size: 13px; }
.input-prefix input { padding-left: 27px; }

.participant-page { background: radial-gradient(ellipse at 50% 0%, #eaf2e9 0, transparent 36rem), var(--paper); }
.participant-main { width: min(480px, calc(100% - 36px)); margin: 40px auto 75px; }
.participant-auth { padding: 30px; }
.participant-intro { text-align: center; }
.participant-intro img { display: block; width: 72px; height: 72px; margin: 0 auto 13px; object-fit: contain; }
.participant-intro .eyebrow { font-size: 9px; }
.participant-intro h1 { margin: 9px 0 9px; font-size: 34px; line-height: 1.08; letter-spacing: -.06em; }
.participant-intro p { max-width: 360px; margin: auto; color: var(--muted); font-size: 12px; line-height: 1.65; }
.participant-auth .tabs { margin-top: 24px; }
.participant-auth .privacy-note { margin-top: 17px; }
.participant-home { padding: 30px; text-align: center; }
.participant-welcome-icon { width: 66px; height: 66px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 21px; background: var(--mint); color: var(--green); font-size: 30px; }
.participant-home h1 { margin: 8px 0 8px; font-size: 30px; line-height: 1.1; letter-spacing: -.055em; }
.participant-home > p { margin-bottom: 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.assignment-card { margin: 20px 0 14px; padding: 19px; border-radius: 14px; background: var(--mint); text-align: left; }
.assignment-card .eyebrow { font-size: 9px; }
.assignment-name { margin: 6px 0 0; color: var(--green-dark); font-size: 28px; font-weight: 760; letter-spacing: -.05em; overflow-wrap: anywhere; }
.wish-card { margin-top: 11px; padding: 14px; border: 1px solid #dae7dc; border-radius: 11px; background: rgba(255,255,255,.7); text-align: left; }
.wish-card strong { display: block; margin-bottom: 5px; font-size: 10px; }
.wish-card p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.waiting-card { margin: 20px 0 14px; padding: 22px 18px; border-radius: 14px; background: #f5f6f1; }
.waiting-icon { margin-bottom: 8px; color: var(--green); font-size: 26px; }
.waiting-card strong { display: block; font-size: 14px; }
.waiting-card p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.profile-form { margin-top: 18px; text-align: left; }
.profile-form > .field { text-align: left; }
.profile-form .button { margin-top: 5px; }
.participant-actions { display: flex; justify-content: center; margin-top: 16px; }
.participant-actions button { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 11px; text-decoration: underline; }
.participant-event-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; color: var(--muted); font-size: 10px; }

.toast { position: fixed; z-index: 10; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); max-width: min(440px, calc(100% - 32px)); padding: 11px 16px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; border-radius: 11px; background: #193b30; color: white; box-shadow: 0 12px 35px rgba(14,40,29,.2); font-size: 12px; text-align: center; transition: .2s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.site-footer { width: min(1180px, calc(100% - 64px)); min-height: 62px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); color: #8d9891; font-size: 10px; }
.site-footer a { font-size: 10px; }

@media (max-width: 920px) {
  .hero-layout { grid-template-columns: 1fr 390px; gap: 35px; }
  .hero-copy h1 { font-size: clamp(50px, 6.2vw, 68px); }
  .auth-card { padding: 25px; }
  .detail-grid { grid-template-columns: 1fr 270px; }
}
@media (max-width: 760px) {
  .topbar { width: calc(100% - 36px); height: 68px; }
  .hero-layout { width: calc(100% - 36px); min-height: unset; margin: 0 auto 46px; padding: 37px 0 0; grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { padding: 0 2px; }
  .hero-copy h1 { margin: 20px 0 13px; font-size: clamp(52px, 12vw, 70px); }
  .hero-lede { max-width: 520px; margin-bottom: 24px; font-size: 15px; }
  .hero-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .hero-points > div { display: grid; grid-template-columns: 32px 1fr; align-items: start; gap: 8px; }
  .point-icon { width: 31px; height: 31px; flex-basis: 31px; }
  .hero-points strong { font-size: 10px; line-height: 1.35; }
  .hero-points small { font-size: 9px; line-height: 1.4; }
  .hero-note { margin-top: 20px; font-size: 10px; }
  .auth-card { width: min(480px, 100%); margin: auto; padding: 25px; }
  .hero-decoration-one { width: 94px; height: 94px; top: 0; right: -15px; }
  .hero-decoration-two { display: none; }
  .page-width { width: calc(100% - 36px); margin: 35px auto 58px; }
  .dashboard-heading { align-items: start; margin-bottom: 30px; }
  .dashboard-heading h1 { font-size: 35px; }
  .dashboard-heading p { max-width: 430px; font-size: 12px; line-height: 1.5; }
  .dashboard-heading > .button { min-height: 42px; padding: 0 13px; font-size: 11px; }
  .events-grid { grid-template-columns: 1fr; }
  .event-detail-head { display: grid; padding: 22px; }
  .event-detail-actions { justify-content: flex-start; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { grid-template-columns: 1fr 1fr; align-items: start; }
  .side-danger { grid-column: 1 / -1; }
  .event-screen { margin-top: 20px; }
}
@media (max-width: 480px) {
  .topbar { width: calc(100% - 30px); height: 62px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 27px; height: 27px; }
  .topbar-right { gap: 9px; }
  .subtle-link { font-size: 11px; }
  .account-label { display: none; }
  .hero-layout { width: calc(100% - 30px); padding-top: 29px; gap: 24px; }
  .eyebrow { font-size: 9px; }
  .hero-copy h1 { font-size: clamp(46px, 13.1vw, 59px); }
  .hero-lede { font-size: 13px; line-height: 1.6; }
  .hero-points { gap: 6px; }
  .hero-points > div { display: flex; flex-direction: column; gap: 5px; }
  .hero-points strong { font-size: 9px; }
  .hero-points small { font-size: 8px; }
  .point-icon { height: 28px; width: 28px; flex-basis: 28px; font-size: 9px; }
  .hero-note { max-width: 100%; font-size: 9px; }
  .auth-card { padding: 21px; border-radius: 17px; }
  .auth-card h2 { font-size: 22px; }
  .auth-art { width: 61px; height: 61px; }
  .tabs { margin: 17px 0; }
  .tab { font-size: 10px; }
  .field { font-size: 10px; }
  .field .field-hint { font-size: 10px; }
  .field input, .field textarea { min-height: 44px; font-size: 12px; }
  .button { min-height: 44px; font-size: 11px; }
  .page-width { width: calc(100% - 30px); margin: 27px auto 45px; }
  .dashboard-heading { gap: 12px; margin-bottom: 25px; }
  .dashboard-heading h1 { font-size: 29px; }
  .dashboard-heading p { max-width: 245px; font-size: 10px; }
  .dashboard-heading > .button { min-height: 38px; padding: 0 10px; font-size: 9px; white-space: nowrap; }
  .section-label { font-size: 12px; }
  .event-card { padding: 17px; }
  .event-card-title { font-size: 15px; }
  .detail-side { grid-template-columns: 1fr; }
  .side-danger { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
  .dialog-card { padding: 25px 21px; }
  .participant-main { width: calc(100% - 26px); margin: 24px auto 45px; }
  .participant-auth, .participant-home { padding: 23px 19px; border-radius: 17px; }
  .participant-intro h1 { font-size: 30px; }
  .site-footer { width: calc(100% - 30px); min-height: 57px; font-size: 9px; }
  .site-footer a { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Visual theme kept from the uploaded Christmas app. The server and data layer remain local to the VPS. */
:root {
  color-scheme: dark;
  --ink: #f3f4f6;
  --ink-soft: #d1d5db;
  --muted: #9ca3af;
  --green: #22c55e;
  --green-dark: #15803d;
  --mint: rgba(34, 197, 94, .15);
  --mint-strong: rgba(34, 197, 94, .28);
  --coral: #ef4444;
  --line: rgba(255, 255, 255, .14);
  --paper: #0f2b1d;
  --white: rgba(255, 255, 255, .09);
  --shadow: 0 22px 62px rgba(0, 0, 0, .3);
  font-family: Lato, Arial, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
body, .participant-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #0f2b1d;
  background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: var(--ink);
}
body > main { flex: 1; }
body::before {
  position: fixed;
  z-index: 0;
  inset: -20% 0 0;
  pointer-events: none;
  opacity: .32;
  background-image: radial-gradient(2px 2px at 12% 20%, rgba(255,255,255,.85) 50%, transparent 55%), radial-gradient(2px 2px at 42% 70%, rgba(255,255,255,.75) 50%, transparent 55%), radial-gradient(3px 3px at 78% 33%, rgba(255,255,255,.8) 50%, transparent 55%), radial-gradient(2px 2px at 92% 82%, rgba(255,255,255,.7) 50%, transparent 55%);
  background-size: 210px 230px;
  animation: snow-drift 22s linear infinite;
  content: '';
}
body > * { position: relative; z-index: 1; }
@keyframes snow-drift { from { transform: translateY(-40px); } to { transform: translateY(150px); } }
button { font-family: Lato, Arial, ui-sans-serif, system-ui, sans-serif; }
input, textarea, select { font-family: Lato, Arial, ui-sans-serif, system-ui, sans-serif; font-size: 16px; }
h1, h2, h3, .brand { font-family: 'Mountains of Christmas', 'Comic Sans MS', cursive; }
.topbar { color: #f9fafb; }
.brand { color: #f9fafb; font-size: 19px; letter-spacing: -.02em; }
.brand-mark { color: #fff; background: #b91c1c; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.brand-light { color: #eab308; }
.subtle-link, .site-footer a { color: #e5e7eb; }
.subtle-link:hover, .site-footer a:hover { color: #fde047; }
.account-label { color: #d1d5db; }
.eyebrow { color: #facc15; }
.eyebrow-dot { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.17); }
.hero-copy h1, .dashboard-heading h1, .event-detail-head h1, .participant-intro h1 { color: #f9fafb; text-shadow: 0 3px 18px rgba(0,0,0,.22); }
.text-accent, .dashboard-heading h1 span { color: #facc15; }
.hero-lede, .dashboard-heading p, .event-detail-head p { color: #d1d5db; }
.hero-points small, .muted, .privacy-note, .field small { color: #aeb9b2; }
.hero-points strong { color: #f9fafb; }
.point-icon { color: #fde047; background: rgba(234,179,8,.15); border: 1px solid rgba(250,204,21,.19); }
.hero-note { color: #e5e7eb; border-color: rgba(255,255,255,.14); background: rgba(0,0,0,.22); }
.hero-note span { color: #facc15; }
.hero-decoration-one { background: rgba(220,38,38,.12); }
.hero-decoration-two { border-color: rgba(250,204,21,.24); }
.card, .auth-card, .event-card, .event-detail-head, .detail-card, .family-card, .independent-card, .side-danger,
.empty-state, .participant-home, .participant-auth, .dialog-card, .admin-event, .faq-card {
  color: #f3f4f6;
  border-color: rgba(255,255,255,.15);
  background: rgba(255,255,255,.085);
  box-shadow: 0 18px 45px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}
.auth-card, .participant-auth, .participant-home { border-radius: 18px; }
.auth-card h2, .empty-state h2, .detail-card h2, .participant-home h1 { color: #fff; }
.tabs { background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.1); }
.tab { color: #c4ccc7; }
.tab.is-active { color: #fff; background: #b91c1c; box-shadow: 0 5px 14px rgba(0,0,0,.25); }
.field, .field-label { color: #e5e7eb; }
.field input, .field textarea, .field select, .field select option,
.admin-search, .member-editor input, .member-editor textarea, .member-editor select {
  color: #f9fafb;
  border-color: rgba(255,255,255,.17);
  background: rgba(17,24,39,.88);
}
.field input::placeholder, .field textarea::placeholder, .member-editor input::placeholder, .member-editor textarea::placeholder { color: #9ca3af; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #eab308; box-shadow: 0 0 0 3px rgba(234,179,8,.16); }
.button-primary { color: #fff; background: #dc2626; box-shadow: 0 7px 18px rgba(0,0,0,.25); }
.button-primary:hover:not(:disabled) { background: #b91c1c; }
.button-quiet { color: #f3f4f6; border-color: rgba(255,255,255,.19); background: rgba(37,99,235,.48); }
.button-quiet:hover { color: #fff; border-color: rgba(147,197,253,.5); background: rgba(37,99,235,.7); }
.button-danger { color: #fee2e2; border-color: rgba(248,113,113,.45); background: rgba(127,29,29,.76); }
.button-danger:hover { background: #b91c1c; }
.button-whatsapp { color: white; background: #15803d; }
.button-whatsapp:hover { background: #166534; }
.form-message { color: #fecaca; }
.form-message.success { color: #86efac; }
.privacy-note { color: #c3cec6; }
.privacy-note span { color: #facc15; }
.section-label { color: #fff; }
.count-pill { color: #fef08a; background: rgba(234,179,8,.18); }
.event-card:hover { border-color: rgba(250,204,21,.45); box-shadow: 0 18px 40px rgba(0,0,0,.32); }
.event-card-title { color: #fff; }
.event-card-description, .event-meta { color: #cbd5d1; }
.status-badge { color: #bbf7d0; background: rgba(22,101,52,.68); }
.status-badge.drawn { color: #fef08a; background: rgba(133,77,14,.65); }
.empty-illustration, .participant-welcome-icon { background: rgba(234,179,8,.16); color: #fde047; }
.back-link { color: #e5e7eb; }
.back-link:hover { color: #facc15; }
.event-detail-summary, .participant-event-meta { color: #d1d5db; }
.event-countdown > span { border-color: rgba(250,204,21,.24); background: rgba(0,0,0,.3); color: #facc15; }
.participant-list { border-color: rgba(255,255,255,.12); }
.person-row, .family-card-head, .participant-list .empty-participants { border-color: rgba(255,255,255,.12); }
.person-avatar { color: #fff; background: #b91c1c; }
.person-name, .family-card-head strong { color: #fff; }
.member-row small, .family-card-head small, .draw-help, .master-results-head small, .result-row small { color: #cbd5d1; }
.family-card, .independent-card { padding: 18px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(0,0,0,.2); }
.text-action, .add-member-link, .remove-person, .icon-action { color: #fde047; }
.remove-person { border-color: rgba(248,113,113,.38); color: #fecaca; }
.danger-text { color: #fca5a5; }
.draw-help { border-color: rgba(250,204,21,.2); background: rgba(234,179,8,.08); }
.master-results { border-color: rgba(250,204,21,.27); background: rgba(0,0,0,.26); }
.master-results-head h3, .result-row strong { color: #fff; }
.result-row { border-color: rgba(255,255,255,.1); }
.invite-link { color: #e5e7eb; border-color: rgba(255,255,255,.16); background: rgba(0,0,0,.28); }
.code-label { color: #d1d5db; border-color: rgba(255,255,255,.14); }
.code-label strong { color: #fde047; }
.side-danger { padding: 14px; border: 1px solid rgba(248,113,113,.2); border-radius: 14px; background: rgba(127,29,29,.2); }
.dialog { color: #f3f4f6; border-color: rgba(255,255,255,.18); background: #142c20; }
.dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(4px); }
.dialog-card h2 { color: #fff; }
.dialog-close { color: #e5e7eb; background: rgba(255,255,255,.1); }
.input-prefix span { color: #d1d5db; }
.participant-main { margin-top: 28px; }
.participant-intro p, .participant-home > p { color: #d1d5db; }
.participant-intro h1 { font-size: clamp(34px, 8vw, 45px); }
.assignment-card { color: #fff; background: rgba(22,101,52,.38); border: 1px solid rgba(134,239,172,.23); }
.assignment-name { color: #fde68a; }
.receiver-meta { color: #d1d5db; }
.wish-card { border-color: rgba(250,204,21,.22); background: rgba(234,179,8,.1); }
.wish-card strong { color: #fef3c7; }
.wish-card p { color: #e5e7eb; }
.waiting-card { background: rgba(0,0,0,.24); }
.waiting-icon { color: #facc15; }
.waiting-card strong { color: #fff; }
.waiting-card p { color: #cbd5d1; }
.participant-actions button { color: #d1d5db; }
.toast { color: #fff; background: #111827; border: 1px solid rgba(255,255,255,.13); }
.site-footer { color: #9ca3af; border-color: rgba(255,255,255,.1); }
.site-footer a { color: #eab308; }
.admin-main { min-height: calc(100vh - 146px); }
.admin-summary { display: flex; justify-content: space-between; gap: 12px; padding: 12px 15px; color: #fef08a; border: 1px solid rgba(250,204,21,.2); border-radius: 12px; background: rgba(0,0,0,.2); font-size: 12px; }
.admin-events { display: grid; gap: 14px; margin-top: 16px; }
.admin-event { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; }
.admin-event-info { min-width: 0; }
.admin-event h2 { margin: 10px 0; color: #fff; font-size: 22px; overflow-wrap: anywhere; }
.admin-event-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: #d1d5db; font-size: 12px; }
.admin-event-code { display: block; margin-top: 12px; color: #9ca3af; overflow-wrap: anywhere; }
.admin-delete { flex: 0 0 auto; }
.loading-card { padding: 24px; color: #d1d5db; }
.member-editor-list { display: grid; gap: 11px; }
.member-editor-heading { display: flex; justify-content: space-between; color: #fff; }
.member-editor-heading strong, .member-editor-heading small { display: block; }
.member-editor-heading small { margin-top: 4px; color: #aeb9b2; font-size: 11px; }
.member-editor { min-width: 0; margin: 0; padding: 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(0,0,0,.25); }
.member-editor-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; color: #fde047; font-size: 12px; }
.member-editor .field { margin-bottom: 10px; }
.field-label { font-size: 11px; font-weight: 700; }
.human-check { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(0,0,0,.25); }
.human-check > div { display: grid; gap: 4px; color: #fde047; }
.human-check .eyebrow { font-size: 9px; }
.human-check .field { width: 110px; }
.human-check input { min-height: 42px; text-align: center; }
.faq-panel { margin: 34px 0 42px; }
.faq-heading { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 13px; color: #facc15; }
.faq-heading h2 { margin: 0; color: #facc15; font-size: 23px; }
.faq-card { position: relative; min-height: 186px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 20px 13px 28px; }
.faq-content { max-width: 390px; justify-self: center; text-align: center; }
.faq-content > span { font-size: 28px; }
.faq-content h3 { margin: 5px 0; color: #fff; font-size: 20px; }
.faq-content p { margin: 0; color: #d1d5db; font-size: 12px; line-height: 1.6; }
.faq-arrow { width: 38px; height: 54px; border: 0; color: #e5e7eb; background: transparent; cursor: pointer; font-size: 40px; }
.faq-arrow:hover { color: #fde047; }
.faq-dots { position: absolute; bottom: 12px; left: 50%; display: flex; gap: 6px; transform: translateX(-50%); }
.faq-dot { width: 7px; height: 7px; border-radius: 9px; background: rgba(255,255,255,.27); }
.faq-dot.active { width: 22px; background: #facc15; }
.participants-accordion > summary { display: flex; align-items: center; gap: 10px; color: #fff; cursor: pointer; list-style: none; font-size: 18px; font-weight: 700; }
.participants-accordion > summary::-webkit-details-marker { display: none; }
.participants-accordion > summary::after { margin-left: auto; color: #facc15; content: '⌄'; }
.participants-accordion[open] > summary::after { content: '⌃'; }
.accordion-hint { color: #aeb9b2; font-family: Lato, Arial, sans-serif; font-size: 10px; font-weight: 500; }
.participants-accordion > p { margin: 10px 0 14px; color: #cbd5d1; font-size: 12px; }
.event-faq-panel { max-width: 720px; margin: 27px auto 14px; }
.event-preview-meta { display: block; margin-top: 8px; color: #cbd5d1; }
.household-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; padding: 13px; border: 1px solid rgba(59,130,246,.3); border-radius: 13px; background: rgba(30,64,175,.19); text-align: left; }
.household-toolbar > div { display: grid; gap: 4px; }
.household-toolbar small { color: #bfdbfe; font-size: 10px; }
.household-toolbar strong { color: #fff; font-size: 15px; }
.inline-edit { display: flex; flex-wrap: wrap; gap: 6px; }
.inline-edit input { width: min(190px, 38vw); min-height: 36px; padding: 7px 9px; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(0,0,0,.25); }
.inline-edit .form-message { flex: 1 0 100%; }
.household-members { display: grid; gap: 13px; margin-top: 20px; text-align: left; }
.member-home-card { min-width: 0; padding: 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(0,0,0,.19); }
.member-home-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.member-home-title > div { display: grid; gap: 3px; }
.member-home-title strong { color: #fff; }
.member-home-title small { color: #cbd5d1; font-size: 10px; }
.member-profile-form { margin-top: 12px; }
.owned-add-member { margin-top: 18px; text-align: left; }
.owned-add-member > h2 { font-family: Lato, Arial, sans-serif; font-size: 16px; }
.account-settings { margin-top: 16px; padding: 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(0,0,0,.18); text-align: left; }
.account-settings summary { color: #fde047; cursor: pointer; font-size: 12px; font-weight: 700; }
.account-settings form { margin: 15px 0; }
.forgot-toggle { width: 100%; padding: 6px; text-align: center; }
.forgot-form { margin-top: 7px; padding: 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(0,0,0,.2); }
.forgot-form > strong { color: #fde047; }
.forgot-form > .muted { margin: -8px 0 0; color: #cbd5d1; font-size: 11px; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
  .hero-layout { min-height: unset; }
  .admin-event { align-items: stretch; flex-direction: column; }
  .admin-delete { width: 100%; }
  .household-toolbar { align-items: stretch; flex-direction: column; }
  .inline-edit input { flex: 1; width: auto; }
  .human-check { align-items: stretch; }
  .faq-card { min-height: 205px; grid-template-columns: 34px 1fr 34px; }
  .faq-arrow { width: 32px; }
}
@media (max-width: 480px) {
  .topbar-right { gap: 6px; }
  .topbar-right .subtle-link, .topbar-right .button-small { font-size: 9px; }
  .brand { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }