*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,sans-serif;background:#f3f4f6;color:#111827}header{background:#0b1220;color:white;padding:12px 20px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:12px}.brand img{width:74px;height:48px;object-fit:contain;background:#fff;border-radius:8px;padding:3px}.brand h1{font-size:21px;margin:0}.brand small{color:#cbd5e1}main{max-width:900px;margin:auto;padding:16px}.card{background:#fff;border-radius:16px;padding:18px;margin-bottom:16px;box-shadow:0 5px 20px #0001}.login-card{max-width:560px;margin:16px auto}label{display:block;font-weight:600}input,select,button{width:100%;padding:13px;margin:6px 0;border:1px solid #d1d5db;border-radius:10px;font-size:16px}button{background:#16a34a;color:white;border:0;font-weight:700;cursor:pointer}.secondary{background:#2563eb}.danger{background:#dc2626}.success{background:#16a34a}.tabs{display:flex;gap:8px;margin-bottom:16px}.tab{width:auto;background:#374151}.tab.active{background:#16a34a}.tab.logout{margin-left:auto}.toolbar{display:grid;grid-template-columns:1fr auto;gap:8px}.toolbar button{width:auto}.grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.num{aspect-ratio:1;border-radius:50%;margin:0;padding:0;background:#e5e7eb;color:#111827;font-size:18px}.num.mine{background:#16a34a;color:white}.num.taken{background:#ef4444;color:white;font-size:12px}.num:disabled{opacity:.9}.drawHead,.list-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.badge,.status{padding:5px 9px;border-radius:20px;background:#dcfce7;color:#166534;font-size:13px}.status.off{background:#fee2e2;color:#991b1b}.hist{padding:10px 0;border-bottom:1px solid #e5e7eb}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.user-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e5e7eb}.user-row span{display:block;color:#6b7280;font-size:14px}.user-actions{display:flex;align-items:center;gap:6px}.small{width:auto;padding:8px 10px;margin:0}.msg{min-height:22px;color:#b91c1c}@media(min-width:600px){.grid{grid-template-columns:repeat(10,1fr)}}@media(max-width:620px){header{align-items:flex-start}.brand img{width:58px}.brand small{display:none}.form-grid{grid-template-columns:1fr}.user-row{align-items:flex-start;flex-direction:column}.user-actions{width:100%;flex-wrap:wrap}.tabs{overflow:auto}.toolbar{grid-template-columns:1fr}.toolbar button{width:100%}}
.brand img{border:2px solid #d4a21d!important}.tabs{position:sticky;top:0;z-index:4;background:#f3f4f6;padding:6px 0}.tab[data-page='admin']{background:#9a741c}.tab[data-page='admin'].active{background:#16a34a}

@media(max-width:620px){main{padding:10px}.grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.num{font-size:15px;min-width:0}.num.taken,.num.mine{font-size:10px;line-height:1.05;overflow-wrap:anywhere}.toolbar{display:grid;grid-template-columns:1fr 1fr}.toolbar select{grid-column:1/-1}.toolbar button{width:100%}.card{padding:13px}.tabs{gap:5px}.tab{padding:10px 11px;font-size:14px}}

.install-tab{background:#b48618}.install-help{position:fixed;inset:0;background:#0008;z-index:99;display:grid;place-items:center;padding:20px}.install-help[hidden]{display:none}.install-help>div{background:#fff;border-radius:18px;padding:22px;max-width:390px;width:100%;box-shadow:0 15px 55px #0005}.install-help b{color:#163d26;font-size:20px}.install-help button{margin-top:8px}
