:root {
  color-scheme: light;
  --paper: #fff8ef;
  --card: #fffefa;
  --ink: #171717;
  --muted: #414141;
  --green: #c6383d;
  --green-dark: #a1262e;
  --green-soft: #fbe4e2;
  --red: #b52531;
  --red-soft: #fbe4e2;
  --gold: #d3a855;
  --line: #e9e5da;
  --shadow: 0 16px 46px rgba(34, 55, 42, .07);
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  background:
    radial-gradient(ellipse at 92% 3%, rgba(213, 227, 208, .48), transparent 25rem),
    var(--paper);
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }

.shell { max-width: 1120px; margin: 0 auto; padding: 0 28px 64px; }
.topbar { height: 82px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid rgba(32, 58, 50, .1); }
.topbar > .language-switch { margin-left: auto; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer > div { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-link { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.footer-link:hover { color: var(--red); }
.footer-link:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 3px; }
.legal-notice h3 { margin: 22px 0 8px; font-family: inherit; font-size: 16px; }
.legal-notice p { line-height: 1.65; }
.legal-operator { margin: 22px 0; padding: 16px; background: var(--paper); border-radius: 10px; font-size: 14px; }
.legal-operator > div + div { margin-top: 10px; }
.legal-operator dt { font-weight: 700; }
.legal-operator dd { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-line; }
.legal-operator a { color: var(--red); text-underline-offset: 3px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.04em; font-size: 20px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 13px 13px 13px 5px; background: var(--green); color: #fff9e9; }
.brand-logo { display: block; width: 42px; height: 44px; object-fit: contain; border-radius: 8px; mix-blend-mode: multiply; }
.ns-icon { display: block; flex-shrink: 0; width: 24px; height: 24px; object-fit: contain; mix-blend-mode: multiply; }
.brand-mark .ns-icon { width: 31px; height: 31px; }
.eyebrow .ns-icon { display: inline-block; width: 22px; height: 22px; vertical-align: -5px; }
.top-note { margin-left: auto; color: var(--muted); font-size: 12px; }
.language-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255, 254, 250, .85); }
.language-option { display: flex; width: 37px; min-height: 31px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #69756d; font-size: 19px; line-height: 1; }
.flag-icon { display: block; width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 1px 3px #18352b24; }
.language-option.selected { background: var(--green); color: white; }
.language-option:focus-visible { outline: 2px solid #769a79; outline-offset: 2px; }
.main { padding-top: 40px; }

.eyebrow { color: var(--red); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; }
h1 { margin-bottom: 12px; font-size: clamp(36px, 5vw, 54px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; }
h2 { font-size: 30px; letter-spacing: -.025em; margin-bottom: 8px; }
h3 { font-size: 20px; margin-bottom: 6px; }
.lead { max-width: 620px; color: #64726a; line-height: 1.7; font-size: 16px; }
.hero { position: relative; overflow: hidden; padding: 54px 58px; border-radius: 24px; background: #fbe8e2; }
.hero:after { content: none; }
.hero-content { position: relative; z-index: 1; max-width: 560px; }
.hero-art { position: absolute; top: 42px; right: 32px; width: 370px; height: 250px; overflow: hidden; border-radius: 16px; box-shadow: 0 12px 30px rgba(34, 20, 32, .16); }
.hero-art .ns-icon { width: 225px; height: 190px; stroke-width: 1.55; }
.hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero h1 span { color: var(--green); }
.hero .lead { max-width: 530px; margin-bottom: 25px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; border: 0; border-radius: 10px; padding: 0 17px; font-weight: 700; font-size: 13px; text-decoration: none; transition: background .15s, transform .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--green); color: white; }
.button-primary .ns-icon { padding: 2px; border-radius: 5px; background: #fff; mix-blend-mode: normal; }
.button-primary:hover {
  background-color: var(--green-dark);
}
.button-secondary { border: 1px solid var(--line); background: white; color: var(--ink); }
.button-quiet { min-height: 38px; background: transparent; color: var(--green); padding: 0 10px; }
.button-danger { background: var(--red-soft); color: #a63e32; }
.button-small { min-height: 34px; padding: 0 12px; font-size: 12px; }

.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.feature { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 254, 250, .72); }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 12px; background: var(--green-soft); color: var(--green); }
.feature-icon .ns-icon { width: 30px; height: 30px; }
.feature p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.feature h3 { font-family: "DM Sans", sans-serif; font-size: 14px; font-weight: 700; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading .lead { margin-bottom: 0; font-size: 14px; }
.card { border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.form-card { max-width: 780px; margin: 0 auto; padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label { color: #45554b; font-size: 12px; font-weight: 700; }
.field input, .field textarea, .field select, .participant-contact-fields input {
  width: 100%; min-height: 44px; border: 1px solid #e4e3d9; border-radius: 9px; outline: 0;
  background: #fff; padding: 10px 12px; color: var(--ink); font-size: 14px;
}
.field select { appearance: auto; }
.budget-controls { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; }
.budget-controls > * { min-width: 0; }
.field textarea { min-height: 86px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .participant-contact-fields input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(198, 56, 61, .16); }
.field[hidden], .participant-contact-fields input[hidden] { display: none; }
.helper { color: var(--muted); font-size: 11px; line-height: 1.5; }
.participants-editor { margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.section-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.section-label strong { font-size: 13px; }
.participant-inputs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.add-person-input-button, .add-family-button { border-radius: 999px; }
.add-person-input-button, .add-family-button { background: var(--red-soft); color: #57171c; }
.add-person-input-button:hover, .add-family-button:hover { background: #f4cecb; color: #451116; }
.add-person-input-button:focus-visible, .add-family-button:focus-visible { outline: 3px solid #8e1c25; outline-offset: 3px; }
.add-person-input-button { min-height: 48px; margin-top: 12px; padding-inline: 22px; }
.add-family-button { flex: 0 0 auto; }
.participant-input-row { position: relative; min-width: 0; padding-right: 34px; }
.participant-contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.participant-contact-fields input { min-width: 0; min-height: 42px; padding: 9px 10px; font-size: 12px; }
.participant-input-row[data-contact-mode="email"] .participant-contact-fields { grid-template-columns: 1fr; }
.participant-input-row[data-contact-mode="name"] .participant-contact-fields { grid-template-columns: 1fr; }
.remove-input { position: absolute; top: 8px; right: 8px; width: 27px; height: 27px; border: 0; border-radius: 7px; background: transparent; color: #9a9e97; font-size: 17px; }
.remove-input:hover { color: var(--red); background: var(--red-soft); }
.email-import { margin-top: 14px; }
.email-import summary { width: fit-content; color: #65464a; cursor: pointer; font-size: 12px; font-weight: 600; }
.email-import summary:hover { color: var(--red); }
.email-import summary:focus-visible { outline: 2px solid #8e1c25; outline-offset: 3px; border-radius: 3px; }
.email-import-zone { display: grid; gap: 5px; padding: 12px; margin-top: 9px; border: 1px dashed #c9b9b3; border-radius: 10px; background: #fffaf7; text-align: center; }
.email-import-zone.file-over { border-color: var(--red); background: var(--red-soft); }
.email-import-zone label { color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.email-import-zone p { margin: 0; color: var(--muted); font-size: 12px; }
.email-import-zone span { color: var(--red); font-size: 15px; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.email-import-zone:focus-within { outline: 3px solid #8e1c25; outline-offset: 3px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.draw-style { min-width: 0; padding: 22px 0 0; margin: 24px 0 0; border: 0; border-top: 1px solid var(--line); }
.draw-style legend { padding: 0; color: var(--ink); font-size: 15px; font-weight: 700; }
.draw-style > .helper { margin: 4px 0 13px; }
.draw-mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.draw-mode-option { display: flex; align-items: flex-start; gap: 10px; min-height: 78px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.draw-mode-option:has(input:checked) { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 2px rgba(198, 56, 61, .12); }
.draw-mode-option input, .exclude-option input { flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--green); }
.draw-mode-option span, .exclude-option span { display: flex; flex-direction: column; gap: 4px; }
.draw-mode-option strong, .exclude-option strong { color: var(--ink); font-size: 12px; }
.draw-mode-option small, .exclude-option small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.draw-group-settings { margin-top: 12px; padding: 14px; border: 1px solid #e8e8dd; border-radius: 13px; background: #fbfaf6; }
.draw-group-settings[hidden] { display: none; }
.exclude-option { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.setup-households { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.setup-households .families-header { margin-bottom: 12px; }
.setup-households .families-header h3 { font-family: "DM Sans", sans-serif; font-size: 14px; font-weight: 700; }
.setup-households .families-header p { max-width: 440px; line-height: 1.5; }
.setup-member-chip { min-height: 40px; }
.draw-rule-note { margin: 9px 0 0; color: #68766d; font-size: 12px; line-height: 1.5; }

.event-summary { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.summary-chip { display: inline-flex; align-items: center; gap: 6px; color: #303030; background: var(--green-soft); border-radius: 7px; padding: 7px 10px; font-size: 12px; }
.summary-chip .ns-icon { width: 14px; height: 14px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); gap: 18px; }
.dashboard-grid > * { min-width: 0; }
.panel { padding: 23px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 17px; }
.panel-heading > div { min-width: 0; }
.panel-heading h3 { margin: 0; font-size: 19px; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.stat { min-width: 0; padding: 13px 15px; border-radius: 12px; background: #f5f4ed; }
.stat b { display: block; font-size: 20px; letter-spacing: -.04em; }
.stat span { color: var(--muted); font-size: 11px; }
.progress-track { height: 5px; overflow: hidden; margin-top: 13px; border-radius: 10px; background: #ecece4; }
.progress-bar { height: 100%; border-radius: inherit; background: var(--green); transition: width .2s; }
.participant-list { display: flex; flex-direction: column; }
.participant-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; min-height: 48px; border-bottom: 1px solid #f0eee7; }
.participant-line:last-child { border-bottom: 0; }
.participant-line.has-group { grid-template-columns: minmax(0, 1fr) auto auto; }
.group-pill { justify-self: end; max-width: 150px; overflow: hidden; padding: 5px 10px; border: 1px solid var(--group-border); border-radius: 999px; background: var(--group-bg); color: var(--group-ink); font-size: 12px; font-weight: 600; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.participant-actions { display: flex; align-items: center; gap: 6px; }
.person-name { display: flex; align-items: center; min-width: 0; gap: 10px; font-size: 13px; font-weight: 600; }
.person-label { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.person-label strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.person-label small { overflow: hidden; color: var(--muted); font-size: 10px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font-size: 11px; font-weight: 700; }
.hint-state { color: #66836a; font-size: 11px; white-space: nowrap; }
.hint-state.pending { color: #9b9c92; }
.event-actions { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 19px; margin-top: 13px; border-top: 1px solid var(--line); }
.status-banner { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px; padding: 13px; border-radius: 11px; background: var(--green-soft); color: #5b161c; font-size: 12px; line-height: 1.55; }
.status-banner.warning { color: #5c3b0a; background: #fff2d6; }
.status-banner strong { display: block; margin-bottom: 2px; font-size: 13px; }
.empty-state { padding: 26px 12px; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.6; }
.divider { height: 1px; background: var(--line); margin: 19px 0; }

.families-panel { margin-top: 18px; padding: 24px; }
.families-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.families-header h3 { margin: 0; }
.families-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.family-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.family-card { min-height: 156px; padding: 14px; border: 1px solid var(--group-border, var(--line)); border-radius: 14px; background: var(--group-bg, #fbfaf5); transition: border-color .15s, background .15s; }
.family-card.drag-over { border: 2px dashed var(--group-ink, var(--green)); background: var(--group-bg, var(--green-soft)); }
.family-card.independent { border-color: var(--group-border, #dcd9cf); background: var(--group-bg, #f2f1ec); }
.family-card.independent.drag-over { border-color: var(--group-ink, #666151); background: var(--group-bg, #f2f1ec); }
.family-card.independent .family-emoji { color: var(--group-ink, #666151); }
.family-card.independent .drop-hint { border-color: var(--group-border, #dcd9cf); color: var(--group-ink, #666151); }
.family-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.family-emoji { display: inline-grid; flex: 0 0 30px; place-items: center; color: var(--group-ink, var(--green)); }
.family-emoji .ns-icon { width: 30px; height: 30px; }
.family-name { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 700; }
.family-name:focus { border-bottom: 1px solid #87a68a; }
.family-count { color: var(--muted); font-size: 10px; white-space: nowrap; }
.family-members { min-height: 70px; display: flex; flex-direction: column; gap: 6px; }
.member-chip { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 31px; padding: 3px 7px 3px 9px; border: 1px solid #ebe8dd; border-radius: 8px; background: white; color: #405248; cursor: grab; font-size: 12px; }
.member-chip:active { cursor: grabbing; }
.member-chip.dragging { opacity: .42; }
.move-member { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #859087; font-size: 14px; }
.move-member:hover { background: #f0f1e9; color: var(--green); }
.drop-hint { display: flex; min-height: 66px; align-items: center; justify-content: center; border: 1px dashed #e2dfd4; border-radius: 8px; color: #a1a39a; font-size: 11px; }
.loose-people { margin-top: 17px; padding: 15px; border: 1px dashed #d7d6ca; border-radius: 12px; background: #f9f8f3; }
.loose-heading { margin-bottom: 9px; color: #6f786f; font-size: 11px; font-weight: 700; }
.loose-members { display: flex; flex-wrap: wrap; gap: 7px; min-height: 32px; }
.loose-members .member-chip { min-width: 130px; }
.remove-family { border: 0; background: none; color: #a19f96; font-size: 11px; }
.remove-family:hover { color: var(--red); }

.invite-list { display: flex; flex-direction: column; gap: 8px; }
.invite-item { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 9px 10px; border: 1px solid #efede5; border-radius: 10px; }
.invite-person { min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.invite-person .avatar { width: 26px; height: 26px; flex-basis: 26px; font-size: 10px; }
.invite-item .button { min-height: 30px; padding: 0 9px; font-size: 11px; }
.event-link-box { display: flex; align-items: center; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.event-link-box:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.event-link-box input { flex: 1; width: 0; min-width: 0; padding: 12px; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: monospace; font-size: 13px; }
.copy-link-button { display: grid; place-items: center; flex: 0 0 46px; align-self: stretch; min-height: 46px; padding: 0; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--red); }
.copy-link-button:hover { background: var(--red-soft); }
.copy-link-button:focus-visible { outline: 2px solid var(--red); outline-offset: -4px; border-radius: 8px; }
.copy-link-glyph { position: relative; width: 22px; height: 22px; }
.copy-link-glyph::before, .copy-link-glyph::after { content: ""; position: absolute; width: 13px; height: 15px; border: 1.8px solid currentColor; border-radius: 3px; background: #fff; }
.copy-link-glyph::before { top: 1px; left: 2px; }
.copy-link-glyph::after { top: 6px; left: 7px; }
.invite-message { min-height: 100px !important; font-size: 15px !important; }
.reveal-card { max-width: 650px; margin: 36px auto; padding: 38px; }
.reveal-top { text-align: center; }
.reveal-top .gift-icon { display: grid; width: 52px; height: 52px; place-items: center; margin: 0 auto 8px; border-radius: 17px; background: var(--green-soft); color: var(--green-dark); }
.reveal-top .gift-icon .ns-icon { width: 31px; height: 31px; }
.secret-mascot { flex-shrink: 0; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--green-soft); }
.secret-mascot .ns-icon { width: 48px; height: 48px; }
.reveal-top h1 { font-size: 39px; }
.reveal-details { margin-top: 25px; padding: 22px; border-radius: 15px; background: #f5f5ee; }
.reveal-details h3 { margin: 0 0 12px; font-size: 18px; }
.hint-block { margin-top: 16px; }
.hint-block:first-child { margin-top: 0; }
.hint-block strong { display: block; margin-bottom: 6px; color: #536359; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.hint-block p { margin: 0; color: #54645a; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.participant-edit { max-width: 650px; margin: 28px auto; padding: 28px; }
.toast { position: fixed; z-index: 20; right: 22px; bottom: 22px; max-width: min(390px, calc(100vw - 44px)); padding: 12px 16px; border-radius: 11px; background: #203a32; color: white; box-shadow: var(--shadow); font-size: 13px; animation: toast-in .18s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.confetti-burst { position: fixed; z-index: 30; inset: 0; overflow: hidden; pointer-events: none; }
.confetti-piece { position: absolute; top: -18px; left: var(--confetti-left); width: 9px; height: 14px; border-radius: 2px; background: var(--confetti-color); opacity: 0; animation: celebratory-confetti 2.4s ease-in var(--confetti-delay) forwards; }
@keyframes celebratory-confetti {
  0% { opacity: 0; transform: translate3d(0, -10px, 0) rotate(0); }
  8% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--confetti-drift), 105vh, 0) rotate(var(--confetti-turn)); }
}
.modal-backdrop { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(20, 34, 27, .38); }
.modal { width: min(520px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 27px; border-radius: 18px; background: var(--card); box-shadow: 0 22px 70px rgba(18, 30, 22, .2); }
.modal-language-row { display: flex; justify-content: flex-end; margin: -7px -7px 15px 0; }
.modal h2 { font-size: 25px; }
.modal p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.muted { color: var(--muted); }

/* Keep supporting text comfortably readable and maintain strong contrast. */
body, p, label, small, strong, button, input, textarea, select {
  color: var(--ink);
}
.top-note, .lead, .feature p, .page-heading .lead, .field label, .helper,
.draw-mode-option strong, .draw-mode-option small,
.draw-rule-note, .summary-chip, .panel-heading p, .stat span,
.person-label strong, .person-label small, .hint-state, .status-banner,
.status-banner strong, .empty-state, .families-header p, .family-count,
.member-chip, .drop-hint, .loose-heading, .remove-family, .invite-person,
.event-link-box, .hint-block strong, .hint-block p, .modal p, .muted {
  color: #303030;
}
.eyebrow, .feature p, .feature h3, .page-heading .lead, .field label, .helper,
.section-label strong, .participant-contact-fields input, .draw-style legend,
.draw-mode-option strong, .draw-mode-option small,
.draw-rule-note, .summary-chip, .panel-heading p, .stat span,
.person-label strong, .person-label small, .hint-state, .status-banner,
.status-banner strong, .empty-state, .families-header p, .family-name,
.family-count, .member-chip, .drop-hint, .loose-heading, .remove-family,
.invite-person, .invite-item .button, .event-link-box, .invite-message,
.hint-block strong, .hint-block p, .modal p, .toast, .top-note {
  font-size: max(15px, 1em);
}
.eyebrow { letter-spacing: .08em; }
.button, .button-small { min-height: 46px; font-size: 15px; }
.button-small { padding: 0 14px; }
.language-option { min-height: 44px; min-width: 44px; }
.remove-input { width: 44px; height: 44px; }
.move-member { width: 40px; height: 40px; }
.family-count { color: #303030; }
.hint-state.pending { color: #414141; }
.progress-bar { background: var(--green); }
.hero-art img { border-radius: 18px; }
.landing-footer { margin-top: 27px; color: #303030; font-size: 15px; text-align: center; }
.landing-footer span { color: var(--red); }
.person-name { font-size: 15px; }
.link-section-label, .family-name-label { margin-bottom: 9px; color: var(--ink); font-size: 15px; font-weight: 700; }
.link-section-label { display: block; }
.member-chip { min-height: 44px; padding-inline: 10px; }
.move-member { width: 44px; min-height: 44px; }
.remove-family { min-height: 44px; padding: 0 8px; }
.invite-item .button { min-height: 44px; padding: 0 12px; }
:focus-visible { outline: 3px solid #8e1c25; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .confetti-burst { display: none; }
}

@media (max-width: 900px) {
  .hero-content { max-width: 460px; }
  .hero-art { right: 16px; width: 290px; height: 200px; opacity: .85; }
  .hero .lead { max-width: 440px; }
}

@media (max-width: 720px) {
  .shell { padding: 0 16px 40px; }
  .topbar { height: 68px; }
  .main { padding-top: 25px; }
  .hero { padding: 36px 25px; }
  .hero-art { right: -5px; top: auto; bottom: -34px; width: 135px; height: 120px; opacity: .32; }
  .feature-row { grid-template-columns: 1fr; gap: 10px; }
  .feature { display: grid; grid-template-columns: 35px 1fr; column-gap: 12px; padding: 14px; }
  .feature-icon { grid-row: span 2; margin: 1px 0 0; }
  .feature h3 { margin-bottom: 3px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .form-card { padding: 23px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .participant-inputs { grid-template-columns: 1fr; }
  .draw-mode-options { grid-template-columns: 1fr; }
  .draw-mode-option { min-height: 0; }
  .setup-households .families-header { flex-direction: column; }
  .family-grid { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .families-header { align-items: flex-start; }
  .panel { padding: 19px; }
  .participant-line { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .participant-line.has-group { grid-template-columns: minmax(0, 1fr) minmax(0, 40%); }
  .group-pill { max-width: 100%; }
  .participant-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .reveal-card { margin: 20px auto; padding: 25px 19px; }
  .reveal-top h1 { font-size: 32px; }
  .top-note { font-size: 11px; }
  .top-note { display: none; }
  .topbar { justify-content: space-between; }
  .language-switch { margin-left: auto; }
  .language-option { min-height: 30px; padding: 0 6px; }
}
/* Optional affiliate recommendations use the same quiet card treatment as hints. */
.gift-recommendations { margin-top: 24px; padding-top: 22px; border-top: 1px solid #e2e5df; text-align: left; }
.affiliate-disclosure { font-size: .84rem; color: #555f58; line-height: 1.5; }
.gift-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.gift-product { min-width: 0; border: 1px solid #e2e5df; border-radius: 12px; background: #fff; overflow: hidden; }
.gift-product-link { display: flex; flex-direction: column; gap: 9px; padding: 12px; color: inherit; text-decoration: none; height: auto; }
.gift-product-link:hover .gift-product-title, .gift-product-link:focus-visible .gift-product-title { text-decoration: underline; }
.gift-product-image { width: 100%; height: 150px; object-fit: contain; }
.gift-product-title { font-size: .87rem; line-height: 1.4; margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.gift-product-price { font-size: 1rem; }
.gift-product-visit { font-size: .8rem; color: #245c46; text-decoration: underline; }
.gift-product-delivery { padding: 0 12px 12px; margin: 0; font-size: .75rem; }
@media (max-width: 800px) { .gift-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 360px) { .gift-product-grid { grid-template-columns: 1fr; } }
.page-heading.dashboard-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
.dashboard-heading-actions { display: flex; align-items: center; justify-content: flex-start; gap: 14px; flex-wrap: wrap; }
.dashboard-heading-actions .button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.send-invitations-help { margin: 0; }
.button-draw { min-height: 78px; padding: 8px 22px 8px 12px; border: 3px solid var(--red); border-radius: 15px; background: #fff; color: var(--ink); font-size: 16px; gap: 13px; box-shadow: 0 5px 0 var(--red-soft); }
.button-draw .ns-icon { width: 56px; height: 56px; }
.button-draw:hover { background: #fff8f7; box-shadow: 0 7px 0 var(--red-soft); }
.button-draw:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.manual-sharing-note { margin: 0 0 22px; }
.manual-sharing-note .invitation-emphasis { display: inline; font-size: inherit; }
@media (max-width: 640px) { .dashboard-heading-actions { width: 100%; } .dashboard-heading-actions .button-draw { flex: 1 1 auto; } }
