/* ════════════════════════════════════════════════════════════
   WCL Admin Console — Design System
   Inspired by Linear, Stripe Dashboard, Vercel admin patterns.
   Quiet UI, generous spacing, single source of truth for tokens.
   ════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;
  --adm-bg: #0a0e14;
  --adm-bg-2: #0f1420;
  --adm-surface: #131927;
  --adm-surface-2: #1a2233;
  --adm-border: rgba(255, 255, 255, 0.08);
  --adm-border-strong: rgba(255, 255, 255, 0.14);
  --adm-text: #f3f6fa;
  --adm-text-muted: #c2cad8;
  --adm-text-subtle: #8a93a4;
  --adm-primary: #ea580c;
  --adm-primary-hover: #c2410c;
  /* Compatibility aliases — admin templates inherited these from styles.css */
  --accent: #fb923c;
  --muted: #c2cad8;
  --line: rgba(255, 255, 255, 0.14);
  --adm-radius: 8px;
  --adm-radius-lg: 12px;
  --adm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --adm-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --adm-shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.4);
  --adm-focus: 0 0 0 3px rgba(234, 88, 12, 0.3);
}

[data-theme="light"] {
  color-scheme: light;
  --adm-bg: #fafbfc;
  --adm-bg-2: #f4f6f8;
  --adm-surface: #ffffff;
  --adm-surface-2: #f6f8fa;
  --adm-border: rgba(15, 23, 42, 0.08);
  --adm-border-strong: rgba(15, 23, 42, 0.16);
  --adm-text: #0f172a;
  --adm-text-muted: #475569;
  --adm-text-subtle: #94a3b8;
  --adm-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --adm-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --adm-shadow-lg: 0 24px 48px rgba(15, 23, 42, 0.16);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--adm-bg);
  color: var(--adm-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Login ── */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--adm-bg);
  padding: 24px;
}
.adm-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--adm-border-strong);
  border-top-color: var(--adm-primary);
  animation: adm-spin 0.7s linear infinite;
}
@keyframes adm-spin {
  to { transform: rotate(360deg); }
}

.admin-login-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: var(--adm-shadow-lg);
}

/* ── Shell ── */
#admin-app {
  min-height: 100vh;
  flex-direction: column;
}
.adm-shell { display: flex; min-height: 100vh; }

.adm-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--adm-surface);
  border-right: 1px solid var(--adm-border);
  display: flex;
  flex-direction: column;
  padding: 16px 12px 14px;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

/* Mobile top bar (hidden on desktop) */
.adm-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--adm-surface);
  border-bottom: 1px solid var(--adm-border);
  position: sticky;
  top: 0;
  z-index: 30;
  /* Solid background so content can't bleed through when scrolling */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  height: 56px;
  box-sizing: border-box;
}
.adm-mobile-bar .adm-brand {
  padding: 0;
  margin: 0;
  border: none;
  gap: 8px;
}
.adm-mobile-bar .adm-brand-title { font-size: 14px; }
.adm-mobile-toggle {
  background: transparent;
  border: 1px solid var(--adm-border);
  color: var(--adm-text);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-family: inherit;
}
.adm-mobile-toggle:hover { background: var(--adm-surface-2); }

/* Brand block */
.adm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--adm-border);
}
.adm-brand img {
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--adm-border);
}
.adm-brand-title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--adm-text);
}
.adm-brand-sub {
  font-size: 11px;
  color: var(--adm-text-subtle);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-top: 1px;
}

/* Nav sections */
.adm-nav-section {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 0;
}
.adm-nav-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adm-text-subtle);
  padding: 6px 12px 8px;
}

.adm-sidebar-spacer { flex: 1 1 auto; }

.adm-sidebar-foot {
  padding-top: 8px;
  border-top: 1px solid var(--adm-border);
}

/* Sidebar items (buttons + links) */
.adm-nav-btn,
.adm-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--adm-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  font-family: inherit;
  position: relative;
}
.adm-nav-btn svg,
.adm-nav-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.adm-nav-btn:hover,
.adm-nav-link:hover {
  background: var(--adm-surface-2);
  color: var(--adm-text);
}
.adm-nav-btn.active {
  background: rgba(234, 88, 12, 0.10);
  color: var(--adm-text);
  font-weight: 600;
}
.adm-nav-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--adm-primary);
}

.adm-nav-emoji {
  width: 16px;
  font-size: 13px;
  text-align: center;
  flex-shrink: 0;
}
.adm-nav-ext {
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.12s;
  color: var(--adm-text-subtle);
}
.adm-nav-link:hover .adm-nav-ext { opacity: 1; }

.adm-nav-signout { color: var(--adm-text-subtle); }
.adm-nav-signout:hover { color: #f87171; background: rgba(239, 68, 68, 0.08); }

.adm-main {
  flex: 1;
  padding: 28px 32px 48px;
  overflow-y: auto;
  background: var(--adm-bg);
  max-width: 100%;
}
.adm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.adm-topbar h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.adm-tab { display: block; }

/* ── Buttons ── */
.adm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid var(--adm-border-strong);
  background: var(--adm-surface);
  color: var(--adm-text);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.adm-btn:hover { background: var(--adm-surface-2); }
.adm-btn:focus-visible { outline: none; box-shadow: var(--adm-focus); }
.adm-btn-primary {
  background: var(--adm-primary);
  border-color: var(--adm-primary);
  color: #fff;
  font-weight: 600;
}
.adm-btn-primary:hover { background: var(--adm-primary-hover); border-color: var(--adm-primary-hover); }
.adm-btn-sm { padding: 4px 10px; font-size: 12px; }
.adm-btn-danger {
  background: transparent;
  border-color: var(--adm-border);
  color: #ef4444;
}
.adm-btn-danger:hover { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.3); }

.adm-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border-radius: var(--adm-radius);
  border: 1px solid var(--adm-border-strong);
  background: var(--adm-surface);
  color: var(--adm-text);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s;
}
.adm-btn-google:hover { background: var(--adm-surface-2); }

/* ── Rows / list items ── */
.adm-card-list { display: flex; flex-direction: column; gap: 4px; }
.adm-row {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: border-color 0.12s;
}
.adm-row:hover { border-color: var(--adm-border-strong); }
.adm-row-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.adm-row-info strong { font-weight: 600; font-size: 14px; }
.adm-row-meta { color: var(--adm-text-muted); font-size: 12px; }
.adm-row-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Badges */
.adm-row-badge,
.badge-done, .badge-cancel, .badge-upcoming {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: capitalize;
}
.badge-done { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.badge-cancel { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.badge-upcoming { background: rgba(234, 88, 12, 0.12); color: #fb923c; }

.adm-match-num {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: var(--adm-surface-2);
  color: var(--adm-text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  min-width: 32px;
  justify-content: center;
}

.adm-pool-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--adm-surface-2);
  color: var(--adm-text-muted);
  min-width: 22px;
  justify-content: center;
}

/* ── Inputs ── */
.adm-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--adm-text);
  margin-bottom: 6px;
  letter-spacing: 0;
  text-transform: none;
}
.adm-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--adm-border-strong);
  background: var(--adm-surface);
  color: var(--adm-text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.adm-input::placeholder { color: var(--adm-text-subtle); }
.adm-input:hover { border-color: rgba(255, 255, 255, 0.22); }
[data-theme="light"] .adm-input:hover { border-color: rgba(15, 23, 42, 0.24); }
.adm-input:focus {
  outline: none;
  border-color: var(--adm-primary);
  box-shadow: var(--adm-focus);
}
select.adm-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238b97a8' d='M5 6 0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
input[type="time"].adm-input,
input[type="date"].adm-input { font-variant-numeric: tabular-nums; }
input[type="time"].adm-input::-webkit-calendar-picker-indicator,
input[type="date"].adm-input::-webkit-calendar-picker-indicator { opacity: 0.7; cursor: pointer; }

/* Select option groups & options — force readable colors against dark theme */
.adm-input optgroup {
  background: var(--adm-surface);
  color: var(--adm-text-muted);
  font-weight: 600;
  font-size: 12px;
  padding-top: 4px;
}
.adm-input option {
  background: var(--adm-surface);
  color: var(--adm-text);
  padding: 4px 0;
}

/* Time picker (hour / min / am-pm) */
.adm-time-pick {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1fr;
  gap: 6px;
  align-items: center;
}
.adm-time-pick .adm-input {
  padding: 8px 8px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  background-position: right 6px center;
  padding-right: 22px;
}
.adm-time-colon {
  color: var(--adm-text-muted);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}

.adm-quick-row {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.adm-quick {
  background: transparent;
  border: 1px solid var(--adm-border);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--adm-text-muted);
  cursor: pointer;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.adm-quick:hover {
  background: var(--adm-surface-2);
  color: var(--adm-text);
  border-color: var(--adm-border-strong);
}

.adm-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--adm-text-subtle);
  font-weight: 400;
}

.adm-err {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
}

/* ── Modal ── */
.adm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.adm-modal {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: var(--adm-radius-lg);
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--adm-shadow-lg);
}
.adm-modal-md { max-width: 540px; }
.adm-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--adm-border);
}
.adm-modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.adm-modal-close {
  background: none;
  border: none;
  color: var(--adm-text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: inherit;
}
.adm-modal-close:hover { color: var(--adm-text); background: var(--adm-surface-2); }
.adm-modal-foot {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 24px;
  border-top: 1px solid var(--adm-border);
  background: var(--adm-surface);
}

/* ── Form ── */
.adm-form {
  overflow-y: auto;
  flex: 1;
}
.adm-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--adm-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.adm-section:last-of-type { border-bottom: none; }
.adm-section-h {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--adm-text-subtle);
  margin: -4px 0 0;
}
.adm-field { display: flex; flex-direction: column; min-width: 0; }
.adm-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adm-row-3 { display: grid; grid-template-columns: 1.4fr 0.7fr 1fr; gap: 14px; }
.adm-row-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: end;
}
.adm-vs {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--adm-text-subtle);
  padding-bottom: 9px;
  text-align: center;
}

/* Score row */
.adm-score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--adm-surface-2);
  border-radius: var(--adm-radius);
  border: 1px solid var(--adm-border);
}
.adm-score-team {
  flex: 1;
  font-weight: 600;
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm-score-input {
  width: 70px;
  text-align: center;
  padding: 6px 8px;
  font-variant-numeric: tabular-nums;
}
.adm-score-slash, .adm-score-in {
  color: var(--adm-text-subtle);
  font-size: 12px;
  font-weight: 500;
}

/* Player of the Match block */
.adm-pom-block {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--adm-border);
}
.adm-pom-grid {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 16px;
  align-items: start;
}
.adm-pom-photo-wrap { display: flex; flex-direction: column; }
.adm-pom-photo {
  width: 140px;
  height: 140px;
  border-radius: 10px;
  border: 1px solid var(--adm-border-strong);
  background: var(--adm-surface-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.adm-pom-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.adm-pom-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--adm-text-subtle);
  font-size: 11px;
}
.adm-pom-photo-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
@media (max-width: 520px) {
  .adm-pom-grid { grid-template-columns: 1fr; }
  .adm-pom-photo { width: 100%; height: 200px; }
}

/* Match list — grouped by week with date-range header */
.adm-week-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.adm-week-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px 6px;
  border-bottom: 1px solid var(--adm-border);
  margin-bottom: 6px;
}
.adm-week-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--adm-primary);
}
.adm-week-range {
  font-size: 12px;
  color: var(--adm-text-muted);
  font-weight: 500;
}
.adm-week-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--adm-text-subtle);
  font-weight: 500;
  text-transform: lowercase;
}


/* Conflict warning */
.adm-warn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(234, 179, 8, 0.18);
  color: #fbbf24;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(234, 179, 8, 0.4);
}
.adm-conflict-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.adm-conflict-item {
  background: var(--adm-surface-2);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.adm-conflict-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.adm-conflict-team strong { font-weight: 600; }
.adm-conflict-role {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fbbf24;
  background: rgba(234, 179, 8, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}
.adm-conflict-detail {
  font-size: 12px;
  color: var(--adm-text-muted);
}
.adm-conflict-detail em {
  font-style: normal;
  color: #fbbf24;
}
.adm-conflict-meta {
  display: block;
  font-size: 11px;
  color: var(--adm-text-subtle);
  margin-top: 2px;
}

/* Empty / loading */
.adm-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--adm-text-muted);
  font-size: 14px;
  border: 1px dashed var(--adm-border);
  border-radius: var(--adm-radius-lg);
}

/* ── Public-page shared styles (loading state, schedule extras) ── */
.loading-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted, #8b97a8);
  font-size: 14px;
}
.week-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.week-btn {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(226, 232, 240, 0.1));
  background: var(--panel, #131927);
  color: var(--muted, #8b97a8);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.week-btn.active, .week-btn:hover {
  background: #ea580c;
  color: #fff;
  border-color: #ea580c;
}
.match-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.score-lines { font-size: 11px; color: var(--muted, #8b97a8); line-height: 1.6; }
.score-winner { color: #fb923c; font-weight: 700; font-size: 12px; margin-top: 2px; }
.qualify-row { background: rgba(34, 197, 94, 0.04); }
.playoff-winner { color: #fb923c; font-weight: 700; }
.playoff-result { font-size: 11px; color: #fb923c; margin-top: 4px; font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 720px) {
  .adm-shell { flex-direction: column; }

  /* Show the top bar with hamburger */
  .adm-mobile-bar { display: flex; }

  /* Sidebar collapses into a drop-down panel triggered by the hamburger.
     Use position:fixed so it overlays content (doesn't reserve space)
     and the user always gets the full viewport for the page below. */
  .adm-sidebar {
    position: fixed;
    top: 56px; /* below the mobile-bar */
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 0;
    overflow: hidden;
    z-index: 25;
    padding: 0 12px;
    background: var(--adm-surface);
    border-right: none;
    border-bottom: 1px solid var(--adm-border);
    transition: max-height 0.22s ease, padding 0.22s ease, box-shadow 0.22s ease;
    box-shadow: none;
  }
  .adm-sidebar.is-open {
    max-height: calc(100vh - 56px);
    padding: 12px;
    overflow-y: auto;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  }

  /* Hide the desktop brand inside the sidebar (mobile bar shows it instead) */
  .adm-sidebar > .adm-brand { display: none; }

  .adm-sidebar-spacer { display: none; }
  .adm-sidebar-foot { margin-top: 8px; }

  .adm-main { padding: 16px; }
  .adm-row-2, .adm-row-3 { grid-template-columns: 1fr; }
  .adm-row-vs { grid-template-columns: 1fr; }
  .adm-vs { padding: 0; text-align: left; }
  .adm-score-row { flex-wrap: wrap; }
  .adm-score-team { flex: 1 1 100%; margin-bottom: 4px; }
  .adm-score-input { width: 60px; }
}

/* ── Week visibility bar ── */
.adm-week-vis { margin-bottom: 16px; }
.adm-vis-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: 10px;
  background: var(--adm-card-bg); border: 1px solid var(--adm-border);
}
.adm-vis-label { font-size: 13px; font-weight: 600; color: var(--adm-text); white-space: nowrap; }
.adm-vis-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-vis-chip {
  padding: 5px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--adm-border); background: transparent; color: var(--adm-text-muted);
  cursor: pointer; transition: all .15s ease;
}
.adm-vis-chip:hover { border-color: var(--adm-accent); color: var(--adm-accent); }
.adm-vis-chip.active {
  background: var(--adm-accent); border-color: var(--adm-accent); color: #fff;
}
.adm-btn-sm { padding: 5px 10px; font-size: 11px; border-radius: 6px; }
.adm-vis-hint { font-size: 11px; color: var(--adm-text-subtle); margin: 6px 0 0 16px; }

/* ── Week toggle in match list ── */
.adm-week-toggle {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto; cursor: pointer;
}
.adm-week-toggle input { display: none; }
.adm-toggle-track {
  width: 36px; height: 20px; border-radius: 10px; background: var(--adm-border);
  position: relative; transition: background .2s ease;
}
.adm-toggle-thumb {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: transform .2s ease;
}
.adm-week-toggle input:checked + .adm-toggle-track {
  background: #22c55e;
}
.adm-week-toggle input:checked + .adm-toggle-track .adm-toggle-thumb {
  transform: translateX(16px);
}
.adm-toggle-label {
  font-size: 11px; font-weight: 600; min-width: 42px;
  color: var(--adm-text-muted);
}
.adm-week-toggle input:checked ~ .adm-toggle-label { color: #22c55e; }
