:root{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#25332c;background:#f2f4ef;font-synthesis:none;font-size:14px;--ink:#25332c;--muted:#5c6c60;--accent:#37674f;--accent-dark:#264e3a;--paper:#fdfefa;--line:#d5ded2;--soft:#e9f0e5}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}a{color:var(--accent-dark)}button{color:inherit;cursor:pointer}button:disabled{cursor:wait;opacity:.58}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #578166;outline-offset:3px}h1,h2,h3,p{overflow-wrap:anywhere}h1{font-size:28px;line-height:1.3;letter-spacing:-.025em;margin:0 0 8px}h2{font-size:18px;margin:0;font-weight:650}h3{font-size:15px;margin:14px 0 9px}p{line-height:1.75}small,.muted{font-size:12px;color:var(--muted)}.initial-loading{min-height:100dvh;display:grid;place-items:center;color:var(--muted)}.shell{min-height:100dvh}.sidebar{position:fixed;z-index:40;inset:0 auto 0 0;width:236px;background:#f9fbf6;border-right:1px solid var(--line);display:flex;flex-direction:column}.brand{padding:24px 22px 18px;border-bottom:1px solid var(--line)}.brand strong{display:block;font-size:16px;line-height:1.6}.brand small{display:block;margin-top:5px}.nav{padding:18px 12px;overflow:auto;flex:1}.nav a{display:flex;align-items:center;gap:12px;min-height:45px;border-radius:7px;padding:9px 13px;margin:3px 0;text-decoration:none;color:#4b5f50}.nav a.active{background:#dfebda;color:#264e3a;font-weight:700}.nav a:hover{background:#eaf0e5}.nav-mark{font-size:11px;width:21px;height:21px;display:grid;place-items:center;border:1px solid #bccdbc;border-radius:5px;color:#446650}.sidebar-footer{padding:16px 20px;border-top:1px solid var(--line)}.sidebar-footer strong,.sidebar-footer small{display:block;margin-bottom:6px}.sidebar-footer .link-button{margin-top:5px}.workspace{margin-left:236px;min-height:100dvh}.topbar{min-height:68px;padding:12px 32px;background:#f9fbf5eF;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:0;z-index:20}.topbar strong{font-size:14px}.topbar .scope-select{min-width:170px;max-width:260px}.topbar-right{display:flex;align-items:center;gap:10px}.page{max-width:1440px;padding:28px 32px 70px;margin:0 auto}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:24px}.page-heading p{margin:0;color:var(--muted);max-width:65ch}.eyebrow{font-size:12px;color:var(--accent);font-weight:600;margin:0 0 7px!important}.panel{padding:22px;background:var(--paper);border:1px solid var(--line);border-radius:11px;margin-bottom:20px;min-width:0}.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}.section-head p{margin:6px 0 0;color:var(--muted);font-size:13px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;border:1px solid #bbcdbb;border-radius:7px;padding:9px 13px;background:#fafcf6;color:#334d3b;font-size:13px;font-weight:600;white-space:nowrap;text-decoration:none;line-height:1.3}.button:hover{background:#e7f0e2}.button.primary{background:var(--accent);border-color:var(--accent);color:#fff}.button.primary:hover{background:var(--accent-dark)}.button.danger{color:#823f35;border-color:#d3b4aa;background:#fcf3ec}.button.compact{padding:6px 10px;min-height:36px}.link-button{border:0;background:none;padding:5px 0;color:var(--accent-dark);text-decoration:underline;font-size:13px}.tabs{display:flex;gap:3px;overflow:auto;border-bottom:1px solid #cbd6c5;padding-bottom:1px;margin-bottom:22px;scrollbar-width:thin}.tabs button{border:0;border-bottom:3px solid transparent;background:transparent;min-height:48px;padding:12px 16px;color:#52634f;white-space:nowrap}.tabs button.active{border-bottom-color:var(--accent);color:var(--accent-dark);font-weight:700}.tabs button:hover{background:#e8eee2}.toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:18px}.toolbar .field{min-width:150px;max-width:270px}.toolbar .search{flex:1;max-width:420px}.field{display:grid;gap:7px;min-width:0}.field-label{font-size:13px;font-weight:650;color:#314635;display:block}.required{font-size:10px;font-weight:400;color:#77582b;margin-left:5px}input:not([type=checkbox]):not([type=radio]),select,textarea{min-width:0;width:100%;min-height:44px;padding:10px 11px;border:1px solid #b9c8b7;background:#fffffc;border-radius:6px;color:#263b2a;font-size:14px}textarea{resize:vertical;line-height:1.7}input::placeholder,textarea::placeholder{color:#69766b}input[readonly]{background:#edf0e8}input[type=checkbox],input[type=radio]{width:18px;height:18px;accent-color:var(--accent);flex-shrink:0}.grid{display:grid;gap:17px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.wide{grid-column:1/-1}.check{display:flex;gap:9px;align-items:center;min-height:40px;font-size:13px;cursor:pointer}.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 13px;border:1px solid var(--line);border-radius:6px;padding:10px;max-height:250px;overflow:auto}.check-grid .check{align-items:flex-start;padding:7px 4px;min-height:40px}.form-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid var(--line);padding-top:18px;margin-top:22px}.help{font-size:12px;line-height:1.7;color:var(--muted);margin:10px 0}.notice{background:#edf1e6;border:1px solid #d1dbc7;padding:13px 15px;color:#4b5d40;border-radius:7px;font-size:13px;line-height:1.7;margin:14px 0}.error{color:#83392c;border:1px solid #ddbaac;background:#fff0e9;border-radius:7px;padding:12px;font-size:13px;line-height:1.7;white-space:pre-wrap}.success{color:#305d36;border:1px solid #b6cdb4;background:#edf6e7;border-radius:7px;padding:12px}.badge{display:inline-flex;border:1px solid #c5d2bf;border-radius:5px;padding:3px 7px;background:#edf3e7;color:#385830;font-size:11px;white-space:nowrap;line-height:1.5}.status-PENDING,.status-DRAFT,.status-RETURNED,.status-REPORTED,.status-INCOMPLETE{background:#faf0dc;border-color:#dbc69c;color:#755717}.status-REJECTED,.status-VOID,.status-WITHDRAWN,.status-INELIGIBLE{background:#f9eae2;border-color:#dfbbac;color:#81412f}.empty{padding:30px 18px;text-align:center;color:var(--muted)}.empty strong{font-size:15px;color:#41523d}.empty p{margin:9px auto 17px;max-width:55ch;font-size:13px}.loading{display:grid;gap:14px;padding:20px 0}.loading span{background:#e4ebdc;border-radius:4px;height:22px;width:100%}.loading span:first-child{width:56%}.loading p{font-size:13px;color:var(--muted);margin:0}.table-wrap{overflow:auto;width:100%;border:1px solid var(--line);border-radius:7px;margin:12px 0}.table{border-collapse:collapse;width:100%;min-width:680px;font-size:13px;text-align:left}.table th,.table td{padding:12px 13px;border-bottom:1px solid #e1e7da;vertical-align:top}.table th{background:#edf2e6;color:#4a5d41;font-weight:600;white-space:nowrap}.table tbody tr:last-child td{border-bottom:0}.table td p{margin:0;line-height:1.6}.table td small{display:block;margin-top:5px}.table .cell-wrap{max-width:400px;white-space:pre-wrap;overflow-wrap:anywhere}.table .cell-actions{white-space:nowrap}.table .button{min-height:35px;padding:6px 10px}.number{font-variant-numeric:tabular-nums;font-weight:650}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:18px 0;gap:20px}.metrics>div{border-left:1px solid var(--line);padding-left:20px}.metrics>div:first-child{border-left:0;padding-left:0}.metrics span{display:block;color:var(--muted);font-size:12px}.metrics strong{display:block;font-size:29px;line-height:1.4;margin-top:5px;font-variant-numeric:tabular-nums}.record-list{display:grid;gap:12px}.record{padding:17px;border:1px solid var(--line);border-radius:8px}.record header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.record header strong{font-size:15px}.record p{margin:10px 0;font-size:13px;white-space:pre-wrap}.record footer{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px;padding-top:12px;border-top:1px solid #e1e7da}.record small{display:block;margin-top:5px}.details{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.details>div{min-width:0}.details dt{font-size:12px;color:var(--muted);margin-bottom:4px}.details dd{margin:0;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.details .full{grid-column:1/-1}.drawer{border:1px solid #bac9b4;border-radius:10px;background:#fbfdf6;color:var(--ink);padding:0;width:min(650px,calc(100% - 24px));max-height:calc(100dvh - 24px);box-shadow:0 25px 90px #24372235}.drawer-wide{width:min(1050px,calc(100% - 24px))}.drawer::backdrop{background:#26372180}.editor-form{display:flex;flex-direction:column;max-height:calc(100dvh - 28px)}.dialog-head,.dialog-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;background:#f4f8ed;flex-shrink:0}.dialog-head{border-bottom:1px solid var(--line)}.dialog-foot{justify-content:flex-end;border-top:1px solid var(--line)}.dialog-body{padding:22px;overflow:auto}.dialog-body>.field,.dialog-body>.grid{margin-bottom:18px}.dialog-body h3{margin-top:22px}.dialog-body .table-wrap{max-height:55vh}.attachment-list{margin:10px 0 0;padding:0;list-style:none;display:grid;gap:5px}.attachment-list li{display:flex;justify-content:space-between;gap:10px;padding:6px 9px;background:#ebf1e5;border-radius:5px;font-size:12px;overflow-wrap:anywhere}.array-row{border:1px solid var(--line);border-radius:7px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;margin-bottom:12px}.array-row label{font-size:12px;display:grid;gap:6px}.array-row .check{display:flex}.toast{position:fixed;z-index:100;left:50%;bottom:25px;transform:translateX(-50%);max-width:calc(100% - 30px);padding:12px 17px;border-radius:8px;background:#2d5036;color:#fff;font-size:13px;box-shadow:0 8px 28px #253a2d25}.history{padding:0 0 0 20px}.history li{padding:0 0 20px 9px}.history small{display:block;margin:4px 0}.history p{margin:6px 0;font-size:13px;white-space:pre-wrap}.pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:18px}.menu-button,.sidebar-close,.scrim{display:none}.auth-page{min-height:100dvh;display:grid;place-items:center;padding:24px;background:#edf2e6}.auth-card{width:min(480px,100%);background:#fbfdf6;padding:30px;border:1px solid #cbd8c0;border-radius:12px}.auth-card h1{font-size:25px}.auth-card>p{font-size:13px;color:var(--muted);margin-bottom:24px}.auth-form{display:grid;gap:18px}.auth-form .button{width:100%;min-height:46px}.auth-card details{font-size:12px;color:var(--muted)}.auth-card summary{padding:8px 0;cursor:pointer}.auth-footer{font-size:12px;color:var(--muted);text-align:center;margin:22px 0 0}.policy-table input,.policy-table select{min-width:100px}.policy-table{min-width:640px}.policy-section{padding:18px 0;border-top:1px solid var(--line)}.policy-section:first-child{border-top:0}.inline-list{display:flex;gap:8px;flex-wrap:wrap;padding:0;list-style:none}.inline-list li{background:#eaf1e3;padding:7px 10px;border-radius:6px;font-size:12px}.disclosure{border-top:1px solid var(--line);padding-top:14px;margin-top:17px}.disclosure summary{color:var(--accent-dark);cursor:pointer;padding:6px 0;font-weight:600}.account-scope{max-height:300px;overflow:auto}.nowrap{white-space:nowrap}.text-right{text-align:right}.subtle-divider{border:0;border-top:1px solid var(--line);margin:22px 0}.file-drop{padding:18px;border:1px dashed #9bb18f;border-radius:7px;background:#f4f8ed}
@media(max-width:1100px){.sidebar{width:210px}.workspace{margin-left:210px}.topbar{padding:12px 22px}.page{padding:24px 22px 55px}.section-head{flex-wrap:wrap}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.sidebar{width:268px;transform:translateX(-102%);transition:transform 160ms ease}.sidebar.open{transform:translateX(0)}.sidebar-close{display:block;position:absolute;top:17px;right:14px}.brand{padding-right:65px}.workspace{margin-left:0}.menu-button{display:inline-flex}.scrim.open{display:block;position:fixed;inset:0;z-index:35;background:#26382170;border:0}.topbar{padding:10px 15px;gap:8px;min-height:64px}.topbar-left{display:flex;align-items:center;gap:9px}.topbar-right .button{display:none}.topbar .scope-select{min-width:0;width:145px;font-size:13px}.page{padding:22px 15px 45px}.page-heading{flex-direction:column;gap:12px;margin-bottom:20px}h1{font-size:25px}.panel{padding:17px;margin-bottom:16px}.section-head{gap:13px}.grid.two,.grid.three{grid-template-columns:1fr}.wide{grid-column:auto}.tabs{margin-left:-4px;margin-right:-4px}.tabs button{padding:11px 12px}.toolbar{gap:10px}.toolbar .field{min-width:calc(50% - 6px);max-width:none;flex:1}.toolbar .search{min-width:100%}.button{min-height:44px}.dialog-head,.dialog-foot{padding:16px}.dialog-body{padding:17px}.drawer{width:calc(100% - 16px);max-height:calc(100dvh - 16px)}.editor-form{max-height:calc(100dvh - 20px)}.dialog-foot .button{flex:1}.form-footer{flex-direction:column;align-items:stretch}.form-footer .button{width:100%}.details{grid-template-columns:1fr}.check-grid{grid-template-columns:1fr}.metrics{gap:10px}.metrics>div{padding-left:10px}.metrics strong{font-size:23px}.metrics span{font-size:11px}input:not([type=checkbox]):not([type=radio]),textarea,select{font-size:16px}.record{padding:14px}.record footer .button{flex:1}.record header strong{font-size:14px}.auth-card{padding:25px 21px}.array-row{grid-template-columns:1fr}.table td,.table th{padding:11px}.topbar strong{max-width:140px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.filter-row{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:14px 0 22px}.filter-row>label{display:grid;gap:7px;font-size:12px;color:var(--muted);min-width:160px;max-width:280px;flex:1}.filter-row .button{margin-bottom:1px}.date-helper{padding:12px;border:1px solid var(--line);border-radius:7px;margin-top:16px;display:flex;flex-wrap:wrap;gap:10px}.date-helper p{width:100%;margin:0}.date-helper .check{min-width:65px}.warning{background:#faf0df;border-color:#decda9}.topbar-left{display:flex;align-items:center;gap:10px}@media(max-width:780px){.topbar-right [data-reminders]{display:inline-flex;min-width:57px;font-size:12px;padding:7px}.topbar strong{max-width:88px}.topbar .scope-select{width:114px}.filter-row>label{min-width:calc(50% - 8px);max-width:none}.filter-row>.button{flex:1}.table .button{min-height:44px}.link-button{min-height:40px}}
