*{margin:0;padding:0;box-sizing:border-box}
:root{
  --text:#111b3d; --muted:#657187; --faint:#8792a4; --border:#e7edf6;
  --primary:#417cff; --primary2:#6957ef;
  --grad:linear-gradient(135deg,#4d83ff,#7459ed);
  --bar-grad:linear-gradient(#417cff,#6957ef);
  --up:#19a978; --down:#f04c5d; --accent:#20ad83;
  --shadow:0 10px 30px rgba(38,66,115,.07);
  --shadow-filter:0 12px 35px rgba(46,79,142,.09);
  --glow-blue:rgba(59,130,246,.1); --glow-green:rgba(39,179,106,.1);
  --glow-purple:rgba(139,92,246,.1); --glow-cyan:rgba(6,182,212,.1); --glow-red:rgba(251,82,106,.1);
}
body{font-family:"PingFang SC","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text);min-height:100vh;background:linear-gradient(180deg,#fff,#fbfdff 55%,#fff);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;overflow-x:clip;font-size:15px;font-weight:600}
button{font:inherit;cursor:pointer;font-weight:700}
.ambient{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.ambient i{position:absolute;border-radius:50%;filter:blur(10px)}
.ambient .a{width:700px;height:300px;left:-80px;top:-180px;background:radial-gradient(circle,#ded8ff,transparent 72%)}
.ambient .b{width:900px;height:280px;right:-150px;top:-175px;background:radial-gradient(circle,#c8faf5,transparent 70%)}
.progress{position:fixed;top:0;left:0;height:3px;background:var(--grad);width:0;z-index:9999;transition:width .3s}
.hero{position:relative;z-index:1;max-width:1820px;margin:0 auto;padding:26px 2.2vw 20px;display:flex;justify-content:space-between;align-items:flex-end}
.hero .eyebrow{margin:0;color:#7891c4;font-size:12px;letter-spacing:.2em;font-weight:800}
.hero h1{margin:3px 0 0;font-size:32px;font-weight:800}
.hero .sync{font-size:14px;color:#8290a5;font-weight:700}
.hero .sync i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#36cf94;box-shadow:0 0 0 5px #e7fbf4;margin-right:8px}
.wrap{position:relative;z-index:1;max-width:1820px;margin:0 auto;padding:0 2.2vw 70px}
.filter-card{position:sticky;top:10px;z-index:20;display:flex;align-items:flex-end;gap:13px;padding:28px 18px 16px;margin-bottom:20px;background:rgba(255,255,255,.9);border:1px solid #e4eaf3;border-radius:16px;box-shadow:var(--shadow-filter);backdrop-filter:blur(18px)}
.settings-btn{position:absolute;top:10px;right:12px;width:28px;height:28px;border:none;border-radius:8px;background:#f7f9fd;color:#70819a;display:grid;place-items:center;cursor:pointer;padding:0}
.settings-btn:hover{background:#eef1fe;color:#596cff}
.settings-btn svg{display:block}
.modal-mask{position:fixed;inset:0;background:rgba(28,41,72,.35);z-index:1000;display:none;align-items:center;justify-content:center;padding:20px}
.modal-mask.open{display:flex}
.modal{width:min(420px,100%);background:#fff;border-radius:16px;box-shadow:0 20px 50px rgba(28,51,93,.22);padding:22px 24px;border:1px solid #e7edf6}
.modal h3{margin:0 0 6px;font-size:18px;font-weight:800}
.modal .hint{font-size:13px;color:#8792a4;margin-bottom:18px;line-height:1.5}
.modal .field{margin-bottom:14px}
.modal .field label{display:block;font-size:13px;font-weight:700;color:#56657a;margin-bottom:8px}
.modal .field input{width:100%;height:42px;border:1px solid #dfe6f1;border-radius:9px;padding:0 12px;font-size:15px;font-weight:700;outline:none;color:var(--text)}
.modal .field input:focus{border-color:var(--primary)}
.modal .actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px;margin-left:0}
.filter-row{display:flex;flex-wrap:wrap;gap:13px;align-items:flex-end;width:100%}
.filter-group{display:flex;flex-direction:column;gap:8px;min-width:180px}
.filter-group label{font-size:14px;font-weight:700;color:#56657a}
.filter-group input[type=date]{height:42px;border:1px solid #dfe6f1;border-radius:9px;padding:0 12px;font-size:14px;font-weight:700;outline:none;background:#fff;color:#526176}
.filter-group input[type=date]:focus{border-color:var(--primary)}
.station-field{position:relative;width:280px;min-width:280px}
.station-btn{width:100%;height:42px;padding:0 12px;display:flex;justify-content:space-between;align-items:center;border:1px solid #dfe6f1;border-radius:9px;background:#fff;color:#526176;font-size:14px;font-weight:700}
.station-btn .caret{color:#a4adba}
.station-menu{display:none;position:absolute;top:calc(100% + 8px);left:0;width:100%;max-height:320px;overflow:auto;padding:12px;background:#fff;border:1px solid #e3e9f2;border-radius:12px;box-shadow:0 14px 36px rgba(28,51,93,.16);z-index:30}
.station-menu.open{display:block}
.station-menu .menu-head{display:flex;justify-content:space-between;align-items:center;padding:4px 4px 10px;font-size:14px;font-weight:700;color:var(--text)}
.station-menu .menu-actions{display:flex;gap:12px}
.station-menu .menu-head button{border:0;background:none;color:#596cff;font-size:14px;font-weight:700;cursor:pointer;padding:0}
.station-menu label{display:flex;gap:9px;align-items:center;padding:8px 5px;font-size:14px;font-weight:600;color:#526176;cursor:pointer}
.station-menu input{accent-color:#5f6dff}
.ranges-group{flex:1;min-width:0}
.range-btns{display:flex;gap:8px;flex-wrap:wrap}
.range-btns button{height:42px;padding:0 18px;border:1px solid #e1e7f0;border-radius:8px;background:#fff;font-size:14px;font-weight:700;cursor:pointer;color:#657287}
.range-btns button.active{background:var(--grad);color:#fff;border-color:transparent;box-shadow:0 7px 17px rgba(83,95,244,.23)}
.dim-btns{flex-shrink:0}
.dim-btns button{height:32px;padding:0 14px;font-size:13px}
.member-kpi{margin-left:10px;font-size:13px;font-weight:700;color:#8792a4}
.date-pair{height:42px;display:flex;align-items:center;gap:6px;white-space:nowrap;padding:0 13px;border:1px solid #e1e7f0;border-radius:8px;color:#69768a;font-size:14px;font-weight:700}
.date-pair .cal{color:#a4adba}
.date-pair .sep{color:#a4adba}
.date-pair input[type=date]{border:none;height:auto;padding:0;color:#69768a;font-size:14px;font-weight:700;background:transparent}
.actions{display:flex;align-items:flex-end;gap:10px;margin-left:auto}
.btn{height:42px;border-radius:8px;padding:0 18px;font-size:14px;font-weight:700;cursor:pointer;border:1px solid #e1e7f0;background:#fff;color:#657287}
.btn-primary{background:var(--grad);color:#fff;border-color:transparent;font-weight:800;box-shadow:0 7px 17px rgba(83,95,244,.23)}
.btn:hover{opacity:.92}
.updated{font-size:13px;color:#9aa5b5;line-height:1.6;white-space:nowrap;font-weight:600}
.updated b{color:#738096;font-weight:800}
.kpi-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin-bottom:18px}
.kpi-card{min-height:124px;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #e5ebf4;border-radius:17px;box-shadow:0 10px 30px rgba(40,70,120,.075);opacity:0;transform:translateY(12px);animation:fadeInUp .5s forwards}
.kpi-card:nth-child(6n+1){background:linear-gradient(120deg,#fff,#eef6ff)}
.kpi-card:nth-child(6n+2){background:linear-gradient(120deg,#fff,#edfbf7)}
.kpi-card:nth-child(6n+3){background:linear-gradient(120deg,#fff,#f8effe)}
.kpi-card:nth-child(6n+4){background:linear-gradient(120deg,#fff,#f0f2ff)}
.kpi-card:nth-child(6n+5){background:linear-gradient(120deg,#fff,#eafcff)}
.kpi-card:nth-child(6n+6){background:linear-gradient(120deg,#fff,#fff0f1)}
.kpi-card .label{font-size:14px;font-weight:700;color:var(--muted);margin-bottom:8px}
.kpi-card .val{font-size:26px;font-weight:800;line-height:1.2;margin:0;font-variant-numeric:tabular-nums;word-break:break-all}
.kpi-card .val .unit{font-size:14px;font-weight:700;color:#7b8798;margin-left:4px}
.kpi-card .sub{font-size:13px;color:var(--up);font-weight:800;margin-top:8px;line-height:1.5}
.kpi-card .sub .up{color:var(--up);font-weight:800}
.kpi-card .sub .down{color:var(--down);font-weight:800}
.kpi-card .sub .total{font-weight:700;color:var(--faint);margin-left:5px}
.kpi-icon{width:80px;height:80px;border-radius:50%;display:grid;place-items:center;background:transparent;flex-shrink:0;overflow:hidden}
.kpi-icon img{width:100%;height:100%;object-fit:contain;display:block}
.section{margin-bottom:18px}
.section-title{font-size:18px;font-weight:800;margin-bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.section-title::before{content:'';width:4px;height:20px;border-radius:4px;background:var(--bar-grad);display:inline-block;margin-right:10px;flex-shrink:0}
.kwh-split{display:grid;grid-template-columns:minmax(0,3fr) minmax(280px,1fr);gap:18px;align-items:stretch}
.kwh-split .chart-box{min-height:0;padding:16px 16px 12px}
.kwh-split .chart-box h3{font-size:16px;margin-bottom:0}
.kwh-split .chart-box h3::before{display:none}
.heat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;position:relative;z-index:5;background:#fff}
.heat-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.heat-card .export-btn{position:static}
.heat-hint{font-size:12px;font-weight:700;color:#9aa5b5;white-space:nowrap}
.heat-card{display:flex;flex-direction:column}
.heat-scroll{overflow:auto;max-height:420px;border:1px solid #eef2f8;border-radius:10px;flex:1}
.heat-table{border-collapse:separate;border-spacing:3px;min-width:max-content}
.heat-table th,.heat-table td{padding:0;font-size:12px;font-weight:700;color:#5d6b80;text-align:center;white-space:nowrap}
.heat-table thead th{color:#8792a4;padding:4px 0 6px;position:sticky;top:0;background:#fff;z-index:2}
.heat-table .sticky{position:sticky;left:0;z-index:3;background:#fff;text-align:left;padding:0 10px 0 8px;min-width:108px;max-width:132px;overflow:hidden;text-overflow:ellipsis;color:var(--text)}
.heat-table thead .sticky{z-index:4}
.heat-cell{display:block;width:28px;height:22px;border-radius:3px;cursor:pointer;position:relative}
.heat-scroll.is-sparse{overflow-x:hidden}
.heat-scroll.is-sparse .heat-table{width:100%;min-width:0;table-layout:fixed;border-spacing:6px}
.heat-scroll.is-sparse .heat-table .sticky{width:120px;min-width:120px;max-width:120px}
.heat-scroll.is-sparse .heat-cell{width:100%;min-width:36px;height:36px}
.heat-scroll.is-roomy .heat-cell{height:40px}
.heat-scroll.is-dense .heat-table{min-width:max-content}
.heat-scroll.is-dense .heat-cell{width:28px;height:22px}
.heat-cell.on::after{content:'';position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;background:#fff;border-radius:50%;box-shadow:0 0 0 1px rgba(65,124,255,.28)}
.heat-legend{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:12px;font-weight:700;color:#8792a4}
.heat-legend .bar{width:88px;height:8px;border-radius:99px;background:linear-gradient(90deg,#eef4ff,#417cff)}
.heat-note{margin-top:8px;font-size:12px;font-weight:600;color:#9aa5b5;line-height:1.5;display:flex;align-items:flex-start;gap:6px}
.heat-note i{flex-shrink:0;width:14px;height:14px;margin-top:1px;border-radius:50%;background:#eef3ff;color:#5b6cff;font-size:10px;font-weight:800;font-style:normal;display:grid;place-items:center}
.heat-tip{position:absolute;z-index:8;min-width:168px;padding:10px 12px;background:#fff;border:1px solid #e7edf6;border-radius:10px;box-shadow:0 10px 24px rgba(28,51,93,.16);pointer-events:none;font-size:12px;line-height:1.65}
.heat-tip .d{font-weight:800;color:var(--text)}
.heat-tip .s{color:#5d6b80;font-weight:700}
.heat-tip .v{color:var(--text);font-weight:800}
.heat-tip .chg.up{color:var(--up);font-weight:800}
.heat-tip .chg.down{color:var(--down);font-weight:800}
.rank-card{display:flex;flex-direction:column}
.rank-card h3 .rank-top{color:#5b6cff;font-weight:800}
.rank-cols{display:grid;grid-template-columns:28px minmax(0,1fr) 108px 48px;gap:8px;padding:10px 4px 6px;font-size:12px;font-weight:800;color:#8792a4}
.rank-list{display:flex;flex-direction:column;gap:2px;flex:1}
.rank-row{display:grid;grid-template-columns:28px minmax(0,1fr) 108px 48px;gap:8px;align-items:center;padding:7px 4px;border-radius:8px}
.rank-card.is-roomy .rank-list{justify-content:space-evenly;gap:4px}
.rank-card.is-roomy .rank-row{padding:10px 4px}
.rank-row:hover{background:#f7f9fe}
.rank-badge{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:12px;font-weight:800}
.rank-badge.r1{background:#f5a524}
.rank-badge.r2{background:#b8c0cc}
.rank-badge.r3{background:#d4895a}
.rank-num{width:22px;text-align:center;color:#5d6b80;font-size:13px;font-weight:800}
.rank-name{font-size:13px;font-weight:800;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rank-vol{min-width:0}
.rank-vol b{display:block;font-size:13px;font-weight:800;color:var(--text);font-variant-numeric:tabular-nums}
.rank-vol i{display:block;height:6px;margin-top:5px;border-radius:99px;background:#417cff;max-width:100%}
.rank-pct{text-align:right;font-size:12px;font-weight:700;color:#9aa5b5;font-variant-numeric:tabular-nums}
.rank-more{display:block;width:100%;margin-top:8px;height:34px;border:none;background:transparent;color:#5b6cff;font-size:13px;font-weight:800;cursor:pointer}
.rank-more:hover{background:#f3f5ff;border-radius:8px}
.charts-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}
.chart-box{background:#fff;border:1px solid var(--border);border-radius:17px;padding:18px 18px 7px;box-shadow:var(--shadow);position:relative;min-height:280px}
.chart-box.full{grid-column:1/-1}
.chart-box h3{font-size:18px;color:var(--text);margin-bottom:10px;font-weight:800;display:flex;align-items:center;gap:10px}
.chart-box h3::before{content:'';width:4px;height:20px;border-radius:4px;background:var(--bar-grad);display:inline-block;flex-shrink:0}
.export-btn{position:absolute;top:16px;right:18px;height:28px;border:none;background:#f7f9fd;color:#70819a;border-radius:7px;padding:0 12px;font-size:13px;font-weight:700;letter-spacing:.5px}
.export-btn:hover{background:#eef1fe;color:#596cff}
.session-table-wrap{overflow:auto;background:#fff;border:1px solid var(--border);border-radius:17px;box-shadow:var(--shadow)}
.session-table{width:100%;border-collapse:collapse;font-size:13px;min-width:980px}
.session-table th,.session-table td{padding:13px 10px;border-bottom:1px solid #eef2f8;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
.session-table th{background:#f3f6fb;color:#5d6b80;font-weight:800}
.session-table th:first-child,.session-table td:first-child,.session-table td.name{text-align:left;padding-left:18px}
.session-table td{color:var(--text);font-weight:700}
.session-table tbody tr:hover{background:#f7f9fe}
.session-table td.up{color:var(--up);font-weight:800}
.session-table td.down{color:var(--down);font-weight:800}
.session-table td.empty{text-align:center;color:#9aa5b5;padding:36px 12px}
.session-table th .help-q{margin-left:5px}
.session-table th .help-tip{bottom:auto;top:calc(100% + 8px)}
.session-table th .help-tip::after{top:auto;bottom:100%;border-top-color:transparent;border-bottom-color:#1f2a44}
.session-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px 14px;flex-wrap:wrap}
.session-count{font-size:13px;font-weight:700;color:#9aa5b5}
.session-pager{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.session-pager button{min-width:32px;height:32px;padding:0 8px;border:1px solid #e2e8f2;border-radius:6px;background:#fff;cursor:pointer;font-size:13px;font-weight:700;color:#7d899a}
.session-pager button.active{background:var(--grad);color:#fff;border-color:transparent}
.session-pager button:disabled{opacity:.4;cursor:not-allowed}
.session-pager .jump{display:inline-flex;align-items:center;gap:6px;margin-left:8px;font-size:13px;font-weight:700;color:#7d899a}
.session-pager .jump input{width:44px;height:32px;border:1px solid #e2e8f2;border-radius:6px;text-align:center;font-weight:800;color:var(--text);outline:none}
.session-pager .jump input:focus{border-color:var(--primary)}
.help-q{position:relative;display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;margin-left:3px;padding:0;border:1px solid #c5cee3;border-radius:50%;background:#f7f9fd;color:#70819a;font-size:10px;font-weight:800;line-height:1;cursor:pointer;vertical-align:middle;flex-shrink:0}
.help-q:hover,.help-q.open{background:#eef1fe;color:#596cff;border-color:#b8c2f0}
.help-tip{position:absolute;z-index:40;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);width:max-content;max-width:220px;padding:8px 10px;border-radius:8px;background:#1f2a44;color:#fff;font-size:11px;font-weight:600;line-height:1.45;text-align:left;box-shadow:0 8px 20px rgba(28,41,72,.22);white-space:normal;pointer-events:none}
.help-tip::after{content:'';position:absolute;left:50%;top:100%;transform:translateX(-50%);border:5px solid transparent;border-top-color:#1f2a44}
.pager{display:flex;justify-content:center;gap:7px;margin:16px}
.pager button{width:32px;height:32px;border:1px solid #e2e8f2;border-radius:6px;background:#fff;cursor:pointer;font-size:14px;font-weight:700;color:#7d899a}
.pager button.active{background:var(--grad);color:#fff;border-color:transparent}
.skel{background:linear-gradient(90deg,#f1f4fa 25%,#f8fafd 50%,#f1f4fa 75%);background-size:200% 100%;animation:shimmer 1.2s infinite;border-radius:8px;height:100%;min-height:80px}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
@keyframes fadeInUp{to{opacity:1;transform:translateY(0)}}
.error-banner{background:#fff0f1;color:#ef4052;border:1px solid #fdd;padding:12px 16px;border-radius:10px;margin-bottom:16px;font-size:13px;display:none}
.loading-tip{text-align:center;color:var(--faint);padding:40px;font-size:14px}
.login-page{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(160deg,#f7f9ff 0%,#eef6ff 40%,#f4fffc 100%)}
.login-page::before,.login-page::after{content:'';position:absolute;border-radius:50%;filter:blur(12px);pointer-events:none}
.login-page::before{width:520px;height:280px;left:-60px;top:-100px;background:radial-gradient(circle,#ded8ff,transparent 72%)}
.login-page::after{width:620px;height:260px;right:-80px;bottom:-80px;background:radial-gradient(circle,#c8faf5,transparent 70%)}
.login-card{position:relative;z-index:1;width:min(420px,100%);background:rgba(255,255,255,.95);border:1px solid #e4eaf3;border-radius:20px;box-shadow:0 18px 48px rgba(46,79,142,.12);padding:36px 32px 30px;backdrop-filter:blur(16px)}
.login-card .brand{color:#7891c4;font-size:12px;letter-spacing:.2em;font-weight:800;margin-bottom:6px}
.login-card h1{font-size:26px;font-weight:800;margin:0 0 8px}
.login-card .sub{font-size:13px;color:#8792a4;margin-bottom:26px;font-weight:600}
.login-card .field{margin-bottom:16px}
.login-card .field label{display:block;font-size:13px;font-weight:700;color:#56657a;margin-bottom:8px}
.login-card .field input{width:100%;height:44px;border:1px solid #dfe6f1;border-radius:10px;padding:0 14px;font-size:15px;font-weight:700;outline:none;color:var(--text);background:#fff}
.login-card .field input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(77,131,255,.12)}
.login-card .err{display:none;margin:-4px 0 14px;padding:10px 12px;border-radius:8px;background:#fff0f1;color:#ef4052;font-size:13px;font-weight:700}
.login-card .err.show{display:block}
.login-card .submit{width:100%;height:46px;border:none;border-radius:10px;background:var(--grad);color:#fff;font-size:16px;font-weight:800;box-shadow:0 8px 20px rgba(83,95,244,.25);margin-top:6px}
.login-card .submit:hover{opacity:.94}
.login-card .submit:disabled{opacity:.6;cursor:wait}
#app{display:none}
body.is-authed #app{display:block}
body.is-authed .login-page{display:none}
.logout-btn{margin-left:14px;height:30px;padding:0 12px;border:1px solid #e1e7f0;border-radius:8px;background:#fff;color:#657287;font-size:12px;font-weight:700}
.logout-btn:hover{background:#f7f9fd;color:#596cff}
.page-nav{display:flex;gap:8px;margin-top:12px;flex-wrap:wrap}
.page-nav button{height:34px;padding:0 16px;border:1px solid #e1e7f0;border-radius:8px;background:#fff;color:#657287;font-size:13px;font-weight:800}
.page-nav button.active{background:var(--grad);color:#fff;border-color:transparent;box-shadow:0 6px 14px rgba(83,95,244,.22)}
.page-hidden{display:none!important}
.modal.wide{width:min(920px,100%);max-height:86vh;overflow:auto}
.modal-sub{font-size:14px;font-weight:800;color:#3d4a63;margin:16px 0 10px}
.modal-sub-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.discount-station-field{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#56657a}
.discount-station-field select{height:36px;min-width:160px;border:1px solid #dfe6f1;border-radius:8px;padding:0 10px;font-weight:700;color:var(--text);background:#fff}
.hint-inline{margin-left:8px;font-size:12px;font-weight:700;color:#8792a4}
.settle-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.table-scroll{overflow:auto;margin-bottom:8px}
.channel-rules{width:100%;border-collapse:collapse;font-size:13px}
.channel-rules th,.channel-rules td{padding:7px 8px;text-align:left;border-bottom:1px solid #eef2f8}
.channel-rules th{color:#56657a;font-weight:800;white-space:nowrap}
.channel-rules input,.channel-rules select{width:100%;height:36px;border:1px solid #dfe6f1;border-radius:8px;padding:0 8px;font-weight:700;color:var(--text);background:#fff}
.channel-rules .after-rate{color:#56657a;font-weight:700;white-space:nowrap}
.profit-kpi{min-height:148px;align-items:flex-start}
.profit-kpi .label{font-size:13px;line-height:1.35;color:#3d4a63}
.kpi-card .formula{margin-top:8px;font-size:12px;font-weight:700;color:#8792a4;line-height:1.45}
.profit-legend{margin:-2px 0 18px;padding:14px 18px;background:#f7f9fe;border:1px solid #e4eaf3;border-radius:14px}
.profit-legend .legend-lead{margin:0 0 10px;font-size:13px;font-weight:700;color:#56657a;line-height:1.55}
.profit-legend ul{margin:0;padding-left:18px}
.profit-legend li{margin:4px 0;font-size:13px;font-weight:700;color:#3d4a63;line-height:1.55}
.profit-legend b{color:#111b3d}
.profit-table th{white-space:normal;line-height:1.35;min-width:88px}
.profit-table .th-formula{display:block;margin-top:4px;font-size:11px;font-weight:700;color:#9aa5b5}
.profit-table-wrap{overflow:auto;background:#fff;border:1px solid var(--border);border-radius:17px;box-shadow:var(--shadow)}
.profit-table{width:100%;border-collapse:collapse;font-size:13px}
.profit-table th,.profit-table td{padding:10px 12px;border-bottom:1px solid #eef2f8;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.profit-table th:first-child,.profit-table td:first-child{text-align:left}
.profit-table thead th{background:#f7f9fd;color:#56657a;font-weight:800;position:sticky;top:0}
.profit-table .group-row td{text-align:left;background:#f4f7fc;color:#5b6cff;font-weight:800}
.profit-table .total-row{font-weight:800;background:#fafbfe}
.profit-table .muted{color:#9aa5b5}
.profit-table .neg{color:var(--down)}
.profit-table .pos{color:var(--up)}
.profit-table .tip{font-size:12px;font-weight:700;color:#9aa5b5;margin-left:6px}
.profit-banner{margin:0 0 14px;padding:12px 16px;border-radius:12px;background:#eef3ff;border:1px solid #d5def5;color:#31406a;font-size:13px;font-weight:700;line-height:1.55}
.profit-banner.warn{background:#fff6e8;border-color:#f3d7a6;color:#8a5a12}
.profit-blocked{grid-column:1/-1;padding:28px 20px;background:#fff6e8;border:1px solid #f3d7a6;border-radius:14px;color:#8a5a12;font-weight:700;line-height:1.6}
.profit-table .channel-row{cursor:pointer}
.profit-table .channel-row:hover{background:#f7f9fe}
.profit-table .rule-cell{max-width:220px;white-space:normal;text-align:left;font-size:12px;color:#56657a}
.profit-table .badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:800}
.profit-table .badge.ok{background:#e8f8ef;color:#1a7f46}
.profit-table .badge.wait{background:#fff3d6;color:#9a6b10}
.profit-table .badge.bad{background:#fde8e8;color:#c0392b}
.profit-table .badge.mute{background:#eef1f6;color:#8a94a6}
.profit-table .subtotal-row{background:#f7f9fe;font-weight:800}
.profit-table .muted-row td{color:#9aa5b5}
.profit-table .recon-foot td{text-align:left;white-space:normal;font-weight:800;color:#31406a;background:#f4f7ff}
.profit-reconcile{display:none;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 16px}
.profit-reconcile .recon-item{background:#fff;border:1px solid var(--border);border-radius:14px;padding:12px 14px;box-shadow:var(--shadow)}
.profit-reconcile .recon-item span{display:block;font-size:12px;font-weight:800;color:#8792a4;margin-bottom:6px}
.profit-reconcile .recon-item b{font-size:20px;font-weight:800;color:#111b3d;font-variant-numeric:tabular-nums}
@media(max-width:1100px){.profit-reconcile{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.profit-reconcile{grid-template-columns:1fr}}
.summary-table th:first-child,.summary-table td:first-child{min-width:180px}
.station-profit-table th:first-child,.station-profit-table td:first-child{min-width:140px}
.section + .section{margin-top:22px}
@media(max-width:1400px){.kpi-grid{grid-template-columns:repeat(3,1fr)}.settle-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1100px){.kpi-grid,.charts-row,.kwh-split{grid-template-columns:repeat(2,1fr)}.kwh-split{grid-template-columns:1fr}.actions{margin-left:0}}
@media(max-width:760px){.hero .sync{display:none}.filter-card{position:relative;top:0;flex-wrap:wrap}.station-field{width:100%;min-width:0}.kpi-grid,.charts-row,.settle-grid,.kwh-split{grid-template-columns:1fr}.chart-box.full{grid-column:auto}}
