/* Dashboard: in dark mode the page is the lighter surface and widgets the darker one. */
:root {
  --paper: light-dark(#f8f7f2, #262a27);
  --white: light-dark(#fff, #1d201e);
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
:focus-visible {
  outline: 3px solid #c19131;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  font-weight: 550;
  letter-spacing: -1.2px;
  line-height: 1.2;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.35px;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: var(--mono);
  font-size: 0.9em;
}
.skip {
  position: fixed;
  left: 15px;
  top: -80px;
  z-index: 100;
  background: light-dark(white, #1c201d);
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  width: 242px;
  position: fixed;
  inset: 0 auto 0 0;
  background: light-dark(#fbfbf7, #1f2320);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 29px 20px 18px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  letter-spacing: -1.2px;
  font-weight: 650;
}
.edition {
  font: 9px var(--mono);
  letter-spacing: 1px;
  background: light-dark(#eef0e9, #171a18);
  color: var(--muted);
  padding: 4px 5px;
  margin: 2px 0 0 4px;
  border-radius: 3px;
}
.workspace {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 35px 0 28px;
  border: 1px solid var(--line);
  background: light-dark(white, #1c201d);
  padding: 12px 14px;
  border-radius: 8px;
}
.workspace strong,
.sidebar-foot strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.workspace small,
.sidebar-foot small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 1px;
}
.nav-caption {
  font: 9px var(--mono);
  letter-spacing: 1.7px;
  color: light-dark(#8a938d, #9fa4a1);
  padding: 0 12px;
  margin-bottom: 11px;
}
.nav-link {
  border: 0;
  background: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px;
  margin: 4px 0;
  border-radius: 6px;
  color: light-dark(#68746b, #7f8380);
  font-size: 13px;
  font-weight: 500;
}
.nav-link > span:first-child {
  font-size: 19px;
  line-height: 1;
}
.nav-link.active {
  background: var(--green-soft);
  color: var(--green-text);
}
.nav-link:hover {
  background: light-dark(#eef0e9, #171a18);
}
.nav-count {
  margin-left: auto;
  background: light-dark(white, #1c201d);
  min-width: 20px;
  text-align: center;
  border-radius: 4px;
  font: 10px var(--mono);
  padding: 3px;
}
.small-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #4e8b6b;
  border-radius: 50%;
  margin-right: 7px;
}
.text-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--green-text);
  font-size: 12px;
  font-weight: 550;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-shell {
  margin-left: 242px;
}
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 38px;
  background: light-dark(#fbfbf8, #1f2320);
  font-size: 11px;
}
.breadcrumb {
  color: light-dark(#8c958e, #a1a6a3);
}
.slash {
  color: light-dark(#bcc1b9, #4a4e4c);
  margin: 0 12px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 23px;
  color: var(--muted);
}
.demo-label {
  border: 1px solid light-dark(#dedfd3, #3b3f3d);
  border-radius: 4px;
  padding: 5px 9px;
  background: light-dark(#f6f5ed, #1b1e1c);
  font-size: 10px;
}
.demo-label i {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #a89054;
  border-radius: 50%;
  margin-right: 5px;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 36px 38px 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 27px;
}
.eyebrow {
  font: 9px var(--mono);
  letter-spacing: 1.6px;
  color: var(--green-text);
  margin-bottom: 11px;
}
.page-heading p:last-child {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}
.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: light-dark(white, #1c201d);
  border: 1px solid light-dark(#dbe0d5, #3b3f3d);
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.button:hover {
  border-color: light-dark(#aebcae, #babfbc);
  background: light-dark(#f6f9f4, #1e211f);
}
.button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.button.primary:hover {
  background: #095039;
}
.controls {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  background: light-dark(#f0f1e9, #181b19);
  border: 1px solid light-dark(#e2e5da, #373a38);
  border-radius: 8px;
  margin-bottom: 25px;
}
.control-field {
  display: flex;
  align-items: center;
  gap: 10px;
}
.control-field label {
  font-size: 10px;
  color: light-dark(#76816f, #8b908d);
  white-space: nowrap;
}
.control-field select,
.control-field input {
  background: light-dark(white, #1c201d);
  border: 1px solid light-dark(#dce1d3, #3b3e3c);
  border-radius: 5px;
  padding: 7px 9px;
  color: light-dark(#415042, #a6aaa7);
  font-size: 11px;
  max-width: 150px;
}
.control-context {
  display: flex;
  align-items: center;
  font-size: 10px;
  color: light-dark(#77836e, #8d928f);
  margin-left: 3px;
}
.scenario-tag {
  font-size: 9px;
  border: 1px solid light-dark(#d6dccd, #3f4341);
  border-radius: 4px;
  padding: 4px 7px;
  margin-left: auto;
  white-space: nowrap;
  color: light-dark(#6b795e, #828683);
}
.scenario-tag.edited {
  color: var(--orange-text);
  background: var(--orange-soft);
  border-color: #e6ce9c;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.metric {
  background: light-dark(white, #1c201d);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 19px 20px;
  min-height: 122px;
}
.metric-label {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.metric-label .symbol {
  font-size: 16px;
  color: light-dark(#83967d, #9ea3a0);
}
.metric-value {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 550;
  line-height: 1.3;
  margin: 10px 0 5px;
}
.metric-value small {
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 400;
  color: light-dark(#879181, #9ca19e);
  margin-left: 4px;
}
.metric-foot {
  font-size: 10px;
  color: light-dark(#8a9387, #9fa3a0);
}
.metric-foot b {
  font-weight: 500;
  color: var(--green-text);
}
.metric.alert-metric {
  background: light-dark(#fbf6f0, #1c201e);
  border-color: light-dark(#ecdfd0, #383c3a);
}
.metric.alert-metric .metric-value {
  color: var(--red-text);
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(285px, 1fr);
  gap: 21px;
  margin-bottom: 24px;
}
.panel {
  background: light-dark(white, #1c201d);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 21px 23px 0;
}
.panel-head p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.panel-head h2 {
  font-size: 16px;
}
.panel-body {
  padding: 19px 23px 22px;
}
.panel-head .label {
  font: 9px var(--mono);
  color: light-dark(#8b9586, #a0a5a2);
  white-space: nowrap;
  border: 1px solid var(--line);
  padding: 4px 6px;
  border-radius: 3px;
}
.legend {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 9px;
  color: var(--muted);
  flex-wrap: wrap;
}
.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}
.legend .dash {
  width: 14px;
  height: 0;
  border-radius: 0;
  border-top: 2px dashed #b89850;
  background: none;
}
.legend-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid light-dark(#f0f1eb, #2c2f2d);
  font-size: 9px;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 550;
  padding: 4px 7px;
  white-space: nowrap;
}
.badge:before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.above {
  color: var(--status-above-text);
  background: var(--status-above-soft);
}
.equal {
  color: var(--orange-text);
  background: var(--orange-soft);
}
.below {
  color: var(--red-text);
  background: var(--red-soft);
}
.unknown {
  color: light-dark(#737d78, #898d8a);
  background: light-dark(#edf0ed, #171a18);
}
.covenant-row {
  margin-top: 21px;
  display: grid;
  grid-template-columns: 116px 1fr 49px;
  gap: 12px;
  align-items: center;
}
.covenant-name {
  font-size: 11px;
  font-weight: 550;
}
.covenant-name small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  margin-top: 2px;
}
.bullet-track {
  height: 9px;
  background: light-dark(#f1f2eb, #191c1a);
  border-radius: 3px;
  position: relative;
}
.bullet-fill {
  display: block;
  height: 9px;
  border-radius: 3px;
  background: var(--status-above);
}
.bullet-marker {
  position: absolute;
  top: -6px;
  height: 21px;
  width: 1px;
  border-left: 1px dashed #a78b4a;
}
.covenant-number {
  font: 13px var(--mono);
  text-align: right;
}
.scale {
  display: flex;
  justify-content: space-between;
  font: 8px var(--mono);
  color: light-dark(#899380, #9ea39f);
  margin: 13px 0 0 128px;
  padding-right: 61px;
}
.insight-panel {
  background: light-dark(#f0f4ec, #191c1a);
  border-color: light-dark(#dfe7d8, #363a37);
}
.insight-icon {
  display: inline-grid;
  place-items: center;
  border: 1px solid light-dark(#d4dfcb, #3e423f);
  color: var(--green-text);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 16px;
  margin-bottom: 13px;
}
.insight-panel h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.55px;
}
.insight-panel .panel-body > p {
  font-size: 11px;
  color: light-dark(#7b8872, #929693);
  line-height: 1.75;
  margin: 11px 0 18px;
}
.insight-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid light-dark(#dee5d7, #383b39);
  padding: 10px 0;
  font-size: 10px;
  color: light-dark(#607451, #7b7f7c);
}
.insight-line strong {
  font: 11px var(--mono);
}
.insight-panel .panel-body {
  padding: 23px;
}
.insight-panel button {
  margin-top: 9px;
}
.asset-section {
  margin-bottom: 25px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 29px 0 14px;
}
.section-heading h2 {
  font-size: 17px;
}
.section-heading p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.section-heading > span {
  font: 9px var(--mono);
  color: light-dark(#88937f, #9ea29f);
}
.assets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.asset-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: light-dark(white, #1c201d);
  overflow: hidden;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.asset-card:hover {
  transform: translateY(-3px);
  border-color: light-dark(#9bae98, #b7bcb9);
}
.asset-top {
  height: 80px;
  position: relative;
  overflow: hidden;
  background: light-dark(#e9eee1, #151715);
  padding: 16px 19px;
  display: flex;
  align-items: start;
  justify-content: space-between;
}
.asset-top.co {
  background: light-dark(#e9ece6, #131714);
}
.asset-top.ga {
  background: light-dark(#eceddf, #151715);
}
.solar-lines {
  position: absolute;
  right: -15px;
  top: 18px;
  width: 160px;
  height: 86px;
  background:
    repeating-linear-gradient(90deg, transparent 0 25px, light-dark(#a3b396, #babfbc) 26px 27px),
    repeating-linear-gradient(0deg, light-dark(#d0dbc4, #424643) 0 16px, light-dark(#a3b396, #babfbc) 17px 18px);
  transform: rotate(-12deg) skew(-24deg);
  opacity: 0.62;
  border: 1px solid light-dark(#a3b396, #babfbc);
}
.asset-top .site-code {
  z-index: 1;
  font: 9px var(--mono);
  color: light-dark(#6b7d61, #858a86);
  letter-spacing: 1px;
}
.asset-top .sun {
  font-size: 25px;
  color: light-dark(#929c65, #aeb788);
  z-index: 1;
  margin-right: 1px;
}
.asset-body {
  padding: 17px 19px;
}
.asset-location {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.asset-dscr {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 16px;
}
.asset-dscr strong {
  font-size: 29px;
  line-height: 1;
  letter-spacing: -1px;
  font-weight: 550;
}
.asset-dscr strong small {
  font-size: 15px;
  color: light-dark(#8f9989, #a4a9a6);
  font-weight: 400;
}
.asset-dscr .caption {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 6px;
}
.asset-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  border-top: 1px solid light-dark(#eef0e8, #2d302e);
  padding-top: 12px;
}
.asset-stats span {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.asset-stats strong {
  display: block;
  font: 11px var(--mono);
  margin-top: 4px;
}
.asset-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 11px 19px;
  font-size: 10px;
  color: var(--green-text);
  background: light-dark(#fcfcf9, #212422);
}
.asset-footer span:last-child {
  font-size: 17px;
}
.asset-button {
  display: block;
  border: 0;
  background: none;
  width: 100%;
  text-align: left;
  padding: 0;
}
.history-panel {
  margin-bottom: 24px;
}
.segmented {
  display: flex;
  background: light-dark(#f4f5ef, #1a1e1c);
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 5px;
}
.segmented button {
  border: 0;
  padding: 5px 9px;
  color: light-dark(#7a8771, #919592);
  font-size: 10px;
  background: none;
  border-radius: 3px;
}
.segmented button.selected {
  background: light-dark(white, #1c201d);
  box-shadow: 0 1px 3px light-dark(#0000000a, rgba(0, 0, 0, 0.0784));
  color: var(--ink);
}
.chart-wrap {
  position: relative;
  min-width: 0;
}
.chart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.chart text {
  font: 9px var(--mono);
  fill: light-dark(#8a9682, #a0a5a2);
}
.chart .gridline {
  stroke: light-dark(#edf0e6, #2d312e);
  stroke-width: 1;
}
.chart .chart-dot {
  opacity: 0;
  transition: opacity 0.1s;
}
.chart .chart-dot:hover,
.chart .chart-dot:focus {
  opacity: 1;
}
.chart-tip {
  padding: 7px 10px;
  background: light-dark(#f5f7f1, #1b1f1c);
  border-radius: 4px;
  min-height: 28px;
  font: 10px var(--mono);
  color: light-dark(#627658, #7d827f);
  margin-top: 5px;
}
.chart-empty {
  padding: 50px;
  color: var(--muted);
  text-align: center;
}
.chart-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.compact-select {
  font-size: 10px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: light-dark(white, #1c201d);
}
.app-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 21px 0;
  color: light-dark(#9aa190, #adb2af);
  font-size: 9px;
  margin-top: 33px;
}
.app-footer b {
  font-size: 13px;
  color: light-dark(#7c8970, #939794);
  margin-right: 5px;
}
.notice {
  padding: 11px 15px;
  border: 1px solid light-dark(#e7dab9, #3e423f);
  background: light-dark(#fff9ed, #1e221f);
  color: light-dark(#8d712e, #c7ae77);
  font-size: 11px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.notice.error {
  background: light-dark(#fff0ec, #1b1e1c);
  border-color: light-dark(#f0c7be, #464a47);
  color: light-dark(#ad4435, #f39383);
}
.loading {
  min-height: 300px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid light-dark(#dfe9da, #353936);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.asset-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 23px;
}
.asset-selector button {
  font-size: 11px;
  border: 1px solid light-dark(#dce2d6, #3a3e3b);
  background: light-dark(white, #1c201d);
  padding: 8px 13px;
  border-radius: 5px;
}
.asset-selector button.selected {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.detail-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.detail-summary .badge {
  margin-left: auto;
}
.detail-summary p {
  font-size: 11px;
  color: var(--muted);
}
.detail-summary h2 {
  font-size: 22px;
}
.bridge-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid light-dark(#edf0e7, #2d312e);
  font-size: 11px;
  color: light-dark(#74826b, #8b908d);
}
.bridge-row b {
  font: 12px var(--mono);
  color: var(--ink);
}
.bridge-row.total {
  font-weight: 600;
  color: var(--green-text);
}
.bridge-row.total b {
  color: var(--green-text);
}
.formula {
  font-size: 11px;
  line-height: 1.8;
  padding: 14px;
  background: light-dark(#f3f6ee, #1b1e1c);
  color: light-dark(#6e815f, #888d8a);
  border-radius: 5px;
  margin-top: 18px;
}
.formula b {
  font-family: var(--mono);
  color: var(--green-text);
}
.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.quality-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.quality-item span {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.quality-item strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  margin-top: 4px;
}
.quality-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 15px;
}
.data-scroll {
  overflow-x: auto;
  padding: 0 23px 17px;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 10px;
}
th {
  font-size: 9px;
  font-weight: 500;
  color: light-dark(#8b9682, #a1a5a2);
  text-align: right;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
}
td {
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
  padding: 12px 10px;
  border-bottom: 1px solid light-dark(#eff1ea, #2c302d);
}
th:first-child,
td:first-child {
  text-align: left;
  padding-left: 0;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.table-note {
  font-size: 10px;
  color: var(--muted);
  padding: 0 23px 16px;
}
.model-card {
  border-top: 1px solid var(--line);
  padding: 19px 0;
}
.model-card:first-child {
  border: 0;
  padding-top: 0;
}
.model-card h3 {
  font-size: 13px;
}
.model-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 10px;
}
.model-stats {
  display: flex;
  gap: 25px;
  font-size: 10px;
  color: light-dark(#87917f, #9ca19e);
}
.model-stats strong {
  font: 14px var(--mono);
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.callout {
  font-size: 11px;
  line-height: 1.8;
  color: light-dark(#7f8064, #8c918e);
  background: light-dark(#f5f4e9, #1a1d1b);
  border: 1px solid light-dark(#e8e4d0, #373a38);
  border-radius: 5px;
  padding: 12px;
}
details {
  margin-top: 15px;
  font-size: 11px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  color: var(--green-text);
  padding: 10px 0;
}
.details-table {
  max-height: 320px;
  overflow: auto;
}
pre {
  white-space: pre-wrap;
  font: 10px/1.6 var(--mono);
  background: light-dark(#f4f5ef, #1a1e1c);
  padding: 15px;
  max-height: 350px;
  overflow: auto;
}
dialog {
  width: min(540px, calc(100% - 30px));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 29px;
  box-shadow: 0 30px 100px light-dark(#12251d33, rgba(0, 0, 0, 0.4));
  color: var(--ink);
  background: light-dark(#fdfdfa, #222523);
}
dialog::backdrop {
  background: light-dark(#13271f66, rgba(0, 0, 0, 0.5));
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.dialog-head h2 {
  font-size: 25px;
}
.dialog-head .eyebrow {
  margin-bottom: 7px;
}
.icon-button {
  border: 0;
  background: light-dark(#eef0e9, #171a18);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 21px;
  color: light-dark(#7c8972, #939794);
}
.scenario-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
  margin: 25px 0;
}
.scenario-fields label {
  font-size: 12px;
  font-weight: 550;
}
.scenario-fields label > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin: 4px 0 10px;
  min-height: 30px;
}
.input-unit {
  display: flex;
  border: 1px solid light-dark(#dbe1d3, #3b3f3c);
  border-radius: 5px;
  overflow: hidden;
  background: light-dark(white, #1c201d);
  align-items: center;
}
.input-unit input {
  width: 90px;
  min-width: 0;
  padding: 9px;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 13px;
  flex: 1;
}
.input-unit b {
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
  padding-right: 10px;
}
.dialog-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}
dialog > .muted,
dialog form > .muted {
  font-size: 12px;
  line-height: 1.7;
}
@media (min-width: 1600px) {
  main {
    padding-top: 45px;
  }
  .metric {
    padding: 23px;
  }
  .asset-top {
    height: 95px;
  }
  .covenant-row {
    margin-top: 28px;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 205px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .app-shell {
    margin-left: 205px;
  }
  main {
    padding: 28px 24px 0;
  }
  .topbar {
    padding: 0 24px;
  }
  .control-context {
    display: none;
  }
  .controls {
    gap: 14px;
  }
  .metric {
    padding: 16px 14px;
  }
  .metric-value {
    font-size: 26px;
  }
  .grid-main {
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
  }
  .panel-head,
  .panel-body {
    padding-left: 18px;
    padding-right: 18px;
  }
  .covenant-row {
    grid-template-columns: 95px 1fr 42px;
    gap: 8px;
  }
  .scale {
    margin-left: 103px;
    padding-right: 50px;
  }
  .assets-grid {
    gap: 12px;
  }
  .asset-body {
    padding: 15px;
  }
  .asset-dscr {
    align-items: start;
    flex-direction: column;
    gap: 9px;
  }
  .asset-dscr strong {
    font-size: 27px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 76px;
    padding: 25px 13px;
  }
  .brand {
    font-size: 0;
    justify-content: center;
  }
  .edition,
  .workspace,
  .nav-caption,
  .sidebar-foot {
    display: none;
  }
  .sidebar nav {
    margin-top: 35px;
  }
  .nav-link {
    font-size: 0;
    justify-content: center;
    padding: 14px 10px;
  }
  .nav-link > span:first-child {
    font-size: 24px;
  }
  .nav-count {
    display: none;
  }
  .app-shell {
    margin-left: 76px;
  }
  .topbar {
    height: 65px;
  }
  .grid-main {
    grid-template-columns: 1fr 1fr;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .page-heading p:last-child {
    font-size: 11px;
  }
  .metrics {
    gap: 10px;
  }
  .metric-value {
    font-size: 25px;
  }
  .metric-label {
    font-size: 9px;
  }
  .covenant-row {
    grid-template-columns: 1fr 46px;
    row-gap: 7px;
  }
  .covenant-name {
    grid-column: 1/-1;
  }
  .covenant-name small {
    display: inline;
    margin-left: 6px;
  }
  .scale {
    margin-left: 0;
  }
  .legend-row {
    align-items: start;
    gap: 10px;
  }
  .legend {
    gap: 8px;
  }
  .asset-location {
    font-size: 9px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: 100%;
    height: 62px;
    flex-direction: row;
    padding: 12px 17px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
    justify-content: space-between;
  }
  .brand {
    font-size: 23px;
    gap: 7px;
  }
  .brand img {
    width: 25px;
    height: 25px;
  }
  .sidebar nav {
    margin: 0;
    display: flex;
    gap: 5px;
  }
  .nav-link {
    width: auto;
    margin: 0;
    padding: 8px 11px;
  }
  .nav-link > span:first-child {
    font-size: 21px;
  }
  .app-shell {
    margin-left: 0;
  }
  .topbar {
    height: 48px;
    padding: 0 18px;
    font-size: 10px;
  }
  .top-actions > a {
    display: none;
  }
  .demo-label {
    font-size: 9px;
  }
  .top-actions {
    gap: 5px;
  }
  main {
    padding: 24px 17px 0;
  }
  .page-heading {
    align-items: start;
    margin-bottom: 20px;
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .page-heading p:last-child {
    max-width: 240px;
  }
  .page-heading .button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .page-heading .button span {
    display: none;
  }
  .controls {
    gap: 12px;
    padding: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .control-field {
    flex: 1;
    display: block;
  }
  .control-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 9px;
  }
  .control-field select,
  .control-field input {
    width: 100%;
    max-width: none;
  }
  .scenario-tag {
    font-size: 8px;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 3px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }
  .metric {
    min-height: 110px;
    padding: 14px 16px;
  }
  .metric-value {
    font-size: 28px;
    margin-top: 7px;
  }
  .grid-main {
    grid-template-columns: 1fr;
    gap: 17px;
    margin-bottom: 20px;
  }
  .covenant-row {
    grid-template-columns: 112px 1fr 44px;
    row-gap: 0;
    gap: 10px;
    margin-top: 23px;
  }
  .covenant-name {
    grid-column: auto;
    font-size: 11px;
  }
  .covenant-name small {
    display: block;
    margin-left: 0;
  }
  .scale {
    margin-left: 122px;
    padding-right: 54px;
  }
  .insight-panel h2 {
    font-size: 19px;
  }
  .insight-panel .panel-body > p {
    margin-bottom: 8px;
  }
  .insight-icon {
    float: left;
    margin-right: 12px;
  }
  .insight-panel .panel-body {
    padding: 20px;
  }
  .insight-line {
    padding: 8px 0;
  }
  .assets-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .asset-top {
    height: 75px;
  }
  .asset-body {
    padding: 18px 20px;
  }
  .asset-dscr {
    flex-direction: row;
    align-items: end;
    margin-top: 16px;
  }
  .asset-stats {
    padding-top: 13px;
  }
  .asset-top .solar-lines {
    width: 210px;
  }
  .asset-footer {
    padding: 10px 20px;
  }
  .section-heading {
    margin-top: 25px;
  }
  .panel-head {
    padding: 18px 17px 0;
    flex-wrap: wrap;
    gap: 11px;
  }
  .panel-body {
    padding: 16px 17px;
  }
  .panel-head h2 {
    font-size: 16px;
  }
  .chart-actions {
    width: 100%;
    justify-content: space-between;
  }
  .chart-tip {
    font-size: 9px;
  }
  .legend-row {
    flex-wrap: wrap;
  }
  .app-footer {
    flex-direction: column;
    gap: 7px;
    font-size: 8px;
    margin-top: 25px;
  }
  .detail-summary {
    flex-wrap: wrap;
  }
  .detail-summary .badge {
    margin-left: 0;
  }
  .detail-summary h2 {
    font-size: 21px;
  }
  .detail-summary p {
    font-size: 10px;
  }
  .asset-selector {
    gap: 5px;
  }
  .asset-selector button {
    font-size: 9px;
    padding: 7px 8px;
  }
  .quality-item strong {
    font-size: 16px;
  }
  .scenario-fields {
    gap: 18px 12px;
  }
  dialog {
    padding: 22px;
  }
  .dialog-head h2 {
    font-size: 22px;
  }
  .data-scroll {
    padding: 0 17px 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
