:root{font-family:"Microsoft YaHei UI","PingFang SC",system-ui,sans-serif;color:#183b33;background:#f3f6f3;font-size:15px;line-height:1.55;color-scheme:light}
*{box-sizing:border-box}
body{margin:0}
[hidden]{display:none!important}
header{background:#183f36;color:white}
.bar,main{width:min(1180px,calc(100% - 48px));margin:auto}
.bar{display:flex;align-items:center;gap:14px;min-height:62px}
.bar strong{font-size:18px}
.sep{opacity:.45}
.push{margin-left:auto}
main{padding:36px 0}
h1,h2,p{margin:0}
h1{font-size:clamp(26px,4vw,36px);letter-spacing:-.04em;line-height:1.25}
h2{font-size:20px;line-height:1.35}
p{color:#50665f}
button,input,select{font:inherit}
button{cursor:pointer;min-height:40px;border:1px solid transparent;border-radius:8px;padding:7px 15px;font-weight:600}
button:disabled{cursor:wait;opacity:.6}
.primary{background:#12634e;color:white}
.primary:hover{background:#104e40}
.quiet{background:white;border-color:#bbcdc5;color:#174e3e}
.quiet:hover{background:#edf3ee}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b57b14;outline-offset:2px}
.panel,dialog{background:white;border:1px solid #d5e1d9;border-radius:14px;padding:24px}
.login{max-width:460px;margin:clamp(16px,8vh,100px) auto;padding:32px}
.login p,dialog h2+p,.heading p{margin-top:8px}
label{display:block;font-weight:600;margin:18px 0 6px}
input,select{border:1px solid #9eafa5;border-radius:7px;background:white;color:inherit;max-width:100%;min-height:42px;padding:7px 10px}
input{width:100%}
.login button{width:100%;margin-top:24px}
.heading,.section-head,.actions{display:flex;align-items:center;justify-content:space-between;gap:14px}
.heading{margin:0 0 26px}
.section-head{margin-bottom:14px}
nav{display:flex;gap:6px;margin-bottom:14px;flex-wrap:wrap}
nav button{color:#465b53;background:transparent}
nav button[aria-pressed="true"]{background:#dcece3;color:#174c3d}
.scroll{overflow-x:auto}
table{border-collapse:collapse;width:100%;text-align:left}
th,td{padding:12px 9px;border-bottom:1px solid #e1e9e2;vertical-align:middle}
th{font-weight:600;color:#576a60;background:#f7f9f7;white-space:nowrap}
td{overflow-wrap:anywhere}
.row-actions{display:flex;gap:6px;flex-wrap:wrap;min-width:210px}
.row-actions button{font-size:14px;padding:4px 8px;min-height:32px}
button.danger{background:#9a382e;color:white}
button.danger:hover{background:#802921}
.row-actions .danger-link{border-color:#e0c2bc;color:#922f26}
.badge{display:inline-block;background:#e5f3e9;color:#1c5f42;border-radius:20px;padding:3px 9px;white-space:nowrap}
.badge.off{background:#f1e8e5;color:#844134}
.empty{text-align:center;padding:24px 0}
.message:not(:empty){padding:12px 0 0;color:#204b39}
.message.error{color:#923024}
.filters{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.filters label{margin:0 0 4px}
.summary{margin:10px 0 15px}
.hint,.section-head p{font-size:13px;color:#5e7066;margin-top:5px}
dialog{width:min(470px,calc(100% - 32px));box-shadow:0 10px 80px #183b332b;max-height:90vh;color:inherit}
dialog::backdrop{background:rgb(15 35 26 / 45%)}
dialog .actions{justify-content:flex-end;margin-top:22px}
.password{display:flex;gap:6px}
.password input{min-width:0}
.password button{white-space:nowrap}
@media(max-width:680px){.bar,main{width:calc(100% - 24px)}main{padding-top:22px}.panel{padding:15px}.login{padding:24px}.heading{align-items:flex-start}.heading .primary{flex-shrink:0}nav{gap:0}nav button{padding:7px 10px}th,td{padding:10px 7px}}
