:root{font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:#25332f;background:#f4f6f4;font-synthesis:none;--green:#176b4a;--muted:#7b8882;--line:#e3e9e5;--red:#b54039}*{box-sizing:border-box}body{margin:0;font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.shell{min-height:100vh;display:grid;grid-template-columns:232px minmax(0,1fr)}aside{background:#152e25;color:#d2dfd8;padding:32px 20px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font-size:19px;font-weight:700;margin:0 12px 45px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#dfefce;color:#234933;font-size:22px;font-weight:700}.brand-sub{font-size:10px;letter-spacing:3px;color:#a0b4a8;display:block;margin-top:5px;font-weight:400}nav{display:flex;flex-direction:column;gap:8px}nav a{padding:14px 17px;border-radius:8px;color:#bacdc1;display:flex;gap:14px;align-items:center}nav a span{width:17px;font-size:18px}nav a:hover,nav a.active{background:#29473a;color:#f5fff5}nav a.active{box-shadow:inset 3px 0 #bada9b}.aside-bottom{margin-top:auto;padding:20px 12px 0;border-top:1px solid #365044;display:grid;gap:14px}.aside-bottom small{font-size:11px;color:#96ada0}.text-button{background:none;border:none;color:inherit;text-align:left;padding:0}.main{padding:36px 44px 20px;min-width:0;max-width:1800px;width:100%;margin:auto}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.eyebrow{font-size:11px;letter-spacing:1px;color:#7b8882}h1{font-size:28px;letter-spacing:-.6px;margin:10px 0 0;font-weight:650}h2{font-size:17px;margin:0;font-weight:650}h3{font-size:14px;margin:0}p{line-height:1.7}small{font-size:12px}.muted{color:var(--muted)}.header-right{display:flex;align-items:center;gap:20px}.primary,.secondary,.danger{border-radius:7px;min-height:38px;padding:9px 16px;border:1px solid transparent;font-weight:500}.primary{background:var(--green);color:white}.primary:hover{background:#105438}.secondary{background:white;border-color:var(--line);color:#36473e}.danger{background:#fff6f4;color:var(--red);border-color:#f3d9d4}.link-button{border:none;background:none;color:var(--green);padding:5px 8px}.link-button.danger-link{color:var(--red)}.card{background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:22px;overflow:hidden}.card-head{display:flex;justify-content:space-between;align-items:center;padding:22px 24px;border-bottom:1px solid var(--line);gap:16px}.card-body{padding:24px}.card-head p{margin:7px 0 0;font-size:12px;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:23px}.stat p{margin:0;color:#7c8880;font-size:12px}.stat strong{display:block;font-size:32px;font-weight:600;margin:15px 0 7px}.stat small{font-size:11px;color:#91a094}.stat:first-child{background:#e9f0e2;border-color:#dce7d3}.stat:first-child strong{color:#285637}.columns{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.callout{padding:16px 20px;background:#fff8e8;color:#8e6a25;border:1px solid #eddfb8;border-radius:9px;line-height:1.7;margin-bottom:22px}.callout.info{background:#edf4ee;color:#476951;border-color:#d8e6da}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:11px;font-weight:500;letter-spacing:.4px;color:#8b958f;background:#fafbf9}th,td{padding:17px 22px;border-bottom:1px solid #edf0ed}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcfa}td.name{font-weight:600}td .sub{font-size:11px;display:block;font-weight:400;color:var(--muted);margin-top:6px}.pill{display:inline-flex;align-items:center;gap:6px;border-radius:5px;font-size:11px;padding:5px 8px;line-height:1.2;background:#f1f3ef;color:#748178}.pill.green{background:#e9f4ec;color:#39744b}.pill.amber{background:#fbf1d9;color:#9e792d}.pill.red{background:#fbecea;color:#ae514b}.dot{width:6px;height:6px;background:currentColor;border-radius:50%}.empty{text-align:center;padding:60px 20px;color:#8b968e}.empty strong{display:block;font-size:16px;color:#526359;margin-bottom:10px}.toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.toolbar label{margin:0;min-width:150px}.toolbar input,.toolbar select{margin-top:5px}.rules{list-style:none;padding:0;margin:0;display:grid;gap:20px}.rules li{display:flex;gap:13px;line-height:1.6}.rule-number{flex:0 0 27px;height:27px;border-radius:50%;background:#eff3ea;color:#63804b;text-align:center;line-height:27px;font-size:12px}.rules small{display:block;color:var(--muted);margin-top:3px}.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.library-card{padding:24px;background:white;border:1px solid var(--line);border-radius:12px}.library-card h2{margin:18px 0 6px}.library-card .count{font-size:28px;margin:20px 0}.library-card .count span{font-size:12px;color:var(--muted);margin-left:7px}.library-actions{border-top:1px solid var(--line);padding-top:16px;display:flex;justify-content:space-between}.section-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:16px}.section-toolbar p{margin:0;color:var(--muted)}label{display:block;font-size:12px;font-weight:500;margin:0 0 18px}input,select,textarea{display:block;width:100%;border:1px solid #dce3dc;background:#fff;border-radius:6px;padding:10px 11px;color:#293c31;margin-top:8px;min-height:39px}input:focus,textarea:focus,select:focus{outline:2px solid #b1cbb6;outline-offset:1px;border-color:#80a789}textarea{resize:vertical;min-height:110px;line-height:1.7}input[type=checkbox]{width:16px;min-height:auto;margin:0;accent-color:var(--green)}.check{display:flex;gap:10px;align-items:center;font-size:13px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.full{grid-column:1/-1}.help{font-size:11px;line-height:1.6;color:var(--muted);margin-top:7px;font-weight:400}.group-title{border-top:1px solid var(--line);padding-top:20px;margin:7px 0 20px}.error{color:var(--red);font-size:13px;margin:10px 0;min-height:0}dialog{width:720px;max-width:calc(100vw - 32px);max-height:90vh;overflow:auto;padding:28px;border:none;border-radius:13px;box-shadow:0 20px 80px #10291b40}dialog::backdrop{background:#17332666;backdrop-filter:blur(2px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.icon-button{background:none;border:none;font-size:25px;color:#8c968f;padding:0 4px}.dialog-actions{border-top:1px solid var(--line);padding-top:20px;display:flex;justify-content:flex-end;gap:10px}.schedule-row{display:grid;grid-template-columns:1fr 32px 1fr 1.2fr 48px;gap:14px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}.schedule-row input{margin:0}.schedule-row .unit{display:flex;align-items:center;gap:10px;white-space:nowrap}.schedule-row .unit input{width:90px}.schedule-legend{display:flex;gap:20px;flex-wrap:wrap;font-size:12px;margin-top:18px;color:var(--muted)}.inline-actions{display:flex;gap:12px;margin-top:22px}.settings-form{max-width:700px}.record-reason{max-width:300px;white-space:normal;font-size:12px;color:#7a8580}.pagination{display:flex;justify-content:space-between;align-items:center;padding:18px 24px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.pagination div{display:flex;gap:8px}footer{font-size:11px;color:#9aa49d;display:flex;justify-content:space-between;padding:14px 0}.login-wrap{min-height:100vh;display:grid;place-items:center;background:#edf2e8;padding:24px}.login-card{width:410px;max-width:100%;padding:38px;background:white;border:1px solid #dde5d8;border-radius:15px}.login-card .eyebrow{margin-top:28px}.login-card h1{margin-bottom:12px}.login-card .muted{margin-bottom:30px}.login-card small{display:block;text-align:center;color:#a0aaa2;margin-top:24px;font-size:11px}.wide{width:100%}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#203b2b;color:white;box-shadow:0 5px 20px #0002;padding:14px 24px;border-radius:8px;z-index:10}details{white-space:normal;max-width:380px}summary{cursor:pointer;color:#738579;font-size:12px}pre{white-space:pre-wrap;word-break:break-word;font:12px/1.6 monospace}.loading{padding:80px 20px;text-align:center;color:var(--muted)}@media(max-width:1100px){.main{padding:28px 24px}.stats{grid-template-columns:repeat(2,1fr)}.columns{grid-template-columns:1fr}.library-grid{grid-template-columns:repeat(2,1fr)}.shell{grid-template-columns:200px 1fr}aside{padding:28px 12px}}@media(max-width:720px){.shell{display:block}aside{position:relative;height:auto;padding:17px}.brand{margin:0 0 20px}.brand-sub,.aside-bottom{display:none}nav{flex-direction:row;overflow:auto;gap:3px}nav a{flex:0 0 auto;padding:10px;font-size:12px}nav a span{display:none}.main{padding:24px 16px}h1{font-size:24px}.header-right .muted{display:none}.stats{gap:10px}.stat{padding:18px}.library-grid,.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.card-head,.section-toolbar{align-items:flex-start}.card-head{padding:20px}.card-body{padding:20px}.schedule-row{gap:5px;grid-template-columns:1fr 12px 1fr 1fr 25px}.schedule-row input{font-size:12px;padding:8px 5px}.schedule-row .unit{gap:4px;font-size:10px}.schedule-row .unit input{width:55px}.header-right{gap:8px}th,td{padding:14px}.toolbar{align-items:stretch}.toolbar label{min-width:130px;flex:1}.section-toolbar p{font-size:12px}footer span{display:none}}
.stat-total{font-size:17px;color:#8e9c90}.records-summary{padding-top:0}.worker-status{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 20px;color:var(--muted);font-size:12px}.filter-help{flex-basis:100%;margin:0}.link-button:disabled{cursor:not-allowed}
.account-periods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 20px}.account-periods label{border:1px solid var(--line);border-radius:8px;padding:14px;margin:0;background:#fafbf9}.account-periods .help{display:block}@media(max-width:720px){.account-periods{grid-template-columns:1fr}}
