@font-face {
  font-family: "MC Heading";
  src: url("https://media.thechurchcoassets.com/accounts/6338/96dea0aa-3d4f-4ca2-b2f3-8158c5635751-/MyWebfontsKit/webFonts/NeueHelvetica93ExtendedBlack/font.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "MC Body";
  src: url("https://media.thechurchcoassets.com/accounts/6338/ee7ab07f-ee22-45f1-84b4-eb86996329c3-/MyWebfontsKit/webFonts/NeueHelvetica65Medium/font.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

:root {
  --ink: #101318;
  --muted: #67635c;
  --line: #d9d1c4;
  --surface: #f7f1e7;
  --surface-2: #fffaf2;
  --shadow: 0 20px 40px rgba(28, 20, 9, 0.08);
  --accent: #b14b21;
  --accent-strong: #913610;
  --olive: #33412f;
  --admin-bg: #0b0d11;
  --admin-panel: #12161c;
  --admin-panel-2: #181d25;
  --admin-line: rgba(255, 255, 255, 0.1);
  --admin-text: #eef2f7;
  --admin-muted: rgba(238, 242, 247, 0.64);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "MC Body", "Segoe UI", sans-serif;
}

body.public-body {
  background:
    radial-gradient(circle at top left, rgba(204, 165, 100, 0.22), transparent 28%),
    linear-gradient(180deg, #f5efe5 0%, #eee2d2 100%);
}

body.admin-body {
  background:
    linear-gradient(180deg, rgba(177, 75, 33, 0.08), transparent 240px),
    var(--admin-bg);
  color: var(--admin-text);
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "MC Heading", Impact, sans-serif;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

p {
  margin: 0;
  line-height: 1.6;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid #1a1d23;
  border-radius: 999px;
  background: transparent;
  color: #1a1d23;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.btn:hover,
button.btn:hover {
  background: #1a1d23;
  color: #fff;
  transform: translateY(-1px);
}

.btn.primary,
button.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover,
button.btn.primary:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #fff;
}

.btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.small-btn {
  min-height: 38px;
  padding: 8px 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-body .btn,
.admin-body button.btn {
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-body .btn:hover,
.admin-body button.btn:hover {
  border-color: #fff;
  background: #fff;
  color: #12161c;
}

.admin-body .btn.primary,
.admin-body button.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.admin-body .btn.primary:hover,
.admin-body button.btn.primary:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #fff;
}

.page-kicker,
.section-kicker,
.sidebar-caption,
.metric-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.admin-body .page-kicker,
.admin-body .section-kicker,
.admin-body .sidebar-caption,
.admin-body .metric-label {
  color: var(--admin-muted);
}

.page-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.96;
}

.admin-body .page-title {
  line-height: 1;
  letter-spacing: -0.015em;
  text-transform: none;
  color: #e3ebf4;
}

.admin-main .section-head h2 {
  line-height: 1.06;
  letter-spacing: -0.012em;
  text-transform: none;
  color: #dde6ef;
}

.page-description,
.public-summary,
.page-meta,
.fineprint {
  color: var(--muted);
}

.admin-body .page-description,
.admin-body .page-meta,
.admin-body .fineprint,
.admin-body .public-summary {
  color: var(--admin-muted);
}

.page-actions,
.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-actions form {
  margin: 0;
}

.filter-row form {
  margin: 0;
}

.public-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.public-admin-link-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.public-admin-link svg {
  width: 100%;
  height: 100%;
}

.alert,
.empty-state,
.public-surface,
.public-hero,
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 251, 244, 0.95);
  box-shadow: var(--shadow);
}

.alert,
.empty-state {
  padding: 16px 18px;
}

.admin-body .alert,
.admin-body .empty-state,
.admin-card,
.metric-card {
  border: 1px solid var(--admin-line);
  background: var(--admin-panel);
  color: var(--admin-text);
  box-shadow: none;
}

.public-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 18px 56px;
}

.bracket-screen-body {
  overflow: hidden;
}

.bracket-screen-shell {
  position: relative;
  min-height: 100vh;
  background: #f2eadb;
}

.bracket-screen-main {
  min-height: 100vh;
}

.bracket-screen-back {
  position: fixed;
  z-index: 30;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(108, 95, 78, 0.48);
  border-radius: 999px;
  background: rgba(255, 251, 244, 0.92);
  color: #1e1d1a;
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(67, 49, 29, 0.14);
}

.bracket-screen-back:hover {
  background: #fffdf8;
}

.public-topbar {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.public-topbar-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
}

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

.public-brand img {
  width: 54px;
  height: 54px;
}

.public-brand span {
  max-width: 360px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.35;
  text-transform: uppercase;
}

.public-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.public-nav-toggle {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  min-height: 42px;
  padding: 0 14px;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 244, 0.95);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.public-nav a,
.ghost-link,
.table-link {
  color: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.ghost-link {
  color: var(--admin-muted);
}

.table-link {
  color: var(--accent);
}

.public-main,
.admin-main {
  display: grid;
  gap: 18px;
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 22px;
  padding: 28px;
}

.public-hero-tight {
  align-items: start;
}

.public-hero-copy h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.9;
  max-width: 9ch;
}

.public-summary {
  max-width: 54ch;
  margin-top: 14px;
  font-size: 1rem;
}

.public-actions {
  margin-top: 22px;
}

.public-description {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #36322c;
}

.prose-block p + p {
  margin-top: 12px;
}

.event-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.event-card h2 {
  font-size: 1.4rem;
}

.event-card-strong {
  background: linear-gradient(180deg, #fff 0%, #f6efe4 100%);
}

.event-status {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(52, 65, 48, 0.08);
  color: var(--olive);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-facts,
.detail-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.event-facts div,
.detail-list div {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.event-facts dt,
.detail-list dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-facts dd,
.detail-list dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
}

.public-surface {
  padding: 22px 24px;
}

.public-highlights,
.public-dual-grid {
  display: grid;
  gap: 16px;
}

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

.public-dual-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.tournament-surface {
  overflow-x: auto;
}

.highlight-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 251, 244, 0.92);
  box-shadow: var(--shadow);
}

.highlight-card strong {
  display: block;
  margin-bottom: 4px;
  font-family: "MC Heading", Impact, sans-serif;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.highlight-card span,
.surface-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.public-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.public-table th,
.public-table td,
.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  vertical-align: top;
}

.public-table th,
.data-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.data-table th,
.data-table td {
  border-bottom-color: var(--admin-line);
  color: rgba(255, 255, 255, 0.9);
}

.public-empty {
  color: var(--muted);
}

.bracket-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
  padding: 24px;
  border: 1px solid rgba(170, 156, 134, 0.8);
  border-radius: 10px;
  background: #f7f3ea;
  box-shadow:
    0 22px 44px rgba(42, 28, 14, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.bracket-match {
  position: relative;
  display: grid;
  gap: 12px;
  padding-right: 34px;
}

.bracket-match::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 34px;
  border-top: 4px solid #d33f2b;
}

.bracket-slot {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 12px;
  border: 1px solid rgba(170, 156, 134, 0.7);
  border-radius: 4px;
  background: #fffefb;
  box-shadow:
    0 8px 16px rgba(60, 39, 16, 0.08),
    0 2px 0 rgba(0, 0, 0, 0.04);
}

.bracket-slot::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 44px;
  height: 14px;
  transform: translateX(-50%) rotate(-2deg);
  border-radius: 3px;
  background: rgba(233, 225, 188, 0.9);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.bracket-slot.is-empty {
  opacity: 0.74;
  border-style: dashed;
  box-shadow: none;
}

.admin-body .bracket-slot {
  border-color: rgba(170, 156, 134, 0.7);
  background: #fffefb;
  box-shadow:
    0 8px 16px rgba(60, 39, 16, 0.12),
    0 2px 0 rgba(0, 0, 0, 0.04);
}

.bracket-slot strong {
  display: block;
}

.bracket-slot span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-body .bracket-slot span {
  color: #61584f;
}

.bracket-seed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 4px;
  background: rgba(211, 63, 43, 0.08);
  color: #b43622;
  font-size: 0.78rem;
  font-weight: 800;
}

.bracket-canvas-shell {
  overflow-x: auto;
  padding: 28px 24px;
  border: 1px solid rgba(170, 156, 134, 0.85);
  border-radius: 10px;
  background: #f7f3ea;
  box-shadow:
    0 24px 48px rgba(42, 28, 14, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.admin-body .bracket-canvas-shell {
  border-color: rgba(170, 156, 134, 0.85);
  background: #f7f3ea;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.bracket-canvas {
  display: grid;
  grid-template-columns: repeat(5, minmax(250px, 1fr));
  gap: 34px;
  min-width: 1480px;
  align-items: start;
}

.bracket-stage {
  display: grid;
  gap: 14px;
}

.bracket-stage-head {
  display: grid;
  gap: 3px;
  padding-left: 4px;
}

.bracket-stage-head p {
  margin: 0;
  color: #c53d22;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-body .bracket-stage-head p {
  color: #c53d22;
}

.bracket-stage-head h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1;
}

.bracket-stage-lane {
  display: grid;
}

.round-depth-1 {
  gap: 18px;
}

.round-depth-2 {
  gap: 46px;
  padding-top: 56px;
}

.round-depth-3 {
  gap: 110px;
  padding-top: 118px;
}

.round-depth-4 {
  gap: 246px;
  padding-top: 244px;
}

.round-depth-5 {
  gap: 0;
  padding-top: 430px;
}

.bracket-pair {
  position: relative;
  display: grid;
  gap: 18px;
  padding-right: 38px;
}

.bracket-pair.has-two::before {
  content: "";
  position: absolute;
  top: 25%;
  bottom: 25%;
  right: 0;
  border-right: 4px solid #d33f2b;
}

.bracket-pair::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -34px;
  width: 34px;
  border-top: 4px solid #d33f2b;
}

.bracket-stage-5 .bracket-pair::after,
.bracket-stage-5 .bracket-pair.has-two::before {
  display: none;
}

.bracket-node {
  position: relative;
  display: grid;
  gap: 10px;
}

.bracket-node::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -38px;
  width: 38px;
  border-top: 4px solid #d33f2b;
}

.bracket-stage-5 .bracket-node::after {
  display: none;
}

.bracket-node-top,
.bracket-node-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px;
  color: #7c6f61;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-body .bracket-node-top,
.admin-body .bracket-node-foot {
  color: #7c6f61;
}

.bracket-node-foot strong {
  color: inherit;
  font-size: 0.84rem;
}

.bracket-card-stack {
  display: grid;
  gap: 14px;
}

.bracket-fighter-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 12px;
  border: 1px solid rgba(170, 156, 134, 0.72);
  border-radius: 4px;
  background: #fffefb;
  box-shadow:
    0 8px 16px rgba(60, 39, 16, 0.08),
    0 2px 0 rgba(0, 0, 0, 0.04);
}

.bracket-fighter-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 48px;
  height: 15px;
  transform: translateX(-50%) rotate(-2deg);
  border-radius: 3px;
  background: rgba(233, 225, 188, 0.92);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.bracket-card-stack .bracket-fighter-card:nth-child(1) {
  transform: rotate(-1deg);
}

.bracket-card-stack .bracket-fighter-card:nth-child(2) {
  transform: rotate(1deg);
}

.admin-body .bracket-fighter-card {
  border-color: rgba(170, 156, 134, 0.72);
  background: #fffefb;
  box-shadow:
    0 8px 16px rgba(60, 39, 16, 0.12),
    0 2px 0 rgba(0, 0, 0, 0.04);
}

.bracket-fighter-card strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.98rem;
  line-height: 1.08;
}

.bracket-fighter-card span {
  display: block;
  color: var(--muted);
  font-size: 0.79rem;
}

.admin-body .bracket-fighter-card span {
  color: #61584f;
}

.bracket-fighter-seed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(211, 63, 43, 0.08);
  color: #b43622;
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-body .bracket-fighter-seed {
  color: #b43622;
  background: rgba(211, 63, 43, 0.08);
}

.bracket-fighter-card.state-winner {
  border-color: rgba(69, 126, 76, 0.48);
  background: #eef7ef;
}

.admin-body .bracket-fighter-card.state-winner {
  background: #eef7ef;
}

.bracket-fighter-card.state-eliminated {
  opacity: 0.56;
  filter: saturate(0.58);
}

.bracket-fighter-card.state-tbd {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.admin-body .bracket-fighter-card.state-tbd {
  background: rgba(255, 255, 255, 0.55);
}

.bracket-display-section {
  margin-top: 18px;
}

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

.entry-card {
  padding: 14px;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: #0f1319;
}

.attempt-history {
  margin-top: 18px;
}

.status-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: #0f1319;
  color: var(--admin-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-band strong {
  color: #fff;
  font-size: 0.84rem;
}

.auth-section {
  max-width: 620px;
  margin: 56px auto 0;
}

.auth-card {
  padding: 28px;
}

.auth-card h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.95;
  max-width: 10ch;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 180ms ease;
}

.admin-shell.is-collapsed {
  grid-template-columns: 34px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: visible;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--admin-line);
  background: #0f1319;
  transition: padding 180ms ease, border-color 180ms ease;
}

.sidebar-toggle {
  position: absolute;
  top: 20px;
  right: -16px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  background: #11161c;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.sidebar-toggle:hover {
  background: #fff;
  color: #11161c;
}

.sidebar-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

.admin-sidebar > :not(.sidebar-toggle) {
  transition: opacity 160ms ease, transform 160ms ease;
}

.admin-shell.is-collapsed .admin-sidebar {
  padding: 24px 0 24px 0;
  border-right-color: transparent;
}

.admin-shell.is-collapsed .admin-sidebar > :not(.sidebar-toggle) {
  opacity: 0;
  transform: translateX(-16px);
  pointer-events: none;
}

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

.sidebar-brand img {
  width: 44px;
  height: 44px;
}

.sidebar-brand span {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

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

.sidebar-nav a {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  border-color: var(--admin-line);
  background: var(--admin-panel);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--admin-line);
}

.sidebar-user {
  display: block;
  line-height: 1.5;
}

.sidebar-note {
  margin-top: 6px;
  color: var(--admin-muted);
  font-size: 0.84rem;
}

.admin-content {
  min-width: 0;
  padding: 18px 22px 38px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--admin-line);
}

.admin-header-subtitle {
  color: var(--admin-muted);
  font-weight: 700;
}

.admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.metric-grid,
.admin-grid {
  display: grid;
  gap: 16px;
}

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

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

.metric-card,
.admin-card {
  border-radius: var(--radius-md);
}

.metric-card {
  padding: 16px;
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: "MC Heading", Impact, sans-serif;
  font-size: 2rem;
  letter-spacing: -0.04em;
  color: #fff;
}

.metric-card p {
  color: var(--admin-muted);
  font-size: 0.88rem;
}

.admin-card {
  padding: 18px;
}

.admin-card-nested {
  background: var(--admin-panel-2);
}

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

.admin-grid-wide {
  align-items: start;
}

.score-admin-grid {
  align-items: start;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.compact-detail-list div {
  padding-bottom: 8px;
}

.stack-form,
.filter-row,
.table-form {
  display: grid;
  gap: 12px;
}

.filter-row {
  grid-template-columns: repeat(3, minmax(0, auto));
  align-items: end;
}

.filter-row-registrations {
  grid-template-columns: auto minmax(220px, 1fr) auto;
}

.filter-row-shooters {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.lookup-field {
  min-width: 180px;
}

.filter-chip {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #0f1319;
}

.filter-chip strong {
  color: #fff;
  font-size: 0.96rem;
  line-height: 1.2;
}

.stack-form label,
.filter-row label {
  display: grid;
  gap: 6px;
}

.stack-form span,
.filter-row span {
  color: var(--admin-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

input,
select {
  min-height: 44px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #fff;
  color: #111;
  font: inherit;
}

.admin-body input,
.admin-body select {
  border-color: rgba(255, 255, 255, 0.12);
  background: #0d1117;
  color: #fff;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.table-wrap {
  overflow-x: auto;
}

.roster-table td:first-child,
.roster-table th:first-child {
  width: 66px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-active,
.status-qualified,
.status-advanced,
.status-champion {
  background: rgba(53, 132, 75, 0.2);
  color: #b9f3c0;
}

.status-canceled,
.status-eliminated,
.status-withdrawn {
  background: rgba(177, 75, 33, 0.2);
  color: #ffcfbf;
}

.status-qualifying,
.status-playoff,
.status-not_qualified,
.status-registered,
.status-checked_in,
.status-completed {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.status-playoff {
  background: rgba(177, 75, 33, 0.18);
  color: #ffd4c3;
}

.table-subtext {
  margin-top: 4px;
  color: var(--admin-muted);
  font-size: 0.82rem;
}

.inline-drawer {
  padding-top: 16px;
}

.roster-table-compact th,
.roster-table-compact td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.row-toggle-cell {
  width: 42px;
}

.row-toggle {
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.row-toggle:hover {
  color: #fff;
}

.row-action-cluster {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.inline-action-form {
  display: inline-flex;
}

.detail-grid-actions strong {
  display: flex;
  justify-content: flex-start;
}

.detail-row td {
  padding-top: 0;
  background: rgba(255, 255, 255, 0.02);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
  padding: 10px 0 14px;
}

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

.detail-grid span {
  color: var(--admin-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-grid strong {
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.35;
}

.detail-grid-wide {
  grid-column: span 2;
}

.table-form-assignments {
  grid-template-columns: 1.2fr 0.8fr 0.6fr 0.7fr 0.9fr 1.4fr auto;
  align-items: center;
}

.filter-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.filter-row-actions > form {
  margin: 0;
}

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

.form-grid-tight {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto;
}

.form-submit-inline {
  display: flex;
  align-items: end;
  height: 100%;
}

.form-submit-inline .btn {
  width: 100%;
}

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

.action-card {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: #0f1319;
  text-decoration: none;
}

.action-card strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 1rem;
}

.action-card span,
.field-note {
  color: var(--admin-muted);
  font-size: 0.84rem;
}

.compact-table th,
.compact-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.print-body {
  background: #fff;
  color: #111;
  padding: 18px;
  margin: 0;
}

.print-header {
  margin-bottom: 18px;
}

.print-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.print-card {
  padding: 16px;
  border: 2px solid #111;
  border-radius: 14px;
  break-inside: avoid;
}

.print-body-labels {
  padding: 0;
  margin: 0;
  background: #fff;
  overflow: visible;
}

.print-label-grid {
  display: block;
}

.print-label-card {
  box-sizing: border-box;
  width: 3.9in;
  min-width: 3.9in;
  max-width: 3.9in;
  height: 1.9in;
  min-height: 1.9in;
  max-height: 1.9in;
  display: grid;
  grid-template-rows: 0.78in 1fr;
  align-items: stretch;
  gap: 0.04in;
  padding: 0.16in 0.12in 0.09in 0.12in;
  border: 0;
  border-radius: 0;
  background: #fff;
  break-inside: avoid;
  overflow: hidden;
  margin: 0 auto;
  page-break-after: auto;
}

.print-label-card:not(:last-child) {
  page-break-after: always;
}

.print-body-shooter-tags .print-label-card,
.print-body-checkin-package .print-label-card:not(.print-page-label-card) {
  padding-top: 0.12in;
}

.print-body-shooter-tags .print-label-number-wrap,
.print-body-checkin-package .print-label-number-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.13in 0.08in 0.04in 0.08in;
  border-bottom: 0.025in solid #111;
}

.print-body-shooter-tags .print-label-number-caption,
.print-body-checkin-package .print-label-number-caption {
  position: absolute;
  top: 0.015in;
  left: 0.03in;
  transform: none;
  font-size: 0.105in;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: left;
}

.print-body-shooter-tags .print-label-number,
.print-body-checkin-package .print-label-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  font-family: "MC Heading", Impact, sans-serif;
  font-size: 0.98in;
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
  padding-top: 0.01in;
}

.print-body-shooter-tags .print-label-copy,
.print-body-checkin-package .print-label-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.print-body-shooter-tags .print-label-name-wrap,
.print-body-checkin-package .print-label-name-wrap {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 0.05in 0.01in;
}

.print-body-shooter-tags .print-label-name,
.print-body-checkin-package .print-label-name {
  margin: 0;
  width: 100%;
  font-family: "MC Heading", Impact, sans-serif;
  font-size: 20px;
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.score-lines p {
  margin: 14px 0;
}

@media print {
  @page {
    size: 4in 2in;
    margin: 0.08in 0 0 0;
  }

  .print-body-labels {
    padding: 0.02in 0 0 0;
    margin: 0;
  }

  .print-label-grid {
    display: block;
  }

  .print-label-card {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  .print-label-card:not(:last-child) {
    page-break-after: always;
  }
}

@media (max-width: 1180px) {
  .metric-grid,
  .metric-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .public-hero,
  .public-highlights,
  .public-dual-grid,
  .admin-grid,
  .bracket-board {
    grid-template-columns: 1fr;
  }

  .bracket-canvas,
  .matchup-entry-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .bracket-pair,
  .bracket-node {
    padding-right: 0;
  }

  .bracket-pair::after,
  .bracket-pair.has-two::before,
  .bracket-node::after {
    display: none;
  }

  .round-depth-2,
  .round-depth-3,
  .round-depth-4,
  .round-depth-5 {
    gap: 14px;
    padding-top: 0;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--admin-line);
    padding: 14px;
    gap: 12px;
  }

  .admin-shell.is-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar-footer {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sidebar-nav a {
    padding: 8px 10px;
    font-size: 0.8rem;
  }

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

  .filter-row-registrations,
  .filter-row-shooters {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .public-shell,
  .admin-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-header,
  .admin-header {
    align-items: start;
    flex-direction: column;
  }

  .public-topbar {
    display: grid;
    gap: 10px;
  }

  .public-topbar-main {
    width: 100%;
    min-height: 74px;
    padding: 0 54px;
  }

  .public-brand {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .public-brand span {
    max-width: 240px;
  }

  .public-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .public-nav {
    display: none;
    grid-template-columns: 1fr;
    width: 100%;
    padding-top: 8px;
    text-align: center;
  }

  .public-nav.is-open {
    display: grid;
  }

  .call-board-stats {
    grid-template-columns: 1fr;
  }

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

  .public-hero,
  .public-surface,
  .auth-card,
  .admin-card,
  .metric-card {
    padding: 18px;
  }

  .metric-grid,
  .metric-grid-compact {
    grid-template-columns: 1fr;
  }

  .table-form-assignments {
    grid-template-columns: 1fr;
  }

  .row-action-cluster {
    justify-content: flex-start;
  }

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

  .detail-grid-wide {
    grid-column: span 1;
  }
}

.bracket-widget {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.bracket-widget-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bracket-widget-toolbar strong,
.bracket-widget-toolbar span {
  display: block;
}

.bracket-widget-toolbar span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-body .bracket-widget-toolbar span {
  color: var(--admin-muted);
}

.bracket-widget-toolbar strong {
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bracket-widget-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bracket-widget-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(108, 95, 78, 0.48);
  border-radius: 999px;
  background: rgba(255, 251, 244, 0.84);
  color: #1e1d1a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.bracket-widget-button:hover {
  background: #fffdf8;
}

.bracket-page-shell,
.public-board-shell {
  display: grid;
  gap: 14px;
}

.public-board-shell {
  padding: 22px 0 6px;
}

.public-board-meta {
  margin-top: -6px;
}

.rules-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.rules-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 251, 244, 0.86);
}

.rules-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.rules-card p {
  color: var(--muted);
}

.call-board-surface {
  display: grid;
  gap: 14px;
}

.call-board-summary {
  gap: 18px;
}

.call-board-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.call-board-stats div {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 251, 244, 0.82);
}

.call-board-stats strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
}

.call-board-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.call-board-table th:first-child,
.call-board-table td:first-child {
  width: 78px;
}

.call-board-table th:nth-child(2),
.call-board-table td:nth-child(2) {
  width: 92px;
}

.call-board-reason {
  display: block;
  color: var(--ink);
  font-size: 0.96rem;
}

.call-board-table td,
.call-board-table th {
  color: var(--ink);
}

.call-board-table .table-subtext {
  color: #4f473d;
}

.bracket-page-header {
  margin-bottom: 4px;
}

.bracket-widget-viewport {
  position: relative;
  overflow: hidden;
  height: min(74vh, 860px);
  border: 1px solid rgba(108, 95, 78, 0.36);
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.48), transparent 34%),
    linear-gradient(180deg, #f6f0e4, #eee5d3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 40px rgba(67, 49, 29, 0.12);
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.bracket-widget-viewport.is-dragging {
  cursor: grabbing;
}

.admin-body .bracket-widget-viewport {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.3), transparent 32%),
    linear-gradient(180deg, #f6f0e4, #efe7d7);
}

.bracket-widget-home .bracket-widget-viewport {
  height: min(72vh, 840px);
}

.bracket-widget-stage .bracket-widget-toolbar,
.bracket-widget-home .bracket-widget-toolbar {
  padding-inline: 4px;
}

.bracket-widget-stage {
  width: min(calc(100vw - 36px), 1680px);
  margin-left: calc(50% - (min(calc(100vw - 36px), 1680px) / 2));
}

.bracket-widget-stage .bracket-widget-viewport {
  height: min(82vh, 960px);
  border-radius: 28px;
}

.bracket-widget-fullscreen {
  gap: 0;
  min-height: 100vh;
}

.bracket-widget-fullscreen .bracket-widget-toolbar {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 25;
  padding: 0;
}

.bracket-widget-fullscreen .bracket-widget-viewport {
  height: 100vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.bracket-widget-control .bracket-widget-viewport {
  height: min(76vh, 900px);
}

.bracket-widget-plane {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.bracket-widget-svg,
.bracket-widget-labels,
.bracket-widget-cards {
  position: absolute;
  inset: 0;
}

.bracket-widget-svg {
  overflow: visible;
}

.bracket-line {
  stroke: #d23923;
  stroke-width: 5.2;
  stroke-linecap: square;
}

.bracket-layer-label {
  position: absolute;
  color: rgba(146, 43, 25, 0.8);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 120ms ease, transform 120ms ease;
}

.bracket-layer-label:hover,
.bracket-layer-label:focus-visible {
  color: #8f2d16;
  transform: translateX(2px);
  outline: none;
  text-decoration: underline;
}

.bracket-canvas-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  width: 92px;
  min-height: 88px;
  padding: 8px 6px 6px;
  border: 1px solid rgba(154, 136, 111, 0.72);
  border-radius: 3px;
  background: #fffefb;
  box-shadow:
    0 8px 18px rgba(60, 40, 18, 0.12),
    0 2px 0 rgba(0, 0, 0, 0.05);
  transform: rotate(var(--card-tilt, 0deg));
}

.bracket-card-tape {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 34px;
  height: 11px;
  transform: translateX(-50%) rotate(-2deg);
  border-radius: 3px;
  background: rgba(234, 226, 188, 0.95);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.bracket-card-corner-tag {
  position: absolute;
  top: 50%;
  left: -126px;
  transform: translateY(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  min-width: 116px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(133, 105, 41, 0.24);
  background: rgba(255, 250, 239, 0.96);
  box-shadow: 0 3px 10px rgba(52, 34, 10, 0.12);
  color: #6d5420;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.bracket-card-corner-tag.place-1 {
  border-color: rgba(180, 141, 30, 0.42);
  background: rgba(255, 244, 200, 0.98);
  color: #7c5d00;
}

.bracket-card-corner-tag.place-2 {
  border-color: rgba(129, 139, 154, 0.42);
  background: rgba(241, 244, 248, 0.98);
  color: #55606d;
}

.bracket-card-corner-tag.place-3 {
  border-color: rgba(145, 89, 51, 0.38);
  background: rgba(247, 231, 219, 0.98);
  color: #7b4621;
}

.bracket-card-header {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.bracket-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(210, 57, 35, 0.08);
  color: #b52f1e;
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
}

.bracket-card-body strong,
.bracket-card-body em {
  display: block;
}

.bracket-card-name,
.bracket-card-body strong {
  font-size: 0.6rem;
  line-height: 1.14;
  min-height: 2.28em;
  padding-top: 2px;
  overflow-wrap: anywhere;
  flex: 1 1 auto;
}

.bracket-card-body em {
  color: #8e3c2a;
  font-size: 0.48rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: normal;
  word-break: break-word;
}

.bracket-card-body {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-start;
}

.bracket-card-detail {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid rgba(177, 154, 122, 0.28);
}

.bracket-canvas-card.state-eliminated {
  opacity: 0.78;
  filter: saturate(0.82);
}

.bracket-canvas-card.state-open {
  background: rgba(255, 253, 248, 0.82);
  border-style: dashed;
  border-color: rgba(177, 154, 122, 0.72);
  box-shadow: none;
}

.bracket-canvas-card.state-open .bracket-card-badge {
  background: rgba(210, 57, 35, 0.04);
  color: rgba(181, 47, 30, 0.72);
}

.bracket-canvas-card.state-open .bracket-card-body strong,
.bracket-canvas-card.state-open .bracket-card-body em {
  color: rgba(108, 95, 78, 0.82);
}

.bracket-canvas-card.state-winner,
.bracket-canvas-card.state-advanced,
.bracket-canvas-card.state-champion {
  background: #eef8ee;
  border-color: rgba(71, 129, 76, 0.45);
}

.bracket-canvas-card.state-champion {
  padding: 8px 9px 7px;
  z-index: 6;
  box-shadow:
    0 16px 28px rgba(42, 109, 49, 0.16),
    0 4px 0 rgba(0, 0, 0, 0.06);
}

.bracket-canvas-card.state-champion .bracket-card-header {
  gap: 6px;
}

.bracket-canvas-card.state-champion .bracket-card-badge {
  min-width: 24px;
  min-height: 24px;
  font-size: 0.56rem;
}

.bracket-canvas-card.state-champion .bracket-card-name {
  font-size: 0.82rem;
  line-height: 1.03;
  min-height: 0;
  padding-top: 0;
  align-self: center;
}

.bracket-canvas-card.state-tied {
  background: #fff4ef;
  border-color: rgba(210, 57, 35, 0.45);
}

.bracket-canvas-card.state-champion .bracket-card-body {
  justify-content: center;
}

.qualification-pool {
  display: grid;
  gap: 10px;
}

.qualification-pool-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.qualification-pool-header strong {
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.qualification-pool-header span {
  color: var(--muted);
  font-size: 0.76rem;
}

.qualification-pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.qualification-pool-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(154, 136, 111, 0.62);
  border-radius: 8px;
  background: rgba(255, 251, 244, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.qualification-pool-card strong {
  font-size: 0.7rem;
  line-height: 1.15;
}

.qualification-pool-card span {
  flex: 0 0 auto;
  color: #8e3c2a;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.qualification-pool-card.state-qualified {
  border-color: rgba(71, 129, 76, 0.45);
  background: #eef8ee;
}

.qualification-pool-card.state-elimination {
  border-color: rgba(210, 57, 35, 0.45);
  background: #fff4ef;
}

.qualification-pool-card.state-eliminated {
  opacity: 0.72;
  border-style: dashed;
  background: rgba(244, 239, 232, 0.88);
}

.qualification-pool-card.state-scored {
  background: #fffaf0;
}

.qualification-pool-card.state-waiting {
  border-style: dashed;
  background: rgba(255, 253, 248, 0.84);
}

.rso-add-form .form-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.section-description {
  color: var(--muted);
}

.admin-body .section-description {
  color: var(--admin-muted);
}

.rso-table-card {
  position: relative;
  overflow: clip;
}

.rso-table-head {
  align-items: center;
}

.rso-head-actions {
  display: flex;
  gap: 10px;
}

.rso-icon-button {
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

.rso-add-panel {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--admin-line);
  border-radius: var(--radius-md);
  background: var(--admin-panel-2);
}

.rso-help-drawer {
  position: absolute;
  z-index: 8;
  top: 18px;
  right: 18px;
  width: min(420px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid var(--admin-line);
  border-radius: var(--radius-lg);
  background: rgba(14, 18, 25, 0.98);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.4);
}

.rso-help-drawer.is-open {
  display: block;
}

.rso-help-drawer-inner {
  display: grid;
  gap: 14px;
}

.rso-data-table td,
.rso-data-table th {
  vertical-align: top;
}

.rso-data-table th:first-child,
.rso-data-table td:first-child {
  width: 36px;
}

.rso-data-table th:nth-child(4),
.rso-data-table td:nth-child(4) {
  min-width: 180px;
}

.rso-expand-link {
  display: inline-flex;
  min-width: 24px;
  justify-content: center;
  font-size: 1rem;
}

.rso-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rso-row-actions form {
  margin: 0;
}

.rso-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  background: var(--admin-panel-2);
  color: var(--admin-text);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
}

.rso-action-button:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: #1c2330;
}

.rso-detail-row td {
  padding: 0 18px 16px;
  border-bottom: 1px solid var(--admin-line);
}

.rso-inline-detail {
  padding: 12px 4px 0;
}

.rso-inline-meta {
  margin-top: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rso-qr-wrap {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.rso-qr-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid var(--admin-line);
  border-radius: var(--radius-md);
  background: #fff;
}

.rso-qr-image-wrap img {
  width: 100%;
  max-width: 220px;
  height: auto;
}

.rso-link-box {
  display: block;
  margin: 10px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--admin-line);
  border-radius: var(--radius-sm);
  background: var(--admin-panel-2);
  color: var(--admin-text);
  font-size: 0.84rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-all;
  text-decoration: none;
}

.rso-rule-list,
.rso-inline-meta {
  margin-top: 0;
}

.rso-rule-list div,
.rso-inline-meta div {
  border-bottom-color: var(--admin-line);
}

.rso-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 8, 11, 0.68);
  overflow: auto;
}

.rso-qr-modal-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  padding: 22px;
  border: 1px solid var(--admin-line);
  border-radius: var(--radius-lg);
  background: var(--admin-panel);
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.45);
  overflow: auto;
}

.rso-mobile-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(177, 75, 33, 0.16), transparent 32%),
    #0b0d11;
  color: #eef2f7;
}

.rso-mobile-body .page-kicker,
.rso-mobile-body .section-kicker,
.rso-mobile-body .page-meta {
  color: var(--admin-muted);
}

.rso-mobile-body .alert,
.rso-mobile-body .empty-state {
  border-color: rgba(255, 255, 255, 0.12);
  background: #141a22;
  color: #eef2f7;
  box-shadow: none;
}

.rso-mobile-body .alert strong,
.rso-mobile-body .empty-state strong {
  color: #fff;
}

.rso-mobile-body input,
.rso-mobile-body select {
  border-color: rgba(255, 255, 255, 0.12);
  background: #0d1117;
  color: #fff;
}

.rso-mobile-body input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.rso-mobile-body .btn,
.rso-mobile-body button.btn {
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.rso-mobile-body .btn:hover,
.rso-mobile-body button.btn:hover {
  border-color: #fff;
  background: #fff;
  color: #12161c;
}

.rso-mobile-body .btn.primary,
.rso-mobile-body button.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.rso-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 14px 36px;
}

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

.rso-title {
  max-width: 9ch;
  font-size: clamp(1.45rem, 6.4vw, 2.05rem);
  line-height: 0.93;
}

.rso-subtitle {
  color: var(--admin-muted);
}

.rso-card {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--admin-line);
  border-radius: 20px;
  background: var(--admin-panel);
}

.rso-lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.rso-confirm-card {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  background: var(--admin-panel-2);
}

.rso-confirm-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.rso-confirm-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-family: "MC Heading", Impact, sans-serif;
  font-size: 1.4rem;
}

.rso-context-pills {
  display: grid;
  gap: 8px;
}

.rso-context-pill {
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.96rem;
  line-height: 1.35;
}

.rso-context-pill strong {
  color: var(--admin-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rso-score-form {
  display: grid;
  gap: 14px;
}

.rso-score-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 1rem;
}

.rso-shot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.rso-shot-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  background: var(--admin-panel-2);
}

.rso-shot-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rso-shot-button {
  min-height: 52px;
  border-radius: 14px;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.rso-shot-button.is-active {
  border-color: transparent;
  color: #fff;
}

.rso-shot-button.is-hit {
  background: #1d7b49;
}

.rso-shot-button.is-miss {
  background: #8f2d24;
}

.rso-submit-row .btn {
  width: 100%;
  min-height: 56px;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .rso-qr-wrap {
    grid-template-columns: 1fr;
  }

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

  .rso-data-table th:nth-child(4),
  .rso-data-table td:nth-child(4) {
    min-width: 140px;
  }

  .bracket-widget-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .bracket-widget-stage {
    width: 100%;
    margin-left: 0;
  }

  .bracket-widget-viewport {
    height: 68vh;
  }
}

@media (max-width: 640px) {
  .rso-add-form .form-split,
  .rso-lookup-form {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .form-grid-tight {
    grid-template-columns: 1fr;
  }

  .form-submit-inline {
    height: auto;
  }

  .rso-help-drawer,
  .rso-qr-modal {
    padding: 14px;
  }

  .rso-inline-meta {
    grid-template-columns: 1fr;
  }

  .rso-table-card {
    padding: 14px;
  }

  .rso-head-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .rso-data-table {
    min-width: 720px;
  }

  .admin-content {
    padding: 12px 12px 28px;
  }

  .rso-shot-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .admin-sidebar {
    padding: 10px 12px;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .sidebar-brand span {
    font-size: 0.8rem;
  }

  .rso-link-box {
    font-size: 0.74rem;
  }

  .rso-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.shooter-mobile-body {
  min-height: 100vh;
  margin: 0;
  color-scheme: dark;
  background:
    radial-gradient(circle at top left, rgba(161, 28, 40, 0.22), transparent 34%),
    linear-gradient(180deg, #071019 0%, #0d1722 100%);
  color: #f8fafc;
}

.shooter-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

.shooter-header {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.shooter-header-kicker,
.shooter-card-kicker,
.shooter-status-kicker,
.shooter-eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  color: #96adc6;
}

.shooter-header-title {
  margin: 0;
  font-size: clamp(1.5rem, 4.6vw, 2.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: none;
  color: #e3ebf4;
}

.shooter-main,
.shooter-stack {
  display: grid;
  gap: 14px;
}

.shooter-stack {
  position: relative;
}

.shooter-toast {
  position: sticky;
  top: 8px;
  z-index: 30;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(12, 45, 26, 0.96);
  color: #fff;
  padding: 14px 16px;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: 0 16px 32px rgba(1, 6, 14, 0.34);
}

.shooter-toast-warn {
  background: rgba(88, 33, 20, 0.96);
  border-color: rgba(255, 175, 132, 0.26);
}

.shooter-card {
  border: 1px solid rgba(152, 174, 198, 0.16);
  border-radius: 24px;
  background: rgba(8, 16, 26, 0.82);
  padding: 18px;
  box-shadow: 0 18px 40px rgba(2, 7, 15, 0.34);
  backdrop-filter: blur(12px);
}

.shooter-card .btn,
.shooter-card button.btn {
  border-color: rgba(156, 204, 255, 0.28);
  background: rgba(20, 34, 49, 0.92);
  color: #fff;
}

.shooter-card .btn:hover,
.shooter-card .btn:focus-visible,
.shooter-card button.btn:hover,
.shooter-card button.btn:focus-visible {
  border-color: rgba(186, 224, 255, 0.52);
  background: rgba(35, 57, 81, 0.96);
  color: #fff;
}

.shooter-card .btn.primary,
.shooter-card button.btn.primary {
  border-color: #c33b4b;
  background: #c33b4b;
  color: #fff;
}

.shooter-card .btn.primary:hover,
.shooter-card .btn.primary:focus-visible,
.shooter-card button.btn.primary:hover,
.shooter-card button.btn.primary:focus-visible {
  border-color: #d85262;
  background: #d85262;
}

.shooter-identity-card {
  display: grid;
  grid-template-columns: minmax(86px, 104px) 1fr;
  gap: 14px;
  align-items: center;
}

.shooter-identity-number {
  display: grid;
  place-items: center;
  min-height: 88px;
  border-radius: 22px;
  background: linear-gradient(180deg, #b11f33 0%, #7f1624 100%);
  color: #fff;
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24);
}

.shooter-name {
  margin: 0;
  font-size: clamp(1.4rem, 5vw, 2rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-transform: none;
  color: #e5edf6;
}

.shooter-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.shooter-status-card {
  position: relative;
  overflow: hidden;
}

.shooter-status-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 45%);
}

.shooter-status-active {
  border-color: rgba(62, 186, 113, 0.38);
  background: linear-gradient(180deg, rgba(12, 60, 33, 0.96), rgba(8, 30, 18, 0.96));
}

.shooter-status-playoff {
  border-color: rgba(214, 81, 64, 0.38);
  background: linear-gradient(180deg, rgba(83, 27, 19, 0.96), rgba(44, 16, 12, 0.96));
}

.shooter-status-waiting,
.shooter-status-qualifying {
  border-color: rgba(159, 192, 223, 0.18);
}

.shooter-status-eliminated {
  border-color: rgba(143, 162, 179, 0.2);
  background: rgba(18, 26, 36, 0.88);
}

.shooter-status-headline {
  margin: 0;
  font-size: clamp(1.55rem, 5.4vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.012em;
  text-transform: none;
  color: #e4ebf3;
}

.shooter-card-title {
  margin: 0;
  font-size: clamp(1.16rem, 3.7vw, 1.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #dde6ef;
}

.shooter-status-detail,
.shooter-card-body,
.shooter-setup-note {
  margin: 10px 0 0;
  color: #d2deeb;
  line-height: 1.45;
}

.shooter-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shooter-summary-item {
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  padding: 14px 12px;
}

.shooter-summary-item span {
  display: block;
  color: #9ab0c7;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.shooter-summary-item strong {
  display: block;
  margin-top: 8px;
  font-size: 1.15rem;
  color: #fff;
}

.shooter-link-card {
  border-color: rgba(126, 182, 230, 0.24);
  background: linear-gradient(180deg, rgba(10, 24, 38, 0.94), rgba(7, 15, 25, 0.94));
}

.shooter-setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.shooter-alert-btn {
  background: rgba(20, 34, 49, 0.92);
  border-color: rgba(156, 204, 255, 0.34);
  color: #f8fbff;
}

.shooter-alert-btn:hover,
.shooter-alert-btn:focus-visible {
  background: rgba(143, 193, 248, 0.16);
  border-color: rgba(167, 213, 255, 0.5);
  color: #fff;
}

.shooter-page-btn {
  box-shadow: none;
}

.shooter-link-btn {
  margin-top: 14px;
}

.shooter-history-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.shooter-history-item {
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  padding: 14px;
}

.shooter-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.shooter-history-head h4 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #e0e8f1;
}

.shooter-history-head p {
  margin: 5px 0 0;
  color: #9ab0c7;
}

.shooter-history-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.shooter-history-scores span {
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  padding: 6px 10px;
  font-weight: 700;
}

.print-body-shooter-page-labels,
.print-body-checkin-package {
  margin: 0;
  padding: 20px 0;
  background: #f1f1f1;
  box-sizing: border-box;
}

.print-page-label-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  justify-items: center;
}

.print-page-label-card {
  box-sizing: border-box;
  width: 4in;
  min-width: 4in;
  max-width: 4in;
  height: 2in;
  min-height: 2in;
  max-height: 2in;
  margin: 0 auto;
  padding: 0;
  background: #fff;
  color: #000;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  break-inside: avoid;
}

.print-page-label-safe {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0.16in 0.15in 0.13in 0.15in;
  display: grid;
  grid-template-columns: minmax(0, 0.94in) 1fr;
  align-items: center;
  gap: 0.18in;
}

.print-page-label-meta {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.06in;
  padding-top: 0.03in;
  color: #000;
}

.print-page-label-caption {
  font-size: 0.11in;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000;
  font-weight: 700;
  white-space: nowrap;
}

.print-page-label-number-wrap {
  min-width: 0;
  overflow: hidden;
}

.print-page-label-number {
  margin: 0;
  width: 100%;
  font-family: "MC Heading", Impact, sans-serif;
  font-size: 0.56in;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: #000;
  text-transform: uppercase;
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}

.print-page-label-name-wrap {
  min-width: 0;
  overflow: hidden;
  padding-top: 0.015in;
}

.print-page-label-name {
  margin: 0;
  width: 100%;
  font-size: 0.17in;
  line-height: 1.02;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  text-align: left;
  letter-spacing: -0.01em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.print-page-label-qr-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.print-page-label-qr {
  width: 1.42in;
  height: 1.42in;
  display: grid;
  place-items: center;
}

.print-page-label-qr img {
  display: block;
  width: 1.42in;
  height: 1.42in;
  object-fit: contain;
  image-rendering: pixelated;
  filter: none;
}

@media print {
  @page {
    size: 4in 2in;
    margin: 0;
  }

  html,
  body.print-body-shooter-page-labels {
    width: 4in;
    height: 2in;
    margin: 0;
    padding: 0;
    background: #fff;
    overflow: hidden;
  }

  body.print-body-shooter-page-labels {
    min-height: auto;
  }

  body.print-body-checkin-package {
    margin: 0;
    padding: 0;
    background: #fff;
    min-height: auto;
  }

  .print-page-label-grid {
    display: block;
    margin: 0;
    padding: 0;
  }

  .print-page-label-card {
    margin: 0;
    page-break-inside: avoid;
    page-break-after: auto;
  }

  .print-page-label-card:not(:last-child) {
    page-break-after: always;
  }
}

@media (max-width: 520px) {
  .shooter-shell {
    padding: 12px 12px 30px;
  }

  .shooter-card {
    padding: 16px;
    border-radius: 20px;
  }

  .shooter-identity-card {
    grid-template-columns: 84px 1fr;
    gap: 12px;
  }

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