﻿:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg-sidebar: #0f172a;
  --bg-main: #f8fafc;
  --white: #ffffff;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius: 12px;

  --color-primary: var(--primary);
  --color-primary-strong: var(--primary-dark);
  --color-accent: var(--warning);
  --color-danger: var(--danger);
  --color-success: var(--success);
  --color-dark: var(--bg-sidebar);
  --color-bg: var(--bg-main);
  --color-surface: var(--white);
  --color-surface-soft: #f8fafc;
  --color-border: #e2e8f0;
  --color-text: var(--text-dark);
  --color-text-soft: var(--text-light);
  --color-sidebar: var(--bg-sidebar);
  --shadow-sm: var(--shadow);
  --shadow-md: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
}

body {
  background-color: var(--bg-main);
  line-height: 1.6;
}

.admin-page,
.live-page {
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

.public-page .page-shell {
  min-height: 100vh;
}

.public-header {
  background: linear-gradient(135deg, var(--bg-sidebar) 0%, #1e293b 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  margin-bottom: -30px;
}

.public-title-wrap {
  max-width: 850px;
  margin: 0 auto;
}

.public-title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.2vw, 2.3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.public-subtitle {
  color: #94a3b8;
  font-size: 1rem;
  margin-top: 8px;
  font-weight: 500;
}

.admin-fab {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.admin-fab:hover {
  background: var(--warning);
  color: var(--bg-sidebar);
  transform: translateY(-2px) rotate(15deg);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  border-color: var(--warning);
}

.container {
  max-width: 850px;
  margin: 40px auto;
  padding: 0 20px;
}

.sport-selector {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 35px;
  border: 1px solid #e2e8f0;
}

.sport-selector label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
}

.sport-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sport-context-note {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--text-light);
  font-weight: 600;
}

input[type='text'],
input[type='number'],
input[type='email'],
input[type='password'],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  background-color: var(--white);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  display: inline-grid;
  place-content: center;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

input[type='checkbox']::before {
  content: '';
  width: 9px;
  height: 9px;
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.12s ease-in-out;
  clip-path: polygon(14% 44%, 0 65%, 39% 100%, 100% 25%, 82% 10%, 40% 70%);
  background: #ffffff;
}

input[type='checkbox']:hover {
  border-color: #64748b;
}

input[type='checkbox']:focus-visible {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

input[type='checkbox']:checked {
  border-color: var(--primary);
  background: var(--primary);
}

input[type='checkbox']:checked::before {
  transform: scale(1);
}

input[type='checkbox']:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #cbd5e1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), inset 0 1px 2px rgba(0, 0, 0, 0.05);
  background-color: #fff;
}

input:disabled,
select:disabled {
  background-color: #f1f5f9;
  cursor: not-allowed;
  color: #94a3b8;
  border-color: #e2e8f0;
}

::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 25px;
  border: 1px solid #e2e8f0;
}

.card-header {
  background: #f8fafc;
  color: var(--bg-sidebar);
  padding: 18px 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.card-body {
  padding: 20px 24px;
}

.inline-grid {
  display: grid;
  gap: 14px;
}

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

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

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 13px;
  background: #f8fafc;
  color: var(--text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 700;
}

td {
  padding: 13px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.94rem;
  font-weight: 600;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.muted {
  color: var(--text-light);
}

.public-page .standings-table th,
.public-page .standings-table td {
  text-align: center;
}

.public-page .standings-table .team-td {
  text-align: left;
  padding-left: 25px;
  width: 40%;
}

.points-col {
  background: #eff6ff;
  color: var(--primary);
  font-weight: 800;
}

.match-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border: none;
  width: 100%;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  position: relative;
  background: transparent;
}

.match-item:hover {
  background: #f8fafc;
  padding-left: 32px;
}

.match-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  opacity: 0;
}

.match-item:hover::before {
  opacity: 1;
}

.team-label {
  width: 35%;
  font-weight: 700;
  color: var(--bg-sidebar);
}

.score-badge,
.score-chip {
  background: var(--bg-sidebar);
  color: var(--warning);
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  min-width: 85px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.empty-state {
  padding: 36px 20px;
  text-align: center;
  color: var(--text-light);
  font-weight: 600;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  width: 100%;
  max-width: 500px;
  padding: 35px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
}

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

.close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-light);
}

.toast-wrap {
  position: fixed;
  top: 18px;
  right: 18px;
  display: grid;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background: var(--bg-sidebar);
  color: #f8fafc;
  border-radius: 12px;
  padding: 10px 14px;
  min-width: 220px;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45);
  border-left: 5px solid #60a5fa;
  font-size: 0.88rem;
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.success {
  border-left-color: var(--success);
}

.btn {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-warning {
  background-color: var(--warning);
  color: #111827;
}

.btn-warning:hover {
  filter: brightness(0.95);
}

.btn-ghost {
  background: transparent;
  border: 2px solid #e2e8f0;
  color: var(--text-dark);
}

.btn-ghost:hover {
  background: #f8fafc;
}

.hidden {
  display: none !important;
}

.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: stretch;
}

.admin-shell > * {
  min-width: 0;
}

.mobile-sidebar-toggle,
.sidebar-backdrop {
  display: none;
}

.mobile-sidebar-toggle {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1350;
  border: none;
  border-radius: 999px;
  background: var(--bg-sidebar);
  color: #f8fafc;
  padding: 10px 14px;
  font-weight: 700;
  align-items: center;
  gap: 8px;
  box-shadow: 0 14px 24px -16px rgba(15, 23, 42, 0.8);
}

.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  color: var(--white);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 0;
}

.sidebar-brand {
  padding: 25px;
  font-size: 1.4rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
}

.sidebar-user {
  padding: 10px 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.sidebar-user-name {
  color: #f8fafc;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

.sidebar-user-role {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #bfdbfe;
  font-size: 0.75rem;
  font-weight: 700;
}

.sidebar-menu {
  list-style: none;
  padding: 20px 10px;
  margin: 0;
  display: block;
}

.sidebar-menu li {
  margin-bottom: 5px;
}

.sidebar-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  color: #94a3b8;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
}

.sidebar-link:hover,
.sidebar-link.active {
  background-color: rgba(37, 99, 235, 0.15);
  color: var(--white);
}

.main-pane {
  flex-grow: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 40px;
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 12px;
  flex-wrap: wrap;
}

.top-row > * {
  min-width: 0;
}

.page-title {
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--white);
  padding: 25px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
}

.stat-label {
  margin: 0;
  color: var(--text-light);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 10px;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  background: var(--white);
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 25px;
  border: 1px solid #e2e8f0;
  align-items: end;
}

.table-actions {
  display: inline-flex;
  gap: 5px;
}

.admin-page .table-wrap table {
  min-width: 760px;
}

.live-page .table-wrap table {
  min-width: 560px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn.edit {
  background: #dbeafe;
  color: var(--primary);
}

.icon-btn.delete {
  background: #fee2e2;
  color: var(--danger);
}

.icon-btn.live {
  background: #dcfce7;
  color: var(--success);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row span,
.checkbox-row label {
  font-weight: 600;
}

.live-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto;
  display: grid;
  gap: 18px;
}

.live-scoreboard {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--bg-sidebar);
  color: white;
  padding: 36px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  gap: 22px;
}

.team-block {
  text-align: center;
}

.team-name {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
}

.live-score {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  margin: 10px 0;
  font-variant-numeric: tabular-nums;
}

.score-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.live-scoreboard .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.live-scoreboard .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.live-scoreboard .btn-ghost:disabled,
.live-scoreboard .btn-primary:disabled {
  opacity: 0.5;
  color: rgba(255, 255, 255, 0.75);
}

.timer-card {
  text-align: center;
}

.timer-value {
  text-align: center;
  font-family: monospace;
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: #1e293b;
  padding: 10px 30px;
  border-radius: 12px;
  margin: 0;
  border: 2px solid #334155;
  color: #60a5fa;
}

.timer-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.lock-banner {
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.lock-banner.locked {
  background: #fee2e2;
  color: #991b1b;
}

.lock-banner.editable {
  background: #d1fae5;
  color: #065f46;
}

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

.foul-pill {
  min-width: 34px;
  display: inline-grid;
  place-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 800;
  background: #e2e8f0;
}

.foul-pill.max {
  background: #fecaca;
  color: #991b1b;
}

.mvp-star {
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 1.15rem;
}

.mvp-star.active {
  color: var(--warning);
}

.mvp-star:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 1200px) {
  .admin-shell {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .sidebar {
    width: 236px;
  }

  .main-pane {
    padding: 28px 24px;
  }

  .card-header {
    padding: 16px 20px;
  }

  .card-body {
    padding: 18px 20px;
  }

  .live-shell {
    width: min(1200px, calc(100% - 24px));
    margin: 18px auto;
  }

  .live-scoreboard {
    padding: 28px 24px;
  }
}

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

  .live-scoreboard {
    flex-direction: column;
    gap: 20px;
  }
}

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

  .mobile-sidebar-toggle {
    display: inline-flex;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.46);
    opacity: 0;
    pointer-events: none;
    z-index: 1240;
  }

  .admin-shell.menu-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    width: min(82vw, 320px);
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1300;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 0.26s ease;
    box-shadow: none;
  }

  .admin-shell.menu-open .sidebar {
    transform: translateX(0);
    box-shadow: 0 26px 44px -24px rgba(15, 23, 42, 0.9);
  }

  .sidebar-brand {
    padding: 18px 18px 14px;
    font-size: 1.08rem;
  }

  .sidebar-user {
    padding: 10px 18px 12px;
  }

  .sidebar-user-name {
    font-size: 0.96rem;
  }

  .sidebar-menu {
    display: block;
    overflow: visible;
    padding: 12px 12px 14px;
  }

  .sidebar-menu li {
    margin-bottom: 6px;
    flex-shrink: 1;
  }

  .sidebar-link {
    white-space: normal;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.86rem;
  }

  .sidebar > div:last-child {
    margin-top: 8px !important;
    padding: 0 12px 16px !important;
  }

  .main-pane {
    padding: 68px 16px 16px;
  }

  .top-row {
    margin-bottom: 20px;
  }

  .container {
    margin: 24px auto;
  }

  .inline-grid.cols-2,
  .inline-grid.cols-3,
  .roster-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sidebar {
    width: min(86vw, 312px);
  }

  .live-scoreboard {
    padding: 20px 16px;
    border-radius: 18px;
    gap: 18px;
  }

  .team-name {
    font-size: 1.25rem;
  }

  .live-score {
    font-size: clamp(2.2rem, 14vw, 3.5rem);
  }

  .timer-value {
    padding: 10px 16px;
  }

  .score-actions .btn,
  .timer-actions .btn {
    flex: 1 1 78px;
    padding: 10px 12px;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 18px;
  }

  .stat-value {
    font-size: 1.65rem;
  }

  .top-row {
    align-items: stretch;
    gap: 10px;
  }

  .top-row > div {
    width: 100%;
  }

  .top-row .btn,
  .top-row select {
    width: 100%;
  }

  .filter-bar {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 12px;
  }

  .card-header {
    padding: 12px 14px;
    font-size: 0.92rem;
  }

  .card-body {
    padding: 12px 14px;
  }

  .modal-box {
    max-width: calc(100vw - 20px);
    padding: 20px 16px;
    border-radius: 16px;
  }

  .admin-page th,
  .admin-page td {
    padding: 10px 9px;
    font-size: 0.83rem;
  }

  .live-shell {
    width: calc(100% - 16px);
    margin: 14px auto;
    gap: 12px;
  }

  .live-page .top-row > div:last-child {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 8px !important;
    width: 100%;
  }

  .live-page .top-row > div:last-child .btn {
    width: 100%;
  }

  .live-scoreboard {
    padding: 14px 12px;
    gap: 14px;
  }

  .team-name {
    font-size: 1.08rem;
  }

  .live-score {
    margin: 6px 0;
  }

  .timer-value {
    font-size: clamp(1.7rem, 10vw, 2.55rem);
    padding: 8px 12px;
  }

  .score-actions,
  .timer-actions {
    gap: 6px;
  }

  .score-actions .btn,
  .timer-actions .btn {
    min-width: 66px;
    font-size: 0.82rem;
    padding: 9px 10px;
  }

  .live-page input[type='checkbox'] {
    width: 20px;
    height: 20px;
  }

  .live-page th,
  .live-page td {
    padding: 10px 9px;
    font-size: 0.83rem;
  }

  .lock-banner {
    font-size: 0.78rem;
    padding: 8px 10px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .mobile-sidebar-toggle,
  .sidebar-backdrop,
  .top-row .btn,
  .filter-bar,
  .modal-overlay,
  .stats-grid,
  .toast-wrap,
  .icon-btn {
    display: none !important;
  }

  .main-pane {
    padding: 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .card,
  .table-wrap,
  .stat-card {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }

  .view-section {
    display: none !important;
  }

  #view-reports {
    display: block !important;
  }
}
