:root {
  --ev-navy: #10284f;
  --ev-navy-2: #173967;
  --ev-blue: #2d67b1;
  --ev-ink: #172033;
  --ev-muted: #667085;
  --ev-line: #e4e9f1;
  --ev-soft: #f5f7fb;
  --ev-card: #ffffff;
  --ev-success: #147a55;
  --ev-danger: #b42318;
  --ev-radius: 18px;
  --ev-shadow: 0 16px 50px rgba(16, 40, 79, .09);
}

.events-shell,
.organizer-shell,
.organizer-auth-shell {
  min-height: 100vh;
  background: #f7f9fc;
  color: var(--ev-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.events-topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--ev-line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}
.events-brand,
.organizer-brand {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  color: var(--ev-ink);
  cursor: pointer;
  text-align: left;
}
.events-brand img,
.organizer-brand img { width: 35px; height: 35px; object-fit: contain; }
.events-brand span,
.organizer-brand div { display: flex; flex-direction: column; line-height: 1.05; }
.events-brand strong,
.organizer-brand strong { font-size: 15px; letter-spacing: -.01em; }
.events-brand small,
.organizer-brand span { color: var(--ev-muted); font-size: 11px; margin-top: 4px; }
.events-organizer-link {
  color: var(--ev-navy);
  font-weight: 650;
  font-size: 14px;
  text-decoration: none;
}
.events-main { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0 72px; }
.events-footer { padding: 28px; text-align: center; color: #8b94a7; font-size: 12px; }
.events-hero { padding: clamp(34px, 7vw, 76px) 0 44px; max-width: 770px; }
.events-kicker,
.registration-eyebrow { color: var(--ev-blue); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.events-hero h1,
.event-detail-hero h1,
.registration-header h1,
.registration-success h1,
.organizer-page h1,
.organizer-auth-brand h1 { margin: 10px 0 12px; letter-spacing: -.045em; line-height: 1.03; color: #13213a; }
.events-hero h1 { font-size: clamp(36px, 6vw, 64px); }
.events-hero p { margin: 0; color: var(--ev-muted); font-size: clamp(16px, 2vw, 19px); }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.event-card {
  min-height: 245px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ev-line);
  border-radius: var(--ev-radius);
  background: var(--ev-card);
  box-shadow: 0 6px 20px rgba(16,40,79,.035);
  cursor: pointer;
  text-align: left;
  color: var(--ev-ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--ev-shadow); border-color: #cdd7e7; }
.event-card-top,
.event-detail-heading { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.event-status { display: inline-flex; padding: 6px 9px; border-radius: 99px; font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.event-status-open { color: #087443; background: #e8f7f0; }
.event-status-upcoming { color: #8a5600; background: #fff4d7; }
.event-status-closed { color: #667085; background: #eef1f5; }
.event-status-draft { color: #667085; background: #eef1f5; }
.event-department { font-size: 11px; color: var(--ev-muted); font-weight: 700; }
.event-card h2 { margin: 26px 0 8px; font-size: 23px; line-height: 1.12; letter-spacing: -.025em; }
.event-card p { margin: 0; color: var(--ev-muted); line-height: 1.5; font-size: 14px; }
.event-card-meta { margin-top: auto; padding-top: 30px; color: #7b8497; font-size: 12px; }
.event-card-action { margin-top: 14px; color: var(--ev-navy); font-weight: 750; font-size: 13px; }
.events-back {
  border: 0; background: transparent; color: #5f6b7e; font-weight: 650; padding: 0; margin: 6px 0 30px; cursor: pointer;
}
.event-detail-hero { padding: 14px 0 42px; max-width: 830px; }
.event-detail-hero h1 { font-size: clamp(38px, 6vw, 62px); }
.event-detail-hero p { color: var(--ev-muted); font-size: 17px; margin: 0; }
.event-deadline { margin-top: 21px; color: #526076; font-size: 13px; font-weight: 650; }
.competition-section,
.registration-card,
.organizer-section,
.organizer-edit-form { border: 1px solid var(--ev-line); background: #fff; border-radius: var(--ev-radius); }
.competition-section { overflow: hidden; }
.section-heading { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--ev-line); font-size: 13px; }
.section-heading strong { color: var(--ev-muted); }
.competition-list { display: flex; flex-direction: column; }
.competition-card {
  width: 100%; border: 0; border-bottom: 1px solid #edf0f5; background: #fff; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; color: var(--ev-ink);
}
.competition-card:last-child { border-bottom: 0; }
.competition-card:not(:disabled):hover { background: #fafcff; }
.competition-card:disabled { cursor: default; opacity: .72; }
.competition-card h3 { margin: 0 0 4px; font-size: 16px; }
.competition-card p { margin: 0; font-size: 12px; color: var(--ev-muted); }
.competition-open { color: var(--ev-blue); font-size: 13px; font-weight: 700; }
.events-empty { padding: 66px 24px; text-align: center; border: 1px dashed #ced6e3; border-radius: var(--ev-radius); background: rgba(255,255,255,.65); }
.events-empty.compact { padding: 28px; border: 0; background: transparent; }
.events-empty h2 { margin: 0 0 8px; font-size: 22px; }
.events-empty p { color: var(--ev-muted); margin: 0 0 22px; }
.events-loading { min-height: 280px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--ev-muted); font-size: 13px; }
.events-loading.full-page { min-height: 100vh; }
.events-loading.inline { min-height: 90px; }
.events-spinner { width: 20px; height: 20px; border: 2px solid #dce3ee; border-top-color: var(--ev-blue); border-radius: 50%; animation: evspin .7s linear infinite; }
@keyframes evspin { to { transform: rotate(360deg); } }
.events-primary,
.events-secondary,
.events-danger {
  min-height: 42px; padding: 0 16px; border-radius: 11px; font-weight: 750; font-size: 13px; cursor: pointer; transition: .15s ease; border: 1px solid transparent;
}
.events-primary { background: var(--ev-navy); color: #fff; }
.events-primary:hover { background: var(--ev-navy-2); }
.events-secondary { background: #fff; color: var(--ev-ink); border-color: #d6deea; }
.events-secondary:hover { background: #f8faff; }
.events-danger { background: #fff1f0; color: var(--ev-danger); border-color: #ffd2cf; }
.events-primary.full,
.events-secondary.full { width: 100%; }
.events-shell button:disabled, .organizer-shell button:disabled, .organizer-auth-shell button:disabled { cursor: not-allowed; opacity: .58; }
.registration-header { max-width: 720px; margin: 10px auto 26px; }
.registration-header h1 { font-size: clamp(34px, 5vw, 48px); }
.registration-header p { color: var(--ev-muted); margin: 0; }
.registration-card { max-width: 720px; margin: 0 auto; padding: clamp(20px, 4vw, 34px); box-shadow: 0 10px 34px rgba(16,40,79,.05); }
.registration-form { display: grid; gap: 20px; }
.registration-field { display: grid; gap: 8px; }
.registration-field > label,
.organizer-auth-form label > span,
.organizer-edit-form label > span { font-size: 12px; font-weight: 720; color: #344054; }
.registration-field input,
.registration-field select,
.registration-field textarea,
.organizer-auth-form input,
.organizer-edit-form input,
.organizer-edit-form select,
.organizer-edit-form textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #cfd8e6; border-radius: 11px; background: #fff; color: var(--ev-ink); min-height: 46px; padding: 10px 12px; font: inherit; outline: none;
}
.registration-field textarea,
.organizer-edit-form textarea { resize: vertical; }
.registration-field input:focus,
.registration-field select:focus,
.registration-field textarea:focus,
.organizer-auth-form input:focus,
.organizer-edit-form input:focus,
.organizer-edit-form select:focus,
.organizer-edit-form textarea:focus { border-color: #6f9ad0; box-shadow: 0 0 0 3px rgba(45,103,177,.09); }
.registration-field.display-field { background: var(--ev-soft); border-radius: 12px; padding: 14px 15px; }
.registration-display-value { font-weight: 760; color: var(--ev-navy); }
.choice-list { display: grid; gap: 8px; }
.choice-list.horizontal { grid-template-columns: repeat(2, minmax(0,1fr)); }
.choice-item { min-height: 43px; display: flex; align-items: center; gap: 10px; border: 1px solid #dce3ed; border-radius: 10px; padding: 0 12px; font-size: 13px; }
.choice-item input { width: auto; min-height: auto; padding: 0; box-shadow: none; }
.registration-success { max-width: 620px; margin: 72px auto; text-align: center; background: #fff; border: 1px solid var(--ev-line); border-radius: 24px; padding: clamp(32px, 7vw, 68px) 24px; box-shadow: var(--ev-shadow); }
.success-mark { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #e7f7ef; color: var(--ev-success); font-size: 26px; font-weight: 900; margin: 0 auto 22px; }
.registration-success h1 { font-size: 40px; }
.registration-success p { color: var(--ev-muted); }
.registration-code { margin: 28px auto; padding: 14px 18px; max-width: 320px; border-radius: 12px; background: var(--ev-soft); display: grid; gap: 5px; }
.registration-code small { color: var(--ev-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.registration-code strong { font-size: 21px; letter-spacing: .05em; }

.organizer-auth-shell { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(460px, 1.1fr); background: #fff; }
.organizer-auth-shell.single { display: grid; grid-template-columns: minmax(0, 560px); justify-content: center; background: #f7f9fc; }
.organizer-auth-brand { min-height: 100vh; padding: clamp(42px, 7vw, 90px); display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, #0e2549, #173f73); color: #fff; }
.organizer-auth-brand img { width: 50px; height: 50px; margin-bottom: 48px; }
.organizer-auth-brand .registration-eyebrow { color: #aecdff; }
.organizer-auth-brand h1 { color: #fff; font-size: clamp(38px, 5vw, 62px); max-width: 650px; }
.organizer-auth-brand p { max-width: 560px; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.6; }
.organizer-auth-panel { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 28px; }
.organizer-auth-card { width: min(430px, 100%); }
.organizer-auth-card h2 { margin: 30px 0 20px; font-size: 28px; letter-spacing: -.025em; }
.organizer-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--ev-line); }
.organizer-auth-tabs button { border: 0; background: transparent; padding: 12px; color: var(--ev-muted); font-weight: 700; cursor: pointer; border-bottom: 2px solid transparent; }
.organizer-auth-tabs button.active { color: var(--ev-navy); border-bottom-color: var(--ev-navy); }
.organizer-auth-form { display: grid; gap: 15px; }
.organizer-auth-form label,
.organizer-edit-form label { display: grid; gap: 7px; }
.organizer-public-link { display: block; margin-top: 20px; color: var(--ev-muted); text-align: center; font-size: 12px; text-decoration: none; }
.organizer-muted { color: var(--ev-muted); font-size: 13px; }

.organizer-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.organizer-sidebar { min-height: 100vh; position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; padding: 24px 18px; border-right: 1px solid var(--ev-line); background: #fff; }
.organizer-brand { padding: 0 7px 23px; }
.organizer-nav { display: grid; gap: 5px; border-top: 1px solid var(--ev-line); padding-top: 18px; }
.organizer-nav button { border: 0; background: transparent; border-radius: 10px; padding: 11px 12px; text-align: left; color: #596579; font-weight: 650; cursor: pointer; }
.organizer-nav button:hover,
.organizer-nav button.active { background: #f0f4fa; color: var(--ev-navy); }
.organizer-account { margin-top: auto; padding: 16px 8px 2px; display: grid; gap: 4px; border-top: 1px solid var(--ev-line); }
.organizer-account strong { font-size: 12px; }
.organizer-account small { color: var(--ev-muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
.organizer-account button { width: max-content; margin-top: 9px; padding: 0; border: 0; background: transparent; color: #667085; font-size: 11px; cursor: pointer; }
.organizer-body { min-width: 0; }
.organizer-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 80px; }
.organizer-mobile-top { display: none; }
.organizer-page { display: grid; gap: 24px; }
.organizer-page.narrow { max-width: 820px; }
.organizer-page-head,
.organizer-event-head,
.organizer-section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.organizer-page h1 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 0; }
.organizer-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.organizer-stats > div { min-height: 110px; padding: 18px 20px; border-radius: 15px; border: 1px solid var(--ev-line); background: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.organizer-stats small { color: var(--ev-muted); font-size: 11px; }
.organizer-stats strong { font-size: 30px; letter-spacing: -.04em; }
.organizer-event-list { border: 1px solid var(--ev-line); border-radius: 16px; overflow: hidden; background: #fff; }
.organizer-event-row { width: 100%; padding: 18px 20px; border: 0; border-bottom: 1px solid #edf0f5; background: #fff; display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; color: var(--ev-ink); }
.organizer-event-row:last-child { border-bottom: 0; }
.organizer-event-row:hover { background: #fafcff; }
.organizer-event-row > div:first-child { display: grid; gap: 4px; }
.organizer-event-row span { color: var(--ev-muted); font-size: 11px; }
.organizer-event-row-right { display: flex; align-items: center; gap: 12px; }
.organizer-status { padding: 5px 7px; border-radius: 99px; background: #eff2f6; font-size: 9px !important; font-weight: 800; }
.organizer-status.published { background: #e7f7ef; color: #087443 !important; }
.organizer-empty { border: 1px dashed #ccd5e2; border-radius: 16px; padding: 50px 24px; text-align: center; }
.organizer-empty.compact { border: 0; padding: 24px; }
.organizer-empty h2 { margin: 0 0 7px; }
.organizer-empty p { margin: 0 0 18px; color: var(--ev-muted); }
.organizer-edit-form { padding: 24px; display: grid; gap: 18px; }
.organizer-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.organizer-form-actions,
.organizer-head-actions,
.organizer-row-actions,
.builder-toolbar { display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.organizer-event-head p { margin: 4px 0 0; color: var(--ev-muted); }
.organizer-section { overflow: hidden; }
.organizer-section-head { padding: 18px 20px; border-bottom: 1px solid var(--ev-line); }
.organizer-section-head h2 { margin: 0; font-size: 17px; }
.organizer-section-head p { margin: 4px 0 0; color: var(--ev-muted); font-size: 11px; }
.organizer-competition-list { display: grid; }
.organizer-competition-row { min-height: 68px; padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0f5; }
.organizer-competition-row:last-child { border-bottom: 0; }
.organizer-competition-row > div:first-child { display: grid; gap: 4px; }
.organizer-competition-row span { color: var(--ev-muted); font-size: 11px; }
.organizer-row-actions button { min-height: 33px; border: 1px solid #dbe2ec; background: #fff; border-radius: 8px; padding: 0 10px; color: #4c5b70; font-size: 11px; cursor: pointer; }
.organizer-response-count { padding: 15px 20px; border-bottom: 1px solid var(--ev-line); }
.organizer-response-count strong { font-size: 20px; }
.organizer-response-count span { color: var(--ev-muted); font-size: 12px; }
.organizer-table-wrap { overflow-x: auto; }
.organizer-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.organizer-table th { text-align: left; color: #7b8496; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; padding: 11px 15px; background: #fafbfc; border-bottom: 1px solid var(--ev-line); }
.organizer-table td { padding: 13px 15px; border-bottom: 1px solid #eef1f5; white-space: nowrap; }
.organizer-modal-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(10, 20, 38, .46); display: grid; place-items: center; padding: 20px; }
.organizer-modal { width: min(590px, 100%); max-height: min(86vh, 760px); overflow: auto; background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(0,0,0,.22); }
.organizer-modal .organizer-edit-form { border: 0; }
.organizer-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border-bottom: 1px solid var(--ev-line); }
.organizer-modal-head h2 { margin: 0; font-size: 18px; }
.organizer-modal-head button { border: 0; background: transparent; font-size: 25px; line-height: 1; color: #667085; cursor: pointer; }

.builder-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 18px; align-items: start; }
.builder-editor { overflow: visible; }
.builder-toolbar { padding: 15px; border-bottom: 1px solid var(--ev-line); }
.builder-field-list { display: grid; }
.builder-field-row { min-height: 70px; padding: 10px 13px; display: grid; grid-template-columns: auto minmax(150px,1fr) auto auto auto; gap: 10px; align-items: center; border-bottom: 1px solid #edf0f5; }
.builder-field-row:last-child { border-bottom: 0; }
.builder-move { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.builder-move button,
.builder-edit,
.builder-delete { border: 1px solid #dce2eb; background: #fff; border-radius: 7px; min-height: 30px; color: #5d697b; cursor: pointer; }
.builder-field-main { display: grid; gap: 3px; }
.builder-field-main strong { font-size: 12px; }
.builder-field-main span { color: var(--ev-muted); font-size: 10px; }
.builder-required { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 6px !important; font-size: 10px; color: #667085; }
.builder-required input { width: auto !important; min-height: auto !important; }
.builder-required.large { font-size: 12px; }
.builder-toggle { min-width: 48px; min-height: 30px; border: 0; border-radius: 99px; font-size: 10px; font-weight: 800; cursor: pointer; }
.builder-toggle.on { background: #e6f7ef; color: #087443; }
.builder-toggle.off { background: #eff2f5; color: #7b8495; }
.builder-actions { display: flex; gap: 5px; }
.builder-edit,
.builder-delete { padding: 0 9px; font-size: 10px; }
.builder-preview-wrap { position: sticky; top: 28px; }
.builder-preview-label { padding: 12px 15px; border-bottom: 1px solid var(--ev-line); color: #8490a2; font-size: 9px; letter-spacing: .12em; font-weight: 800; }
.builder-preview { padding: 24px; display: grid; gap: 17px; }
.builder-preview-head small { color: var(--ev-muted); }
.builder-preview-head h3 { margin: 4px 0 2px; font-size: 24px; letter-spacing: -.03em; }
.builder-preview-field { display: grid; gap: 6px; }
.builder-preview-field label { font-size: 10px; font-weight: 700; color: #475467; }
.builder-preview-field input,
.builder-preview-field select,
.builder-preview-field textarea,
.builder-preview-display { min-height: 39px; border: 1px solid #dde3eb; border-radius: 9px; background: #f9fafb; }
.builder-preview-display { display: flex; align-items: center; padding: 0 10px; font-size: 11px; font-weight: 700; color: var(--ev-navy); }
.standard-field-picker { display: grid; padding: 10px; }
.standard-field-picker button { border: 0; border-bottom: 1px solid #edf0f5; background: #fff; padding: 13px 10px; display: flex; align-items: center; justify-content: space-between; text-align: left; cursor: pointer; }
.standard-field-picker button:hover { background: #f8faff; }
.standard-field-picker span { color: var(--ev-muted); font-size: 11px; }

@media (max-width: 900px) {
  .event-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .organizer-auth-shell { grid-template-columns: 1fr; }
  .organizer-auth-brand { min-height: auto; padding: 50px 28px; }
  .organizer-auth-brand img { margin-bottom: 30px; }
  .organizer-auth-panel { min-height: auto; padding: 42px 24px; }
  .organizer-shell { display: block; }
  .organizer-sidebar { display: none; }
  .organizer-mobile-top { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 0 18px; background: #fff; border-bottom: 1px solid var(--ev-line); position: sticky; top: 0; z-index: 20; }
  .organizer-brand.mini { padding: 0; }
  .organizer-brand.mini img { width: 27px; height: 27px; }
  .organizer-signout-mobile { border: 0; background: transparent; color: #667085; font-size: 11px; }
  .organizer-main { width: min(100% - 30px, 900px); padding-top: 26px; }
  .builder-layout { grid-template-columns: 1fr; }
  .builder-preview-wrap { position: static; }
}
@media (max-width: 640px) {
  .events-main { width: min(100% - 26px, 1120px); padding-top: 22px; }
  .events-topbar { padding: 0 16px; }
  .event-grid { grid-template-columns: 1fr; }
  .event-card { min-height: 210px; }
  .events-hero { padding-top: 42px; }
  .events-hero h1 { font-size: 40px; }
  .event-detail-hero h1 { font-size: 40px; }
  .competition-card { padding: 17px 16px; }
  .registration-card { padding: 20px 16px; border-radius: 14px; }
  .organizer-page-head,
  .organizer-event-head,
  .organizer-section-head { align-items: flex-start; flex-direction: column; }
  .organizer-page-head > button,
  .organizer-section-head > button { width: 100%; }
  .organizer-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .organizer-stats > div { min-height: 88px; padding: 13px; }
  .organizer-stats strong { font-size: 23px; }
  .organizer-form-grid { grid-template-columns: 1fr; }
  .organizer-edit-form { padding: 18px 15px; }
  .organizer-competition-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .organizer-row-actions { width: 100%; }
  .organizer-row-actions button { flex: 1; }
  .builder-field-row { grid-template-columns: auto minmax(0,1fr) auto; }
  .builder-required { grid-column: 2; }
  .builder-toggle { grid-column: 3; grid-row: 1; }
  .builder-actions { grid-column: 3; grid-row: 2; }
}

/* Events v0.9.1 — team registration and registration management */
.registration-subhead {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 2px 0 0;
}
.registration-subhead.spaced { margin-top: 8px; }
.registration-subhead > span {
  color: var(--ev-blue);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
}
.registration-subhead > strong { font-size: 15px; }
.registration-subhead > small { margin-left: auto; color: var(--ev-muted); font-size: 10px; }
.team-registration-block { display: grid; gap: 18px; padding-top: 4px; }
.team-person-list { display: grid; gap: 12px; }
.team-person-card {
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  padding: 15px;
  background: #fbfcfe;
}
.team-person-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.team-person-title { font-size: 12px; color: #344054; }
.team-remove { border: 0; background: transparent; color: var(--ev-danger); font-size: 10px; font-weight: 750; cursor: pointer; }
.team-person-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.team-person-grid label { display: grid; gap: 6px; }
.team-person-grid label > span { font-size: 10px; font-weight: 700; color: #475467; }
.team-person-grid input,
.team-person-grid select {
  width: 100%; box-sizing: border-box; min-height: 42px; border: 1px solid #cfd8e6; border-radius: 10px; padding: 8px 10px; background: #fff; color: var(--ev-ink); font: inherit; outline: none;
}
.team-person-grid input:focus,
.team-person-grid select:focus { border-color: #6f9ad0; box-shadow: 0 0 0 3px rgba(45,103,177,.09); }
.team-field-wide { grid-column: span 2; }
.team-list-actions { display: flex; justify-content: flex-start; }
.compact-button { min-height: 36px; font-size: 11px; }
.team-substitute-area { display: grid; gap: 14px; border-top: 1px solid #edf0f5; padding-top: 18px; }
.success-team-name { display: block; margin-top: 6px; font-size: 18px; }

.team-settings-panel { padding: 14px; border: 1px solid #e0e6ef; border-radius: 12px; background: #f9fbfd; }
.organizer-form-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }

.registration-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, .45fr) minmax(145px, .4fr);
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ev-line);
  background: #fbfcfe;
}
.registration-search,
.registration-filter {
  width: 100%; min-height: 40px; box-sizing: border-box; border: 1px solid #d7dfe9; border-radius: 10px; background: #fff; padding: 8px 11px; color: var(--ev-ink); font: inherit; outline: none;
}
.registration-search:focus,
.registration-filter:focus { border-color: #6f9ad0; box-shadow: 0 0 0 3px rgba(45,103,177,.08); }
.registration-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border-bottom: 1px solid var(--ev-line);
  background: #fff;
}
.registration-summary-strip > div { min-height: 76px; padding: 13px 18px; display: flex; flex-direction: column; justify-content: center; gap: 3px; border-right: 1px solid #edf0f5; }
.registration-summary-strip > div:last-child { border-right: 0; }
.registration-summary-strip small { color: var(--ev-muted); font-size: 10px; }
.registration-summary-strip strong { font-size: 22px; letter-spacing: -.03em; }
.registration-result-line { padding: 11px 20px; border-bottom: 1px solid #edf0f5; font-size: 11px; color: var(--ev-muted); }
.registration-result-line strong { color: var(--ev-ink); }
.registration-row { cursor: pointer; transition: background .12s ease; }
.registration-row:hover { background: #f9fbfd; }
.registration-row td:first-child { display: grid; gap: 3px; }
.registration-row td:first-child strong { font-size: 12px; }
.registration-row td:first-child small { color: #8490a2; font-size: 9px; letter-spacing: .04em; }
.registration-status { display: inline-flex; min-height: 24px; align-items: center; padding: 0 8px; border-radius: 99px; font-size: 9px; font-weight: 800; background: #eef2f6; color: #566176; }
.registration-status-confirmed { background: #e6f7ef; color: #087443; }
.registration-status-incomplete { background: #fff4d7; color: #8a5600; }
.registration-status-withdrawn { background: #eff2f5; color: #667085; }
.registration-status-disqualified { background: #fff0ef; color: #a12a20; }
.registration-detail-modal { width: min(920px, 100%); }
.registration-detail-modal .organizer-modal-head { align-items: flex-start; }
.registration-detail-modal .organizer-modal-head h2 { margin-top: 4px; font-size: 24px; }
.registration-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: #edf0f5; border-top: 1px solid #edf0f5; border-bottom: 1px solid #edf0f5; }
.registration-detail-line { min-height: 62px; padding: 11px 16px; display: grid; align-content: center; gap: 4px; background: #fff; }
.registration-detail-line span { color: var(--ev-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.registration-detail-line strong { font-size: 12px; overflow-wrap: anywhere; }
.registration-detail-roster { padding: 18px 20px 0; }
.registration-detail-roster h3 { margin: 0 0 10px; font-size: 13px; }
.compact-table th,
.compact-table td { padding: 9px 11px; }
.registration-status-editor { display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; padding: 20px; border-top: 1px solid var(--ev-line); margin-top: 18px; }
.registration-status-editor label { display: grid; gap: 6px; min-width: 180px; }
.registration-status-editor label span { font-size: 10px; font-weight: 700; color: #475467; }
.registration-status-editor select { min-height: 42px; border: 1px solid #d4dce7; border-radius: 10px; background: #fff; padding: 0 10px; font: inherit; }

@media (max-width: 760px) {
  .registration-toolbar { grid-template-columns: 1fr; padding: 12px 14px; }
  .registration-summary-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .registration-summary-strip > div:nth-child(2) { border-right: 0; }
  .registration-summary-strip > div:nth-child(-n+2) { border-bottom: 1px solid #edf0f5; }
  .registration-detail-grid { grid-template-columns: 1fr; }
  .registration-status-editor { align-items: stretch; flex-direction: column; }
  .registration-status-editor label { min-width: 0; }
  .team-person-grid { grid-template-columns: 1fr; }
  .team-field-wide { grid-column: auto; }
  .organizer-form-grid.three { grid-template-columns: 1fr; }
  .registration-subhead { align-items: flex-start; flex-wrap: wrap; }
  .registration-subhead > small { width: 100%; margin-left: 0; }
}

/* Events v0.9.2 — participant self-service and Excel export */
.registration-export-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.competition-setting-toggle {
  display: flex !important;
  grid-template-columns: auto 1fr !important;
  align-items: center;
  gap: 9px !important;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #e0e6ef;
  border-radius: 11px;
  background: #f9fbfd;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
}
.competition-setting-toggle input { width: auto !important; min-height: auto !important; margin: 0; }
.registration-private-actions { display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 4px; }
.registration-private-note { display: block; max-width: 390px; margin: 2px auto 0; color: var(--ev-muted); font-size: 10px; line-height: 1.5; }
.events-text-button { border: 0; background: transparent; color: var(--ev-muted); min-height: 38px; padding: 0 12px; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.events-text-button:hover { color: var(--ev-blue); }
.manage-registration-header { display: grid; gap: 9px; }
.manage-registration-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.registration-public-status { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 99px; background: #eef2f6; color: #566176; font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.registration-public-status-confirmed { background: #e6f7ef; color: #087443; }
.registration-public-status-incomplete { background: #fff4d7; color: #8a5600; }
.registration-public-status-withdrawn { background: #eff2f5; color: #667085; }
.registration-public-status-disqualified { background: #fff0ef; color: #a12a20; }
.compact-code { width: fit-content; margin-top: 4px; }
.locked-registration-card { padding-top: 0; }
.registration-locked-banner { margin: 0 -1px 20px; padding: 12px 15px; border: 1px solid #e2e7ef; border-radius: 11px; background: #f8fafc; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.registration-locked-banner strong { font-size: 11px; color: #344054; }
.registration-locked-banner span { font-size: 10px; color: var(--ev-muted); text-align: right; }
.locked-registration-card input:disabled,
.locked-registration-card select:disabled,
.locked-registration-card textarea:disabled { opacity: 1; color: #536075; background: #f7f9fc; cursor: default; }
.locked-registration-card button:disabled { display: none; }

@media (max-width: 640px) {
  .registration-export-actions { width: 100%; }
  .registration-export-actions button { flex: 1; }
  .registration-private-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .registration-private-actions button { width: 100%; }
  .manage-registration-topline { align-items: flex-start; flex-direction: column; }
  .registration-locked-banner { align-items: flex-start; flex-direction: column; }
  .registration-locked-banner span { text-align: left; }
}

/* Events v0.9.3 — organizer collaboration */
.organizer-role-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 99px;
  background: #eef2f6;
  color: #566176;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.organizer-role-badge.owner { background: #eaf2ff; color: #285d9c; }
.organizer-role-badge.editor { background: #e8f7ef; color: #087443; }
.organizer-role-badge.viewer { background: #f2efff; color: #6550a5; }
.organizer-event-access-line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.event-access-modal { width: min(760px, 100%); }
.event-access-body { display: grid; gap: 14px; padding: 18px 20px 22px; }
.event-access-owner,
.event-access-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  background: #fff;
}
.event-access-owner > div,
.event-access-row > div:first-child { display: grid; gap: 3px; min-width: 0; }
.event-access-owner strong,
.event-access-row strong { font-size: 12px; overflow-wrap: anywhere; }
.event-access-owner span:not(.organizer-role-badge),
.event-access-row span { color: var(--ev-muted); font-size: 10px; overflow-wrap: anywhere; }
.event-access-add {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 130px auto;
  gap: 9px;
  padding: 14px;
  border: 1px solid #dce4ee;
  border-radius: 12px;
  background: #f9fbfd;
}
.event-access-add input,
.event-access-add select,
.event-access-row select {
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid #d7dfe9;
  border-radius: 10px;
  background: #fff;
  padding: 8px 11px;
  color: var(--ev-ink);
  font: inherit;
  outline: none;
}
.event-access-list { display: grid; gap: 9px; }
.event-access-row { grid-template-columns: minmax(0, 1fr) 120px auto; }
.event-access-actions { display: flex; gap: 7px; align-items: center; }
.registration-status-view { margin-top: 18px; border-top: 1px solid var(--ev-line); }
.registration-status-view .registration-detail-line { max-width: 280px; }

@media (max-width: 720px) {
  .organizer-event-row-right { gap: 7px; }
  .event-access-add,
  .event-access-row { grid-template-columns: 1fr; }
  .event-access-actions { width: 100%; }
  .event-access-actions button { flex: 1; }
  .event-access-owner { grid-template-columns: 1fr auto; }
}

/* Events v0.9.4 — event operations */
.registration-pass {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px auto 4px;
  padding: 12px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
  background: #fff;
}
.registration-qr {
  width: 138px;
  height: 138px;
  border-radius: 8px;
  background: #fff;
  image-rendering: pixelated;
}
.registration-pass .registration-code { margin: 0; }
.compact-pass { margin: 8px 0 0; justify-content: flex-start; }
.compact-qr { width: 92px; height: 92px; }
.competition-title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.roster-lock-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #475467;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.organizer-competition-row.roster-locked { background: #fafbfc; }
.checkin-page { gap: 18px; }
.checkin-head { margin-bottom: 0; }
.checkin-summary { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 0; }
.checkin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 240px) minmax(160px, 220px) auto;
  gap: 9px;
  align-items: center;
  margin-bottom: 14px;
}
.checkin-toolbar input,
.checkin-toolbar select {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid #d7dfe9;
  border-radius: 10px;
  background: #fff;
  padding: 9px 11px;
  color: var(--ev-ink);
  font: inherit;
  outline: none;
}
.checkin-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef2f6;
  color: #566176;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.checkin-status-checked-in { background: #e6f7ef; color: #087443; }
.checkin-status-partial { background: #fff4d7; color: #8a5600; }
.checkin-status-absent { background: #fff0ef; color: #a12a20; }
.checkin-status-pending { background: #eef2f6; color: #667085; }
.checkin-detail-modal { width: min(900px, 100%); }
.checkin-detail-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 20px 0;
}
.checkin-detail-summary > div {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #e3e8ef;
  border-radius: 11px;
  background: #fafbfc;
}
.checkin-detail-summary span { color: var(--ev-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.checkin-detail-summary strong { font-size: 11px; }
.checkin-bulk-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 0; }
.checkin-warning { margin: 14px 20px 0; padding: 11px 12px; border: 1px solid #f1d0cc; border-radius: 10px; background: #fff6f5; color: #9b2c24; font-size: 10px; font-weight: 700; }
.checkin-roster-section { display: grid; gap: 8px; padding: 18px 20px 4px; }
.checkin-section-title { display: flex; align-items: end; justify-content: space-between; gap: 10px; }
.checkin-section-title h3 { margin: 0; font-size: 12px; }
.checkin-section-title span { color: var(--ev-muted); font-size: 9px; font-weight: 700; }
.checkin-person-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #e3e8ef;
  border-radius: 11px;
  background: #fff;
}
.checkin-person-main { display: grid; gap: 3px; min-width: 0; }
.checkin-person-main strong { font-size: 11px; overflow-wrap: anywhere; }
.checkin-person-main span { color: var(--ev-muted); font-size: 9px; overflow-wrap: anywhere; }
.checkin-person-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.scanner-modal { width: min(560px, 100%); }
.scanner-stage { position: relative; margin: 18px 20px 12px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: #101828; }
.checkin-scanner-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner-frame { position: absolute; inset: 18%; border: 2px solid rgba(255,255,255,.9); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.26); pointer-events: none; }
.scanner-status { display: block; padding: 0 20px 20px; color: var(--ev-muted); font-size: 10px; text-align: center; }

@media (max-width: 820px) {
  .checkin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkin-toolbar { grid-template-columns: 1fr 1fr; }
  .checkin-toolbar .checkin-search { grid-column: 1 / -1; }
  .checkin-person-row { grid-template-columns: minmax(0, 1fr) auto; }
  .checkin-person-actions { grid-column: 1 / -1; }
  .checkin-detail-summary { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .registration-pass { flex-direction: column; width: 100%; box-sizing: border-box; }
  .compact-pass { flex-direction: row; width: fit-content; }
  .registration-qr { width: 150px; height: 150px; }
  .compact-qr { width: 82px; height: 82px; }
  .checkin-toolbar { grid-template-columns: 1fr; }
  .checkin-toolbar .checkin-search { grid-column: auto; }
  .checkin-toolbar button { width: 100%; }
  .checkin-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkin-bulk-actions { display: grid; grid-template-columns: 1fr; }
  .checkin-bulk-actions button { width: 100%; }
  .checkin-person-row { grid-template-columns: 1fr; }
  .checkin-person-actions { grid-column: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.registration-pass-wrap { display: grid; justify-items: center; gap: 5px; margin: 8px auto 2px; }
.registration-pass-note { color: var(--ev-muted); font-size: 9px; line-height: 1.45; text-align: center; }
.manage-registration-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.checkin-public-checked_in { background: #e6f7ef; color: #087443; }
.checkin-public-partial { background: #fff4d7; color: #8a5600; }
.checkin-public-absent { background: #fff0ef; color: #a12a20; }
.roster-open-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-color: #ead8a2;
  background: #fffaf0;
  color: #7a5411;
}
.checkin-roster-state {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.checkin-roster-state.locked { color: #087443; }
.checkin-roster-state.open { color: #9a6700; }
@media (max-width: 560px) {
  .roster-open-warning { align-items: stretch; flex-direction: column; }
  .roster-open-warning button { width: 100%; }
}
