:root{
  --bg:#07110f;
  --bg2:#0b1714;
  --panel:#10201b;
  --panel2:#132821;
  --line:rgba(255,255,255,.09);
  --text:#edf6f1;
  --muted:#8ea59c;
  --green:#55d68a;
  --green2:#2aa66a;
  --gold:#f4c95d;
  --blue:#65b8ff;
  --orange:#ff9f5a;
  --danger:#ff6d72;
  --shadow:0 18px 50px rgba(0,0,0,.25);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:
    radial-gradient(circle at 15% -10%,rgba(55,150,105,.22),transparent 32rem),
    radial-gradient(circle at 100% 0%,rgba(80,150,220,.10),transparent 30rem),
    var(--bg);
  color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.topbar{
  height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;
  padding:0 clamp(18px,4vw,54px);background:rgba(7,17,15,.78);backdrop-filter:blur(16px);position:sticky;top:0;z-index:10
}
.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#1c8c59,#54d98b);font-size:23px;box-shadow:0 8px 25px rgba(40,190,110,.2)}
.brand-title{font-weight:750;letter-spacing:.01em}.brand-sub{font-size:12px;color:var(--muted);margin-top:2px}
.top-meta{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}.live-dot{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 12px var(--green)}.updated{margin-left:4px}
.page{width:min(1440px,calc(100% - 32px));margin:26px auto 55px}
.hero-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hero-card,.stat-card,.panel{background:linear-gradient(145deg,rgba(18,38,31,.97),rgba(11,27,22,.97));border:1px solid var(--line);box-shadow:var(--shadow);border-radius:20px}
.hero-card{grid-column:auto;padding:25px 28px;min-height:190px;position:relative;overflow:hidden}
.hero-card:after{content:"";position:absolute;width:280px;height:280px;border-radius:50%;right:-130px;top:-160px;background:rgba(80,214,140,.08)}
.eyebrow,.panel-kicker{font-size:10px;letter-spacing:.16em;color:var(--muted);font-weight:800}
.hero-power{font-size:54px;line-height:1;font-weight:800;margin:13px 0 18px;letter-spacing:-.04em}.hero-power small{font-size:18px;color:var(--muted);font-weight:600;letter-spacing:0}.hero-foot{display:flex;flex-wrap:wrap;gap:5px;align-items:center}.hero-foot strong{font-weight:700;color:var(--text)}.hero-time{color:var(--muted);font-size:12px}
.hero-foot{display:flex;justify-content:flex-start;color:var(--muted);font-size:12px}.power-track{height:7px;background:#07110e;border-radius:99px;margin-top:16px;overflow:hidden}.power-track-fill{height:100%;width:0;background:linear-gradient(90deg,var(--green2),var(--green));border-radius:99px;transition:width .5s}.hero-caption{font-size:11px;color:var(--muted);margin-top:7px}
.stat-card{padding:22px 22px;min-height:190px;display:flex;flex-direction:column;justify-content:space-between}.stat-label{font-size:12px;color:var(--muted);font-weight:800;letter-spacing:.02em}.stat-value{font-size:32px;font-weight:780;letter-spacing:-.03em}.stat-note{font-size:12px;color:var(--muted);line-height:1.5}
.toolbar{display:flex;justify-content:flex-start;align-items:center;gap:12px;margin:22px 0 14px;flex-wrap:wrap}
.tabs,.wr-switches{display:flex;gap:6px;flex-wrap:wrap}.tab,.wr-btn{border:1px solid var(--line);background:#0d1d18;color:var(--muted);border-radius:10px;padding:10px 15px;font:inherit;font-size:12px;cursor:pointer;transition:.18s}.tab:hover,.wr-btn:hover{border-color:rgba(85,214,138,.4);color:var(--text)}.tab.active{background:rgba(55,185,111,.14);border-color:rgba(85,214,138,.5);color:var(--green);font-weight:700}.wr-btn{display:flex;align-items:center;gap:8px}.wr-btn.active{color:var(--text);background:rgba(255,255,255,.05)}.wr-dot{width:9px;height:9px;border-radius:3px;display:inline-block}
.content-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(310px,1fr);gap:14px}
.panel{padding:22px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:18px}.panel h2{font-size:18px;margin:4px 0 0;letter-spacing:-.02em}.chart-total{font-size:18px;font-weight:750;color:var(--green)}.badge{font-size:10px;border:1px solid var(--line);padding:6px 9px;border-radius:999px;color:var(--muted);white-space:nowrap}
.chart-wrap{display:flex;height:350px;min-width:0}.y-axis{width:45px;display:flex;flex-direction:column;justify-content:space-between;padding:3px 8px 28px 0;color:#60766e;font-size:10px;text-align:right}.bars-area{min-width:0;flex:1;display:flex;flex-direction:column}.bars{height:320px;display:flex;align-items:flex-end;gap:clamp(3px,.7vw,10px);padding:8px 3px 0;border-bottom:1px solid var(--line);overflow:visible}.bar-group{height:100%;flex:1;min-width:8px;display:flex;align-items:flex-end;justify-content:center;position:relative}.bar-stack{width:100%;max-width:38px;display:flex;flex-direction:column-reverse;border-radius:6px 6px 2px 2px;overflow:hidden;min-height:2px}.bar-seg{min-height:1px;transition:filter .15s}.bar-seg:hover{filter:brightness(1.18)}.bar-label{position:absolute;bottom:-30px;font-size:9px;color:#647a72;white-space:nowrap;transform:rotate(-45deg);transform-origin:top right}.x-axis{height:34px}.legend{display:flex;gap:18px;flex-wrap:wrap;margin-top:13px;color:var(--muted);font-size:11px}.legend-item{display:flex;align-items:center;gap:7px}.legend-dot{width:10px;height:10px;border-radius:3px}
.performance-panel{min-height:420px}.perf-row{padding:12px 0;border-bottom:1px solid var(--line)}.perf-top{display:flex;justify-content:space-between;gap:10px;font-size:12px}.perf-name{font-weight:700}.perf-number{font-weight:800}.perf-number.good{color:var(--green)}.perf-number.warn{color:var(--gold)}.perf-number.bad{color:var(--danger)}.perf-meta{display:flex;justify-content:space-between;margin-top:5px;color:var(--muted);font-size:10px}.perf-track{height:7px;background:#07110e;border-radius:99px;margin-top:9px;overflow:hidden}.perf-fill{height:100%;border-radius:99px;background:linear-gradient(90deg,#258e5a,var(--green))}.info-box{background:rgba(101,184,255,.06);border:1px solid rgba(101,184,255,.12);padding:13px;border-radius:12px;margin-top:16px;font-size:11px;color:var(--muted);line-height:1.55}.info-box strong{color:#b9d9ef}.info-box p{margin:6px 0 0}
.lower-grid{display:grid;grid-template-columns:1fr;gap:14px;margin-top:14px}.inverter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.inv-card{background:rgba(255,255,255,.025);border:1px solid var(--line);border-radius:14px;padding:15px}.inv-name{font-size:12px;font-weight:750}.inv-model{font-size:10px;color:var(--muted);margin-top:3px}.inv-power{font-size:25px;font-weight:800;margin:15px 0 4px}.status{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:var(--green);margin-top:12px}.hero-inverters-head{font-size:11px;font-weight:750;color:var(--muted);margin:22px 0 10px;letter-spacing:.03em}.hero-card .inverter-grid{position:relative;z-index:1}.hero-card .power-track,.hero-card .hero-caption,.hero-card .hero-foot,.hero-card .hero-power{position:relative;z-index:1}.status-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.status.warn{color:var(--gold)}.status.bad{color:var(--danger)}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:11px}th,td{padding:9px 6px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}th:first-child,td:first-child{text-align:left}th{color:var(--muted);font-weight:600}td{color:#cbd9d3}td.total{color:var(--text);font-weight:750}
.events-panel{margin-top:14px}.events-list{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.event{border:1px solid var(--line);background:rgba(255,255,255,.02);padding:11px 13px;border-radius:11px;display:flex;justify-content:space-between;gap:10px}.event-main{font-size:11px}.event-meta{font-size:10px;color:var(--muted);text-align:right}.event-ok{color:var(--green)}.event-warn{color:var(--gold)}.event-bad{color:var(--danger)}
footer{border-top:1px solid var(--line);padding:22px 20px;color:#62766e;font-size:10px;text-align:center}
.empty{color:var(--muted);font-size:12px;padding:18px 0}
@media(max-width:1100px){.content-grid,.lower-grid{grid-template-columns:1fr}}
@media(max-width:720px){
  .page{width:min(100% - 18px,1440px);margin-top:12px}.topbar{height:66px;padding:0 12px}.brand-sub{display:none}.top-meta span:not(.live-dot):not(.updated){display:none}.hero-grid{grid-template-columns:1fr 1fr}.hero-card{grid-column:1/-1;min-height:180px}.stat-card{min-height:130px}.stat-value{font-size:25px}.hero-power{font-size:46px}.panel{padding:16px;border-radius:16px}.chart-wrap{height:300px}.bars{height:270px;gap:3px}.bar-label{font-size:8px}.inverter-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.inv-card{padding:9px 7px;min-width:0}.inv-name{font-size:10px}.inv-model{font-size:8px;overflow-wrap:anywhere}.inv-power{font-size:18px;margin:9px 0 3px}.inv-day{font-size:9px}.status{font-size:9px;gap:4px;margin-top:8px}.events-list{grid-template-columns:1fr}.wr-switches{width:100%}.wr-btn{flex:1;justify-content:center}}

.modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.68);backdrop-filter:blur(8px);display:none;align-items:center;justify-content:center;padding:18px;z-index:50}
.modal-backdrop.open{display:flex}
.detail-modal{width:min(920px,100%);max-height:min(88vh,820px);overflow:auto;background:linear-gradient(145deg,#132820,#0b1713);border:1px solid var(--line);border-radius:20px;padding:26px;box-shadow:0 30px 90px rgba(0,0,0,.5);position:relative}
.modal-close{position:absolute;right:16px;top:12px;border:0;background:transparent;color:var(--muted);font-size:30px;line-height:1;cursor:pointer}.modal-close:hover{color:var(--text)}
.detail-modal h2{margin:5px 45px 20px 0;font-size:25px}
.detail-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:20px}
.detail-stat{background:rgba(255,255,255,.035);border:1px solid var(--line);border-radius:12px;padding:13px}.detail-stat-label{font-size:10px;color:var(--muted)}.detail-stat-value{font-size:20px;font-weight:800;margin-top:5px}
.detail-chart{height:180px;display:flex;align-items:flex-end;gap:3px;padding:12px 4px 0;border-bottom:1px solid var(--line);margin-bottom:18px}
.detail-col{height:100%;flex:1;display:flex;align-items:flex-end;min-width:3px}.detail-stack{width:100%;display:flex;flex-direction:column-reverse;overflow:hidden;border-radius:3px 3px 0 0;min-height:1px}.detail-seg{min-height:1px}
.detail-table-wrap{overflow:auto}.detail-table-wrap table{font-size:11px}
.chart-clickable{cursor:pointer}.chart-clickable:hover .bar-stack{filter:brightness(1.18)}
@media(max-width:650px){.detail-summary{grid-template-columns:1fr 1fr}.detail-modal{padding:20px}.detail-chart{height:145px}}

.period-nav{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-left:auto}.chart-head-right{display:flex;flex-direction:column;align-items:flex-end;gap:8px;min-width:0}.chart-head-right .period-nav{margin-left:0;max-width:100%}.chart-head-right .period-nav .nav-btn{min-width:0}.chart-panel>.panel-head{align-items:flex-start}.nav-btn{width:36px;height:36px;border:1px solid var(--line);background:#0d1d18;color:var(--text);border-radius:10px;font-size:24px;line-height:1;cursor:pointer}.nav-btn:hover{border-color:rgba(85,214,138,.45);color:var(--green)}
.period-input-wrap{height:36px;display:flex;align-items:center;gap:7px;padding:0 9px;border:1px solid var(--line);background:#0d1d18;border-radius:10px;color:var(--muted);font-size:10px}.period-input-wrap input{border:0;background:transparent;color:var(--text);font:inherit;font-size:12px;outline:0;min-width:145px}.period-input-wrap input::-webkit-calendar-picker-indicator{filter:invert(1);opacity:.7}
.detail-line{position:relative;height:260px;border-bottom:1px solid var(--line);border-left:1px solid var(--line);margin:10px 0 18px;padding:8px}.detail-line svg{width:100%;height:100%;overflow:visible}.detail-gridline{stroke:rgba(255,255,255,.08);stroke-width:1}.detail-path{fill:none;stroke-width:2.2}.detail-point{stroke:#0b1714;stroke-width:1.5}.detail-axis-label{fill:#789087;font-size:10px}.detail-note{font-size:11px;color:var(--muted);padding:15px 0}
@media(max-width:900px){.toolbar{align-items:center}.period-nav{margin-left:0}.period-input-wrap{flex:1}.period-input-wrap input{width:100%;min-width:0}}
@media(max-width:650px){.chart-panel>.panel-head{gap:8px}.chart-head-right{max-width:60%;}.chart-head-right .period-nav{width:auto;flex-wrap:wrap;justify-content:flex-end}.chart-head-right .period-nav .nav-btn{min-width:0;padding:0 8px}.period-input-wrap{justify-content:space-between}.period-input-wrap input{min-width:0}.detail-line{height:210px}}

.error-filters{display:flex;gap:5px;flex-wrap:wrap}.error-filter{border:1px solid var(--line);background:#0d1d18;color:var(--muted);border-radius:8px;padding:7px 10px;font:inherit;font-size:10px;cursor:pointer}.error-filter.active{color:var(--text);background:rgba(255,109,114,.09);border-color:rgba(255,109,114,.35)}
.error-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:-2px 0 14px}.error-stat{background:rgba(255,255,255,.025);border:1px solid var(--line);border-radius:11px;padding:11px}.error-stat-label{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.error-stat-value{font-size:18px;font-weight:800;margin-top:4px}.error-stat-value.bad{color:var(--danger)}
.error-table-wrap{overflow:auto;max-height:440px}.error-table{width:100%;border-collapse:collapse;font-size:11px}.error-table th,.error-table td{padding:10px 7px;border-bottom:1px solid var(--line);white-space:nowrap}.error-table th{color:var(--muted);font-weight:600}.error-table td{color:#cbd9d3}.error-code{color:var(--danger)!important;font-weight:800}.error-open{color:var(--gold)!important;font-weight:700}.error-ok{color:var(--green)!important}
@media(max-width:720px){.error-summary{grid-template-columns:1fr 1fr}.error-filters{width:100%}.error-filter{flex:1}}

.chart-window-note{font-size:10px;color:var(--muted);margin-top:5px}

.period-nav .nav-btn{width:auto;min-width:90px;padding:0 10px;font-size:11px;white-space:nowrap}.period-input-wrap{white-space:nowrap}

.events-list{max-height:520px;overflow:auto;padding-right:4px}
.events-list::-webkit-scrollbar{width:7px}.events-list::-webkit-scrollbar-track{background:rgba(255,255,255,.02);border-radius:10px}.events-list::-webkit-scrollbar-thumb{background:rgba(255,255,255,.12);border-radius:10px}

.chart-head-actions{display:flex;align-items:center;gap:12px}.intraday-btn{display:none;border:1px solid rgba(85,214,138,.35);background:rgba(85,214,138,.06);color:var(--green);border-radius:9px;padding:8px 11px;font:inherit;font-size:10px;cursor:pointer}.intraday-btn:hover{background:rgba(85,214,138,.12)}
.detail-legend{display:flex;gap:14px;flex-wrap:wrap;margin:-6px 0 10px;font-size:10px;color:var(--muted)}.detail-legend-item{display:flex;align-items:center;gap:5px}.detail-legend-line{width:18px;height:3px;border-radius:3px}
.detail-line{background:linear-gradient(to bottom,rgba(255,255,255,.015),transparent)}
@media(max-width:650px){.chart-head-actions{gap:6px}.intraday-btn{font-size:9px;padding:7px 8px}}

/* 5-Minuten-Detailansicht */
.detail-chart.intraday-detail{
  display:block;
  height:auto;
  min-height:0;
  padding:0;
  border:0;
  margin:0 0 18px;
}
.intraday-detail .detail-line{
  width:100%;
  height:290px;
  box-sizing:border-box;
  margin:8px 0 8px;
  padding:8px 6px 4px 0;
  overflow:visible;
}
.intraday-detail .detail-line svg{
  display:block;
  width:100%;
  height:100%;
}
.intraday-detail .detail-path{
  stroke-width:3.2;
  vector-effect:non-scaling-stroke;
}
.intraday-detail .detail-point{r:2.8}
.intraday-detail .detail-legend{
  margin:6px 0 2px;
  justify-content:flex-start;
}
.intraday-detail .detail-note{
  padding:4px 0 8px;
}
@media(max-width:650px){
  .detail-modal{
    width:100%;
    max-height:94vh;
    padding:18px 14px 16px;
    border-radius:18px;
  }
  .detail-modal h2{
    font-size:24px;
    line-height:1.15;
    margin-bottom:16px;
  }
  .detail-summary{
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-bottom:14px;
  }
  .detail-stat{padding:11px}
  .detail-stat-value{font-size:19px}
  .intraday-detail .detail-line{
    height:245px;
    padding-right:0;
  }
  .intraday-detail .detail-legend{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px 14px;
    font-size:10px;
  }
  .intraday-detail .detail-legend-item:last-child{
    grid-column:1/-1;
  }
  .intraday-detail .detail-axis-label{font-size:9px}
  .detail-table-wrap{
    width:100%;
    overflow-x:auto;
  }
  .detail-table-wrap table{
    min-width:520px;
  }
}

/* Hierarchische Detailseiten statt Popup */
.detail-page[hidden]{display:none!important}
.detail-page-top{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.back-btn{border:1px solid var(--line);background:#0d1d18;color:var(--text);border-radius:10px;padding:9px 13px;font:inherit;font-size:11px;cursor:pointer}
.back-btn:hover{border-color:rgba(85,214,138,.45);color:var(--green)}
.detail-breadcrumb{font-size:11px;color:var(--muted)}
.detail-page-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px}
.detail-page-head h1{font-size:30px;margin:4px 0}
.detail-page-total{font-size:24px;font-weight:800;color:var(--green)}
.detail-page-chart-panel{margin-bottom:16px}
.detail-page-chart-panel .panel-head{align-items:start}
.detail-page-chart-panel .legend{margin:0;justify-content:flex-end}
#pageDetailSummary{margin-bottom:16px}
.detail-page .chart-wrap{min-height:390px}
.detail-page .bars{min-height:350px}
.intraday-page-chart{width:100%}
.intraday-page-chart .detail-line{height:380px;margin:10px 0 5px}
.intraday-page-chart .detail-legend{margin:4px 0 8px}
.detail-page .detail-table-wrap{overflow:auto}
@media(max-width:720px){
  .detail-page{margin-top:4px}
  .detail-page-head{align-items:start;flex-direction:column;gap:6px}
  .detail-page-head h1{font-size:25px}
  .detail-page-total{font-size:21px}
  .detail-page .chart-wrap{min-height:320px}
  .detail-page .bars{min-height:285px}
  .detail-page-chart-panel .legend{justify-content:flex-start}
  .intraday-page-chart .detail-line{height:300px}
}

#detailModal{display:none!important}

/* Inline 5-minute detail replaces the daily bars in the same chart panel. */
.inline-day-nav{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:4px 0 16px}.inline-day-nav>div{flex:1;min-width:150px}.inline-day-nav h2{margin-top:4px}.inline-day-nav .back-btn{border:1px solid var(--line);background:#0d1d18;color:var(--muted);border-radius:10px;padding:10px 12px;font:inherit;font-size:11px;cursor:pointer}.inline-day-nav .back-btn:hover{color:var(--green);border-color:rgba(85,214,138,.45)}.inline-day-nav .nav-btn{font-size:12px;min-height:42px;min-width:112px;padding:10px 16px;white-space:nowrap;line-height:1.2;flex-shrink:0}.inline-day-nav .nav-btn:disabled{opacity:.3;cursor:default}.intraday-inline-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:11px;margin:0 0 10px}.inline-line{height:330px;margin:10px 0 8px}.inline-line svg{width:100%;height:100%;display:block}.stat-card .stat-value{font-weight:850}.hero-foot{justify-content:flex-start}
@media(max-width:720px){.inline-day-nav .nav-btn{min-width:0;min-height:44px;padding:10px 12px;font-size:12px}.hero-grid{grid-template-columns:1fr 1fr}.hero-card{grid-column:1/-1}.inline-day-nav{gap:7px}.inline-day-nav>div{order:-1;flex-basis:100%}.inline-day-nav .nav-btn{flex:1}.inline-day-nav .back-btn{width:100%}.inline-line{height:250px}.intraday-inline-meta{gap:10px;flex-wrap:wrap}}
/* Drei Kennzahlen auf Desktop in einer Zeile */
@media (min-width: 901px) {
  .hero-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .hero-grid > .hero-card { grid-column: auto; min-width: 0; padding: 20px; }
  .hero-grid > .stat-card { min-width: 0; min-height: 0; padding: 20px; }
  .hero-card .inverter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .hero-card .inv-card { padding: 8px 6px; min-width: 0; }
  .hero-card .inv-name { font-size: 10px; }
  .hero-card .inv-model { font-size: 8px; overflow-wrap: anywhere; }
  .hero-card .inv-power { font-size: 17px; margin: 8px 0 2px; }
  .hero-card .status { font-size: 9px; margin-top: 5px; }
  .hero-card .hero-inverters-head { margin-top: 14px; }
  .hero-card .hero-power { font-size: 44px; }
}
/* Smartphone: drei Kennzahlen untereinander */
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid > .hero-card { grid-column: auto; }
  .hero-grid > .stat-card { min-height: 110px; }
  .hero-card .inverter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .hero-card .inv-card { padding: 8px 5px; min-width: 0; }
  .hero-card .inv-name { font-size: 10px; }
  .hero-card .inv-model { font-size: 8px; overflow-wrap: anywhere; }
  .hero-card .inv-power { font-size: clamp(15px, 4.5vw, 21px); margin: 8px 0 2px; }
  .hero-card .status { font-size: 9px; margin-top: 5px; }
}

/* PV dashboard: compact KPI row and inverter status inside the day-energy card */
@media (min-width: 721px) and (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .hero-grid > .hero-card { grid-column: 1 / -1; } .hero-grid > .stat-card { min-height: 130px; } }

/* Controls: inverter selection sits directly beside the view tabs; period navigation belongs to the earnings panel. */
.toolbar .tabs{flex:0 0 auto}
.toolbar .wr-switches{flex:0 1 auto;width:auto;align-items:center}
.toolbar .wr-btn{flex:0 0 auto;padding:10px 12px}
.chart-head-right .chart-total{white-space:nowrap}
@media(max-width:720px){.toolbar{gap:8px}.toolbar .wr-switches{gap:4px}.toolbar .wr-btn{padding:9px 8px;font-size:11px}.chart-head-right{max-width:58%}.chart-head-right .period-nav .nav-btn{font-size:10px;white-space:normal;min-height:32px;height:auto;line-height:1.2}.period-input-wrap span{display:none}.period-input-wrap input{width:88px;min-width:0}}
