:root{--ink:#172d30;--muted:#6e7e80;--accent:#087e6d;--border:#dfe7e5}*{box-sizing:border-box}body{margin:0;background:#f3f6f5;color:var(--ink);font:14px system-ui,sans-serif}aside{position:fixed;inset:0 auto 0 0;width:248px;background:#132f31;color:#b9cdcb;padding:32px 20px}.brand{display:flex;gap:12px;align-items:center;font-size:34px;font-weight:800;color:#0b9d83;margin-bottom:36px}.brand span{font-size:11px;letter-spacing:2px;color:inherit}aside small{font-size:9px;letter-spacing:1.5px}nav{margin-top:20px}nav a{display:block;padding:12px;color:#b9cdcb;text-decoration:none;border-radius:6px;margin:3px 0}nav a.active,nav a:hover{background:#244747;color:#fff}main{margin-left:248px;padding:40px;max-width:1800px}header,.toolbar,.panelhead,.filters{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}h1{font-size:30px;font-weight:650;margin:10px 0 20px}h2{font-size:18px}h3{font-size:16px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--accent)}.mode,.grade{padding:7px 10px;background:#e0efea;color:#077d63;border-radius:5px;font-size:11px;font-weight:700}.muted,small{color:var(--muted)}.toolbar{margin:30px 0}.toolbar form{display:flex;align-items:end;gap:10px}label{display:inline-flex;flex-direction:column;gap:8px;font-size:12px}input,select{padding:8px;border:1px solid #cedbd7;border-radius:5px;background:#fff;color:var(--ink)}.btn-primary{background:var(--accent);border-color:var(--accent)}.btn-light{background:#fff;border:1px solid var(--border)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.metrics article,.panel{background:#fff;border:1px solid var(--border);border-radius:9px;padding:24px}.metrics article span{color:var(--muted);font-size:12px}.metrics strong{display:block;font-size:36px;margin-top:12px;font-weight:550}.panel{margin-bottom:24px}.panelhead{margin-bottom:20px}.filters{justify-content:start;padding:15px 0 25px}a{color:var(--accent);text-decoration:none}table{min-width:850px}th{font-size:10px;text-transform:uppercase;color:var(--muted)!important;letter-spacing:.6px;padding:15px 8px!important}td{vertical-align:middle;padding:18px 8px!important;font-size:12px}td small{display:block;margin-top:6px}.prob{color:var(--accent)!important;font-size:19px;font-weight:700}.empty{text-align:center;padding:50px}.review{display:flex;gap:8px;flex-wrap:wrap;padding:15px 0;border-bottom:1px solid var(--border)}.review small{width:100%}.review input[name=text]{flex:1}pre{max-height:450px;overflow:auto;font-size:12px;background:#f5f8f7;padding:16px}footer{color:var(--muted);font-size:10px;letter-spacing:1px;margin-top:35px}.logout{background:none;border:0;color:#b9cdcb;margin-top:40px}.login{margin:10vh auto;max-width:440px;background:#fff;padding:40px;border:1px solid var(--border);border-radius:12px}.login label{display:flex;margin:20px 0}@media(max-width:1000px){aside{position:static;width:auto;padding:20px}aside .brand{margin-bottom:10px}nav{display:flex;overflow:auto}nav a{white-space:nowrap}aside small,.logout{display:none}main{margin:0;padding:20px}.metrics{grid-template-columns:repeat(2,1fr)}.toolbar form{flex-wrap:wrap}.login{margin:30px auto}}

.totals-table{min-width:600px}.totals-table th,.totals-table td{text-align:center}

.totals-filters{display:flex;gap:18px;align-items:flex-start;flex-wrap:wrap;margin:24px 0}.multi-filter{flex:1;min-width:240px}.multi-filter>label{display:block;margin-bottom:8px;font-weight:600}.multi-filter>input{width:100%}.filter-options{max-height:145px;overflow:auto;border:1px solid var(--border);border-radius:5px;padding:8px;background:#fafcfb}.filter-options label{display:flex;flex-direction:row;align-items:center;padding:5px;gap:8px;cursor:pointer}.selected-items{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}.filter-chip{background:#e0efea;color:#076b5b;border:0;border-radius:4px;padding:5px 8px;font-size:12px}.totals-sort{border:0;background:transparent;color:inherit;font:inherit;font-weight:700;white-space:nowrap;padding:5px;cursor:pointer}.totals-sort:focus-visible,.filter-chip:focus-visible{outline:2px solid var(--accent)}#totals-grid{min-width:1450px}#totals-grid td.prob{font-size:14px;text-align:center;white-space:nowrap}#totals-grid th{white-space:nowrap}#totals-grid th:first-child,#totals-grid td:first-child{position:sticky;left:0;background:white;min-width:240px;z-index:1}#totals-grid td:nth-child(2){min-width:170px}.totals-scroll{max-height:70vh;overflow:auto}#totals-grid thead th{position:sticky;top:0;background:#eef5f2;z-index:2}#totals-grid thead th:first-child{z-index:3}

/* Compact totals workspace */
.totals-panel{padding:24px;border-radius:14px;box-shadow:0 3px 16px #163b3010}.totals-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.totals-heading h2{font-size:23px;margin:6px 0}.totals-panel>p{font-size:12px;line-height:1.6;color:#647778}.totals-filters{background:#f3f7f6;border:1px solid #e0e9e6;border-radius:10px;padding:16px;margin:20px 0 12px;gap:14px;align-items:flex-start}.multi-filter{position:relative}.multi-filter>input{height:42px;border-radius:7px;border-color:#cbdad5;font-size:13px}.multi-filter>input:focus{outline:2px solid #139a7e40;border-color:#139a7e}.multi-filter .filter-options{position:absolute;top:70px;left:0;right:0;max-height:240px;z-index:10;background:#fff;box-shadow:0 12px 28px #12352b25;padding:8px;border-radius:8px}.filter-options[hidden]{display:none!important}.filter-options label{font-size:13px;border-radius:5px;padding:8px}.filter-options label:hover{background:#edf6f2}.filter-options input{accent-color:#087e6d}.selected-items:empty{display:none}.totals-filters>#totals-reset{margin-top:25px;height:42px;font-size:12px;border-radius:7px}#totals-count{font-size:12px;font-weight:600;color:#37554e;margin:16px 0}.totals-scroll{border:1px solid #dde7e3;border-radius:9px;max-height:65vh}#totals-grid{margin:0;min-width:1300px}#totals-grid th{padding:12px 5px!important;letter-spacing:0;text-transform:none;font-size:11px}#totals-grid td{padding:12px 8px!important;border-color:#e8eeeb}#totals-grid td:first-child{min-width:230px;max-width:300px;font-size:12px}#totals-grid td:first-child a{color:#203c36}#totals-grid td:first-child small{font-size:10px;margin-top:4px}#totals-grid td:nth-child(2){min-width:145px;max-width:180px;color:#6d7e78;font-size:11px}#totals-grid td.prob{font-size:13px;font-weight:650;font-variant-numeric:tabular-nums}#totals-grid tbody tr:nth-child(even)>td{background:#f8fbfa}#totals-grid tbody tr:hover>td{background:#edf6f2}#totals-grid th:nth-child(n+3):nth-child(-n+8){background:#e2f1eb;color:#146a52!important}#totals-grid th:nth-child(n+9){background:#eaf0fa;color:#365e98!important}#totals-grid td:nth-child(n+9){color:#365e98!important}#totals-grid td:nth-child(9),#totals-grid th:nth-child(9){border-left:2px solid #d6e1ea}#totals-grid tr[hidden]{display:none!important}.totals-sort{padding:4px 2px}.totals-sort span{opacity:.6;font-size:10px}@media(max-width:800px){.totals-panel{padding:14px}.totals-heading{align-items:flex-start}.totals-heading .mode{display:none}.multi-filter{min-width:100%}.totals-filters>#totals-reset{margin-top:0}.totals-scroll{max-height:65vh}}

.history-season-group{border:1px solid var(--border);border-radius:8px;padding:14px;margin:12px 0}.history-season-group legend{float:none;width:auto;padding:0 6px;font-size:14px;font-weight:650}.history-season-list{display:flex;flex-wrap:wrap;gap:8px}.history-season-list label{display:inline-flex;flex-direction:row;align-items:center;gap:6px;padding:7px 10px;border:1px solid var(--border);border-radius:6px;background:#f6f9f8;cursor:pointer}.history-season-list input{accent-color:var(--accent)}#historyLeagues{max-width:100%;height:auto;min-height:180px;margin:8px 0}.panel .form-row{display:flex;flex-direction:column;align-items:stretch;max-width:850px;margin:12px 0}.panel form>small{display:block;margin:6px 0 12px}.panel code{background:#edf2f0;padding:2px 5px;border-radius:4px}

.translation-search{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:18px 0}.translation-search label{min-width:180px;flex:1}.translation-table{min-width:950px}.translation-table td{vertical-align:middle}.translation-edit{display:flex;align-items:center;gap:8px;min-width:300px}.translation-edit input{min-width:170px;flex:1}.translation-table td>input{min-width:180px;width:100%}.translation-state{display:inline-block;padding:5px 8px;border-radius:5px;background:#eef1f0;color:#6b7775;font-size:11px}.translation-state.custom{background:#e1f3ed;color:#087e6d;font-weight:650}.translation-table form{margin:0}.translation-table .btn,.translation-edit .btn{white-space:nowrap}
.translation-pagination{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;margin:14px 0}.translation-pagination .btn{min-width:38px}.translation-pagination .disabled{pointer-events:none;opacity:.45}.translation-pagination>span{padding:0 4px;color:var(--muted)}
