@import "./commons-ui.css";
.energy-app {
  --cu-bg: #eff0e7;
  --cu-accent: #d9ef85;
}
.ei-work,
.ei-caption,
.ei-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ei-work {
  margin-bottom: 14px;
}
.ei-work h2 {
  margin: 2px 0 0;
}
.ei-work > span {
  font: 18px var(--cu-mono);
}
.energy-instrument {
  background: #20271f;
  color: #eff3df;
  padding: clamp(18px, 3vw, 33px);
  border-radius: 4px;
}
.ei-caption > span {
  font-size: clamp(22px, 3.3vw, 36px);
  font-weight: 640;
  letter-spacing: -0.05em;
}
.ei-caption small,
.ei-bar small {
  color: #c8d9b9;
}
.ei-caption {
  border-bottom: 1px solid #5d6c58;
  padding-bottom: 14px;
}
.ei-bar {
  margin: 17px 0;
  gap: 15px;
}
.ei-bar > div:first-child {
  flex: 0 0 25%;
}
.ei-bar b {
  display: block;
  font-size: clamp(17px, 2.4vw, 25px);
}
.ei-bar small {
  font: 13px var(--cu-mono);
}
.ei-track {
  height: 37px;
  flex: 1;
  position: relative;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 calc(25% - 1px),
    #65705d calc(25% - 1px) 25%
  );
}
.ei-track i {
  display: block;
  height: 32px;
  min-width: 7px;
  background: #ffda42;
}
.ei-track strong {
  position: absolute;
  left: 6px;
  top: 4px;
  color: #0e200a;
  background: #ffe986;
  padding: 1px 4px;
  font: 700 19px var(--cu-mono);
}
.ei-note {
  font: 14px var(--cu-mono);
  color: #c9d9c0;
}
.ei-metric {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.07em;
}
.energy-instrument {
  background: var(--fx-sidebar);
  color: var(--fx-text);
  border: 1px solid var(--fx-border);
}
.ei-caption {
  gap: 12px;
  border-color: var(--fx-border);
}
.ei-caption > span {
  font:
    600 clamp(20px, 2.4vw, 31px)/1.15 system-ui,
    sans-serif;
}
.ei-caption small,
.ei-bar small,
.ei-note {
  color: var(--fx-muted);
}
.ei-track {
  background: repeating-linear-gradient(
    90deg,
    transparent 0 calc(25% - 1px),
    var(--fx-border) calc(25% - 1px) 25%
  );
}
.ei-track i {
  background: var(--fx-accent);
}
.ei-track strong {
  background: var(--fx-accent);
  color: var(--fx-on-accent);
}
.ei-scope > small,
.ei-phase small,
.ei-phase code {
  color: var(--fx-muted);
  font: 12px var(--cu-mono);
}
.ei-phase {
  display: grid;
  grid-template-columns: minmax(75px, 0.6fr) minmax(55px, 2fr) auto;
  align-items: center;
  gap: 7px;
  border-top: 1px solid var(--fx-border);
  padding: 10px 0;
}
.ei-phase i,
.ei-phase b {
  display: block;
  height: 6px;
  min-width: 2px;
  background: var(--fx-accent);
}
.ei-phase b {
  height: 4px;
  background: var(--fx-warning);
  margin-top: 4px;
}
.ei-phase-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  margin: 10px 0;
}
.ei-phase-legend span:first-child {
  color: var(--fx-accent);
}
.ei-phase-legend span:last-child {
  color: var(--fx-warning);
}
.ei-scope .cu-form {
  margin: 12px 0;
  padding: 10px;
  max-width: 380px;
}
.energy-app {
  --ei-case: #343b3b;
  --ei-label: #eef0e3;
  --ei-sheet: #f4f1de;
  --ei-rule: #a4ab94;
  --ei-ink: #28372f;
  --ei-wire1: #9b432e;
  --ei-wire2: #275e64;
  --ei-wire3: #555948;
}
[data-theme="dark"] .energy-app {
  --ei-case: #313736;
  --ei-label: #e9e9da;
  --ei-sheet: #30362e;
  --ei-rule: #7d8670;
  --ei-ink: #efeee0;
  --ei-wire1: #ffb297;
  --ei-wire2: #98d4cf;
  --ei-wire3: #d0caac;
}
.energy-app .cu-head h1 {
  font:
    650 clamp(25px, 3.3vw, 44px)/1 system-ui,
    sans-serif;
  letter-spacing: -0.06em;
}
.energy-app .cu-head p {
  display: none;
}
.energy-app .cu-tabs {
  border: 0;
  border-bottom: 1px solid var(--fx-border);
  border-radius: 0;
  background: transparent;
  margin: 8px 0 12px;
}
.ei-apparatus {
  display: grid;
  grid-template-columns: 2.6fr minmax(170px, 0.78fr);
  background: var(--ei-case);
  border: 1px solid #343a35;
  padding: 7px;
  gap: 6px;
  border-radius: 4px;
}
.ei-plot {
  background: var(--ei-sheet);
  color: var(--ei-ink);
  padding: 12px 14px;
}
.ei-plot header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ei-plot header small,
.ei-plot header > span,
.ei-readout > small,
.ei-method,
.ei-scales button,
.ei-probes b {
  font: 11px/1.4 var(--cu-mono);
}
.ei-plot h2 {
  font:
    500 clamp(23px, 3vw, 40px)/1.03 Georgia,
    serif;
  margin: 2px 0;
}
.ei-plot svg {
  display: block;
  width: 100%;
  color: var(--ei-rule);
}
.ei-grid line {
  stroke: var(--ei-rule);
  stroke-width: 0.8;
}
.ei-grid text {
  font: 11px var(--cu-mono);
  fill: var(--ei-ink);
}
.ei-wire path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-dasharray: 5 4;
}
.ei-wire circle {
  fill: var(--ei-sheet);
  stroke: currentColor;
  stroke-width: 2;
}
.ei-wire.measured path {
  stroke-width: 3;
  stroke-dasharray: none;
}
.ei-wire.measured circle {
  fill: currentColor;
}
.wire-0 {
  color: var(--ei-wire1);
}
.wire-1 {
  color: var(--ei-wire2);
}
.wire-2 {
  color: var(--ei-wire3);
}
.ei-scales button {
  background: transparent;
  color: var(--ei-ink);
  border-color: var(--ei-rule);
  border-radius: 2px;
  margin-right: 4px;
}
.ei-scales button[aria-pressed="true"] {
  color: var(--ei-sheet);
  background: var(--ei-ink);
}
.ei-readout {
  background: var(--ei-case);
  color: var(--ei-label);
  padding: 15px;
}
.ei-readout h3 {
  font:
    550 17px system-ui,
    sans-serif;
  margin: 6px 0;
}
.ei-readout > strong {
  display: block;
  font: 500 clamp(35px, 5vw, 66px)/1.1 var(--cu-mono);
  letter-spacing: -0.075em;
  margin: 18px 0;
  white-space: nowrap;
}
.ei-readout > strong small {
  font: 13px var(--cu-mono);
  letter-spacing: 0;
}
.ei-readout dl {
  font: 12px var(--cu-mono);
  border-top: 1px solid #88918a;
  padding-top: 10px;
}
.ei-readout dd {
  margin: 0 0 8px;
  font-size: 14px;
}
.ei-readout dt {
  color: #c2ccc4;
}
.ei-probes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}
.ei-probes button {
  display: flex;
  gap: 8px;
  align-items: center;
  border-radius: 2px;
  font-size: 13px;
}
.ei-probes button[aria-pressed="true"] {
  box-shadow: inset 0 -2px var(--fx-accent);
}
.ei-probes i {
  width: 13px;
  border-top: 3px solid currentColor;
}
.ei-work {
  margin: 6px 0 9px;
}
.ei-work h2 {
  font-size: 20px;
}
.ei-tracebook {
  border-color: var(--ei-rule) !important;
}
.ei-phase {
  border-color: var(--ei-rule);
}
.ei-method {
  color: var(--fx-muted);
  margin: 10px 0;
}
@media (max-width: 630px) {
  .ei-apparatus {
    grid-template-columns: 1fr;
  }
  .ei-readout {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 7px;
    padding: 10px;
  }
  .ei-readout > small {
    grid-column: 1;
  }
  .ei-readout > strong {
    grid-column: 2;
    grid-row: 1/3;
    margin: 0;
    font-size: 32px;
  }
  .ei-readout dl {
    grid-column: 1/-1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
  }
  .ei-readout dd {
    margin: 0 8px 0 0;
  }
  .ei-probes button {
    flex: 1;
  }
}
.energy-app .ei-readout small {
  color: var(--ei-label);
}
