:root {
  color-scheme: dark;
  --night: #061522;
  --night-soft: #0d2232;
  --panel: rgba(13, 34, 50, 0.88);
  --panel-solid: #10293c;
  --cream: #f7f1e7;
  --muted: #b9c4c9;
  --gold: #d7aa59;
  --gold-light: #f1d89b;
  --teal: #55c9bd;
  --danger: #ff8b84;
  --success: #7ee0b0;
  --warning: #f3c879;
  --line: rgba(241, 216, 155, 0.2);
  --line-soft: rgba(255, 255, 255, 0.1);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--night);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 5% 10%, rgba(85, 201, 189, 0.11), transparent 32rem),
    radial-gradient(circle at 95% 0%, rgba(215, 170, 89, 0.1), transparent 34rem),
    var(--night);
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--night);
  transform: translateY(-170%);
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.08;
}

.ambient-one {
  top: 18%;
  left: -15rem;
  background: var(--teal);
}

.ambient-two {
  right: -15rem;
  bottom: 5%;
  background: var(--gold);
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(1320px, calc(100vw - 48px));
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(85, 201, 189, 0.72);
  border-radius: 50%;
  box-shadow: inset 0 0 18px rgba(85, 201, 189, 0.16);
}

.brand-mark::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(85, 201, 189, 0.72);
  content: "";
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.96rem;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.session-bar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.actor-email {
  max-width: 260px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-shell {
  width: min(1320px, calc(100vw - 48px));
  margin-inline: auto;
  padding: 54px 0 80px;
}

.center-view {
  display: grid;
  min-height: calc(100vh - 220px);
  place-content: center;
  text-align: center;
}

.auth-card {
  width: min(620px, 100%);
  padding: clamp(30px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 50%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.045em;
}

.auth-card h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.04;
}

.lead {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: 160ms ease;
}

.button:hover,
.button:focus-visible {
  translate: 0 -1px;
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
  translate: none;
}

.button-primary {
  background: var(--teal);
  color: #041b21;
}

.button-gold {
  background: var(--gold);
  color: #201505;
}

.button-danger {
  border-color: rgba(255, 139, 132, 0.44);
  background: rgba(255, 139, 132, 0.14);
  color: var(--danger);
}

.button-ghost {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
}

.button-small {
  min-height: 38px;
  padding-inline: 15px;
  font-size: 0.8rem;
}

.button-wide {
  width: 100%;
}

.remember-session-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin: -8px 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--cream);
  cursor: pointer;
  text-align: left;
}

.remember-session-option input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--teal);
}

.remember-session-option span {
  display: grid;
  gap: 4px;
}

.remember-session-option strong {
  font-size: 0.9rem;
}

.remember-session-option small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.google-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #4285f4;
  font-weight: 900;
}

.status-copy {
  min-height: 1.45em;
  margin: 14px 0 0;
  color: var(--warning);
  font-size: 0.86rem;
  line-height: 1.45;
}

.mfa-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  text-align: left;
}

.mfa-form label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.mfa-form input {
  min-height: 58px;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 850;
  letter-spacing: 0.24em;
}

.mfa-secondary-actions {
  margin-top: 14px;
}

.security-note {
  display: grid;
  gap: 4px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.security-note strong {
  color: var(--cream);
}

.loader {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

.error-card .eyebrow,
.error-card .status-copy {
  color: var(--danger);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.dashboard-heading h1 {
  margin-bottom: 8px;
  font-size: clamp(2.3rem, 6vw, 4.9rem);
  line-height: 0.98;
}

.last-update {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.dashboard-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.summary-card {
  display: flex;
  min-height: 146px;
  flex-direction: column;
  justify-content: end;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.summary-card-button {
  width: 100%;
  appearance: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.summary-card-button:hover,
.summary-card-button:focus-visible {
  border-color: rgba(85, 201, 189, 0.58);
  background: rgba(85, 201, 189, 0.08);
  outline: none;
  translate: 0 -1px;
}

.summary-card span,
.summary-card small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.summary-card strong {
  margin: 8px 0 3px;
  color: var(--cream);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  letter-spacing: -0.05em;
}

.summary-accent {
  border-color: rgba(85, 201, 189, 0.4);
  background: rgba(85, 201, 189, 0.1);
}

.summary-card.has-anomalies {
  border-color: rgba(255, 139, 132, 0.45);
  background: rgba(255, 139, 132, 0.08);
}

.summary-card.has-payments-to-complete {
  border-color: rgba(243, 200, 121, 0.45);
  background: rgba(243, 200, 121, 0.08);
}

.workflow-panel {
  margin-bottom: 24px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(85, 201, 189, 0.34);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(85, 201, 189, 0.1), transparent 58%),
    rgba(7, 24, 37, 0.72);
}

.workflow-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.workflow-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.workflow-heading > p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: right;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.workflow-card {
  display: flex;
  min-height: 138px;
  flex-direction: column;
  justify-content: end;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  appearance: none;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.workflow-card:hover,
.workflow-card:focus-visible {
  border-color: rgba(85, 201, 189, 0.58);
  background: rgba(85, 201, 189, 0.1);
  outline: none;
  translate: 0 -1px;
}

.workflow-card span,
.workflow-card small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.workflow-card strong {
  margin: 8px 0 3px;
  color: var(--cream);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.05em;
}

.workflow-card.has-workflow-items {
  border-color: rgba(243, 200, 121, 0.45);
  background: rgba(243, 200, 121, 0.08);
}

.workflow-card.has-workflow-complete {
  border-color: rgba(126, 224, 176, 0.35);
  background: rgba(126, 224, 176, 0.07);
}

.collections-panel {
  margin-bottom: 24px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(215, 170, 89, 0.34);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(215, 170, 89, 0.09), transparent 58%),
    rgba(7, 24, 37, 0.72);
}

.collections-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.collections-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.collections-status {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: right;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.collection-card {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.collection-card span,
.collection-card small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.collection-card strong {
  margin: 8px 0 3px;
  color: var(--cream);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}

.collection-total {
  border-color: rgba(126, 224, 176, 0.34);
  background: rgba(126, 224, 176, 0.08);
}

.collections-footnote {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.roster-panel {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(7, 24, 37, 0.78);
  box-shadow: var(--shadow);
}

.roster-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.roster-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.roster-scope-note {
  max-width: 640px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.visible-count {
  color: var(--muted);
  font-size: 0.82rem;
}

.toolbar {
  display: grid;
  grid-template-columns:
    minmax(240px, 1.2fr)
    repeat(5, minmax(130px, 0.55fr))
    auto;
  gap: 12px;
  margin-bottom: 22px;
}

.search-field,
.select-field,
.note-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
}

.check-field input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.field-help {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.45;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  outline: none;
  background: rgba(255, 255, 255, 0.045);
}

input,
select {
  min-height: 48px;
  padding-inline: 15px;
}

textarea {
  resize: vertical;
  padding: 13px 15px;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(85, 201, 189, 0.12);
}

.data-mode {
  display: flex;
  align-self: end;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.mode-button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.mode-button.is-active {
  background: var(--cream);
  color: var(--night);
}

.participant-list {
  display: grid;
  gap: 12px;
}

.registration-card {
  overflow: clip;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}

.registration-card.has-anomaly {
  border-color: rgba(255, 139, 132, 0.38);
}

.registration-card.needs-payment:not(.has-anomaly) {
  border-color: rgba(243, 200, 121, 0.34);
}

.registration-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.registration-summary::-webkit-details-marker {
  display: none;
}

.registration-summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -3px;
}

.registration-summary-main {
  min-width: 0;
}

.registration-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.registration-title strong {
  overflow: hidden;
  font-size: 0.98rem;
  text-overflow: ellipsis;
}

.registration-summary-meta,
.registration-summary-time {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.registration-summary-meta {
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 720;
}

.registration-summary-time {
  color: var(--muted);
  font-size: 0.68rem;
}

.registration-disclosure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 820;
}

.registration-open-label {
  display: none;
}

.registration-chevron {
  font-size: 1.05rem;
  transition: transform 160ms ease;
}

.registration-card[open] .registration-open-label {
  display: inline;
}

.registration-card[open] .registration-closed-label {
  display: none;
}

.registration-card[open] .registration-chevron {
  transform: rotate(180deg);
}

.registration-body {
  display: none;
  gap: 16px;
  padding: 17px 18px 18px;
  border-top: 1px solid var(--line-soft);
}

.registration-card[open] > .registration-body {
  display: grid;
}

.registration-members {
  display: grid;
  gap: 0;
}

.registration-section-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 780;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.registration-member {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
}

.registration-member + .registration-member {
  border-top: 1px solid var(--line-soft);
}

.registration-member-meta {
  color: var(--muted);
  font-size: 0.7rem;
  text-align: right;
}

.registration-details {
  display: grid;
  grid-template-columns: repeat(5, minmax(115px, 1fr));
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.participant-identity {
  min-width: 0;
}

.participant-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}

.participant-name strong {
  overflow: hidden;
  font-size: 0.98rem;
  text-overflow: ellipsis;
}

.participant-phone {
  color: var(--teal);
  font-size: 0.8rem;
  text-decoration: none;
}

.participant-phone:hover,
.participant-phone:focus-visible {
  text-decoration: underline;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-vip {
  border-color: rgba(215, 170, 89, 0.46);
  color: var(--gold-light);
}

.badge-test {
  border-color: rgba(85, 201, 189, 0.4);
  color: var(--teal);
}

.badge-staff {
  border-color: rgba(215, 170, 89, 0.46);
  color: var(--gold-light);
}

.detail-cell {
  min-width: 0;
}

.detail-cell span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-cell strong,
.detail-cell small {
  display: block;
  overflow-wrap: anywhere;
}

.participant-gender-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.participant-gender-form select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding-inline: 10px;
  font-size: 0.72rem;
}

.gender-save-button {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(85, 201, 189, 0.38);
  border-radius: 12px;
  background: rgba(85, 201, 189, 0.08);
  color: var(--teal);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 820;
}

.gender-save-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.gender-save-status {
  grid-column: 1 / -1;
  min-height: 1em;
}

.detail-cell strong {
  font-size: 0.83rem;
}

.detail-cell small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

.status-chip {
  display: inline-flex;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.status-chip.success {
  background: rgba(126, 224, 176, 0.12);
  color: var(--success);
}

.status-chip.warning {
  background: rgba(243, 200, 121, 0.12);
  color: var(--warning);
}

.status-chip.danger {
  background: rgba(255, 139, 132, 0.12);
  color: var(--danger);
}

.participant-checklist {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
}

.participant-next-action {
  display: grid;
  min-width: min(100%, 250px);
  flex: 1 1 250px;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.participant-next-action small {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.participant-next-action strong {
  color: var(--cream);
  font-size: 0.78rem;
}

.participant-next-action span {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.participant-next-action.success {
  border-color: rgba(126, 224, 176, 0.28);
}

.participant-next-action.warning {
  border-color: rgba(243, 200, 121, 0.3);
}

.participant-next-action.danger {
  border-color: rgba(255, 139, 132, 0.32);
}

.checklist-steps {
  display: grid;
  min-width: min(100%, 560px);
  flex: 2 1 560px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.checklist-step {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  color: var(--muted);
}

.checklist-step.success {
  border-color: rgba(126, 224, 176, 0.28);
  color: var(--success);
}

.checklist-step.warning {
  border-color: rgba(243, 200, 121, 0.28);
  color: var(--warning);
}

.checklist-step.danger {
  border-color: rgba(255, 139, 132, 0.3);
  color: var(--danger);
}

.checklist-marker {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
}

.checklist-copy {
  min-width: 0;
}

.checklist-copy small,
.checklist-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checklist-copy small {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.checklist-copy strong {
  color: currentColor;
  font-size: 0.7rem;
}

.participant-actions {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.participant-whatsapp-membership-control {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.participant-whatsapp-membership-control .gender-save-status {
  min-height: 0;
}

.participant-action-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 820;
  text-decoration: none;
}

.participant-action-button.action-success {
  border-color: rgba(126, 224, 176, 0.36);
  color: var(--success);
}

.participant-action-button.action-danger {
  border-color: rgba(255, 139, 132, 0.36);
  color: var(--danger);
}

.participant-action-button.action-whatsapp {
  border-color: rgba(85, 201, 189, 0.38);
  color: var(--teal);
}

.participant-action-button.action-secondary {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--muted);
}

/* Via manuale: il link resta visibile e selezionabile anche se WhatsApp non si apre. */
.payment-reminder-link {
  flex-basis: 100%;
  min-width: 0;
  margin-top: 0.35rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  text-overflow: ellipsis;
}

.payment-reminder-link:focus-visible {
  outline: 2px solid rgba(85, 201, 189, 0.55);
  outline-offset: 2px;
}

.payment-reminder-status:not(:empty) {
  flex-basis: 100%;
  color: var(--warning);
  font-size: 0.73rem;
  line-height: 1.45;
}

.participant-action-button:hover,
.participant-action-button:focus-visible {
  background: rgba(255, 255, 255, 0.09);
}

.anomaly-note {
  grid-column: 1 / -1;
  margin: -3px 0 0;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 139, 132, 0.2);
  color: var(--danger);
  font-size: 0.73rem;
}

.payment-needed-note {
  grid-column: 1 / -1;
  margin: -3px 0 0;
  padding-top: 11px;
  border-top: 1px solid rgba(243, 200, 121, 0.2);
  color: var(--warning);
  font-size: 0.73rem;
}

.empty-state {
  display: grid;
  min-height: 180px;
  place-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--cream);
}

.privacy-footnote {
  max-width: 760px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

.vip-dialog {
  width: min(620px, calc(100% - 28px));
  max-width: 620px;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel-solid);
  color: var(--cream);
  box-shadow: var(--shadow);
}

.vip-dialog::backdrop {
  background: rgba(1, 9, 15, 0.78);
  backdrop-filter: blur(10px);
}

.vip-form {
  box-sizing: border-box;
  min-width: 0;
  padding: clamp(24px, 5vw, 38px);
}

.vip-form textarea,
.vip-form input,
.vip-form select {
  box-sizing: border-box;
  max-width: 100%;
}

.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.dialog-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}

.dialog-copy {
  margin: 20px 0;
  color: var(--muted);
  line-height: 1.6;
}

.dialog-copy strong {
  color: var(--gold-light);
}

.eyebrow-danger {
  color: var(--danger);
}

.cancellation-note {
  padding: 14px 16px;
  border: 1px solid rgba(255, 139, 132, 0.28);
  border-radius: 16px;
  background: rgba(255, 139, 132, 0.07);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.payment-receipt-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.amount-input {
  position: relative;
}

.amount-input > span {
  position: absolute;
  top: 50%;
  left: 15px;
  color: var(--gold-light);
  font-weight: 850;
  translate: 0 -50%;
}

.amount-input input {
  padding-left: 38px;
}

.vip-result {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(126, 224, 176, 0.3);
  border-radius: 18px;
  background: rgba(126, 224, 176, 0.07);
}

.vip-result > p {
  margin: 5px 0 13px;
  color: var(--muted);
  font-size: 0.82rem;
}

.vip-result textarea {
  margin-bottom: 12px;
  background: rgba(2, 15, 23, 0.5);
}

.dialog-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 1120px) {
  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workflow-grid,
  .checklist-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .registration-details {
    grid-template-columns: repeat(3, minmax(115px, 1fr));
  }

  .collections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .search-field {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .topbar,
  .main-shell {
    width: min(100% - 28px, 1320px);
  }

  .topbar {
    min-height: 74px;
  }

  .actor-email {
    display: none;
  }

  .main-shell {
    padding-top: 30px;
  }

  .auth-card {
    border-radius: 24px;
  }

  .dashboard-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-actions {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-card {
    min-height: 128px;
    padding: 17px;
  }

  .workflow-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .workflow-heading > p {
    text-align: left;
  }

  .collections-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .collections-status {
    text-align: left;
  }

  .payment-receipt-fields {
    grid-template-columns: 1fr;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .search-field {
    grid-column: auto;
  }

  .data-mode {
    align-self: stretch;
  }

  .mode-button {
    flex: 1;
  }

  .registration-summary {
    padding: 15px;
  }

  .registration-body {
    padding: 15px;
  }

  .registration-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .participant-checklist {
    display: grid;
    grid-template-areas:
      "actions"
      "next"
      "steps";
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .participant-next-action {
    grid-area: next;
    min-width: 0;
    width: auto;
    flex: none;
  }

  .participant-actions {
    display: grid;
    grid-area: actions;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    width: auto;
    flex: none;
    justify-content: normal;
  }

  .checklist-steps {
    grid-area: steps;
    min-width: 0;
    width: auto;
    flex: none;
  }

  .participant-actions > * {
    min-width: 0;
  }

  .participant-actions .payment-reminder-link,
  .participant-actions .payment-reminder-status {
    grid-column: 1 / -1;
  }

  .participant-action-button {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .vip-dialog {
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: 100dvh;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
  }

  .vip-form {
    height: 100%;
    padding:
      max(14px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-padding-top: max(96px, calc(env(safe-area-inset-top) + 76px));
    scroll-padding-bottom: max(148px, calc(env(safe-area-inset-bottom) + 126px));
    -webkit-overflow-scrolling: touch;
  }

  .vip-form :is(input, select, textarea, button) {
    scroll-margin-top: max(96px, calc(env(safe-area-inset-top) + 76px));
    scroll-margin-bottom: max(148px, calc(env(safe-area-inset-bottom) + 126px));
  }

  .dialog-heading {
    position: sticky;
    z-index: 2;
    top: 0;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    background: var(--panel-solid);
    box-shadow: 0 1px 0 var(--line-soft);
  }

  .dialog-heading h2 {
    overflow-wrap: anywhere;
    font-size: clamp(1.35rem, 7vw, 1.75rem);
    line-height: 1.12;
  }

  .dialog-copy {
    margin: 13px 0;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .vip-form textarea:not([readonly]) {
    min-height: 72px;
    max-height: 20dvh;
  }

  .dialog-actions,
  .vip-result .button-row,
  .payment-receipt-fields {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    position: sticky;
    z-index: 2;
    bottom: 0;
    margin-top: 16px;
    padding-top: 12px;
    background: var(--panel-solid);
    box-shadow: 0 -1px 0 var(--line-soft);
  }

  .vip-result {
    padding: 14px;
  }

  .vip-result textarea {
    max-height: 24dvh;
  }
}

@media (max-width: 460px) {
  .mfa-secondary-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .brand small {
    display: none;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .summary-card {
    min-height: 118px;
    padding: 15px;
  }

  .summary-card strong {
    font-size: 1.7rem;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-card {
    min-height: 112px;
    padding: 16px;
  }

  .collections-grid {
    grid-template-columns: 1fr;
  }

  .roster-panel {
    border-radius: 23px;
  }

  .roster-heading {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .dashboard-actions {
    grid-template-columns: 1fr;
  }

  .dashboard-actions {
    display: grid;
  }

  .registration-summary {
    gap: 10px;
    padding: 14px;
  }

  .registration-summary-meta {
    font-size: 0.73rem;
  }

  .registration-disclosure {
    align-self: start;
  }

  .registration-closed-label,
  .registration-open-label {
    display: none !important;
  }

  .registration-member {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .registration-member-meta {
    text-align: left;
  }

  .participant-checklist {
    gap: 10px;
    padding-top: 10px;
  }

  .participant-next-action {
    min-width: 0;
    flex: 0 0 auto;
    width: 100%;
    padding: 9px 10px;
  }

  .participant-next-action span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .checklist-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
    gap: 4px;
  }

  .checklist-step {
    align-items: start;
    gap: 4px;
    min-height: 48px;
    padding: 6px;
    border-radius: 10px;
  }

  .checklist-marker {
    width: 16px;
    height: 16px;
    font-size: 0.56rem;
  }

  .checklist-copy small,
  .checklist-copy strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .checklist-copy small {
    font-size: 0.44rem;
    line-height: 1.05;
  }

  .checklist-copy strong {
    font-size: 0.56rem;
    line-height: 1.08;
  }

  .participant-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .participant-action-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
