:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel-strong: #f1efff;
  --text: #17152b;
  --muted: #6f7282;
  --border: #e5e7ef;
  --primary: #673de6;
  --primary-strong: #5025d1;
  --accent: #8c6cff;
  --accent-cool: #00b090;
  --danger: #d92d55;
  --warning: #f5a524;
  --success: #00a36c;
  --surface-muted: #fafaff;
  --sidebar-bg: #ffffff;
  --sidebar-active: #f3f0ff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: rgba(28, 32, 55, 0.1);
  --shadow-soft: 0 10px 30px rgba(28, 32, 55, 0.08);
  --shadow-card: 0 16px 40px rgba(28, 32, 55, 0.1);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #111026;
  --panel: #191833;
  --panel-strong: #24204a;
  --text: #f8f7ff;
  --muted: #b8b4ca;
  --border: rgba(255, 255, 255, 0.12);
  --primary: #8c6cff;
  --primary-strong: #7357ea;
  --accent: #b8a6ff;
  --accent-cool: #20d6b5;
  --danger: #ff5c7a;
  --warning: #f5b544;
  --success: #35d89f;
  --surface-muted: #14132c;
  --sidebar-bg: #17162e;
  --sidebar-active: rgba(140, 108, 255, 0.16);
  --shadow: rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 10px 32px rgba(0, 0, 0, 0.26);
  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

[hidden] {
  display: none !important;
}

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

.login-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  min-height: 100vh;
}

.public-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(340px, 1fr);
  min-height: 100vh;
}

.public-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 48px;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(255, 51, 79, 0.88), rgba(8, 9, 13, 0.94) 54%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 32px);
}

.public-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.public-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
}

.public-hero-info {
  display: grid;
  gap: 10px;
  width: min(100%, 620px);
  margin-top: 12px;
}

.public-hero-info article {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(8, 9, 13, 0.42);
}

.public-hero-info strong {
  color: var(--accent);
  font-size: 0.92rem;
}

.public-hero-info span {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.45;
}

.public-form-panel {
  display: grid;
  place-items: center;
  padding: 32px;
}

.public-form {
  width: min(100%, 760px);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: 0 24px 80px var(--shadow);
}

.public-choice-panel {
  display: grid;
  gap: 18px;
}

.public-choice-heading {
  display: grid;
  gap: 4px;
}

.public-choice-heading h2 {
  margin: 0;
  font-size: 1.35rem;
}

.public-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.public-choice-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-height: 190px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  background: color-mix(in srgb, var(--bg) 62%, var(--panel));
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.public-choice-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent-cool) 58%, var(--border));
  background: color-mix(in srgb, var(--panel-strong) 76%, var(--panel));
}

.public-choice-card strong {
  font-size: 1.05rem;
}

.public-choice-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.public-choice-card small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid color-mix(in srgb, var(--accent-cool) 55%, var(--border));
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--accent-cool);
  font-size: 0.82rem;
  font-weight: 900;
}

.championship-landing {
  min-height: 100vh;
  overflow-x: hidden;
}

.championship-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: stretch;
  min-height: 74vh;
  padding: 56px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--primary) 28%, transparent), transparent 28%),
    radial-gradient(circle at 84% 20%, color-mix(in srgb, var(--accent-cool) 18%, transparent), transparent 24%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px),
    var(--bg);
}

.championship-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
}

.championship-hero-copy h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 6rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.championship-hero-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.championship-hero-action {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  text-decoration: none;
}

.championship-carousel {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  min-width: 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.carousel-card {
  flex: 0 0 clamp(220px, 24vw, 320px);
  display: grid;
  gap: 10px;
  animation: championshipSlide 28s linear infinite;
}

.carousel-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 24px 80px var(--shadow);
}

.carousel-card span,
.championship-public-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.carousel-card strong {
  color: var(--text);
  font-size: 1.15rem;
  text-transform: uppercase;
}

@keyframes championshipSlide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - 18px));
  }
}

.championship-section,
.championship-info-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.championship-section {
  display: grid;
  gap: 18px;
  padding: 44px 0;
}

.championship-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px;
}

.championship-public-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: 0 18px 70px var(--shadow);
}

.championship-public-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--panel-strong);
}

.championship-public-content {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.championship-public-content h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.championship-public-content dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.championship-public-content dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.championship-public-content dt {
  color: var(--muted);
  font-weight: 800;
}

.championship-public-content dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.championship-empty {
  grid-column: 1 / -1;
}

.championship-finished-section {
  padding-top: 0;
}

.finished-championships-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  overflow: hidden;
}

.finished-championships-box > summary,
.championship-box-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  padding: 18px;
}

.finished-championships-box > summary {
  cursor: pointer;
}

.finished-championships-box > summary::-webkit-details-marker {
  display: none;
}

.finished-championships-box h2 {
  margin: 0;
}

.finished-championships-box > summary > span,
.championship-box-heading > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-cool) 16%, transparent);
  color: var(--accent-cool);
  font-weight: 900;
}

.finished-grid {
  padding: 0 18px 18px;
}

.active-championships-box > .message {
  margin: 0;
  padding: 0 18px 12px;
}

.active-championships-box .championship-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
  justify-content: start;
  gap: 14px;
}

.active-championships-box .championship-public-card {
  box-shadow: none;
}

.active-championships-box .championship-public-card img {
  aspect-ratio: 16 / 9;
}

.active-championships-box .championship-public-content {
  gap: 10px;
  padding: 14px;
}

.active-championships-box .championship-public-content > span {
  font-size: 0.72rem;
}

.active-championships-box .championship-public-content h3 {
  font-size: 1rem;
  line-height: 1.18;
  text-transform: none;
}

.active-championships-box .championship-public-content dl {
  gap: 6px;
}

.active-championships-box .championship-public-content dl div {
  gap: 8px;
  padding-bottom: 6px;
}

.active-championships-box .championship-public-content dt,
.active-championships-box .championship-public-content dd {
  font-size: 0.8rem;
}

.active-championships-box .championship-public-content .primary-action {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 0.8rem;
}

/* Final theme/sidebar stabilization */
.app-shell .sidebar-top::before {
  display: none;
}

.app-shell .sidebar-top {
  justify-content: flex-end;
}

.app-shell .nav-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  min-width: 22px;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
}

.app-shell .nav-item.locked {
  cursor: not-allowed;
  opacity: 0.52;
}

.app-shell .nav-item.locked::after {
  content: "Bloqueado";
  margin-left: auto;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.62rem;
  font-weight: 900;
  opacity: 0.72;
}

.app-shell.sidebar-collapsed .nav-item.locked::after {
  display: none;
}

:root[data-theme='dark'] body:has(.app-shell) {
  background: #0f1024;
}

:root[data-theme='dark'] .app-shell {
  background: #0f1024;
  color: #f7f5ff;
}

:root[data-theme='dark'] .app-shell .sidebar,
:root[data-theme='dark'] .app-shell .dashboard-header,
:root[data-theme='dark'] .app-shell .work-panel,
:root[data-theme='dark'] .app-shell .table-wrap,
:root[data-theme='dark'] .app-shell .metric-card,
:root[data-theme='dark'] .app-shell .empty-state,
:root[data-theme='dark'] .app-shell .detail-list,
:root[data-theme='dark'] .app-shell .modal .modal-body,
:root[data-theme='dark'] .app-shell .bracket-modal .modal-body,
:root[data-theme='dark'] .app-shell .admin-dashboard-shell,
:root[data-theme='dark'] .app-shell .admin-overview-card,
:root[data-theme='dark'] .app-shell .admin-module-card,
:root[data-theme='dark'] .app-shell .admin-list-card,
:root[data-theme='dark'] .app-shell .hub-tree-panel,
:root[data-theme='dark'] .app-shell .main-menu-panel,
:root[data-theme='dark'] .app-shell .events-board,
:root[data-theme='dark'] .app-shell .central-alley-board,
:root[data-theme='dark'] .app-shell .championship-center-dropdown,
:root[data-theme='dark'] .app-shell .championship-admin-card,
:root[data-theme='dark'] .app-shell .task-column,
:root[data-theme='dark'] .app-shell .task-card,
:root[data-theme='dark'] .app-shell .my-task-row,
:root[data-theme='dark'] .app-shell .form-manager-card,
:root[data-theme='dark'] .app-shell .employee-editor-form,
:root[data-theme='dark'] .app-shell .employee-tab-panel {
  border-color: rgba(255, 255, 255, 0.12);
  background: #191833;
  color: #f7f5ff;
}

:root[data-theme='dark'] .app-shell .dashboard-header,
:root[data-theme='dark'] .app-shell .modal-header,
:root[data-theme='dark'] .app-shell .work-panel > .compact-heading,
:root[data-theme='dark'] .app-shell .championship-center-dropdown > summary,
:root[data-theme='dark'] .app-shell .event-detail-section > summary,
:root[data-theme='dark'] .app-shell .alley-dropdown > summary,
:root[data-theme='dark'] .app-shell th,
:root[data-theme='dark'] .app-shell .admin-tabs,
:root[data-theme='dark'] .app-shell .form-manager-access,
:root[data-theme='dark'] .app-shell .my-task-detail,
:root[data-theme='dark'] .app-shell .championship-admin-body {
  border-color: rgba(255, 255, 255, 0.12);
  background: #222044;
  color: #f7f5ff;
}

:root[data-theme='dark'] .app-shell h1,
:root[data-theme='dark'] .app-shell h2,
:root[data-theme='dark'] .app-shell h3,
:root[data-theme='dark'] .app-shell strong,
:root[data-theme='dark'] .app-shell td,
:root[data-theme='dark'] .app-shell .admin-list-text strong,
:root[data-theme='dark'] .app-shell .hub-item-text strong,
:root[data-theme='dark'] .app-shell .section-heading h2 {
  color: #f7f5ff;
}

:root[data-theme='dark'] .app-shell p,
:root[data-theme='dark'] .app-shell span,
:root[data-theme='dark'] .app-shell dt,
:root[data-theme='dark'] .app-shell label,
:root[data-theme='dark'] .app-shell .admin-list-text span,
:root[data-theme='dark'] .app-shell .hub-item-text span,
:root[data-theme='dark'] .app-shell .metric-card span,
:root[data-theme='dark'] .app-shell .detail-list span {
  color: #c9c4dc;
}

:root[data-theme='dark'] .app-shell .label,
:root[data-theme='dark'] .app-shell .eyebrow,
:root[data-theme='dark'] .app-shell .nav-icon {
  color: #b8a6ff;
}

:root[data-theme='dark'] .app-shell .nav-title {
  color: #b8a6ff;
}

:root[data-theme='dark'] .app-shell .nav-item {
  color: #d8d3ec;
}

:root[data-theme='dark'] .app-shell .nav-section.active-section,
:root[data-theme='dark'] .app-shell .nav-item:hover,
:root[data-theme='dark'] .app-shell .nav-item.active,
:root[data-theme='dark'] .app-shell .employee-tab.active {
  background: rgba(140, 108, 255, 0.18);
  color: #ffffff;
}

:root[data-theme='dark'] .app-shell input,
:root[data-theme='dark'] .app-shell select,
:root[data-theme='dark'] .app-shell textarea {
  border-color: rgba(255, 255, 255, 0.14);
  background: #111026;
  color: #f7f5ff;
}

:root[data-theme='dark'] .app-shell input::placeholder,
:root[data-theme='dark'] .app-shell textarea::placeholder {
  color: #8f89a8;
}

:root[data-theme='dark'] .app-shell .secondary-button,
:root[data-theme='dark'] .app-shell .secondary-table-action,
:root[data-theme='dark'] .app-shell .icon-button,
:root[data-theme='dark'] .app-shell .theme-toggle,
:root[data-theme='dark'] .app-shell .employee-tab {
  border-color: rgba(255, 255, 255, 0.14);
  background: #222044;
  color: #f7f5ff;
}

:root[data-theme='dark'] .app-shell .danger-action {
  background: rgba(255, 92, 122, 0.12);
  color: #ff8fa3;
}

:root[data-theme='dark'] .app-shell tbody tr:hover,
:root[data-theme='dark'] .app-shell .approval-item:hover,
:root[data-theme='dark'] .app-shell .championship-admin-card:hover,
:root[data-theme='dark'] .app-shell .championship-registration-row:hover,
:root[data-theme='dark'] .app-shell .my-task-row:hover {
  background: #222044;
}

/* Final championships public page model */
body:has(.championship-landing) {
  background:
    radial-gradient(circle at 10% 6%, rgba(103, 61, 230, 0.18), transparent 26%),
    radial-gradient(circle at 90% 12%, rgba(0, 176, 144, 0.14), transparent 22%),
    linear-gradient(180deg, #f6f4ff 0%, #f8f9fc 54%, #ffffff 100%);
}

.championship-landing {
  display: grid;
  gap: 22px;
  padding: 18px;
}

.championship-hero,
.championship-section,
.championship-info-band {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.championship-hero {
  min-height: 520px;
  margin-top: 0;
  border: 1px solid #dfe4ee;
  border-radius: 16px;
  background:
    radial-gradient(circle at 22% 22%, rgba(103, 61, 230, 0.18), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f3efff 100%);
  box-shadow: 0 24px 60px rgba(39, 43, 66, 0.09);
}

.championship-hero-action,
.championship-card-actions-public .primary-action,
.regulation-card .primary-action {
  background: #673de6;
}

.championship-hero-action:hover,
.championship-card-actions-public .primary-action:hover,
.regulation-card .primary-action:hover {
  background: #5025d1;
}

.championship-active-section,
.championship-finished-section,
.regulations-section,
.winners-section {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.landing-panel {
  overflow: hidden;
  border: 1px solid #dfe4ee;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(39, 43, 66, 0.06);
}

.championship-box-heading,
.finished-championships-box > summary {
  border-bottom: 1px solid #edf0f6;
  padding: 18px 20px;
  background:
    linear-gradient(90deg, rgba(103, 61, 230, 0.08), transparent 52%),
    #ffffff;
}

.active-championships-box .championship-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 315px));
  justify-content: start;
  gap: 16px;
  padding: 18px 20px 20px;
}

.active-championships-box .championship-public-card {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(39, 43, 66, 0.06);
}

.active-championships-box .championship-public-content {
  gap: 12px;
  padding: 14px;
}

.championship-card-actions-public {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.championship-card-actions-public .primary-action,
.championship-card-actions-public .secondary-table-action {
  min-height: 36px;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 0.8rem;
  text-decoration: none;
}

.regulation-grid,
.winner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  padding: 18px 20px 20px;
}

.regulation-card,
.winner-card {
  display: grid;
  gap: 9px;
  border: 1px solid #dfe4ee;
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}

.regulation-card span,
.winner-card span {
  color: #673de6;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.regulation-card strong,
.winner-card strong {
  color: #202437;
  font-size: 1rem;
}

.regulation-card small,
.winner-card small {
  color: #687086;
}

.winner-card {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
}

.winner-card img {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .championship-landing {
    padding: 10px;
  }

  .championship-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .active-championships-box .championship-card-grid,
  .regulation-grid,
  .winner-grid {
    grid-template-columns: 1fr;
    padding-inline: 14px;
  }
}

/* Final dark theme contrast pass for the internal system */
:root[data-theme='dark'] body:has(.app-shell) {
  background:
    radial-gradient(circle at 12% 0%, rgba(140, 108, 255, 0.16), transparent 32%),
    #0f1024;
}

:root[data-theme='dark'] .app-shell {
  background: transparent;
  color: var(--text);
}

:root[data-theme='dark'] .app-shell .main-workspace {
  background: transparent;
}

:root[data-theme='dark'] .app-shell .sidebar,
:root[data-theme='dark'] .app-shell .dashboard-header,
:root[data-theme='dark'] .app-shell .metric-card,
:root[data-theme='dark'] .app-shell .empty-state,
:root[data-theme='dark'] .app-shell .detail-list,
:root[data-theme='dark'] .app-shell .work-panel,
:root[data-theme='dark'] .app-shell .table-wrap,
:root[data-theme='dark'] .app-shell .approval-item,
:root[data-theme='dark'] .app-shell .artist-type-section,
:root[data-theme='dark'] .app-shell .championship-admin-card,
:root[data-theme='dark'] .app-shell .championship-center-dropdown,
:root[data-theme='dark'] .app-shell .championship-registration-row,
:root[data-theme='dark'] .app-shell .championship-approved-group,
:root[data-theme='dark'] .app-shell .event-volunteer-group,
:root[data-theme='dark'] .app-shell .task-column,
:root[data-theme='dark'] .app-shell .task-card,
:root[data-theme='dark'] .app-shell .my-task-row,
:root[data-theme='dark'] .app-shell .my-tasks-list,
:root[data-theme='dark'] .app-shell .my-task-pagination,
:root[data-theme='dark'] .app-shell .form-manager-card,
:root[data-theme='dark'] .app-shell .employee-editor-form,
:root[data-theme='dark'] .app-shell .employee-tab-panel,
:root[data-theme='dark'] .app-shell .admin-overview-card,
:root[data-theme='dark'] .app-shell .admin-module-card,
:root[data-theme='dark'] .app-shell .admin-list-card,
:root[data-theme='dark'] .app-shell .hub-tree-panel,
:root[data-theme='dark'] .app-shell .main-menu-panel,
:root[data-theme='dark'] .app-shell .events-board,
:root[data-theme='dark'] .app-shell .central-alley-board,
:root[data-theme='dark'] .app-shell .modal,
:root[data-theme='dark'] .app-shell .modal .modal-body,
:root[data-theme='dark'] .app-shell .bracket-modal .modal-body {
  border-color: var(--border);
  background: color-mix(in srgb, var(--panel) 94%, #000000);
  color: var(--text);
  box-shadow: none;
}

:root[data-theme='dark'] .app-shell .dashboard-header,
:root[data-theme='dark'] .app-shell .sidebar-top,
:root[data-theme='dark'] .app-shell .work-panel > .compact-heading,
:root[data-theme='dark'] .app-shell .championship-center-dropdown > summary,
:root[data-theme='dark'] .app-shell .alley-dropdown > summary,
:root[data-theme='dark'] .app-shell .event-detail-section > summary,
:root[data-theme='dark'] .app-shell .championship-admin-body,
:root[data-theme='dark'] .app-shell .my-task-detail,
:root[data-theme='dark'] .app-shell th {
  border-color: var(--border);
  background: color-mix(in srgb, var(--panel-strong) 84%, #000000);
  color: var(--text);
}

:root[data-theme='dark'] .app-shell table,
:root[data-theme='dark'] .app-shell tbody,
:root[data-theme='dark'] .app-shell tr,
:root[data-theme='dark'] .app-shell td {
  background: transparent;
  color: var(--text);
}

:root[data-theme='dark'] .app-shell td {
  border-color: var(--border);
}

:root[data-theme='dark'] .app-shell tbody tr:hover,
:root[data-theme='dark'] .app-shell .approval-item:hover,
:root[data-theme='dark'] .app-shell .championship-admin-card:hover,
:root[data-theme='dark'] .app-shell .championship-registration-row:hover,
:root[data-theme='dark'] .app-shell .my-task-row:hover {
  border-color: color-mix(in srgb, var(--primary) 44%, var(--border));
  background: color-mix(in srgb, var(--primary) 12%, var(--panel));
}

:root[data-theme='dark'] .app-shell h1,
:root[data-theme='dark'] .app-shell h2,
:root[data-theme='dark'] .app-shell h3,
:root[data-theme='dark'] .app-shell h4,
:root[data-theme='dark'] .app-shell strong,
:root[data-theme='dark'] .app-shell b,
:root[data-theme='dark'] .app-shell td,
:root[data-theme='dark'] .app-shell dd,
:root[data-theme='dark'] .app-shell .metric-card strong,
:root[data-theme='dark'] .app-shell .section-heading h2,
:root[data-theme='dark'] .app-shell .admin-list-text strong,
:root[data-theme='dark'] .app-shell .hub-item-text strong {
  color: var(--text);
}

:root[data-theme='dark'] .app-shell p,
:root[data-theme='dark'] .app-shell span,
:root[data-theme='dark'] .app-shell small,
:root[data-theme='dark'] .app-shell dt,
:root[data-theme='dark'] .app-shell label,
:root[data-theme='dark'] .app-shell li,
:root[data-theme='dark'] .app-shell .metric-card span,
:root[data-theme='dark'] .app-shell .detail-list span,
:root[data-theme='dark'] .app-shell table span,
:root[data-theme='dark'] .app-shell .admin-list-text span,
:root[data-theme='dark'] .app-shell .hub-item-text span,
:root[data-theme='dark'] .app-shell .dashboard-header .eyebrow {
  color: var(--muted);
}

:root[data-theme='dark'] .app-shell .label,
:root[data-theme='dark'] .app-shell .eyebrow,
:root[data-theme='dark'] .app-shell .nav-title,
:root[data-theme='dark'] .app-shell .nav-icon,
:root[data-theme='dark'] .app-shell a:not(.primary-action):not(.secondary-table-action):not(.danger-action) {
  color: var(--accent);
}

:root[data-theme='dark'] .app-shell .nav-section.active-section,
:root[data-theme='dark'] .app-shell .nav-item:hover,
:root[data-theme='dark'] .app-shell .nav-item.active,
:root[data-theme='dark'] .app-shell .employee-tab.active {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--text);
}

:root[data-theme='dark'] .app-shell .nav-item,
:root[data-theme='dark'] .app-shell .nav-item.child {
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
}

:root[data-theme='dark'] .app-shell input,
:root[data-theme='dark'] .app-shell select,
:root[data-theme='dark'] .app-shell textarea {
  border-color: var(--border);
  background: color-mix(in srgb, var(--bg) 72%, #000000);
  color: var(--text);
}

:root[data-theme='dark'] .app-shell input::placeholder,
:root[data-theme='dark'] .app-shell textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
}

:root[data-theme='dark'] .app-shell select option {
  background: var(--panel);
  color: var(--text);
}

:root[data-theme='dark'] .app-shell .secondary-table-action,
:root[data-theme='dark'] .app-shell .secondary-button,
:root[data-theme='dark'] .app-shell .icon-button,
:root[data-theme='dark'] .app-shell .employee-tab,
:root[data-theme='dark'] .app-shell .theme-toggle {
  border-color: var(--border);
  background: color-mix(in srgb, var(--panel-strong) 78%, #000000);
  color: var(--text);
}

:root[data-theme='dark'] .app-shell .theme-toggle {
  min-width: 92px;
  justify-content: center;
  border-color: color-mix(in srgb, var(--primary) 36%, var(--border));
  background: color-mix(in srgb, var(--primary) 18%, var(--panel));
  color: #ffffff;
}

:root[data-theme='dark'] .app-shell .primary-action,
:root[data-theme='dark'] .app-shell .primary-button {
  background: var(--primary);
  color: #ffffff;
}

:root[data-theme='dark'] .app-shell .danger-action {
  border-color: color-mix(in srgb, var(--danger) 42%, var(--border));
  background: color-mix(in srgb, var(--danger) 14%, var(--panel));
  color: color-mix(in srgb, var(--danger) 86%, #ffffff);
}

:root[data-theme='dark'] .app-shell .championship-podium-details article,
:root[data-theme='dark'] .app-shell .championship-third-place,
:root[data-theme='dark'] .app-shell .championship-bracket-podium div,
:root[data-theme='dark'] .app-shell .task-comment-item,
:root[data-theme='dark'] .app-shell .task-history-item {
  border-color: var(--border);
  background: color-mix(in srgb, var(--panel-strong) 62%, #000000);
  color: var(--text);
}

/* Complete public tournament page */
body:has(.tournament-page) {
  min-height: 100vh;
  background: #f4f6fb;
  color: #171827;
}

.tournament-page {
  display: grid;
  gap: 18px;
  width: calc(100% - 28px);
  margin: 0 auto;
  padding: 18px 0 26px;
}

.tournament-topbar {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #dfe4ee;
  border-radius: 14px;
  padding: 18px 20px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(36, 40, 58, 0.07);
}

.tournament-topbar h1 {
  margin: 3px 0 4px;
  color: #151827;
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.tournament-topbar span,
.tournament-row-content dd,
.tournament-file-item small,
.tournament-winner-item small {
  color: #657085;
}

.tournament-kicker,
.tournament-section-header p,
.tournament-featured-heading span,
.tournament-row-content > span,
.tournament-file-item span,
.tournament-winner-item span {
  margin: 0;
  color: #673de6;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tournament-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tournament-nav a,
.tournament-nav button,
.tournament-row-actions a,
.tournament-row-actions button,
.tournament-file-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid #d9dfec;
  border-radius: 8px;
  padding: 9px 12px;
  background: #ffffff;
  color: #252a3d;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.tournament-nav button,
.tournament-row-actions button,
.tournament-file-item a {
  border-color: #673de6;
  background: #673de6;
  color: #ffffff;
}

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

.tournament-summary article,
.tournament-featured,
.tournament-section {
  border: 1px solid #dfe4ee;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(36, 40, 58, 0.06);
}

.tournament-summary article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px;
}

.tournament-summary span {
  color: #657085;
  font-weight: 800;
}

.tournament-summary strong {
  color: #171827;
  font-size: 1.7rem;
  font-weight: 950;
}

.tournament-featured {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  overflow: hidden;
  padding: 12px;
}

.tournament-featured-heading {
  display: grid;
  gap: 5px;
  padding: 6px 8px;
}

.tournament-featured-heading strong {
  color: #171827;
  font-size: 1.05rem;
}

.tournament-strip {
  display: flex;
  gap: 10px;
  overflow: hidden;
  min-width: 0;
  mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent 100%);
}

.tournament-strip-card {
  display: grid;
  grid-template-columns: 76px 170px;
  flex: 0 0 auto;
  overflow: hidden;
  min-height: 76px;
  border: 1px solid #e4e8f1;
  border-radius: 10px;
  background: #fbfcff;
  animation: championshipSlide 30s linear infinite;
}

.tournament-strip-card img {
  width: 76px;
  height: 76px;
  object-fit: cover;
}

.tournament-strip-card div {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 10px;
}

.tournament-strip-card span {
  color: #673de6;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tournament-strip-card strong {
  overflow: hidden;
  color: #1d2133;
  font-size: 0.88rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.tournament-sidebar {
  display: grid;
  gap: 18px;
}

.tournament-sidebar #regulamentos {
  min-height: 330px;
}

.tournament-sidebar #regulamentos .tournament-side-list {
  min-height: 250px;
}

.tournament-section {
  overflow: hidden;
}

.tournament-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf0f6;
  padding: 16px 18px;
  background: #ffffff;
}

.tournament-section-header.compact {
  padding: 14px 16px;
}

.tournament-section-header h2 {
  margin: 4px 0 0;
  color: #171827;
  font-size: 1.35rem;
  line-height: 1.1;
}

.tournament-section-header.compact h2 {
  font-size: 1.05rem;
}

.tournament-status-message {
  margin: 14px 18px 0;
}

.tournament-list,
.tournament-history-list,
.tournament-side-list {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}

.tournament-main-section .tournament-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tournament-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #e1e6ef;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
}

.tournament-main-section .tournament-row {
  grid-template-columns: 1fr;
  align-content: start;
}

.tournament-main-section .tournament-row-media {
  width: 100%;
}

.tournament-main-section .tournament-row-actions {
  grid-template-columns: 1fr;
  width: 100%;
}

.tournament-row-media {
  position: relative;
  overflow: hidden;
  width: 170px;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: #edf0f6;
}

.tournament-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tournament-row-media span {
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(20, 24, 39, 0.82);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
}

.tournament-row-content {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.tournament-row-content h3 {
  margin: 0;
  color: #171827;
  font-size: 1.08rem;
  line-height: 1.2;
}

.tournament-row-content dl {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.tournament-row-content dl div {
  display: grid;
  gap: 3px;
  min-width: 118px;
  border: 1px solid #edf0f6;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fbfcff;
}

.tournament-row-content dt {
  color: #7a8295;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.tournament-row-content dd {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 900;
}

.tournament-row-actions {
  display: grid;
  gap: 8px;
  width: 136px;
}

.tournament-file-item,
.tournament-winner-item {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e1e6ef;
  border-radius: 11px;
  padding: 12px;
  background: #fbfcff;
}

.tournament-file-item div,
.tournament-winner-item div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tournament-file-item strong,
.tournament-winner-item strong {
  overflow: hidden;
  color: #171827;
  font-size: 0.94rem;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.tournament-file-item small,
.tournament-winner-item small {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tournament-file-item a {
  flex: 0 0 auto;
}

.tournament-winner-item img {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
}

.tournament-history-section .tournament-row {
  grid-template-columns: 1fr;
  align-content: start;
}

.tournament-history-section .tournament-row-media {
  width: 100%;
}

.tournament-history-section .tournament-row-content h3 {
  font-size: 1rem;
}

.tournament-history-section .tournament-row-content dl div {
  min-width: 108px;
}

.tournament-history-section .tournament-history-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tournament-history-section .tournament-row-content dl {
  display: grid;
  grid-template-columns: 1fr;
}

.tournament-history-section .tournament-row-content dl div {
  min-width: 0;
}

.tournament-page .empty-state {
  border: 1px dashed #cbd3e2;
  border-radius: 11px;
  padding: 18px;
  background: #fbfcff;
  color: #657085;
  font-weight: 850;
  text-align: center;
}

.tournament-sidebar #regulamentos .empty-state {
  display: grid;
  min-height: 210px;
  place-items: center;
}

.tournament-footer {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) repeat(2, minmax(180px, 0.6fr));
  gap: 28px;
  border: 1px solid #dfe4ee;
  border-radius: 16px;
  padding: 24px;
  background: #111425;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(36, 40, 58, 0.1);
}

.tournament-footer-brand {
  display: grid;
  gap: 10px;
  align-content: start;
}

.tournament-footer-brand img {
  width: 104px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  object-fit: cover;
}

.tournament-footer-brand strong {
  font-size: 1.2rem;
}

.tournament-footer-brand span,
.tournament-footer-column span,
.tournament-footer-column a {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.tournament-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.tournament-socials a {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

.tournament-footer-column {
  display: grid;
  gap: 9px;
  align-content: start;
}

.tournament-footer-column h2 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 1rem;
}

.tournament-footer-column a {
  text-decoration: none;
}

@media (max-width: 980px) {
  .tournament-layout,
  .tournament-featured {
    grid-template-columns: 1fr;
  }

  .tournament-main-section .tournament-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tournament-history-section .tournament-history-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tournament-footer {
    grid-template-columns: 1fr 1fr;
  }

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

  .tournament-row-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

@media (max-width: 720px) {
  .tournament-page {
    width: min(100% - 18px, 1220px);
    padding-top: 9px;
  }

  .tournament-topbar,
  .tournament-section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tournament-nav {
    justify-content: stretch;
    width: 100%;
  }

  .tournament-nav a,
  .tournament-nav button {
    flex: 1 1 130px;
  }

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

  .tournament-row,
  .tournament-history-section .tournament-row {
    grid-template-columns: 1fr;
  }

  .tournament-main-section .tournament-list {
    grid-template-columns: 1fr;
  }

  .tournament-history-section .tournament-history-list,
  .tournament-footer {
    grid-template-columns: 1fr;
  }

  .tournament-row-media,
  .tournament-history-section .tournament-row-media {
    width: 100%;
  }
}

.games-landing .games-primary-action,
.games-landing .games-secondary-action,
.games-landing .games-card-primary,
.games-landing .games-card-secondary,
.games-landing .games-regulation-card a {
  width: auto;
  text-transform: none;
}

/* HUB Games public landing */
body:has(.games-landing) {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 8%, rgba(103, 61, 230, 0.2), transparent 25%),
    radial-gradient(circle at 88% 18%, rgba(35, 210, 183, 0.14), transparent 23%),
    linear-gradient(180deg, #f7f4ff 0%, #fbfcff 46%, #ffffff 100%);
  color: #171827;
}

.games-landing {
  display: grid;
  gap: 24px;
  min-height: 100vh;
  padding: 18px;
}

.games-hero,
.games-panel,
.games-info-band {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.games-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(24px, 4vw, 52px);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(103, 61, 230, 0.16);
  border-radius: 22px;
  padding: clamp(26px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 242, 255, 0.96)),
    #ffffff;
  box-shadow: 0 28px 76px rgba(39, 43, 66, 0.12);
}

.games-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.games-kicker,
.games-section-label {
  margin: 0;
  color: #673de6;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.games-hero-copy h1 {
  max-width: 700px;
  margin: 0;
  color: #151425;
  font-size: clamp(2.45rem, 5.8vw, 5.25rem);
  font-weight: 950;
  line-height: 0.94;
  letter-spacing: 0;
}

.games-hero-copy p:not(.games-kicker) {
  max-width: 540px;
  margin: 0;
  color: #555d72;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.6;
}

.games-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
}

.games-primary-action,
.games-secondary-action,
.games-card-primary,
.games-card-secondary,
.games-regulation-card a {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  padding: 11px 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.games-primary-action,
.games-card-primary,
.games-regulation-card a {
  background: #673de6;
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(103, 61, 230, 0.2);
}

.games-secondary-action,
.games-card-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8dded;
  background: #ffffff;
  color: #34394d;
}

.games-carousel-shell {
  position: relative;
  display: grid;
  align-content: center;
  min-width: 0;
}

.games-carousel-label {
  position: absolute;
  top: 22px;
  left: 18px;
  z-index: 2;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #673de6;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(39, 43, 66, 0.12);
}

.games-carousel {
  display: flex;
  gap: 16px;
  overflow: hidden;
  min-width: 0;
  padding: 58px 0 18px;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.games-carousel-card {
  position: relative;
  flex: 0 0 clamp(230px, 24vw, 320px);
  min-height: 390px;
  overflow: hidden;
  border-radius: 18px;
  background: #111425;
  box-shadow: 0 24px 54px rgba(39, 43, 66, 0.2);
  animation: championshipSlide 30s linear infinite;
}

.games-carousel-card img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  opacity: 0.82;
}

.games-carousel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(10, 12, 24, 0.86) 100%);
}

.games-carousel-card div {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  display: grid;
  gap: 6px;
  color: #ffffff;
}

.games-carousel-card span {
  color: #cfc3ff;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.games-carousel-card strong {
  font-size: 1.15rem;
  line-height: 1.15;
}

.games-panel {
  overflow: hidden;
  border: 1px solid #dfe4ee;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(39, 43, 66, 0.08);
}

.games-section-head {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf0f6;
  padding: 20px 22px;
  background:
    linear-gradient(90deg, rgba(103, 61, 230, 0.08), transparent 52%),
    #ffffff;
}

.games-section-head h2 {
  margin: 5px 0 0;
  color: #191a2b;
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  line-height: 1.1;
}

.games-count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 34px;
  border-radius: 999px;
  background: #f1ecff;
  color: #673de6;
  font-weight: 950;
}

.games-status-message {
  margin: 16px 22px 0;
}

.games-tournament-grid,
.games-history-grid,
.games-regulation-grid,
.games-winner-grid {
  display: grid;
  gap: 16px;
  padding: 20px 22px 22px;
}

.games-tournament-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.games-history-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.games-regulation-grid,
.games-winner-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.games-tournament-card {
  display: grid;
  overflow: hidden;
  border: 1px solid #e0e5ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(39, 43, 66, 0.07);
}

.games-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #edeff6;
}

.games-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.games-finished-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(17, 20, 37, 0.82);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
}

.games-card-body {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.games-card-tag {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  background: #f1ecff;
  color: #673de6;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.games-card-body h3 {
  min-height: 2.35em;
  margin: 0;
  color: #191a2b;
  font-size: 1.08rem;
  line-height: 1.16;
}

.games-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin: 0;
  border: 1px solid #edf0f6;
  border-radius: 10px;
}

.games-card-meta div {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: #fbfcff;
}

.games-card-meta div + div {
  border-left: 1px solid #edf0f6;
}

.games-card-meta dt {
  color: #7a8295;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.games-card-meta dd {
  margin: 0;
  color: #24283a;
  font-size: 0.86rem;
  font-weight: 900;
}

.games-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.games-card-primary,
.games-card-secondary {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 0.84rem;
}

.games-regulation-card,
.games-winner-card {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e0e5ef;
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(39, 43, 66, 0.06);
}

.games-regulation-card div,
.games-winner-card div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.games-regulation-card span,
.games-winner-card span {
  color: #673de6;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.games-regulation-card strong,
.games-winner-card strong {
  color: #191a2b;
  line-height: 1.15;
}

.games-regulation-card small,
.games-winner-card small {
  overflow: hidden;
  color: #6c7486;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.games-regulation-card a {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 14px;
  font-size: 0.82rem;
}

.games-winner-card {
  justify-content: flex-start;
  background:
    linear-gradient(135deg, rgba(103, 61, 230, 0.08), transparent 48%),
    #ffffff;
}

.games-winner-card img {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: cover;
}

.games-info-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 22px;
}

.games-info-band article {
  display: grid;
  gap: 7px;
  border: 1px solid #e0e5ef;
  border-radius: 14px;
  padding: 17px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(39, 43, 66, 0.06);
}

.games-info-band strong {
  color: #191a2b;
}

.games-info-band span {
  color: #5d6679;
  line-height: 1.45;
}

@media (max-width: 920px) {
  .games-landing {
    padding: 10px;
  }

  .games-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .games-carousel-card,
  .games-carousel-card img {
    min-height: 310px;
  }

  .games-info-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .games-hero {
    padding: 22px;
    border-radius: 16px;
  }

  .games-section-head,
  .games-regulation-card,
  .games-winner-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .games-tournament-grid,
  .games-history-grid,
  .games-regulation-grid,
  .games-winner-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .games-card-actions,
  .games-card-meta {
    grid-template-columns: 1fr;
  }

  .games-card-meta div + div {
    border-top: 1px solid #edf0f6;
    border-left: 0;
  }
}

.championship-finished-card {
  opacity: 0.82;
}

.finished-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  background: color-mix(in srgb, var(--muted) 16%, transparent);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.championship-info-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  padding: 0 0 48px;
}

.championship-info-band article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
}

.championship-info-band strong {
  color: var(--accent-cool);
  text-transform: uppercase;
}

.championship-info-band span {
  color: var(--muted);
}

.success-body {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, #39d98a, var(--accent-cool));
  color: #03110b;
  font-size: 3rem;
  font-weight: 950;
}

.success-body h2,
.success-body p {
  margin: 0;
}

.success-body p {
  color: var(--muted);
}

.brand-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 48px;
  background:
    linear-gradient(145deg, rgba(255, 51, 79, 0.9), rgba(8, 9, 13, 0.94) 52%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 32px);
  border-right: 1px solid var(--border);
}

.brand-panel h1,
.dashboard-header h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}

.subtitle {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.1rem;
}

.theme-toggle,
.secondary-button,
.icon-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--text);
  cursor: pointer;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-form,
.status-panel {
  width: min(100%, 420px);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: 0 24px 80px var(--shadow);
}

.login-heading {
  margin-bottom: 22px;
}

.login-heading h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

label,
.label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.required-mark {
  color: var(--accent);
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 14px;
  background: color-mix(in srgb, var(--bg) 88%, var(--panel) 12%);
  color: var(--text);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 14px;
  background: color-mix(in srgb, var(--bg) 88%, var(--panel) 12%);
  color: var(--text);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}

.form-row {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 16px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  font-weight: 700;
  text-decoration: none;
}

.login-footer {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.primary-button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 14px 18px;
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
}

.primary-action {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
}

.danger-action {
  border: 1px solid color-mix(in srgb, var(--danger) 58%, var(--border));
  border-radius: 8px;
  padding: 9px 12px;
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
  cursor: pointer;
  font-weight: 800;
}

.danger-action:hover {
  background: color-mix(in srgb, var(--danger) 22%, transparent);
}

.danger-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.secondary-table-action {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  background: color-mix(in srgb, var(--accent-cool) 10%, transparent);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.secondary-table-action:hover {
  background: color-mix(in srgb, var(--accent-cool) 18%, transparent);
}

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

.event-row-actions .primary-action,
.event-row-actions .danger-action {
  min-width: 112px;
  justify-content: center;
  text-align: center;
}

.action-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-strip button {
  min-width: 180px;
  text-align: center;
  font: inherit;
  font-weight: 800;
}

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

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

.message {
  min-height: 24px;
  margin: 0 0 14px;
  color: var(--muted);
}

.message[data-type='error'] {
  color: var(--danger);
}

.app-shell {
  display: grid;
  grid-template-columns: 286px 1fr;
  min-height: 100vh;
  transition: grid-template-columns 180ms ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 88px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 12%, var(--panel)), var(--panel)),
    var(--panel);
  padding: 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--primary) 50%, transparent) transparent;
  transition: width 180ms ease, padding 180ms ease;
}

.sidebar.collapsed {
  width: 88px;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
  padding-bottom: 18px;
}

.nav-section {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  transition: background 160ms ease;
}

.nav-section.active-section {
  background: color-mix(in srgb, var(--accent-cool) 7%, transparent);
}

.nav-title {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  margin: 0;
  padding: 10px 12px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: left;
}

.nav-title:hover {
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  min-width: 22px;
}

.nav-caret {
  margin-left: auto;
  color: var(--muted);
  transform: rotate(90deg);
  transition: transform 140ms ease;
}

.nav-section.collapsed .nav-caret {
  transform: rotate(0deg);
}

.nav-section.collapsed .nav-item.child {
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
  text-align: left;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 120ms ease;
}

.nav-item-menu-hidden {
  display: none;
}

.nav-item.child {
  padding-left: 32px;
  font-size: 0.93rem;
  min-height: 38px;
}

.logout-nav {
  margin-top: 6px;
  border-color: var(--border);
}

.notice-nav {
  position: relative;
  border-color: var(--border);
}

.notice-bell {
  display: inline-grid;
  place-items: center;
  width: 22px;
  min-width: 22px;
  color: #ffffff;
  filter: grayscale(1) brightness(2);
}

.notice-nav.has-unread .notice-bell {
  color: #ffd447;
  filter: none;
}

.notice-badge {
  margin-left: auto;
  min-width: 22px;
  min-height: 22px;
  border-radius: 999px;
  padding: 2px 6px;
  background: #ffd447;
  color: #211400;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.nav-item:hover,
.nav-item.active {
  border-color: color-mix(in srgb, var(--primary) 72%, var(--border));
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--text);
}

.nav-item:hover {
  transform: translateX(2px);
}

.nav-item.active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar.collapsed .nav-title span:not(.nav-icon),
.sidebar.collapsed .nav-item span:not(.nav-icon):not(.notice-badge) {
  display: none;
}

.sidebar.collapsed .notice-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  margin-left: 0;
}

.sidebar.collapsed .nav-caret {
  display: none;
}

.sidebar.collapsed .nav-item,
.sidebar.collapsed .nav-title {
  justify-content: center;
}

.sidebar.collapsed .nav-item.child {
  display: none;
}

.main-workspace {
  padding: 40px;
  min-width: 0;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

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

.dashboard-header h1 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.view {
  display: grid;
  gap: 18px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 1.6rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
}

.metric-card,
.empty-state,
.detail-list,
.work-panel,
.table-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 96%, transparent);
  box-shadow: 0 18px 70px var(--shadow);
}

.metric-card {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.metric-card span,
.detail-list span,
table span {
  color: var(--muted);
  font-size: 0.86rem;
}

.metric-card strong {
  font-size: 1.4rem;
  color: var(--accent-cool);
}

.main-menu-title {
  display: inline-block;
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--primary) 40%, var(--border));
  padding: 2px 10px;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
}

.main-menu-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(620px, 1fr);
  gap: 18px;
  align-items: stretch;
  width: 100%;
  min-height: calc(100vh - 132px);
  margin: 0 auto;
  padding: 0;
  color: var(--text);
}

.hub-summary-column {
  display: block;
  min-width: 220px;
}

.hub-tree-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 34px 38px;
  min-height: calc(100vh - 132px);
  padding: 34px 38px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background:
    radial-gradient(circle at 18% 0, color-mix(in srgb, var(--primary) 22%, transparent), transparent 30%),
    radial-gradient(circle at 88% 24%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 24%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 16px),
    color-mix(in srgb, var(--panel) 92%, #07030f 8%);
  box-shadow: inset 0 0 70px rgba(255, 51, 79, 0.08), 0 18px 70px var(--shadow);
}

.main-menu-panel {
  display: grid;
  align-content: start;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 18px;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.main-menu-panel > span {
  display: flex;
  align-items: center;
  gap: 12px;
  grid-column: 1 / -1;
  color: var(--text);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.championships-panel {
  grid-column: 1;
}

.events-panel {
  grid-column: 2;
}

.main-menu-panel > span::after {
  content: "";
  flex: 1;
  min-width: 80px;
  margin-left: 2px;
  border-top: 3px dotted color-mix(in srgb, var(--accent) 82%, var(--text));
}

.hub-section-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: color-mix(in srgb, var(--accent) 84%, var(--text));
  font-size: 1.1rem;
  text-shadow: none;
}

.hub-list {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  gap: 18px;
  padding-left: 54px;
  padding-right: 0;
}

.hub-list::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 18px;
  left: 30px;
  width: 3px;
  background: color-mix(in srgb, var(--accent) 76%, var(--primary));
  opacity: 1;
}

.hub-list-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  border: 0;
  border-radius: 0;
  padding: 6px 0;
  background: transparent;
}

.hub-list-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 22px;
  height: 3px;
  background: color-mix(in srgb, var(--accent) 76%, var(--primary));
  transform: translateY(-50%);
}

.hub-list-item::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid color-mix(in srgb, var(--accent) 76%, var(--primary));
  transform: translateY(-50%);
}

.hub-item-text {
  min-width: 0;
}

.hub-list-item strong {
  display: block;
  color: var(--text);
  font-size: clamp(0.92rem, 1.15vw, 1.08rem);
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.hub-list-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.hub-display-button {
  justify-self: end;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--primary) 70%, var(--accent)));
  color: #14080d;
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: none;
  cursor: pointer;
}

.hub-display-button:hover {
  transform: translateY(-1px);
}

.compact-empty {
  width: fit-content;
  border: 0;
  border-radius: 0;
  padding: 8px 0;
  background: transparent;
  color: var(--text);
  font-weight: 800;
}

.profile-ribbon {
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 18px;
  min-height: calc(100vh - 286px);
  padding: 58px 18px 82px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(11, 6, 34, 0.2), rgba(11, 6, 34, 0.2)),
    url("/assets/polvo.png") center / cover no-repeat;
  box-shadow: 0 18px 70px var(--shadow);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
}

.hub-photo,
.employee-photo-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #0f1118;
  color: var(--text);
  font-weight: 900;
}

.hub-photo {
  width: clamp(138px, 12vw, 178px);
  height: clamp(138px, 12vw, 178px);
  margin-top: -12px;
  border: 0;
  font-size: 1.15rem;
  box-shadow: 0 0 0 7px rgba(17, 7, 46, 0.28);
}

.hub-photo img,
.employee-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-ribbon strong,
.profile-ribbon span {
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hub-profile-lines {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.hub-profile-lines strong,
.hub-profile-lines span {
  font-weight: 950;
}

.pending-panel {
  display: none;
}

.hub-time-area {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(0, 3fr);
  gap: 18px 28px;
  padding-top: 24px;
  border-top: 3px dotted color-mix(in srgb, var(--accent) 82%, var(--text));
}

.hub-time-heading {
  display: contents;
}

.hub-time-heading h2 {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  text-transform: uppercase;
}

.hub-time-heading .primary-action {
  grid-column: 2;
  justify-self: start;
  align-self: center;
  min-width: 220px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--primary) 70%, var(--accent)));
  color: #14080d;
  font-weight: 950;
  box-shadow: none;
}

.time-bank-panel,
.today-punches-panel {
  min-height: 92px;
}

.time-bank-panel {
  display: grid;
  align-content: center;
  grid-column: 1;
  width: 100%;
  margin: 0;
  padding: 18px 22px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(135deg, #5a4f8e, color-mix(in srgb, var(--primary) 38%, #5a4f8e));
  color: #ffffff;
  text-align: center;
}

.time-bank-panel strong {
  display: grid;
  gap: 4px;
}

.time-bank-panel p {
  display: none;
}

.today-punches-panel {
  grid-column: 2;
  display: grid;
  justify-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.today-punch-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 18px;
}

.today-punch-card {
  display: grid;
  place-items: center;
  min-height: 92px;
  border-radius: 0;
  background: linear-gradient(135deg, #5a4f8e, color-mix(in srgb, var(--primary) 38%, #5a4f8e));
  color: #ffffff;
  font-weight: 900;
}

.today-punch-card.alt {
  background: linear-gradient(135deg, #5a4f8e, color-mix(in srgb, var(--primary) 38%, #5a4f8e));
}

.today-punch-card span {
  font-size: 1.15rem;
}

.detail-list {
  display: grid;
  width: min(100%, 640px);
  padding: 20px;
  gap: 14px;
}

.work-panel {
  padding: 20px;
}

.time-clock-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.time-clock-panel h2 {
  margin: 4px 0;
  font-size: 2rem;
}

.time-clock-panel p {
  margin: 0;
  color: var(--muted);
}

.time-alert {
  margin-top: 10px !important;
  color: var(--danger) !important;
  font-weight: 900;
}

.positive-hours {
  color: #39d98a !important;
  font-weight: 900;
}

.warning-hours {
  color: #ffd447 !important;
  font-weight: 900;
}

.negative-balance {
  color: var(--danger) !important;
  font-weight: 900;
}

.inconsistent-row {
  background: color-mix(in srgb, #ffd447 8%, transparent);
}

.request-status {
  margin-top: 6px;
  font-size: 0.78rem;
}

.missing-punch-list {
  display: flex;
  flex-wrap: wrap;
  min-height: 42px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: color-mix(in srgb, var(--bg) 72%, var(--panel));
}

.missing-punch-chip {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.employee-photo-field {
  display: flex;
  align-items: center;
  gap: 16px;
}

.employee-photo-preview {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border: 1px solid var(--border);
}

.employee-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.employee-tab {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.employee-tab.active {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--border));
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--text);
}

.employee-tab-panel {
  min-height: 280px;
}

.employee-tab-panel input,
.employee-tab-panel select,
.employee-tab-panel textarea {
  font: inherit;
}

.employee-editor-shell {
  display: grid;
  justify-items: center;
  width: 100%;
}

.employee-editor-form {
  display: grid;
  gap: 22px;
  width: min(100%, 980px);
  padding: 24px;
}

.employee-editor-form .section-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.employee-editor-form .employee-tabs {
  position: sticky;
  top: 92px;
  z-index: 8;
  margin: -4px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.employee-editor-form .employee-tab-panel {
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--surface-muted);
}

.employee-editor-form .modal-actions {
  position: sticky;
  bottom: 0;
  margin: 0 -24px -24px;
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  backdrop-filter: blur(16px);
}

.user-filter-panel {
  justify-self: center;
  width: min(100%, 1060px);
  padding: 12px 14px;
}

.user-filter-grid {
  grid-template-columns: minmax(120px, 160px) minmax(120px, 160px) minmax(120px, 170px) minmax(170px, 220px) auto;
  align-items: end;
  gap: 10px;
}

.user-filter-grid .field {
  gap: 5px;
  margin-bottom: 0;
}

.user-filter-grid label {
  font-size: 0.76rem;
}

.user-filter-grid input,
.user-filter-grid select {
  min-height: 38px;
  padding: 9px 10px;
  font-size: 0.86rem;
}

.user-filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.user-filter-actions button {
  min-width: 82px;
  min-height: 38px;
  padding: 9px 12px;
}

.table-link-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0;
  text-align: left;
}

.table-link-button:hover {
  text-decoration: underline;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
}

.status-success {
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: var(--success);
}

.status-danger {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
}

.status-muted {
  background: color-mix(in srgb, var(--muted) 12%, transparent);
  color: var(--muted);
}

.artist-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.artist-gallery-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.artist-gallery-media {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: color-mix(in srgb, var(--primary) 10%, var(--panel));
  cursor: pointer;
}

.artist-gallery-media img,
.artist-card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.artist-card-placeholder {
  color: var(--primary);
  font-size: 3rem;
  font-weight: 950;
}

.artist-gallery-body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.artist-gallery-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.artist-gallery-title strong {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.2;
}

.artist-gallery-body > span,
.artist-gallery-meta,
.artist-gallery-partners {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.artist-gallery-status,
.artist-gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.artist-gallery-body p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 38px;
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.artist-mini-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 900;
}

.artist-detail-image {
  display: block;
  width: min(100%, 420px);
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.central-alley-board {
  display: grid;
  gap: 14px;
  border: 1px solid #dfe4ee;
  border-radius: 10px;
  padding: 18px;
  background: #ffffff;
}

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

.central-alley-toolbar h2 {
  margin: 0;
  color: #171a25;
  font-size: 1.18rem;
}

.central-alley-actions,
.central-alley-filters,
.central-alley-tabs,
.central-table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.central-alley-filters {
  border-bottom: 1px solid #edf0f6;
  padding-bottom: 12px;
}

.central-alley-filters input {
  flex: 1 1 280px;
}

.central-alley-filters select {
  flex: 0 1 170px;
}

.central-alley-tabs button {
  min-height: 32px;
  border: 1px solid #dfe4ee;
  border-radius: 6px;
  padding: 7px 12px;
  background: #ffffff;
  color: #50576a;
  cursor: pointer;
  font-weight: 850;
}

.central-alley-tabs button.active {
  border-color: #e32121;
  background: #e32121;
  color: #ffffff;
}

.central-alley-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.central-artist-card {
  overflow: hidden;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #ffffff;
}

.central-artist-image {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #f6f8fc;
  cursor: pointer;
}

.central-artist-image img,
.central-artist-image .artist-card-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.central-artist-body {
  display: grid;
  gap: 6px;
  padding: 9px;
}

.central-artist-body strong {
  color: #1f2433;
  font-size: 0.84rem;
}

.central-artist-body > span:not(.status-pill) {
  color: #6f7687;
  font-size: 0.74rem;
}

.central-alley-table-wrap {
  overflow: auto;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
}

.central-alley-gallery[hidden],
.central-alley-table-wrap[hidden] {
  display: none;
}

.central-alley-table-wrap table {
  min-width: 860px;
}

.central-artist-table-name {
  display: flex;
  align-items: center;
  gap: 9px;
}

.central-artist-thumb {
  display: block;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
  background: #f6f8fc;
  flex: 0 0 34px;
}

.central-artist-thumb img,
.central-artist-thumb .artist-card-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  font-size: 1rem;
}

.central-artist-table-name strong,
.central-artist-table-name span {
  display: block;
}

.central-alley-hidden-metrics,
#centralAlleyView > .alley-dropdown {
  display: none;
}

.events-board {
  display: grid;
  gap: 14px;
  border: 1px solid #dfe4ee;
  border-radius: 10px;
  padding: 18px;
  background: #ffffff;
}

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

.events-toolbar h2 {
  margin: 0;
  color: #171a25;
  font-size: 1.18rem;
}

.events-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.events-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.events-summary-grid article {
  display: grid;
  gap: 4px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  padding: 14px;
  background: #f8f9fb;
}

.events-summary-grid span {
  color: #6f7687;
  font-size: 0.76rem;
  font-weight: 800;
}

.events-summary-grid strong {
  color: #171a25;
  font-size: 1.45rem;
}

.events-card-list {
  display: grid;
  gap: 10px;
}

.event-management-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.event-management-date {
  display: grid;
  place-items: center;
  min-height: 64px;
  border-radius: 8px;
  background: #f1f4fa;
}

.event-management-date strong {
  color: #e32121;
  font-size: 1.05rem;
}

.event-management-date span {
  color: #6f7687;
  font-size: 0.74rem;
  font-weight: 850;
}

.event-management-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.event-management-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.event-management-title > strong {
  color: #171a25;
  font-size: 0.98rem;
}

.event-management-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.event-management-meta span {
  color: #6f7687;
  font-size: 0.78rem;
}

.event-detail-metrics .metric-card {
  min-height: 78px;
  background: #ffffff;
}

.event-detail-section {
  border-color: #dfe4ee;
  box-shadow: none;
}

.event-detail-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

@media (max-width: 900px) {
  .events-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .event-management-card {
    grid-template-columns: 1fr;
  }

  .event-management-date {
    place-items: start;
    padding: 10px;
  }

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

/* Remaining internal modules redesign */
.app-shell #registerStaffView,
.app-shell #registerChampionshipView,
.app-shell #todoListView,
.app-shell #assignTasksView,
.app-shell #myTasksView,
.app-shell #timeRegisterView,
.app-shell #timeAdjustmentView,
.app-shell #overtimeJustificationView,
.app-shell #usersView,
.app-shell #employeesView,
.app-shell #adminNoticesView,
.app-shell #formManagerView,
.app-shell .placeholder-view {
  gap: 14px;
}

.app-shell #registerStaffView > .section-heading,
.app-shell #todoListView > .section-heading,
.app-shell #myTasksView > .section-heading,
.app-shell #timeRegisterView > .section-heading,
.app-shell #timeAdjustmentView > .section-heading,
.app-shell #overtimeJustificationView > .section-heading,
.app-shell #usersView > .section-heading,
.app-shell #employeesView > .section-heading,
.app-shell #adminNoticesView > .section-heading,
.app-shell #formManagerView > .section-heading,
.app-shell #registerChampionshipView > .action-strip {
  border: 1px solid #dfe4ee;
  border-radius: 10px;
  padding: 16px;
  background: #ffffff;
}

.app-shell #registerChampionshipView > .action-strip::before {
  content: "Central de Campeonatos";
  margin-right: auto;
  color: #171a25;
  font-size: 1.12rem;
  font-weight: 900;
}

.app-shell #registerStaffView > .metric-grid,
.app-shell #todoListView > .metric-grid {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.app-shell #registerStaffView .metric-card,
.app-shell #todoListView .metric-card {
  min-height: 82px;
  border-radius: 10px;
  background: #ffffff;
}

.app-shell #registerStaffView .work-panel,
.app-shell #registerChampionshipView .work-panel,
.app-shell #timeRegisterView .work-panel,
.app-shell #timeAdjustmentView .work-panel,
.app-shell #overtimeJustificationView .work-panel,
.app-shell #adminNoticesView .table-wrap,
.app-shell #usersView .table-wrap,
.app-shell #employeesView .table-wrap,
.app-shell #formManagerView .work-panel {
  border-radius: 10px;
  background: #ffffff;
}

.app-shell .approval-item {
  grid-template-columns: 52px minmax(0, 1fr) auto;
  border-color: #dfe4ee;
  background: #ffffff;
}

.app-shell .volunteer-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f1f4fa;
  color: #e32121;
}

.app-shell .approval-actions {
  min-width: 0;
}

.app-shell .volunteer-disability-dot {
  display: inline-flex;
  width: 11px;
  height: 11px;
  margin-right: 8px;
  border: 1px solid rgba(13, 18, 32, 0.18);
  border-radius: 999px;
  vertical-align: middle;
}

.app-shell .volunteer-disability-dot.has-disability {
  background: #f7c948;
}

.app-shell .volunteer-disability-dot.no-disability {
  background: #22c55e;
}

.app-shell .championship-center-dropdown {
  overflow: hidden;
  border-color: #dfe4ee;
  border-radius: 10px;
  background: #ffffff;
}

.app-shell .championship-center-dropdown > summary {
  margin: 0;
  border-bottom: 1px solid #edf0f6;
  background: #f8f9fb;
}

.app-shell .championship-admin-card,
.app-shell .championship-approved-group,
.app-shell .championship-registration-row {
  border-color: #dfe4ee;
  background: #ffffff;
}

.app-shell .championship-admin-card > summary {
  grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 0.8fr) minmax(140px, 0.8fr) auto auto;
}

.app-shell .championship-admin-body {
  background: #fbfcff;
}

.app-shell .task-board {
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 0;
}

.app-shell .task-column {
  min-height: 440px;
  border-color: #dfe4ee;
  border-radius: 10px;
  background: #f8f9fb;
}

.app-shell .task-column-heading {
  border-bottom: 1px solid #dfe4ee;
  padding-bottom: 8px;
}

.app-shell .task-column-heading strong {
  color: #1f2433;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.app-shell .task-column-heading span {
  background: #ede8ff;
  color: #5025d1;
}

.app-shell .task-dropzone {
  display: grid;
  align-content: start;
  gap: 10px;
}

.app-shell .task-card {
  border-color: #dfe4ee;
  border-radius: 8px;
  background: #ffffff;
}

.app-shell .task-assign-shell {
  display: grid;
  justify-items: center;
}

.app-shell .task-assign-form {
  width: min(100%, 980px);
  border-color: #dfe4ee;
  border-radius: 10px;
  box-shadow: none;
}

.app-shell .my-tasks-list {
  border: 1px solid #dfe4ee;
  border-radius: 10px;
  padding: 10px;
  background: #ffffff;
}

.app-shell .my-task-header {
  padding: 8px 12px;
  color: #6f7687;
}

.app-shell .my-task-row {
  border-color: #edf0f6;
  background: #ffffff;
}

.app-shell .my-task-summary {
  padding: 12px;
}

.app-shell .my-task-detail {
  background: #fbfcff;
}

.app-shell .my-task-pagination {
  border: 1px solid #dfe4ee;
  border-radius: 10px;
  padding: 12px;
  background: #ffffff;
}

.app-shell .time-clock-panel {
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(227, 33, 33, 0.06), transparent 38%),
    #ffffff;
}

.app-shell .time-clock-panel h2 {
  color: #171a25;
  font-size: 1.45rem;
}

.app-shell .time-clock-panel .primary-action {
  min-width: 150px;
  background: #e32121;
}

.app-shell #overtimeForm {
  max-width: 860px;
}

.app-shell .form-manager-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.app-shell .form-manager-card {
  border-color: #dfe4ee;
  border-radius: 10px;
  background: #ffffff;
}

.app-shell .form-manager-access {
  border-color: #dfe4ee;
  background: #f8f9fb;
}

.app-shell .form-manager-access a {
  border-color: rgba(227, 33, 33, 0.26);
  color: #e32121;
}

.app-shell .development-state {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px dashed #cfd6e4;
  border-radius: 10px;
  background: #ffffff;
  color: #6f7687;
  font-weight: 850;
  text-align: center;
}

@media (max-width: 1100px) {
  .app-shell .task-board {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell #registerStaffView > .metric-grid,
  .app-shell #todoListView > .metric-grid,
  .app-shell .task-board {
    grid-template-columns: 1fr;
  }

  .app-shell .approval-item,
  .app-shell .championship-admin-card > summary,
  .app-shell .championship-registration-row,
  .app-shell .my-task-header,
  .app-shell .my-task-summary {
    grid-template-columns: 1fr;
  }
}

.admin-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #dfe4ee;
  padding: 0 4px;
}

.admin-tabs button {
  min-height: 38px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 14px;
  background: transparent;
  color: #5f667a;
  cursor: pointer;
  font-weight: 850;
}

.admin-tabs button.active {
  border-bottom-color: #e32121;
  color: #171a25;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 0.9fr;
  gap: 14px;
}

.admin-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 190px;
  border: 1px solid #dfe4ee;
  border-radius: 10px;
  padding: 16px;
  background: #ffffff;
}

.admin-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-card-heading h2 {
  margin: 0;
  color: #1f2433;
  font-size: 1rem;
}

.admin-card-heading a {
  color: #173b73;
  font-size: 0.76rem;
  font-weight: 850;
  text-decoration: none;
}

.admin-card-indicators,
.admin-card-forms {
  grid-column: span 1;
}

.admin-card-news,
.admin-card-time {
  grid-column: span 1;
}

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

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

.admin-indicator-grid span {
  color: #6f7687;
  font-size: 0.72rem;
}

.admin-indicator-grid strong {
  color: #171a25;
  font-size: 1.35rem;
}

.admin-indicator-grid small {
  color: #0f9f6e;
  font-size: 0.72rem;
  font-weight: 850;
}

.admin-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 92px;
  border-bottom: 1px solid #dfe4ee;
  padding: 12px 8px 0;
}

.admin-chart span {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #4e7bff, #2ec784);
}

.admin-status-list,
.admin-form-status-list,
.admin-compact-list {
  display: grid;
  gap: 10px;
}

.admin-status-list div,
.admin-form-status-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #edf0f6;
  padding-bottom: 9px;
}

.admin-status-list span,
.admin-form-status-list strong {
  color: #252b3a;
  font-size: 0.82rem;
}

.admin-status-list strong,
.admin-form-status-list span {
  color: #0f9f6e;
  font-size: 0.74rem;
  font-weight: 900;
}

.admin-form-status-list small {
  grid-column: 2;
  color: #6f7687;
  font-size: 0.72rem;
}

.admin-list-item,
.admin-news-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf0f6;
  padding-bottom: 10px;
}

.admin-list-avatar,
.admin-news-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 50%;
  background: #f1f4fa;
  color: #e32121;
  font-weight: 950;
}

.admin-list-item .table-game-image {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-list-text {
  min-width: 0;
}

.admin-list-text strong,
.admin-news-item strong {
  display: block;
  overflow: hidden;
  color: #1f2433;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-text span,
.admin-news-item span {
  display: block;
  overflow: hidden;
  color: #6f7687;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-actions {
  display: flex;
  gap: 6px;
}

.admin-list-actions .primary-action,
.admin-list-actions .danger-action,
.admin-news-item .secondary-table-action {
  min-height: 28px;
  padding: 6px 8px;
  font-size: 0.72rem;
}

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

.admin-team-person {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.admin-team-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background: #f1f4fa;
  color: #e32121;
  font-weight: 950;
}

.admin-team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-team-person strong,
.admin-team-person span {
  display: block;
}

.admin-team-person strong {
  color: #1f2433;
  font-size: 0.82rem;
}

.admin-team-person span {
  color: #6f7687;
  font-size: 0.72rem;
}

.user-dashboard-hero {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 2px;
}

.user-dashboard-hero h2 {
  margin: 0;
  color: #171a25;
  font-size: 1.65rem;
}

.user-dashboard-hero > div > span {
  color: #6f7687;
  font-size: 0.86rem;
}

.user-dashboard-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-dashboard-stats article {
  display: grid;
  min-width: 110px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  padding: 10px 14px;
  background: #ffffff;
}

.user-dashboard-stats strong {
  color: #171a25;
  font-size: 1.12rem;
}

.user-dashboard-stats span {
  color: #6f7687;
  font-size: 0.72rem;
}

.app-shell .main-menu-grid {
  grid-template-columns: 1fr;
  gap: 14px;
  min-height: 0;
}

.app-shell .hub-summary-column {
  display: none;
}

.app-shell .hub-tree-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 14px;
  border: 0;
  padding: 0;
  background: transparent;
}

.app-shell .main-menu-panel,
.app-shell .hub-time-area {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  border: 1px solid #dfe4ee;
  border-radius: 10px;
  padding: 16px;
  background: #ffffff;
}

.app-shell .championships-panel {
  grid-column: 1;
}

.app-shell .events-panel {
  grid-column: 2;
}

.app-shell .pending-panel {
  display: grid;
  grid-column: 1;
}

.app-shell .hub-time-area {
  grid-column: 2;
  grid-row: span 2;
  align-content: start;
}

.app-shell .main-menu-panel > span {
  display: block;
  color: #1f2433;
  font-size: 1rem;
  font-weight: 900;
  text-transform: none;
}

.app-shell .main-menu-panel > span::after,
.app-shell .hub-list::before,
.app-shell .hub-list-item::before,
.app-shell .hub-list-item::after {
  display: none;
}

.app-shell .hub-list {
  grid-column: auto;
  gap: 10px;
  padding: 0;
}

.app-shell .hub-list-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 78px;
  border: 1px solid #edf0f6;
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
}

.hub-card-cover {
  display: grid;
  place-items: center;
  width: 96px;
  height: 62px;
  overflow: hidden;
  border-radius: 6px;
  background: #f1f4fa;
  color: #e32121;
  font-weight: 950;
}

.hub-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-alert-icon,
.hub-task-status {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff1f1;
  color: #e32121;
  font-weight: 950;
}

.hub-task-status {
  width: 10px;
  height: 10px;
  background: #e32121;
}

.hub-task-status.done {
  background: #18a66a;
}

.hub-task-status.pending {
  background: #f5a524;
}

.app-shell .events-panel .hub-list-item,
.app-shell .pending-panel .hub-list-item {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  min-height: 56px;
}

.app-shell .hub-item-text strong {
  color: #1f2433;
  font-size: 0.88rem;
  text-transform: none;
}

.app-shell .hub-item-text span {
  color: #6f7687;
  font-size: 0.76rem;
}

.app-shell .hub-display-button {
  align-self: center;
  min-height: 30px;
  border-radius: 6px;
  padding: 7px 10px;
  background: #ffffff;
  color: #173b73;
  font-size: 0.74rem;
  box-shadow: none;
}

.app-shell .hub-time-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-shell .hub-time-heading h2 {
  margin: 0;
  color: #1f2433;
  font-size: 1rem;
  text-transform: none;
}

.app-shell .hub-time-heading .primary-action {
  min-width: 120px;
  background: #e32121;
}

.app-shell .time-bank-panel {
  border-radius: 8px;
  background: #ffffff;
  color: #1f2433;
  text-align: left;
}

.app-shell .time-bank-panel strong {
  display: flex;
  justify-content: space-between;
}

.app-shell .time-bank-panel strong span {
  color: #173b73;
  font-size: 1.25rem;
}

.app-shell .today-punches-panel {
  grid-column: auto;
}

.app-shell .today-punch-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.app-shell .today-punch-card,
.app-shell .today-punch-card.alt {
  min-height: 72px;
  border: 1px solid #edf0f6;
  border-radius: 8px;
  background: #f8f9fb;
  color: #1f2433;
}

.app-shell .hub-photo {
  width: 54px;
  height: 54px;
  border: 0;
  box-shadow: 0 0 0 1px #dfe4ee;
}

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

@media (max-width: 760px) {
  .admin-tabs {
    overflow-x: auto;
  }

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

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

  .admin-list-item,
  .admin-news-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .admin-list-actions,
  .admin-news-item .secondary-table-action {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .user-dashboard-hero,
  .user-dashboard-stats {
    align-items: stretch;
    flex-direction: column;
  }

  .app-shell .hub-tree-panel {
    grid-template-columns: 1fr;
  }

  .app-shell .championships-panel,
  .app-shell .events-panel,
  .app-shell .pending-panel,
  .app-shell .hub-time-area {
    grid-column: 1;
  }

  .app-shell .hub-list-item,
  .app-shell .events-panel .hub-list-item,
  .app-shell .pending-panel .hub-list-item {
    grid-template-columns: 1fr;
  }

  .hub-card-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 8;
  }
}

.approvals-panel {
  width: 100%;
}

.alley-dropdown {
  overflow: hidden;
}

.alley-dropdown + .alley-dropdown {
  margin-top: 14px;
}

.alley-dropdown > summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  margin: -22px -22px 16px;
  padding: 18px 52px 18px 22px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel-strong) 58%, transparent);
}

.alley-dropdown > summary::-webkit-details-marker {
  display: none;
}

.alley-dropdown > summary::after {
  content: "⌄";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  color: var(--accent-cool);
  font-size: 1.15rem;
  font-weight: 900;
  transition: transform 0.18s ease;
}

.alley-dropdown[open] > summary::after {
  transform: translateY(-50%);
}

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

.compact-heading h2 {
  font-size: 1.2rem;
}

.event-detail-metrics {
  margin-bottom: 16px;
}

.event-detail-section {
  overflow: hidden;
}

.event-detail-section + .event-detail-section {
  margin-top: 16px;
}

.event-detail-section summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  margin: -22px -22px 16px;
  padding: 18px 52px 18px 22px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel-strong) 58%, transparent);
}

.event-detail-section summary::-webkit-details-marker {
  display: none;
}

.event-detail-section summary::after {
  content: "⌄";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  color: var(--accent-cool);
  font-size: 1.15rem;
  font-weight: 900;
  transition: transform 0.18s ease;
}

.event-detail-section[open] summary::after {
  transform: translateY(-50%);
}

.event-detail-section summary h2 {
  font-size: 1.15rem;
}

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

.artist-type-section {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: color-mix(in srgb, var(--bg) 38%, transparent);
}

.artist-type-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 0 2px 8px;
  border-bottom: 1px solid var(--border);
}

.artist-type-heading::-webkit-details-marker {
  display: none;
}

.artist-type-section:not([open]) .artist-type-heading {
  border-bottom: 0;
  padding-bottom: 0;
}

.artist-type-heading span {
  color: var(--accent-cool);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.artist-type-heading strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-cool) 16%, transparent);
  color: var(--text);
  font-size: 0.76rem;
}

.approval-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.volunteer-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 22%, transparent);
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 900;
}

.approval-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 190px;
}

.approval-actions .primary-action,
.approval-actions .danger-action {
  min-height: 42px;
  padding: 10px 12px;
}

.approval-item strong,
.approval-item span {
  display: block;
}

.artist-row-info {
  min-width: 0;
}

.artist-row-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.approval-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.approval-item .attention-mark {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.notices-modal {
  width: min(680px, calc(100vw - 32px));
}

.wide-modal {
  width: min(960px, calc(100vw - 32px));
}

.time-request-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}

.time-request-review-grid h3 {
  margin: 0 0 10px;
  color: var(--accent-cool);
  font-size: 1rem;
}

.review-punch-list {
  display: grid;
  gap: 10px;
}

.review-punch-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: color-mix(in srgb, var(--bg) 70%, var(--panel));
}

.review-punch-card strong,
.review-punch-card span {
  display: block;
}

.review-punch-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.review-punch-card.requested-change {
  border-color: color-mix(in srgb, var(--danger) 72%, var(--border));
  background: color-mix(in srgb, var(--danger) 12%, var(--panel));
}

.review-punch-card.requested-change strong {
  color: var(--danger);
}

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

.notice-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: color-mix(in srgb, var(--bg) 72%, var(--panel) 28%);
}

.notice-item.is-unread {
  border-color: color-mix(in srgb, #ffd447 68%, var(--border));
  background: color-mix(in srgb, #ffd447 10%, var(--panel));
}

.notice-item strong,
.notice-item span {
  display: block;
}

.notice-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.notice-item p {
  margin: 0;
  color: var(--text);
  white-space: pre-wrap;
}

.notice-item summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

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

.notice-item summary::after {
  content: "▾";
  color: var(--accent);
  font-weight: 900;
}

.notice-item[open] summary::after {
  transform: rotate(180deg);
}

.inline-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, var(--border));
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 900;
}

.form-manager-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.form-manager-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  background: color-mix(in srgb, var(--bg) 62%, var(--panel));
}

.form-manager-card strong,
.form-manager-card span {
  display: block;
}

.form-manager-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.form-manager-access {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: color-mix(in srgb, var(--panel-strong) 58%, transparent);
}

.form-manager-access span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.form-manager-access a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--accent-cool) 55%, var(--border));
  border-radius: 8px;
  color: var(--accent-cool);
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.form-manager-card button {
  width: 100%;
  margin-top: 4px;
}

.event-detail-list {
  width: 100%;
}

.task-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 14px;
  align-items: start;
  margin-top: 18px;
}

.task-column {
  display: grid;
  gap: 12px;
  min-height: 420px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: 0 18px 70px var(--shadow);
}

.task-column-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
}

.task-column-heading strong {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.task-column-heading span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-cool) 16%, transparent);
  color: var(--accent-cool);
  font-size: 0.78rem;
  font-weight: 900;
}

.task-dropzone {
  display: grid;
  gap: 10px;
  min-height: 330px;
  align-content: start;
  border-radius: 8px;
}

.task-dropzone.drag-over {
  outline: 2px solid color-mix(in srgb, var(--accent-cool) 70%, transparent);
  outline-offset: 4px;
}

.task-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 58%, var(--panel));
  overflow: hidden;
}

.task-card.dragging {
  opacity: 0.55;
}

.task-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  cursor: grab;
  list-style: none;
  padding: 12px;
}

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

.task-card summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.task-criticality {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.criticality-baixa {
  background: color-mix(in srgb, var(--accent-cool) 16%, transparent);
  color: var(--accent-cool);
}

.criticality-media {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}

.criticality-alta,
.criticality-critica {
  background: color-mix(in srgb, var(--danger) 18%, transparent);
  color: var(--danger);
}

.task-card-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.task-card-body div {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.task-card-body span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.task-card-body strong {
  color: var(--text);
  font-size: 0.86rem;
  white-space: pre-wrap;
}

.task-card-body .task-inline-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.task-card-body .task-inline-info span {
  font-size: 0.72rem;
}

.task-card-body .task-inline-info strong {
  white-space: normal;
}

.task-card-full {
  grid-column: 1 / -1;
}

.task-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
}

.task-actions button {
  min-height: 36px;
}

.task-inline-control {
  display: grid !important;
  gap: 8px;
}

.task-inline-control label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.task-inline-control > div {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border: 0;
  padding: 0;
}

.task-inline-control input {
  min-width: 0;
}

.task-attachment-control > div {
  grid-template-columns: auto minmax(0, 1fr);
}

.task-attachment-control span {
  align-self: center;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
  text-transform: none;
}

.task-attachment-gallery,
.task-attachment-list {
  display: grid;
  gap: 10px;
}

.task-attachment-gallery {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.task-image-preview {
  display: grid;
  gap: 6px;
  align-content: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.task-image-preview.single-preview {
  max-width: 240px;
}

.task-image-preview img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.task-image-preview span,
.task-attachment-gallery .inline-download-link,
.task-attachment-row span {
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  font-weight: 800;
}

.task-attachment-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border) !important;
  border-radius: 8px;
  padding: 8px !important;
}

.task-comments,
.task-history {
  display: grid !important;
  gap: 8px;
}

.task-comment-list,
.task-history ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.task-comment-list article,
.task-history li {
  display: grid !important;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
}

.task-history li {
  list-style-position: inside;
}

.task-comment-list p,
.task-history p {
  margin: 0;
  color: var(--text);
  font-size: 0.84rem;
  white-space: pre-wrap;
}

.image-preview-modal {
  width: min(920px, calc(100vw - 28px));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
}

.image-preview-modal::backdrop {
  background: rgb(8 12 20 / 0.72);
}

.image-preview-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 42px 16px 16px;
}

.image-preview-shell .icon-button {
  position: absolute;
  top: 10px;
  right: 10px;
}

.image-preview-shell img {
  max-width: 100%;
  max-height: min(76vh, 760px);
  object-fit: contain;
  border-radius: 8px;
}

.my-tasks-list {
  display: grid;
  gap: 10px;
}

.my-task-header,
.my-task-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(110px, 0.7fr) minmax(110px, 0.7fr) minmax(140px, 1fr) minmax(130px, 0.8fr);
  gap: 12px;
  align-items: center;
}

.my-task-header {
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.my-task-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.my-task-summary {
  cursor: pointer;
  list-style: none;
  padding: 14px;
}

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

.my-task-summary strong,
.my-task-summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.my-task-detail {
  border-top: 1px solid var(--border);
  padding: 14px;
}

.my-task-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.completed-task-section {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 72%, var(--bg));
  overflow: hidden;
}

.completed-task-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 14px;
  font-weight: 900;
  list-style: none;
}

.completed-task-section > summary::-webkit-details-marker {
  display: none;
}

.completed-task-section > summary span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-cool) 16%, transparent);
  color: var(--accent-cool);
  font-size: 0.78rem;
}

.completed-task-list {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 12px;
}

.task-empty {
  min-height: 84px;
  box-shadow: none;
}

.task-assign-shell {
  display: grid;
  min-height: calc(100vh - 180px);
  place-items: center;
}

.autocomplete-menu {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.autocomplete-menu[hidden] {
  display: none;
}

.autocomplete-menu button {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px;
  background: color-mix(in srgb, var(--bg) 56%, transparent);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.autocomplete-menu button:hover {
  border-color: color-mix(in srgb, var(--accent-cool) 45%, var(--border));
  background: color-mix(in srgb, var(--accent-cool) 10%, var(--panel));
}

.autocomplete-menu strong {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.autocomplete-menu span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.task-assign-form {
  width: min(920px, 100%);
}

.hierarchy-list {
  display: grid;
  gap: 18px;
}

.hierarchy-group {
  display: grid;
  gap: 12px;
}

.hierarchy-group h3 {
  margin: 0;
  color: var(--accent);
  font-size: 1rem;
  text-transform: uppercase;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.volunteer-detail-list {
  width: 100%;
  margin-bottom: 18px;
}

.volunteer-detail-list div {
  align-items: flex-start;
}

.volunteer-detail-list strong {
  max-width: 70%;
  text-align: right;
  white-space: pre-wrap;
}

.volunteer-detail-list .artist-detail-separator {
  display: block;
  padding: 0;
  margin: 8px 0 14px;
  border-bottom: 1px solid var(--border);
}

.event-volunteer-groups {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.event-volunteer-group {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
}

.event-volunteer-group summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 900;
}

.event-volunteer-group .approval-list {
  margin-top: 12px;
}

.detail-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.empty-state {
  padding: 32px;
  color: var(--muted);
}

.development-state {
  min-height: min(58vh, 520px);
  display: grid;
  place-items: center;
  padding: 32px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td strong,
td span {
  display: block;
}

tr:last-child td {
  border-bottom: 0;
}

.selected-row {
  background: color-mix(in srgb, var(--primary) 15%, transparent);
}

.table-game-image {
  display: block;
  width: 92px;
  height: 52px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.championship-center-dropdown {
  overflow: hidden;
}

.championship-center-dropdown + .championship-center-dropdown {
  margin-top: 14px;
}

.championship-center-dropdown > summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  margin: -22px -22px 16px;
  padding: 18px 52px 18px 22px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel-strong) 58%, transparent);
}

.championship-center-dropdown > summary::-webkit-details-marker {
  display: none;
}

.championship-center-dropdown > summary::after {
  content: "⌄";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  color: var(--accent-cool);
  font-size: 1.15rem;
  font-weight: 900;
}

.championship-center-dropdown[open] > summary::after {
  transform: translateY(-50%);
}

.championship-list,
.championship-registration-list,
.championship-approved-groups {
  display: grid;
  gap: 10px;
}

.championship-admin-card,
.championship-approved-group {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 42%, transparent);
  overflow: hidden;
}

.championship-admin-card > summary,
.championship-approved-group > summary {
  display: grid;
  grid-template-columns: auto minmax(180px, 1.4fr) minmax(140px, 0.9fr) auto auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 12px;
}

.championship-approved-group > summary {
  grid-template-columns: 1fr;
  font-weight: 900;
}

.championship-admin-card > summary::-webkit-details-marker,
.championship-approved-group > summary::-webkit-details-marker {
  display: none;
}

.championship-admin-card summary div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.championship-admin-card summary > .championship-card-actions {
  display: flex;
}

.championship-admin-card summary span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.championship-admin-body {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 12px;
}

.championship-admin-body div,
.championship-approved-group article,
.championship-registration-row div {
  display: grid;
  gap: 4px;
}

.championship-admin-body span,
.championship-registration-row span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.championship-card-actions {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.championship-card-actions button {
  min-width: 112px;
  min-height: 38px;
}

.championship-card-actions button:disabled,
.championship-card-actions .is-disabled {
  border-color: color-mix(in srgb, var(--muted) 35%, var(--border));
  background: color-mix(in srgb, var(--muted) 16%, var(--panel));
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.78;
}

.championship-podium-details {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 12px;
}

.championship-podium-details h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.championship-podium-details > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.championship-podium-details article {
  display: grid;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: color-mix(in srgb, var(--panel) 82%, var(--accent-cool));
}

.championship-podium-details span {
  color: var(--accent-cool);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.championship-podium-details strong {
  color: var(--text);
  font-size: 0.98rem;
}

.championship-podium-details small {
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.championship-podium-players {
  display: grid;
  gap: 4px;
  margin: 4px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.championship-podium-players li {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.championship-registration-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(100px, 0.7fr) minmax(140px, 1fr) minmax(90px, 0.65fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: color-mix(in srgb, var(--bg) 42%, transparent);
}

.championship-approved-group > div {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding: 12px;
}

.championship-approved-group article {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}

.championship-history-card {
  opacity: 0.84;
}

.historical-teams {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 12px;
}

.historical-teams h4 {
  margin: 0;
  color: var(--accent-cool);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.historical-teams > div {
  display: grid;
  gap: 8px;
}

.historical-teams article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: color-mix(in srgb, var(--bg) 44%, transparent);
}

.historical-teams span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.championship-bracket {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding: 12px;
}

.bracket-modal {
  width: min(98vw, 1680px);
  max-width: none;
  height: min(94vh, 980px);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
}

.bracket-modal .modal-body {
  width: 100%;
  max-width: none;
  height: 100%;
  overflow: auto;
}

.bracket-modal .championship-bracket {
  min-width: 1380px;
  border-top: 0;
}

.championship-bracket-main {
  display: grid;
  grid-template-columns: minmax(980px, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.championship-bracket-side {
  position: sticky;
  right: 0;
  display: grid;
  gap: 14px;
  align-self: start;
  padding-left: 12px;
  background: linear-gradient(90deg, transparent, var(--panel) 18%);
}

.championship-bracket-podium {
  display: grid;
  gap: 10px;
}

.championship-bracket-podium div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.championship-bracket-podium .podium-first {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
}

.championship-bracket-podium span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.championship-bracket-rounds {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  gap: 30px;
  align-items: stretch;
  overflow-x: auto;
  padding: 8px 6px 18px;
}

.championship-round {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-width: 240px;
  position: relative;
}

.championship-round-matches {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 100%;
}

.championship-bracket-rounds h4 {
  margin: 0;
  color: var(--accent-cool);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.championship-match {
  position: relative;
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  background: color-mix(in srgb, var(--bg) 44%, transparent);
  overflow: hidden;
  align-self: center;
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.16);
}

.championship-round:not(:last-child) .championship-match::after {
  content: "";
  position: absolute;
  right: -35px;
  top: 50%;
  width: 34px;
  border-top: 2px solid color-mix(in srgb, var(--accent-cool) 50%, var(--border));
}

.championship-round:not(:first-child) .championship-match::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  width: 18px;
  border-top: 2px solid color-mix(in srgb, var(--accent-cool) 34%, var(--border));
}

.championship-round:nth-child(1) .championship-match {
  margin-block: 6px;
}

.championship-round:nth-child(2) .championship-match {
  margin-block: 34px;
}

.championship-round:nth-child(3) .championship-match {
  margin-block: 82px;
}

.championship-round:nth-child(4) .championship-match {
  margin-block: 150px;
}

.championship-round:nth-child(5) .championship-match {
  margin-block: 270px;
}

.championship-team-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 9px 10px;
  background: transparent;
  color: var(--text);
  cursor: grab;
  text-align: left;
  transition: background 0.16s ease, color 0.16s ease;
}

.championship-team-slot small {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  background: color-mix(in srgb, var(--accent-cool) 16%, transparent);
  color: var(--accent-cool);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.championship-team-slot:hover,
.championship-team-slot.drop-target {
  background: color-mix(in srgb, var(--accent-cool) 15%, transparent);
}

.championship-team-slot.dragging {
  opacity: 0.5;
}

.championship-team-slot.is-eliminated {
  color: var(--muted);
  background: color-mix(in srgb, var(--danger) 8%, transparent);
}

.championship-team-slot.is-eliminated span {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.championship-team-slot.is-winner {
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--text);
}

.bracket-page-readonly .championship-team-slot {
  cursor: default;
}

.bracket-page-readonly .championship-team-slot:hover {
  background: transparent;
}

.championship-third-place {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: color-mix(in srgb, var(--bg) 42%, transparent);
}

.championship-third-place h4 {
  margin: 0;
  color: var(--accent-cool);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.bracket-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.bracket-page-shell {
  display: grid;
  gap: 14px;
  min-height: 100vh;
  padding: 18px;
}

.bracket-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--panel);
}

.bracket-page-header h1 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1;
}

.bracket-page-header span {
  color: var(--muted);
  font-weight: 800;
}

.bracket-page-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  min-height: calc(100vh - 128px);
}

.bracket-stage {
  position: relative;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 84%, var(--bg));
}

.bracket-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.bracket-lines path {
  fill: none;
  stroke: color-mix(in srgb, var(--accent-cool) 70%, var(--border));
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bracket-rounds-page {
  position: relative;
  z-index: 2;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 70px;
  align-items: stretch;
  width: max-content;
  min-height: 100%;
  padding: 24px 44px;
}

.bracket-page-round {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  min-width: 260px;
}

.bracket-page-round h2 {
  margin: 0;
  color: var(--accent-cool);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.bracket-page-round-matches {
  display: grid;
  align-content: space-around;
  gap: 24px;
  min-height: 720px;
}

.bracket-page-match {
  min-height: 86px;
}

.bracket-page-side {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 14px;
}

.bracket-page-side .championship-bracket-podium,
.bracket-page-side .championship-third-place {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
}

.championship-team-slot:last-child {
  border-bottom: 0;
}

.championship-team-slot span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  font-weight: 800;
}

.game-preview {
  width: min(100%, 440px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.modal {
  width: min(720px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
}

.modal::backdrop {
  background: rgba(10, 5, 18, 0.72);
}

.modal-body {
  padding: 24px;
}

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

.modal-header h2 {
  margin: 0;
}

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

.form-grid-full {
  grid-column: 1 / -1;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.status-panel h2 {
  margin: 8px 0;
  font-size: 2rem;
}

.status-panel p {
  color: var(--muted);
}

/* Design system - light operational dashboard */
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  letter-spacing: 0;
}

.login-shell {
  grid-template-columns: minmax(420px, 0.88fr) minmax(420px, 1.12fr);
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 28%),
    linear-gradient(135deg, #fbfbff 0%, var(--bg) 54%, #f1efff 100%);
}

.brand-panel {
  position: relative;
  align-items: stretch;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  margin: 24px 0 24px 24px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: var(--radius-lg);
  padding: 44px;
  background:
    linear-gradient(155deg, #673de6 0%, #7b55ef 48%, #221a5f 100%);
  color: #ffffff;
  box-shadow: var(--shadow-card);
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: auto -20% -34% 18%;
  height: 58%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(-8deg);
}

.brand-panel > * {
  position: relative;
  z-index: 1;
}

.brand-panel .eyebrow,
.public-hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.brand-panel h1 {
  max-width: 640px;
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.brand-panel .subtitle {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
}

.brand-panel .theme-toggle {
  align-self: flex-end;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.login-panel {
  padding: 44px;
}

.login-form,
.status-panel,
.public-form {
  width: min(100%, 460px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

.login-heading h2 {
  color: var(--text);
  font-size: 1.65rem;
}

.eyebrow,
.label {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
}

label {
  color: #4f5366;
  font-size: 0.84rem;
}

input,
select,
textarea {
  min-height: 44px;
  border-color: var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 1px 0 rgba(28, 32, 55, 0.02);
}

:root[data-theme='dark'] input,
:root[data-theme='dark'] select,
:root[data-theme='dark'] textarea {
  background: color-mix(in srgb, var(--panel) 76%, #000000);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}

.primary-button,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: none;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 22%, transparent);
}

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

.danger-action,
.secondary-table-action,
.theme-toggle,
.secondary-button,
.icon-button,
.employee-tab {
  min-height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 800;
}

.danger-action {
  border-color: color-mix(in srgb, var(--danger) 22%, var(--border));
  background: color-mix(in srgb, var(--danger) 8%, var(--panel));
  color: var(--danger);
}

.secondary-table-action,
.secondary-button,
.icon-button,
.theme-toggle,
.employee-tab {
  border-color: var(--border);
  background: var(--panel);
  color: var(--text);
}

.link-button {
  color: var(--primary);
  font-weight: 800;
}

.app-shell {
  grid-template-columns: 272px 1fr;
  background: var(--bg);
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 82px 1fr;
}

.sidebar {
  border-right: 1px solid var(--border);
  background: var(--sidebar-bg);
  padding: 18px 14px;
  box-shadow: 8px 0 24px rgba(28, 32, 55, 0.04);
}

.sidebar-top {
  justify-content: space-between;
  min-height: 50px;
  margin-bottom: 12px;
}

.sidebar-top::before {
  content: "KG";
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 950;
}

.sidebar.collapsed .sidebar-top::before {
  display: none;
}

.sidebar-nav {
  gap: 8px;
}

.nav-section {
  border-radius: var(--radius-md);
}

.nav-section.active-section {
  background: var(--sidebar-active);
}

.nav-title {
  min-height: 36px;
  border-radius: var(--radius-sm);
  color: #7b728d;
  font-size: 0.72rem;
  letter-spacing: 0;
}

:root[data-theme='dark'] .nav-title {
  color: var(--accent);
}

.nav-icon {
  color: var(--primary);
}

.nav-item {
  min-height: 40px;
  border-radius: var(--radius-sm);
  color: #55596b;
  font-size: 0.92rem;
  font-weight: 750;
}

:root[data-theme='dark'] .nav-item {
  color: var(--muted);
}

.nav-item.child {
  padding-left: 34px;
}

.nav-item:hover,
.nav-item.active {
  border-color: transparent;
  background: var(--sidebar-active);
  color: var(--primary);
  transform: none;
}

.nav-item.active {
  box-shadow: inset 3px 0 0 var(--primary);
}

.notice-badge {
  background: var(--primary);
  color: #ffffff;
}

.main-workspace {
  padding: 28px 32px 40px;
}

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 12;
  margin: -28px -32px 28px;
  border-bottom: 1px solid var(--border);
  padding: 22px 32px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(18px);
}

.dashboard-header h1 {
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.dashboard-header .eyebrow {
  margin-bottom: 8px;
}

.view {
  gap: 20px;
}

.section-heading {
  min-height: 48px;
}

.section-heading h2 {
  color: var(--text);
  font-size: 1.35rem;
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.metric-card,
.empty-state,
.detail-list,
.work-panel,
.table-wrap,
.modal,
.public-choice-card,
.artist-type-section,
.approval-item,
.championship-admin-card,
.task-column,
.task-card,
.my-task-row,
.championship-bracket-panel,
.championship-bracket-side,
.bracket-match {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.metric-card {
  padding: 18px;
}

.metric-card strong {
  color: var(--primary);
  font-size: 1.45rem;
}

.work-panel,
.detail-list {
  padding: 20px;
}

.table-wrap {
  overflow: hidden;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th {
  background: var(--surface-muted);
  color: #62667a;
  font-size: 0.76rem;
  letter-spacing: 0;
}

td {
  border-color: var(--border);
}

.modal-backdrop {
  background: rgba(23, 21, 43, 0.42);
  backdrop-filter: blur(6px);
}

.modal {
  border-radius: var(--radius-lg);
}

.modal-header {
  border-bottom-color: var(--border);
}

.hub-tree-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.main-menu-panel > span {
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.main-menu-panel > span::after,
.hub-list::before,
.hub-list-item::before {
  background: color-mix(in srgb, var(--primary) 56%, var(--border));
  border-top-color: color-mix(in srgb, var(--primary) 56%, var(--border));
}

.hub-list-item::after {
  border-left-color: color-mix(in srgb, var(--primary) 56%, var(--border));
}

.hub-section-icon,
.event-detail-section summary::after,
.alley-dropdown > summary::after {
  color: var(--primary);
}

.hub-display-button,
.hub-time-heading .primary-action {
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #ffffff;
}

.profile-ribbon {
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(103, 61, 230, 0.18), rgba(23, 21, 43, 0.62)),
    url("/assets/polvo.png") center / cover no-repeat;
  clip-path: none;
}

.time-bank-panel,
.today-punch-card,
.today-punch-card.alt {
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), #7b55ef);
}

.event-detail-section summary,
.alley-dropdown > summary {
  background: var(--surface-muted);
}

.employee-tab.active {
  border-color: color-mix(in srgb, var(--primary) 46%, var(--border));
  background: var(--sidebar-active);
  color: var(--primary);
}

.public-hero,
.championship-hero {
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 30%),
    linear-gradient(135deg, #ffffff, var(--bg));
  color: var(--text);
}

.public-hero p,
.championship-hero-copy p {
  color: var(--muted);
}

.public-hero h1,
.championship-hero-copy h1 {
  color: var(--text);
}

.public-choice-card:hover {
  border-color: color-mix(in srgb, var(--primary) 42%, var(--border));
  background: var(--panel);
}

@media (max-width: 800px) {
  body {
    overflow-x: hidden;
    background: var(--bg);
  }

  .login-shell,
  .public-shell {
    grid-template-columns: 1fr;
  }

  .championship-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 32px 16px;
  }

  .championship-hero-copy h1 {
    font-size: 2.35rem;
  }

  .championship-hero-action {
    width: 100%;
  }

  .championship-carousel {
    min-height: 240px;
  }

  .championship-card-grid,
  .championship-info-band,
  .public-choice-grid,
  .task-board,
  .championship-admin-card > summary,
  .championship-bracket-main,
  .championship-bracket-podium,
  .championship-admin-body,
  .championship-podium-details > div,
  .championship-registration-row {
    grid-template-columns: 1fr;
  }

  .my-task-header {
    display: none;
  }

  .my-task-summary,
  .task-inline-control > div {
    grid-template-columns: 1fr;
  }

  .task-actions,
  .my-task-pagination {
    justify-content: stretch;
  }

  .task-actions button,
  .my-task-pagination button {
    width: 100%;
  }

  .brand-panel,
  .public-hero {
    min-height: 280px;
    padding: 32px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    margin: 12px;
    border-radius: var(--radius-lg);
  }

  .brand-panel h1,
  .public-hero h1,
  .dashboard-header h1 {
    font-size: 2.1rem;
    line-height: 1;
  }

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

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    width: auto;
    height: auto;
    max-height: 30vh;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 8px 12px 12px;
    background: var(--sidebar-bg);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .sidebar.collapsed {
    width: auto;
    max-height: 60px;
    overflow: hidden;
    padding-bottom: 8px;
  }

  .sidebar-top {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -8px -12px 8px;
    padding: 8px 12px;
    background: var(--sidebar-bg);
  }

  .sidebar-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding-bottom: 8px;
  }

  .nav-section {
    border: 1px solid var(--border);
    padding: 4px;
    background: color-mix(in srgb, var(--panel) 88%, transparent);
  }

  .notice-nav,
  .logout-nav {
    min-width: 0;
  }

  .nav-title {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.74rem;
  }

  .nav-item {
    min-height: 40px;
    padding: 9px 10px;
  }

  .nav-item.child {
    padding-left: 12px;
    font-size: 0.86rem;
  }

  .nav-item:hover {
    transform: none;
  }

  .sidebar.collapsed .nav-title {
    display: none;
  }

  .sidebar.collapsed .nav-title span,
  .sidebar.collapsed .nav-item span {
    display: inline-grid;
  }

  .sidebar.collapsed .nav-caret {
    display: none;
  }

  .sidebar.collapsed .nav-item.child {
    display: none;
  }

  .sidebar.collapsed .sidebar-nav {
    display: none;
  }

  .login-panel,
  .public-form-panel,
  .main-workspace {
    padding: 16px;
  }

  .dashboard-header {
    margin: -16px -16px 18px;
    padding: 16px;
  }

  .login-form,
  .public-form,
  .status-panel {
    padding: 24px;
  }

  .task-column {
    min-height: 0;
  }

  .task-dropzone {
    min-height: 160px;
  }

  .dashboard-header,
  .section-heading,
  .time-clock-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-header {
    gap: 12px;
    margin-bottom: 18px;
  }

  .dashboard-header .eyebrow {
    margin-bottom: 8px;
    font-size: 0.78rem;
  }

  .header-actions,
  .action-strip {
    width: 100%;
  }

  .header-actions .theme-toggle,
  .section-heading > button,
  .action-strip button,
  .primary-action,
  .secondary-table-action,
  .danger-action {
    min-height: 44px;
  }

  .action-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section-heading > button,
  .action-strip button {
    width: 100%;
  }

  .metric-grid,
  .main-menu-grid,
  .time-request-review-grid,
  .employee-tabs,
  .approval-item,
  .user-filter-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .user-filter-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .user-filter-actions button {
    width: 100%;
  }

  .main-menu-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 14px;
  }

  .hub-tree-panel {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 18px;
    padding: 18px 14px;
    border-radius: 8px;
  }

  .championships-panel,
  .events-panel,
  .hub-time-area {
    grid-column: 1;
  }

  .main-menu-panel {
    grid-template-columns: 1fr;
  }

  .hub-list {
    padding-left: 36px;
  }

  .hub-list::before {
    left: 18px;
  }

  .hub-list-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hub-summary-column {
    min-width: 0;
  }

  .profile-ribbon {
    min-height: 260px;
    padding: 28px 16px 46px;
  }

  .hub-display-button {
    justify-self: start;
    width: min(220px, 100%);
  }

  .hub-time-area {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hub-time-heading {
    display: grid;
    gap: 12px;
  }

  .hub-time-heading h2,
  .hub-time-heading .primary-action,
  .time-bank-panel,
  .today-punches-panel {
    grid-column: 1;
  }

  .today-punch-grid {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 10px;
  }

  .table-wrap {
    width: 100%;
    max-width: calc(100vw - 32px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrap::before {
    content: "Deslize para ver mais";
    display: block;
    padding: 10px 12px 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
  }

  table {
    min-width: 720px;
  }

  th,
  td {
    padding: 12px;
  }

  .work-panel,
  .metric-card,
  .empty-state,
  .detail-list {
    box-shadow: var(--shadow-soft);
  }

  .work-panel {
    padding: 16px;
  }

  .modal {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
  }

  .modal-body {
    max-height: calc(100dvh - 18px);
    overflow-y: auto;
    padding: 18px;
  }

  .modal-header,
  .modal-actions,
  .employee-photo-field {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-header .icon-button {
    align-self: flex-end;
  }

  .modal-actions button {
    width: 100%;
  }

  .approval-actions {
    justify-content: stretch;
    min-width: 0;
    width: 100%;
  }

  .approval-actions .primary-action,
  .approval-actions .danger-action {
    flex: 1;
  }

  .volunteer-detail-list div {
    display: grid;
    gap: 6px;
  }

  .volunteer-detail-list strong {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 460px) {
  .main-workspace {
    padding: 12px;
  }

  .dashboard-header {
    margin: -12px -12px 16px;
    padding: 14px 12px;
  }

  .brand-panel h1,
  .public-hero h1,
  .dashboard-header h1 {
    font-size: 1.75rem;
  }

  .section-heading h2 {
    font-size: 1.25rem;
  }

  .metric-card {
    padding: 16px;
  }

  .hub-photo {
    width: 126px;
    height: 126px;
  }

  .today-punch-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    max-width: calc(100vw - 24px);
  }
}

/* Internal system cockpit redesign */
body:has(.app-shell) {
  background: #eef1f7;
}

.app-shell {
  grid-template-columns: 258px minmax(0, 1fr);
  background: #eef1f7;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.app-shell .sidebar {
  border-right: 1px solid #d8ddea;
  background: #ffffff;
  padding: 12px 10px;
  box-shadow: none;
}

.app-shell .sidebar-top {
  min-height: 44px;
  margin-bottom: 8px;
  border-bottom: 1px solid #edf0f6;
  padding: 0 0 10px;
}

.app-shell .sidebar-top::before {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #673de6;
  font-size: 0.82rem;
}

.app-shell .sidebar .icon-button,
.app-shell .theme-toggle,
.app-shell .secondary-button {
  min-height: 34px;
  min-width: 34px;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}

.app-shell .sidebar-nav {
  gap: 5px;
}

.app-shell .nav-section {
  gap: 2px;
  border-radius: 8px;
}

.app-shell .nav-section.active-section {
  background: #f7f5ff;
}

.app-shell .nav-title {
  min-height: 30px;
  border-radius: 6px;
  padding: 7px 8px;
  color: #7b8194;
  font-size: 0.68rem;
  font-weight: 900;
}

.app-shell .nav-item {
  min-height: 34px;
  border-radius: 6px;
  padding: 8px 9px;
  color: #41475c;
  font-size: 0.86rem;
  font-weight: 750;
}

.app-shell .nav-item.child {
  padding-left: 28px;
}

.app-shell .nav-item:hover,
.app-shell .nav-item.active {
  border-color: transparent;
  background: #ede8ff;
  color: #5025d1;
}

.app-shell .nav-item.active {
  box-shadow: inset 3px 0 0 #673de6;
}

.app-shell .nav-icon {
  color: #673de6;
}

.app-shell .main-workspace {
  padding: 20px 22px 28px;
}

.app-shell .dashboard-header {
  position: static;
  margin: -20px -22px 18px;
  border-bottom: 1px solid #d8ddea;
  padding: 14px 22px;
  background: #ffffff;
  backdrop-filter: none;
  box-shadow: none;
}

.app-shell .dashboard-header h1 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
  text-transform: none;
}

.app-shell .dashboard-header .eyebrow {
  margin-bottom: 4px;
  color: #7b8194;
  font-size: 0.68rem;
}

.app-shell .view {
  gap: 14px;
}

.app-shell .section-heading {
  min-height: 38px;
  gap: 12px;
}

.app-shell .section-heading h2 {
  font-size: 1.08rem;
  font-weight: 850;
}

.app-shell .label,
.app-shell .eyebrow {
  color: #673de6;
  font-size: 0.68rem;
  font-weight: 900;
}

.app-shell .metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
}

.app-shell .metric-card,
.app-shell .empty-state,
.app-shell .detail-list,
.app-shell .work-panel,
.app-shell .table-wrap,
.app-shell .approval-item,
.app-shell .artist-type-section,
.app-shell .championship-admin-card,
.app-shell .task-column,
.app-shell .task-card,
.app-shell .my-task-row,
.app-shell .championship-center-dropdown {
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.app-shell .metric-card {
  gap: 4px;
  min-height: 86px;
  padding: 14px;
}

.app-shell .metric-card span,
.app-shell .detail-list span,
.app-shell table span {
  color: #72788c;
  font-size: 0.78rem;
}

.app-shell .metric-card strong {
  color: #262b3d;
  font-size: 1.35rem;
}

.app-shell .work-panel,
.app-shell .detail-list {
  padding: 16px;
}

.app-shell .table-wrap {
  overflow: auto;
}

.app-shell table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.app-shell th {
  border-bottom: 1px solid #dfe4ee;
  background: #f6f8fc;
  color: #5f667a;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.app-shell th,
.app-shell td {
  padding: 10px 12px;
  vertical-align: middle;
}

.app-shell td {
  border-bottom: 1px solid #edf0f6;
  color: #262b3d;
  font-size: 0.86rem;
}

.app-shell tbody tr:hover {
  background: #fafbff;
}

.app-shell .primary-action,
.app-shell .primary-button,
.app-shell .secondary-table-action,
.app-shell .danger-action,
.app-shell .secondary-button {
  min-height: 34px;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.82rem;
  line-height: 1;
  box-shadow: none;
}

.app-shell .primary-action,
.app-shell .primary-button {
  background: #673de6;
}

.app-shell .primary-action:hover,
.app-shell .primary-button:hover {
  background: #5025d1;
}

.app-shell .secondary-table-action,
.app-shell .secondary-button {
  border-color: #d8ddea;
  background: #ffffff;
  color: #34394d;
}

.app-shell .danger-action {
  border-color: #f0c9d1;
  background: #fff7f9;
  color: #c52247;
}

.app-shell input,
.app-shell select,
.app-shell textarea {
  min-height: 38px;
  border-color: #d8ddea;
  border-radius: 6px;
  background: #ffffff;
  padding: 9px 10px;
  color: #262b3d;
  font-size: 0.86rem;
}

.app-shell input:focus,
.app-shell select:focus,
.app-shell textarea:focus {
  border-color: #673de6;
  box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.12);
}

.app-shell .form-grid {
  gap: 12px;
}

.app-shell .field {
  gap: 6px;
  margin-bottom: 12px;
}

.app-shell label {
  color: #5f667a;
  font-size: 0.78rem;
}

.app-shell .user-filter-panel {
  justify-self: stretch;
  width: 100%;
  padding: 12px;
}

.app-shell .user-filter-grid {
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
}

.app-shell .employee-editor-shell {
  justify-items: stretch;
}

.app-shell .employee-editor-form {
  width: 100%;
  max-width: none;
  gap: 16px;
  padding: 16px;
}

.app-shell .employee-editor-form .employee-tabs {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.app-shell .employee-tab {
  min-height: 34px;
  border-radius: 6px;
  padding: 8px 12px;
  background: #ffffff;
  font-size: 0.82rem;
}

.app-shell .employee-tab.active {
  background: #ede8ff;
  color: #5025d1;
}

.app-shell .employee-editor-form .employee-tab-panel {
  border-radius: 8px;
  background: #fbfcff;
  padding: 16px;
}

.app-shell .employee-editor-form .modal-actions {
  margin: 0 -16px -16px;
  padding: 12px 16px;
  background: #ffffff;
}

.app-shell .event-detail-section summary,
.app-shell .alley-dropdown > summary,
.app-shell .championship-center-dropdown > summary {
  margin: -16px -16px 12px;
  padding: 13px 44px 13px 16px;
  background: #f6f8fc;
}

.app-shell .approval-list {
  gap: 8px;
}

.app-shell .approval-item {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px;
}

.app-shell .row-actions,
.app-shell .action-strip,
.app-shell .modal-actions {
  gap: 8px;
}

.app-shell .task-board {
  gap: 10px;
}

.app-shell .task-column {
  padding: 12px;
}

.app-shell .task-column-heading {
  min-height: 34px;
}

.app-shell .task-card,
.app-shell .my-task-row {
  padding: 10px;
}

.app-shell .artist-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.app-shell .artist-gallery-card {
  border-color: #dfe4ee;
  border-radius: 8px;
  box-shadow: none;
}

.app-shell .artist-gallery-body {
  gap: 7px;
  padding: 10px;
}

.app-shell .artist-gallery-title strong {
  font-size: 0.9rem;
}

.app-shell .artist-gallery-body p {
  font-size: 0.78rem;
}

.app-shell .artist-gallery-actions .primary-action,
.app-shell .artist-gallery-actions .secondary-table-action {
  min-height: 30px;
  padding: 7px 10px;
  font-size: 0.76rem;
}

.app-shell .hub-tree-panel {
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: none;
}

.app-shell .main-menu-grid {
  min-height: 0;
}

.app-shell .main-menu-panel > span {
  font-size: 1.05rem;
}

.app-shell .profile-ribbon {
  min-height: 420px;
  border-radius: 8px;
  box-shadow: none;
}

.app-shell .time-bank-panel,
.app-shell .today-punch-card,
.app-shell .today-punch-card.alt {
  border-radius: 8px;
}

.app-shell .modal {
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(28, 32, 55, 0.24);
}

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

  .app-shell .sidebar {
    padding: 8px 10px;
  }

  .app-shell .main-workspace {
    padding: 12px;
  }

  .app-shell .dashboard-header {
    margin: -12px -12px 14px;
    padding: 12px;
  }

  .app-shell .user-filter-grid {
    grid-template-columns: 1fr;
  }

  .app-shell .approval-item {
    grid-template-columns: 1fr;
  }

  .app-shell th,
  .app-shell td {
    padding: 9px 10px;
  }
}

/* Login redesign based on Kodama event system reference */
body:has(.login-shell) {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 8%, rgba(216, 31, 42, 0.08), transparent 24%),
    #f4f1eb;
  color: #141414;
}

.login-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  padding: 0;
  background: transparent;
}

.login-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(4, 11, 22, 0.1) 0%, rgba(4, 11, 22, 0.14) 46%, rgba(4, 11, 22, 0.72) 72%, rgba(4, 11, 22, 0.9) 100%),
    url("/assets/login-hero.png") center / cover no-repeat;
  box-shadow: 0 24px 70px rgba(21, 22, 30, 0.22);
}

.login-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.16), transparent 34%),
    radial-gradient(circle at 88% 50%, rgba(0, 0, 0, 0.42), transparent 28%);
}

.login-brand-lockup,
.login-card-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand-lockup {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 30px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.kodama-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: #e32121;
  color: #07111f;
  font-size: 1.15rem;
  font-weight: 950;
  line-height: 1;
}

.login-brand-lockup strong,
.login-card-brand strong {
  display: block;
  font-size: 1.72rem;
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.login-brand-lockup span,
.login-card-brand span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.36em;
}

.login-panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center end;
  padding: 7.2vh 7.2vw;
}

.login-form {
  width: min(100%, 410px);
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 10px;
  padding: 34px 32px 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #141414;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.login-card-brand {
  justify-content: center;
  margin-bottom: 22px;
  color: #141414;
  text-align: left;
}

.login-card-brand .kodama-mark {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  color: #111111;
}

.login-heading {
  margin-bottom: 22px;
  text-align: center;
}

.login-heading h1 {
  margin: 0;
  color: #1b1b1f;
  font-size: 1rem;
  font-weight: 750;
}

.login-form .field {
  gap: 7px;
  margin-bottom: 14px;
}

.login-form label {
  color: #333845;
  font-size: 0.78rem;
  font-weight: 750;
}

.login-form input {
  min-height: 38px;
  border: 1px solid #d9dce3;
  border-radius: 5px;
  padding: 9px 11px;
  background: #ffffff;
  color: #151515;
  font-size: 0.84rem;
  box-shadow: none;
}

.login-form input:focus {
  border-color: #e32121;
  box-shadow: 0 0 0 3px rgba(227, 33, 33, 0.12);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 38px;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #7a7d86;
  font-size: 0.9rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-field button:hover {
  background: rgba(227, 33, 33, 0.08);
  color: #e32121;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 16px;
}

.remember-field {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #535866;
  font-size: 0.75rem;
  cursor: pointer;
}

.remember-field input {
  width: 14px;
  min-height: 14px;
  height: 14px;
  margin: 0;
  accent-color: #e32121;
}

.login-form .link-button {
  color: #0c2b52;
  font-size: 0.75rem;
  font-weight: 750;
}

.login-form .message {
  min-height: 18px;
  margin: 0 0 10px;
  font-size: 0.78rem;
}

.login-form .primary-button {
  min-height: 42px;
  border-radius: 5px;
  background: #e32121;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: none;
  box-shadow: 0 12px 22px rgba(227, 33, 33, 0.22);
}

.login-form .primary-button:hover {
  background: #c91d1d;
}

.login-footer {
  justify-content: center;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 0;
}

.login-form small {
  display: block;
  margin-top: 18px;
  border-top: 1px solid #eceef2;
  padding-top: 14px;
  color: #777b86;
  font-size: 0.68rem;
  text-align: center;
}

.field-note {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.danger-note {
  color: #e32121;
}

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

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #d9dce3;
  border-radius: 6px;
  padding: 8px 10px;
  background: #ffffff;
  color: #333845;
  font-size: 0.82rem;
}

.checkbox-grid input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  accent-color: #e32121;
}

@media (max-width: 880px) {
  .login-shell {
    padding: 0;
  }

  .login-hero {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .login-brand-lockup {
    top: 18px;
    left: 18px;
  }

  .login-panel {
    place-items: center;
    padding: 96px 18px 28px;
  }

  .login-form {
    width: min(100%, 390px);
    padding: 28px 22px 16px;
  }
}

/* Public forms redesign */
body:has(.public-shell),
body:has(.championship-landing) {
  background:
    radial-gradient(circle at 92% 6%, rgba(227, 33, 33, 0.06), transparent 22%),
    #f4f1eb;
  color: #171717;
}

.public-shell {
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  padding: 18px;
  gap: 18px;
  background: transparent;
}

.public-hero {
  justify-content: space-between;
  min-height: calc(100vh - 36px);
  border: 1px solid #d9d4ca;
  border-radius: 12px;
  padding: 24px 18px;
  background: #ffffff;
  color: #171717;
  box-shadow: 0 18px 45px rgba(21, 22, 30, 0.08);
}

.public-brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #171717;
}

.public-brand-lockup .kodama-mark {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  color: #111111;
}

.public-brand-lockup strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 0.9;
}

.public-brand-lockup span {
  display: block;
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.26em;
}

.public-stepper {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: start;
  gap: 14px 10px;
  margin: 34px 0 auto;
}

.public-stepper span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #d8dce5;
  border-radius: 50%;
  background: #f8f9fb;
  color: #858b9b;
  font-size: 0.72rem;
  font-weight: 900;
}

.public-stepper span.active {
  border-color: #e32121;
  background: #e32121;
  color: #ffffff;
}

.public-stepper strong {
  align-self: center;
  color: #424757;
  font-size: 0.78rem;
  font-weight: 800;
}

.public-hero-info {
  gap: 8px;
  width: 100%;
  margin-top: 24px;
}

.public-hero-info article {
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcff;
}

.public-hero-info strong {
  color: #e32121;
  font-size: 0.78rem;
}

.public-hero-info span {
  color: #686f80;
  font-size: 0.74rem;
}

.public-form-panel {
  align-content: start;
  justify-items: center;
  padding: 0;
}

.public-form {
  width: min(100%, 980px);
  border: 1px solid #d9d4ca;
  border-radius: 12px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.96);
  color: #171717;
  box-shadow: 0 18px 45px rgba(21, 22, 30, 0.08);
}

.public-form-heading {
  margin-bottom: 22px;
  border-bottom: 1px solid #eceef2;
  padding-bottom: 18px;
}

.public-form-heading h1 {
  margin: 4px 0 0;
  color: #171717;
  font-size: 1.35rem;
  line-height: 1.2;
}

.public-form .form-grid {
  gap: 14px;
}

.public-form .field {
  gap: 7px;
  margin-bottom: 4px;
}

.public-form label {
  color: #3f4554;
  font-size: 0.78rem;
  font-weight: 800;
}

.public-form input,
.public-form select,
.public-form textarea {
  min-height: 40px;
  border: 1px solid #d9dce3;
  border-radius: 6px;
  background: #ffffff;
  color: #171717;
  font-size: 0.86rem;
  box-shadow: none;
}

.public-form input:focus,
.public-form select:focus,
.public-form textarea:focus {
  border-color: #e32121;
  box-shadow: 0 0 0 3px rgba(227, 33, 33, 0.12);
}

.public-form .primary-button,
.public-form .primary-action,
.championship-landing .primary-button,
.championship-landing .primary-action,
.championship-registration-modal .primary-action {
  min-height: 40px;
  border-radius: 6px;
  background: #e32121;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: none;
  box-shadow: 0 10px 20px rgba(227, 33, 33, 0.18);
}

.public-form .primary-button:hover,
.public-form .primary-action:hover,
.championship-landing .primary-button:hover,
.championship-landing .primary-action:hover,
.championship-registration-modal .primary-action:hover {
  background: #c91d1d;
}

.field-help {
  margin: 2px 0 0;
  border-left: 3px solid #e32121;
  padding: 8px 10px;
  background: #fff8f8;
  color: #686f80;
  font-size: 0.76rem;
  line-height: 1.45;
}

.public-image-preview {
  width: min(100%, 260px);
  overflow: hidden;
  border: 1px solid #d9dce3;
  border-radius: 8px;
  background: #f8f9fb;
}

.public-image-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.public-choice-panel {
  align-self: center;
}

.public-choice-heading {
  margin-bottom: 6px;
}

.public-choice-heading h2 {
  color: #171717;
  font-size: 1.35rem;
}

.public-choice-card {
  min-height: 168px;
  border-color: #e4e7ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.public-choice-card:hover {
  border-color: #e32121;
  background: #fffafa;
}

.public-choice-card strong {
  color: #171717;
}

.public-choice-card small {
  border-color: rgba(227, 33, 33, 0.24);
  color: #e32121;
}

.championship-landing {
  background: #f4f1eb;
}

.championship-hero {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  min-height: 560px;
  margin: 18px;
  border: 1px solid #d9d4ca;
  border-radius: 12px;
  padding: 34px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(21, 22, 30, 0.08);
}

.championship-hero-copy h1 {
  color: #171717;
  font-size: clamp(2.2rem, 4.8vw, 4.5rem);
  line-height: 0.95;
}

.championship-hero-copy p {
  color: #686f80;
}

.championship-section,
.championship-info-band {
  margin-inline: 18px;
}

.championship-section {
  border: 1px solid #d9d4ca;
  border-radius: 12px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(21, 22, 30, 0.08);
}

.championship-card,
.finished-championships-box,
.championship-info-band article {
  border-color: #e4e7ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.championship-registration-modal .modal-body {
  border-radius: 10px;
}

.championship-registration-modal {
  width: min(96vw, 980px);
}

.championship-registration-modal .modal-body {
  width: min(96vw, 980px);
  max-height: min(88vh, 820px);
  overflow: auto;
  border: 1px solid #d9d4ca;
  padding: 0;
  background: #ffffff;
}

.championship-registration-modal .modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  border-bottom: 1px solid #e7e9ef;
  padding: 18px 22px;
  background: #ffffff;
}

.championship-registration-modal .modal-header h2 {
  margin: 2px 0 0;
  color: #171717;
  font-size: 1.08rem;
  line-height: 1.2;
}

.championship-registration-form-grid {
  display: grid;
  gap: 14px;
  padding: 20px 22px 8px;
}

.championship-registration-group {
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcff;
}

.registration-group-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.registration-group-heading span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e32121;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
}

.registration-group-heading strong {
  color: #171717;
  font-size: 0.94rem;
  font-weight: 900;
}

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

.players-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.player-registration-row {
  display: grid;
  grid-template-columns: 86px minmax(180px, 1.25fr) minmax(140px, 0.75fr) minmax(150px, 0.8fr);
  gap: 10px;
  align-items: end;
  border: 1px solid #e4e7ee;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.player-registration-row > strong {
  align-self: center;
  color: #171717;
  font-size: 0.82rem;
  font-weight: 900;
}

.championship-registration-modal .field {
  gap: 7px;
  margin: 0;
}

.championship-registration-modal label {
  color: #3f4554;
  font-size: 0.76rem;
  font-weight: 850;
}

.championship-registration-modal input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d9dce3;
  border-radius: 6px;
  padding: 10px 11px;
  background: #ffffff;
  color: #171717;
  font-size: 0.86rem;
  box-shadow: none;
}

.championship-registration-modal input:focus {
  border-color: #e32121;
  box-shadow: 0 0 0 3px rgba(227, 33, 33, 0.12);
}

.championship-registration-modal #registrationMessage {
  margin: 0;
  padding: 0 22px;
}

.championship-registration-modal .modal-actions {
  position: sticky;
  bottom: 0;
  margin: 0;
  border-top: 1px solid #e7e9ef;
  padding: 14px 22px;
  background: #ffffff;
}

.championship-registration-modal .modal-actions button {
  min-width: 130px;
}

/* Championship public landing final layout */
body:has(.championship-landing) {
  background:
    radial-gradient(circle at 92% 5%, rgba(103, 61, 230, 0.12), transparent 24%),
    linear-gradient(180deg, #f6f4ff 0%, #f8f9fc 42%, #ffffff 100%);
}

.championship-landing {
  display: grid;
  gap: 18px;
  min-height: 100vh;
  padding: 18px;
  background: transparent;
  color: #202437;
}

.championship-hero {
  width: 100%;
  min-height: min(620px, calc(100vh - 36px));
  margin: 0;
  border: 1px solid #dfe4ee;
  border-radius: 12px;
  padding: clamp(22px, 4vw, 46px);
  background:
    radial-gradient(circle at 18% 18%, rgba(103, 61, 230, 0.16), transparent 30%),
    linear-gradient(135deg, #ffffff, #f7f4ff);
  box-shadow: 0 18px 45px rgba(39, 43, 66, 0.08);
}

.championship-hero-copy {
  align-content: center;
}

.championship-hero-copy .eyebrow {
  color: #673de6;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.championship-hero-copy h1 {
  max-width: 760px;
  color: #171a25;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.championship-hero-copy p {
  max-width: 560px;
  color: #60677a;
  font-size: 1rem;
  line-height: 1.55;
}

.championship-hero-action {
  min-height: 42px;
  border-radius: 6px;
  background: #673de6;
  box-shadow: 0 12px 26px rgba(103, 61, 230, 0.18);
}

.championship-hero-action:hover {
  background: #5025d1;
}

.championship-carousel {
  align-self: center;
  min-height: 320px;
}

.carousel-card {
  flex-basis: clamp(210px, 22vw, 300px);
}

.carousel-card img {
  border-color: #dfe4ee;
  border-radius: 8px;
  box-shadow: 0 16px 35px rgba(39, 43, 66, 0.12);
}

.carousel-card span,
.championship-public-card span {
  color: #673de6;
}

.carousel-card strong {
  color: #202437;
  letter-spacing: 0;
}

.championship-section,
.championship-info-band {
  width: 100%;
  margin: 0;
}

.championship-section {
  border: 1px solid #dfe4ee;
  border-radius: 12px;
  padding: clamp(18px, 3vw, 28px);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(39, 43, 66, 0.06);
}

.championship-section > .section-heading {
  border-bottom: 1px solid #edf0f6;
  padding-bottom: 14px;
}

.championship-section .label,
.finished-championships-box .label {
  color: #673de6;
  font-size: 0.72rem;
  font-weight: 950;
}

.championship-section h2,
.finished-championships-box h2 {
  color: #202437;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.1;
}

.championship-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.championship-public-card {
  border-color: #dfe4ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.championship-public-card img {
  aspect-ratio: 16 / 9;
}

.championship-public-content {
  gap: 12px;
  padding: 16px;
}

.championship-public-content h3 {
  color: #202437;
  font-size: 1.08rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.championship-public-content dl div {
  border-color: #edf0f6;
}

.championship-public-content dt {
  color: #72788c;
}

.championship-public-content dd {
  color: #202437;
}

.finished-championships-box {
  border-color: #dfe4ee;
  border-radius: 8px;
  background: #ffffff;
}

.finished-championships-box > summary,
.championship-box-heading {
  border-bottom: 1px solid #edf0f6;
  background: #f7f8fc;
}

.finished-championships-box > summary > span,
.championship-box-heading > span {
  background: #ede8ff;
  color: #5025d1;
}

.championship-info-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 0 18px;
}

.championship-info-band article {
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(39, 43, 66, 0.04);
}

.championship-info-band strong {
  color: #202437;
  font-size: 0.9rem;
}

.championship-info-band span {
  color: #60677a;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .public-shell {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .public-hero {
    min-height: auto;
  }

  .public-stepper {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 22px 0 0;
  }

  .public-stepper strong {
    display: none;
  }

  .public-stepper span {
    width: 100%;
    border-radius: 999px;
  }

  .public-form {
    padding: 18px;
  }

  .championship-hero {
    grid-template-columns: 1fr;
    margin: 10px;
    padding: 22px;
  }

  .championship-section,
  .championship-info-band {
    margin-inline: 10px;
  }

  .championship-landing {
    padding: 10px;
  }

  .championship-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    margin: 0;
    padding: 22px;
  }

  .championship-carousel {
    min-height: 240px;
  }

  .championship-info-band {
    grid-template-columns: 1fr;
    margin-inline: 0;
  }

  .championship-registration-modal,
  .championship-registration-modal .modal-body {
    width: min(96vw, 620px);
  }

  .championship-registration-modal .modal-header,
  .championship-registration-form-grid,
  .championship-registration-modal .modal-actions {
    padding-inline: 16px;
  }

  .registration-field-grid,
  .players-grid {
    grid-template-columns: 1fr;
  }

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

  .championship-registration-modal .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .championship-registration-modal .modal-actions button {
    width: 100%;
  }
}

/* Figma-inspired public championships page */
body:has(.tournament-page) {
  background:
    radial-gradient(circle at 8% 0%, rgba(103, 61, 230, 0.16), transparent 28%),
    linear-gradient(180deg, #f6f3ff 0%, #f8f9fc 44%, #ffffff 100%);
  color: #171827;
}

.tournament-page {
  width: min(100% - 20px, 1680px);
  gap: 22px;
  padding: 18px 0 34px;
}

.tournament-topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  border-color: rgba(103, 61, 230, 0.14);
  border-radius: 18px;
  padding: 14px 16px 14px 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(39, 43, 66, 0.08);
}

.tournament-brand-block {
  min-width: 220px;
}

.tournament-topbar h1 {
  margin: 2px 0;
  font-size: 1.34rem;
  line-height: 1.05;
}

.tournament-topbar span {
  display: block;
  max-width: 520px;
  font-size: 0.86rem;
}

.tournament-nav {
  gap: 10px;
}

.tournament-nav a,
.tournament-nav button,
.tournament-row-actions a,
.tournament-row-actions button,
.tournament-file-item a {
  min-height: 40px;
  border-radius: 999px;
  padding: 10px 15px;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.tournament-nav a:hover,
.tournament-nav button:hover,
.tournament-row-actions a:hover,
.tournament-row-actions button:hover,
.tournament-file-item a:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(103, 61, 230, 0.14);
}

.tournament-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  gap: 18px;
  min-height: 520px;
}

.tournament-hero-copy,
.tournament-hero-panel,
.tournament-process article,
.tournament-section,
.tournament-footer {
  border: 1px solid rgba(103, 61, 230, 0.12);
  box-shadow: 0 22px 60px rgba(39, 43, 66, 0.08);
}

.tournament-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(28px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 245, 255, 0.96)),
    #ffffff;
}

.tournament-hero-copy h2 {
  max-width: 780px;
  margin: 0;
  color: #151827;
  font-size: clamp(2.7rem, 7vw, 6.8rem);
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: 0;
}

.tournament-hero-copy p:not(.tournament-kicker) {
  max-width: 620px;
  margin: 0;
  color: #5f687b;
  font-size: 1.02rem;
  line-height: 1.65;
}

.tournament-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.tournament-hero-actions a,
.tournament-hero-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid #d9dfec;
  border-radius: 999px;
  padding: 12px 18px;
  background: #ffffff;
  color: #252a3d;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.tournament-hero-actions button {
  border-color: #673de6;
  background: #673de6;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(103, 61, 230, 0.2);
}

.tournament-hero-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: 24px;
  padding: 18px;
  background:
    linear-gradient(160deg, rgba(23, 24, 39, 0.94), rgba(44, 30, 91, 0.92)),
    #171827;
}

.tournament-hero-panel .tournament-featured-heading {
  padding: 4px 4px 14px;
}

.tournament-hero-panel .tournament-featured-heading span {
  color: #c7b8ff;
}

.tournament-hero-panel .tournament-featured-heading strong {
  color: #ffffff;
  font-size: 1.2rem;
}

.tournament-hero-panel .tournament-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 42%);
  gap: 14px;
  overflow: hidden;
  min-height: 100%;
  align-items: stretch;
  mask-image: linear-gradient(90deg, #000 0, #000 88%, transparent 100%);
}

.tournament-hero-panel .tournament-strip-card {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(260px, 1fr) auto;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  animation-duration: 38s;
}

.tournament-hero-panel .tournament-strip-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.tournament-hero-panel .tournament-strip-card div {
  gap: 7px;
  padding: 16px;
}

.tournament-hero-panel .tournament-strip-card span {
  color: #c7b8ff;
}

.tournament-hero-panel .tournament-strip-card strong {
  color: #ffffff;
  font-size: 1.05rem;
  white-space: normal;
}

.tournament-hero-panel .tournament-strip-card small {
  color: rgba(255, 255, 255, 0.66);
  font-weight: 800;
}

.tournament-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tournament-process article {
  display: grid;
  gap: 8px;
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.tournament-process span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ede8ff;
  color: #673de6;
  font-weight: 950;
}

.tournament-process strong {
  color: #171827;
  font-size: 1rem;
}

.tournament-process p {
  margin: 0;
  color: #657085;
  line-height: 1.5;
}

.tournament-featured {
  display: none;
}

.tournament-layout {
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: stretch;
}

.tournament-sidebar {
  grid-template-rows: minmax(260px, 1fr) minmax(260px, 1fr);
  height: 100%;
}

.tournament-section {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
}

.tournament-section-header {
  border-bottom-color: #edf0f6;
  padding: 20px 22px;
  background: transparent;
}

.tournament-section-header h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.tournament-section-header.compact h2 {
  font-size: 1.18rem;
}

.tournament-main-section .tournament-list {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 16px;
  padding: 20px 22px 24px;
}

.tournament-row {
  overflow: hidden;
  border-color: #e1e6ef;
  border-radius: 18px;
  padding: 0;
  background: #ffffff;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.tournament-row:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 61, 230, 0.24);
  box-shadow: 0 20px 42px rgba(39, 43, 66, 0.1);
}

.tournament-main-section .tournament-row-media,
.tournament-history-section .tournament-row-media,
.tournament-row-media {
  width: 100%;
  border-radius: 0;
  aspect-ratio: 16 / 9;
}

.tournament-row-content {
  gap: 13px;
  padding: 16px;
}

.tournament-row-content h3 {
  min-height: 2.36em;
  font-size: 1.12rem;
}

.tournament-row-content dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tournament-history-section .tournament-row-content dl {
  grid-template-columns: 1fr 1fr;
}

.tournament-row-content dl div {
  min-width: 0;
  border-radius: 12px;
  background: #fafbff;
}

.tournament-row-actions,
.tournament-main-section .tournament-row-actions {
  grid-template-columns: 1fr;
  width: 100%;
}

.tournament-row-actions a,
.tournament-row-actions button {
  width: 100%;
}

.tournament-row-actions a {
  background: #ffffff;
}

.tournament-side-list {
  gap: 14px;
  flex: 1;
  align-content: start;
  padding: 16px;
}

.tournament-sidebar .tournament-side-list {
  min-height: 260px;
}

.tournament-sidebar .tournament-section {
  min-height: 340px;
}

.tournament-file-item,
.tournament-winner-item {
  min-height: 92px;
  border-radius: 16px;
  background: #ffffff;
}

.tournament-sidebar #regulamentos,
.tournament-sidebar #regulamentos .tournament-side-list {
  min-height: 340px;
}

.tournament-sidebar #campeoes,
.tournament-sidebar #campeoes .tournament-side-list {
  min-height: 340px;
}

.tournament-sidebar .empty-state {
  display: grid;
  min-height: 100%;
  place-items: center;
}

.tournament-history-carousel {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: stretch;
  padding: 20px 22px 24px;
}

.tournament-history-section .tournament-history-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  padding: 0;
}

.tournament-history-section .tournament-row {
  min-width: 0;
}

.tournament-history-section .tournament-history-list .empty-state {
  grid-column: 1 / -1;
}

.tournament-history-control {
  display: inline-grid;
  place-items: center;
  align-self: stretch;
  min-height: 100%;
  border: 1px solid rgba(103, 61, 230, 0.18);
  border-radius: 16px;
  background: #ffffff;
  color: #673de6;
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.tournament-history-control:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(103, 61, 230, 0.14);
}

.tournament-history-control:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.tournament-footer {
  border-radius: 24px;
}

.championship-registration-modal {
  width: min(96vw, 1120px);
}

.championship-registration-modal .modal-body {
  width: min(96vw, 1120px);
  border: 0;
  border-radius: 22px;
  background: #f8f9fc;
}

.championship-registration-modal .modal-header,
.championship-registration-modal .modal-actions {
  background: rgba(255, 255, 255, 0.96);
}

.championship-registration-form-grid {
  gap: 16px;
  padding: 22px;
}

.championship-registration-group {
  border-color: #e1e6ef;
  border-radius: 18px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(39, 43, 66, 0.05);
}

.registration-group-heading span {
  background: #673de6;
}

.championship-registration-modal input {
  border-radius: 10px;
}

.championship-registration-modal input:focus {
  border-color: #673de6;
  box-shadow: 0 0 0 4px rgba(103, 61, 230, 0.13);
}

@media (max-width: 1100px) {
  .tournament-hero,
  .tournament-layout {
    grid-template-columns: 1fr;
  }

  .tournament-sidebar {
    grid-template-rows: auto;
  }

  .tournament-hero-panel .tournament-strip {
    grid-auto-columns: minmax(220px, 34%);
  }

  .tournament-main-section .tournament-list {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .tournament-history-section .tournament-history-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tournament-page {
    width: min(100% - 14px, 1680px);
    padding-top: 9px;
  }

  .tournament-topbar {
    position: static;
    border-radius: 16px;
  }

  .tournament-hero-copy,
  .tournament-hero-panel,
  .tournament-section,
  .tournament-footer {
    border-radius: 18px;
  }

  .tournament-hero-copy h2 {
    font-size: clamp(2.25rem, 15vw, 4rem);
  }

  .tournament-process,
  .tournament-main-section .tournament-list,
  .tournament-footer {
    grid-template-columns: 1fr;
  }

  .tournament-history-section .tournament-history-list {
    grid-template-columns: 1fr;
  }

  .tournament-history-carousel {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
    padding: 14px;
  }

  .tournament-history-control {
    border-radius: 12px;
    font-size: 1.65rem;
  }

  .tournament-hero-panel .tournament-strip {
    grid-auto-columns: minmax(210px, 72%);
  }

  .tournament-hero-panel .tournament-strip-card {
    grid-template-rows: 210px auto;
  }

  .tournament-hero-panel .tournament-strip-card img {
    min-height: 210px;
  }

  .tournament-row-content h3 {
    min-height: 0;
  }

  .tournament-row-content dl,
  .tournament-history-section .tournament-row-content dl,
  .registration-field-grid,
  .players-grid,
  .player-registration-row {
    grid-template-columns: 1fr;
  }

  .championship-registration-modal,
  .championship-registration-modal .modal-body {
    width: min(96vw, 640px);
  }
}

/* Internal screens final design-system pass */
.app-shell :is(
  #registerStaffView,
  #registerChampionshipView,
  #todoListView,
  #assignTasksView,
  #myTasksView,
  #timeRegisterView,
  #timeAdjustmentView,
  #overtimeJustificationView,
  #usersView,
  #employeesView,
  #employeeEditorView,
  #adminNoticesView,
  #formManagerView,
  .placeholder-view
) {
  align-content: start;
  gap: 14px;
}

.app-shell :is(
  #registerStaffView,
  #registerChampionshipView,
  #todoListView,
  #myTasksView,
  #timeRegisterView,
  #timeAdjustmentView,
  #overtimeJustificationView,
  #usersView,
  #employeesView,
  #adminNoticesView,
  #formManagerView
) > .section-heading,
.app-shell #registerChampionshipView > .action-strip {
  position: relative;
  overflow: hidden;
  min-height: 64px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  padding: 14px 16px;
  background:
    linear-gradient(135deg, rgba(103, 61, 230, 0.1), transparent 42%),
    #ffffff;
  box-shadow: 0 10px 24px rgba(39, 43, 66, 0.04);
}

.app-shell :is(
  #registerStaffView,
  #registerChampionshipView,
  #todoListView,
  #myTasksView,
  #timeRegisterView,
  #timeAdjustmentView,
  #overtimeJustificationView,
  #usersView,
  #employeesView,
  #adminNoticesView,
  #formManagerView
) > .section-heading::before,
.app-shell #registerChampionshipView > .action-strip::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #673de6;
}

.app-shell #registerChampionshipView > .action-strip {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.app-shell #registerChampionshipView > .action-strip::before {
  content: "Central de Campeonatos";
  margin-right: auto;
  padding-left: 8px;
  color: #1f2433;
  font-size: 1.08rem;
  font-weight: 900;
}

.app-shell #registerChampionshipView > .action-strip .danger-action {
  order: 3;
}

.app-shell :is(#registerStaffView, #todoListView) > .metric-grid,
.app-shell .event-detail-metrics {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.app-shell .metric-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #ffffff;
}

.app-shell .metric-card::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #673de6;
  box-shadow: 0 0 0 5px rgba(103, 61, 230, 0.1);
}

.app-shell :is(.work-panel, .table-wrap, .my-tasks-list, .my-task-pagination) {
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.app-shell .work-panel > .compact-heading,
.app-shell .championship-center-dropdown > summary,
.app-shell .alley-dropdown > summary,
.app-shell .event-detail-section > summary {
  margin: -16px -16px 14px;
  border-bottom: 1px solid #dfe4ee;
  border-radius: 8px 8px 0 0;
  padding: 13px 44px 13px 16px;
  background: #f7f8fc;
}

.app-shell .compact-heading h2,
.app-shell .championship-center-dropdown h2 {
  font-size: 0.98rem;
}

.app-shell .approval-list {
  display: grid;
  gap: 9px;
}

.app-shell .approval-item {
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.app-shell .approval-item:hover,
.app-shell .championship-admin-card:hover,
.app-shell .championship-registration-row:hover,
.app-shell .my-task-row:hover {
  border-color: rgba(103, 61, 230, 0.34);
  background: #fbfaff;
}

.app-shell .approval-actions,
.app-shell .row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.app-shell .championship-list,
.app-shell .championship-registration-list,
.app-shell .championship-approved-groups,
.app-shell .event-volunteer-groups {
  display: grid;
  gap: 10px;
}

.app-shell .championship-center-dropdown {
  padding: 16px;
}

.app-shell .championship-admin-card > summary {
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px;
}

.app-shell .championship-admin-body {
  border-top: 1px solid #edf0f6;
  padding: 14px;
  background: #fbfcff;
}

.app-shell .championship-registration-row {
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  padding: 11px 12px;
  background: #ffffff;
}

.app-shell .championship-approved-group,
.app-shell .event-volunteer-group {
  overflow: hidden;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #ffffff;
}

.app-shell .championship-approved-group summary,
.app-shell .event-volunteer-group summary {
  padding: 12px 14px;
  background: #f7f8fc;
  color: #1f2433;
  font-weight: 850;
}

.app-shell .task-board {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 10px;
  padding: 0;
}

.app-shell .task-column {
  min-height: 480px;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  padding: 12px;
  background: #f7f8fc;
}

.app-shell .task-column-heading {
  min-height: 34px;
  margin-bottom: 10px;
  border-bottom: 1px solid #dfe4ee;
  padding-bottom: 10px;
}

.app-shell .task-column-heading strong {
  color: #202437;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.app-shell .task-column-heading span {
  min-width: 26px;
  border-radius: 999px;
  padding: 4px 8px;
  background: #ede8ff;
  color: #5025d1;
  font-size: 0.75rem;
  font-weight: 900;
}

.app-shell .task-card {
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.app-shell .task-card[draggable="true"] {
  cursor: grab;
}

.app-shell .task-assign-shell {
  justify-items: center;
  padding: 8px 0;
}

.app-shell .task-assign-form {
  width: min(100%, 980px);
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(39, 43, 66, 0.06);
}

.app-shell .task-assign-form .compact-heading {
  margin: -18px -18px 16px;
  border-bottom: 1px solid #dfe4ee;
  padding: 14px 18px;
  background: #f7f8fc;
}

.app-shell .my-tasks-list {
  padding: 10px;
}

.app-shell .my-task-header,
.app-shell .my-task-summary {
  grid-template-columns: minmax(160px, 1.2fr) 120px 120px minmax(150px, 0.9fr) 120px;
  gap: 10px;
  align-items: center;
}

.app-shell .my-task-header {
  padding: 8px 12px;
  color: #72788c;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.app-shell .my-task-row {
  overflow: hidden;
  border: 1px solid #edf0f6;
  border-radius: 8px;
  background: #ffffff;
}

.app-shell .my-task-summary {
  padding: 12px;
}

.app-shell .my-task-detail {
  border-top: 1px solid #edf0f6;
  padding: 14px;
  background: #fbfcff;
}

.app-shell .my-task-pagination {
  justify-content: center;
  padding: 12px;
}

.app-shell .time-clock-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 132px;
  background:
    linear-gradient(135deg, rgba(103, 61, 230, 0.12), transparent 44%),
    #ffffff;
}

.app-shell .time-clock-panel h2 {
  color: #202437;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.app-shell .time-clock-panel p {
  max-width: 620px;
  color: #6f7687;
}

.app-shell #overtimeForm {
  max-width: 900px;
}

.app-shell .user-filter-panel {
  justify-self: center;
  width: min(100%, 1120px);
}

.app-shell .user-filter-grid {
  align-items: end;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
}

.app-shell .user-filter-grid .field {
  margin-bottom: 0;
}

.app-shell .user-filter-actions {
  display: flex;
  align-self: end;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-height: 38px;
}

.app-shell .user-filter-actions button {
  min-height: 38px;
}

.app-shell #usersView > .table-wrap,
.app-shell #employeesView > .table-wrap,
.app-shell #adminNoticesView > .table-wrap,
.app-shell #timeRegisterView .table-wrap,
.app-shell #timeAdjustmentView .table-wrap {
  padding: 0;
}

.app-shell :is(#usersView, #employeesView, #adminNoticesView) tbody tr {
  cursor: default;
}

.app-shell #employeesTable tr {
  cursor: pointer;
}

.app-shell .employee-editor-shell {
  display: grid;
}

.app-shell .employee-editor-form {
  width: 100%;
  max-width: none;
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.app-shell .employee-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
}

.app-shell .employee-tab {
  min-height: 36px;
  border: 1px solid #dfe4ee;
  border-radius: 6px;
  padding: 8px 12px;
  background: #ffffff;
  color: #52596d;
  font-size: 0.82rem;
  font-weight: 850;
}

.app-shell .employee-tab.active {
  border-color: rgba(103, 61, 230, 0.26);
  background: #ede8ff;
  color: #5025d1;
}

.app-shell .employee-tab-panel {
  border: 1px solid #edf0f6;
  border-radius: 8px;
  padding: 16px;
  background: #fbfcff;
}

.app-shell .form-manager-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.app-shell .form-manager-card {
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.app-shell .form-manager-card strong {
  color: #202437;
}

.app-shell .form-manager-access {
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  padding: 9px 10px;
  background: #f7f8fc;
}

.app-shell .form-manager-access a {
  border: 1px solid rgba(103, 61, 230, 0.24);
  border-radius: 6px;
  padding: 6px 9px;
  background: #ffffff;
  color: #5025d1;
  font-weight: 850;
  text-decoration: none;
}

.app-shell .modal .modal-body,
.app-shell .bracket-modal .modal-body {
  border: 1px solid #dfe4ee;
  border-radius: 8px;
  background: #ffffff;
}

.app-shell .modal-header {
  margin: -24px -24px 16px;
  border-bottom: 1px solid #dfe4ee;
  padding: 16px 24px;
  background: #f7f8fc;
}

.app-shell .modal-actions {
  border-top: 1px solid #edf0f6;
  padding-top: 12px;
}

.app-shell .development-state,
.app-shell .placeholder-view:empty::before {
  display: grid;
  place-items: center;
  min-height: 340px;
  border: 1px dashed #cbd3e2;
  border-radius: 8px;
  background: #ffffff;
  color: #6f7687;
  font-weight: 850;
  text-align: center;
}

.app-shell .placeholder-view:empty::before {
  content: "Em desenvolvimento, estamos pensando o melhor para você ;)";
}

@media (max-width: 1180px) {
  .app-shell .task-board {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .app-shell .my-task-header,
  .app-shell .my-task-summary {
    grid-template-columns: minmax(150px, 1fr) repeat(2, minmax(100px, 0.7fr));
  }
}

@media (max-width: 820px) {
  .app-shell #registerChampionshipView > .action-strip {
    justify-content: stretch;
  }

  .app-shell #registerChampionshipView > .action-strip::before {
    flex-basis: 100%;
    margin-bottom: 4px;
  }

  .app-shell #registerChampionshipView > .action-strip button,
  .app-shell .time-clock-panel .primary-action {
    width: 100%;
  }

  .app-shell .approval-item,
  .app-shell .championship-admin-card > summary,
  .app-shell .championship-registration-row,
  .app-shell .my-task-header,
  .app-shell .my-task-summary,
  .app-shell .user-filter-grid,
  .app-shell .task-board {
    grid-template-columns: 1fr;
  }

  .app-shell .approval-actions,
  .app-shell .row-actions,
  .app-shell .user-filter-actions {
    justify-content: stretch;
  }

  .app-shell .approval-actions button,
  .app-shell .row-actions button,
  .app-shell .user-filter-actions button {
    flex: 1 1 140px;
  }

  .app-shell .time-clock-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .app-shell .modal-header {
    margin: -18px -18px 14px;
    padding: 14px 18px;
  }
}

.games-landing .games-primary-action,
.games-landing .games-secondary-action,
.games-landing .games-card-primary,
.games-landing .games-card-secondary,
.games-landing .games-regulation-card a {
  width: auto;
  text-transform: none;
}

/* Public championships landing polish */
body:has(.championship-landing) {
  background:
    radial-gradient(circle at 12% 8%, rgba(103, 61, 230, 0.16), transparent 26%),
    radial-gradient(circle at 90% 14%, rgba(32, 214, 181, 0.12), transparent 22%),
    linear-gradient(180deg, #f7f5ff 0%, #f8f9fc 52%, #ffffff 100%);
}

.championship-landing {
  gap: 22px;
  padding: 18px;
}

.championship-hero {
  width: min(1180px, 100%);
  min-height: 500px;
  margin: 0 auto;
  border: 1px solid #dfe4ee;
  border-radius: 16px;
  padding: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(circle at 18% 18%, rgba(103, 61, 230, 0.18), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f4f0ff 100%);
  box-shadow: 0 24px 60px rgba(39, 43, 66, 0.09);
}

.championship-hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4.75rem);
  letter-spacing: 0;
}

.championship-carousel .carousel-card {
  animation: championshipSlide 28s linear infinite;
}

.championship-section,
.championship-info-band {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.championship-active-section,
.championship-finished-section {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.active-championships-box,
.championship-finished-section .finished-championships-box {
  overflow: hidden;
  border: 1px solid #dfe4ee;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(39, 43, 66, 0.06);
}

.championship-box-heading,
.finished-championships-box > summary {
  border-bottom: 1px solid #edf0f6;
  padding: 18px 20px;
  background:
    linear-gradient(90deg, rgba(103, 61, 230, 0.08), transparent 48%),
    #ffffff;
}

.active-championships-box .championship-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 300px));
  justify-content: start;
  gap: 16px;
  padding: 18px 20px 20px;
}

.active-championships-box .championship-public-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  border-color: #dfe4ee;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(39, 43, 66, 0.06);
}

.active-championships-box .championship-public-card img {
  aspect-ratio: 16 / 9;
}

.active-championships-box .championship-public-content {
  gap: 11px;
  padding: 14px;
}

.active-championships-box .championship-public-content h3 {
  min-height: 0;
  font-size: 1.04rem;
  line-height: 1.16;
  text-transform: none;
}

.active-championships-box .championship-public-content > span {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  background: #f2edff;
  color: #673de6;
  font-size: 0.7rem;
  line-height: 1;
}

.active-championships-box .championship-public-content dl {
  gap: 0;
  overflow: hidden;
  border: 1px solid #edf0f6;
  border-radius: 8px;
}

.active-championships-box .championship-public-content dl div {
  border-bottom: 1px solid #edf0f6;
  padding: 8px 10px;
  background: #fbfcff;
}

.active-championships-box .championship-public-content dl div:last-child {
  border-bottom: 0;
}

.active-championships-box .championship-public-content dt,
.active-championships-box .championship-public-content dd {
  font-size: 0.78rem;
}

.active-championships-box .championship-public-content .primary-action {
  width: 100%;
  min-height: 36px;
  border-radius: 7px;
  padding: 8px 10px;
  background: #673de6;
  font-size: 0.8rem;
  box-shadow: none;
}

.active-championships-box .championship-public-content .primary-action:hover {
  background: #5025d1;
}

.championship-info-band {
  gap: 14px;
  padding-bottom: 18px;
}

.championship-info-band article {
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(103, 61, 230, 0.06), transparent 44%),
    #ffffff;
  box-shadow: 0 12px 30px rgba(39, 43, 66, 0.05);
}

@media (max-width: 900px) {
  .championship-landing {
    padding: 10px;
  }

  .championship-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .active-championships-box .championship-card-grid {
    grid-template-columns: 1fr;
    padding-inline: 14px;
  }
}
