:root {
  --alpha1-bg: #0b1113;
  --alpha1-panel: rgba(11, 20, 22, 0.94);
  --alpha1-panel-soft: rgba(16, 29, 32, 0.9);
  --alpha1-gold: #c9a24b;
  --alpha1-gold-bright: #e4bf63;
  --alpha1-cream: #fff8e8;
  --alpha1-muted: #c5c7bd;
  --alpha1-teal: #168c8c;
  --alpha1-teal-dark: #0e666c;
  --alpha1-teal-bright: #52c4b5;
  --alpha1-border-accent: #3aa89d;
  --alpha1-border-muted: #46575a;
  --alpha1-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

body {
  color: var(--alpha1-cream);
  background: var(--alpha1-bg);
}

.page-background {
  object-fit: cover;
  opacity: 0.84;
}

h1,
h2,
h3,
.alpha1-brand,
.dashboard-brand,
.schedule-workspace h1,
.panel-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.panel,
.bracket-shell,
.schedule-panel,
.upcoming-card,
.scheduled-event-card,
.run-tournament-card,
.sheet-shell > .panel,
.hero,
.series-list-panel {
  border-color: var(--alpha1-gold);
  background: var(--alpha1-panel);
  box-shadow: var(--alpha1-shadow);
  color: var(--alpha1-cream);
}

button,
.dashboard-primary-button,
.schedule-actions .primary-action,
.login-form > button[type="submit"],
.alpha1-att-lookup-entry .dashboard-primary-button {
  border-color: var(--alpha1-teal-bright);
  background: var(--alpha1-teal);
  color: var(--alpha1-cream);
}

button:hover,
button:focus-visible,
.dashboard-primary-button:hover,
.dashboard-primary-button:focus-visible,
.schedule-actions .primary-action:hover,
.login-form > button[type="submit"]:hover {
  background: var(--alpha1-teal-bright);
  color: #071516;
}

button.secondary,
.schedule-actions .secondary,
.dashboard-secondary-button,
.series-dialog-actions .secondary,
a.secondary {
  border-color: var(--alpha1-border-muted);
  background: rgba(10, 21, 24, 0.92);
  color: var(--alpha1-cream);
}

button.secondary:hover,
button.secondary:focus-visible,
.schedule-actions .secondary:hover,
.dashboard-secondary-button:hover,
.series-dialog-actions .secondary:hover,
a.secondary:hover {
  border-color: var(--alpha1-gold-bright);
  background: rgba(29, 57, 60, 0.95);
  color: var(--alpha1-cream);
}

input,
textarea,
select,
.field input,
.field select,
.field textarea,
.series-dialog-card input,
.series-dialog-card textarea,
.upcoming-event-id-controls input,
.early-link-row input,
.early-check-in-link-row input {
  border-color: var(--alpha1-border-muted);
  background: #0b1719;
  color: var(--alpha1-cream);
}

input::placeholder,
textarea::placeholder {
  color: #9da9a5;
}

input:focus,
textarea:focus,
select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--alpha1-teal-bright);
  outline: 3px solid rgba(82, 196, 181, 0.22);
  outline-offset: 2px;
}

.eyebrow,
.panel-kicker,
.step-label,
.dashboard-kicker,
.alpha1-att-lookup-heading .eyebrow {
  color: var(--alpha1-gold-bright);
}

.eyebrow a,
.schedule-workspace > .eyebrow a,
.series-workspace > .eyebrow a {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--alpha1-teal);
  color: #061416;
  font-weight: 900;
  text-decoration: none;
}

.eyebrow a:hover,
.eyebrow a:focus-visible {
  background: var(--alpha1-teal-bright);
  color: #061416;
}

.workflow-step.active {
  color: var(--alpha1-teal-bright);
  font-weight: 900;
}

.workflow-step.active b {
  border-color: var(--alpha1-teal-bright);
  background: var(--alpha1-teal);
  color: #061416;
}

.alpha1-workflow-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 0 0 22px; padding: 16px 20px; border: 1px solid var(--alpha1-gold); border-radius: 11px; background: rgba(7, 13, 14, .9); color: var(--alpha1-muted); }
.alpha1-workflow-steps .workflow-step { display: inline-flex; align-items: center; gap: 9px; color: var(--alpha1-muted); text-decoration: none; }
.alpha1-workflow-steps .workflow-step b { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--alpha1-border-muted); border-radius: 50%; font-size: .9rem; }
.alpha1-workflow-steps .workflow-step.complete { color: var(--alpha1-cream); font-weight: 800; }
.alpha1-workflow-steps .workflow-step.complete b { border-color: var(--alpha1-gold); color: var(--alpha1-gold-bright); }
.alpha1-workflow-steps .workflow-step.active { color: var(--alpha1-teal-bright); font-weight: 900; }
.alpha1-workflow-steps .workflow-step.active { padding: 7px 11px; border: 1px solid var(--alpha1-teal-bright); border-radius: 7px; background: rgba(22, 140, 140, .2); box-shadow: 0 0 14px rgba(82, 196, 181, .22); }
.alpha1-workflow-steps .workflow-step.active b { border-color: var(--alpha1-teal-bright); background: var(--alpha1-teal); color: #061416; }
.alpha1-workflow-steps .workflow-step:hover, .alpha1-workflow-steps .workflow-step:focus-visible { color: var(--alpha1-cream); text-decoration: underline; text-underline-offset: 3px; }
.alpha1-workflow-steps .workflow-arrow { color: var(--alpha1-gold); }

.schedule-intro,
.section-help,
.series-card p,
.series-card small,
.dashboard-muted,
.upcoming-context,
.upcoming-status,
.scheduled-event-status,
.scheduled-event-message,
.run-tournament-context,
.run-tournament-status,
.run-tournament-muted,
.alpha1-att-lookup-intro,
.alpha1-att-lookup-status {
  color: var(--alpha1-muted);
}

.password-modal-card,
.series-dialog-card,
.password-modal-card.alpha1-att-lookup-card {
  border: 1px solid var(--alpha1-gold);
  background: var(--alpha1-panel);
  color: var(--alpha1-cream);
  box-shadow: var(--alpha1-shadow);
}

.password-modal-card h2,
.series-dialog-card h2,
.alpha1-att-lookup-card h2 {
  color: var(--alpha1-cream);
  font-family: Georgia, "Times New Roman", serif;
}

.password-modal-card p,
.series-dialog-card p {
  color: var(--alpha1-muted);
}

.choice-card,
.series-card,
.run-tournament-choice,
.early-check-in-link-panel,
.run-tournament-setup {
  border-color: var(--alpha1-border-muted);
  background: var(--alpha1-panel-soft);
  color: var(--alpha1-cream);
}

.choice-card:has(input:checked),
.series-card:has(input:checked) {
  border-color: var(--alpha1-teal-bright);
  background: rgba(22, 140, 140, 0.2);
  box-shadow: 0 0 0 1px rgba(82, 196, 181, 0.24);
}

.run-tournament-choice small,
.early-check-in-link-panel small {
  color: var(--alpha1-muted);
}

.alpha1-attendance-workspace-dialog {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  height: min(900px, calc(100vh - 32px));
  max-height: none;
  padding: 0;
  border: 1px solid var(--alpha1-teal-bright);
  border-radius: 16px;
  background: var(--alpha1-panel);
  color: var(--alpha1-cream);
  box-shadow: var(--alpha1-shadow);
}

.alpha1-attendance-workspace-dialog::backdrop {
  background: rgba(2, 8, 10, 0.8);
}

.alpha1-attendance-workspace {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.alpha1-attendance-workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px 14px;
  border-bottom: 1px solid var(--alpha1-border-muted);
}

.alpha1-attendance-workspace-header h2,
.alpha1-attendance-workspace-context {
  margin: 0;
}

.alpha1-attendance-workspace-header h2 {
  color: var(--alpha1-cream);
  font-family: Georgia, "Times New Roman", serif;
}

.alpha1-attendance-workspace-context {
  margin-top: 6px;
  color: var(--alpha1-muted);
}

.alpha1-attendance-workspace-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 26px;
  border-bottom: 1px solid var(--alpha1-border-muted);
  color: var(--alpha1-muted);
  font-weight: 800;
}

.alpha1-attendance-workspace-tabs button {
  min-height: auto;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.alpha1-attendance-workspace-tabs button:hover,
.alpha1-attendance-workspace-tabs button:focus-visible {
  border-color: var(--alpha1-teal-bright);
  color: var(--alpha1-cream);
}

.alpha1-attendance-workspace-tabs button.active {
  background: var(--alpha1-teal);
  color: #061416;
}

.alpha1-attendance-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  margin: 0;
  padding: 14px 26px 16px;
  border-bottom: 1px solid var(--alpha1-border-muted);
  color: var(--alpha1-cream);
}

.alpha1-attendance-detail-row {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  font-weight: 400;
}

.alpha1-attendance-detail-row dt,
.alpha1-attendance-detail-row dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 400;
}

.alpha1-attendance-detail-row dt { color: var(--alpha1-muted); }
.alpha1-attendance-detail-code { color: var(--alpha1-cream); font-weight: 800; }

.alpha1-attendance-workspace iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
}

/* Alpha1 Step 3 team-generation portal */
.alpha1-step3-portal {
  width: calc(100% - 32px);
  max-width: 1500px;
  margin: 0 auto 24px;
  padding: 26px;
  border: 1px solid var(--alpha1-gold);
  border-radius: 16px;
  background: rgba(8, 15, 17, .96);
  color: var(--alpha1-cream);
  box-shadow: var(--alpha1-shadow);
}

.alpha1-step3-topbar { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(230px, 1fr) minmax(450px, 1.8fr); align-items: center; gap: 22px; margin: -26px -26px 22px; padding: 14px 20px; border-bottom: 1px solid var(--alpha1-border-muted); background: rgba(4, 10, 11, .94); }
.alpha1-step3-brand { color: var(--alpha1-cream); font-size: 1.18rem; font-weight: 800; text-decoration: none; }
.alpha1-step3-brand span { display: block; margin-top: 3px; color: var(--alpha1-gold-bright); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.alpha1-step3-tournament-summary { display: grid; gap: 3px; color: var(--alpha1-cream); text-align: right; }
.alpha1-step3-tournament-summary span { color: var(--alpha1-muted); font-size: .86rem; }
.alpha1-step3-summary-cards { display: grid; grid-template-columns: repeat(3, minmax(78px, 1fr)) minmax(150px, 1.4fr); gap: 8px; }
.alpha1-step3-summary-card, .alpha1-step3-settings { min-height: 54px; display: grid; align-content: center; justify-items: center; padding: 6px 9px; border: 1px solid var(--alpha1-border-muted); border-radius: 7px; background: rgba(13, 27, 29, .95); color: var(--alpha1-cream); text-decoration: none; }
.alpha1-step3-summary-card strong { font-size: 1.14rem; }
.alpha1-step3-summary-card small { color: var(--alpha1-muted); font-size: .72rem; }
.alpha1-step3-settings { border-color: var(--alpha1-gold); color: var(--alpha1-cream); font-weight: 800; }
.alpha1-step3-settings:hover, .alpha1-step3-settings:focus-visible { border-color: var(--alpha1-teal-bright); background: var(--alpha1-teal); color: #061416; }
.alpha1-step3-progress { margin: 0 0 24px; padding: 14px 16px; border-color: var(--alpha1-border-muted); background: rgba(7, 13, 14, .9); }
.alpha1-step3-progress.workflow-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--alpha1-muted); font-size: .9rem; }
.alpha1-step3-progress .workflow-step { display: inline-flex; align-items: center; gap: 7px; }
.alpha1-step3-progress .workflow-step { color: var(--alpha1-muted); text-decoration: none; }
.alpha1-step3-progress a.workflow-step:hover, .alpha1-step3-progress a.workflow-step:focus-visible { color: var(--alpha1-cream); text-decoration: underline; text-underline-offset: 3px; }
.alpha1-step3-progress .workflow-arrow { color: var(--alpha1-gold); }
.alpha1-step3-progress .workflow-step { color: var(--alpha1-muted); }
.alpha1-step3-progress .workflow-step.complete { color: var(--alpha1-cream); }
.alpha1-step3-progress .workflow-step.active { color: var(--alpha1-teal-bright); font-weight: 800; }
.alpha1-step3-progress .workflow-step b { width: 27px; height: 27px; border-color: var(--alpha1-border-muted); }
.alpha1-step3-progress .workflow-step.complete b { border-color: var(--alpha1-gold); color: var(--alpha1-gold-bright); }
.alpha1-step3-progress .workflow-step.active b { border-color: var(--alpha1-teal-bright); background: var(--alpha1-teal); color: #061416; }

.alpha1-step3-header,
.alpha1-step3-section-heading,
.alpha1-step3-navigation {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.alpha1-step3-header { margin-bottom: 10px; padding: 16px 20px; border: 1px solid var(--alpha1-gold); border-radius: 10px; background: linear-gradient(100deg, rgba(66, 5, 28, .98), rgba(35, 4, 20, .96)); }
.alpha1-step3-header h2,
.alpha1-step3-section-heading h3 { margin: 0; color: var(--alpha1-cream); font-family: Arial, Helvetica, sans-serif; }
.alpha1-step3-header h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.alpha1-step3-header p { margin: 7px 0 0; color: var(--alpha1-muted); }
.alpha1-step3-kicker,
.alpha1-step3-label { margin: 0 0 5px; color: var(--alpha1-gold-bright); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.alpha1-step3-context { max-width: 430px; padding-top: 10px; color: var(--alpha1-muted); text-align: right; }
.alpha1-step3-methods { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 18px; border-bottom: 1px solid var(--alpha1-border-muted); }
.alpha1-step3-methods button { min-height: 44px; border: 1px solid var(--alpha1-border-muted); border-radius: 8px; background: rgba(38, 19, 35, .8); color: var(--alpha1-cream); padding: 0 16px; font: 700 1rem Arial, sans-serif; cursor: pointer; }
.alpha1-step3-methods button.active, .alpha1-step3-methods button:hover, .alpha1-step3-methods button:focus-visible { border-color: var(--alpha1-teal-bright); background: var(--alpha1-teal); color: #061416; }
.alpha1-step3-methods .alpha1-step3-danger { margin-left: auto; border-color: rgba(186, 73, 73, .8); background: rgba(91, 30, 42, .85); color: #ffd9c9; }
.alpha1-step3-methods .alpha1-step3-danger:hover, .alpha1-step3-methods .alpha1-step3-danger:focus-visible { border-color: #ff9f8c; background: #77283a; color: #fff3e7; }
.alpha1-step3-workspace { display: grid; grid-template-columns: minmax(300px, 1.15fr) minmax(240px, .85fr) minmax(390px, 1.4fr); gap: 12px; padding: 18px 0; }
.alpha1-step3-workspace > .alpha1-step3-generated { min-width: 0; padding: 0 0 14px; border: 1px solid var(--alpha1-gold); border-radius: 10px; background: rgba(16, 29, 32, .9); overflow: hidden; }
.alpha1-step3-column { min-width: 0; padding: 0 16px 16px; border: 1px solid var(--alpha1-gold); border-radius: 10px; background: rgba(4, 15, 17, .94); overflow: hidden; }
.alpha1-step3-column > .alpha1-step3-section-heading, .alpha1-step3-generated > .alpha1-step3-section-heading { margin: 0 -16px 14px; padding: 13px 16px; background: linear-gradient(100deg, rgba(66, 5, 28, .98), rgba(35, 4, 20, .96)); border-bottom: 1px solid var(--alpha1-gold); }
.alpha1-step3-generated > .alpha1-step3-section-heading { margin-left: 0; margin-right: 0; }
.alpha1-step3-column > h3 { margin: 0 0 12px; font-family: Arial, sans-serif; }
.alpha1-step3-column > p:not(.alpha1-step3-label), .alpha1-step3-help { color: var(--alpha1-muted); line-height: 1.5; }
.alpha1-step3-search { width: 100%; min-height: 44px; margin: 16px 0 12px; border: 1px solid var(--alpha1-border-muted); border-radius: 8px; background: #0b1719; color: var(--alpha1-cream); padding: 0 12px; font: inherit; }
.alpha1-step3-player-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, .62fr); gap: 8px; }
.alpha1-step3-player-filters .alpha1-step3-search { margin: 16px 0 12px; }
.alpha1-step3-player-filters select { min-width: 0; min-height: 44px; margin: 16px 0 12px; padding: 0 9px; border: 1px solid var(--alpha1-border-muted); border-radius: 8px; background: #0b1719; color: var(--alpha1-cream); font: inherit; }
.alpha1-eligible-players, .alpha1-manual-players, .alpha1-manual-teams { display: grid; gap: 5px; max-height: 460px; overflow: auto; }
.alpha1-eligible-players { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.alpha1-eligible-player { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 7px; border: 1px solid rgba(70, 87, 90, .8); border-radius: 5px; background: rgba(8, 15, 17, .74); font-size: .86rem; }
.alpha1-eligible-player input { accent-color: var(--alpha1-teal-bright); }
.alpha1-eligible-player span { overflow-wrap: anywhere; }
.alpha1-step3-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.alpha1-step3-options { display: grid; align-content: start; gap: 14px; }
.alpha1-step3-options label { display: grid; gap: 7px; color: var(--alpha1-cream); font-weight: 700; }
.alpha1-step3-options select, .alpha1-manual-player-select { min-height: 44px; border: 1px solid var(--alpha1-border-muted); border-radius: 8px; background: #0b1719; color: var(--alpha1-cream); padding: 0 10px; font: inherit; }
.alpha1-step3-output { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border: 1px solid var(--alpha1-border-muted); border-radius: 8px; background: #0b1719; color: var(--alpha1-cream); font-weight: 400; }
.alpha1-step3-generation-method { display: grid; gap: 8px; margin-top: 4px; }
.alpha1-step3-generation-method > p { margin: 0; color: var(--alpha1-cream); font-weight: 800; }
.alpha1-step3-generation-method label { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 7px; color: var(--alpha1-cream); font-weight: 400; }
.alpha1-step3-generation-method label input { grid-row: span 2; accent-color: var(--alpha1-teal-bright); }
.alpha1-step3-generation-method label strong { color: var(--alpha1-teal-bright); }
.alpha1-step3-generation-method small { grid-column: 2; color: var(--alpha1-muted); font-size: .76rem; }
.alpha1-format-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.alpha1-format-buttons button { min-height: 42px; padding: 0 8px; border: 1px solid var(--alpha1-border-muted); border-radius: 7px; background: #0b1719; color: var(--alpha1-cream); font: inherit; font-size: .82rem; cursor: pointer; }
.alpha1-format-buttons button.active, .alpha1-format-buttons button:hover, .alpha1-format-buttons button:focus-visible { border-color: var(--alpha1-teal-bright); background: var(--alpha1-teal); color: #061416; }
.alpha1-step3-primary { min-height: 50px; border: 1px solid var(--alpha1-teal-bright); border-radius: 8px; background: var(--alpha1-teal); color: #061416; padding: 0 18px; font: 800 1rem Arial, sans-serif; cursor: pointer; }
.alpha1-step3-primary:hover, .alpha1-step3-primary:focus-visible { background: var(--alpha1-teal-bright); }
.alpha1-step3-generated { padding-top: 22px; border-top: 1px solid var(--alpha1-border-muted); }
.alpha1-step3-generated .groups { margin: 16px 0; }
.alpha1-step3-generated .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 14px; }
.alpha1-step3-generated .group-card { min-width: 0; padding: 8px 10px; border-color: var(--alpha1-border-muted); border-radius: 7px; background: linear-gradient(110deg, rgba(22, 41, 43, .95), rgba(7, 20, 22, .95)); }
.alpha1-step3-generated .group-card h3 { margin-bottom: 6px; color: var(--alpha1-cream); font-size: .92rem; }
.alpha1-step3-generated .team-members { color: var(--alpha1-cream); font-size: .9rem; line-height: 1.25; }
.alpha1-step3-generated .message { padding: 0 14px; }
.alpha1-step3-merge-mount { margin-top: 16px; }
.alpha1-step3-merge-mount .bulk-roster-import, .alpha1-step3-merge-mount .name-backup-preview, .alpha1-step3-merge-mount .name-backup-history { margin-top: 14px; }
.alpha1-manual-player-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, .55fr); gap: 10px; align-items: center; }
.alpha1-manual-team { padding: 14px; border: 1px solid var(--alpha1-border-muted); border-radius: 8px; background: rgba(38, 19, 35, .45); }
.alpha1-manual-team h4 { margin: 0 0 10px; color: var(--alpha1-gold-bright); font-family: Arial, sans-serif; }
.alpha1-step3-navigation { align-items: center; padding-top: 18px; color: var(--alpha1-muted); }
.alpha1-step3-navigation button { min-height: 44px; }
body.alpha1-step3-focus .top-workspace { display: none; }
body.alpha1-step3-focus > .page-background + .app > .eyebrow,
body.alpha1-step3-focus > .page-background + .app > .topbar { display: none; }
body.alpha1-step3-focus .alpha1-step3-portal { margin-top: 24px; }
body.alpha1-step4-focus .top-workspace,
body.alpha1-step4-focus > .page-background + .app > .eyebrow,
body.alpha1-step4-focus > .page-background + .app > .topbar { display: none; }
.alpha1-step4-portal { width: min(calc(100% - 32px), 1500px); margin: 24px auto; padding: 24px; border: 1px solid var(--alpha1-gold); border-radius: 14px; background: rgba(8, 15, 17, .96); color: var(--alpha1-cream); box-shadow: var(--alpha1-shadow); }
.alpha1-step4-header { margin-bottom: 18px; padding: 16px 20px; border: 1px solid var(--alpha1-gold); border-radius: 10px; background: linear-gradient(100deg, rgba(66, 5, 28, .98), rgba(35, 4, 20, .96)); }
.alpha1-step4-header h2 { margin: 0; color: var(--alpha1-cream); font-family: Georgia, "Times New Roman", serif; }
.alpha1-step4-header p:last-child { margin: 5px 0 0; color: var(--alpha1-muted); }
.alpha1-step4-tools-mount { display: grid; gap: 18px; }
.alpha1-step4-tools-mount > .portal-notice-panel,
.alpha1-step4-tools-mount > .attendance-inline-preview,
.alpha1-step4-tools-mount > .bracket-workspace,
.alpha1-step4-tools-mount > .backups-panel { width: 100%; margin: 0; }
.alpha1-step4-tools-mount > .top-side-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.alpha1-step4-tools-mount > .top-side-stack > .tools-title { grid-column: 1 / -1; margin: 0; color: var(--alpha1-gold-bright); }
.alpha1-step4-tools-mount > .bracket-workspace { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 18px; }
@media (max-width: 800px) {
  .alpha1-step4-portal { width: min(calc(100% - 18px), 1500px); padding: 18px; }
  .alpha1-step4-tools-mount > .top-side-stack,
  .alpha1-step4-tools-mount > .bracket-workspace { grid-template-columns: 1fr; }
}

@media (min-width: 1100px) {
  body.alpha1-step3-focus .alpha1-step3-portal { width: min(calc(100% - 32px), 1500px); max-width: 1500px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 760px) {
  .alpha1-step3-portal { width: min(100% - 18px, 1320px); padding: 18px; }
  .alpha1-step3-topbar { grid-template-columns: 1fr; align-items: flex-start; margin: -18px -18px 18px; padding: 16px 18px; }
  .alpha1-step3-tournament-summary { text-align: left; }
  .alpha1-step3-summary-cards { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alpha1-step3-header { flex-direction: column; }
  .alpha1-step3-methods .alpha1-step3-danger { margin-left: 0; }
  .alpha1-step3-context { padding-top: 0; text-align: left; }
  .alpha1-step3-player-filters { grid-template-columns: 1fr; gap: 0; }
  .alpha1-step3-workspace { grid-template-columns: 1fr; }
  .alpha1-eligible-players { grid-template-columns: 1fr; }
  .alpha1-step3-navigation { align-items: stretch; flex-direction: column; }
}

.alpha1-att-lookup-result {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  min-height: 196px;
  padding: 28px 30px;
}

.alpha1-att-lookup-result > div {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.alpha1-att-lookup-result .alpha1-att-lookup-kicker,
.alpha1-att-lookup-result h3,
.alpha1-att-lookup-result p:not(.alpha1-att-lookup-kicker),
.alpha1-att-lookup-result small,
.alpha1-att-lookup-result .alpha1-att-lookup-meta {
  margin-top: 0;
  margin-bottom: 0;
}

.alpha1-att-lookup-result h3 {
  margin-bottom: 10px;
  font-size: 1.8rem;
  line-height: 1.15;
  letter-spacing: .045em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.alpha1-att-lookup-result p:not(.alpha1-att-lookup-kicker) {
  margin-bottom: 7px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.alpha1-att-lookup-result small {
  font-size: 1rem;
  line-height: 1.35;
}

.alpha1-att-open-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.alpha1-att-lookup-result .alpha1-att-lookup-kicker,
.alpha1-att-lookup-result p:not(.alpha1-att-lookup-kicker),
.alpha1-att-lookup-result small,
.alpha1-att-open-button {
  font-weight: 400;
}

.alpha1-att-lookup-meta {
  display: grid;
  gap: 7px 18px;
  margin: 8px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--alpha1-border-muted);
  font-size: .95rem;
}

.alpha1-att-lookup-meta-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  font-weight: 400;
}

.alpha1-att-lookup-meta-row dt,
.alpha1-att-lookup-meta-row dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 400;
}

.alpha1-att-lookup-meta-row dt { color: var(--alpha1-muted); }
.alpha1-att-lookup-meta-row dd { color: var(--alpha1-cream); }

.alpha1-att-open-button {
  align-self: center;
  min-width: 210px;
  min-height: 60px;
  font-size: 1.08rem;
}

/* ATT Lookup and the Attendance workspace are operational surfaces: use one
   readable UI face throughout, including controls and the embedded V2 page. */
.alpha1-att-lookup-card,
.alpha1-att-lookup-card *,
.alpha1-attendance-workspace,
.alpha1-attendance-workspace * {
  font-family: Arial, Helvetica, sans-serif;
}

.alpha1-att-lookup-card h2,
.alpha1-att-lookup-card h3,
.alpha1-attendance-workspace h2,
.alpha1-attendance-workspace button {
  font-family: Arial, Helvetica, sans-serif;
}

html.attendance-embedded body,
html.attendance-embedded body * {
  font-family: Arial, Helvetica, sans-serif;
}

html.attendance-embedded h1,
html.attendance-embedded h2,
html.attendance-embedded h3,
html.attendance-embedded h4,
html.attendance-embedded .tracker-name {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: normal;
}

html.attendance-embedded .sheet-shell {
  color: var(--alpha1-cream);
}

html.attendance-embedded .sheet-shell > .panel,
html.attendance-embedded .sheet-shell > details {
  border-color: var(--alpha1-border-muted);
  border-radius: 12px;
  background: var(--alpha1-panel);
  color: var(--alpha1-cream);
  box-shadow: none;
}

html.attendance-embedded .attendance-collapse-summary span,
html.attendance-embedded .section-note,
html.attendance-embedded .attendance-history-summary {
  color: var(--alpha1-muted);
}

html.attendance-embedded .attendance-collapse-summary::after {
  color: var(--alpha1-gold-bright);
}

html.attendance-embedded input,
html.attendance-embedded textarea,
html.attendance-embedded select {
  border-color: var(--alpha1-border-muted);
  border-radius: 8px;
  background: #0b1719;
  color: var(--alpha1-cream);
}

html.attendance-embedded input::placeholder,
html.attendance-embedded textarea::placeholder {
  color: #9aa9a5;
}

html.attendance-embedded button {
  border-radius: 8px;
}

@media (max-width: 700px) {
  .alpha1-attendance-details {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }
}

@media (max-width: 700px) {
  .alpha1-attendance-workspace-dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }

  .alpha1-attendance-workspace-header {
    padding: 18px 16px 12px;
  }

  .alpha1-attendance-workspace-tabs {
    overflow-x: auto;
    padding: 10px 16px;
  }

  .alpha1-att-open-button {
    width: 100%;
  }

  .alpha1-att-lookup-result {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .alpha1-att-lookup-result { min-height: 0; padding: 24px 22px; }
  .alpha1-att-lookup-result h3 { font-size: 1.6rem; }
  .alpha1-att-open-button { width: 100%; }
}

.login-card {
  background: var(--alpha1-panel);
  border-color: var(--alpha1-gold);
  box-shadow: var(--alpha1-shadow);
}

/* Alpha1 uses teal for thin structural borders; gold remains reserved for hierarchy and text accents. */
.panel,
.bracket-shell,
.schedule-panel,
.upcoming-card,
.scheduled-event-card,
.run-tournament-card,
.sheet-shell > .panel,
.hero,
.series-list-panel,
.alpha1-topbar,
.dashboard-card,
.dashboard-scheduled-card,
.login-card,
.series-att-lookup,
.series-dialog,
.alpha1-att-lookup-card {
  border-color: var(--alpha1-border-accent);
}

.workflow-steps,
.dashboard-primary-button,
.dashboard-secondary-button,
.schedule-actions .primary-action,
.login-form > button[type="submit"],
.series-card,
.choice-card,
.run-tournament-choice,
.early-check-in-link-panel,
.run-tournament-setup,
.series-dialog-actions .secondary,
.alpha1-att-lookup-entry input,
.alpha1-att-lookup-entry .dashboard-primary-button,
.login-form input,
.field input,
.field select,
.field textarea,
.series-dialog-card input,
.series-dialog-card textarea,
.upcoming-event-id-controls input,
.early-link-row input,
.early-check-in-link-row input {
  border-color: var(--alpha1-border-accent);
}

@media (max-width: 720px) {
  .page-background {
    opacity: 0.7;
  }
}

/* Approved Create Tournament visual standard. Keep this scoped so the page's
   existing workflow and controls retain their behavior while using the new
   Alpha1 working-surface hierarchy. */
.schedule-workspace h1,
.schedule-workspace .panel-heading h2 { color: var(--alpha1-cream); }

.schedule-workspace .alpha1-topbar,
.schedule-workspace .schedule-panel { border-color: var(--alpha1-border-accent); }
.schedule-workspace .alpha1-topbar { background: rgba(8, 15, 17, .96); }
.schedule-workspace .title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  background: rgba(8, 15, 17, .96);
  border: 1px solid var(--alpha1-border-accent);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .42);
}
.schedule-workspace .title-row .alpha1-topbar {
  width: auto;
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.schedule-workspace .title-row .alpha1-account { color: var(--alpha1-cream); }
.schedule-workspace .title-row .alpha1-account button { color: var(--alpha1-cream); }
.schedule-workspace .step-label,
.schedule-workspace .schedule-intro {
  color: #ffffff;
  font-weight: 800;
}
.schedule-workspace .schedule-panel {
  background: rgba(8, 16, 18, .965);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
}
.schedule-workspace .workflow-steps {
  background: rgba(7, 13, 14, .95);
  border-color: var(--alpha1-border-accent);
}
.schedule-workspace .workflow-step { color: var(--alpha1-cream); }
.schedule-workspace .workflow-step.active { color: var(--alpha1-teal-bright); }
.schedule-workspace .workflow-step.active b {
  background: var(--alpha1-teal);
  border-color: var(--alpha1-teal-bright);
  color: #061416;
}
.schedule-workspace .workflow-arrow { color: #809493; }
.schedule-workspace .panel-kicker,
.schedule-workspace .panel-number { color: var(--alpha1-gold-bright); }
.schedule-workspace .field { color: var(--alpha1-cream); }
.schedule-workspace .field input,
.schedule-workspace .field select,
.schedule-workspace .field textarea,
.schedule-workspace .input-prefix {
  background: #0b1719;
  color: var(--alpha1-cream);
  border-color: #49666a;
}
.schedule-workspace .field input::placeholder,
.schedule-workspace .field textarea::placeholder { color: #9aa9a5; }
.schedule-workspace .date-field-control {
  position: relative;
  display: block;
}
.schedule-workspace .date-field-control input { padding-right: 46px; }
.schedule-workspace .date-picker-button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 5px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid #49666a;
  border-radius: 6px;
  background: #102326;
  color: var(--alpha1-teal-bright);
  cursor: pointer;
}
.schedule-workspace .date-picker-button:hover,
.schedule-workspace .date-picker-button:focus-visible {
  border-color: var(--alpha1-teal-bright);
  background: var(--alpha1-teal);
  color: var(--alpha1-cream);
  outline: 2px solid rgba(82, 196, 181, .35);
  outline-offset: 1px;
}
.schedule-workspace .date-picker-button svg {
  width: 20px;
  height: 20px;
}
.schedule-workspace .field input:focus,
.schedule-workspace .field select:focus,
.schedule-workspace .field textarea:focus {
  border-color: var(--alpha1-teal-bright);
  outline: 2px solid rgba(82, 196, 181, .35);
  outline-offset: 1px;
}
.schedule-workspace .optional { color: #b9c4bc; font-size: .86rem; }
.schedule-workspace .choice-card {
  min-height: 0;
  padding: 13px 15px;
  gap: 10px;
  background: rgba(16, 29, 32, .9);
  border-color: #49666a;
}
.schedule-workspace .choice-card input {
  appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 2px 0 0;
  border: 2px solid #e7e8dc;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  accent-color: transparent;
}
.schedule-workspace .choice-card input:checked {
  border-color: var(--alpha1-gold-bright);
  background: radial-gradient(circle, var(--alpha1-gold-bright) 0 4px, transparent 4.5px);
}
.schedule-workspace .choice-card:has(input:checked) {
  border-color: var(--alpha1-border-accent);
  background: rgba(22, 140, 140, .12);
}
.schedule-workspace .choice-card strong { color: var(--alpha1-cream); }
.schedule-workspace .choice-card small {
  color: #c5d0ca;
  font-size: .9rem;
  line-height: 1.45;
}
.schedule-workspace .checkin-fields input:disabled {
  background: #182427;
  color: #788887;
  border-color: #34464a;
}
.schedule-workspace .secondary-action#generateEarlyCheckinLink,
.schedule-workspace .schedule-actions .primary-action {
  background: var(--alpha1-teal);
  color: var(--alpha1-cream);
  border-color: var(--alpha1-teal-bright);
}
.schedule-workspace .secondary-action#generateEarlyCheckinLink:hover,
.schedule-workspace .schedule-actions .primary-action:hover {
  background: var(--alpha1-teal-bright);
  color: #061416;
}
.schedule-workspace .schedule-actions .secondary {
  background: rgba(9, 16, 17, .88);
  border-color: #49666a;
  color: var(--alpha1-cream);
}
.schedule-workspace .security-note {
  color: #c5d0ca;
  font-size: .92rem;
  line-height: 1.5;
}
.schedule-workspace .early-link-panel {
  background: rgba(16, 29, 32, .9);
  border-color: #49666a;
}
.schedule-workspace .early-link-row input {
  background: #0b1719;
  color: var(--alpha1-cream);
  border-color: #49666a;
}

/* Keep Dashboard ATT Lookup aligned with the teal Alpha1 structural accents. */
.alpha1-att-lookup-card {
  width: min(100% - 2rem, 900px);
  max-width: 900px;
  margin: auto;
  border-color: var(--alpha1-border-accent);
  background: rgba(8, 16, 18, .965);
}
.alpha1-att-lookup-modal { margin: auto; }
.alpha1-att-lookup-heading {
  position: relative;
  justify-content: flex-start;
  text-align: left;
}
.alpha1-att-lookup-heading .alpha1-modal-close {
  position: absolute;
  top: 0;
  right: 0;
}
.alpha1-att-lookup-heading h2 {
  margin: 0;
  color: var(--alpha1-cream);
  font: 700 1.65rem/1.2 Georgia, "Times New Roman", serif;
  text-transform: none;
}
.alpha1-att-lookup-entry input {
  border-color: #49666a;
  background: #0b1719;
  color: var(--alpha1-cream);
}
.alpha1-att-lookup-entry input:focus {
  border-color: var(--alpha1-teal-bright);
  outline: 2px solid rgba(82, 196, 181, .35);
}
.alpha1-att-lookup-entry .dashboard-primary-button {
  border-color: var(--alpha1-teal-bright);
  background: var(--alpha1-teal);
  color: var(--alpha1-cream);
}
.alpha1-att-lookup-entry .dashboard-primary-button:hover,
.alpha1-att-lookup-entry .dashboard-primary-button:focus-visible {
  background: var(--alpha1-teal-bright);
  color: #061416;
}
.alpha1-att-lookup-divider { background: var(--alpha1-border-muted); }
.alpha1-att-lookup-results {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--alpha1-border-accent);
  border-radius: 10px;
  background: rgba(5, 9, 10, .72);
}
.alpha1-att-lookup-list { display: grid; gap: 10px; }
.alpha1-att-lookup-result {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid var(--alpha1-border-muted);
  border-radius: 9px;
  background: rgba(16, 29, 32, .9);
  font-family: Arial, Helvetica, sans-serif;
}
.alpha1-att-lookup-result:hover {
  border-color: var(--alpha1-teal-bright);
  background: rgba(22, 140, 140, .12);
}
.alpha1-att-lookup-result h3 {
  margin: 0 0 5px;
  color: var(--alpha1-cream);
  font: 800 1.25rem/1.25 Arial, Helvetica, sans-serif;
  letter-spacing: .04em;
}
.alpha1-att-lookup-result p:not(.alpha1-att-lookup-kicker),
.alpha1-att-lookup-result small { color: var(--alpha1-muted); }
.alpha1-att-lookup-empty { margin: 0; color: var(--alpha1-muted); }

@media (max-width: 720px) {
  .schedule-workspace .title-row {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .schedule-workspace .title-row .alpha1-topbar { width: 100%; }
}
