:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --sidebar: #17181c;
  --sidebar-soft: #22242a;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --text: #16171b;
  --muted: #686d76;
  --faint: #969ba5;
  --line: #e3e6eb;
  --line-strong: #cfd4dc;
  --accent: #1f5cff;
  --accent-strong: #6326ff;
  --accent-soft: #e8edff;
  --danger: #c83d4d;
  --danger-strong: #a82e3d;
  --danger-soft: #fff1f3;
  --danger-line: #f0c2c8;
  --green: #16734a;
  --green-soft: #e7f5ee;
  --amber: #9b6516;
  --amber-soft: #fff1d7;
  --blue: #285f9f;
  --blue-soft: #e8f1ff;
  --shadow: 0 20px 55px rgba(22, 24, 32, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.hall-editor-panel {
  grid-column: 1 / -1;
  border-color: rgba(238, 190, 78, 0.24);
  background:
    radial-gradient(circle at 88% 2%, rgba(238, 190, 78, 0.12), transparent 34%),
    var(--panel);
}

.hall-editor-grid,
.hall-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.hall-model-tool {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(84, 212, 200, 0.25);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(24, 106, 120, 0.16), rgba(3, 6, 18, 0.34));
}

.hall-model-form,
.hall-model-advanced > div {
  display: grid;
  gap: 14px;
}

.hall-model-file input[type="file"] {
  padding: 12px;
  border: 1px dashed rgba(84, 212, 200, 0.42);
  background: rgba(84, 212, 200, 0.07);
}

.hall-model-advanced {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.hall-model-advanced summary {
  cursor: pointer;
  font-weight: 760;
}

.hall-model-advanced > div {
  margin-top: 14px;
}

.hall-model-result {
  padding: 16px;
  border: 1px solid rgba(67, 181, 129, 0.3);
  border-radius: 18px;
  background: rgba(22, 115, 74, 0.09);
}

.hall-model-result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hall-model-result-head h3,
.hall-model-result-head p {
  margin: 0;
}

.hall-model-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.hall-model-metrics span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
}

.hall-model-metrics strong {
  color: var(--text);
  font-size: 15px;
}

.hall-model-result code {
  display: block;
  margin-top: 8px;
  white-space: pre-wrap;
}

.hall-editor-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(3, 6, 18, 0.34);
}

.compact-heading {
  margin-bottom: 2px;
}

.hall-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.hall-entry,
.hall-season {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.hall-entry-head,
.hall-season-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hall-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hall-month-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.hall-month-button {
  min-height: 74px;
  padding: 10px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}

.hall-month-button strong,
.hall-month-button span {
  display: block;
}

.hall-month-button span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.hall-month-button.is-filled {
  border-color: rgba(238, 190, 78, 0.32);
  background: rgba(238, 190, 78, 0.08);
}

.club-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.club-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  overflow-y: auto;
  padding: 22px 18px;
  background: var(--sidebar);
  color: #fff;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.brand span:last-child {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 16px;
  line-height: 1;
}

.brand small {
  color: #aeb4c1;
  font-size: 12px;
  font-weight: 650;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.club-selector-wrap,
.club-search {
  position: relative;
  display: grid;
  gap: 5px;
  color: #aeb4c1;
  font-size: 11px;
  font-weight: 760;
}

#clubSelector {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #333640;
  border-radius: 8px;
  background: var(--sidebar-soft);
  color: #fff;
  font-size: 14px;
}

.club-search input {
  min-height: 40px;
  border-color: #333640;
  background: var(--sidebar-soft);
  color: #fff;
}

.club-more-nav,
.club-more-menu {
  display: contents;
}

.club-more-toggle {
  display: none;
}

.club-search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #3a3d47;
  border-radius: 10px;
  background: var(--sidebar-soft);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.club-search-results button {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #fff;
  text-align: left;
}

.club-search-results button:hover,
.club-search-results button:focus-visible {
  background: #30333c;
}

.club-search-results small {
  color: #aeb4c1;
}

.club-nav {
  display: grid;
  gap: 6px;
}

.club-nav button,
.club-nav .club-help-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c7cbd4;
  font-size: 14px;
  font-weight: 720;
  text-align: left;
}

.club-nav .club-help-link {
  justify-content: space-between;
  margin-top: 8px;
  border: 1px solid rgba(84, 212, 200, 0.24);
  color: #bfeee8;
  text-decoration: none;
}

.club-nav .club-help-link:hover,
.club-nav .club-help-link:focus-visible {
  border-color: rgba(84, 212, 200, 0.5);
  background: rgba(84, 212, 200, 0.1);
  color: #fff;
}

.auth-help-link {
  display: inline-flex;
  justify-content: center;
  margin-top: 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 720;
  text-underline-offset: 3px;
}

.club-nav button:hover,
.club-nav button.is-active {
  background: #fff;
  color: var(--text);
}

.sidebar-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.account-summary {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #333640;
  border-radius: 10px;
  background: var(--sidebar-soft);
}

.account-summary strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-summary span {
  color: #aeb4c1;
  font-size: 12px;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.club-main {
  width: min(1240px, calc(100vw - 308px));
  margin: 0 auto;
  padding: 30px 30px 56px;
}

.token-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(420px, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(20, 24, 32, 0.06);
}

.token-panel h2,
.panel-heading h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.token-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
  gap: 10px;
}

.advanced-session {
  grid-column: 1 / -1;
}

.invite-gate {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 24px;
  border: 1px solid rgba(163, 33, 58, 0.22);
  border-radius: 10px;
  background: rgba(163, 33, 58, 0.05);
}

.invite-gate h3,
.invite-gate p {
  margin: 0;
}

.invite-gate h3 {
  font-size: 24px;
}

.invite-gate p:not(.section-label),
.invite-gate small {
  color: var(--muted);
  line-height: 1.45;
}

.invite-identity {
  padding: 10px 12px;
  border: 1px solid rgba(163, 33, 58, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text) !important;
  font-weight: 760;
}

.invite-app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
}

.auth-alternative {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.advanced-session summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
}

.manual-token-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 10px;
}

.club-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.club-identity {
  display: flex;
  min-width: 0;
  gap: 18px;
  align-items: center;
}

.club-logo {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--surface), var(--accent-soft));
  color: var(--accent);
  box-shadow: 0 10px 28px rgba(20, 24, 32, 0.08);
  font-size: 22px;
  font-weight: 900;
  padding: 0;
  appearance: none;
  isolation: isolate;
}

.club-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.club-logo.is-dark-background {
  border-color: #303547;
  background: linear-gradient(145deg, #171923, #252a3b);
  color: #fff;
}

.club-logo:disabled {
  cursor: default;
  opacity: 1;
}

.club-logo-fallback,
.club-logo img {
  position: relative;
  z-index: 1;
}

.club-logo-edit {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  gap: 3px;
  place-content: center;
  background: linear-gradient(145deg, rgba(16, 20, 33, 0.72), rgba(31, 92, 255, 0.82));
  color: #fff;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 160ms ease, transform 160ms ease;
}

.club-logo-edit svg,
.logo-editor-mark svg {
  width: 20px;
  height: 20px;
  margin: 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.club-logo-edit span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.club-logo.is-editable:hover .club-logo-edit,
.club-logo.is-editable:focus-visible .club-logo-edit {
  opacity: 1;
  transform: scale(1);
}

.club-logo.is-editable:focus-visible {
  outline: 3px solid rgba(31, 92, 255, 0.28);
  outline-offset: 3px;
}

.section-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.club-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.98;
  letter-spacing: 0;
}

.club-hero p:last-child {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 24px;
  white-space: nowrap;
}

.role-notice {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 13px 16px;
  border: 1px solid #bad0ff;
  border-radius: 10px;
  background: var(--blue-soft);
}

.role-notice.is-judge {
  border-color: #efd7a8;
  background: var(--amber-soft);
}

.role-notice.is-platform {
  border-color: rgba(39, 93, 246, 0.3);
  background: linear-gradient(135deg, rgba(231, 239, 255, 0.96), rgba(242, 236, 255, 0.94));
}

.role-notice div {
  display: grid;
  gap: 4px;
}

.role-notice strong {
  font-size: 14px;
}

.role-notice span {
  color: var(--muted);
  font-size: 13px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.onboarding-panel {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(20, 24, 32, 0.05);
}

.onboarding-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.onboarding-heading h2 {
  margin: 0;
  font-size: 20px;
}

.onboarding-heading > strong {
  color: var(--accent);
}

.onboarding-track {
  height: 7px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.onboarding-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 220ms ease;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.onboarding-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
}

.step-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #e5e7eb;
  color: var(--muted);
  font-weight: 850;
}

.onboarding-step.is-done .step-mark {
  background: var(--green-soft);
  color: var(--green);
}

.onboarding-step strong,
.onboarding-step small {
  display: block;
}

.onboarding-step strong {
  font-size: 13px;
}

.onboarding-step small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.icon-button {
  min-height: 38px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 760;
}

.primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 0 16px;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.secondary-button,
.ghost-button,
.danger-button,
.icon-button {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
}

.danger-button {
  border-color: var(--danger-line);
  color: var(--danger);
}

.danger-button:hover {
  background: var(--danger-soft);
  border-color: var(--danger-strong);
}

.club-sidebar .secondary-button,
.club-sidebar .ghost-button {
  background: var(--sidebar-soft);
  border-color: #333640;
  color: #fff;
}

.secondary-button,
.ghost-button,
.danger-button {
  padding: 0 14px;
}

.icon-button {
  width: 38px;
  padding: 0;
}

.ops-hero,
.summary-card,
.work-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(20, 24, 32, 0.05);
}

.ops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px;
}

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

.ops-title h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
}

.ops-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.ops-score {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.ops-score > div {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.ops-score span,
.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.ops-score strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.ops-score .ops-detail {
  font-size: 15px;
  line-height: 1.25;
}

.ops-actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

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

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

.summary-card strong {
  display: block;
  margin-top: 12px;
  font-size: 25px;
  line-height: 1;
}

.summary-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.summary-card.is-accent {
  border-color: #b9c7ff;
  background: var(--accent-soft);
}

.command-grid,
.work-grid,
.lower-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

#teamPanel {
  grid-column: 1 / -1;
}

.command-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
}

.work-grid,
.lower-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
}

.command-grid.is-single-panel,
.work-grid.is-single-panel,
.lower-grid.is-single-panel {
  grid-template-columns: minmax(0, 1fr);
}

.work-panel {
  min-width: 0;
  padding: 16px;
}

.settings-panel {
  grid-column: 1 / -1;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.club-form {
  display: grid;
  gap: 10px;
}

.club-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.token-panel input,
.club-form input,
.club-form select,
.club-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
}

.club-form textarea {
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 92px;
  gap: 10px;
}

.settings-form {
  gap: 14px;
}

.settings-form label {
  min-width: 0;
}

.settings-primary-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px);
  gap: 16px;
  align-items: end;
}

.price-field {
  max-width: 260px;
}

.field-with-suffix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.field-with-suffix input {
  border: 0;
  border-radius: 0;
}

.field-with-suffix span {
  display: grid;
  align-self: stretch;
  place-items: center;
  border-left: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.settings-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.settings-footer .secondary-button {
  min-width: 138px;
}

.settings-push-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(360px, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(22, 101, 52, 0.06), transparent 44%),
    var(--surface-soft);
}

.settings-push-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.settings-push-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 28px;
  line-height: 1;
}

.toggle-row {
  display: flex !important;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.toggle-row input {
  width: auto;
}

.settings-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.settings-toggles .toggle-row {
  position: relative;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 790;
}

.settings-toggles .toggle-row:has(input:checked) {
  border-color: rgba(5, 150, 105, 0.34);
  background: rgba(236, 253, 245, 0.74);
}

.settings-toggles .toggle-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle-visual {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #e2e8f0;
  transition: background 160ms ease, border-color 160ms ease;
}

.toggle-visual::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
  content: "";
  transition: transform 160ms ease;
}

.settings-toggles input:checked + .toggle-visual {
  border-color: var(--green);
  background: var(--green);
}

.settings-toggles input:checked + .toggle-visual::after {
  transform: translateX(14px);
}

.settings-toggles input:focus-visible + .toggle-visual {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 2px;
}

.form-actions,
.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meeting-list,
.attention-list,
.player-list,
.compact-table,
.registration-list,
.integration-list,
.notification-list {
  display: grid;
  gap: 8px;
}

.document-list {
  display: grid;
  gap: 8px;
}

.roster-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.roster-group > header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.roster-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.roster-players {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.roster-players .registration-row {
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  border: 0;
  border-radius: 0;
  background: var(--surface-soft);
}

.roster-empty {
  border: 0;
  border-radius: 0;
}

.roster-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.meeting-row,
.attention-row,
.player-row,
.game-row,
.registration-row,
.integration-row,
.notification-row {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.team-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.document-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, var(--surface-soft));
}

.document-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

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

.document-copy .row-title {
  font-size: 17px;
}

.document-copy .row-meta {
  overflow: visible;
  line-height: 1.45;
  text-overflow: clip;
  white-space: normal;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.document-actions .primary-button,
.document-actions .secondary-button,
.document-actions .ghost-button,
.document-upload-button {
  min-height: 40px;
  width: auto;
  padding-inline: 14px;
  font-size: 13px;
}

.document-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.meeting-row {
  grid-template-columns: 82px minmax(0, 1fr) minmax(220px, 250px);
  align-items: stretch;
}

.meeting-main {
  min-width: 0;
}

.meeting-main .status-chip {
  margin-top: 10px;
}

.meeting-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: center;
}

.meeting-actions .secondary-button,
.meeting-actions .danger-button {
  width: 100%;
}

.meetings-panel .meeting-row {
  grid-template-columns: 70px minmax(0, 1fr);
}

.meetings-panel .meeting-actions {
  grid-column: 1 / -1;
}

.game-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 16px;
}

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

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

.game-title-line,
.game-badges,
.game-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.game-title-line {
  margin-bottom: 5px;
}

.game-badges {
  gap: 6px;
}

.game-primary-actions {
  justify-content: flex-end;
}

.game-primary-actions .button-link,
.game-primary-actions button {
  min-height: 36px;
  white-space: nowrap;
}

.game-link-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-top: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.game-link-editor .secondary-button {
  min-width: 160px;
}

.notification-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.notification-metrics,
.notification-settings-strip {
  display: grid;
  gap: 8px;
}

.notification-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.notification-metrics span,
.notification-settings-strip span,
.notification-preview {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.notification-metrics strong {
  margin-right: 4px;
  color: var(--text);
  font-size: 15px;
}

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

.notification-preview {
  background: var(--blue-soft);
}

.push-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.push-preview-list span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  padding: 0 8px;
  background: #fff;
  color: var(--text);
  font-size: 11px;
  font-weight: 760;
}

.registration-row {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
}

.integration-row {
  grid-template-columns: minmax(0, 1fr) 96px auto;
}

.history-import-form {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.history-import-primary-action {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(31, 92, 255, 0.22);
  border-radius: 14px;
  padding: 14px;
  background: rgba(232, 237, 255, 0.48);
}

.history-import-primary-action strong,
.history-import-primary-action small {
  display: block;
}

.history-import-primary-action small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.history-import-primary-action .primary-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.history-import-custom-settings {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.history-import-custom-settings summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
}

.history-import-custom-settings[open] summary {
  margin-bottom: 14px;
}

.history-import-auth-note {
  margin: 0;
}

.history-import-summary {
  display: grid;
  gap: 14px;
  padding-top: 16px;
}

.history-import-metrics,
.history-import-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-import-metrics span,
.history-import-items span {
  display: inline-flex;
  gap: 4px;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
}

.history-import-items {
  padding-top: 8px;
}

.history-import-items span {
  width: 100%;
  border-radius: 8px;
}

.history-import-danger-zone {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.history-import-danger-zone summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
}

.history-import-danger-zone[open] summary {
  margin-bottom: 10px;
}

.history-import-danger-zone .muted-text {
  margin: 0 0 12px;
}

.player-row {
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.player-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.player-row-actions .ghost-button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.player-directory-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--muted);
  font-size: 13px;
}

.player-directory-summary span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.player-directory-summary strong {
  color: var(--blue);
  font-size: 17px;
}

.directory-tabs,
.directory-toolbar,
.pagination-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.directory-tabs {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.event-history-tabs {
  margin-bottom: 12px;
}

.event-history-tabs button span {
  min-width: 18px;
  color: inherit;
}

.directory-tabs button {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 760;
}

.directory-tabs button.is-active {
  border-color: var(--accent);
  background: var(--blue-soft);
  color: var(--accent);
}

.directory-toolbar {
  margin-bottom: 12px;
}

.directory-toolbar input {
  flex: 1 1 260px;
}

.directory-toolbar .muted-text {
  margin-left: auto;
}

.pagination-row {
  justify-content: space-between;
  margin-top: 12px;
}

.game-event-link {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

.game-event-link select {
  width: 100%;
  min-height: 36px;
}

.player-directory-group,
.player-suggestions {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.player-directory-group > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.player-directory-rows,
.player-suggestion-list {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.player-suggestions summary {
  padding: 12px;
  cursor: pointer;
  color: var(--text);
  font-weight: 780;
}

.player-suggestions > p {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 13px;
}

.player-suggestion-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.date-box,
.avatar-box {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--accent);
  font-weight: 850;
}

.date-box {
  min-height: 54px;
  text-align: center;
  font-size: 13px;
  line-height: 1.15;
}

.date-box span,
.date-box strong,
.date-box em {
  display: block;
}

.date-box span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.date-box strong {
  margin-top: 2px;
  color: var(--accent);
}

.date-box em {
  margin-top: 2px;
  color: var(--accent);
  font-style: normal;
}

.avatar-box {
  width: 38px;
  height: 38px;
}

.row-title {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-row .row-title {
  display: -webkit-box;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.row-meta {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-meta.is-warning-text {
  color: var(--amber);
}

.registration-date-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.registration-date-list span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.muted-text {
  color: var(--muted);
  font-size: 13px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 780;
  white-space: nowrap;
}

.status-chip.is-ok {
  background: var(--green-soft);
  color: var(--green);
}

.status-chip.is-warning {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-chip.is-neutral {
  background: #f1f5f9;
  color: #475569;
}

.attention-row {
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: start;
}

.attention-mark {
  width: 8px;
  height: 44px;
  border-radius: 999px;
  background: var(--blue);
}

.attention-row.is-warning .attention-mark {
  background: var(--amber);
}

.attention-row.is-ok .attention-mark {
  background: var(--green);
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.modal-panel {
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.modal-panel::backdrop {
  background: rgba(22, 24, 32, 0.38);
  backdrop-filter: blur(2px);
}

.selective-invite-dialog {
  width: min(680px, calc(100vw - 28px));
}

.selective-invite-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.selective-invite-list {
  display: grid;
  max-height: min(390px, 48vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.selective-invite-player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.selective-invite-player:last-child {
  border-bottom: 0;
}

.selective-invite-player:has(input:disabled) {
  cursor: default;
  opacity: 0.66;
}

.selective-invite-player-copy {
  display: grid;
  gap: 2px;
}

.selective-invite-player-copy small {
  color: var(--muted);
}

.logo-editor-dialog {
  width: min(700px, calc(100vw - 28px));
  padding: 26px;
  border-radius: 22px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(99, 38, 255, 0.1), transparent 35%),
    var(--surface);
}

.logo-editor-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-right: 32px;
}

.logo-editor-heading h2,
.logo-editor-heading p {
  margin: 0;
}

.logo-editor-heading h2 {
  font-size: 28px;
  line-height: 1.05;
}

.logo-editor-heading p:last-child {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.logo-editor-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 92, 255, 0.2);
}

.logo-background-picker {
  min-width: 0;
  margin: 22px 0 14px;
  padding: 0;
  border: 0;
}

.logo-background-picker legend {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

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

.logo-preview-card {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 22px;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.logo-preview-card:hover {
  transform: translateY(-1px);
}

.logo-preview-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 92, 255, 0.1);
}

.logo-preview-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.logo-preview-card:has(input:focus-visible) {
  outline: 3px solid rgba(31, 92, 255, 0.26);
  outline-offset: 2px;
}

.logo-preview-caption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-align: center;
}

.logo-preview-card:has(input:checked) .logo-preview-caption {
  color: var(--accent);
}

.logo-preview-check {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 5px 12px rgba(31, 92, 255, 0.24);
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 150ms ease, transform 150ms ease;
}

.logo-preview-card:has(input:checked) .logo-preview-check {
  opacity: 1;
  transform: scale(1);
}

.logo-preview-stage {
  position: relative;
  display: grid;
  min-height: 150px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.logo-preview-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(45deg, rgba(127, 135, 150, 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(127, 135, 150, 0.06) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(127, 135, 150, 0.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(127, 135, 150, 0.06) 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.logo-preview-stage.is-light {
  background: linear-gradient(145deg, #fff, #edf1ff);
}

.logo-preview-stage.is-dark {
  border-color: #303547;
  background: linear-gradient(145deg, #171923, #252a3b);
  color: #fff;
}

.logo-preview-stage img,
.logo-preview-stage > span {
  position: relative;
  z-index: 1;
}

.logo-preview-stage img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.logo-preview-stage > span {
  font-size: 30px;
  font-weight: 900;
}

.logo-dropzone {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 78px;
  border: 1px dashed rgba(31, 92, 255, 0.45);
  border-radius: 16px;
  padding: 14px;
  background: rgba(232, 237, 255, 0.48);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.logo-dropzone:hover,
.logo-dropzone.is-dragging {
  border-color: var(--accent);
  background: rgba(232, 237, 255, 0.9);
  transform: translateY(-1px);
}

.logo-dropzone.has-file {
  border-style: solid;
  border-color: rgba(22, 115, 74, 0.42);
  background: var(--green-soft);
}

.logo-dropzone.has-error {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.logo-dropzone-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(31, 92, 255, 0.1);
  font-size: 22px;
  font-weight: 850;
}

.logo-dropzone strong,
.logo-dropzone small {
  display: block;
}

.logo-dropzone small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.logo-editor-note,
.logo-editor-state {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.logo-editor-state {
  min-height: 18px;
  color: var(--text);
  font-weight: 720;
}

.logo-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.logo-editor-actions > div {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

@media (hover: none) {
  .club-logo.is-editable .club-logo-edit {
    inset: auto 4px 4px auto;
    width: 24px;
    height: 24px;
    border: 2px solid #fff;
    border-radius: 999px;
    opacity: 1;
    transform: none;
  }

  .club-logo-edit svg {
    width: 12px;
    height: 12px;
  }

  .club-logo-edit span {
    display: none;
  }
}

.qr-panel {
  width: min(440px, calc(100vw - 28px));
}

.qr-content {
  display: grid;
  justify-items: center;
  text-align: center;
}

.qr-content h2 {
  margin: 0;
}

.qr-content img {
  width: min(320px, 82vw);
  margin: 18px 0 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.qr-content p:not(.section-label) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.modal-close-form {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
}

.event-dialog-heading {
  padding-right: 46px;
}

.event-poster-import:not([hidden]) {
  display: flex;
  margin: -2px 0 14px;
}

.event-poster-import .secondary-button {
  max-width: 100%;
  white-space: normal;
}

.poster-review {
  display: grid;
  gap: 16px;
}

.poster-review-heading,
.poster-review-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.poster-review-heading h3 {
  margin: 3px 0 0;
}

.poster-review-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.poster-review-identities {
  display: grid;
  gap: 8px;
}

.poster-identity-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(190px, 1.35fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.poster-identity-row.is-confirmed {
  border-color: rgba(22, 115, 74, 0.3);
  background: var(--green-soft);
}

.poster-identity-row.needs-review {
  border-color: rgba(155, 101, 22, 0.34);
  background: var(--amber-soft);
}

.poster-identity-source {
  min-width: 0;
}

.poster-identity-source strong,
.poster-identity-source small {
  display: block;
  overflow-wrap: anywhere;
}

.poster-identity-source small,
.poster-identity-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.poster-identity-row select {
  min-width: 0;
  width: 100%;
}

.poster-identity-picker {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.poster-identity-search-button {
  width: fit-content;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}

.poster-judge-role-button {
  width: fit-content;
  margin-top: 8px;
  white-space: normal;
}

.poster-review-confirmation {
  border-color: rgba(155, 101, 22, 0.34);
  background: var(--amber-soft);
}

.event-roster-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.event-roster-heading,
.event-roster-add,
.event-roster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.event-roster-nickname {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 760;
}

.event-roster-nickname:hover,
.event-roster-nickname:focus {
  border-color: var(--line-strong);
  background: #fff;
  outline: none;
}

.event-roster-actions {
  display: flex;
  gap: 8px;
}

.event-roster-save-button {
  color: var(--green);
}

.event-roster-heading h3 {
  margin: 4px 0 0;
}

.event-roster-add label {
  flex: 1;
}

.event-roster-add .secondary-button {
  align-self: end;
}

.event-roster-list {
  display: grid;
  gap: 6px;
}

.event-roster-row {
  justify-content: flex-start;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.event-roster-row strong {
  min-width: 0;
  flex: 1;
}

.identity-link-dialog {
  display: none;
  width: min(680px, calc(100vw - 28px));
  gap: 18px;
  max-height: min(760px, calc(100vh - 40px));
  padding: 26px;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(17, 24, 39, 0.26);
}

.identity-link-dialog[open] {
  display: grid;
  grid-template-rows: auto auto auto auto auto minmax(126px, 1fr) auto auto;
}

.identity-link-heading {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-right: 42px;
}

.identity-link-heading-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 21px;
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(31, 92, 255, 0.24);
}

.identity-link-heading .section-label {
  margin-bottom: 4px;
}

.identity-link-heading h2 {
  margin: 0;
  font-size: clamp(22px, 4vw, 28px);
  letter-spacing: -0.025em;
}

.identity-link-heading p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.identity-link-source-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid #dbe3ff;
  border-radius: 16px;
  background: linear-gradient(135deg, #f6f8ff, #fbfcff);
}

.identity-link-source-avatar,
.identity-link-result-avatar {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(145deg, #dfe6ff, #edf0ff);
  color: var(--accent);
  font-weight: 850;
}

.identity-link-source-avatar {
  width: 42px;
  height: 42px;
  font-size: 13px;
}

.identity-link-source-card > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.identity-link-source-card strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-link-source-card span,
.identity-link-result small {
  color: var(--muted);
  font-size: 12px;
}

.identity-link-source-kind,
.identity-link-current-club {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #dbe3ff;
  color: var(--accent) !important;
  font-size: 10px !important;
  font-weight: 820;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.identity-link-copy {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.identity-link-search-label {
  margin-bottom: -10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
}

.identity-link-search-field {
  position: relative;
}

.identity-link-search-field svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 15px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--faint);
  stroke-linecap: round;
  stroke-width: 1.8;
  pointer-events: none;
}

.identity-link-search-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 44px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.identity-link-search-field input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 92, 255, 0.11);
}

.identity-link-results {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 126px;
  max-height: 314px;
  padding-right: 3px;
  overflow: auto;
  scrollbar-color: #cbd2df transparent;
  scrollbar-width: thin;
}

.identity-link-result {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.identity-link-result-avatar {
  width: 44px;
  height: 44px;
  font-size: 13px;
}

.identity-link-result-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identity-link-result-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
}

.identity-link-result-copy strong,
.identity-link-result-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-link-result-copy strong {
  font-size: 15px;
}

.identity-link-result-trailing {
  display: flex;
  gap: 8px;
  align-items: center;
}

.identity-link-current-club {
  background: var(--green-soft);
  box-shadow: none;
  color: var(--green) !important;
}

.identity-link-result-check {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: transparent;
  font-size: 13px;
  font-weight: 900;
}

.identity-link-result:hover,
.identity-link-result:focus-visible,
.identity-link-result.is-selected {
  border-color: var(--accent);
  outline: none;
}

.identity-link-result:hover,
.identity-link-result:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(31, 92, 255, 0.09);
}

.identity-link-result.is-selected {
  background: linear-gradient(135deg, #f4f7ff, var(--accent-soft));
  box-shadow: inset 0 0 0 1px var(--accent);
}

.identity-link-result.is-selected .identity-link-result-check {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.identity-link-empty {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 122px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: var(--surface-soft);
}

.identity-link-empty-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--accent);
  font-size: 18px;
  font-weight: 850;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.06);
}

.identity-link-empty > div {
  display: grid;
  gap: 4px;
}

.identity-link-empty span:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.identity-link-empty.is-not-found .identity-link-empty-mark {
  background: var(--amber-soft);
  color: var(--amber);
}

.identity-link-result-skeleton {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.identity-link-result-skeleton > span,
.identity-link-result-skeleton i {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef0f4, #f8f9fb, #eef0f4);
  background-size: 200% 100%;
  animation: identity-link-shimmer 1.1s linear infinite;
}

.identity-link-result-skeleton > span {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.identity-link-result-skeleton > div {
  display: grid;
  gap: 8px;
}

.identity-link-result-skeleton i:first-child {
  width: min(180px, 68%);
  height: 12px;
}

.identity-link-result-skeleton i:last-child {
  width: min(120px, 46%);
  height: 9px;
}

@keyframes identity-link-shimmer {
  to { background-position: -200% 0; }
}

.identity-link-state {
  display: grid;
  gap: 2px;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 11px;
  color: var(--muted);
  font-size: 12px;
}

.identity-link-state[data-kind="ready"] {
  background: var(--green-soft);
  color: var(--green);
}

.identity-link-state[data-kind="error"] {
  background: var(--danger-soft);
  color: var(--danger);
}

.identity-link-state[data-kind="loading"] {
  background: var(--blue-soft);
  color: var(--blue);
}

.identity-link-state strong {
  color: inherit;
  font-size: 13px;
}

.identity-link-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
  border-top: 1px solid var(--line);
}

.identity-link-actions button {
  min-height: 44px;
  padding-inline: 18px;
  border-radius: 12px;
}

.identity-link-actions .primary-button {
  min-width: 190px;
}

.registration-identity-action {
  white-space: normal;
}

.registration-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  background: #17171a;
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

body.is-auth-screen {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(163, 33, 58, 0.08), rgba(22, 24, 32, 0) 38%),
    var(--bg);
}

body.is-auth-screen .club-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

body.is-auth-screen .club-sidebar,
body.is-auth-screen .club-hero,
body.is-auth-screen .role-notice,
body.is-auth-screen .onboarding-panel,
body.is-auth-screen .ops-hero,
body.is-auth-screen .summary-grid,
body.is-auth-screen .command-grid,
body.is-auth-screen .work-grid,
body.is-auth-screen .lower-grid {
  display: none;
}

body.is-auth-screen .club-main {
  width: min(860px, 100%);
  padding: 0;
}

body.is-auth-screen .token-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

body.is-auth-screen.is-week-demo-closed .token-panel {
  grid-template-columns: 1fr;
}

body.is-auth-screen.is-week-demo-closed .auth-form,
body.is-auth-screen.is-week-demo-closed .auth-points,
body.is-auth-screen.is-week-demo-closed .auth-help-link {
  display: none;
}

body.is-auth-screen .auth-intro {
  display: flex;
  grid-column: 1;
  grid-row: 1 / span 3;
  flex-direction: column;
  min-height: 430px;
  padding: 28px;
  background: var(--sidebar);
  color: #fff;
}

body.is-auth-screen .auth-brand-logo {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-bottom: 30px;
  border-radius: 8px;
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }

body.is-auth-screen .auth-intro .section-label {
  color: #aebeff;
}

body.is-auth-screen .token-panel h2 {
  font-size: 30px;
  line-height: 1.05;
}

body.is-auth-screen .auth-intro p:not(.section-label) {
  max-width: 280px;
  margin: 14px 0 0;
  color: #c7cbd4;
  line-height: 1.45;
}

.auth-points {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.auth-points span {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid #333640;
  border-radius: 8px;
  background: var(--sidebar-soft);
  color: #fff;
  font-size: 13px;
  font-weight: 720;
}

body.is-auth-screen .auth-form {
  grid-column: 2;
  align-content: center;
  padding: 34px;
}

body.is-auth-screen .invite-gate {
  align-self: center;
  margin: 34px 34px 0;
}

body.is-auth-screen .auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

body.is-auth-screen .token-panel form {
  grid-template-columns: 1fr;
}

body.is-auth-screen .token-panel input,
body.is-auth-screen .token-panel button {
  min-height: 44px;
}

body.is-auth-screen .advanced-session {
  grid-column: 2;
  margin: 0 34px 30px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

@media (max-width: 1080px) {
  .club-shell {
    grid-template-columns: 1fr;
  }

  .club-sidebar {
    position: static;
    display: grid;
    grid-template-columns: auto minmax(0, 220px) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    height: auto;
    overflow: visible;
    padding: 14px;
  }

  .club-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .club-nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar-actions {
    display: flex;
    margin-top: 0;
  }

  .account-summary {
    min-width: 180px;
  }

  .account-actions {
    display: flex;
  }

  .club-main {
    width: min(100vw - 28px, 1240px);
    padding: 24px 0 48px;
  }

  .ops-hero,
  .summary-grid,
  .onboarding-steps,
  .command-grid,
  .work-grid,
  .lower-grid,
  .token-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body.is-auth-screen .club-shell {
    padding: 16px;
  }

  body.is-auth-screen .token-panel {
    grid-template-columns: 1fr;
  }

  body.is-auth-screen .auth-intro {
    min-height: auto;
    padding: 22px;
  }

  body.is-auth-screen .auth-brand-logo {
    margin-bottom: 18px;
  }

  body.is-auth-screen .auth-points {
    margin-top: 18px;
  }

  body.is-auth-screen .auth-form {
    grid-column: 1;
    padding: 22px;
  }

  body.is-auth-screen .invite-gate {
    grid-column: 1;
    margin: 22px 22px 0;
  }

  body.is-auth-screen .advanced-session {
    grid-column: 1;
    margin: 0 22px 22px;
  }

  .club-sidebar {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

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

  .brand,
  .sidebar-actions {
    width: 100%;
    min-width: 0;
  }

  .club-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    gap: 5px;
    min-width: 0;
  }

  .club-nav > * {
    min-width: 0;
  }

  .club-nav > button,
  .club-more-toggle {
    justify-content: center;
    min-height: 40px;
    padding: 0 5px;
    border-radius: 8px;
    font-size: 12px;
    text-align: center;
  }

  .club-more-nav {
    position: relative;
    display: block;
    grid-column: 3;
  }

  .club-more-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent;
    color: #c7cbd4;
    font-weight: 720;
    list-style: none;
    cursor: pointer;
  }

  .club-more-nav.is-open > .club-more-toggle {
    background: #fff;
    color: var(--text);
  }

  .club-more-menu {
    position: absolute;
    z-index: 50;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    display: grid;
    width: min(290px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    gap: 5px;
    padding: 8px;
    border: 1px solid #333640;
    border-radius: 12px;
    background: var(--sidebar);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }

  .club-more-nav:not(.is-open) > .club-more-menu {
    display: none;
  }

  .club-more-menu button,
  .club-more-menu .club-help-link {
    width: 100%;
  }

  .sidebar-actions {
    display: grid;
    gap: 10px;
  }

  .account-summary,
  .account-actions {
    min-width: 0;
    width: 100%;
  }

  .account-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .sidebar-actions,
  .hero-actions {
    flex-wrap: wrap;
  }

  .role-notice {
    display: grid;
  }

  .onboarding-steps,
  .team-list,
  .hall-editor-grid,
  .hall-content-grid {
    grid-template-columns: 1fr;
  }

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

  .event-roster-add {
    align-items: stretch;
    flex-direction: column;
  }

  .event-roster-add .secondary-button {
    align-self: stretch;
  }

  .event-poster-import .secondary-button {
    width: 100%;
  }

  .identity-link-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    gap: 14px;
    padding: 20px 16px 16px;
    border-radius: 20px;
  }

  .identity-link-dialog[open] {
    grid-template-rows: auto auto auto auto auto minmax(104px, 1fr) auto auto;
  }

  .identity-link-heading {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 11px;
    padding-right: 34px;
  }

  .identity-link-heading-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 18px;
  }

  .identity-link-heading h2 {
    font-size: 22px;
  }

  .identity-link-heading p:last-child {
    display: none;
  }

  .identity-link-source-card {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 11px;
  }

  .identity-link-source-avatar {
    width: 40px;
    height: 40px;
  }

  .identity-link-source-kind {
    display: none;
  }

  .identity-link-copy {
    font-size: 12px;
  }

  .identity-link-results {
    min-height: 104px;
    max-height: 270px;
  }

  .identity-link-result {
    min-height: 58px;
    padding: 7px 9px;
    border-radius: 14px;
  }

  .identity-link-result-avatar {
    width: 40px;
    height: 40px;
  }

  .identity-link-current-club {
    display: none;
  }

  .identity-link-actions {
    flex-direction: column-reverse;
  }

  .identity-link-actions button,
  .identity-link-actions .primary-button {
    width: 100%;
  }

  .poster-review-heading,
  .poster-review-group-heading {
    align-items: flex-start;
  }

  .poster-identity-row {
    grid-template-columns: 1fr;
  }

  .club-hero {
    display: grid;
  }

  .club-identity {
    align-items: flex-start;
  }

  .club-logo {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 14px;
    font-size: 17px;
  }

  .logo-editor-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 20px 16px 16px;
    border-radius: 20px;
  }

  .logo-editor-heading {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 11px;
  }

  .logo-editor-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .logo-editor-heading h2 {
    font-size: 23px;
  }

  .logo-editor-heading p:last-child {
    display: none;
  }

  .logo-preview-stage {
    min-height: 120px;
  }

  .logo-preview-stage img {
    width: 86px;
    height: 86px;
  }

  .logo-editor-actions,
  .logo-editor-actions > div {
    align-items: stretch;
  }

  .logo-editor-actions > div {
    width: 100%;
    margin: 0;
  }

  .logo-editor-actions > button,
  .logo-editor-actions > div button {
    flex: 1 1 0;
  }

  .club-hero h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .hero-actions {
    padding-top: 0;
  }

  .hero-actions button,
  .sidebar-actions button {
    flex: 1 1 150px;
  }

  .token-panel form,
  .manual-token-row,
  .form-grid,
  .settings-form,
  .settings-primary-row,
  .settings-push-card,
  .settings-toggles,
  .ops-score {
    grid-template-columns: 1fr;
  }

  .settings-footer {
    align-items: stretch;
  }

  .settings-footer .secondary-button {
    width: 100%;
  }

  .meeting-row,
  .game-row,
  .registration-row,
  .integration-row,
  .document-row,
  .notification-metrics,
  .notification-settings-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .game-summary,
  .game-link-editor {
    grid-template-columns: minmax(0, 1fr);
  }

  .game-primary-actions {
    justify-content: flex-start;
  }

  .game-primary-actions .button-link,
  .game-primary-actions button,
  .game-link-editor .secondary-button {
    width: 100%;
  }

  .directory-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .directory-tabs button {
    flex: 0 0 auto;
  }

  .meeting-actions {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .document-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .document-header .status-chip {
    justify-self: start;
  }

  .document-actions > * {
    flex: 1 1 180px;
  }

  .player-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .player-row .player-row-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}

.demo-experience {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(114, 122, 255, 0.34);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(114, 122, 255, 0.2), transparent 45%),
    linear-gradient(145deg, rgba(21, 24, 42, 0.98), rgba(13, 15, 28, 0.98));
  box-shadow: 0 18px 54px rgba(5, 7, 18, 0.22);
}

.demo-experience[hidden] {
  display: none;
}

.demo-experience h2,
.demo-experience p {
  margin: 0;
}

.demo-experience h2,
.demo-experience-upgrade > strong {
  color: #ffffff;
}

.demo-experience-copy,
.demo-experience-upgrade {
  display: grid;
  align-content: start;
  gap: 12px;
}

.demo-experience-copy > p:not(.section-label),
.demo-experience-upgrade p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.demo-experience-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-experience-points span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
}

.demo-experience-upgrade {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.demo-experience-upgrade > strong {
  font-size: 1.05rem;
}

.demo-experience-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-feature-lock {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px dashed rgba(114, 122, 255, 0.45);
  border-radius: 16px;
  background: rgba(114, 122, 255, 0.08);
}

.demo-feature-lock strong,
.demo-feature-lock span {
  display: block;
}

.demo-feature-lock span {
  color: var(--muted);
  line-height: 1.45;
}

body.is-demo [data-demo-hidden] {
  display: none !important;
}

[data-demo-only] {
  display: none;
}

body.is-demo [data-demo-only] {
  display: block;
}

.demo-only-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 800px) {
  .demo-experience {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .demo-experience {
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
  }

  .demo-experience-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .demo-experience-actions > * {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .identity-link-result,
  .identity-link-search-field input {
    transition: none;
  }

  .identity-link-result-skeleton > span,
  .identity-link-result-skeleton i {
    animation: none;
  }
}

.event-roster-add { flex-wrap: wrap; }
.event-roster-row > div:nth-child(2) { flex: 1; min-width: 0; }
.event-roster-row > div:nth-child(2) .muted-text { display: block; padding-left: 10px; font-size: 12px; }
