
:root{font-family:system-ui,sans-serif;color:#111f39;background:#edf2fa;line-height:1.45}
*{box-sizing:border-box}
body{margin:0}
header{background:#0c1b35;color:white;padding:16px 24px;border-bottom:4px solid #72e5fb}
.bar,main{max-width:970px;margin:auto}
.bar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{font-weight:850}.demo{font-size:.8rem;color:#acbfdc}
main{padding:28px 20px 42px}
.hero{background:linear-gradient(116deg,#122953,#18497a);color:white;padding:clamp(22px,5vw,48px);border-radius:22px;margin-bottom:20px}
h1{font-size:clamp(2.2rem,6vw,4rem);line-height:1.05;letter-spacing:-.055em;margin:12px 0 8px}h2{margin:0 0 12px;letter-spacing:-.025em}p{margin:0 0 12px}
.pill{display:inline-block;font-size:.83rem;font-weight:800;padding:4px 10px;border-radius:99px;background:#b5f4ed;color:#103d41}.closed{background:#ffe4a6;color:#652e06}
nav{display:flex;gap:8px;margin-bottom:16px}
button,input,select{font:inherit;border-radius:10px;min-height:44px}
button{padding:9px 16px;cursor:pointer;background:#dce7f6;color:#132b4b;border:0;font-weight:760}
button[aria-selected=true],.primary{color:white;background:#1749b3}.wide{width:100%}
button:disabled{opacity:.55;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #06638a;outline-offset:2px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.card{min-width:0;background:white;border:1px solid #dbe4f3;border-radius:18px;padding:22px;box-shadow:0 4px 20px #172d5510}
label{display:block;font-weight:750;margin:0 0 12px}
input,select{display:block;width:100%;padding:8px 11px;background:#f6f8fc;border:1px solid #bbc9de;color:#132644;margin-top:4px;font-weight:500}
.muted{color:#4d5d76}.message{min-height:1.45em;margin:12px 0 0;color:#134c46;font-weight:700}
table{border-collapse:collapse;width:100%;text-align:left}th{color:#4d5d76;font-weight:650}
th,td{padding:10px 5px;border-bottom:1px solid #e8eef6}
td:last-child,th:last-child{text-align:right}.count{font-weight:800;font-variant-numeric:tabular-nums}.rank{width:48px;color:#31548b}
.admin-head{display:flex;justify-content:space-between;gap:12px;align-items:start}.admin-head button{flex-shrink:0}
.entries{margin-top:16px}.entries td:first-child{font-weight:750}.entries button{min-height:38px;padding:5px 10px}
dialog{border:0;border-radius:16px;padding:24px;width:min(420px,calc(100% - 32px));color:#132644}dialog::backdrop{background:#0c1b35aa}.actions{display:flex;flex-wrap:wrap;gap:8px}.danger{background:#fae3df;color:#842826}
[hidden]{display:none!important}
@media(max-width:640px){.grid{grid-template-columns:1fr}main{padding:16px 12px 28px}.card{padding:16px}.bar{flex-wrap:wrap}.admin-head{display:block}.entries{font-size:.9rem}}
:root{color:#142c23;background:#edf3ed}
header{background:#102a21;border-color:#f0c748}
.identity{display:flex;align-items:center;gap:14px}
.crest{width:58px;height:58px;object-fit:contain;background:white;border-radius:12px;padding:4px}
.brand{display:block;letter-spacing:.08em}.demo{color:#d4e4d9}
.hero{background:linear-gradient(112deg,#0c3223,#1b6544);border:1px solid #0c3223}
.pill{background:#f3d568;color:#222915}
button{background:#deebe1;color:#153928}
button[aria-selected=true],.primary{background:#185d3d;color:white}
.card{border-color:#d8e5dc}.muted,th{color:#4b6156}.rank{color:#236044}
input,select{background:#f5f8f5;color:#132b21;border-color:#afc6b8}
.resource-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:12px}
.resource{padding:14px;border-left:4px solid #e2ba3f;background:#f3f7f3;border-radius:8px;overflow-wrap:anywhere}
.resource h3{margin:0 0 5px}.resource a{color:#125238;font-weight:750}
.resource p{white-space:pre-wrap}
#resource-form{margin-top:14px}#resource-admin-list{list-style:none;padding:0}
#resource-admin-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #e4ebe5;overflow-wrap:anywhere}
textarea{display:block;width:100%;min-height:76px;margin-top:4px;padding:8px 11px;font:inherit;border:1px solid #afc6b8;border-radius:10px;background:#f5f8f5}
nav{flex-wrap:wrap}

.header-link{color:white;font-weight:700;text-underline-offset:3px}
#gate{max-width:420px}
#app-message:empty{display:none}
.header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin-left:auto}
#app-message{margin-bottom:12px}
