:root{--bg:#f5f7fb;--surface:#fff;--ink:#172036;--muted:#748096;--line:#e7eaf1;--indigo:#5b54e8;--indigo-dark:#443dd0;--soft:#f0efff;--green:#13a76b;--amber:#e99a2b;--violet:#8d5ee8;--shadow:0 12px 30px rgba(27,37,67,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif;font-size:16px}.app-shell{min-height:100vh;display:grid;grid-template-columns:236px 1fr}.sidebar{position:sticky;top:0;height:100vh;background:#171b2e;color:#fff;padding:28px 18px 20px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;padding:0 10px 30px}.brand strong{font-size:20px;letter-spacing:.04em}.brand small{display:block;color:#9096ac;font-size:11px;text-transform:uppercase;letter-spacing:.14em;margin-top:2px}.brand-mark{width:35px;height:35px;border-radius:11px;background:linear-gradient(145deg,#7a73ff,#4e46df);display:flex;align-items:flex-end;justify-content:center;gap:3px;padding:8px;box-shadow:0 6px 18px rgba(96,87,238,.35)}.brand-mark span{width:4px;background:#fff;border-radius:3px}.brand-mark span:nth-child(1){height:9px;opacity:.65}.brand-mark span:nth-child(2){height:17px}.brand-mark span:nth-child(3){height:13px;opacity:.8}nav{display:grid;gap:7px}.nav-item{color:#9da4bb;text-decoration:none;display:flex;align-items:center;gap:13px;padding:12px 14px;border-radius:10px;font-size:14px;font-weight:500;transition:.2s}.nav-item:hover{background:#222740;color:#fff}.nav-item.active{color:#fff;background:linear-gradient(90deg,rgba(100,91,239,.28),rgba(100,91,239,.1));box-shadow:inset 3px 0 #6f67f2}.nav-item svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-item:first-child svg{fill:currentColor;stroke:none}.sidebar-foot{margin-top:auto}.secure-badge{font-size:11px;color:#8f96ad;padding:13px;border:1px solid #2b3046;border-radius:10px;margin-bottom:14px;display:flex;align-items:center;gap:8px}.secure-badge span{width:7px;height:7px;border-radius:50%;background:#43d695;box-shadow:0 0 0 4px rgba(67,214,149,.1)}.profile{border:0;background:transparent;color:#fff;width:100%;display:flex;align-items:center;text-align:left;gap:10px;padding:8px;cursor:pointer}.profile .avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#2c324a;font-size:13px}.profile>span:nth-child(2){font-size:13px;line-height:1.35}.profile small{display:block;color:#7f879f;font-size:11px}.profile b{margin-left:auto;color:#6f7790}.topbar{min-height:88px;background:rgba(255,255,255,.9);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 34px;position:sticky;top:0;z-index:10}.topbar p{margin:0 0 3px;color:var(--muted);font-size:12px}.topbar h1{margin:0;font-size:21px;letter-spacing:-.02em}.top-actions{margin-left:auto;display:flex;align-items:center;gap:13px}.sync-meta{display:flex;align-items:center;gap:9px;color:#3e465b;font-size:12px;padding-right:10px}.sync-meta small{display:block;color:#929aab;font-size:11px;margin-top:2px}.pulse{width:8px;height:8px;background:#23b77b;border-radius:50%;box-shadow:0 0 0 5px rgba(35,183,123,.1)}button{font:inherit}.icon-btn,.menu-btn{width:40px;height:40px;border:1px solid var(--line);border-radius:10px;background:#fff;display:grid;place-items:center;cursor:pointer;position:relative}.icon-btn svg,.menu-btn svg,.refresh-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.icon-btn i{position:absolute;width:7px;height:7px;border-radius:50%;background:#f05b62;border:2px solid white;right:8px;top:7px}.menu-btn{display:none}.refresh-btn{border:0;background:#252a3e;color:#fff;height:40px;border-radius:10px;padding:0 15px;display:flex;align-items:center;gap:8px;cursor:pointer;box-shadow:0 6px 15px rgba(26,31,50,.12)}.refresh-btn:hover{background:#343a52}.refresh-btn.loading svg{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.content{padding:26px 34px 50px;max-width:1540px;margin:0 auto}.security-callout{background:linear-gradient(100deg,#eff2ff,#f8f9ff);border:1px solid #dfe2fa;border-radius:13px;padding:14px 16px;display:flex;align-items:center;gap:13px;margin-bottom:24px}.shield{width:38px;height:38px;border-radius:10px;background:#fff;display:grid;place-items:center;color:var(--indigo);box-shadow:0 4px 12px rgba(74,69,197,.08)}.shield svg{width:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.security-callout strong{font-size:14px}.security-callout p{font-size:12px;color:#6f7890;margin:3px 0 0}.security-callout button{margin-left:auto;border:0;background:transparent;color:var(--indigo-dark);font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}.security-callout button span{margin-left:6px}.section-head,.panel-head{display:flex;align-items:flex-start;justify-content:space-between}.section-head{margin-bottom:14px}.section-head h2,.panel-head h2{font-size:16px;margin:0 0 5px;letter-spacing:-.01em}.section-head p,.panel-head p{margin:0;color:var(--muted);font-size:12px}.period-switch{background:#e9ecf3;border-radius:9px;padding:3px;display:flex}.period-switch button{border:0;background:transparent;color:#7a8398;padding:7px 11px;font-size:12px;border-radius:7px;cursor:pointer}.period-switch button.active{background:#fff;color:#262d41;box-shadow:0 2px 7px rgba(26,31,50,.09)}.metric-grid{display:grid;grid-template-columns:1.15fr 1fr 1fr 1fr;gap:14px}.metric-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:19px;min-height:184px;box-shadow:0 2px 3px rgba(27,35,57,.02);position:relative;overflow:hidden}.metric-card.primary{background:linear-gradient(145deg,#5a53e8,#4b44d4);color:#fff;border-color:transparent;box-shadow:0 14px 30px rgba(78,69,217,.22)}.metric-top{display:flex;align-items:center;justify-content:space-between}.metric-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.16)}.metric-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.metric-icon.blue{background:#eef0ff;color:#5a53e8}.metric-icon.amber{background:#fff4e5;color:#e09424}.metric-icon.violet{background:#f3ecff;color:#8659dc}.tag{font-size:11px;padding:4px 8px;border-radius:20px;background:rgba(255,255,255,.16)}.tag.quiet,.mini-label{background:#f4f5f8;color:#8a92a4}.mini-label{font-size:10px;padding:4px 7px;border-radius:5px}.metric-card>p{font-size:12px;color:#7e879b;margin:20px 0 7px}.metric-card.primary>p{color:rgba(255,255,255,.72)}.metric-card h3{font-size:26px;margin:0;letter-spacing:-.04em}.metric-card h3 em{font-style:normal;font-size:14px;color:#7e879b;font-weight:500}.metric-foot{display:flex;align-items:center;gap:7px;font-size:11px;color:#8b93a5;margin-top:16px}.metric-card.primary .metric-foot{color:rgba(255,255,255,.68)}.up{color:#c7ffdf;font-weight:700}.down{color:#1aae72;font-weight:700}.neutral{color:#adb3c0}.quota-bar{height:5px;background:#eef0f5;border-radius:10px;margin-top:18px;overflow:hidden}.quota-bar span{height:100%;display:block;border-radius:10px;background:linear-gradient(90deg,#665ff1,#918bf8)}.split{display:flex;justify-content:space-between;color:#9299a9;font-size:10px;margin-top:6px}.card-orbit{position:absolute;width:170px;height:170px;border:1px solid rgba(255,255,255,.09);border-radius:50%;right:-72px;bottom:-104px;box-shadow:0 0 0 32px rgba(255,255,255,.025),0 0 0 64px rgba(255,255,255,.018)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(250px,.8fr);gap:14px;margin-top:14px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:19px;box-shadow:0 2px 3px rgba(27,35,57,.02)}.legend{display:flex;gap:17px;color:#80899c;font-size:11px;padding-top:4px}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:15px;height:2px;border-radius:3px}.line-indigo{background:#625bec}.line-amber{background:#e8a449}.chart-wrap{height:280px;position:relative;margin-top:12px;padding-left:42px}.chart{width:100%;height:240px;overflow:visible}.grid-lines path{stroke:#edf0f5;stroke-width:1;vector-effect:non-scaling-stroke}.area{fill:url(#area)}.main-line{fill:none;stroke:#6159ed;stroke-width:3;stroke-linecap:round;vector-effect:non-scaling-stroke}.usage-line{fill:none;stroke:#e9a144;stroke-width:2;stroke-dasharray:5 5;stroke-linecap:round;vector-effect:non-scaling-stroke}.focus-point line{stroke:#bcc1cf;stroke-width:1;stroke-dasharray:3 4;vector-effect:non-scaling-stroke}.focus-point circle:first-of-type{fill:#fff;stroke:#6159ed;stroke-width:3}.focus-point circle:last-of-type{fill:#fff;stroke:#e9a144;stroke-width:2}.y-labels{position:absolute;left:0;top:11px;height:225px;display:flex;flex-direction:column;justify-content:space-between;color:#a0a6b4;font-size:10px}.x-labels{display:flex;justify-content:space-between;color:#a0a6b4;font-size:10px;margin-top:1px}.chart-tooltip{position:absolute;right:19%;top:32px;background:#22273a;color:#fff;border-radius:9px;padding:9px 11px;box-shadow:0 8px 18px rgba(23,27,45,.18);min-width:125px}.chart-tooltip small,.chart-tooltip span{display:block;color:#aeb4c5;font-size:9px}.chart-tooltip strong{font-size:12px;display:block;margin:3px 0}.gauge{width:132px;height:68px;overflow:hidden;margin:25px auto 8px;position:relative}.gauge:before{content:"";position:absolute;width:116px;height:116px;border:8px solid #e9ebf2;border-radius:50%;border-bottom-color:#665fe9;border-right-color:#665fe9;transform:rotate(45deg);left:0;top:0}.gauge-inner{text-align:center;padding-top:20px;position:relative}.gauge-inner strong{font-size:25px}.gauge-inner span{display:block;color:#19a56d;font-size:10px;font-weight:700}.health-copy{text-align:center}.health-copy strong{font-size:14px}.health-copy p{font-size:11px;color:#8a92a4;margin:4px 0 17px}.threshold-row{border-top:1px solid var(--line);padding:14px 0;display:flex;justify-content:space-between;font-size:11px;color:#6e778b}.threshold-row span{display:flex;align-items:center;gap:7px}.threshold-row i{width:7px;height:7px;background:#f0a238;border-radius:50%}.threshold-row strong{color:#32394d}.secondary-btn{width:100%;height:36px;background:#f4f3ff;color:#554ddc;border:0;border-radius:8px;font-size:11px;font-weight:600;cursor:pointer}.lower-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr);gap:14px;margin-top:14px}.text-btn,.dots{border:0;background:transparent;color:#5d56df;font-size:11px;font-weight:600;cursor:pointer}.dots{color:#8f96a7;font-size:17px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;margin-top:15px;font-size:12px}th{text-align:left;color:#969dac;font-size:10px;font-weight:600;background:#f8f9fb;padding:9px 12px}td{padding:12px;border-bottom:1px solid #eef0f4;color:#6d768a}tbody tr:last-child td{border-bottom:0}td strong{color:#2a3145}.account-name{display:flex;align-items:center;gap:9px;color:#343b50;font-weight:600}.account-name b{width:30px;height:30px;border-radius:8px;background:#ecebff;color:#5d55e0;display:grid;place-items:center;font-size:11px}.account-name b.test{background:#eaf8f2;color:#149869}.account-name small{display:block;color:#9aa1b0;font-size:9px;font-weight:400;margin-top:2px}.status-ok{color:#139565;font-size:10px;display:flex;align-items:center;gap:5px}.status-ok i{width:6px;height:6px;background:#21b679;border-radius:50%}.activity-list{padding:0;margin:10px 0 0;list-style:none}.activity-list li{display:flex;align-items:center;gap:10px;padding:9px 0}.activity-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;flex:none}.activity-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.activity-icon.sync{background:#eeecff;color:#625ae6}.activity-icon.rule{background:#eaf8f2;color:#16a06e}.activity-icon.user{background:#fff3e5;color:#dc8d22}.activity-list strong{font-size:11px}.activity-list p{font-size:9px;color:#999fae;margin:3px 0 0}.activity-list li>b{font-size:10px;margin-left:auto;color:#454c60}.modal-backdrop{position:fixed;inset:0;background:rgba(18,22,37,.56);z-index:50;display:grid;place-items:center;padding:20px;backdrop-filter:blur(5px)}.modal-backdrop[hidden]{display:none}.modal{background:#fff;border-radius:18px;width:min(540px,100%);padding:28px;box-shadow:0 25px 70px rgba(16,19,32,.3);position:relative;animation:modalIn .2s ease-out}@keyframes modalIn{from{opacity:0;transform:translateY(8px) scale(.98)}}.modal-close{position:absolute;right:17px;top:13px;border:0;background:transparent;color:#8c93a3;font-size:25px;cursor:pointer}.modal-kicker{font-size:10px;letter-spacing:.12em;color:#665ee8;font-weight:700}.modal h2{font-size:22px;margin:7px 0}.modal-lead{font-size:13px;color:#71798b;line-height:1.65;margin:0 0 18px}.flow-list{padding:0;list-style:none;margin:0;display:grid;gap:12px}.flow-list li{display:flex;gap:12px;padding:12px;background:#f8f9fc;border-radius:11px}.flow-list>li>b{width:25px;height:25px;display:grid;place-items:center;background:#ecebff;color:#5f57e1;border-radius:7px;font-size:11px;flex:none}.flow-list strong{font-size:13px}.flow-list p{font-size:11px;line-height:1.55;color:#7e8698;margin:3px 0 0}.flow-list code{color:#4d47c7;background:#ebeafe;padding:1px 4px;border-radius:3px}.modal-note{display:flex;gap:10px;margin:15px 0;padding:11px;border:1px solid #f2ddbc;background:#fff9ee;border-radius:9px;font-size:11px;line-height:1.5}.modal-note strong{color:#ad6b16;white-space:nowrap}.modal-note span{color:#7a6a55}.primary-btn{border:0;border-radius:9px;background:#5750df;color:#fff;font-weight:600;cursor:pointer;height:40px;padding:0 18px}.modal-done{width:100%}.toast{position:fixed;right:25px;bottom:25px;background:#24293d;color:#fff;border-radius:12px;padding:12px 16px;display:flex;align-items:center;gap:10px;box-shadow:0 12px 35px rgba(19,23,39,.25);z-index:60;opacity:0;transform:translateY(12px);pointer-events:none;transition:.25s}.toast.show{opacity:1;transform:none}.toast>span{width:24px;height:24px;border-radius:50%;background:#24b77d;display:grid;place-items:center;font-size:12px}.toast p{margin:0}.toast strong,.toast small{display:block}.toast strong{font-size:12px}.toast small{color:#aeb5c6;font-size:10px;margin-top:2px}
@media(max-width:1100px){.metric-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.lower-grid{grid-template-columns:1fr}.sidebar{width:210px}.app-shell{grid-template-columns:210px 1fr}.chart-tooltip{right:16%}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;transform:translateX(-100%);transition:.25s;width:240px;box-shadow:20px 0 60px rgba(12,16,31,.22)}.sidebar.open{transform:none}.menu-btn{display:grid;margin-right:12px}.topbar{padding:0 16px;min-height:74px}.topbar p,.sync-meta,.icon-btn{display:none}.topbar h1{font-size:18px}.refresh-btn{padding:0 11px}.refresh-btn span{display:none}.content{padding:18px 14px 35px}.security-callout{align-items:flex-start}.security-callout button{position:absolute;right:22px;margin-top:4px;font-size:0}.security-callout button span{font-size:17px}.security-callout p{padding-right:15px}.metric-grid{grid-template-columns:1fr 1fr;gap:10px}.metric-card{min-height:165px;padding:15px}.metric-card h3{font-size:22px}.dashboard-grid,.lower-grid{gap:10px;margin-top:10px}.panel{padding:15px}.chart-tooltip{display:none}.legend{display:none}.activity-panel{min-width:0}.modal{padding:24px 18px}.section-head{align-items:center}}
@media(max-width:480px){.metric-grid{grid-template-columns:1fr}.metric-card{min-height:158px}.section-head>div:first-child p{display:none}.period-switch button{padding:7px 8px}.security-callout .shield{display:none}.chart-wrap{height:235px;padding-left:33px}.chart{height:200px}.y-labels{height:186px}.top-actions{gap:7px}table{min-width:570px}}

.main-account-panel{padding:23px 24px;min-height:220px}.main-account-panel .panel-head h2{font-size:18px}.main-account-panel table{font-size:13px}.main-account-panel th{padding:11px 14px}.main-account-panel td{padding:15px 14px}.dashboard-grid.trend-only{grid-template-columns:1fr}.trend-actions{display:flex;align-items:center;gap:18px}.threshold-amount{white-space:nowrap}.threshold-warning{color:#d97706}.empty-row td{text-align:center;padding:34px 14px;color:#9299a9}
@media(max-width:760px){.main-account-panel{padding:17px 15px}.trend-actions{gap:8px}.trend-actions .legend{display:none}.main-account-panel table{min-width:760px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
.login-btn{height:40px;border:1px solid var(--line);background:#fff;color:#424a60;border-radius:10px;padding:0 14px;font-size:12px;font-weight:600;cursor:pointer}.login-btn:hover{border-color:#cbc8f6;color:#514adb}.login-btn.signed-in{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-row td{text-align:center;padding:30px;color:#969dac}.row-actions{display:flex;justify-content:flex-end;gap:6px}.row-action{border:1px solid var(--line);background:#fff;color:#60697d;border-radius:7px;padding:5px 8px;font-size:10px;cursor:pointer}.row-action:hover{border-color:#c8c5f7;color:#514adb}.row-action.danger:hover{border-color:#fac8ca;color:#d14950}.status-error{color:#d35157;font-size:10px;display:flex;align-items:center;gap:5px}.status-error i{width:6px;height:6px;background:#e85b60;border-radius:50%}.account-modal{width:min(510px,100%)}.field{display:grid;gap:6px;margin-bottom:13px}.field>span:first-child{font-size:12px;font-weight:600;color:#444c61}.field input,.field select{width:100%;height:42px;border:1px solid #dfe3eb;border-radius:9px;background:#fff;color:#252c40;padding:0 12px;font-size:13px;outline:none}.field input:focus,.field select:focus{border-color:#736ced;box-shadow:0 0 0 3px rgba(92,84,232,.1)}.secret-input,.money-input{position:relative;display:block}.secret-input input{padding-right:58px}.secret-input button{position:absolute;right:6px;top:6px;height:30px;border:0;background:#f3f4f8;color:#646d80;border-radius:6px;font-size:11px;cursor:pointer}.money-input b{position:absolute;left:12px;top:11px;font-size:13px;color:#7e8799}.money-input input{padding-left:30px}.credential-note{display:flex;align-items:flex-start;gap:9px;padding:10px 11px;border-radius:9px;background:#f5f6fb;color:#747d91;font-size:11px;line-height:1.55}.credential-note svg{width:17px;height:17px;flex:none;color:#5d56df;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.form-error{margin:11px 0 0;color:#c34147;background:#fff1f1;border-radius:8px;padding:9px 10px;font-size:11px}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:16px}.secondary-action{height:40px;border:1px solid var(--line);background:#fff;color:#555e72;border-radius:9px;padding:0 16px;cursor:pointer}.primary-btn[disabled]{opacity:.55;cursor:wait}.auth-gate{position:fixed;inset:0;z-index:45;background:rgba(245,247,251,.86);backdrop-filter:blur(9px);display:grid;place-items:center;padding:20px}.auth-gate[hidden]{display:none}.auth-card{width:min(390px,100%);background:#fff;border:1px solid var(--line);border-radius:20px;padding:34px;text-align:center;box-shadow:0 24px 70px rgba(28,35,65,.14)}.auth-card .brand-mark{margin:0 auto 18px}.auth-card h2{margin:0 0 8px;font-size:23px}.auth-card p{margin:0 auto 20px;color:#778094;font-size:13px;line-height:1.65;max-width:290px}.auth-card .primary-btn{width:100%}.auth-card small{display:block;margin-top:15px;color:#989fad;font-size:10px}.config-warning{background:#fff7e9;border-color:#f2d8a9}.metric-card.loading-data h3,.metric-card.loading-data .metric-foot{opacity:.3}.metric-card.loading-data:after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.35) 50%,transparent 70%);animation:shimmer 1.2s infinite}@keyframes shimmer{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
@media(max-width:760px){.login-btn{padding:0 10px}.account-modal{max-height:92vh;overflow:auto}.auth-card{padding:28px 22px}}

/* Multi-cloud dashboard refresh */
body{background:#f5f7fb}.app-shell.no-sidebar{display:block;min-height:100vh}.no-sidebar main{width:100%}.topbar{min-height:76px;padding:0 clamp(20px,4vw,64px);background:rgba(255,255,255,.94);box-shadow:0 1px 0 rgba(29,36,58,.06)}.top-brand{display:flex;align-items:center;gap:12px}.top-brand .brand-mark{width:38px;height:38px}.top-brand h1{font-size:20px}.content{padding:28px clamp(20px,4vw,64px) 60px;max-width:1680px}.security-callout{margin-bottom:18px;background:linear-gradient(110deg,#eef1ff,#f8f9ff 58%,#f1f8ff)}.panel{border-color:#e5e8f0;border-radius:17px;box-shadow:0 8px 30px rgba(33,40,68,.045)}.dashboard-grid.trend-only{margin-top:0;margin-bottom:18px}.trend-panel{padding:25px 26px 20px;min-height:430px}.eyebrow{display:block;font-size:9px;letter-spacing:.14em;color:#7670e7;font-weight:700;margin-bottom:6px}.trend-head h2,.account-head h2{font-size:19px;margin-bottom:5px}.account-selector{display:flex;gap:7px;flex-wrap:wrap;margin:20px 0 10px}.account-selector button,.provider-filter button{border:1px solid #e2e5ed;background:#fff;color:#6a7285;border-radius:9px;padding:7px 11px;font-size:11px;cursor:pointer;display:flex;align-items:center;gap:6px}.account-selector button i{width:7px;height:7px;border-radius:50%}.account-selector button.active,.provider-filter button.active{border-color:#6a63e9;background:#f0efff;color:#5049d7;box-shadow:0 3px 10px rgba(91,84,232,.1)}.chart-legend{display:flex;gap:18px;align-items:center;color:#737c90;font-size:10px}.chart-legend span{display:flex;align-items:center;gap:6px}.chart-legend i{width:18px;height:2px;background:#5b56e8}.chart-legend .dash-sample{background:repeating-linear-gradient(90deg,#5b56e8 0 4px,transparent 4px 7px)}.chart-legend small{margin-left:auto;color:#a0a6b3}.chart-wrap{height:302px;margin-top:10px;padding:0 49px}.chart{height:260px}.account-balance-line,.account-consumption-line{fill:none;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.account-consumption-line{stroke-width:1.8;stroke-dasharray:5 5;opacity:.72}.y-labels{left:0;top:10px;height:232px}.y-labels.right{left:auto;right:0;text-align:right}.x-labels{margin-top:3px}.chart-tooltip{right:64px;top:18px;max-width:310px;max-height:152px;overflow:auto;padding:10px 12px}.chart-tooltip>small{margin-bottom:5px}.chart-tooltip div{display:grid;grid-template-columns:7px minmax(65px,1fr) auto;align-items:center;gap:6px;padding:4px 0;border-top:1px solid rgba(255,255,255,.08)}.chart-tooltip div i{width:7px;height:7px;border-radius:50%}.chart-tooltip div span{color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-tooltip div strong{margin:0;text-align:right}.chart-tooltip div em{grid-column:2/4;font-size:9px;color:#aeb4c5;font-style:normal;text-align:right}.main-account-panel{padding:25px 26px}.account-head{align-items:center}.add-account-btn{height:39px;font-size:12px}.account-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0 12px;padding:11px 12px;background:#f8f9fc;border:1px solid #edf0f5;border-radius:12px}.provider-filter{display:flex;gap:6px}.sort-control{display:flex;align-items:center;gap:8px;color:#848b9a;font-size:11px}.sort-control select{height:34px;border:1px solid #dfe3eb;border-radius:8px;background:#fff;color:#4d5569;padding:0 30px 0 10px;font-size:11px}.main-account-panel table{margin-top:0}.main-account-panel th{background:#fafbfc;color:#8991a1;font-size:10px;letter-spacing:.02em}.provider-group td{padding:12px 14px 8px;background:#fff;border-bottom:1px solid #e9ecf2}.provider-group strong{font-size:12px;margin-left:8px}.provider-group small{margin-left:8px;color:#9aa1af;font-size:10px}.provider-logo{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#fff1ec;color:#ff6a2a;font-size:10px;font-weight:800}.provider-logo.huawei{background:#ffeff2;color:#d92745}.account-row:hover{background:#fbfbfe}.account-name b.aliyun{background:#fff0e9;color:#f26722}.account-name b.huawei{background:#ffedf1;color:#d52648}.balance-amount{font-size:13px}.data-note{display:block;color:#a3a9b5;font-size:9px;margin-top:3px}.mode-badge{display:block;width:max-content;margin-top:5px;padding:2px 6px;border-radius:5px;background:#f1f2f5;color:#777f90;font-size:9px}.mode-badge.auto{background:#eaf7f2;color:#148565}.masked-key{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px}.row-action.primary{border-color:#d7d4fa;color:#534cdd;background:#f7f6ff}.auto-threshold-note{margin:4px 0 13px;padding:11px 12px;background:#edf8f3;color:#497064;border-radius:9px;font-size:11px}.auto-threshold-note strong{color:#158561}.manual-threshold[hidden],.auto-threshold-note[hidden]{display:none}.field select{appearance:auto}
@media(max-width:900px){.topbar{padding:0 20px}.content{padding:20px}.trend-head,.account-head{gap:14px}.trend-actions{flex:none}.chart-tooltip{display:none}.main-account-panel table{min-width:980px}.account-toolbar{align-items:flex-start;flex-direction:column}.sort-control{width:100%;justify-content:space-between}.sort-control select{min-width:210px}}
@media(max-width:600px){.topbar{min-height:70px;padding:0 14px}.top-brand .brand-mark{width:34px;height:34px}.top-brand p,.sync-meta{display:none}.content{padding:14px}.security-callout{margin-bottom:12px}.trend-panel,.main-account-panel{padding:18px 15px}.trend-head{display:block}.trend-actions{margin-top:12px}.account-head{align-items:flex-start}.account-head p{display:none}.add-account-btn{padding:0 12px}.chart-legend small{display:none}.chart-wrap{padding:0 35px;height:255px}.chart{height:220px}.y-labels{height:195px}.provider-filter{width:100%}.provider-filter button{flex:1;justify-content:center}.sort-control select{min-width:0;flex:1}}

/* Chart bars and viewport-safe account dialogs */
.chart-legend .light-sample{height:8px;border-radius:2px;background:#5b56e8;opacity:.35}.account-balance-bar{opacity:.92}.account-consumption-bar{opacity:.34}.account-balance-bar,.account-consumption-bar{vector-effect:non-scaling-stroke;transition:opacity .18s ease}.account-balance-bar:hover,.account-consumption-bar:hover{opacity:1}
.modal-backdrop{overflow-y:auto;overscroll-behavior:contain}.account-modal{max-height:calc(100vh - 32px);overflow-y:auto}.account-modal .form-actions{position:sticky;bottom:-1px;z-index:2;background:#fff;padding:12px 0 2px;margin-top:8px;border-top:1px solid #eef0f4}
@media(max-height:760px){.account-modal{padding-top:22px;padding-bottom:18px}.account-modal .modal-lead{margin-bottom:12px}.account-modal .field{margin-bottom:10px}}

/* Chart hover details live outside the plot area */
.chart-hover-details{min-height:58px;margin:12px 0 2px;padding:10px 14px;border:1px solid #e7e9f2;border-radius:12px;background:#f8f9fc;display:grid;grid-template-columns:minmax(160px,1.4fr) repeat(3,minmax(120px,1fr));align-items:center;gap:14px;color:#343b50}.chart-hover-details>span{min-width:0;display:grid;gap:3px}.chart-hover-details small{color:#969dad;font-size:9px;font-weight:500}.chart-hover-details strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.chart-hover-details .hover-account{display:flex;align-items:center;gap:8px}.chart-hover-details .hover-account i{width:9px;height:9px;border-radius:50%;flex:none}.chart-hover-details .hover-account small{margin-left:auto}.chart-hover-details .hover-hint{grid-column:1/-1;color:#9299aa;font-size:11px;text-align:center}.account-bar-pair{cursor:pointer;outline:none}.account-bar-pair:focus .account-balance-bar,.account-bar-pair:hover .account-balance-bar{opacity:1}.account-bar-pair:focus .account-consumption-bar,.account-bar-pair:hover .account-consumption-bar{opacity:.68}
@media(max-width:760px){.chart-hover-details{grid-template-columns:1fr 1fr}.chart-hover-details .hover-account{grid-column:1/-1}.chart-hover-details .hover-hint{grid-column:1/-1}}
.chart-hover-details{grid-template-columns:minmax(160px,1.4fr) repeat(2,minmax(120px,1fr))}.daily-only-chart{padding-right:0}.daily-only-chart .chart{width:100%}
@media(max-width:760px){.chart-hover-details{grid-template-columns:1fr 1fr}.daily-only-chart{padding-right:0}}
