/* HOTFIX: ensure hidden elements are really hidden */
:where([hidden]){ display:none !important; }
/* existing styles */
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:#0b0b12;color:#f6f6f9}
a{color:#ffd166}
.sidebar{position:fixed;left:0;top:0;bottom:0;width:220px;background:#111526;border-right:1px solid #22284a;padding:16px}
.sidebar h2{margin:0 0 8px;font-size:18px}
.sidebar nav{display:flex;flex-direction:column;gap:8px}
.sidebar nav a{padding:8px 10px;border-radius:8px;background:#171b33;text-decoration:none}
.sidebar nav a:hover{background:#1f2550}
.content{margin-left:220px;padding:16px;min-height:100vh}
.topbar h1{margin:0 0 16px}
.card{background:#14182d;border:1px solid #22284a;border-radius:16px;padding:16px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
input,button{padding:10px 12px;border-radius:10px;border:1px solid #2a3160;background:#0f1330;color:#fff}
button{cursor:pointer}
button.primary{background:#6c5ce7;border-color:#6c5ce7}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.candidate{border:1px solid #2a3160;padding:12px;border-radius:12px;background:#0f1330}
.candidate .number{font-weight:700;margin-bottom:6px}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:24px;background:#0f1330;border:1px solid #2a3160;padding:10px 14px;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.35)}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.6);display:grid;place-items:center}
.modal-content{background:#14182d;border:1px solid #22284a;border-radius:14px;padding:16px;min-width:300px;max-width:90vw}
.modal-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:12px}
.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.row{display:grid;grid-template-columns:60px 1fr 1fr auto auto;gap:8px;align-items:center;margin-bottom:8px}
.podium{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:12px}
.podium-col{background:#0f1330;border:1px solid #2a3160;border-radius:14px;padding:12px;text-align:center}
.podium-col .rank{font-size:24px;font-weight:800}
.bar{display:flex;gap:8px;align-items:center;margin:6px 0}
.bar>span{width:40%;font-size:14px}
.bar>div{height:14px;background:#6c5ce7;border-radius:8px;flex:1}
@media (max-width:800px){
  .sidebar{position:static;width:auto;height:auto}
  .content{margin:0}
  .row{grid-template-columns:40px 1fr 1fr auto auto}
}
