/* Colour tokens. Light theme = original values; the "veillée" dark theme overrides them below. */
:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  /* Base */
  --bg: #f5f5f7;
  --surface: #fff;
  --surface-border: #ededf0;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --status-text: #727277;
  --line: #e4e4e8;
  --divider: #eeeef2;
  /* Accent: --accent for fills (white text on top), --accent-text for red text/icons */
  --accent: #c62828;
  --accent-hover: #b71c1c;
  --accent-contrast: #fff;
  --accent-text: var(--accent);
  --focus: #c62828;
  --error-text: #a51f27;
  /* Rose tints (accent family) */
  --tint: #faeeee;
  --rose-soft: #fbefef;
  --heading-symbol: #efcdcd;
  --badge-pending-text: #a84444;
  --avatar-text: #b94a4a;
  --mutual-tag-text: #a44e4e;
  --draw-text: #765959;
  --exclusion-summary: #7c6565;
  --exclusion-legend: #765f5f;
  /* Pine (success) */
  --pine: #1f5f43;
  --pine-soft: #e7f1eb;
  --pine-deep: #173f2e;
  /* Controls */
  --input-bg: #fbfbfd;
  --input-bg-on-tint: #ffffffd9;
  --input-border: #d8d8de;
  --placeholder: #737378;
  --segmented-bg: #f2f2f4;
  --segmented-selected: #fff;
  --segmented-shadow: 0 0 0 1px #d8d8de, 0 2px 6px #0000001f;
  --secondary-bg: #f0f0f3;
  --secondary-text: #333;
  --danger-bg: #fff0f0;
  --danger-bg-hover: #ffe3e3;
  --danger-text: #b53333;
  --badge-bg: #f0f0f4;
  --chip-bg: #faf9f9;
  --chip-border: #e0dcdc;
  --chip-border-hover: #cfaaaa;
  --chip-excluded-border: #d99b9b;
  --chip-text: #6a6464;
  --photo-bg: #fff;
  --photo-btn-border: #e1d6d6;
  /* Empty states */
  --empty-bg: #ffffff80;
  --empty-border: #d9d9e0;
  --empty-title: #424247;
  --empty-rose-bg: #fcf7f7;
  --empty-rose-border: #ead6d6;
  /* Hero decoration */
  --snow: #b4c6d2;
  --halo-1: #f2c7c7;
  --halo-2: #fae8e8;
  --note-bg: #ffffffd9;
  --note-border: #fff;
  --note-text: #626d7b;
  --page-glow: #f7dfdf;
  --glow-gold: #f6d7a7;
  --glow-rose: #fbe9e9;
  /* Overlays */
  --toast-bg: var(--pine-deep);
  --toast-error-bg: #a12e36;
  --toast-text: #fff;
  --dialog-bg: #fff;
  --dialog-text: #000;
  --backdrop: #28181866;
  /* Shadows */
  --shadow-note: 0 8px 24px #6c1c1c08;
  --shadow-card: 0 16px 50px #232c3e04;
  --shadow-hover: 0 12px 25px #00000005;
  --shadow-toast: 0 10px 40px #0002;
  --shadow-dialog: 0 30px 100px #0002;
}
/* Dark theme "veillée": warm night, raised surfaces, softened reds and pines.
   Applies when the visitor chose it with the switch, or follows the system otherwise. */
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #15151a;
  --surface: #1d1d23;
  --surface-border: #2a2a31;
  --text: #ececf0;
  --muted: #a3a3ab;
  --status-text: #a3a3ab;
  --line: #2c2c33;
  --divider: #28282f;
  --accent: #c62828;
  --accent-hover: #d63a3a;
  --accent-contrast: #fff;
  --accent-text: #ff7b74;
  --focus: #ff7b74;
  --error-text: #ff8a80;
  --tint: #2a1c1f;
  --rose-soft: #3a2024;
  --heading-symbol: #5a2a2e;
  --badge-pending-text: #ff9a92;
  --avatar-text: #ffa8a0;
  --mutual-tag-text: #ff9a92;
  --draw-text: #d0b6b6;
  --exclusion-summary: #c4a8a8;
  --exclusion-legend: #c0a6a6;
  --pine: #6fcf9c;
  --pine-soft: #183528;
  --pine-deep: #1b4a35;
  --input-bg: #141419;
  --input-bg-on-tint: #1a1517;
  --input-border: #565661;
  --placeholder: #8d8d96;
  --segmented-bg: #121217;
  --segmented-selected: #2c2c34;
  --segmented-shadow: 0 0 0 1px #3a3a43, 0 2px 6px #00000066;
  --secondary-bg: #2a2a31;
  --secondary-text: #e2e2e6;
  --danger-bg: #3a1a1d;
  --danger-bg-hover: #4a2025;
  --danger-text: #ff8a80;
  --badge-bg: #2a2a31;
  --chip-bg: #222228;
  --chip-border: #3a3a43;
  --chip-border-hover: #7a4a4a;
  --chip-excluded-border: #9a4a4a;
  --chip-text: #c4c0c0;
  --photo-bg: #fff;
  --photo-btn-border: #4a3a3c;
  --empty-bg: #1d1d2380;
  --empty-border: #3a3a43;
  --empty-title: #d4d4da;
  --empty-rose-bg: #241a1c;
  --empty-rose-border: #4a3034;
  --snow: #ffffff59;
  --halo-1: #4a1f24;
  --halo-2: #2a1a1e;
  --note-bg: #24242bd9;
  --note-border: #34343c;
  --note-text: #b4bcc8;
  --page-glow: #361c22;
  --glow-gold: #9c7230;
  --glow-rose: #3a2224;
  --toast-bg: var(--pine-deep);
  --toast-error-bg: #a12e36;
  --toast-text: #fff;
  --dialog-bg: var(--surface);
  --dialog-text: var(--text);
  --backdrop: #0a0608b3;
  --shadow-note: 0 6px 18px #00000059;
  --shadow-card: 0 10px 30px #00000059;
  --shadow-hover: 0 10px 22px #00000073;
  --shadow-toast: 0 8px 28px #00000080;
  --shadow-dialog: 0 24px 70px #00000099;
}
:root[data-theme='light'] {
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #15151a;
    --surface: #1d1d23;
    --surface-border: #2a2a31;
    --text: #ececf0;
    --muted: #a3a3ab;
    --status-text: #a3a3ab;
    --line: #2c2c33;
    --divider: #28282f;
    --accent: #c62828;
    --accent-hover: #d63a3a;
    --accent-contrast: #fff;
    --accent-text: #ff7b74;
    --focus: #ff7b74;
    --error-text: #ff8a80;
    --tint: #2a1c1f;
    --rose-soft: #3a2024;
    --heading-symbol: #5a2a2e;
    --badge-pending-text: #ff9a92;
    --avatar-text: #ffa8a0;
    --mutual-tag-text: #ff9a92;
    --draw-text: #d0b6b6;
    --exclusion-summary: #c4a8a8;
    --exclusion-legend: #c0a6a6;
    --pine: #6fcf9c;
    --pine-soft: #183528;
    --pine-deep: #1b4a35;
    --input-bg: #141419;
    --input-bg-on-tint: #1a1517;
    --input-border: #565661;
    --placeholder: #8d8d96;
    --segmented-bg: #121217;
    --segmented-selected: #2c2c34;
    --segmented-shadow: 0 0 0 1px #3a3a43, 0 2px 6px #00000066;
    --secondary-bg: #2a2a31;
    --secondary-text: #e2e2e6;
    --danger-bg: #3a1a1d;
    --danger-bg-hover: #4a2025;
    --danger-text: #ff8a80;
    --badge-bg: #2a2a31;
    --chip-bg: #222228;
    --chip-border: #3a3a43;
    --chip-border-hover: #7a4a4a;
    --chip-excluded-border: #9a4a4a;
    --chip-text: #c4c0c0;
    --photo-bg: #fff;
    --photo-btn-border: #4a3a3c;
    --empty-bg: #1d1d2380;
    --empty-border: #3a3a43;
    --empty-title: #d4d4da;
    --empty-rose-bg: #241a1c;
    --empty-rose-border: #4a3034;
    --snow: #ffffff59;
    --halo-1: #4a1f24;
    --halo-2: #2a1a1e;
    --note-bg: #24242bd9;
    --note-border: #34343c;
    --note-text: #b4bcc8;
    --page-glow: #361c22;
    --glow-gold: #9c7230;
    --glow-rose: #3a2224;
    --toast-bg: var(--pine-deep);
    --toast-error-bg: #a12e36;
    --toast-text: #fff;
    --dialog-bg: var(--surface);
    --dialog-text: var(--text);
    --backdrop: #0a0608b3;
    --shadow-note: 0 6px 18px #00000059;
    --shadow-card: 0 10px 30px #00000059;
    --shadow-hover: 0 10px 22px #00000073;
    --shadow-toast: 0 8px 28px #00000080;
    --shadow-dialog: 0 24px 70px #00000099;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.hidden {
  display: none !important;
}
.nav {
  min-height: 78px;
  max-width: 1240px;
  margin: auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.brand-icon {
  color: var(--accent-text);
  font-size: 28px;
  vertical-align: middle;
  margin-right: 7px;
}
.brand-dot {
  color: var(--accent-text);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-caption {
  color: var(--muted);
  font-size: 12px;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 8px 0;
  color: var(--accent-text);
  font-size: 13px;
}
.text-button:hover {
  text-decoration: underline;
}
.screen {
  animation: arrive 0.4s ease;
}
.landing {
  max-width: 1240px;
  margin: auto;
  padding: 64px 40px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 1.6;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
/* Warm serif for display headings only; body and UI stay in the system sans. */
h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
}
h1 {
  font-size: clamp(40px, 5.3vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 20px 0;
}
h1 span {
  color: var(--accent-text);
  font-style: italic;
}
.hero > p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: -0.3px;
}
.hero-art {
  height: 300px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 540px;
}
/* Light snowfall: two offset dot grids, faded at the edges. Static under reduced motion. */
.hero-art::before {
  content: '';
  position: absolute;
  inset: -30px 0;
  background-image: radial-gradient(circle, var(--snow) 1.6px, transparent 2.2px),
    radial-gradient(circle, var(--snow) 1px, transparent 1.6px);
  background-size:
    52px 52px,
    31px 31px;
  background-position:
    0 0,
    15px 11px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 70%);
  opacity: 0.55;
  pointer-events: none;
  animation: snowfall 40s linear infinite;
}
.hero-art img {
  width: 290px;
  height: 290px;
  position: relative;
  z-index: 1;
  transform: rotate(-8deg);
  animation: float 7s ease-in-out infinite;
}
.halo {
  position: absolute;
  width: 330px;
  height: 210px;
  background: radial-gradient(ellipse, var(--halo-1) 0%, var(--halo-2) 45%, transparent 72%);
  filter: blur(18px);
}
.art-note {
  position: absolute;
  font-size: 12px;
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: var(--shadow-note);
  z-index: 2;
  color: var(--note-text);
}
.note-one {
  left: 0;
  top: 90px;
  transform: rotate(-8deg);
}
.note-two {
  right: 0;
  bottom: 60px;
  transform: rotate(7deg);
}
.spark {
  position: absolute;
  color: var(--accent-text);
}
.spark-one {
  right: 70px;
  top: 40px;
  font-size: 34px;
}
.spark-two {
  left: 70px;
  bottom: 35px;
  font-size: 28px;
}
.auth-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow-card);
}
.auth-card {
  margin-top: 14px;
  padding: 38px;
}
.auth-card h2 {
  font-size: 36px;
  line-height: 1.1;
  margin: 15px 0;
}
.muted {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.segmented {
  display: flex;
  background: var(--segmented-bg);
  padding: 4px;
  border-radius: 12px;
  margin: 28px 0;
}
.segmented button {
  width: 50%;
  border: 0;
  background: transparent;
  padding: 10px 4px;
  border-radius: 9px;
  font-size: 13px;
  color: var(--muted);
  transition:
    background 0.2s,
    color 0.2s;
}
.segmented button:hover {
  color: var(--text);
}
.segmented .selected {
  background: var(--segmented-selected);
  color: var(--text);
  font-weight: 650;
  box-shadow: var(--segmented-shadow);
}
.segmented button:focus-visible {
  outline-offset: 2px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 18px 0 8px;
}
input {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
input::placeholder {
  color: var(--placeholder);
}
input:focus {
  outline: none;
  border-color: var(--focus);
}
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.primary,
.secondary,
.danger {
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 550;
  font-size: 13px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 46px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.primary {
  background: var(--accent);
  color: var(--accent-contrast);
}
.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.secondary {
  background: var(--secondary-bg);
  color: var(--secondary-text);
}
.danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  padding: 9px 12px;
  min-height: 36px;
  font-size: 12px;
}
.danger:hover {
  background: var(--danger-bg-hover);
}
.full {
  width: 100%;
  margin-top: 24px;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}
.card-foot {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 25px 0 0;
}
.how-it-works {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--line);
  padding: 32px 0 42px;
}
.how-it-works span {
  font-size: 12px;
  color: var(--accent-text);
  font-weight: 600;
}
.how-it-works h3 {
  font-size: 15px;
  letter-spacing: -0.3px;
  margin: 12px 0 6px;
}
.how-it-works p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
footer {
  max-width: 1160px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 25px 0 35px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
footer .brand {
  font-size: 14px;
}
footer > span {
  font-size: 12px;
  color: var(--muted);
}
.workspace {
  max-width: 1160px;
  margin: 0 auto;
  padding: 50px 0 70px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.page-heading h1 {
  font-size: 48px;
  max-width: 850px;
  overflow-wrap: anywhere;
  letter-spacing: -0.02em;
}
.heading-symbol {
  font-size: 100px;
  color: var(--heading-symbol);
  padding: 0 40px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 24px;
  margin-bottom: 30px;
}
.stats div {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.stats div:last-child {
  border: 0;
}
.stats strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
}
#drawnCount {
  color: var(--pine);
}
.stats span {
  font-size: 12px;
  color: var(--muted);
}
.create-bar {
  background: var(--tint);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  align-items: end;
  gap: 20px;
  margin-bottom: 38px;
}
.create-bar > div {
  flex: 1;
}
.create-bar label {
  margin: 0 0 10px;
}
.create-bar input {
  background: var(--input-bg-on-tint);
}
.create-bar button {
  min-height: 48px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.section-heading h2 {
  margin: 0;
  font-size: 22px;
}
/* Smaller serif headings read better a touch heavier. */
.section-heading h2,
.detail-grid h2,
.admin-card h2,
dialog h2 {
  font-weight: 600;
}
.section-heading > .muted {
  font-size: 12px;
}
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.event-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.event-card h3 {
  font-size: 22px;
  letter-spacing: -0.7px;
  margin: 25px 0;
  overflow-wrap: anywhere;
}
.badge {
  display: inline-block;
  background: var(--badge-bg);
  border-radius: 30px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.badge-ok {
  background: var(--pine-soft);
  color: var(--pine);
  font-weight: 600;
}
.badge-pending {
  background: var(--rose-soft);
  color: var(--badge-pending-text);
}
.card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.empty {
  background: var(--empty-bg);
  border: 1px dashed var(--empty-border);
  border-radius: 22px;
  text-align: center;
  padding: 36px 20px;
  color: var(--muted);
  grid-column: 1/-1;
}
.empty strong {
  display: block;
  color: var(--empty-title);
  margin-bottom: 8px;
  font-size: 17px;
}
.empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.back {
  margin-bottom: 20px;
}
.narrow {
  max-width: 570px;
  margin: 50px auto 90px;
  padding: 0 20px;
}
.narrow h1 {
  font-size: 38px;
  letter-spacing: -0.02em;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: start;
}
.detail-grid aside {
  display: grid;
  gap: 24px;
}
.detail-grid h2 {
  font-size: 22px;
}
.participant {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--divider);
}
.participant:last-child {
  border: 0;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--avatar-text);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.participant-info {
  min-width: 0;
  flex: 1;
}
.participant-info strong {
  font-size: 13px;
  display: block;
  overflow-wrap: anywhere;
}
.participant-info span {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.draw-panel {
  border-radius: 28px;
  padding: 30px;
  background: var(--tint);
}
.draw-panel p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--draw-text);
}
.draw-spark {
  font-size: 30px;
  color: var(--accent-text);
  display: block;
  margin-bottom: 16px;
}
.admin-card {
  margin-bottom: 22px;
}
.admin-card h2 {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.admin-event {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.admin-event h3 {
  margin: 0;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.admin-participants {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  width: max-content;
  z-index: 20;
  background: var(--toast-bg);
  color: var(--toast-text);
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-toast);
  font-size: 13px;
}
.toast.error {
  background: var(--toast-error-bg);
}
dialog {
  background: var(--dialog-bg);
  color: var(--dialog-text);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  max-width: 460px;
  width: calc(100% - 36px);
  box-shadow: var(--shadow-dialog);
}
dialog::backdrop {
  background: var(--backdrop);
  backdrop-filter: blur(6px);
}
dialog h2 {
  font-size: 25px;
  margin-top: 14px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 25px;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes float {
  50% {
    transform: rotate(-5deg) translateY(-9px);
  }
}
@keyframes snowfall {
  to {
    background-position:
      0 520px,
      15px 321px;
  }
}
@media (min-width: 1500px) {
  .landing {
    padding-top: 80px;
  }
}
@media (max-width: 1240px) {
  .workspace {
    padding: 45px 40px 65px;
  }
  footer {
    margin: 0 40px;
  }
  .landing {
    gap: 35px;
  }
  .auth-card {
    padding: 30px;
  }
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .nav-caption {
    display: none;
  }
  .landing {
    padding-top: 40px;
    gap: 28px;
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 46px;
  }
  .hero > p {
    font-size: 14px;
  }
  .hero-art {
    height: 240px;
  }
  .hero-art img {
    width: 240px;
    height: 240px;
  }
  .art-note {
    font-size: 12px;
    padding: 9px 11px;
  }
  .note-one {
    left: -10px;
  }
  .note-two {
    right: -10px;
    bottom: 35px;
  }
  .spark-one {
    right: 0;
  }
  .spark-two {
    left: 0;
  }
  .auth-card h2 {
    font-size: 29px;
  }
  .auth-card {
    padding: 24px;
  }
  .how-it-works {
    gap: 22px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .heading-symbol {
    font-size: 70px;
    padding: 0 10px;
  }
  .create-bar {
    flex-wrap: wrap;
  }
  .create-bar > div {
    flex-basis: 100%;
  }
}
@media (max-width: 600px) {
  .nav {
    padding: 17px 22px;
    min-height: 68px;
  }
  .brand {
    font-size: 18px;
  }
  .nav-actions {
    gap: 16px;
  }
  .nav-actions button {
    font-size: 12px;
  }
  .landing {
    padding: 35px 22px 0;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero {
    text-align: center;
  }
  .hero .eyebrow {
    letter-spacing: 1px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .hero > p {
    font-size: 15px;
  }
  .hero-art {
    height: 235px;
    max-width: 350px;
    margin: auto;
  }
  .hero-art img {
    width: 240px;
    height: 240px;
  }
  .note-one {
    left: 0;
    top: 55px;
  }
  .note-two {
    right: 0;
    bottom: 35px;
  }
  .auth-card {
    margin-top: 0;
    padding: 28px;
    border-radius: 24px;
  }
  .auth-card h2 br {
    display: none;
  }
  .auth-card h2 {
    font-size: 29px;
  }
  .how-it-works {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 30px;
    padding: 28px 0;
  }
  .how-it-works > div {
    position: relative;
    padding-left: 35px;
  }
  .how-it-works span {
    position: absolute;
    left: 0;
    top: 13px;
  }
  .how-it-works h3 {
    margin-top: 8px;
  }
  footer {
    margin: 0 22px;
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .workspace {
    padding: 35px 22px 50px;
  }
  .page-heading h1 {
    font-size: 37px;
  }
  .heading-symbol {
    display: none;
  }
  .stats {
    padding: 20px 8px;
  }
  .stats div {
    padding: 0 12px;
  }
  .stats strong {
    font-size: 26px;
  }
  .stats span {
    font-size: 12px;
  }
  .create-bar {
    padding: 20px;
  }
  .create-bar button {
    width: 100%;
  }
  .section-heading > .muted {
    display: none;
  }
  .event-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 24px;
    border-radius: 24px;
  }
  .participant {
    gap: 10px;
  }
  .participant .danger {
    font-size: 12px;
    padding: 8px;
  }
  .dialog-actions button {
    flex: 1;
  }
  .card-actions {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.resend-one {
  font-size: 12px;
  padding: 9px 12px;
  min-height: 36px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .participant:has(.resend-one) {
    flex-wrap: wrap;
  }
  .participant .resend-one {
    margin-left: 50px;
  }
}
.star-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  flex-shrink: 0;
}
.participant-entry {
  border-bottom: 1px solid var(--divider);
  padding-bottom: 12px;
}
.participant-entry:last-child {
  border-bottom: 0;
}
.participant-entry > .participant {
  border-bottom: 0;
}
.exclusion-panel {
  margin: 0 0 4px 54px;
}
.exclusion-panel summary {
  cursor: pointer;
  color: var(--exclusion-summary);
  font-size: 12px;
  min-height: 34px;
  padding: 8px 0;
  list-style: none;
}
.exclusion-panel summary::-webkit-details-marker {
  display: none;
}
.exclusion-panel summary::before {
  content: '＋';
  margin-right: 8px;
  color: var(--accent-text);
}
.exclusion-panel[open] summary::before {
  content: '−';
}
.exclusion-panel summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.exclusion-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 6px 0 12px;
}
.exclusion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.exclusion-chip {
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  border-radius: 22px;
  padding: 10px 14px;
  min-height: 42px;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 12px;
  color: var(--chip-text);
  text-align: left;
}
.exclusion-chip:hover {
  border-color: var(--chip-border-hover);
}
.exclusion-chip.excluded {
  background: var(--danger-bg);
  border-color: var(--chip-excluded-border);
  color: var(--error-text);
  font-weight: 600;
}
.exclusion-chip:disabled {
  opacity: 1;
  cursor: default;
}
.exclusion-legend {
  font-size: 12px;
  color: var(--exclusion-legend);
  margin: 12px 0;
}
.mutual-exclusion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 7px 0;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.mutual-exclusion .text-button {
  font-size: 12px;
  min-height: 36px;
}
.mutual-tag {
  font-size: 12px;
  color: var(--mutual-tag-text);
  background: var(--rose-soft);
  border-radius: 20px;
  padding: 5px 8px;
}
@media (max-width: 600px) {
  .exclusion-panel {
    margin-left: 0;
    padding: 0 4px;
  }
  .exclusion-chip {
    min-height: 44px;
  }
  .participant-entry {
    padding-bottom: 14px;
  }
}

.create-bar {
  padding-bottom: 48px;
}
.create-bar > .budget-field {
  flex: 0 1 220px;
  position: relative;
}
.budget-field small {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  font-size: 12px;
  white-space: nowrap;
}
@media (max-width: 800px) {
  .create-bar {
    padding-bottom: 24px;
  }
  .create-bar > .budget-field {
    flex: 1 1 100%;
  }
  .budget-field small {
    position: static;
    white-space: normal;
  }
}

/* Light/dark switch (sun / moon) in the header. */
.theme-toggle {
  border: 0;
  background: transparent;
  padding: 4px;
  margin: -4px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 0;
}
.theme-toggle-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 56px;
  height: 30px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--secondary-bg);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
}
.theme-icon {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  transition: color 0.25s ease;
}
.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow:
    0 1px 4px #0003,
    inset 0 0 0 1px var(--line);
  transition: transform 0.25s ease;
}
.theme-toggle[aria-checked='false'] .theme-icon-sun {
  color: #d08a00;
}
.theme-toggle[aria-checked='true'] .theme-toggle-thumb {
  transform: translateX(26px);
}
.theme-toggle[aria-checked='true'] .theme-icon-moon {
  color: #f3d27a;
}
.theme-toggle:hover .theme-toggle-track {
  box-shadow: inset 0 0 0 1px var(--muted);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle-thumb,
  .theme-icon {
    transition: none;
  }
}

/* Soft glow at the top of every page (the effect of the Nos Instants album header). */
body {
  background-image: radial-gradient(ellipse 60% 440px at 50% 0, var(--page-glow), transparent);
  background-repeat: no-repeat;
}
@media (max-width: 650px) {
  body {
    background-image: radial-gradient(ellipse 120% 360px at 50% 0, var(--page-glow), transparent);
  }
}

/* Administration access: discreet link at the very bottom of the page. */
.footer-admin {
  padding: 4px 0;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
}
.footer-admin:hover,
.footer-admin:focus-visible {
  color: var(--text);
  opacity: 1;
}
@media (max-width: 600px) {
  footer {
    flex-wrap: wrap;
  }
}

/* Gift-exchange day (also the deadline). */
.create-bar > .date-field {
  flex: 0 1 230px;
  position: relative;
}
.date-field small {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  font-size: 12px;
  white-space: nowrap;
}
.event-card .event-date {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
}
.event-date-form {
  margin-top: 18px;
  max-width: 420px;
}
.event-date-form label {
  margin: 0 0 8px;
}
.event-date-row {
  display: flex;
  gap: 10px;
}
.event-date-row input {
  flex: 1;
}
.event-date-row button {
  flex: none;
}
.event-date-form small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
}
@media (max-width: 800px) {
  .create-bar > .date-field {
    flex: 1 1 100%;
  }
  .date-field small {
    position: static;
    white-space: normal;
  }
}

/* Site colours used by the shared "Nos sites" menu. */
:root {
  --sm-bg: var(--surface);
  --sm-text: var(--text);
  --sm-muted: var(--muted);
  --sm-line: var(--line);
  --sm-accent: var(--accent-text);
  --sm-card: var(--bg);
  --sm-tint: var(--tint);
}

/* "Nos sites" slide-out menu (shared component; colours come from the --sm-* mapping above). */
.sites-menu-button {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--sm-muted);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.sites-menu-button:hover,
.sites-menu-button[aria-expanded='true'] {
  background: var(--sm-card);
  color: var(--sm-text);
}
.sites-menu-button:focus-visible,
.sites-menu-close:focus-visible,
.sites-menu-link:focus-visible {
  outline: 2px solid var(--sm-accent);
  outline-offset: 2px;
}
.sites-menu-glyph {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}
.sites-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #0006;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s;
}
.sites-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(380px, 88vw);
  padding: 22px 22px 28px;
  overflow-y: auto;
  background: var(--sm-bg);
  color: var(--sm-text);
  box-shadow: -18px 0 50px #0000002e;
  transform: translateX(105%);
  visibility: hidden;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.35s;
  outline: none;
}
.sites-menu-open .sites-menu {
  transform: none;
  visibility: visible;
}
.sites-menu-open .sites-menu-backdrop {
  opacity: 1;
  visibility: visible;
}
.sites-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sites-menu-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.sites-menu-close {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--sm-card);
  color: var(--sm-text);
  cursor: pointer;
}
.sites-menu-close-icon {
  width: 16px;
  height: 16px;
}
.sites-menu-intro {
  margin: 6px 0 20px;
  font-size: 13px;
  color: var(--sm-muted);
}
.sites-menu-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sites-menu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: var(--sm-card);
  color: var(--sm-text);
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.sites-menu-link:hover {
  transform: translateX(-3px);
  border-color: var(--sm-line);
}
.sites-menu-link.is-current {
  background: var(--sm-tint);
  border-color: var(--sm-line);
}
.sites-menu-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: #fff;
}
.sites-menu-icon-svg {
  width: 22px;
  height: 22px;
}
.sites-menu-icon-kadopik {
  background: #d9432b;
}
.sites-menu-icon-nos-instants {
  background: #a64e38;
}
.sites-menu-icon-secret-santa {
  background: #c62828;
}
.sites-menu-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.sites-menu-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}
.sites-menu-here {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sm-bg);
  color: var(--sm-accent);
  font-size: 11px;
  font-weight: 600;
}
.sites-menu-tagline {
  font-size: 13px;
  line-height: 1.4;
  color: var(--sm-muted);
}
.sites-menu-arrow {
  margin-left: auto;
  font-size: 22px;
  color: var(--sm-muted);
}
@media (prefers-reduced-motion: reduce) {
  .sites-menu,
  .sites-menu-backdrop,
  .sites-menu-link,
  .sites-menu-button {
    transition: none;
  }
}

/* Same header geometry on the three sites, so the day/night switch and the "Nos sites" button
   are always at the same spot of the screen (shared rules, identical on every site). */
header.nav {
  box-sizing: border-box;
  width: 100%;
  max-width: 1240px;
  min-height: 76px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px 40px;
  gap: 20px;
}
/* Navigation group right-aligned, next to the controls. */
header.nav > .brand + * {
  margin-left: auto;
}
.site-controls {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* A true circle with a centered icon, whatever the site's generic button styles. */
.site-controls .sites-menu-button {
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  line-height: 0;
  font-size: 0;
  box-shadow: none;
}
.site-controls .sites-menu-glyph {
  display: block;
  margin: 0;
}
@media (max-width: 650px) {
  header.nav {
    padding: 12px 20px;
  }
  header.nav .site-controls {
    order: 1;
    margin-left: auto;
  }
  header.nav > nav {
    order: 2;
    margin-left: 0;
  }
}

/* Fixed order (switch, then ⠿) and fixed row height, also on mobile. */
header.nav .site-controls {
  min-height: 52px;
}
header.nav .site-controls .theme-toggle {
  order: 0;
  margin: -4px;
}
header.nav .site-controls .sites-menu-button {
  order: 1;
}

/* Always reserve the scrollbar space, so short and long pages share the same width. */
html {
  scrollbar-gutter: stable;
}

/* "Nos sites" as a pop-up anchored under the ⠿ button (overrides the side-panel layout). */
.site-controls {
  position: relative;
}
.sites-menu-backdrop {
  background: transparent;
}
.sites-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  bottom: auto;
  left: auto;
  width: min(360px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - 110px));
  padding: 18px;
  border: 1px solid var(--sm-line);
  border-radius: 22px;
  box-shadow:
    0 24px 60px #00000033,
    0 4px 14px #0000001f;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  opacity: 0;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.18s ease,
    visibility 0.22s;
}
.sites-menu-open .sites-menu {
  transform: none;
  opacity: 1;
}
.sites-menu-intro {
  margin: 4px 0 14px;
}
.sites-menu-link {
  padding: 12px;
  border-radius: 16px;
}
.sites-menu-link:hover {
  transform: translateY(-1px);
}
/* The close button: a true circle with a centered cross, whatever the site's button styles. */
.sites-menu .sites-menu-close {
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  line-height: 0;
  font-size: 0;
  box-shadow: none;
}
.sites-menu .sites-menu-close-icon {
  display: block;
  width: 14px;
  height: 14px;
}
@media (max-width: 650px) {
  .sites-menu {
    right: -8px;
  }
}

.sites-menu-icon-kivient {
  background: #1f7a6d;
}

/* Medium screens: when the navigation does not fit on one row, it moves to a second row and the
   day/night switch + ⠿ button stay top-right (same spot on every site). */
@media (max-width: 1000px) {
  header.nav {
    flex-wrap: wrap;
  }
  header.nav .site-controls {
    order: 1;
    margin-left: auto;
  }
  header.nav > nav {
    order: 2;
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }
}

/* E-mail confirmation (banner, locked creation form, confirmation screen, admin badge). */
.verify-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  background: var(--tint);
  border: 1px solid var(--empty-rose-border);
  border-radius: 20px;
  padding: 16px 20px;
  margin-bottom: 26px;
}
.verify-banner p {
  margin: 0;
  flex: 1 1 260px;
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.verify-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--badge-pending-text);
}
.create-bar.locked {
  opacity: 0.6;
}
.draw-panel .verify-hint {
  color: var(--badge-pending-text);
}
.verify-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
#verifyText {
  overflow-wrap: anywhere;
}
.admin-verified {
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  .verify-banner button {
    width: 100%;
  }
}
