/* ─────────────────────────────────────────────────────────
   DoeMee — admin-stijlen (sidebar + main app-layout)
   Bouwt voort op tokens.css + app.css. Wordt ALLEEN op admin
   pagina's geladen. Niets hier dupliceren wat al in tokens
   of app.css staat — die zijn bron van waarheid.
   ───────────────────────────────────────────────────────── */

body.admin-shell { background: var(--paper); font-size: 14px; }

/* ─── SHELL: sidebar + main ─── */
.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
@media (max-width: 880px) { .shell { grid-template-columns: 1fr; } }

/* ─── SIDEBAR ─── */
.side {
  background: white;
  border-right: 1px solid var(--line);
  padding: 20px 16px;
  position: sticky; top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
@media (max-width: 880px) {
  .side { position: static; height: auto; padding: 16px; }
}

.side__brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 28px;
  padding: 0 6px;
  color: inherit;
}
.side__brand-mark {
  width: 26px; height: 26px;
  background: var(--doemee-500);
  border-radius: 8px;
  display: grid; place-items: center;
  color: white;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600; font-style: italic;
}
.side__brand-text { color: inherit; }
.side__brand-text small { color: var(--muted); font-weight: 400; font-size: 12px; }

.side__sect {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--muted);
  padding: 14px 10px 8px;
}

.side__nav { display: flex; flex-direction: column; gap: 2px; }
.side__nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm, 6px);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2, #2C2C2A);
  text-decoration: none;
  transition: background 120ms;
}
.side__nav a:hover { background: var(--paper); }
.side__nav a[aria-current="page"] {
  background: var(--doemee-50);
  color: var(--doemee-900);
}
.side__nav a[aria-current="page"] svg { color: var(--doemee-700); }
.side__nav svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.side__nav-badge {
  margin-left: auto;
  font-size: 11px;
  background: var(--doemee-500);
  color: white;
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 600;
}

.side__bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.side__user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: var(--r-sm, 6px);
}
.side__user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--doemee-400, #3CB48B), var(--doemee-700));
  color: white;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}
.side__user-body { line-height: 1.2; }
.side__user-name { font-weight: 500; color: var(--ink-2, #2C2C2A); }
.side__user-org { font-size: 11px; color: var(--muted); }
.side__user-logout {
  background: none;
  border: 0;
  padding: 0;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.side__user-logout:hover { color: var(--doemee-700); }

/* ─── MAIN ─── */
.main { padding: 32px 36px; max-width: 1400px; }
@media (max-width: 720px) { .main { padding: 20px 16px; } }

.crumbs-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap; gap: 16px;
}
.crumbs-bar h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.crumbs-bar__sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* Impersonate-strip (boven sidebar+main) */
.impersonate-bar {
  background: #FFF6E5;
  border-bottom: 1px solid #F5D684;
  color: #7A5A0E;
  padding: 8px 16px;
  font-size: 13px;
  text-align: center;
}
.impersonate-bar strong { font-weight: 600; }

/* ─── KPI strip ─── */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

.kpi {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.kpi__label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.kpi__value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.kpi__sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.kpi__delta {
  font-size: 12px;
  color: var(--doemee-700);
  margin-top: 4px;
  display: flex; align-items: center; gap: 4px;
}
.kpi__delta--down { color: var(--muted); }

/* ─── Admin-section header ─── */
.adm-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap; gap: 10px;
}
.adm-head h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.adm-head__filters { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-filter {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink-2, #2C2C2A);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.adm-filter:hover { background: var(--paper); }
.adm-filter[aria-pressed="true"],
.adm-filter[aria-current="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

/* ─── Evenementen-grid ─── */
.events {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 720px) { .events { grid-template-columns: 1fr; } }

.event {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 150ms;
  text-decoration: none;
  color: inherit;
  display: block;
}
.event:hover {
  border-color: var(--doemee-300);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 110, 86, 0.06);
  text-decoration: none;
}
.event,
.event:hover .event__title,
.event:hover .event__date,
.event:hover .event__foot,
.event:hover .event__foot strong,
.event:hover .event__foot-action {
  text-decoration: none;
}

.event__cover {
  height: 56px;
  background: linear-gradient(135deg, var(--doemee-600), var(--doemee-800));
  position: relative;
}
.event__cover--draft {
  background: repeating-linear-gradient(45deg, var(--line) 0 8px, var(--line-soft) 8px 16px);
}
.event__cover--done {
  filter: grayscale(0.6) brightness(0.85);
}

.event__status {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  color: var(--doemee-900);
  display: inline-flex; align-items: center; gap: 5px;
}
.event__status--draft { color: var(--muted); }
.event__status--done { color: var(--ink-2, #2C2C2A); }
.event__status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--doemee-500);
}
.event__status-dot--draft { background: var(--muted-2, #888780); }
.event__status-dot--done { background: var(--muted); }

.event__body { padding: 18px 20px; }
.event__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  line-height: 1.3;
}
.event__date {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}

.event__bar {
  height: 5px;
  background: var(--paper);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
}
.event__bar-fill {
  position: absolute; inset: 0 auto 0 0;
  background: var(--doemee-500);
  border-radius: 3px;
}

.event__stats {
  display: flex; justify-content: space-between;
  font-size: 12px;
  margin-bottom: 14px;
  gap: 8px;
  flex-wrap: wrap;
}
.event__stats strong { color: var(--ink); font-weight: 600; font-size: 13px; }
.event__stats span { color: var(--muted); }

.event__foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  gap: 8px;
  flex-wrap: wrap;
}
.event__foot strong { color: var(--ink-2, #2C2C2A); font-weight: 500; }
.event__foot-action {
  color: var(--doemee-700);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}

.event--new {
  background: var(--paper);
  border: 1.5px dashed var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 244px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.event--new:hover {
  border-color: var(--doemee-500);
  background: var(--doemee-50);
  color: var(--doemee-900);
  transform: none;
  box-shadow: none;
}
.event--new svg { color: var(--doemee-500); margin-bottom: 12px; }
.event--new strong {
  color: var(--ink-2, #2C2C2A);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  display: block;
}

/* ─── Event-hero op detailpagina ─── */
.event-hero {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 28px;
}
.event-hero__cover {
  height: 80px;
  background:
    radial-gradient(circle at 20% 30%, rgba(212,164,55,0.25), transparent 60%),
    linear-gradient(135deg, var(--doemee-800), var(--doemee-600));
  position: relative;
}
.event-hero__cover::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 16px);
}
.event-hero__body {
  padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; flex-wrap: wrap;
}
.event-hero__crumbs {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.event-hero__crumbs a { color: var(--doemee-700); text-decoration: none; }
.event-hero__crumbs a:hover { text-decoration: underline; }
.event-hero__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.event-hero__meta {
  font-size: 13px;
  color: var(--muted);
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.event-hero__meta strong { color: var(--ink-2, #2C2C2A); font-weight: 500; }
.event-hero__meta code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  background: var(--paper);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.event-hero__actions {
  display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap;
}

/* ─── Tabs op detailpagina ─── */
.tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] {
  color: var(--doemee-900);
  border-color: var(--doemee-500);
}
.tabs__count {
  font-size: 11px;
  background: var(--line);
  color: var(--muted);
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 600;
}
.tabs a[aria-current="page"] .tabs__count {
  background: var(--doemee-100);
  color: var(--doemee-700);
}

/* ─── Two-col layout (deelnemers + zijbalk) ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }

/* ─── Panel ─── */
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.panel + .panel { margin-top: 20px; }
.panel__head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.panel__head h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
}
.panel__head-meta { font-size: 12px; color: var(--muted); }
.panel__head a { font-size: 12px; color: var(--doemee-700); font-weight: 500; text-decoration: none; }
.panel__head a:hover { text-decoration: underline; }

/* ─── Toolbar (search + filters) ─── */
.toolbar {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.search {
  flex: 1; min-width: 200px;
  position: relative;
}
.search input {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm, 6px);
  padding: 8px 12px 8px 32px;
  font-size: 13px;
}
.search input:focus {
  outline: 0;
  border-color: var(--doemee-500);
  background: white;
  box-shadow: 0 0 0 3px rgba(29,158,117,0.1);
}
.search svg {
  position: absolute;
  left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.filter-pill {
  font-size: 12px;
  padding: 6px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2, #2C2C2A);
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.filter-pill:hover { background: var(--paper); }
.filter-pill[aria-pressed="true"],
.filter-pill[aria-current="true"] {
  background: var(--ink); color: white; border-color: var(--ink);
}

/* ─── Deelnemers-tabel ─── */
.tbl-wrap { overflow-x: auto; }
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tbl thead th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: left;
  padding: 10px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.tbl thead th.right { text-align: right; }
.tbl tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2, #2C2C2A);
  vertical-align: middle;
}
.tbl tbody tr:hover { background: var(--paper); }
.tbl tbody tr:last-child td { border-bottom: 0; }

.tbl__person {
  display: flex; align-items: center; gap: 10px;
}
.tbl__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--doemee-50);
  color: var(--doemee-700);
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-display);
  font-style: italic;
  flex-shrink: 0;
  text-transform: uppercase;
}
.tbl__person-name { font-weight: 500; color: var(--ink); }
.tbl__person-sub { font-size: 11px; color: var(--muted); }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tag--paid { background: var(--doemee-50); color: var(--doemee-700); }
.tag--pending { background: var(--amber-50); color: var(--amber-500); }
.tag--cancelled { background: var(--rose-50); color: var(--rose-500); }
.tag--refunded { background: var(--line-soft); color: var(--muted); }
.tag--option { background: #E8F0F5; color: #3A6680; }

.tbl__menu {
  background: none;
  border: 0;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--muted);
}
.tbl__menu:hover { background: var(--line-soft); color: var(--ink); }

.tbl__price {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.tbl__price--cancelled {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 400;
}

/* ─── Mini-summary in zijbalk ─── */
.side-summary { padding: 16px 20px; }
.side-summary__row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  gap: 12px;
}
.side-summary__row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.side-summary__label { color: var(--muted); }
.side-summary__value {
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.side-summary__value--big {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.side-summary__total .side-summary__label {
  font-weight: 500;
  color: var(--ink);
}
.side-summary__note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ─── Form-shell binnen admin (events/form, account, invite) ─── */
.adm-form-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
}
.adm-form-wrap + .adm-form-wrap { margin-top: 20px; }

/* Panel met body-padding voor forms (zonder eigen toolbar) */
.panel__body { padding: 20px 24px; }
.panel__body--tight { padding: 14px 20px; }

/* Form-velden binnen panel */
.adm-field { margin-bottom: 16px; }
.adm-field:last-child { margin-bottom: 0; }
.adm-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2, #2C2C2A);
  margin-bottom: 6px;
}
.adm-field label .req { color: var(--rose-500); margin-left: 2px; }
.adm-field input[type="text"],
.adm-field input[type="email"],
.adm-field input[type="password"],
.adm-field input[type="number"],
.adm-field input[type="datetime-local"],
.adm-field input[type="file"],
.adm-field select,
.adm-field textarea {
  width: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-sm, 6px);
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: inherit;
}
.adm-field input:focus,
.adm-field select:focus,
.adm-field textarea:focus {
  outline: 0;
  border-color: var(--doemee-500);
  box-shadow: 0 0 0 3px rgba(29,158,117,0.1);
}
.adm-field textarea { min-height: 90px; resize: vertical; }
.adm-field input--error,
.adm-field select--error,
.adm-field textarea--error,
.adm-field input.adm-field__input--error {
  border-color: var(--rose-500);
}
.adm-field__hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.adm-field__hint code {
  font-family: var(--font-mono, ui-monospace, monospace);
  background: var(--paper);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
}
.adm-field__error {
  font-size: 12px;
  color: var(--rose-500);
  margin-top: 6px;
}

/* Grid voor field-groepen */
.adm-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.adm-fields-grid > .adm-field { margin-bottom: 0; }
.adm-fields-grid > .adm-field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .adm-fields-grid { grid-template-columns: 1fr; } }

/* Repeater-rijen (opties, custom fields) */
.repeater-row {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm, 6px);
  padding: 14px 16px;
  margin-bottom: 10px;
  position: relative;
}
.repeater-row__remove {
  position: absolute;
  top: 10px; right: 10px;
  background: none;
  border: 0;
  width: 24px; height: 24px;
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  display: grid; place-items: center;
}
.repeater-row__remove:hover { background: var(--rose-50); color: var(--rose-500); }
.repeater-add {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--doemee-700);
  background: none;
  border: 1px dashed var(--doemee-300);
  border-radius: var(--r-sm, 6px);
  padding: 8px 14px;
  cursor: pointer;
}
.repeater-add:hover { background: var(--doemee-50); border-style: solid; }

/* Form-actions footer */
.form-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  padding-top: 20px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.form-actions__right { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── Login-pagina's (magic-link + check-mail + password-fallback) ── */
body.login-shell {
  background:
    radial-gradient(ellipse at top, #1F2027 0%, #0F1014 60%),
    #0F1014;
  background-attachment: fixed;
  color: #E8E6E0;
  min-height: 100vh;
  padding: 40px 20px 60px;
  font-size: 15px;
}
/* /mijn-login en /mijn-check-mail: lichtere achtergrond zodat het aansluit
   op de /mijn-dashboard en -detail pagina's (die ook cream gebruiken). */
body.mijn-login-shell {
  background: var(--paper, #FAFAF8);
  color: var(--ink, #111);
  min-height: 100vh;
  padding: 40px 20px 60px;
  font-size: 15px;
}
/* Lichtere card-shadow voor de cream context — de standaard .login-frame
   shadow is gekalibreerd op donkere bg en oogt vlekkerig op cream. */
body.mijn-login-shell .login-frame {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 8px 24px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--line);
}

.login-frame {
  max-width: 460px;
  margin: 0 auto;
  background: white;
  border-radius: var(--r-lg, 14px);
  box-shadow:
    0 0 0 1px #2A2C32,
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 16px 30px -10px rgba(0,0,0,0.4);
  overflow: hidden;
  color: var(--ink);
}

.login__top {
  padding: 24px 32px 0;
  display: flex; align-items: center; gap: 9px;
}
.login__brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
}
.login__brand-mark {
  width: 26px; height: 26px;
  background: var(--doemee-500);
  color: white;
  border-radius: 7px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
}
.login__brand-tld { color: var(--muted); font-weight: 400; }

.login__body {
  padding: 24px 32px 28px;
}

.login__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--doemee-700);
  margin-bottom: 12px;
}
.login__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ink);
}
.login__title em {
  font-style: italic;
  color: var(--doemee-700);
  font-weight: 500;
}
.login__sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 22px;
}

.login__field {
  display: flex; flex-direction: column;
  margin-bottom: 14px;
}
.login__field label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2, #2C2C2A);
  margin-bottom: 7px;
}
.login__field input {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-sm, 6px);
  padding: 12px 14px;
  font-size: 15px;
  width: 100%;
  font-family: inherit;
  color: var(--ink);
  transition: all 120ms;
}
.login__field input:focus {
  outline: 0;
  border-color: var(--doemee-500);
  box-shadow: 0 0 0 3px rgba(29,158,117,0.12);
}

.login__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--doemee-500);
  color: white;
  border: 0;
  padding: 13px 22px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  margin-bottom: 14px;
  transition: background 120ms;
}
.login__cta:hover { background: var(--doemee-600); }
.login__cta:disabled { background: var(--muted-2); cursor: not-allowed; }

.login__sep {
  display: flex; align-items: center; gap: 12px;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 14px;
  text-align: center;
}
.login__sep::before, .login__sep::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.login__alt {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 14px;
}
.login__alt a {
  color: var(--doemee-700);
  text-decoration: underline;
  font-weight: 500;
}

.login__why {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm, 6px);
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  display: flex; gap: 9px; align-items: flex-start;
}
.login__why svg { color: var(--doemee-600); flex-shrink: 0; margin-top: 2px; }
.login__why strong { color: var(--ink-2, #2C2C2A); font-weight: 600; }

.login__foot {
  padding: 16px 32px;
  text-align: center;
  font-size: 12px;
  color: var(--muted-2, #888780);
  border-top: 1px solid var(--line);
}
.login__foot a { color: var(--muted); text-decoration: underline; }

.login__error {
  background: #FCEBEB;
  border: 1px solid #F0C8C8;
  color: #8B2929;
  padding: 10px 14px;
  border-radius: var(--r-sm, 6px);
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ─── Check-mail wait-state ─── */
.wait__body {
  padding: 24px 32px 28px;
  text-align: center;
}
.wait__icon {
  width: 76px; height: 76px;
  background: var(--doemee-50);
  border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 22px;
  position: relative;
}
.wait__icon::before, .wait__icon::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--doemee-500);
  opacity: 0;
  animation: pulse-ring 2.4s ease-out infinite;
}
.wait__icon::after { animation-delay: 1.2s; }
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}
.wait__icon svg {
  width: 36px; height: 36px;
  color: var(--doemee-700);
  position: relative; z-index: 2;
}
.wait__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.2;
}
.wait__title em {
  font-style: italic;
  color: var(--doemee-700);
  font-weight: 500;
}
.wait__sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 4px;
}
.wait__email {
  font-weight: 600;
  color: var(--ink-2, #2C2C2A);
  font-size: 14px;
  margin-bottom: 22px;
  word-break: break-all;
}

.code-input {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 14px;
}
.code-input__label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.code-input__boxes {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.code-input__box {
  width: 42px; height: 50px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: center;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  transition: all 120ms;
}
.code-input__box:focus {
  outline: 0;
  background: white;
  border-color: var(--doemee-500);
  box-shadow: 0 0 0 3px rgba(29,158,117,0.12);
}

.wait__hint {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 14px;
}
.wait__hint strong { color: var(--ink-2, #2C2C2A); font-weight: 600; }
.wait__hint code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  background: var(--paper);
  padding: 1px 6px;
  border-radius: 3px;
}

.wait__resend {
  display: flex; justify-content: center; gap: 16px;
  font-size: 12.5px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.wait__resend a, .wait__resend button {
  background: none;
  border: 0;
  color: var(--doemee-700);
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  text-decoration: none;
  padding: 0;
}
.wait__resend a:hover, .wait__resend button:hover { text-decoration: underline; }

/* ─── Empty state ─── */
.empty {
  background: white;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}
.empty strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.empty a { color: var(--doemee-700); font-weight: 500; }
