:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#243832;background:#f5f7f7;font-synthesis:none;--green:#18745b;--line:#e3eae7;--muted:#71827b}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #d6e0db;border-radius:9px;padding:10px 15px;background:white;color:#344c42;font-size:13px;font-weight:550;transition:background .15s}button:hover{background:#eef5f1}button:disabled{cursor:wait;opacity:.55}button.primary{background:var(--green);border-color:var(--green);color:white}button.primary:hover{background:#125b47}button.text-button{border:none;background:none;padding:6px 10px;font-weight:400;color:var(--muted)}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px;line-height:1.4}h2{font-size:17px;letter-spacing:-.25px}h3{font-size:16px}p{line-height:1.8}label{display:block;font-size:13px;font-weight:550;line-height:1.7;color:#40584d}input,select,textarea{width:100%;margin:6px 0 4px;padding:11px 12px;border:1px solid #d9e3de;border-radius:8px;color:#243d31;background:#fff;outline:none;font-size:14px}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #18745b12}textarea{resize:vertical;min-height:76px}input[type=checkbox]{width:16px;height:16px;accent-color:var(--green);margin:0}button:focus-visible,a:focus-visible{outline:3px solid #83bfa9;outline-offset:3px}.check{display:flex;align-items:center;gap:9px;font-weight:400;margin:16px 0}.muted{color:var(--muted);font-size:13px}.hint,.footnote{color:var(--muted);font-size:12px;line-height:1.8}.hint{margin:10px 0 18px}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:650;color:#7c9286;margin-bottom:8px}.required,.error{color:#b44e3c;font-size:12px}.brand-mark{display:grid;place-items:center;width:49px;height:49px;background:var(--green);color:#fff;border-radius:14px;font-size:25px;font-weight:600;box-shadow:0 5px 12px #16745b14}.brand-mark.small{width:36px;height:36px;font-size:19px;border-radius:10px}.login-wrap{min-height:100dvh;display:grid;place-items:center;padding:25px;background:radial-gradient(ellipse at 15% 20%,#e8f2ec,transparent 60%),#f6f8f7}.login-card{max-width:465px;width:100%;padding:40px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 20px 80px #304b3810}.login-card .eyebrow{margin-top:30px}.login-card h1{font-size:27px}.login-card form{margin:30px 0 22px}.login-card .wide{width:100%;margin-top:18px}.login-card .error{margin-top:10px}.app-shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;background:#fff;border-right:1px solid var(--line);padding:30px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:650;line-height:1.5}.brand small{display:block;font-size:11px;font-weight:400;color:var(--muted);letter-spacing:1px}.nav-label{font-size:10px;color:#95a49b;margin:48px 12px 14px;letter-spacing:1px}.nav{display:flex;align-items:center;gap:13px;width:100%;border:0;background:none;text-align:left;margin-bottom:6px;padding:12px 15px;color:#71867a;font-size:17px}.nav span{font-size:13px}.nav.active{background:#eaf4ef;color:#166749}.sidebar-bottom{margin-top:auto;font-size:10px;color:#82978a;line-height:2}.sidebar-bottom p{margin-left:14px}.dot{display:inline-block;width:5px;height:5px;background:#5c9b7c;border-radius:50%;margin-right:6px}.workspace{min-width:0}.topbar{height:72px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 42px;background:#fff9}.topbar .muted{font-size:12px}.admin-badge{font-size:11px;color:#5c7465;padding:5px 9px;border-radius:6px;border:1px solid var(--line);margin-right:8px}.content{max-width:1440px;margin:0 auto;padding:38px 42px 24px;min-height:calc(100dvh - 128px)}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}.page-heading .muted{margin-top:8px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.notice{background:#f0f5f2;border:1px solid #dce8e0;color:#577061;font-size:12px;line-height:1.9;border-radius:9px;padding:13px 17px;margin-bottom:22px}.notice.subtle{background:#f8faf9}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:33px}.stats article{background:#fff;border:1px solid var(--line);border-radius:13px;padding:21px 24px}.stats strong{display:block;font-size:31px;font-weight:550;letter-spacing:-1px;margin:9px 0 5px}.stats small{font-size:11px;color:#97a49d}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.section-title .muted{font-size:11px}.upstream-list{display:grid;gap:14px}.upstream-card{background:white;border:1px solid var(--line);border-radius:13px;padding:23px 25px}.card-top{display:flex;justify-content:space-between;gap:16px;margin-bottom:22px}.card-title{display:flex;align-items:center;gap:9px;margin-bottom:6px}.badge{display:inline-block;font-size:10px;line-height:1.5;background:#f2f5f3;border:1px solid #e4ece7;color:#809188;padding:3px 7px;border-radius:5px}.badge.ok{background:#edf7f0;border-color:#dceee3;color:#2d8057}.badge.warn{background:#fff4e8;border-color:#f1e2ce;color:#a26e26}.badge.danger{background:#fcf0ed;border-color:#f2ded8;color:#b7654d}.card-url{font-size:11px;color:#95a198;overflow-wrap:anywhere}.card-metrics{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:16px}.metric-label{display:block;font-size:11px;color:#8c9b92;margin-bottom:8px}.balance-number{font-size:27px;font-weight:550;letter-spacing:-.6px;line-height:1.5}.balance-number small{font-size:12px;letter-spacing:0;color:#738879;margin-right:7px;font-weight:500}.threshold-value{font-size:17px;font-weight:500;padding-top:6px}.metric-time{font-size:12px;line-height:1.8;padding-top:6px;color:#597565}.card-bottom{border-top:1px solid #eff3f0;margin-top:19px;padding-top:14px;display:flex;justify-content:space-between;gap:12px;align-items:center}.card-bottom .actions{gap:6px}.card-bottom button{padding:6px 9px;font-size:11px}.history-note{font-size:10px;color:#a67d46;margin-top:4px}.card-error{font-size:11px;color:#aa7151;line-height:1.7;max-width:55%}.empty{text-align:center;padding:66px 20px;border:1px dashed #d8e4dd;border-radius:13px;background:#ffffff8c}.empty-icon{font-size:35px;color:#84a994;margin-bottom:15px}.empty p{margin:13px 0 22px}.form-card{padding:27px;background:#fff;border:1px solid var(--line);border-radius:13px;margin-bottom:22px}.form-card h2{margin-bottom:17px}.form-card .section-title h2{margin:0}.narrow{max-width:700px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px 20px}.span-two{grid-column:1/-1}.sample-info{font-family:inherit;font-size:12px;white-space:pre-wrap;word-break:break-word;color:#597565;line-height:1.9;background:#f4f8f5;padding:15px;border-radius:8px}.history-item{padding:15px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;font-size:12px;line-height:1.8}.history-item:first-child{border-top:0}.history-item .badge{margin-left:9px}.history-item .muted{font-size:11px}.history-item button{font-size:11px;padding:5px 8px}footer{padding:16px 42px 21px;color:#9ba99f;font-size:10px;display:flex;justify-content:space-between;gap:20px}dialog{border:1px solid #dce6df;border-radius:17px;padding:30px;width:min(660px,calc(100vw - 28px));max-height:90dvh;box-shadow:0 24px 100px #173c2926;color:inherit}dialog::backdrop{background:#1e3e3059;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px}.dialog-heading .eyebrow{margin-bottom:5px}.close-dialog{border:0;padding:3px 9px;font-size:25px;color:#91a196}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.dialog-actions button{font-size:12px}#toast{position:fixed;top:20px;left:50%;transform:translateX(-50%);max-width:min(640px,92vw);background:#234d3b;color:#fff;padding:13px 21px;border-radius:11px;z-index:1000;box-shadow:0 10px 30px #234d3b30;font-size:13px;line-height:1.7}[hidden]{display:none!important}@media(max-width:1100px){.app-shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding:27px 15px}.topbar{padding:0 25px}.content{padding:30px 25px}.page-heading{align-items:flex-start;flex-direction:column}.stats{gap:10px}.stats article{padding:18px}.card-metrics{grid-template-columns:1.2fr 1fr}.card-metrics>div:last-child{grid-column:1/-1}.card-bottom{align-items:flex-start;flex-direction:column}.card-error{max-width:100%}}@media(max-width:680px){.app-shell{display:block}.sidebar{position:static;height:auto;padding:18px 18px 8px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:16px}.brand-mark.small{width:31px;height:31px;font-size:17px}.brand small{font-size:10px}.nav-label,.sidebar-bottom{display:none}nav{display:flex;gap:5px;margin-top:17px}.nav{justify-content:center;padding:10px 8px;gap:7px;margin:0}.nav span{font-size:12px}.topbar{height:54px;padding:0 18px}.content{padding:27px 16px 20px}.page-heading{gap:18px;margin-bottom:20px}h1{font-size:27px}.page-heading .actions{width:100%;gap:8px}.page-heading .actions button{flex:1;font-size:12px;padding:10px 9px}.stats{gap:8px;margin-bottom:26px}.stats article{padding:15px 12px}.stats .muted{font-size:11px}.stats strong{font-size:27px}.stats small{display:none}.section-title{align-items:flex-start}.section-title .muted{font-size:10px}.upstream-card{padding:19px 17px}.card-top{gap:10px}.card-title{flex-wrap:wrap;gap:7px}.card-metrics{gap:17px 10px}.balance-number{font-size:25px}.balance-number small{font-size:11px}.card-bottom .actions{gap:5px}.card-bottom button{padding:7px 8px}.form-card{padding:21px 18px}.form-grid{grid-template-columns:1fr;gap:12px}.span-two{grid-column:auto}dialog{padding:23px 20px}.dialog-actions{flex-direction:column-reverse}.dialog-actions button{width:100%}.dialog-heading{margin-bottom:22px}.notice{font-size:11px;padding:12px 13px}footer{padding:15px 18px;font-size:9px}footer span{display:none}.login-card{padding:30px 25px}.login-card h1{font-size:24px}.history-item{flex-direction:column;gap:6px}}
