:root {
  --bg: #f6f7f2;
  --panel: #ffffff;
  --ink: #17201d;
  --muted: #66706a;
  --line: #dce2dd;
  --brand: #0c6b58;
  --brand-2: #b91c3b;
  --accent: #d89b22;
  --ok: #0f7b45;
  --bad: #b42318;
  --warn: #9a6700;
  --shadow: 0 8px 24px rgba(23, 32, 29, .08);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); padding-bottom: 72px; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 12px; letter-spacing: 0; }
p { color: var(--muted); line-height: 1.5; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.brand { color: var(--ink); font-weight: 800; }
.desktop-nav { display: none; gap: 8px; flex-wrap: wrap; }
.desktop-nav a, .admin-nav a { padding: 8px 10px; border-radius: 8px; color: var(--ink); }
.desktop-nav a.active, .admin-nav a.active, .bottom-nav a.active { background: var(--brand); color: white; }
.container { width: min(1120px, 100%); margin: 0 auto; padding: 18px; }
.narrow { max-width: 560px; }
.hero { display: grid; gap: 14px; padding: 22px 0 10px; }
.hero h1 { font-size: clamp(2rem, 8vw, 4.8rem); max-width: 900px; }
.grid { display: grid; gap: 14px; }
.grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; box-shadow: var(--shadow); }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat strong { font-size: 1.7rem; }
.muted { color: var(--muted); }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 8px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: #e9eee9; color: var(--ink); }
.badge.paid, .badge.finished, .badge.qualified { background: #dff4e8; color: var(--ok); }
.badge.unpaid, .badge.eliminated { background: #fde7e5; color: var(--bad); }
.badge.live, .badge.locked { background: #fff1c2; color: var(--warn); }
.button, button { min-height: 44px; border: 0; border-radius: 8px; padding: 10px 14px; background: var(--brand); color: white; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button.secondary, button.secondary { background: #e9eee9; color: var(--ink); }
.button.danger { background: var(--bad); }
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: white; color: var(--ink); }
textarea { min-height: 90px; }
.checks { display: grid; gap: 8px; }
.checks label { display: flex; flex-direction: row; align-items: center; font-weight: 600; }
.checks input { width: auto; min-height: auto; }
.flash { padding: 12px 14px; border-radius: 8px; margin: 0 0 14px; background: #e6f4ed; color: var(--ok); border: 1px solid #bfe4cf; }
.flash.error, .error { background: #fde7e5; color: var(--bad); border-color: #f7c4bf; }
.success { border-color: #bfe4cf; }
.warning { color: var(--warn); font-weight: 700; }
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-links a { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; font-weight: 800; color: var(--ink); }
.match { display: grid; gap: 8px; }
.match-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; font-weight: 800; }
.match-line span:last-child { text-align: right; }
.score { background: #edf1ee; border-radius: 6px; padding: 6px 8px; min-width: 54px; text-align: center; }
.filters { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 8px; overflow: hidden; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: .85rem; }
.admin-shell { display: grid; gap: 14px; }
.admin-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.admin-main { min-width: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; padding: 8px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
.bottom-nav a { min-height: 48px; display: grid; place-items: center; border-radius: 8px; color: var(--ink); font-size: .82rem; font-weight: 800; }
.draft-picker-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 6px; max-height: 60vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: #fff; }
.draft-picker-list li { padding: 0; }
.draft-picker-list li[hidden] { display: none; }
.draft-picker-list label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.draft-picker-list label:hover, .draft-picker-list input:checked + .pname { background: #f0f5f0; }
.draft-picker-list .pname { font-weight: 700; }
.empty { padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; background: rgba(255,255,255,.6); }
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .desktop-nav { display: flex; }
  .bottom-nav { display: none; }
  .draft-picker-list { grid-template-columns: repeat(2, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
  .filters { grid-template-columns: repeat(5, 1fr); }
  .quick-links { grid-template-columns: repeat(4, 1fr); }
  .admin-shell { grid-template-columns: 190px 1fr; align-items: start; }
  .admin-nav { position: sticky; top: 72px; display: grid; overflow: visible; }
}

