*{box-sizing:border-box}
body{margin:0;background:#0A0F0D;color:#F0F4F1;font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
button,input,textarea{font:inherit}
.banner{background:#ECB934;color:#0A0F0D;text-align:center;font-weight:700;font-size:14px;padding:6px 12px}
.noscript{padding:24px;color:#ECB934}
header.top{display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding:12px 24px;border-bottom:1px solid #1B2620}
header.top img{border-radius:50%}
.title{display:flex;flex-direction:column;margin-right:auto}
.title strong{font-family:Cambria,Georgia,"Times New Roman",serif;font-size:21px;color:#fff}
.sub{color:#ECB934;font-size:14px}
nav{display:flex;gap:6px}
.nav{background:none;border:1px solid transparent;color:#DCE5DF;padding:7px 14px;border-radius:999px;cursor:pointer}
.nav.on{border-color:#ECB934;color:#ECB934}
.who{display:flex;align-items:center;gap:10px;color:#DCE5DF}
main{max-width:1100px;margin:0 auto;padding:22px 24px 60px}
h1,h2,h3{font-family:Cambria,Georgia,"Times New Roman",serif;margin:0 0 10px;color:#fff}
h2{font-size:28px}
h3{font-size:20px;color:#ECB934}
p{margin:0 0 12px}
.muted{color:#B9C7BF}
.card{background:#121A16;border:1px solid #2A3A32;border-radius:14px;padding:20px;margin:0 0 18px}
.item{border-left:4px solid #ECB934}
.row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 10px}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px}
.btn{display:inline-block;padding:10px 20px;border-radius:999px;border:2px solid transparent;font-weight:700;cursor:pointer}
.btn.gold{background:#ECB934;color:#0A0F0D}
.btn.line{background:none;border-color:#1FA85A;color:#fff}
.btn.small{padding:5px 14px;font-size:14px}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.badge{display:inline-block;font-size:13px;font-weight:700;padding:3px 12px;border-radius:999px;background:#33463B;color:#fff}
.badge.good{background:#1FA85A;color:#06130C}
.badge.warn{background:#ECB934;color:#0A0F0D}
.badge.bad{background:#E5604D;color:#1A0A07}
.badge.info{background:#2D4A5C;color:#E8F3FA}
.badge.muted{background:#222D27;color:#B9C7BF}
table{width:100%;border-collapse:collapse;font-size:15px}
th,td{text-align:left;padding:8px 10px;border-bottom:1px solid #1F2B25;vertical-align:top}
th{color:#B9C7BF;font-weight:600}
.status{min-height:26px;margin:0 0 14px;color:#DCE5DF}
.status.bad,.error{color:#FF8A78}
.login{max-width:420px;margin:70px auto;padding:0 20px}
.login label{display:block;margin:14px 0 4px;color:#DCE5DF}
.login input,textarea{width:100%;padding:11px 12px;border-radius:10px;border:1px solid #2A3A32;background:#0A0F0D;color:#F0F4F1}
textarea{min-height:90px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 4px}
.chip{background:#0A0F0D;border:1px solid #2A3A32;color:#ECB934;padding:5px 12px;border-radius:999px;cursor:pointer}
.chip:hover,.chip:focus{border-color:#ECB934}
pre{background:#0A0F0D;border:1px solid #2A3A32;border-radius:10px;padding:14px;overflow:auto;max-height:420px;font-size:13px;color:#DCE5DF;white-space:pre-wrap;word-break:break-word}
ul{margin:0 0 12px;padding-left:20px;color:#DCE5DF}
li{margin:0 0 6px}
details{margin:0 0 18px}
summary{cursor:pointer;color:#ECB934;font-weight:700;padding:6px 0}
.mono{font-family:ui-monospace,Consolas,Menlo,monospace;font-size:13px;word-break:break-all}
.choice{display:block;margin:8px 0}
.choice input{width:auto;margin-right:8px}
:focus-visible{outline:2px solid #ECB934;outline-offset:2px}
@media (max-width:600px){header.top{padding:10px 14px}main{padding:16px 14px 50px}h2{font-size:23px}}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:0 0 18px}
.stat{background:#0A0F0D;border:1px solid #2A3A32;border-radius:12px;padding:12px 14px}
.stat b{display:block;font-size:26px;color:#fff}
.stat span{color:#B9C7BF;font-size:13px}
.bar{display:inline-block;width:90px;height:8px;background:#222D27;border-radius:4px;vertical-align:middle;overflow:hidden}
.bar i{display:block;height:100%;background:#E5604D}
.setting{margin:0 0 14px}
.setting label{font-weight:700;display:block;text-transform:capitalize}
main input[type=text],main input[type=number],main select{padding:8px 10px;border-radius:10px;border:1px solid #2A3A32;background:#0A0F0D;color:#F0F4F1}
.setting input[type=number],.setting input[type=text]{width:240px}
main input[type=checkbox]{width:20px;height:20px;accent-color:#ECB934}
progress{width:100%;height:14px}
#needstable td:first-child,#needstable th:first-child{width:36px}
.toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);background:#1E7A55;color:#fff;padding:12px 20px;border-radius:12px;font-weight:600;opacity:0;pointer-events:none;transition:opacity .2s;z-index:60;max-width:90vw;text-align:center}
.toast.show{opacity:1}
.toast.bad{background:#B3392B}
.notice{background:#2A2410;border:1px solid #7A6420;color:#F2D98B;padding:10px 14px;border-radius:10px;font-weight:600}
.gap{font-weight:700;color:#F2B8A8}
.chart{width:100%;height:auto;max-height:260px}
.c-assessed{fill:#4C6B9A}
.c-paid{fill:#3F9E6E}
.c-audit{fill:#ECB934}
.c-label{fill:#B9C7BF;font-size:11px}
@media print{header.top,nav,.noprint,.toast,button.btn,#status{display:none !important}body,main{background:#fff !important;color:#000 !important}.card,.stat{border:1px solid #888 !important;background:#fff !important;color:#000 !important;break-inside:avoid}.stat b,h2,h3,td,th,p{color:#000 !important}.gap{color:#000 !important}.notice{background:#fff !important;color:#000 !important;border:2px solid #000 !important}.c-assessed{fill:#444}.c-paid{fill:#999}}
.tablewrap{overflow-x:auto}
#rulestable select{max-width:120px}
#alertnote,#rulesreason{width:100%;min-height:64px;padding:8px 10px;border-radius:10px;border:1px solid #2A3A32;background:#0A0F0D;color:#F0F4F1}
#alertsummary{width:100%;min-height:90px;padding:8px 10px;border-radius:10px;border:1px solid #2A3A32;background:#0A0F0D;color:#F0F4F1}
