:root{--accent:#7c3aed;--accent-light:#f3efff;--ink:#222536;--muted:#87909f;--line:#ececf3;--surface:#fff;--bg:#f7f8fc;--good:#159873;--danger:#dd5367;--radius:12px;font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-color:#a78bfa}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:var(--accent);text-decoration:none}[hidden]{display:none!important}.muted{color:var(--muted);line-height:1.7}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--accent);font-weight:600;margin-bottom:12px}.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;background:radial-gradient(ellipse at 18% 17%,#ebe1ff 0,transparent 40%),radial-gradient(ellipse at 82% 80%,#f0eaff 0,transparent 40%),#f8f9fc}.login-brand{display:flex;gap:12px;align-items:center;font-size:21px;font-weight:700;margin-bottom:32px}.brand-symbol{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:11px;background:var(--accent);color:white;font-size:30px;font-weight:800;line-height:1;padding-bottom:5px;box-shadow:0 4px 12px #7c3aed24}.brand-sub{display:block;font-size:8px;letter-spacing:2px;color:#9b93ab;margin-top:6px}.login-card{width:420px;max-width:calc(100vw - 36px);padding:40px;background:#fff;border:1px solid #f0ecf7;border-radius:18px;box-shadow:0 20px 70px #442a7010}.login-card h1{font-size:25px;letter-spacing:.5px;margin:0 0 8px}.login-card .muted{margin:0 0 28px}.login-card label{margin-top:20px}.login-card input{margin-top:9px;padding:13px 14px}.login-footer{color:#a5a0b1;font-size:11px;letter-spacing:1px;margin-top:26px}.app{display:flex;min-height:100vh}.sidebar{width:222px;background:var(--surface);border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;padding:29px 16px 20px;display:flex;flex-direction:column;z-index:4}.brand{color:var(--ink);display:flex;align-items:center;gap:11px;font-weight:700;font-size:17px;padding:0 12px 34px}.brand small{display:block;color:#a1a3af;font-size:10px;letter-spacing:2px;font-weight:400;margin-top:6px}.nav-label{font-size:10px;color:#abb0bf;letter-spacing:2px;padding:0 17px 14px}nav{display:flex;flex-direction:column;gap:4px}nav a{display:flex;align-items:center;gap:12px;padding:12px 16px;color:#7d8194;font-size:12px;border-radius:8px;transition:background .15s}nav a:hover{background:#f7f5fc}nav a.active{background:var(--accent-light);color:var(--accent);font-weight:600}nav svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}.sidebar-bottom{margin-top:auto;font-size:10px;color:#9296a6;line-height:2.2;padding:20px 16px 0}.sidebar-bottom a{display:block;color:#7e7a91}.status-dot{display:inline-block;width:6px;height:6px;background:#32b18d;border-radius:50%;margin-right:7px}.workspace{margin-left:222px;width:calc(100% - 222px);display:flex;flex-direction:column;min-height:100vh}.topbar{height:74px;border-bottom:1px solid var(--line);background:#ffffffd9;padding:0 36px;display:flex;align-items:center;justify-content:space-between;gap:16px}.breadcrumb{font-size:11px;color:#a3a6b3}.breadcrumb span{padding:0 12px;color:#d3d4dd}.breadcrumb strong{font-weight:500;color:#686b7c}.topbar-actions{display:flex;align-items:center;gap:11px;font-size:11px}.admin-name{font-weight:500}main{padding:32px 36px 20px;flex:1;min-width:0}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:26px}.page-head h1{font-size:24px;font-weight:650;letter-spacing:.5px;margin:0 0 8px}.page-head p{margin:0;font-size:11px;color:#9a9eae}.page-head-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.button{border:1px solid #e8e6ef;border-radius:7px;background:white;padding:10px 15px;color:#6c6b80;font-size:12px;display:inline-flex;gap:8px;align-items:center;justify-content:center;transition:background .15s}.button:hover{background:#f8f6fd}.button.primary{background:var(--accent);border-color:var(--accent);color:white;box-shadow:0 3px 8px #7c3aed12}.button.primary:hover{background:#6d28d9}.button.ghost{border-color:transparent;background:transparent}.button.danger{color:var(--danger);border-color:#f4d9df}.button.small{font-size:11px;padding:6px 9px}.button.full{width:100%}.button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:22px}.stat-card{background:var(--surface);border:1px solid var(--line);padding:21px 23px;border-radius:var(--radius);position:relative;min-height:133px}.stat-label{color:#8c90a0;font-size:11px;display:flex;align-items:center;gap:9px}.stat-value{font-size:30px;font-weight:650;margin:12px 0 8px;letter-spacing:-.6px}.stat-note{font-size:10px;color:#a5a8b5}.stat-mark{position:absolute;right:20px;top:21px;border-radius:9px;width:31px;height:31px;background:#f3edff;display:flex;align-items:center;justify-content:center;color:var(--accent)}.stat-mark svg{height:16px;width:16px;fill:none;stroke:currentColor;stroke-width:1.6}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:22px;margin-bottom:22px}.panel{border:1px solid var(--line);border-radius:var(--radius);background:white;min-width:0;overflow:hidden;margin-bottom:22px}.dashboard-grid .panel{margin-bottom:0}.panel-head{padding:21px 23px;border-bottom:1px solid #f3f2f7;display:flex;justify-content:space-between;align-items:center;gap:10px}.panel-head h2{font-size:13px;font-weight:600;margin:0}.panel-head span{font-size:10px;color:#9ca1af}.panel-body{padding:22px 23px}.chart{height:215px;width:100%;display:block}.chart-labels{display:flex;justify-content:space-between;font-size:9px;color:#aaaebc;margin-top:9px}.usage-row{display:grid;grid-template-columns:90px 1fr 35px;align-items:center;gap:11px;margin-bottom:20px;font-size:11px}.usage-row:last-child{margin-bottom:0}.bar-track{height:6px;background:#f2eff8;border-radius:3px;overflow:hidden}.bar-fill{height:100%;border-radius:3px;background:#a58ae9}.usage-row strong{text-align:right;font-weight:500;color:#7e729f}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:11px}th{background:#fcfbfe;font-weight:500;color:#9a9cac;padding:14px 20px;border-bottom:1px solid var(--line)}td{padding:16px 20px;border-bottom:1px solid #f3f2f7;color:#696b7b;max-width:330px;overflow:hidden;text-overflow:ellipsis}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfbff}.cell-strong{font-weight:550;color:#48445f}.mono{font-family:Consolas,monospace;font-size:11px}.badge{font-size:10px;display:inline-flex;align-items:center;padding:4px 8px;border-radius:5px;background:#f3eeff;color:#8b63c8;white-space:nowrap}.badge.good{background:#eaf8f1;color:#269a75}.badge.warn{background:#fff5e8;color:#ce9541}.badge.bad{background:#fff0f2;color:#d15d73}.badge.neutral{background:#f1f3f7;color:#8b91a0}.toolbar{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;gap:12px;border-bottom:1px solid var(--line);flex-wrap:wrap}.search-form{display:flex;gap:8px}.search-form input{width:240px;font-size:11px;padding:9px 12px}.toolbar-info{font-size:10px;color:#9da1af}.pagination{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-top:1px solid var(--line);font-size:10px;color:#9da1af}.pagination div{display:flex;gap:6px;align-items:center}.empty{padding:46px 20px;text-align:center;color:#a9a7b7;font-size:12px;line-height:2}.error{color:#cb5067;font-size:12px;line-height:1.8;min-height:0}.page-error{background:#fff4f5;border:1px solid #f4d6df;padding:18px;border-radius:10px}.workspace-footer{display:flex;justify-content:space-between;padding:12px 36px 24px;color:#b0b2be;font-size:9px;letter-spacing:.3px}label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#686477}input,select,textarea{width:100%;background:#fcfcfe;border:1px solid #e4e3ec;color:#4a465e;padding:11px 12px;border-radius:6px;min-width:0}input:focus,select:focus,textarea:focus{border-color:#b49ae9;outline:3px solid #f5f0ff}textarea{resize:vertical;line-height:1.7;min-height:110px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px}.form-grid>.wide{grid-column:1/-1}.checkbox-label{flex-direction:row;align-items:center;gap:9px;line-height:1.6}.checkbox-label input{width:15px;height:15px;accent-color:var(--accent);margin:0}.form-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:24px;padding-top:19px;border-top:1px solid var(--line)}dialog{border:1px solid #ece6f5;border-radius:14px;padding:0;background:white;max-width:calc(100vw - 32px);width:620px;box-shadow:0 22px 90px #24103933;color:var(--ink)}dialog::backdrop{background:#1e143b55;backdrop-filter:blur(2px)}#modal-body{padding:28px}#modal-body h2{font-size:19px;font-weight:600;margin:0 0 8px}#modal-body>.muted{font-size:11px;margin:0 0 25px}.modal-close-form{position:absolute;right:13px;top:11px}.modal-close{border:0;background:transparent;font-size:24px;line-height:1;color:#9994a6;padding:4px}.toast{position:fixed;bottom:30px;left:calc(50% + 111px);transform:translateX(-50%);background:#34254f;color:white;border-radius:9px;padding:12px 21px;font-size:12px;box-shadow:0 8px 25px #38255422;z-index:20;max-width:90vw}.toast.bad{background:#ac3553}.details{display:grid;grid-template-columns:120px 1fr;gap:15px;font-size:12px;margin:22px 0}.details dt{color:#9a94a8}.details dd{margin:0;word-break:break-all;color:#5f596f}.note{padding:13px 15px;background:#f8f5ff;color:#9685b2;border-radius:7px;font-size:11px;line-height:1.8;margin:15px 0}.editor-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px}.editor-layout textarea{min-height:290px;font-family:Consolas,"Microsoft YaHei",monospace;font-size:12px}.preview{border:1px solid #ebe8f1;border-radius:7px;padding:18px;min-height:290px;overflow:auto;max-height:470px;font-size:13px;line-height:1.8;overflow-wrap:anywhere}.preview img{max-width:100%}.preview pre{background:#f7f5fa;padding:12px;overflow:auto}.preview table{white-space:normal}.preview th,.preview td{padding:7px;border:1px solid #e8e3ef}.secret-output{font-family:Consolas,monospace;font-size:12px;min-height:170px}.row-actions{display:flex;gap:5px}.loading{padding:90px 20px;text-align:center;color:#a59db6;font-size:12px}.loading:before{content:"";display:block;width:23px;height:23px;border:2px solid #e9e1f6;border-top-color:var(--accent);border-radius:50%;margin:0 auto 14px;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.period-fields{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.period-fields label{font-size:10px}.period-fields input{font-size:11px;padding:8px}.scope-list{display:flex;flex-wrap:wrap;gap:16px}.wide-modal{width:1000px}.section-space{margin-top:22px}@media(min-width:1600px){main{max-width:1550px;width:100%;align-self:center}}@media(max-width:1100px){.sidebar{width:190px}.workspace{margin-left:190px;width:calc(100% - 190px)}main{padding:25px}.topbar{padding:0 25px}.stat-grid{gap:12px}.stat-card{padding:18px}.stat-value{font-size:26px}.stat-mark{display:none}.dashboard-grid{grid-template-columns:1fr}.toast{left:calc(50% + 95px)}}@media(max-width:720px){.sidebar{width:72px;padding:22px 8px}.brand{padding:0 8px 30px}.brand>span:last-child,.nav-label,.sidebar-bottom{display:none}nav a{padding:14px;justify-content:center}nav a span{display:none}.workspace{margin-left:72px;width:calc(100% - 72px)}.topbar{padding:0 15px;height:60px}.breadcrumb{display:none}.topbar-actions{margin-left:auto}.admin-name{max-width:100px;overflow:hidden}.stat-grid{grid-template-columns:repeat(2,1fr)}main{padding:20px 14px}.page-head{flex-direction:column}.page-head h1{font-size:21px}.workspace-footer{padding:16px;gap:12px}.form-grid,.editor-layout{grid-template-columns:1fr}.search-form input{width:160px}.toast{left:calc(50% + 36px)}.stat-card{min-height:118px}.panel-head{padding:18px}.page-head-actions{width:100%}}
