:root{font-family:Inter,system-ui,Arial,sans-serif;color:#17231d;background:#f5f7f5}*{box-sizing:border-box}body{margin:0}header{background:#0f6a43;color:white;padding:14px max(16px,calc((100% - 1000px)/2));display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:3}header strong{display:block;font-size:18px}header span{font-size:12px;opacity:.85}main{max-width:1000px;margin:24px auto;padding:0 14px}.card{background:white;border-radius:16px;padding:20px;box-shadow:0 3px 16px #00000010;margin-bottom:16px}.narrow{max-width:560px;margin:30px auto}h1{font-size:23px;margin:0 0 18px}label{display:block;font-size:13px;font-weight:700;margin:12px 0}input,select{width:100%;padding:13px;border:1px solid #ccd6cf;border-radius:10px;font-size:16px;margin-top:6px}button{border:0;background:#0f6a43;color:#fff;padding:12px 16px;border-radius:10px;font-size:15px;font-weight:700;cursor:pointer}.ghost{background:transparent;border:1px solid #ffffff80}nav{display:flex;gap:8px;overflow:auto;margin-bottom:16px}nav button{background:#dce9e1;color:#16452f;white-space:nowrap}nav button.active{background:#0f6a43;color:#fff}.hidden{display:none!important}.muted{color:#647168;font-size:14px}.result{padding:13px 4px;border-bottom:1px solid #edf0ed;display:flex;justify-content:space-between;gap:12px;align-items:center}.result strong{display:block}.badge{display:inline-block;padding:5px 9px;border-radius:999px;background:#e4f4e9;color:#17643c;font-size:12px;font-weight:800}.reward{background:#fff3cd;color:#765b00}.money{font-size:32px;font-weight:800;margin:8px 0}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check{display:flex;gap:8px;align-items:center}.check input{width:auto;margin:0}.history{width:100%;border-collapse:collapse}.history th,.history td{text-align:left;padding:9px 6px;border-bottom:1px solid #eee;font-size:13px}.actions{display:flex;gap:8px;flex-wrap:wrap}.ok{color:#147642;font-weight:700}#toast{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);background:#17231d;color:white;padding:11px 16px;border-radius:10px;display:none;z-index:10}@media(max-width:650px){main{margin-top:14px}.grid2{grid-template-columns:1fr}.card{padding:16px}.history th:nth-child(4),.history td:nth-child(4){display:none}}
.infoGrid{margin:18px 0}.infoGrid>div{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid #d9e2dc;border-radius:12px}.infoGrid strong{font-size:1.2rem}
@media(max-width:760px){.history{font-size:.82rem}.history th,.history td{padding:8px 5px}.card{overflow-x:auto}}
.headerRight{display:flex;align-items:center;gap:10px}.connected{font-size:13px;font-weight:700}.formError{background:#fff0f0;border:1px solid #e4a4a4;color:#8a1f1f;border-radius:10px;padding:11px 12px;margin:10px 0;font-weight:700;display:flex;gap:10px;align-items:center;justify-content:space-between}.linkButton{background:transparent;color:#8a1f1f;padding:4px 0;text-decoration:underline}.backButton{background:#607068!important}.secondary{background:#607068}.small{font-size:12px;padding:7px 9px}.statsGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.statsGrid>div{border:1px solid #d9e2dc;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:5px}.statsGrid strong{font-size:1.3rem}.userList{border-top:1px solid #edf0ed}.userRow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #edf0ed}.userRow strong,.userRow span{display:block}.warning{background:#fff3cd;color:#765b00}.okBadge{background:#e4f4e9;color:#17643c}hr{border:0;border-top:1px solid #e5e9e6;margin:22px 0}h2{font-size:18px;margin:0 0 10px}@media(max-width:650px){.statsGrid{grid-template-columns:1fr}.connected{display:none}.userRow{align-items:flex-start;flex-direction:column}.formError{align-items:flex-start;flex-direction:column}}

.danger{background:#a52a2a}.danger:hover{background:#8e2020}
