*{box-sizing:border-box}body{margin:0;min-width:320px;color:#192027;background:#f5f7f8;font-family:Inter,PingFang SC,Microsoft YaHei,Noto Sans SC,Arial,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}button,input,select,textarea{font:inherit}button{cursor:pointer}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,rgba(32,76,101,.08),transparent 34%),linear-gradient(315deg,rgba(48,116,90,.1),transparent 40%),#f5f7f8}.login-panel{width:min(420px,100%);padding:32px;border:1px solid #dfe6e6;border-radius:8px;background:#fff;box-shadow:0 18px 45px #1f2a331a}.brand-row{display:flex;align-items:center;gap:12px;margin-bottom:28px;color:#1f4f5f}.brand-row.compact{margin-bottom:28px}.brand-row h1{margin:0;font-size:22px;line-height:1.15;letter-spacing:0}.brand-row p,.topbar p{margin:4px 0 0;color:#66747d;font-size:14px}.form-stack{display:grid;gap:16px}label{display:grid;gap:8px;color:#33414a;font-size:14px;font-weight:600}input,select,textarea{width:100%;border:1px solid #cfd9da;border-radius:6px;color:#192027;background:#fff;outline:none}input,select{height:42px;padding:0 12px}textarea{min-height:84px;padding:10px 12px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:#2d6f7c;box-shadow:0 0 0 3px #2d6f7c24}.checkbox-input{width:20px;height:20px;box-shadow:none!important}.checkbox-label{align-content:end;grid-template-columns:auto 24px;align-items:center;justify-content:start;column-gap:10px;min-height:66px}.adjustment-note{padding:10px 12px;border:1px solid #dfe6e6;border-radius:8px;color:#53646d;background:#f8fbfb;font-size:13px;line-height:1.5}.primary-button,.icon-button,.ghost-button,.nav-item{border:0;border-radius:6px}.primary-button{height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#fff;background:#246979;font-weight:700}.primary-button:disabled{cursor:default;opacity:.7}.error-text{border:1px solid #efcaca;border-radius:6px;padding:10px 12px;color:#9a2a2a;background:#fff3f1;font-size:14px}.success-text{border:1px solid #bfe4cd;border-radius:6px;padding:10px 12px;color:#1f6b45;background:#effaf3;font-size:14px}.captcha-row{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:10px}.password-field{position:relative}.password-field input{padding-right:46px}.password-toggle{position:absolute;top:1px;right:1px;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:6px;color:#53646d;background:transparent}.password-toggle:hover{color:#173f4a;background:#eef3f3}.captcha-code{height:42px;border:1px solid #b8c8cb;border-radius:6px;color:#173f4a;background:#eef5f5;font-size:18px;font-weight:800;letter-spacing:2px}.app-shell{min-height:100vh;display:grid;grid-template-columns:264px minmax(0,1fr)}.sidebar{padding:22px 16px;border-right:1px solid #dfe6e6;background:linear-gradient(180deg,#fff,#f8fbfb)}.sidebar-nav{display:grid;gap:12px}.nav-group{display:grid;gap:6px}.nav-group-title{padding:6px 10px 2px;color:#7a8a92;font-size:12px;font-weight:800;line-height:1}.nav-subitems{display:grid;gap:4px}.nav-item{min-height:36px;display:inline-flex;align-items:center;gap:10px;padding:0 12px;text-align:left;color:#42535c;background:transparent;font-size:14px;font-weight:650;letter-spacing:0;transition:background .14s ease,color .14s ease,box-shadow .14s ease}.nav-item:hover{color:#173f4a;background:#eef4f4}.nav-item.nav-primary{min-height:42px;color:#173f4a;background:#eef4f4;font-size:15px;font-weight:800}.nav-item.active{color:#103f4b;background:#dfeeee;box-shadow:inset 3px 0 #246979;font-weight:800}.workspace{min-width:0}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 28px;border-bottom:1px solid #dfe6e6;background:#fff}.topbar h2{margin:0;font-size:22px;letter-spacing:0}.toolbar{display:flex;align-items:center;gap:10px}.current-user{min-width:120px;display:grid;justify-items:end;gap:3px;color:#31424a;font-size:13px}.current-user span{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.current-user strong{color:#126144;font-size:12px}.current-user strong.warn{color:#8a4a10}.icon-button{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;color:#24424b;background:#eef3f3}.text-button{width:auto;padding:0 14px;gap:8px;font-weight:700}.content-band{padding:28px}.dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px}.alerts-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:18px}.alert-card{min-height:128px;display:grid;align-content:start;gap:10px;padding:16px;border:1px solid #dfe6e6;border-left-width:4px;border-radius:8px;background:#fff;min-width:0}.alert-card-head{display:flex;align-items:center;gap:8px;color:#53646d;font-size:14px;font-weight:700;min-width:0}.alert-card-head span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.alert-card strong{color:#17242b;font-size:34px;line-height:1}.alert-card p{margin:0;color:#63747d;font-size:13px;line-height:1.45}.alert-card.danger{border-left-color:#d84747;background:snow}.alert-card.warning{border-left-color:#d58a18;background:#fffaf1}.alert-card.notice{border-left-color:#2272b8;background:#f6fbff}.alert-card.info{border-left-color:#1b8f78;background:#f5fffc}.attention-panel,.provider-balance-panel{margin-bottom:24px;border:1px solid #dfe6e6;border-radius:8px;background:#fff}.provider-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:14px;padding:16px 18px}.provider-summary{min-height:116px;display:grid;align-content:start;gap:10px;padding:16px;border:1px solid #dfe6e6;border-left:4px solid #1b8f78;border-radius:8px;background:#f8fbfb}.provider-summary.warning{border-left-color:#d58a18;background:#fffaf1}.provider-summary span{color:#53646d;font-size:13px;font-weight:800}.provider-summary strong{color:#17242b;font-size:28px;line-height:1}.provider-summary p{margin:0;color:#63747d;font-size:13px;line-height:1.45}.provider-quota-note{margin:0;padding:0 18px 14px;color:#63747d;font-size:12px;line-height:1.5}.provider-table-wrap{margin:0 18px 18px}.provider-table{min-width:1120px}.highlight-row td{background:#fffaf1}.status-pill{display:inline-flex;align-items:center;justify-content:center;min-width:52px;height:26px;padding:0 9px;border-radius:8px;font-size:12px;font-weight:800;white-space:nowrap}.status-pill.ok{color:#147362;background:#ddf7f0}.status-pill.warn{color:#9a5b08;background:#fff0d5}.status-pill.danger{color:#9f2525;background:#ffe8e8}.status-pill.neutral{color:#53646d;background:#eef3f3}.heartbeat-stale{color:#9f2525;font-weight:700}.attention-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border-bottom:1px solid #edf1f1}.attention-head strong{display:block;color:#192027;font-size:16px}.attention-head span:not(.status){color:#63747d;font-size:13px}.alert-list{display:grid}.alert-item{display:grid;grid-template-columns:68px minmax(0,1fr) minmax(128px,auto);align-items:center;gap:14px;padding:14px 18px;border-bottom:1px solid #edf1f1}.alert-item:last-child{border-bottom:0}.alert-item strong{display:block;color:#17242b;font-size:14px}.alert-item p{margin:5px 0 0;color:#63747d;font-size:13px;line-height:1.45}.alert-item time{color:#7a8a92;font-size:12px;text-align:right}.alert-badge{display:inline-flex;justify-content:center;min-width:54px;padding:5px 8px;border-radius:8px;color:#24424b;background:#eef3f3;font-size:12px;font-weight:800}.alert-item.danger .alert-badge{color:#9f2525;background:#ffe8e8}.alert-item.warning .alert-badge{color:#9a5b08;background:#fff0d5}.alert-item.notice .alert-badge{color:#1f6096;background:#e4f2ff}.alert-item.info .alert-badge{color:#147362;background:#ddf7f0}.empty-alert{padding:22px 18px;color:#63747d;font-size:14px}.dashboard-summary-title{margin-top:4px}.metric-card{min-height:104px;display:grid;align-content:center;gap:10px;padding:18px;border:1px solid #dfe6e6;border-radius:8px;background:#fff}.metric-card span{color:#63747d;font-size:14px}.metric-card strong{color:#173f4a;font-size:30px;line-height:1}.table-toolbar{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;color:#4d5f68}.table-toolbar strong{color:#192027}.module-help{margin:6px 0 0;color:#66747d;font-size:13px}.code-rules{display:grid;gap:4px;max-width:1100px;margin:8px 0 0;padding:0;color:#5b6b73;font-size:12px;line-height:1.45;list-style:none}.code-rules li{position:relative;padding-left:12px}.code-rules li:before{content:"";position:absolute;left:0;top:.72em;width:4px;height:4px;border-radius:50%;background:#7a9299}.filter-panel{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));align-items:end;gap:14px;margin-bottom:14px;padding:14px;border:1px solid #dfe6e6;border-radius:8px;background:#fff}.scenario-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.scenario-tab{border:1px solid #d9e2ec;border-radius:6px;background:#fff;color:#526173;cursor:pointer;padding:7px 12px;font-size:12px}.scenario-tab.active{border-color:#1d4ed8;background:#eff6ff;color:#1d4ed8;font-weight:700}.filter-panel label{min-width:0;font-size:13px}.filter-actions{display:flex;align-items:center;gap:8px;min-height:42px}.data-table-wrap{width:100%;overflow:auto;border:1px solid #dfe6e6;border-radius:8px;background:#fff}.data-table{width:100%;min-width:960px;border-collapse:collapse;font-size:13px}.data-table th,.data-table td{max-width:260px;padding:12px 14px;border-bottom:1px solid #edf1f1;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.code-cell{max-width:100%;display:inline-grid;grid-template-columns:minmax(0,auto) 24px;align-items:center;gap:6px;vertical-align:middle;color:#263840;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:12px}.code-cell span{min-width:0;overflow:hidden;text-overflow:ellipsis}.copy-button{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d9e2e2;border-radius:6px;color:#53646d;background:#fff}.copy-button:hover{color:#173f4a;background:#eef4f4}.data-table th{color:#53646d;background:#f8fafb;font-weight:700}.data-table tr:last-child td{border-bottom:0}.data-table th.action-cell,.data-table td.action-cell{max-width:none;white-space:normal;overflow:visible;padding-left:10px;padding-right:10px}.data-table th.action-count-1,.data-table td.action-count-1{width:82px}.data-table th.action-count-2,.data-table td.action-count-2{width:142px}.data-table th.action-count-3,.data-table td.action-count-3{width:204px}.data-table th.actions-grid,.data-table td.actions-grid{width:168px}.plans-table{min-width:0;table-layout:fixed}.plans-table th,.plans-table td{max-width:none}.plans-table th:nth-child(1),.plans-table td:nth-child(1){width:48px}.plans-table th:nth-child(2),.plans-table td:nth-child(2){width:108px}.plans-table th:nth-child(3),.plans-table td:nth-child(3){width:108px}.plans-table th:nth-child(4),.plans-table td:nth-child(4),.plans-table th:nth-child(5),.plans-table td:nth-child(5),.plans-table th:nth-child(6),.plans-table td:nth-child(6),.plans-table th:nth-child(7),.plans-table td:nth-child(7),.plans-table th:nth-child(8),.plans-table td:nth-child(8),.plans-table th:nth-child(9),.plans-table td:nth-child(9),.plans-table th:nth-child(10),.plans-table td:nth-child(10){width:82px}.plans-table th:nth-last-child(2),.plans-table td:nth-last-child(2){width:70px}.plans-table th:last-child,.plans-table td:last-child{width:196px;max-width:196px;white-space:nowrap}.plans-table .row-actions{gap:6px}.plans-table .row-actions .small-button{font-size:12px;white-space:nowrap}.row-actions{gap:6px}.row-actions.actions-inline{display:flex;flex-wrap:nowrap}.row-actions.actions-grid{display:grid;grid-template-columns:repeat(2,minmax(76px,1fr))}.row-actions .small-button{font-size:12px}.row-actions.actions-inline .small-button{width:auto;min-width:58px;padding:0 8px;white-space:nowrap}.row-actions.actions-grid .small-button{width:100%;min-width:0;padding:0 6px;white-space:nowrap}.small-button{min-width:54px;height:30px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #cfd9da;border-radius:6px;color:#24424b;background:#fff;font-size:13px;white-space:nowrap}.small-button:disabled{cursor:default;opacity:.45}.small-button.danger{color:#963232;border-color:#efcaca;background:#fff7f5}.small-button.warn{color:#9a5b08;border-color:#efcd91;background:#fff7e8}.small-button.success{color:#126144;border-color:#a8d9c4;background:#effaf5}.empty-cell{height:92px;color:#7c8b93;text-align:center!important}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:14px;color:#53646d;font-size:14px}.status{min-width:68px;height:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font-size:13px;font-weight:700}.status.ok{color:#126144;background:#dff4ea}.status.warn{color:#8a4a10;background:#fff0cf}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:grid;place-items:center;padding:20px;background:#131d236b}.modal{width:min(440px,100%);max-height:calc(100vh - 40px);overflow:auto;padding:22px;border-radius:8px;background:#fff;box-shadow:0 18px 48px #0003}.wide-modal{width:min(780px,100%)}.extra-wide-modal{width:min(1120px,100%)}.modal header{position:sticky;top:-22px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;padding:0 0 14px;border-bottom:1px solid #edf1f1;background:#fff;box-shadow:0 10px 18px #ffffffeb}.modal h3{margin:0;font-size:18px;letter-spacing:0}.model-route-guide{display:grid;gap:8px;margin:-4px 0 16px;padding:12px 14px;border:1px solid #cfe2e5;border-radius:8px;background:#f3fafb;color:#36515a;font-size:12px}.model-route-guide strong{display:block;color:#173c47;font-size:13px}.model-route-guide p{margin:4px 0 0;line-height:1.6}.model-route-guide__details{display:grid;gap:3px;line-height:1.5}.model-route-guide code{padding:2px 4px;color:#1d5966;background:#e5f1f3;border-radius:3px;word-break:break-all}.model-route-guide__warning{color:#8a4a10}.ghost-button{height:34px;padding:0 12px;color:#45606a;background:#eef3f3}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding-bottom:14px}.field-help{display:block;margin-top:5px;color:#6b7b82;font-size:11px;font-weight:500;line-height:1.45}.full-field,.form-actions{grid-column:1 / -1}.form-actions{position:sticky;bottom:-22px;z-index:3;display:flex;justify-content:flex-end;margin:0 -22px -22px;padding:14px 22px 18px;border-top:1px solid #e3eaeb;background:#fff;box-shadow:0 -12px 22px #fffffff0}.form-actions .primary-button{min-width:120px}.form-section{display:grid;gap:12px;padding:14px;border:1px solid #e0e8e8;border-radius:8px;background:#fbfdfd}.form-section h4{margin:0;color:#263840;font-size:14px;font-weight:800}.form-section-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.quota-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.quota-summary div{min-width:0;display:grid;gap:5px;padding:12px;border:1px solid #dfe6e6;border-radius:8px;background:#f8fafb}.quota-summary span{color:#63747d;font-size:12px}.quota-summary strong{overflow:hidden;color:#192027;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.detail-section{display:grid;gap:10px;margin-top:18px}.detail-section h4,.payload-block h4{margin:0;color:#283941;font-size:14px}.detail-table{min-width:980px}.payload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.payload-block{min-width:0;display:grid;gap:10px}.payload-block pre{max-height:260px;overflow:auto;margin:0;padding:12px;border:1px solid #dfe6e6;border-radius:8px;color:#263840;background:#f8fafb;font-size:12px;line-height:1.55;white-space:pre-wrap;word-break:break-word}.adjust-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.adjust-summary div{min-width:0;display:grid;gap:5px;padding:12px;border:1px solid #dfe6e6;border-radius:8px;background:#f8fbfb}.adjust-summary span{color:#63747d;font-size:12px}.adjust-summary strong{min-width:0;overflow:hidden;color:#17242b;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.quota-table-wrap{max-height:360px}.quota-table{min-width:720px}@media(max-width:760px){.app-shell{grid-template-columns:1fr}.sidebar{display:none}.topbar{height:auto;min-height:88px;align-items:flex-start;padding:20px}.content-band{padding:20px}.alerts-grid,.dashboard-grid,.provider-summary-grid,.filter-panel,.form-grid,.form-section-grid,.quota-summary,.adjust-summary{grid-template-columns:1fr}.current-user{display:none}.alert-item{grid-template-columns:1fr;align-items:start}.alert-item time{text-align:left}.status{justify-self:start}.table-toolbar,.topbar,.filter-actions,.row-actions{flex-wrap:wrap}}
