:root {
  --aei-dark: #303030;
  --aei-green: #49e75a;
  --aei-orange: #f6bb34;
  --aei-stale: #7a4cff;
  --aei-blue: #2fb5f2;
  --aei-red: #ff5a65;
  --page-grey: #dedcdc;
  --card-white: #ffffff;
  --bar-grey: #e6e2e2;
  --text: #050505;
  --app-font: "Arial Narrow", "Arial", Helvetica, sans-serif;
  --phone-shell-width: 390px;
  --network-row-height: 112px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #d8d8d8;
  color: var(--text);
  font-family: var(--app-font);
  letter-spacing: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  max-width: 100%;
  overflow-x: hidden;
}

button {
  font: inherit;
}

/* Standard compact checkbox for farmer-facing configuration surfaces. */
.aei-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.aei-checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.aei-checkbox-box {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid #b8b8b8;
  border-radius: 3px;
  background: #ececec;
}

.aei-checkbox-box::after {
  content: '';
  width: 7px;
  height: 4px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg) translateY(-1px);
}

.aei-checkbox input:checked + .aei-checkbox-box {
  border-color: var(--aei-green);
  background: var(--aei-green);
}

.aei-checkbox input:checked + .aei-checkbox-box::after {
  border-left-color: #000;
  border-bottom-color: #000;
}

.aei-checkbox input:focus-visible + .aei-checkbox-box {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Button-like controls must never show link underlines. */
button,
[role="button"],
a[class*="button"],
a.nav-item {
  text-decoration: none !important;
}

button:hover,
button:focus,
button:active,
[role="button"]:hover,
[role="button"]:focus,
[role="button"]:active,
a[class*="button"]:hover,
a[class*="button"]:focus,
a[class*="button"]:active,
a[class*="button"]:visited,
a.nav-item:hover,
a.nav-item:focus,
a.nav-item:active,
a.nav-item:visited {
  text-decoration: none !important;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: var(--phone-shell-width);
  height: 50px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-top: 1px solid #d4d4d4;
  z-index: 30;
}

.nav-item {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: #1e2730;
  font: inherit;
  font-size: 20px;
  line-height: 12px;
  cursor: pointer;
}

.nav-item.active {
  color: #006a22;
  font-weight: 700;
}

.nav-item svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-item span {
  display: block;
}


.site-select-shell .nav-item {
  font-size: 10px;
  line-height: 12px;
}

.site-select-shell > .site-select-bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.site-select-bottom-nav[hidden],
.site-select-bottom-nav .nav-item[hidden] {
  display: none !important;
}

.site-select-bottom-nav .selector-config-nav {
  grid-column: 1;
}

.site-select-bottom-nav .selector-account-nav {
  grid-column: 5;
}

.phone-shell {
  width: var(--phone-shell-width);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--page-grey);
  border-left: 1px solid #111;
  border-right: 1px solid #111;
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
  padding-bottom: 50px;
}

.top-bar {
  height: 72px;
  background: var(--aei-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px 7px 10px;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  height: 56px;
}

.brand img {
  display: block;
  width: 122px;
  height: auto;
}

.brand.brand-health-link {
  cursor: pointer;
}

.brand.brand-health-link:focus-visible {
  outline: 2px solid var(--aei-green);
  outline-offset: 2px;
}

.refresh-button,
.home-mode-button {
  appearance: none;
  border: 0;
  border-radius: 4px;
  height: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .35);
  color: #000;
}

.refresh-button {
  width: 19px;
}

.home-mode-button {
  min-width: 78px;
  padding: 0 5px;
  font-size: 9px;
  line-height: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-mode-button[hidden] {
  display: none;
}

.refresh-button svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.refresh-button.active {
  background: #fff;
  color: #000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}
.refresh-button.stale {
  background: #f6bd2b;
  color: #000;
}

.data-refresh-status {
  position: static;
  right: auto;
  top: auto;
  margin-left: auto;
  height: 19px;
  min-width: 48px;
  padding: 0 5px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 8px;
  line-height: 1;
  font-weight: 800;
  color: #000;
  background: #d9d9d9;
  white-space: nowrap;
}

.data-refresh-status[hidden] {
  display: none;
}

.data-refresh-status.state-live {
  background: #fff;
}

.data-refresh-status.state-paused {
  background: #d9d9d9;
}

.data-refresh-status.state-old,
.data-refresh-status.state-missing {
  background: #f6bd2b;
}

.refresh-button.busy svg {
  animation: refresh-spin .75s linear infinite;
}

.refresh-button:disabled {
  opacity: .65;
}

@keyframes refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.site-heading {
  color: #fff;
  text-align: right;
  text-transform: uppercase;
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
}

.site-selector-link {
  display: block;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  border-radius: 2px;
  overflow: hidden;
}

.site-selector-link:focus:not(:focus-visible) {
  outline: none;
}

.site-selector-link:focus-visible {
  outline: none;
  box-shadow: none;
}

.client-name {
  font-family: var(--app-font);
  font-size: 23px;
  line-height: 26px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-name {
  font-family: var(--app-font);
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.permit-banner {
  height: 20px;
  background: var(--aei-green);
  color: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  font-weight: 700;
}

.permit-status {
  display: block;
}

.permit-actions {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 2px;
  height: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.overview-screen {
  min-height: calc(100vh - 140px);
  padding: 5px 5px 24px;
}

.site-select-screen {
  min-height: calc(100vh - 140px);
  padding: 42px 40px 70px;
}
.site-select-shell {
  height: 713px;
  min-height: 713px;
  max-height: 713px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.site-select-shell > .top-bar,
.site-select-shell > .permit-banner {
  flex: 0 0 auto;
}
.site-select-shell > .site-select-screen {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-welcome {
  margin: 0 0 42px;
  text-align: center;
  font-size: 24px;
  line-height: 34px;
  font-weight: 700;
}

.site-selector-panel {
  width: 100%;
  background: #fff;
  border-radius: 5px;
  padding: 8px 36px 14px;
}

.site-selector-title {
  margin-bottom: 10px;
  text-align: center;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
}
.site-link-list {
  display: grid;
  gap: 6px;
}

.site-company-heading {
  min-height: 18px;
  margin-top: 6px;
  color: #000;
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-company-heading:first-child {
  margin-top: 0;
}

.site-client-heading {
  margin: 10px 0 2px;
  text-align: center;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
}

.site-client-heading:first-child {
  margin-top: 0;
}

.site-link {
  min-height: 24px;
  border-radius: 4px;
  background: transparent;
  color: #000;
  text-decoration: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 3px 8px;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  position: relative;
}

.site-link:hover,
.site-link:focus {
  background: rgba(246, 187, 52, .22);
  outline: 0;
}

.site-link.current {
  background: rgba(246, 187, 52, .34);
}
.farm-child-link {
  margin-left: 12px;
}


.site-link.has-config-review .config-review-marker {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #c99700;
  border-radius: 3px;
  background: var(--aei-orange);
  color: #111;
  font-size: 16px;
  line-height: 16px;
  font-weight: 900;
}

.site-link.draft-only-farm {
  background: rgba(246, 187, 52, .34);
}


.site-link.draft-target {
  background: transparent;
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
}

.site-link.draft-target span {
  justify-self: center;
  display: inline-block;
  min-width: 0;
  max-width: 222px;
  padding: 2px 8px 1px;
  border: 1px solid #c99700;
  border-radius: 4px;
  background: rgba(255, 216, 90, .7);
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}
.site-report-links {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #d7d7d7;
}


.engineering-mode .site-report-links {
  display: block;
}

.site-report-link {
  min-height: 30px;
  background: #edf5ff;
  font-weight: 700;
}

.site-report-link:hover,
.site-report-link:focus {
  background: #dfeeff;
}

.site-config-link {
  margin-top: 8px;
  background: #edf5ff;
  font-weight: 700;
}

.site-config-link:hover,
.site-config-link:focus {
  background: #dfeeff;
}

.site-link small {
  display: none;
  font-size: 9px;
  line-height: 12px;
  font-weight: 700;
  text-align: right;
}

.engineering-mode .site-link {
  grid-template-columns: minmax(0, 1fr) 78px;
}

.engineering-mode .engineering-code {
  display: inline;
}

.site-logout {
  width: 100%;
  min-height: 26px;
  margin-top: 10px;
  border: 0;
  border-radius: 4px;
  background: #2f2f2f;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.site-logout:focus,
.site-logout:hover {
  background: #000;
}

.login-screen {
  min-height: calc(100vh - 90px);
  display: grid;
  align-items: center;
  padding: 36px 38px 80px;
}

.login-card {
  background: #fff;
  border-radius: 5px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.login-title {
  text-align: center;
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
}

.login-field {
  display: grid;
  gap: 4px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 700;
}

.login-field input {
  height: 34px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  padding: 5px 8px;
  font: inherit;
  background: #f7f7f7;
}

.login-submit {
  min-height: 34px;
  border: 0;
  border-radius: 4px;
  background: var(--aei-green);
  color: #000;
  font-size: 14px;
  line-height: 18px;
  font-weight: 800;
}

.login-message {
  min-height: 18px;
  color: #b00020;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  position: relative;
}

.auto-solar-screen {
  min-height: calc(100vh - 140px);
  padding: 7px 7px 60px;
  background: var(--page-grey);
  text-transform: uppercase;
}

.auto-solar-summary {
  display: grid;
  grid-template-columns: .8fr .8fr 1.25fr;
  gap: 5px;
  margin-bottom: 7px;
}

.auto-solar-summary-cell {
  min-width: 0;
  min-height: 45px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-radius: 5px;
  background: #fff;
  color: #000;
}

.auto-solar-summary-value {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 19px;
  line-height: 22px;
  font-weight: 800;
}

.auto-solar-summary-cell small {
  font-size: 9px;
  line-height: 11px;
  font-weight: 700;
}

.auto-solar-status {
  min-height: 17px;
  margin: 0 2px 7px;
  color: #333;
  font-size: 11px;
  line-height: 15px;
  text-align: center;
  text-transform: none;
}

.auto-solar-list {
  display: grid;
  gap: 4px;
}

.auto-solar-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  border-left: 4px solid var(--aei-blue);
  border-radius: 5px;
  background: #fff;
  color: #000;
  padding: 8px;
  text-decoration: none;
}

.auto-solar-card:focus,
.auto-solar-card:hover {
  outline: 2px solid var(--aei-orange);
  outline-offset: 0;
}

.auto-solar-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px;
  align-items: start;
}

.auto-solar-card .badge {
  min-width: 52px;
  height: 16px;
  font-size: 20px;
  line-height: 16px;
}

.auto-solar-site {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.auto-solar-site strong,
.auto-solar-app-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.auto-solar-site strong {
  font-size: 14px;
  line-height: 16px;
}

.auto-solar-site span {
  color: #555;
  font-size: 9px;
  line-height: 11px;
  font-weight: 700;
}

.auto-solar-app-title {
  font-size: 20px;
  line-height: 16px;
  font-weight: 800;
}

.auto-solar-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.auto-solar-stat {
  min-width: 0;
  min-height: 50px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-radius: 4px;
  background: #f0f1f1;
}

.auto-solar-stat span,
.auto-solar-stat small {
  font-size: 8px;
  line-height: 10px;
  font-weight: 800;
}

.auto-solar-stat strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 18px;
  line-height: 21px;
  font-weight: 800;
}


.auto-solar-plan {
  position: relative;
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  grid-template-rows: 10px 24px 16px;
  column-gap: 7px;
  align-items: start;
}

.auto-solar-plan-labels,
.auto-solar-plan-values,
.auto-solar-plan-track {
  grid-column: 1;
}

.auto-solar-plan-labels,
.auto-solar-plan-values {
  display: flex;
  color: #000;
  font-weight: 900;
  text-align: center;
}

.auto-solar-plan-labels {
  grid-row: 1;
  align-items: end;
  font-size: 7px;
  line-height: 8px;
}

.auto-solar-plan-values {
  grid-row: 3;
  align-items: start;
  font-size: 13px;
  line-height: 13px;
}

.auto-solar-plan-labels span,
.auto-solar-plan-values span,
.auto-solar-plan-segment {
  flex: 1 1 0;
  min-width: 0;
}

.auto-solar-plan-track {
  grid-row: 2;
  position: relative;
  display: flex;
  height: 24px;
  border-radius: 5px;
  background: #e9e9e9;
  overflow: hidden;
}

.auto-solar-plan-segment {
  position: relative;
}

.auto-solar-plan-segment + .auto-solar-plan-segment {
  border-left: 2px solid rgba(0, 0, 0, .55);
}

.auto-solar-plan-segment .target,
.auto-solar-plan-segment .completed {
  position: absolute;
  left: 0;
  display: block;
}

.auto-solar-plan-segment .target {
  top: 6px;
  height: 12px;
  background: #35b9f2;
}

.auto-solar-plan-segment .completed {
  bottom: 6px;
  height: 6px;
  background: #0058b8;
}

.auto-solar-plan-totals {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  grid-template-rows: 10px 18px 18px;
  align-items: center;
  justify-items: end;
}

.auto-solar-plan-totals strong {
  font-size: 14px;
  line-height: 13px;
  font-weight: 900;
}

.auto-solar-plan-totals strong:first-child {
  grid-row: 2;
}

.auto-solar-plan-totals strong:last-child {
  grid-row: 3;
}

.auto-solar-meta {
  min-height: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.auto-solar-meta-badge {
  min-height: 15px;
  border-radius: 4px;
  padding: 2px 5px;
  background: #e1e1e1;
  color: #000;
  font-size: 9px;
  line-height: 11px;
  font-weight: 800;
}

.auto-solar-meta-badge.running {
  background: var(--aei-green);
}

.auto-solar-meta-badge.ready {
  background: #d7d7d7;
}

.auto-solar-meta-badge.warning {
  background: #fff05c;
}

.auto-solar-meta-badge.message {
  background: var(--aei-blue);
  color: #fff;
}

.auto-solar-meta-text {
  margin-left: auto;
  color: #555;
  font-size: 9px;
  line-height: 12px;
  font-weight: 700;
}

.schedule-screen {
  min-height: calc(100vh - 140px);
  padding: 5px 6px 58px;
  background: var(--page-grey);
  text-transform: uppercase;
}

.schedule-screen .status-note,
.schedule-screen .intent-note,
.schedule-screen .load-error,
.schedule-screen .trend-status,
.schedule-screen .note {
  text-transform: none;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-page-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.schedule-page-link {
  min-width: 0;
  min-height: 24px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #fff;
  color: #000;
  font-size: 20px;
  line-height: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.schedule-page-link.active {
  background: var(--aei-green);
}

.schedule-card {
  min-height: 82px;
  background: var(--card-white);
  border-radius: 5px;
  padding: 7px 8px;
}

.schedule-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.schedule-card-title {
  min-width: 0;
  font-size: 20px;
  line-height: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.schedule-card-link {
  min-height: 24px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--aei-green);
  color: #000;
  padding: 0 8px;
  font-size: 20px;
  line-height: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.schedule-state-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
  padding: 5px 0;
  border-top: 1px solid #e2dddd;
  border-bottom: 1px solid #e2dddd;
}

.schedule-state {
  min-width: 0;
}

.schedule-state-title {
  color: var(--aei-blue);
  font-size: 9px;
  line-height: 12px;
  font-weight: 700;
}

.schedule-state-grid {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 1px 5px;
  margin: 2px 0 0;
  font-size: 9px;
  line-height: 12px;
}

.schedule-state-grid dt,
.schedule-state-grid dd {
  min-width: 0;
  margin: 0;
}

.schedule-state-grid dt {
  color: #555;
}

.schedule-state-grid dd {
  overflow: hidden;
  color: #000;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-state-good {
  color: #008a18 !important;
}

.schedule-state-bad {
  color: #b00020 !important;
}

.schedule-state-muted {
  color: #555 !important;
}

.schedule-days {
  margin-top: 5px;
  display: grid;
  gap: 5px;
}

.schedule-day-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 20px;
  line-height: 14px;
  cursor: pointer;
}

.schedule-day-row.active {
  background: #efeded;
}

.schedule-day-label {
  display: grid;
  gap: 1px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.schedule-day-label small {
  color: #555;
  font-size: 9px;
  line-height: 10px;
  font-weight: 400;
}

.schedule-day-track {
  position: relative;
  height: 12px;
  background: var(--bar-grey);
  border-radius: 5px;
  overflow: hidden;
}

.schedule-day-values {
  text-align: right;
  white-space: nowrap;
}

.schedule-edit-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 146px;
  gap: 8px;
  margin: 2px 0 4px;
  padding: 6px;
  background: var(--page-grey);
  border-radius: 5px;
}

.schedule-adjustments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.schedule-adjust,
.schedule-apply,
.schedule-cancel {
  appearance: none;
  border: 0;
  border-radius: 4px;
  color: #000;
  font-family: var(--app-font);
  font-size: 20px;
  line-height: 13px;
  font-weight: 400;
}

.schedule-adjust {
  min-height: 39px;
  background: #fff;
}

.schedule-edit-actions {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.schedule-apply {
  background: var(--aei-green);
  font-weight: 700;
}

.schedule-cancel {
  background: var(--aei-orange);
  font-weight: 700;
}

.detail-screen {
  min-height: calc(100vh - 140px);
  padding: 5px 6px 58px;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-back {
  align-self: flex-start;
  appearance: none;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 16px;
  line-height: 16px;
  padding: 0 0 0 12px;
  height: 18px;
}

.detail-panel {
  background: var(--card-white);
  border-radius: 5px;
  padding: 10px 20px;
}

.detail-panel.dimmed {
  opacity: .36;
  pointer-events: none;
}

.detail-panel-title {
  text-align: center;
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-status-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 150px;
  gap: 12px;
  align-items: center;
  min-height: 72px;
}

.detail-asset-name {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  font-size: 11px;
  line-height: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-asset-name .status-dot {
  position: static;
  flex: 0 0 auto;
}

.detail-values {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 20px;
}

.detail-status-actions {
  display: grid;
  gap: 10px;
}

.detail-mode-button,
.detail-reset-button {
  appearance: none;
  border: 0;
  border-radius: 4px;
  height: 22px;
  font-size: 20px;
  line-height: 22px;
  font-weight: 700;
}

.detail-mode-button.badge {
  display: block;
  width: 100%;
  min-width: 0;
  height: 22px;
  padding: 0 4px;
  font-size: 20px;
  line-height: 22px;
}

.detail-reset-button {
  background: var(--aei-orange);
}

.detail-mode-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 146px;
  gap: 8px;
  margin-top: 8px;
  padding: 6px;
  background: #e9e6e6;
}

.detail-mode-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.detail-mode-choice {
  appearance: none;
  border: 0;
  border-radius: 4px;
  min-height: 36px;
  color: #000;
  font-size: 20px;
  line-height: 16px;
  font-weight: 700;
}

.detail-mode-choice.oos {
  background: var(--aei-red);
  color: #fff;
}

.detail-mode-choice.off {
  background: var(--aei-orange);
}

.detail-mode-choice.auto {
  background: var(--aei-green);
}

.detail-mode-choice.solar {
  background: #fff05c;
}

.detail-mode-choice.test {
  background: var(--aei-green);
}

.detail-mode-choice:disabled {
  opacity: .32;
}

.detail-mode-choice.selected {
  box-shadow: inset 0 0 0 3px #000;
}

.detail-edit-actions {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.detail-reset-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  padding: 6px;
  background: #e9e6e6;
}

.detail-reset-option {
  appearance: none;
  border: 0;
  border-radius: 4px;
  min-height: 42px;
  background: #fff05c;
  color: #000;
  font-size: 20px;
  line-height: 13px;
  font-weight: 700;
}

.detail-reset-panel .schedule-cancel {
  min-height: 42px;
}

.detail-target-panel {
  padding-bottom: 10px;
}

.detail-rolling-schedule-panel {
  display: block;
  padding: 4px 5px 8px;
}

.detail-scheduling-title {
  height: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  color: #000;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
}

.detail-scheduling-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 12px;
  align-items: center;
}

.detail-scheduling-heading {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.detail-rolling-schedule-row-policy {
  color: #555;
  font-size: 6px;
  line-height: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.detail-rolling-schedule-accept,
.detail-rolling-schedule-change {
  appearance: none;
  border: 1px solid #d0cccc;
  border-radius: 5px;
  width: 78px;
  min-width: 78px;
  height: 20px;
  padding: 0 4px;
  color: #000;
  font-size: 10px;
  line-height: 18px;
  font-weight: 800;
  text-align: center;
}

.detail-rolling-schedule-accept {
  border-color: #31c84b;
  background: #40e45a;
}

.detail-rolling-schedule-change {
  background: #fff;
}

.detail-rolling-schedule-accept:disabled,
.detail-rolling-schedule-change:disabled {
  border-color: #d0d0d0;
  background: #d0d0d0;
  color: #666;
}

.detail-rolling-schedule-rows {
  width: 100%;
  max-width: 100%;
  margin-top: 4px;
  display: grid;
  gap: 4px;
}

.detail-rolling-schedule-panel .detail-rolling-tariff-selector.config-schedule-choice-group {
  width: 180px;
  height: 50px;
  margin: 2px auto 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 12px 36px;
  gap: 1px 8px;
}

.detail-rolling-tariff-selector .config-schedule-choice-title {
  height: 12px;
  font-size: 8px;
  line-height: 10px;
}

.detail-rolling-schedule-panel .detail-rolling-tariff-selector.config-schedule-choice-group .config-schedule-choice-title::before,
.detail-rolling-schedule-panel .detail-rolling-tariff-selector.config-schedule-choice-group .config-schedule-choice-title::after {
  width: 28px;
}

.detail-rolling-tariff-selector .config-schedule-run-choice {
  height: 36px;
  grid-template-rows: 11px 22px;
}

.detail-rolling-tariff-selector .config-schedule-run-choice::after {
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.detail-rolling-schedule-row {
  display: grid;
  grid-template-columns: 244px 78px;
  gap: 12px;
  justify-content: start;
  align-items: center;
  min-height: 36px;
}

.detail-rolling-schedule-summary {
  width: 244px;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  column-gap: 5px;
  align-items: center;
  min-height: 36px;
}

.detail-rolling-schedule-row-actions {
  width: 78px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-rolling-schedule-row-actions.with-policy {
  flex-direction: column;
  gap: 1px;
}

@media (max-width: 390px) {
  .detail-scheduling-header,
  .detail-rolling-schedule-row {
    grid-template-columns: minmax(0, 244px) 70px;
    gap: 8px;
  }

  .detail-rolling-schedule-accept,
  .detail-rolling-schedule-change,
  .detail-rolling-schedule-row-actions {
    width: 70px;
    min-width: 70px;
  }
}

.detail-rolling-schedule-chart {
  position: relative;
  width: 100%;
  height: 36px;
  min-height: 36px;
}

.detail-rolling-schedule-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  display: flex;
  align-items: end;
  justify-content: center;
  color: #000;
  font-size: 7px;
  line-height: 8px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.detail-rolling-schedule-time {
  position: absolute;
  top: 0;
  z-index: 2;
  height: 10px;
  display: flex;
  align-items: end;
  color: #000;
  font-size: 6px;
  line-height: 8px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.detail-rolling-schedule-time.start {
  left: 0;
}

.detail-rolling-schedule-time.finish {
  right: 0;
  justify-content: end;
  text-align: right;
}

.detail-rolling-schedule-bar {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 24px;
  border-radius: 5px;
  background: #e9e9e9;
  overflow: hidden;
}

.detail-rolling-schedule-elapsed,
.detail-rolling-schedule-target,
.detail-rolling-schedule-actual {
  position: absolute;
  left: 0;
  display: block;
  max-width: 100%;
}

.detail-rolling-schedule-elapsed {
  inset: 0 auto 0 0;
  background: #aaa4a4;
  z-index: 1;
}

.detail-rolling-schedule-target {
  top: 6px;
  height: 12px;
  background: #35b9f2;
  z-index: 2;
}

.detail-rolling-schedule-actual {
  bottom: 6px;
  height: 6px;
  background: #0058b8;
  z-index: 3;
}

.detail-rolling-schedule-values {
  width: 34px;
  height: 36px;
  display: grid;
  align-items: center;
  justify-items: end;
  grid-template-rows: 10px 1fr;
  color: #000;
  text-align: right;
}

.detail-rolling-schedule-values.today {
  grid-template-rows: 10px 1fr 1fr;
}

.detail-rolling-schedule-value-title {
  width: 100%;
  height: 10px;
  display: flex;
  align-items: end;
  justify-content: end;
  font-size: 7px;
  line-height: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.detail-rolling-schedule-values strong {
  font-size: 14px;
  line-height: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.detail-rolling-schedule-label,
.detail-rolling-schedule-time,
.detail-rolling-schedule-value-title {
  font-size: 7px;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

.detail-target-summary {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 24px;
  align-items: start;
  padding: 8px 30px 6px;
  color: #000;
  text-align: left;
}

.detail-target-main {
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
  text-decoration: underline;
}

.detail-target-main span {
  color: var(--aei-blue);
}

.detail-target-values {
  display: grid;
  grid-template-columns: 1fr 58px;
  margin: 0;
  font-size: 20px;
  line-height: 14px;
}

.detail-target-values dt,
.detail-target-values dd {
  margin: 0;
}

.detail-target-values dd {
  text-align: right;
}

.detail-progress-track {
  position: relative;
  height: 12px;
  margin: 0 30px;
  background: var(--bar-grey);
  border-radius: 5px;
  overflow: hidden;
}

.trend-screen {
  height: calc(100vh - 72px - 20px - 58px);
  min-height: 0;
  overflow: hidden;
  padding: 5px 6px 8px;
}

.trend-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 4px;
  height: 100%;
  min-height: 0;
  position: relative;
}

.trend-card {
  background: var(--card-white);
  border-radius: 5px;
  padding: 4px 22px 0 22px;
}

.trend-page-selector {
  display: flex;
  gap: 4px;
  grid-column: 1;
  grid-row: 1;
  justify-content: center;
  min-height: 18px;
}

.trend-page-control {
  border: 0;
  border-radius: 4px;
  background: #efeded;
  color: #000;
  font-family: var(--app-font);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  min-height: 16px;
  padding: 0 10px;
  text-transform: uppercase;
}

.trend-page-control.active {
  background: var(--aei-green);
}


.trend-pinned-list {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
}

.trend-scroll-list {
  display: flex;
  flex-direction: column;
  grid-column: 1;
  grid-row: 3;

  gap: 4px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  scroll-snap-type: y mandatory;
}
.trend-scroll-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.trend-scroll-indicator {
  align-self: stretch;
  grid-column: 1;
  grid-row: 3;
  justify-self: end;
  margin: 4px 1px 4px 0;
  pointer-events: none;
  position: relative;
  width: 8px;
  z-index: 15;
}

.trend-scroll-indicator[hidden] {
  display: none;
}

.trend-scroll-thumb {
  background: rgba(0, 0, 0, .42);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .45);
  display: block;
  min-height: 24px;
  position: absolute;
  right: 1px;
  top: 0;
  width: 6px;
}

.trend-scroll-list .trend-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.trend-card-sticky {
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .08);
}
.trend-header {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.trend-title {
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.trend-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: flex-end;
}

.trend-control,
.trend-control-label {
  border: 0;
  border-radius: 4px;
  background: #efeded;
  color: #000;
  font-family: var(--app-font);
  font-size: 9px;
  line-height: 14px;
  min-height: 14px;
  padding: 0 7px;
}

.trend-control.active {
  background: #dedada;
  font-weight: 700;
}

.trend-series-key {
  position: relative;
  padding-left: 17px;
}

.trend-series-key::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 9px;
  height: 2px;
  background: var(--series-color, #236ad8);
}

.trend-chart {
  height: 166px;
  margin-top: -17px;
  overflow: hidden;
}

.trend-chart svg {
  display: block;
  width: 100%;
  height: 200px;
  margin-top: -17px;
}

.trend-status,
.trend-empty {
  display: grid;
  min-height: 166px;
  place-items: center;
  color: #333;
  font-size: 12px;
}

.trend-plot-bg {
  fill: #fff;
}
.trend-tariff-band {
  opacity: 0.24;
}

.trend-tariff-solar {
  fill: var(--aei-green);
}

.trend-tariff-offpeak {
  fill: var(--aei-blue);
}

.trend-tariff-onpeak {
  fill: var(--aei-orange);
}

.trend-grid-line {
  stroke: #d5d2d2;
  stroke-width: 1.2;
}

.trend-axis-line {
  stroke: #111;
  stroke-width: 1.2;
}

.trend-line,
.trend-legend-line {
  fill: none;
  stroke: #236ad8;
  stroke-width: 3;
}
.trend-annotation-line,
.trend-annotation-leader {
  fill: none;
  stroke: #8f35c9;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.trend-annotation-line {
  stroke-width: 2.6;
}

.trend-annotation-cap {
  fill: #fff;
  stroke: #8f35c9;
  stroke-width: 2.2;
}

.trend-annotation-arrow {
  fill: #8f35c9;
}

.trend-annotation-label-box {
  fill: #8f35c9;
  stroke: #8f35c9;
  stroke-width: 1;
}

.trend-annotation-label-text {
  fill: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}
.trend-point-group {
  outline: none;
}

.trend-point-hit {
  fill: transparent;
  stroke: transparent;
  pointer-events: all;
  cursor: crosshair;
}

.trend-point-marker,
.trend-point-tooltip {
  opacity: 0;
  pointer-events: none;
}

.trend-point-marker {
  stroke-width: 2;
}

.trend-point-group:hover .trend-point-marker,
.trend-point-group:focus .trend-point-marker,
.trend-point-group:hover .trend-point-tooltip,
.trend-point-group:focus .trend-point-tooltip {
  opacity: 1;
}

.trend-point-tooltip-box {
  fill: #fff;
  stroke: #999;
  stroke-width: 1;
}

.trend-point-tooltip-date,
.trend-point-tooltip-value {
  fill: #000;
  font-size: 12px;
  font-weight: 800;
}

.trend-point-tooltip-value {
  font-size: 13px;
}

.trend-y-label,
.trend-x-label,
.trend-legend-text {
  fill: #000;
  font-size: 14px;
  font-weight: 700;
}

.trend-footer {
  fill: #000;
  font-size: 14px;
  font-weight: 700;
}

.trend-y-label {
  font-weight: 700;
}

.trend-axis-label {
  fill: #000;
  font-size: 14px;
  font-style: italic;
}

.network {
  position: relative;
  display: grid;
  grid-template-columns: 104px 20px minmax(0, 1fr);
  grid-auto-rows: var(--network-row-height);
  column-gap: 0;
  row-gap: 6px;
  --network-active-row-height: var(--network-row-height);
  align-items: stretch;
}

.bus-trunk,
.bus-branch {
  grid-column: 2;
  pointer-events: none;
  z-index: 1;
}

.bus-trunk {
  position: relative;
  justify-self: center;
  align-self: stretch;
  margin-left: 0;
  width: 3px;
  z-index: 4;
}

.bus-trunk::before {
  content: "";
  position: absolute;
  top: calc(var(--network-active-row-height) / 2);
  bottom: calc(var(--network-active-row-height) / 2);
  left: 0;
  width: 3px;
  background: #111;
  opacity: .9;
}

.bus-branch {
  position: relative;
  align-self: center;
  height: 3px;
  background: #111;
  opacity: .9;
}

.bus-branch-primary {
  width: 100%;
}

.bus-branch-secondary {
  justify-self: stretch;
  width: auto;
  margin-left: 50%;
}

.network.empty .bus-trunk,
.network.empty .bus-branch {
  display: none;
}

.card {
  background: var(--card-white);
  border-radius: 5px;
  min-height: 88px;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.card.stale-card {
  box-shadow: inset 0 0 0 1px var(--aei-stale);
}

.pump-card {
  grid-column: 1;
  padding: 9px 8px 7px 5px;
}

.pump-card.presentation-valve {
  padding-right: 10px;
}

.app-card {
  grid-column: 3;
  align-self: start;
  height: 96px;
  min-height: 96px;
  padding: 8px 7px 8px 5px;
}

.app-card.presentation-valve {
  background: linear-gradient(90deg, #fff 0, #fff 72%, #f6f6f6 100%);
}

.overview-screen .pump-card.running-card,
.overview-screen .app-card.running-card {
  background: #c8ecff;
}

.energy-card.energy-left {
  grid-column: 1;
  padding: 9px 8px 7px 8px;
}

.energy-card.energy-right {
  grid-column: 3;
  padding: 8px 7px 8px 8px;
}

.energy-card.energy-full {
  grid-column: 1 / 4;
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  align-items: center;
  padding: 0 8px;
  align-self: start;
}

.energy-card.energy-full.energy-lines-1 {
  height: 42px;
  min-height: 42px;
}

.energy-card.energy-full.energy-lines-2 {
  height: 78px;
  min-height: 78px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--aei-orange);
  position: absolute;
  top: 8px;
  left: 5px;
}

.status-dot.running {
  background: var(--aei-green);
}

.card-title {
  position: relative;
  top: -2px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-number {
  position: absolute;
  right: 6px;
  bottom: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #111;
  color: #111;
  font-size: 6px;
  line-height: 14px;
  font-weight: 700;
  z-index: 4;
  pointer-events: none;
}

.overview-screen .asset-number {
  display: none;
}

.pump-values,
.metric-line {
  font-size: 20px;
  line-height: 16px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-line {
  display: grid;
  grid-template-columns: 44px 27px 29px;
  column-gap: 1px;
  align-items: baseline;
}

.metric-label {
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  font-weight: 700;
}

.metric-value {
  text-align: right;
  font-size: 11px;
  line-height: 12px;
  font-weight: 700;
}

.metric-unit {
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

.metric-line.stale-value .metric-value {
  color: #35148f;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.pump-values {
  position: absolute;
  top: 24px;
  left: 5px;
  right: 8px;
  padding-top: 0;
  text-align: left;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) {
  width: 103px;
  max-width: 100%;
  height: 96px;
  min-height: 96px;
  align-self: start;
  padding: 9px 6px 7px 5px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .card-title {
  top: -2px;
  overflow: visible;
  text-overflow: clip;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values {
  display: grid;
  grid-template-columns: 33px 23px 33px;
  grid-auto-rows: 14px;
  column-gap: 2px;
  align-items: center;
  width: max-content;
  position: static;
  margin-top: -1px;
  margin-left: 0;
  padding-top: 0;
  overflow: visible;
  text-overflow: clip;
}

.overview-screen .pump-card .status-dot,
.overview-screen .app-card .status-dot {
  display: none;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-placeholder-line {
  display: contents;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-power,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-level {
  display: contents;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-power .metric-value,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-level .metric-value,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-placeholder-line .metric-value {
  text-align: right;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-placeholder-line .metric-label,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-placeholder-line .metric-unit,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-power .metric-label,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-power .metric-unit,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-level .metric-label,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-level .metric-unit {
  text-align: left;
  overflow: visible;
  text-overflow: clip;
}

.valve-indicator {
  position: absolute;
  left: 34px;
  right: 8px;
  top: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.valve-symbol {
  width: 42px;
  height: 14px;
  position: relative;
  display: inline-block;
}

.valve-symbol::before,
.valve-symbol::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.valve-symbol::before {
  left: 0;
  border-left: 17px solid #111;
}

.valve-symbol::after {
  right: 0;
  border-right: 17px solid #111;
}

.valve-indicator.open .valve-symbol::before {
  border-left-color: var(--aei-green);
}

.valve-indicator.open .valve-symbol::after {
  border-right-color: var(--aei-green);
}

.valve-state {
  min-width: 45px;
  border-radius: 4px;
  padding: 2px 5px;
  color: #000;
  background: var(--aei-orange);
  font-size: 20px;
  line-height: 14px;
  font-weight: 700;
  text-align: center;
}

.valve-indicator.open .valve-state {
  background: var(--aei-green);
}

.energy-values {
  position: absolute;
  top: 25px;
  left: 8px;
  right: 7px;
  padding-top: 0;
  text-align: left;
}

.energy-full .energy-values {
  left: auto;
  right: auto;
  width: auto;
}

.energy-card.energy-full .card-title {
  font-size: 21px;
  line-height: 28px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.energy-card.energy-full .energy-values {
  position: static;
  padding: 0;
}

.energy-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 31px;
  gap: 2px 12px;
  align-items: center;
  justify-items: center;
}

.energy-summary .metric-line {
  display: grid;
  grid-template-columns: 48px 44px min-content;
  column-gap: 4px;
  width: 100%;
  max-width: 128px;
  min-width: 0;
  font-size: 21px;
  line-height: 28px;
}

.energy-summary .metric-label {
  font-weight: 400;
  text-align: left;
  overflow: visible;
  text-overflow: clip;
}

.energy-summary .metric-value {
  min-width: 0;
  font-size: 16px;
  line-height: 19px;
  font-weight: 400;
}

.primary-value {
  margin-top: 0;
  min-height: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: 20px;
}

.badge {
  display: inline-block;
  min-width: 38px;
  height: 12px;
  padding: 0 4px;
  border-radius: 4px;
  color: #000;
  font-size: 7px;
  line-height: 12px;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
}

.app-mode-badge {
  appearance: none;
  border: 0;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 12px;
}

.app-mode-badge:focus-visible {
  outline: 2px solid #111;
  outline-offset: 1px;
}

.app-card .badge,
.energy-card .badge {
  min-width: 52px;
  height: 16px;
  font-size: 20px;
  line-height: 16px;
}

.app-card .app-mode-badge,
.energy-card .app-mode-badge {
  font-size: 12px;
}
.app-card .badge:not(.app-mode-badge),
.energy-card .badge:not(.app-mode-badge) {
  height: 17px;
  line-height: 17px;
  font-size: 12px;
  font-weight: 900;
}

.badge-row {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  max-width: calc(100% - 86px);
  overflow: hidden;
}

.app-card .badge-row.app-control-row {
  align-items: center;
  gap: 4px;
  max-width: none;
  overflow: visible;
}

.app-schedule-window-box {
  width: 34px;
  height: 16px;
  display: grid;
  grid-template-rows: 7px 8px;
  gap: 1px;
  padding: 1px 2px;
  border-radius: 4px;
  background: #f1f1f1;
  box-sizing: border-box;
}

.app-schedule-window-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  min-width: 0;
}

.app-schedule-window-part {
  min-width: 0;
  border-radius: 2px;
  background: #d4d4d4;
}

.app-schedule-window-part.solar.on {
  background: var(--aei-green);
}

.app-schedule-window-part.offpeak.on {
  background: var(--aei-blue);
}

.app-schedule-window-part.onpeak.on {
  background: var(--aei-orange);
}

.app-schedule-window-time {
  color: #111;
  font-size: 6.5px;
  line-height: 8px;
  font-weight: 900;
  text-align: center;
}

.app-alert-row {
  position: absolute;
  top: 5px;
  right: 96px;
  display: flex;
  flex-direction: row;
  gap: 3px;
  max-width: calc(100% - 150px);
  overflow: hidden;
}

.badge.auto {
  background: var(--aei-green);
}

.badge.message {
  background: var(--aei-blue);
  color: #fff;
}

.badge.warning {
  background: #fff05c;
}

.badge.alarm {
  background: var(--aei-red);
  color: #fff;
}

.badge.off {
  background: var(--aei-orange);
}

.badge.oos,
.badge.qos {
  background: var(--aei-red);
  color: #fff;
}

.badge.solar {
  background: #fff05c;
}

.badge.unknown {
  background: #d7d7d7;
  color: #222;
}

.app-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  position: absolute;
  top: 25px;
  left: 14px;
  right: 14px;
  height: 42px;
  align-items: start;
  padding-top: 0;
}

.app-card .metric-line {
  display: grid;
  grid-template-columns: 44px 27px 29px;
  column-gap: 1px;
  width: 101px;
  font-size: 20px;
}

.app-card .metric-label,
.app-card .metric-unit {
  overflow: visible;
  text-overflow: clip;
}

.app-card .primary-value {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: start;
}

.overview-screen .app-card[data-asset-id="APPL_2"] .primary-value,
.overview-screen .app-card[data-asset-id="APPL_3"] .primary-value,
.overview-screen .app-card[data-asset-id="APPL_4"] .primary-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-template-rows: 16px 14px;
  grid-auto-rows: 14px;
  justify-content: stretch;
  align-items: center;
  column-gap: 9px;
  row-gap: 0;
}

.overview-screen .app-card[data-asset-id="APPL_2"] .app-body,
.overview-screen .app-card[data-asset-id="APPL_3"] .app-body,
.overview-screen .app-card[data-asset-id="APPL_4"] .app-body {
  top: 24px;
  left: 5px;
  right: 8px;
}

.pivot-output-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  align-items: center;
  height: 16px;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  grid-column: 1 / -1;
}

.overview-screen .app-card[data-asset-id="APPL_3"] .pivot-output-row {
  grid-column: 1 / 3;
}

.pivot-output-chip {
  display: inline-grid;
  place-items: center;
  min-width: 0;
  width: 100%;
  height: 11px;
  padding: 0 1px;
  border-radius: 3px;
  background: var(--aei-orange);
  color: #000;
  font-size: 7.5px;
  line-height: 11px;
  font-weight: 900;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.pivot-output-chip.good {
  background: var(--aei-green);
  color: #000;
}
.overview-screen .app-digital-status-chip {
  font-size: 9px;
  line-height: 16px;
  height: 16px;
}

.overview-screen .app-card[data-asset-id="APPL_2"] .metric-line,
.overview-screen .app-card[data-asset-id="APPL_3"] .metric-line {
  grid-template-columns: 33px 23px 31px;
  column-gap: 3px;
  width: auto;
  line-height: 15px;
}

.overview-screen .app-card[data-asset-id="APPL_2"] .metric-value,
.overview-screen .app-card[data-asset-id="APPL_3"] .metric-value {
  text-align: right;
}

.overview-screen .app-card[data-asset-id="APPL_2"] .metric-label,
.overview-screen .app-card[data-asset-id="APPL_2"] .metric-unit,
.overview-screen .app-card[data-asset-id="APPL_3"] .metric-label,
.overview-screen .app-card[data-asset-id="APPL_3"] .metric-unit {
  text-align: left;
}

.overview-screen .app-card[aria-label="DAM FILLING"] .app-body {
  top: 24px;
  left: 5px;
  right: 8px;
}

.overview-screen .app-card[aria-label="DAM FILLING"] .primary-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  grid-auto-rows: 14px;
  justify-content: stretch;
  align-items: center;
  column-gap: 9px;
  row-gap: 0;
}

.overview-screen .app-card[aria-label="DAM FILLING"] .metric-line {
  grid-template-columns: 33px 23px 31px;
  column-gap: 3px;
  width: auto;
  line-height: 15px;
}

.overview-screen .app-card[aria-label="DAM FILLING"] .metric-value {
  text-align: right;
}

.overview-screen .app-card[aria-label="DAM FILLING"] .metric-label,
.overview-screen .app-card[aria-label="DAM FILLING"] .metric-unit {
  text-align: left;
}

.overview-screen .app-card[aria-label="DAM FILLING"] .app-window-summary {
  top: 52px;
  left: 5px;
  right: 2px;
}

.overview-screen .app-card.full-width-prototype {
  grid-column: 1 / 4;
  justify-self: stretch;
  height: 112px;
  min-height: 112px;
  margin-bottom: 0;
  padding: 7px 7px 3px 5px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .03);
}
/* Temporary Plan line layout guides */
.overview-screen .app-card.full-width-prototype::before {
  content: "";
  position: absolute;
  left: 5px;
  right: 7px;
  top: 7px;
  height: 16px;
  background: rgba(0, 0, 0, .08);
  pointer-events: none;
  z-index: 0;
}

.overview-screen .app-card.full-width-prototype .primary-value::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 16px;
  background: rgba(0, 0, 0, .08);
  pointer-events: none;
  z-index: -1;
}


.overview-screen .app-card.full-width-prototype .card-title {
  top: 0;
  line-height: 16px;
}
.overview-screen .app-card.full-width-prototype .badge-row.app-control-row {
  top: 7px;
  right: 5px;
}

.overview-screen .app-card.full-width-prototype .app-body {
  top: 25px;
  left: 5px;
  right: 8px;
  height: 32px;
}

.overview-screen .app-card.full-width-prototype .primary-value {
  display: grid;
  grid-template-columns: 244px;
  grid-template-rows: 16px 14px;
  grid-auto-rows: 14px;
  justify-content: start;
  align-items: center;
  column-gap: 0;
  row-gap: 2px;
  width: auto;
  position: relative;
}
/* Temporary row 3 layout guide */
.overview-screen .app-card.full-width-prototype .primary-value::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 18px;
  height: 14px;
  background: rgba(0, 0, 0, .08);
  pointer-events: none;
  z-index: -1;
}

.overview-screen .app-card.full-width-prototype .pivot-output-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-column: 1;
  gap: 4px;
  width: 244px;
}

.overview-screen .app-card.full-width-prototype .metric-line {
  grid-template-columns: 33px 23px 31px;
  column-gap: 3px;
  width: auto;
  line-height: 18px;
  transform: translateY(3px);
}

.overview-screen .app-card.full-width-prototype .metric-value {
  text-align: right;
}

.overview-screen .app-card.full-width-prototype .metric-label,
.overview-screen .app-card.full-width-prototype .metric-unit {
  text-align: left;
}

.overview-screen .app-card.full-width-prototype .app-prototype-days {
  position: absolute;
  top: 58px;
  left: 5px;
  right: 5px;
  margin-top: 0;
  gap: 2px;
}

.overview-screen .app-card.full-width-prototype .app-prototype-days.empty-current {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9px;
  gap: 2px;
}

.overview-screen .app-card.full-width-prototype .app-prototype-empty-current {
  margin-top: 11px;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  position: relative;
  min-height: 38px;
  padding: 2px 0 0;
  font-size: 20px;
  line-height: 12px;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-chart {
  display: grid;
  grid-template-rows: 10px 24px;
  row-gap: 2px;
  min-width: 0;
  padding-right: 14px;
  position: relative;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-labels {
  height: 9px;
  margin-bottom: 0;
  font-size: 7px;
  line-height: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-day-label {
  text-align: center;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-track {
  position: relative;
  height: 24px;
  background: var(--bar-grey);
  border-radius: 5px;
  overflow: hidden;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-chart .app-window-next-status {
  right: 0;
  top: 12px;
  height: 24px;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-chart .app-window-next-status-row {
  line-height: 8px;
  height: 8px;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-track .app-window-segment-target {
  top: 6px;
  height: 12px;
  z-index: 2;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-track .app-window-segment-actual {
  bottom: 6px;
  height: 6px;
  z-index: 3;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-segments {
  position: absolute;
  inset: 0;
  display: flex;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-segment {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-segment + .app-prototype-summary-segment::before {
  content: none;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-elapsed,
.overview-screen .app-card.full-width-prototype .app-prototype-summary-target,
.overview-screen .app-card.full-width-prototype .app-prototype-summary-actual {
  position: absolute;
  left: 0;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-elapsed {
  top: 0;
  bottom: 0;
  width: var(--elapsed-progress, 0%);
  background: #aaa4a4;
  z-index: 1;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-target {
  top: 6px;
  bottom: auto;
  width: var(--target-progress, 0%);
  height: 12px;
  border-radius: 4px;
  background: #35b9f2;
  z-index: 2;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-actual {
  top: auto;
  bottom: 6px;
  width: var(--actual-progress, 0%);
  height: 6px;
  border-radius: 4px;
  background: #0058b8;
  z-index: 3;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-values {
  text-align: right;
  white-space: nowrap;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-stats {
  position: absolute;
  right: 1px;
  top: -17px;
  display: block;
  white-space: nowrap;
  color: #111;
  text-align: right;
  font-size: 18px;
  line-height: 18px;
  font-weight: 700;
}

.overview-screen .app-card.full-width-prototype .app-prototype-day-info-row {
  display: grid;
  grid-template-columns: repeat(var(--prototype-day-count, 4), minmax(0, 1fr));
  column-gap: 0;
  align-items: start;
  grid-column: 1 / -1;
  min-height: 11px;
  width: 100%;
  padding-top: 1px;
  padding-right: 14px;
  box-sizing: border-box;
}

.overview-screen .app-card.full-width-prototype .app-prototype-day-info-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 4px;
  min-width: 0;
}

.overview-screen .app-card.full-width-prototype .app-prototype-day-info-values {
  color: #111;
  font-size: 20px;
  line-height: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.overview-screen .app-card.full-width-prototype .app-prototype-day-info-spacer {
  visibility: hidden;
}

.overview-screen .app-card.full-width-prototype .app-prototype-day-row {
  grid-template-columns: 42px minmax(0, 1fr) 32px 58px;
  gap: 5px;
  min-height: 19px;
  padding: 0;
  cursor: default;
}

.overview-screen .app-card.full-width-prototype .app-prototype-day-row .schedule-day-label {
  gap: 0;
  font-size: 8px;
  line-height: 9px;
  font-weight: 700;
}

.overview-screen .app-card.full-width-prototype .app-prototype-day-row .schedule-day-label small {
  font-size: 8px;
  line-height: 9px;
}

.overview-screen .app-card.full-width-prototype .app-prototype-day-row .schedule-day-track {
  grid-column: 2;
  height: 14px;
  border-radius: 5px;
}

.overview-screen .app-card.full-width-prototype .app-prototype-day-row .progress-target {
  top: 3px;
  bottom: auto;
  height: 8px;
  border-radius: 4px;
}

.overview-screen .app-card.full-width-prototype .app-prototype-day-row .progress-actual {
  top: auto;
  bottom: 3px;
  height: 4px;
  border-radius: 4px;
}

.overview-screen .app-card.full-width-prototype .app-prototype-day-row .schedule-day-values {
  grid-column: 4;
}

.overview-screen .app-card.full-width-prototype .app-prototype-window-pill {
  position: relative;
  z-index: 4;
  transform: none;
  width: 34px;
  height: 9px;
  display: flex;
  align-items: flex-start;
  gap: 1px;
  padding: 1px 2px;
  border-radius: 4px;
  background: #f1f1f1;
  box-sizing: border-box;
  pointer-events: none;
}

.overview-screen .app-card.full-width-prototype .app-prototype-window-part {
  min-width: 0;
  flex: 1 1 0;
  height: 7px;
  border-radius: 2px;
  background: #d4d4d4;
}

.overview-screen .app-card.full-width-prototype .app-prototype-window-part.solar.on {
  background: var(--aei-green);
}

.overview-screen .app-card.full-width-prototype .app-prototype-window-part.offpeak.on {
  background: var(--aei-blue);
}

.overview-screen .app-card.full-width-prototype .app-prototype-window-part.onpeak.on {
  background: var(--aei-orange);
}

.overview-screen .app-card[data-asset-id="APPL_2"] .app-window-summary,
.overview-screen .app-card[data-asset-id="APPL_3"] .app-window-summary,
.overview-screen .app-card[data-asset-id="APPL_4"] .app-window-summary {
  top: 58px;
  left: 5px;
  right: 2px;
}

.app-window-summary {
  position: absolute;
  top: 58px;
  left: 14px;
  right: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 2px;
  align-items: end;
  pointer-events: none;
}

.app-window-summary.empty-current {
  grid-template-columns: minmax(0, 1fr) 9px;
}

.app-window-summary.empty-current .app-window-next-status,
.overview-screen .app-card.full-width-prototype .app-prototype-days.empty-current .app-window-next-status {
  position: static;
  align-self: start;
  margin-top: 11px;
}

.app-window-empty {
  margin-top: 11px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--bar-grey);
  color: #111;
  font-size: 9px;
  line-height: 10px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-window-empty.next-schedule-set {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 0;
  font-size: 8px;
  line-height: 9px;
}

.app-window-empty.next-schedule-set strong,
.app-window-empty.next-schedule-set span {
  display: block;
}

.app-window-empty.next-schedule-set .next-schedule-unplaced {
  display: inline;
  color: #c60000;
}

.app-window-chart {
  position: relative;
  min-width: 0;
}

.app-window-next-status {
  position: absolute;
  top: 11px;
  right: -13px;
  z-index: 6;
  width: 10px;
  height: 24px;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  place-items: center;
  border-radius: 4px;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 7px;
  line-height: 9px;
  font-weight: 900;
  text-transform: uppercase;
  pointer-events: none;
}

.app-window-next-status-row {
  display: grid;
  place-items: center;
  min-width: 0;
  width: 100%;
  height: 8px;
  text-transform: uppercase;
}

.app-window-next-status.set {
  background: var(--aei-green);
}

.app-window-next-status.missing {
  background: var(--aei-orange);
  color: #301b00;
}

.app-window-labels {
  display: flex;
  height: 10px;
  margin-bottom: 1px;
  color: #111;
  font-size: 7px;
  line-height: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.app-window-label {
  flex: var(--target, 1) 1 0;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.app-window-label.marker {
  flex: 0 0 8px;
  font-size: 7px;
}

.app-window-label.today {
  color: inherit;
}

.app-window-bar {
  position: relative;
  height: 24px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--bar-grey);
}

.app-window-elapsed {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--elapsed, 0%);
  background: #aaa4a4;
  z-index: 1;
}

.app-window-segments {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 2;
}

.app-window-segment {
  position: relative;
  flex: var(--target, 1) 1 0;
  min-width: 0;
}

.app-window-segment.marker {
  flex: 0 0 8px;
}

.app-window-segment-target,
.app-window-segment-actual {
  position: absolute;
  left: 0;
}

.app-window-segment-target {
  top: 6px;
  width: var(--target-fill, 100%);
  height: 12px;
  background: #35b9f2;
  border-radius: 0;
}

.app-window-segment.empty .app-window-segment-target {
  display: none;
}

.app-window-segment:not(.empty):first-child .app-window-segment-target {
  border-radius: 5px 0 0 5px;
}

.app-window-segment:not(.empty):last-child .app-window-segment-target {
  border-radius: 0 5px 5px 0;
}

.app-window-segment-actual {
  bottom: 6px;
  width: var(--actual, 0%);
  height: 6px;
  background: #0058b8;
  border-radius: 0;
}

.app-window-segment:first-child .app-window-segment-actual {
  border-radius: 5px 0 0 5px;
}

.app-window-days {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 4;
}

.app-window-day {
  flex: var(--target, 1) 1 0;
  min-width: 0;
}

.app-window-day.marker {
  flex: 0 0 8px;
}

.app-window-day + .app-window-day {
  border-left: 2px solid rgba(0, 0, 0, .5);
}

.app-window-stats {
  display: grid;
  align-self: start;
  margin-top: 0;
  justify-items: end;
  font-weight: 700;
}

.app-stat-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 9px 13px 13px;
  row-gap: 1px;
  justify-items: end;
  align-items: end;
  min-width: 42px;
  white-space: nowrap;
}

.app-stat-actual,
.app-stat-target {
  grid-column: 1;
  text-align: right;
  font-size: 18px;
  line-height: 12px;
  font-weight: 700;
}

.app-stat-actual {
  grid-row: 2;
}

.app-stat-target {
  grid-row: 3;
}

.app-stat-line {
  display: grid;
  grid-template-columns: 55px 18px;
  align-items: center;
  column-gap: 3px;
  white-space: nowrap;
}

.app-stat-value {
  text-align: right;
  font-size: 11px;
  line-height: 12px;
}

.app-stat-line.hours .app-stat-value {
  text-align: right;
  font-size: 12px;
  line-height: 13px;
}

.app-stat-unit {
  grid-column: 1;
  grid-row: 1;
  color: #5f6973;
  display: block;
  text-align: right;
  font-size: 6px;
  line-height: 6px;
  font-weight: 700;
  text-transform: uppercase;
}

.missing-narrow-font .overview-screen .card-title {
  font-size: 12px;
  line-height: 16px;
}

.missing-narrow-font .overview-screen .pump-values,
.missing-narrow-font .overview-screen .metric-line {
  font-size: 8.5px;
  line-height: 15px;
}

.missing-narrow-font .overview-screen .metric-value {
  font-size: 8.5px;
  line-height: 11px;
}

.missing-narrow-font .overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values {
  grid-template-columns: 32px 22px 31px;
  grid-auto-rows: 14px;
  column-gap: 3px;
}

.missing-narrow-font .overview-screen .app-card .metric-line {
  font-size: 9px;
}

.missing-narrow-font .overview-screen .app-card[aria-label="DAM FILLING"] .metric-line {
  grid-template-columns: 32px 22px 31px;
  font-size: 8.5px;
  line-height: 14px;
}

.missing-narrow-font .overview-screen .pivot-output-chip {
  font-size: 9px;
  line-height: 16px;
  font-weight: 900;
  height: 16px;
  width: 100%;
  padding: 0 1px;
}

.missing-narrow-font .overview-screen .app-card[data-asset-id="APPL_2"] .primary-value,
.missing-narrow-font .overview-screen .app-card[data-asset-id="APPL_3"] .primary-value,
.missing-narrow-font .overview-screen .app-card[data-asset-id="APPL_4"] .primary-value {
  grid-template-columns: minmax(0, 1fr) max-content;
}

.missing-narrow-font .overview-screen .app-card.full-width-prototype .primary-value {
  grid-template-columns: 244px;
  justify-content: start;
  column-gap: 0;
}

.missing-narrow-font .overview-screen .app-card.full-width-prototype .metric-line {
  grid-template-columns: 33px 23px 31px;
  column-gap: 3px;
  width: auto;
  line-height: 18px;
  transform: translateY(3px);
}

.missing-narrow-font .overview-screen .pivot-output-row {
  width: 100%;
  gap: 3px;
}

.missing-narrow-font .overview-screen .app-window-labels {
  font-size: 7px;
  line-height: 8px;
}

.load-error {
  margin: 16px;
  padding: 12px;
  border-radius: 5px;
  background: #fff;
  font-size: 12px;
  line-height: 17px;
}

/* The SmartBox app is a fixed-size control screen. Browser size should not scale or reflow the UI because that makes operating text unreadable. */




















/* Home solar/grid numeric card */
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] {
  grid-template-columns: 1fr;
  grid-template-rows: 15px 20px;
  align-items: start;
  height: 48px;
  min-height: 48px;
  padding: 6px 8px 5px 5px;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .card-title {
  top: -1px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  overflow: visible;
  text-overflow: clip;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-values {
  position: absolute;
  left: 5px;
  right: 8px;
  top: 18px;
  height: 24px;
  width: auto;
  padding: 0;
  margin-top: 0;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  justify-content: stretch;
  column-gap: 0;
  height: 24px;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-line {
  display: inline-flex;
  align-items: baseline;
  width: auto;
  max-width: none;
  min-width: max-content;
  justify-self: center;
  text-align: left;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-label,
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-value,
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-unit {
  min-width: 0;
  font-size: 20px;
  line-height: 20px;
  position: relative;
  top: -3px;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-label,
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-unit {
  font-weight: 400;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-value {
  min-width: 0;
  margin-left: 8px;
  text-align: left;
  font-weight: 700;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-unit::before {
  content: "\00a0";
}
/* Temporary Equipment line layout guides */
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"])::before,
.overview-screen .app-card:not(.full-width-prototype)::before,
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"]::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"])::before {
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 7px / calc(100% - 11px) 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 24px / calc(100% - 11px) 14px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 38px / calc(100% - 11px) 14px no-repeat;
}

.overview-screen .app-card:not(.full-width-prototype)::before {
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 6px / calc(100% - 12px) 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 24px / calc(100% - 13px) 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 40px / calc(100% - 13px) 14px no-repeat;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"]::before {
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 4px / calc(100% - 13px) 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 22px / calc(100% - 13px) 24px no-repeat;
}
/* Temporary Equipment row rhythm tuning */
.overview-screen .app-card:not(.full-width-prototype) .badge-row.app-control-row {
  top: 6px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values {
  position: absolute;
  top: 24px;
  left: 5px;
  right: 6px;
  display: grid;
  grid-template-columns: 33px 23px 33px;
  grid-auto-rows: 16px;
  column-gap: 2px;
  align-items: center;
  width: max-content;
  margin-top: 0;
  margin-left: 0;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-power,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-level,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-placeholder-line {
  line-height: 16px;
}

.overview-screen .app-card[data-asset-id="APPL_2"] .app-body,
.overview-screen .app-card[data-asset-id="APPL_3"] .app-body,
.overview-screen .app-card[data-asset-id="APPL_4"] .app-body {
  height: 32px;
}

.overview-screen .app-card[data-asset-id="APPL_2"] .primary-value,
.overview-screen .app-card[data-asset-id="APPL_3"] .primary-value,
.overview-screen .app-card[data-asset-id="APPL_4"] .primary-value,
.overview-screen .app-card[aria-label="DAM FILLING"] .primary-value {
  grid-template-rows: 16px 16px;
  grid-auto-rows: 16px;
}

.overview-screen .app-card[data-asset-id="APPL_2"] .metric-line,
.overview-screen .app-card[data-asset-id="APPL_3"] .metric-line,
.overview-screen .app-card[aria-label="DAM FILLING"] .metric-line {
  line-height: 16px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"])::before {
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 7px / calc(100% - 11px) 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 25px / calc(100% - 11px) 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 43px / calc(100% - 11px) 16px no-repeat;
}

.overview-screen .app-card:not(.full-width-prototype)::before {
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 7px / calc(100% - 13px) 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 25px / calc(100% - 13px) 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 43px / calc(100% - 13px) 16px no-repeat;
}
/* Temporary Equipment application 3-column rows */
.overview-screen .app-card:not(.full-width-prototype) .primary-value {
  display: block;
}

.overview-screen .app-card:not(.full-width-prototype) .app-equipment-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 16px 16px;
  column-gap: 4px;
  row-gap: 0;
  align-items: center;
  height: 32px;
  width: 100%;
}

.overview-screen .app-card:not(.full-width-prototype) .app-equipment-cell {
  min-width: 0;
  height: 16px;
  display: flex;
  align-items: center;
}

.overview-screen .app-card:not(.full-width-prototype) .app-equipment-metric-cell {
  grid-column: auto;
}

.overview-screen .app-card:not(.full-width-prototype) .app-equipment-matrix .metric-line {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  column-gap: 3px;
  align-items: center;
  width: auto;
  font-size: 10px;
  line-height: 16px;
  white-space: nowrap;
}
/* Temporary Equipment content centering to row bars */
.overview-screen .app-card:not(.full-width-prototype) .card-title {
  top: -1px;
  line-height: 16px;
}

.overview-screen .app-card:not(.full-width-prototype) .badge-row.app-control-row {
  top: 7px;
  right: 8px;
  height: 16px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values {
  top: 25px;
  grid-auto-rows: 16px;
  row-gap: 2px;
  align-items: center;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-label,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-value,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-unit {
  line-height: 16px;
}

.overview-screen .app-card:not(.full-width-prototype) .app-body {
  top: 25px;
  left: 5px;
  right: 8px;
  height: 34px;
}

.overview-screen .app-card:not(.full-width-prototype) .app-equipment-matrix {
  grid-template-rows: 16px 16px;
  row-gap: 2px;
  height: 34px;
  align-items: center;
}

.overview-screen .app-card:not(.full-width-prototype) .app-equipment-cell {
  height: 16px;
  align-items: center;
}

.overview-screen .app-card:not(.full-width-prototype) .app-equipment-matrix .metric-line {
  line-height: 16px;
  align-items: center;
}

.overview-screen .app-card:not(.full-width-prototype) .app-equipment-matrix .metric-label,
.overview-screen .app-card:not(.full-width-prototype) .app-equipment-matrix .metric-value,
.overview-screen .app-card:not(.full-width-prototype) .app-equipment-matrix .metric-unit {
  line-height: 16px;
}
/* Temporary Equipment schedule summary clearance */
.overview-screen .app-card:not(.full-width-prototype) .app-window-summary {
  top: 64px;
}
/* Temporary Equipment measurement boxes */
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values {
  width: auto;
  right: 6px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-power,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-level,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-equipment-measurement {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: max-content max-content max-content;
  justify-content: center;
  align-items: center;
  column-gap: 8px;
  width: 100%;
  height: 16px;
  border-radius: 3px;
  background: #dedede;
  font-size: 10px;
  line-height: 16px;
  white-space: nowrap;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-power .metric-label,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-level .metric-label,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-power .metric-value,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-level .metric-value,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-power .metric-unit,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-level .metric-unit {
  line-height: 16px;
  text-align: center;
}

.overview-screen .app-card:not(.full-width-prototype) .app-equipment-metric-cell {
  background: #dedede;
  border-radius: 3px;
  justify-content: center;
}

.overview-screen .app-card:not(.full-width-prototype) .app-equipment-matrix .metric-line {
  grid-template-columns: max-content max-content max-content;
  justify-content: center;
  column-gap: 8px;
  height: 16px;
  width: 100%;
}

.overview-screen .app-card:not(.full-width-prototype) .app-equipment-matrix .metric-label,
.overview-screen .app-card:not(.full-width-prototype) .app-equipment-matrix .metric-value,
.overview-screen .app-card:not(.full-width-prototype) .app-equipment-matrix .metric-unit {
  text-align: center;
}
/* Temporary Equipment compact measurement phrases */
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-power,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-level,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-equipment-measurement,
.overview-screen .app-card:not(.full-width-prototype) .app-equipment-matrix .metric-line {
  grid-template-columns: max-content max-content max-content;
  justify-content: center;
  column-gap: 4px;
}
/* Temporary Equipment pump boxes match app cells */
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 16px;
  column-gap: 0;
  row-gap: 2px;
  width: auto;
  left: 5px;
  right: 6px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-power,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-level {
  grid-column: 1;
  width: 100%;
  min-width: 0;
}
/* Temporary Equipment pump info width matches app cell */
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values {
  width: 78px;
  left: 13px;
  right: auto;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-power,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-level,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-equipment-measurement {
  width: 78px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-info-status {
  width: 78px;
  height: 16px;
  padding: 0 1px;
  font-size: 9px;
  line-height: 16px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"])::before {
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 7px / calc(100% - 11px) 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 13px 25px / 78px 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 13px 43px / 78px 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 13px 61px / 78px 16px no-repeat;
}

/* Temporary Equipment info row gap tuning: 16px boxes with a visible 6px gap. */
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values {
  row-gap: 6px;
}

.overview-screen .app-card:not(.full-width-prototype) .app-body {
  height: 38px;
}

.overview-screen .app-card:not(.full-width-prototype) .app-equipment-matrix {
  row-gap: 6px;
  height: 38px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"])::before {
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 7px / calc(100% - 11px) 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 13px 25px / 78px 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 13px 43px / 78px 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 13px 61px / 78px 16px no-repeat;
}

.overview-screen .app-card:not(.full-width-prototype)::before {
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 7px / calc(100% - 13px) 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 25px / calc(100% - 13px) 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 47px / calc(100% - 13px) 16px no-repeat;
}
/* Temporary iPhone/fallback font measurement sizing: keep label, value and unit the same size. */
.missing-narrow-font .overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-power :is(.metric-label, .metric-value, .metric-unit),
.missing-narrow-font .overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-level :is(.metric-label, .metric-value, .metric-unit),
.missing-narrow-font .overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-equipment-measurement :is(.metric-label, .metric-value, .metric-unit),
.missing-narrow-font .overview-screen .app-card:not(.full-width-prototype) .app-equipment-matrix .metric-line :is(.metric-label, .metric-value, .metric-unit) {
  font-size: 10px;
  line-height: 16px;
}
/* Temporary Equipment pump stack spacing: pin rows to the same 16px/6px rhythm as the app box. */
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values {
  display: block;
  height: 60px;
  row-gap: 0;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values > * {
  position: absolute;
  left: 0;
  width: 78px;
  height: 16px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values > :nth-child(1) {
  top: 0;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values > :nth-child(2) {
  top: 18px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values > :nth-child(3) {
  top: 36px;
}
/* Equipment layout final pass: 5-row app card and centred solar/grid row. */
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-values {
  top: 22px;
  height: 20px;
  display: grid;
  align-items: center;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary {
  height: 20px;
  align-items: center;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-line {
  align-items: center;
  line-height: 20px;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-label,
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-value,
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-unit {
  top: 0;
  line-height: 20px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]),
.overview-screen .app-card:not(.full-width-prototype) {
  height: 112px;
  min-height: 112px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values {
  top: 25px;
  height: 60px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values > :nth-child(1) {
  top: 0;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values > :nth-child(2) {
  top: 22px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values > :nth-child(3) {
  top: 44px;
}

.overview-screen .app-card:not(.full-width-prototype) .app-body {
  top: 25px;
  height: 38px;
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-summary,
.overview-screen .app-card[aria-label="DAM FILLING"] .app-window-summary,
.overview-screen .app-card[data-asset-id="APPL_2"] .app-window-summary,
.overview-screen .app-card[data-asset-id="APPL_3"] .app-window-summary,
.overview-screen .app-card[data-asset-id="APPL_4"] .app-window-summary {
  top: 69px;
  left: 5px;
  right: 2px;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: start;
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-labels {
  height: 10px;
  margin-bottom: 1px;
  align-items: center;
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-bar {
  height: 24px;
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-stats {
  margin-top: 0;
  align-self: start;
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-next-status {
  top: 11px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"])::before {
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 7px / calc(100% - 11px) 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 13px 25px / 78px 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 13px 47px / 78px 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 13px 69px / 78px 16px no-repeat;
}

.overview-screen .app-card:not(.full-width-prototype)::before {
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 7px / calc(100% - 13px) 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 25px / calc(100% - 13px) 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 47px / calc(100% - 13px) 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 69px / calc(100% - 13px) 10px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 80px / calc(100% - 13px) 24px no-repeat;
}

/* Solar/grid value row visual centering. */
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-line {
  transform: translateY(-2px);
}

/* Pump box row design: 103px wide, 5-row vertical map, four info/status locations. */
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) {
  width: 103px;
  height: 112px;
  min-height: 112px;
  padding: 4px 0 0 0;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .card-title {
  top: 0;
  left: 5px;
  width: 93px;
  height: 16px;
  line-height: 16px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values {
  top: 24px;
  left: 13px;
  width: 78px;
  height: 76px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values > * {
  left: 0;
  width: 78px;
  height: 16px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values > :nth-child(1) {
  top: 0;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values > :nth-child(2) {
  top: 20px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values > :nth-child(3) {
  top: 40px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values > :nth-child(4) {
  top: 60px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-equipment-empty-cell {
  border-radius: 3px;
  background: #dedede;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"])::before {
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 5px 4px / 93px 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 13px 24px / 78px 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 13px 44px / 78px 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 13px 64px / 78px 16px no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 13px 84px / 78px 16px no-repeat;
}

/* Pump box row system: design values live here, child rows use grid flow. */
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) {
  --pump-box-w: 104px;
  --pump-title-left: 5px;
  --pump-title-w: 94px;
  --pump-info-left: 13px;
  --pump-info-w: 78px;
  --pump-row-h: 16px;
  --pump-row-gap: 4px;
  --pump-title-top: 4px;
  --pump-info-top: 24px;
  width: var(--pump-box-w);
  height: 112px;
  min-height: 112px;
  padding: 0;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .card-title {
  position: absolute;
  top: var(--pump-title-top);
  left: var(--pump-title-left);
  width: var(--pump-title-w);
  height: var(--pump-row-h);
  line-height: var(--pump-row-h);
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values {
  position: absolute;
  top: var(--pump-info-top);
  left: var(--pump-info-left);
  width: var(--pump-info-w);
  height: calc((var(--pump-row-h) * 4) + (var(--pump-row-gap) * 3));
  display: grid;
  grid-template-columns: var(--pump-info-w);
  grid-template-rows: repeat(4, var(--pump-row-h));
  row-gap: var(--pump-row-gap);
  column-gap: 0;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values > * {
  position: static;
  width: var(--pump-info-w);
  height: var(--pump-row-h);
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-equipment-empty-cell,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-power,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-level,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-equipment-measurement,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-info-status {
  width: var(--pump-info-w);
  height: var(--pump-row-h);
  line-height: var(--pump-row-h);
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"])::before {
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--pump-title-left) var(--pump-title-top) / var(--pump-title-w) var(--pump-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--pump-info-left) var(--pump-info-top) / var(--pump-info-w) var(--pump-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--pump-info-left) calc(var(--pump-info-top) + var(--pump-row-h) + var(--pump-row-gap)) / var(--pump-info-w) var(--pump-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--pump-info-left) calc(var(--pump-info-top) + ((var(--pump-row-h) + var(--pump-row-gap)) * 2)) / var(--pump-info-w) var(--pump-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--pump-info-left) calc(var(--pump-info-top) + ((var(--pump-row-h) + var(--pump-row-gap)) * 3)) / var(--pump-info-w) var(--pump-row-h) no-repeat;
}

/* Pump box guide bars: every row bar is the same 5 / 93 / 5; row content sits inside it. */
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) {
  --pump-row-bar-left: 5px;
  --pump-row-bar-w: 94px;
  --pump-info-left: 13px;
  --pump-info-w: 78px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .card-title {
  left: var(--pump-row-bar-left);
  width: var(--pump-row-bar-w);
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"])::before {
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--pump-row-bar-left) var(--pump-title-top) / var(--pump-row-bar-w) var(--pump-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--pump-row-bar-left) var(--pump-info-top) / var(--pump-row-bar-w) var(--pump-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--pump-row-bar-left) calc(var(--pump-info-top) + var(--pump-row-h) + var(--pump-row-gap)) / var(--pump-row-bar-w) var(--pump-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--pump-row-bar-left) calc(var(--pump-info-top) + ((var(--pump-row-h) + var(--pump-row-gap)) * 2)) / var(--pump-row-bar-w) var(--pump-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--pump-row-bar-left) calc(var(--pump-info-top) + ((var(--pump-row-h) + var(--pump-row-gap)) * 3)) / var(--pump-row-bar-w) var(--pump-row-h) no-repeat;
}

/* Pump box iPhone hardening: fixed row boxes, centred text, no Safari text inflation. */
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]),
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) * {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .card-title,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values > *,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-power,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-level,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-equipment-measurement,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-info-status,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-equipment-empty-cell {
  box-sizing: border-box;
  min-height: 0;
  max-height: var(--pump-row-h);
  overflow: hidden;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-power,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-level,
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-equipment-measurement {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  justify-content: center;
  align-items: center;
  column-gap: 4px;
  padding: 0;
  font-size: 10px;
  line-height: var(--pump-row-h);
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-power :is(.metric-label, .metric-value, .metric-unit),
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .metric-line.metric-level :is(.metric-label, .metric-value, .metric-unit),
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-equipment-measurement :is(.metric-label, .metric-value, .metric-unit) {
  display: block;
  height: var(--pump-row-h);
  font-size: 10px;
  line-height: var(--pump-row-h);
  text-align: center;
  transform: none;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-info-status {
  display: grid;
  place-items: center;
  padding: 0 1px;
  font-size: 9px;
  line-height: var(--pump-row-h);
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-info-status .pivot-output-label {
  display: block;
  height: var(--pump-row-h);
  font-size: 9px;
  line-height: var(--pump-row-h);
  transform: none;
}

/* Pump box iPhone fix: keep design variables, but pin rows to exact tops. */
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values {
  display: block;
  position: absolute;
  top: var(--pump-info-top);
  left: var(--pump-info-left);
  width: var(--pump-info-w);
  height: calc((var(--pump-row-h) * 4) + (var(--pump-row-gap) * 3));
  row-gap: 0;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values > * {
  position: absolute;
  left: 0;
  width: var(--pump-info-w);
  height: var(--pump-row-h);
  min-height: 0;
  max-height: var(--pump-row-h);
  overflow: hidden;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values > :nth-child(1) {
  top: 0;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values > :nth-child(2) {
  top: calc(var(--pump-row-h) + var(--pump-row-gap));
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values > :nth-child(3) {
  top: calc((var(--pump-row-h) + var(--pump-row-gap)) * 2);
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]) .pump-values > :nth-child(4) {
  top: calc((var(--pump-row-h) + var(--pump-row-gap)) * 3);
}

/* Application box row system: 254px box, 244px row bar, 3 x 78px content columns. */
.overview-screen .app-card:not(.full-width-prototype) {
  --app-box-w: 254px;
  --app-row-left: 5px;
  --app-row-w: 244px;
  --app-content-left: 5px;
  --app-content-w: 244px;
  --app-cell-w: 78px;
  --app-cell-gap: 5px;
  --app-row-h: 16px;
  --app-row-gap: 4px;
  --app-title-top: 4px;
  --app-info-top: 24px;
  width: var(--app-box-w);
  height: 112px;
  min-height: 112px;
  padding: 0;
}

.overview-screen .app-card:not(.full-width-prototype) .card-title {
  position: absolute;
  top: var(--app-title-top);
  left: var(--app-row-left);
  width: calc(var(--app-row-w) - 96px);
  height: var(--app-row-h);
  line-height: var(--app-row-h);
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
}

.overview-screen .app-card:not(.full-width-prototype) .badge-row.app-control-row {
  position: absolute;
  top: var(--app-title-top);
  right: var(--app-row-left);
  width: 91px;
  height: var(--app-row-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  overflow: visible;
}

.overview-screen .app-card:not(.full-width-prototype) .app-schedule-window-box {
  flex: 0 0 34px;
  width: 34px;
  height: var(--app-row-h);
}

.overview-screen .app-card:not(.full-width-prototype) .app-mode-badge {
  flex: 0 0 52px;
  width: 52px;
  min-width: 52px;
  height: var(--app-row-h);
  line-height: var(--app-row-h);
  padding: 0;
}

.overview-screen .app-card:not(.full-width-prototype) .app-body {
  position: absolute;
  top: var(--app-info-top);
  left: var(--app-content-left);
  width: var(--app-content-w);
  height: calc((var(--app-row-h) * 2) + var(--app-row-gap));
  right: auto;
  display: block;
}

.overview-screen .app-card:not(.full-width-prototype) .primary-value {
  display: block;
  width: var(--app-content-w);
  height: calc((var(--app-row-h) * 2) + var(--app-row-gap));
  min-height: 0;
}

.overview-screen .app-card:not(.full-width-prototype) .app-equipment-matrix {
  display: grid;
  grid-template-columns: repeat(3, var(--app-cell-w));
  grid-template-rows: repeat(2, var(--app-row-h));
  column-gap: var(--app-cell-gap);
  row-gap: var(--app-row-gap);
  width: var(--app-content-w);
  height: calc((var(--app-row-h) * 2) + var(--app-row-gap));
  align-items: center;
}

.overview-screen .app-card:not(.full-width-prototype) .app-equipment-cell,
.overview-screen .app-card:not(.full-width-prototype) .app-equipment-metric-cell,
.overview-screen .app-card:not(.full-width-prototype) .app-equipment-status-cell {
  width: var(--app-cell-w);
  height: var(--app-row-h);
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.overview-screen .app-card:not(.full-width-prototype) .app-equipment-status-cell .app-digital-status-chip,
.overview-screen .app-card:not(.full-width-prototype) .app-equipment-status-cell .pivot-output-chip {
  width: var(--app-cell-w);
  height: var(--app-row-h);
  line-height: var(--app-row-h);
  padding: 0 1px;
  font-size: 9px;
}

.overview-screen .app-card:not(.full-width-prototype) .app-equipment-metric-cell {
  border-radius: 3px;
  background: #dedede;
}

.overview-screen .app-card:not(.full-width-prototype) .app-equipment-matrix .metric-line {
  width: var(--app-cell-w);
  height: var(--app-row-h);
  display: grid;
  grid-template-columns: max-content max-content max-content;
  justify-content: center;
  align-items: center;
  column-gap: 4px;
  padding: 0;
  font-size: 10px;
  line-height: var(--app-row-h);
  white-space: nowrap;
}

.overview-screen .app-card:not(.full-width-prototype) .app-equipment-matrix .metric-label,
.overview-screen .app-card:not(.full-width-prototype) .app-equipment-matrix .metric-value,
.overview-screen .app-card:not(.full-width-prototype) .app-equipment-matrix .metric-unit {
  display: block;
  height: var(--app-row-h);
  font-size: 10px;
  line-height: var(--app-row-h);
  text-align: center;
}

.overview-screen .app-card:not(.full-width-prototype)::before {
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--app-row-left) var(--app-title-top) / var(--app-row-w) var(--app-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--app-row-left) var(--app-info-top) / var(--app-row-w) var(--app-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--app-row-left) calc(var(--app-info-top) + var(--app-row-h) + var(--app-row-gap)) / var(--app-row-w) var(--app-row-h) no-repeat;
}
/* Solar/grid fixed phone-width row system: 378px card, 368px row, two 181.5px boxes, 36px row 2 matching info boxes. */
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] {
  --energy-box-w: 378px;
  --energy-row-left: 5px;
  --energy-row-w: 368px;
  --energy-row-h: 16px;
  --energy-title-top: 4px;
  --energy-info-top: 24px;
  --energy-row2-h: 32px;
  --energy-info-box-h: 32px;
  --energy-info-box-top: calc(var(--energy-info-top) + ((var(--energy-row2-h) - var(--energy-info-box-h)) / 2));
  --energy-content-left: var(--energy-row-left);
  --energy-content-w: var(--energy-row-w);
  --energy-cell-gap: 5px;
  --energy-info-box-w: 181.5px;
  display: block;
  width: var(--energy-box-w);
  justify-self: start;
  height: 60px;
  min-height: 60px;
  padding: 0;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .card-title {
  position: absolute;
  top: var(--energy-title-top);
  left: var(--energy-row-left);
  width: var(--energy-row-w);
  height: var(--energy-row-h);
  font-size: 12px;
  line-height: var(--energy-row-h);
  font-weight: 700;
  text-align: left;
  z-index: 1;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-values {
  position: absolute;
  top: var(--energy-info-box-top);
  left: var(--energy-content-left);
  width: var(--energy-content-w);
  height: var(--energy-info-box-h);
  right: auto;
  padding: 0;
  margin: 0;
  z-index: 1;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary {
  display: grid;
  grid-template-columns: var(--energy-info-box-w) var(--energy-info-box-w);
  column-gap: var(--energy-cell-gap);
  width: 100%;
  height: var(--energy-info-box-h);
  align-items: center;
  justify-items: stretch;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-line {
  width: var(--energy-info-box-w);
  min-width: 0;
  justify-self: stretch;
  box-sizing: border-box;
  height: var(--energy-info-box-h);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 3px;
  background: #dedede;
  overflow: hidden;
  white-space: nowrap;
  transform: none;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-label,
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-value,
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-unit {
  position: static;
  top: auto;
  min-width: 0;
  height: var(--energy-info-box-h);
  font-size: 20px;
  line-height: var(--energy-info-box-h);
  text-align: center;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-label,
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-unit {
  font-weight: 400;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-value {
  margin-left: 0;
  font-weight: 700;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-unit::before {
  content: "";
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"]::before {
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--energy-row-left) var(--energy-title-top) / var(--energy-row-w) var(--energy-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--energy-row-left) var(--energy-info-top) / var(--energy-row-w) var(--energy-row2-h) no-repeat;
}
/* Solar/grid diagnostic hardening: same row mechanics as pump, wider boxes only. */
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"],
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] * {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-values,
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary,
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-line,
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-label,
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-value,
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-unit {
  box-sizing: border-box;
  min-height: 0;
  max-height: var(--energy-info-box-h);
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  transform: none;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-values {
  display: block;
  position: absolute;
  top: var(--energy-info-box-top);
  left: var(--energy-content-left);
  width: var(--energy-content-w);
  height: var(--energy-info-box-h);
  right: auto;
  padding: 0;
  margin: 0;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary {
  display: grid;
  grid-template-columns: var(--energy-info-box-w) var(--energy-info-box-w);
  column-gap: var(--energy-cell-gap);
  width: 100%;
  height: var(--energy-info-box-h);
  align-items: start;
  justify-items: stretch;
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-line {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  justify-content: center;
  align-items: center;
  column-gap: 4px;
  width: var(--energy-info-box-w);
  height: var(--energy-info-box-h);
  min-width: 0;
  justify-self: stretch;
  padding: 0;
  border-radius: 3px;
  background: #dedede;
  white-space: nowrap;
  line-height: var(--energy-info-box-h);
}

.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-label,
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-value,
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"] .energy-summary .metric-unit {
  display: block;
  position: static;
  top: auto;
  height: var(--energy-info-box-h);
  font-size: 20px;
  line-height: var(--energy-info-box-h);
  text-align: center;
}
/* Plan page row-2 slot standard: same status/info box mechanics as equipment cards. */
.overview-screen .app-card.full-width-prototype {
  --plan-row-left: 5px;
  --plan-row-right: 8px;
  --plan-row-h: 16px;
  --plan-info-top: 25px;
  --plan-cell-w: 78px;
  --plan-cell-gap: 5px;
}

.overview-screen .app-card.full-width-prototype .app-body {
  top: var(--plan-info-top);
  left: var(--plan-row-left);
  right: var(--plan-row-right);
  height: var(--plan-row-h);
}

.overview-screen .app-card.full-width-prototype .primary-value {
  display: block;
  width: 100%;
  height: var(--plan-row-h);
  min-height: 0;
  position: relative;
}

.overview-screen .app-card.full-width-prototype .primary-value::before {
  height: var(--plan-row-h);
}

.overview-screen .app-card.full-width-prototype .primary-value::after {
  content: none;
}

.overview-screen .app-card.full-width-prototype .app-plan-info-row {
  display: grid;
  grid-template-columns: repeat(4, var(--plan-cell-w));
  column-gap: var(--plan-cell-gap);
  align-items: center;
  width: calc((var(--plan-cell-w) * 4) + (var(--plan-cell-gap) * 3));
  height: var(--plan-row-h);
}

.overview-screen .app-card.full-width-prototype .app-plan-info-cell,
.overview-screen .app-card.full-width-prototype .app-plan-status-cell,
.overview-screen .app-card.full-width-prototype .app-plan-metric-cell {
  width: var(--plan-cell-w);
  height: var(--plan-row-h);
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.overview-screen .app-card.full-width-prototype .app-plan-metric-cell {
  border-radius: 3px;
  background: #dedede;
}

.overview-screen .app-card.full-width-prototype .app-plan-status-cell .app-digital-status-chip,
.overview-screen .app-card.full-width-prototype .app-plan-status-cell .pivot-output-chip {
  width: var(--plan-cell-w);
  height: var(--plan-row-h);
  line-height: var(--plan-row-h);
  padding: 0 1px;
  font-size: 9px;
}

.overview-screen .app-card.full-width-prototype .app-plan-metric-cell .metric-line {
  width: var(--plan-cell-w);
  height: var(--plan-row-h);
  display: grid;
  grid-template-columns: max-content max-content max-content;
  justify-content: center;
  align-items: center;
  column-gap: 4px;
  padding: 0;
  font-size: 10px;
  line-height: var(--plan-row-h);
  white-space: nowrap;
  transform: none;
}

.overview-screen .app-card.full-width-prototype .app-plan-metric-cell .metric-label,
.overview-screen .app-card.full-width-prototype .app-plan-metric-cell .metric-value,
.overview-screen .app-card.full-width-prototype .app-plan-metric-cell .metric-unit {
  display: block;
  height: var(--plan-row-h);
  font-size: 10px;
  line-height: var(--plan-row-h);
  text-align: center;
}

.missing-narrow-font .overview-screen .app-card.full-width-prototype .app-plan-metric-cell .metric-line,
.missing-narrow-font .overview-screen .app-card.full-width-prototype .app-plan-metric-cell .metric-label,
.missing-narrow-font .overview-screen .app-card.full-width-prototype .app-plan-metric-cell .metric-value,
.missing-narrow-font .overview-screen .app-card.full-width-prototype .app-plan-metric-cell .metric-unit {
  font-size: 10px;
  line-height: var(--plan-row-h);
  transform: none;
}
/* Plan page rows 3-6: stats, day names, schedule bar, daily values. */
.overview-screen .app-card.full-width-prototype {
  --plan-card-h: 132px;
  --plan-row3-top: 45px;
  --plan-row3-h: 18px;
  --plan-row4-top: 66px;
  --plan-row4-h: 10px;
  --plan-row5-top: 78px;
  --plan-row5-h: 24px;
  --plan-row6-top: 105px;
  --plan-row6-h: 18px;
  height: var(--plan-card-h);
  min-height: var(--plan-card-h);
}

.overview-screen .app-card.full-width-prototype .app-prototype-days {
  position: absolute;
  top: 0;
  left: var(--plan-row-left, 5px);
  right: 5px;
  height: var(--plan-card-h);
  margin: 0;
  gap: 0;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-row {
  position: absolute;
  top: var(--plan-row3-top);
  left: 0;
  right: 0;
  height: calc(var(--plan-row3-h) + var(--plan-row4-h) + var(--plan-row5-h) + 15px);
  min-height: 0;
  display: block;
  padding: 0;
  font-size: 18px;
  line-height: var(--plan-row3-h);
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-stats {
  position: absolute;
  top: 0;
  right: 0;
  height: var(--plan-row3-h);
  display: block;
  white-space: nowrap;
  color: #111;
  text-align: right;
  font-size: 18px;
  line-height: var(--plan-row3-h);
  font-weight: 700;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-chart {
  position: absolute;
  top: calc(var(--plan-row4-top) - var(--plan-row3-top));
  left: 0;
  right: 14px;
  height: calc(var(--plan-row4-h) + var(--plan-row5-h) + 2px);
  min-width: 0;
  display: block;
  padding: 0;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-labels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--plan-row4-h);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  font-size: 8px;
  line-height: var(--plan-row4-h);
  font-weight: 700;
  text-transform: uppercase;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-track {
  position: absolute;
  top: calc(var(--plan-row4-h) + 2px);
  left: 0;
  right: 0;
  height: var(--plan-row5-h);
  background: var(--bar-grey);
  border-radius: 5px;
  overflow: hidden;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-chart .app-window-next-status {
  right: 0;
  top: calc(var(--plan-row4-h) + 2px);
  height: var(--plan-row5-h);
}

.overview-screen .app-card.full-width-prototype .app-prototype-day-info-row {
  position: absolute;
  top: var(--plan-row6-top);
  left: 0;
  right: 14px;
  display: grid;
  grid-template-columns: repeat(var(--prototype-day-count, 4), minmax(0, 1fr));
  column-gap: 0;
  align-items: center;
  min-height: 0;
  height: var(--plan-row6-h);
  width: auto;
  padding: 0;
  box-sizing: border-box;
}

.overview-screen .app-card.full-width-prototype .app-prototype-day-info-cell {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  height: var(--plan-row6-h);
}

.overview-screen .app-card.full-width-prototype .app-prototype-day-info-values {
  color: #111;
  font-size: 18px;
  line-height: var(--plan-row6-h);
  font-weight: 700;
  white-space: nowrap;
}
/* Plan page app-card row rhythm aligned to equipment app-card standard. */
.overview-screen .app-card.full-width-prototype {
  --plan-title-top: 4px;
  --plan-info-top: 24px;
  --plan-row3-top: 44px;
  --plan-row4-top: 64px;
  --plan-row5-top: 76px;
  --plan-row6-top: 103px;
}

.overview-screen .app-card.full-width-prototype::before {
  top: var(--plan-title-top);
  height: var(--plan-row-h);
}

.overview-screen .app-card.full-width-prototype .card-title {
  top: var(--plan-title-top);
  height: var(--plan-row-h);
  line-height: var(--plan-row-h);
}

.overview-screen .app-card.full-width-prototype .badge-row.app-control-row {
  top: var(--plan-title-top);
  height: var(--plan-row-h);
}

.overview-screen .app-card.full-width-prototype .app-body {
  top: var(--plan-info-top);
  height: var(--plan-row-h);
}
/* Plan page visible row bars for rows 1-6 during layout tuning. */
.overview-screen .app-card.full-width-prototype::before {
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--plan-row-left, 5px) var(--plan-title-top, 4px) / calc(100% - 13px) var(--plan-row-h, 16px) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--plan-row-left, 5px) var(--plan-info-top, 24px) / calc(100% - 13px) var(--plan-row-h, 16px) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--plan-row-left, 5px) var(--plan-row3-top, 44px) / calc(100% - 13px) var(--plan-row3-h, 18px) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--plan-row-left, 5px) var(--plan-row4-top, 64px) / calc(100% - 13px) var(--plan-row4-h, 10px) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--plan-row-left, 5px) var(--plan-row5-top, 76px) / calc(100% - 13px) var(--plan-row5-h, 24px) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--plan-row-left, 5px) var(--plan-row6-top, 103px) / calc(100% - 13px) var(--plan-row6-h, 18px) no-repeat;
}
/* Plan page row guide layer must span the whole card, otherwise lower rows are clipped. */
.overview-screen .app-card.full-width-prototype::before {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: auto;
  z-index: 0;
}
/* Plan page final row spacing tune. */
.overview-screen .app-card.full-width-prototype {
  --plan-card-h: 129px;
  --plan-row3-h: 20px;
  --plan-row4-top: 68px;
  --plan-row5-top: 80px;
  --plan-row6-top: 107px;
  --plan-row6-h: 18px;
}

.overview-screen .app-card.full-width-prototype .card-title {
  font-size: 12px;
  line-height: var(--plan-row-h);
  font-weight: 800;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-row {
  height: calc(var(--plan-row3-h) + var(--plan-row4-h) + var(--plan-row5-h) + 15px);
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-stats {
  height: var(--plan-row3-h);
  font-size: 18px;
  line-height: var(--plan-row3-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.overview-screen .app-card.full-width-prototype .app-prototype-day-info-row {
  top: var(--plan-row6-top);
  height: var(--plan-row6-h);
}
/* Equipment page schedule stats: label row plus two values inside the 24px bar row. */
.overview-screen .app-card:not(.full-width-prototype) .app-window-summary {
  top: 69px;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 2px;
  align-items: start;
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-chart {
  height: 35px;
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-stats {
  height: 35px;
  margin-top: 0;
  align-self: start;
  display: grid;
  align-items: start;
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-stack {
  display: grid;
  grid-template-rows: 10px 12px 12px;
  row-gap: 0;
  align-items: center;
  justify-items: end;
  height: 34px;
  min-width: 42px;
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-unit {
  grid-row: 1;
  font-size: 6px;
  line-height: 10px;
  align-self: center;
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-actual,
.overview-screen .app-card:not(.full-width-prototype) .app-stat-target {
  font-size: 18px;
  line-height: 12px;
  align-self: center;
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-actual {
  grid-row: 2;
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-target {
  grid-row: 3;
}
/* Shared equipment-page card height: pump and app cards always match the tallest standard. */
:root {
  --equipment-card-h: 112px;
}

.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"]),
.overview-screen .app-card:not(.full-width-prototype) {
  height: var(--equipment-card-h);
  min-height: var(--equipment-card-h);
}
/* Equipment app-card schedule row standard: same lower-row rhythm as plan cards. */
.overview-screen .app-card:not(.full-width-prototype) {
  --app-row4-top: 64px;
  --app-row4-h: 10px;
  --app-row5-top: 76px;
  --app-row5-h: 24px;
  --app-row6-top: 103px;
  --app-row6-h: 18px;
}

.overview-screen .app-card:not(.full-width-prototype)::before {
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--app-row-left) var(--app-title-top) / var(--app-row-w) var(--app-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--app-row-left) var(--app-info-top) / var(--app-row-w) var(--app-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--app-row-left) calc(var(--app-info-top) + var(--app-row-h) + var(--app-row-gap)) / var(--app-row-w) var(--app-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--app-row-left) var(--app-row4-top) / var(--app-row-w) var(--app-row4-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--app-row-left) var(--app-row5-top) / var(--app-row-w) var(--app-row5-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--app-row-left) var(--app-row6-top) / var(--app-row-w) var(--app-row6-h) no-repeat;
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-summary,
.overview-screen .app-card[aria-label="DAM FILLING"] .app-window-summary,
.overview-screen .app-card[data-asset-id="APPL_2"] .app-window-summary,
.overview-screen .app-card[data-asset-id="APPL_3"] .app-window-summary,
.overview-screen .app-card[data-asset-id="APPL_4"] .app-window-summary {
  top: var(--app-row4-top);
  left: var(--app-row-left);
  right: 2px;
  height: calc(var(--app-row4-h) + 2px + var(--app-row5-h) + 3px + var(--app-row6-h));
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 2px;
  align-items: start;
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-chart {
  position: relative;
  height: calc(var(--app-row4-h) + 2px + var(--app-row5-h) + 3px + var(--app-row6-h));
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-labels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--app-row4-h);
  margin: 0;
  align-items: center;
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-bar {
  position: absolute;
  top: calc(var(--app-row4-h) + 2px);
  left: 0;
  right: 0;
  height: var(--app-row5-h);
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-next-status {
  top: calc(var(--app-row4-h) + 2px);
  height: var(--app-row5-h);
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-stats {
  height: calc(var(--app-row4-h) + 2px + var(--app-row5-h));
  margin-top: 0;
  align-self: start;
  display: grid;
  align-items: start;
}
/* Equipment app-card schedule: no row 6; values fit inside the 24px schedule bar. */
.overview-screen .app-card:not(.full-width-prototype)::before {
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--app-row-left) var(--app-title-top) / var(--app-row-w) var(--app-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--app-row-left) var(--app-info-top) / var(--app-row-w) var(--app-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--app-row-left) calc(var(--app-info-top) + var(--app-row-h) + var(--app-row-gap)) / var(--app-row-w) var(--app-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--app-row-left) var(--app-row4-top) / var(--app-row-w) var(--app-row4-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--app-row-left) var(--app-row5-top) / var(--app-row-w) var(--app-row5-h) no-repeat;
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-summary,
.overview-screen .app-card[aria-label="DAM FILLING"] .app-window-summary,
.overview-screen .app-card[data-asset-id="APPL_2"] .app-window-summary,
.overview-screen .app-card[data-asset-id="APPL_3"] .app-window-summary,
.overview-screen .app-card[data-asset-id="APPL_4"] .app-window-summary {
  height: calc(var(--app-row4-h) + 2px + var(--app-row5-h));
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-chart {
  height: calc(var(--app-row4-h) + 2px + var(--app-row5-h));
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-labels {
  font-size: 7px;
  line-height: var(--app-row4-h);
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-label.marker {
  font-size: 6px;
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-stats {
  height: calc(var(--app-row4-h) + 2px + var(--app-row5-h));
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-stack {
  grid-template-rows: var(--app-row4-h) 12px 12px;
  row-gap: 0;
  height: calc(var(--app-row4-h) + 24px);
  align-items: center;
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-unit {
  font-size: 6px;
  line-height: var(--app-row4-h);
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-actual,
.overview-screen .app-card:not(.full-width-prototype) .app-stat-target {
  font-size: 15px;
  line-height: 12px;
  height: 12px;
}
/* Equipment schedule fine tune: smaller day labels and compact today-hours stack. */
.overview-screen .app-card:not(.full-width-prototype) .app-window-labels,
.overview-screen .app-card:not(.full-width-prototype) .app-window-label {
  font-size: 6px;
  line-height: var(--app-row4-h);
  font-weight: 700;
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-stats {
  width: 38px;
  justify-items: end;
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-stack {
  grid-template-rows: var(--app-row4-h) 11px 11px;
  row-gap: 1px;
  height: calc(var(--app-row4-h) + var(--app-row5-h));
  min-width: 38px;
  align-items: center;
  justify-items: end;
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-unit {
  font-size: 5.5px;
  line-height: var(--app-row4-h);
  height: var(--app-row4-h);
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-actual,
.overview-screen .app-card:not(.full-width-prototype) .app-stat-target {
  font-size: 14px;
  line-height: 11px;
  height: 11px;
  min-height: 0;
  align-self: center;
}
/* Equipment schedule row bars stop before the today-hours column. */
.overview-screen .app-card:not(.full-width-prototype) {
  --app-schedule-stats-w: 38px;
  --app-schedule-gap: 2px;
  --app-schedule-row-w: calc(var(--app-row-w) - var(--app-schedule-stats-w) - var(--app-schedule-gap));
}

.overview-screen .app-card:not(.full-width-prototype)::before {
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--app-row-left) var(--app-title-top) / var(--app-row-w) var(--app-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--app-row-left) var(--app-info-top) / var(--app-row-w) var(--app-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--app-row-left) calc(var(--app-info-top) + var(--app-row-h) + var(--app-row-gap)) / var(--app-row-w) var(--app-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--app-row-left) var(--app-row4-top) / var(--app-schedule-row-w) var(--app-row4-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--app-row-left) var(--app-row5-top) / var(--app-schedule-row-w) var(--app-row5-h) no-repeat;
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-summary,
.overview-screen .app-card[aria-label="DAM FILLING"] .app-window-summary,
.overview-screen .app-card[data-asset-id="APPL_2"] .app-window-summary,
.overview-screen .app-card[data-asset-id="APPL_3"] .app-window-summary,
.overview-screen .app-card[data-asset-id="APPL_4"] .app-window-summary {
  grid-template-columns: var(--app-schedule-row-w) var(--app-schedule-stats-w);
  gap: var(--app-schedule-gap);
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-stats {
  width: var(--app-schedule-stats-w);
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-stack {
  min-width: var(--app-schedule-stats-w);
}
/* Equipment schedule final tune: narrower schedule row, smaller day labels, compact today-hours values. */
.overview-screen .app-card:not(.full-width-prototype) {
  --app-schedule-stats-w: 44px;
  --app-schedule-gap: 3px;
  --app-schedule-row-w: calc(var(--app-row-w) - var(--app-schedule-stats-w) - var(--app-schedule-gap));
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-labels,
.overview-screen .app-card:not(.full-width-prototype) .app-window-label {
  font-size: 5px;
  line-height: var(--app-row4-h);
  font-weight: 700;
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-label.marker {
  font-size: 5px;
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-stack {
  grid-template-rows: var(--app-row4-h) 10px 10px;
  row-gap: 1px;
  height: calc(var(--app-row4-h) + var(--app-row5-h));
  min-width: var(--app-schedule-stats-w);
  align-content: start;
  justify-items: end;
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-unit {
  font-size: 5px;
  line-height: var(--app-row4-h);
  height: var(--app-row4-h);
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-actual,
.overview-screen .app-card:not(.full-width-prototype) .app-stat-target {
  font-size: 12px;
  line-height: 10px;
  height: 10px;
  min-height: 0;
}

/* Equipment schedule chart owns row 4 and row 5 guide bars. */
.overview-screen .app-card:not(.full-width-prototype) .app-window-chart::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 0 0 / 100% var(--app-row4-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) 0 calc(var(--app-row4-h) + 2px) / 100% var(--app-row5-h) no-repeat;
  z-index: 0;
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-labels,
.overview-screen .app-card:not(.full-width-prototype) .app-window-bar {
  z-index: 1;
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-labels,
.overview-screen .app-card:not(.full-width-prototype) .app-window-label {
  font-size: 4.5px;
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-label.marker,
.overview-screen .app-card:not(.full-width-prototype) .app-stat-unit {
  font-size: 4.5px;
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-stack {
  grid-template-rows: var(--app-row4-h) 10px 10px;
  row-gap: 0;
  height: calc(var(--app-row4-h) + var(--app-row5-h));
  align-content: start;
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-actual,
.overview-screen .app-card:not(.full-width-prototype) .app-stat-target {
  font-size: 11px;
  line-height: 10px;
  height: 10px;
}

/* Equipment today-hours values live inside the 24px schedule bar row. */
.overview-screen .app-card:not(.full-width-prototype) .app-stat-stack {
  grid-template-rows: var(--app-row4-h) 2px 10px 10px 2px;
  row-gap: 0;
  height: calc(var(--app-row4-h) + 2px + var(--app-row5-h));
  align-content: start;
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-unit {
  grid-row: 1;
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-actual {
  grid-row: 3;
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-target {
  grid-row: 4;
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-actual,
.overview-screen .app-card:not(.full-width-prototype) .app-stat-target {
  font-size: 11px;
  line-height: 10px;
  height: 10px;
  min-height: 0;
}

/* Equipment today-hours values: largest practical size inside the 24px schedule bar row. */
.overview-screen .app-card:not(.full-width-prototype) .app-stat-stack {
  grid-template-rows: var(--app-row4-h) 2px 11px 11px;
  row-gap: 0;
  height: calc(var(--app-row4-h) + 2px + var(--app-row5-h));
  align-content: start;
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-actual,
.overview-screen .app-card:not(.full-width-prototype) .app-stat-target {
  font-size: 12px;
  line-height: 11px;
  height: 11px;
  min-height: 0;
}

/* Equipment schedule text final bump: one size larger day labels and today-hour values. */
.overview-screen .app-card:not(.full-width-prototype) .app-window-labels,
.overview-screen .app-card:not(.full-width-prototype) .app-window-label {
  font-size: 5px;
  line-height: var(--app-row4-h);
  font-weight: 700;
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-label.marker,
.overview-screen .app-card:not(.full-width-prototype) .app-stat-unit {
  font-size: 5px;
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-stack {
  grid-template-rows: var(--app-row4-h) 1px 11.5px 11.5px;
  row-gap: 0;
  height: calc(var(--app-row4-h) + 2px + var(--app-row5-h));
  align-content: start;
}

.overview-screen .app-card:not(.full-width-prototype) .app-stat-actual,
.overview-screen .app-card:not(.full-width-prototype) .app-stat-target {
  font-size: 13px;
  line-height: 11.5px;
  height: 11.5px;
  min-height: 0;
}

/* Equipment today-hours label one step larger. */
.overview-screen .app-card:not(.full-width-prototype) .app-stat-unit {
  font-size: 6px;
}

/* Plan page app title: use the same row-1 title standard as equipment cards. */
.overview-screen .app-card.full-width-prototype .card-title {
  position: absolute;
  top: var(--plan-title-top, 4px);
  left: var(--plan-row-left, 5px);
  height: var(--plan-row-h, 16px);
  line-height: var(--plan-row-h, 16px);
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 800;
  display: block;
  align-items: unset;
  transform: none;
}

/* Detail screen application header: same row/slot standard as equipment app cards. */
.detail-panel.detail-status-panel {
  padding: 4px 5px;
}

.detail-app-header {
  --detail-row-left: 0px;
  --detail-row-h: 16px;
  --detail-row-gap: 4px;
  --detail-title-top: 0px;
  --detail-info-top: 24px;
  position: relative;
  height: 16px;
  min-height: 16px;
}

.detail-app-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--detail-row-left) var(--detail-title-top) / calc(100% - 10px) var(--detail-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--detail-row-left) var(--detail-info-top) / calc(100% - 10px) var(--detail-row-h) no-repeat,
    linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)) var(--detail-row-left) calc(var(--detail-info-top) + var(--detail-row-h) + var(--detail-row-gap)) / calc(100% - 10px) var(--detail-row-h) no-repeat;
}

.detail-app-header > .card-title {
  position: absolute;
  top: var(--detail-title-top);
  left: var(--detail-row-left);
  width: calc(100% - 57px);
  height: var(--detail-row-h);
  line-height: var(--detail-row-h);
  margin: 0;
  padding: 0;
  z-index: 1;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.detail-app-header .badge-row.app-control-row {
  position: absolute;
  top: var(--detail-title-top);
  right: var(--detail-row-left);
  width: 52px;
  height: var(--detail-row-h);
  max-width: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 5px;
  overflow: visible;
  z-index: 1;
}

.detail-app-header .app-schedule-window-box {
  flex: 0 0 34px;
  width: 34px;
  height: var(--detail-row-h);
}

.detail-app-header .app-mode-badge {
  flex: 0 0 52px;
  width: 52px;
  min-width: 52px;
  height: var(--detail-row-h);
  line-height: var(--detail-row-h);
  padding: 0;
  border: 0;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: var(--config-compact-mode-font-size);
  font-weight: 700;
  text-align: center;
}

.detail-app-header .primary-value {
  position: absolute;
  top: var(--detail-info-top);
  left: var(--detail-row-left);
  width: calc(100% - 10px);
  height: calc((var(--detail-row-h) * 2) + var(--detail-row-gap));
  min-height: 0;
  margin: 0;
  display: block;
  z-index: 1;
}

.detail-app-header .app-equipment-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, var(--detail-row-h));
  column-gap: 5px;
  row-gap: var(--detail-row-gap);
  width: 100%;
  height: calc((var(--detail-row-h) * 2) + var(--detail-row-gap));
  align-items: center;
}

.detail-app-header .app-equipment-cell,
.detail-app-header .app-equipment-metric-cell,
.detail-app-header .app-equipment-status-cell {
  height: var(--detail-row-h);
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-app-header .app-equipment-status-cell .app-digital-status-chip,
.detail-app-header .app-equipment-status-cell .pivot-output-chip {
  width: 100%;
  height: var(--detail-row-h);
  line-height: var(--detail-row-h);
  padding: 0 1px;
  font-size: 9px;
}

.detail-app-header .app-equipment-metric-cell {
  border-radius: 3px;
  background: #dedede;
}

.detail-app-header .app-equipment-matrix .metric-line {
  width: 100%;
  height: var(--detail-row-h);
  display: grid;
  grid-template-columns: max-content max-content max-content;
  justify-content: center;
  align-items: center;
  column-gap: 4px;
  padding: 0;
  font-size: 10px;
  line-height: var(--detail-row-h);
  white-space: nowrap;
}

.detail-app-header .app-equipment-matrix .metric-label,
.detail-app-header .app-equipment-matrix .metric-value,
.detail-app-header .app-equipment-matrix .metric-unit {
  display: block;
  height: var(--detail-row-h);
  line-height: var(--detail-row-h);
  font-size: 10px;
}

.detail-app-header .app-equipment-matrix .metric-value {
  font-weight: 800;
}

.detail-app-header .app-mode-badge.mode-0 { background: var(--aei-red); color: #fff; }
.detail-app-header .app-mode-badge.mode-1 { background: var(--aei-orange); color: #000; }
.detail-app-header .app-mode-badge.mode-2 { background: var(--aei-green); color: #000; }
.detail-app-header .app-mode-badge.mode-3 { background: var(--aei-green); color: #000; }
.detail-app-header .app-mode-badge.mode-4 { background: #a957d8; color: #fff; }
.detail-app-header .app-mode-badge.mode-5 { background: var(--aei-blue); color: #fff; }
/* Detail mode pad: six modes plus Apply/Cancel. */
.detail-mode-panel {
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 5px;
  margin-top: 4px;
  padding: 5px;
}

.detail-mode-choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.detail-mode-choice {
  min-height: 32px;
  font-size: 15px;
  line-height: 15px;
}

.detail-edit-actions {
  gap: 5px;
}

.detail-edit-actions .schedule-apply,
.detail-edit-actions .schedule-cancel {
  min-height: 32px;
  font-size: 15px;
  line-height: 15px;
}

.detail-mode-choice.mode4,
.detail-mode-choice.mode5,
.badge.mode4,
.badge.mode5 {
  background: #d7d7d7;
  color: #000;
}

/* Detail mode colors and unavailable-button treatment. */
.detail-mode-choice.effluent,
.badge.effluent {
  background: #8d4de8;
  color: #fff;
}

.detail-mode-choice.maint,
.badge.maint {
  background: var(--aei-blue);
  color: #fff;
}

.detail-mode-choice:disabled,
.detail-mode-choice.unavailable {
  background: #d6d6d6 !important;
  color: #8a8a8a !important;
  opacity: 1;
  box-shadow: none;
}

/* Current selected mode keeps its normal color; unavailable non-current modes are grey. */
.detail-mode-choice.selected:disabled {
  opacity: 1;
}

.detail-mode-choice.oos.selected:disabled {
  background: var(--aei-red) !important;
  color: #fff !important;
}

.detail-mode-choice.off.selected:disabled {
  background: var(--aei-orange) !important;
  color: #000 !important;
}

.detail-mode-choice.auto.selected:disabled {
  background: var(--aei-green) !important;
  color: #000 !important;
}

.detail-mode-choice.solar.selected:disabled {
  background: #fff05c !important;
  color: #000 !important;
}

.detail-mode-choice.effluent.selected:disabled {
  background: #8d4de8 !important;
  color: #fff !important;
}

.detail-mode-choice.maint.selected:disabled {
  background: var(--aei-blue) !important;
  color: #fff !important;
}

/* Mode write pending state. */
.detail-mode-waiting {
  grid-column: 1 / -1;
  min-height: 18px;
  display: grid;
  place-items: center;
  background: #e1e1e1;
  color: #111;
  border-radius: 4px;
  font-size: 11px;
  line-height: 18px;
  font-weight: 900;
}

.detail-edit-actions button:disabled {
  opacity: .6;
}

/* Design guide visibility: row bars are off by default, and can be enabled per page with ?guides=overview, ?guides=detail, or ?guides=all. */
html:not(.row-guides-overview) .overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"])::before,
html:not(.row-guides-overview) .overview-screen .app-card:not(.full-width-prototype)::before,
html:not(.row-guides-overview) .overview-screen .app-card.full-width-prototype::before,
html:not(.row-guides-overview) .energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"]::before,
html:not(.row-guides-overview) .overview-screen .app-card:not(.full-width-prototype) .app-window-chart::before {
  display: none !important;
  background: none !important;
}

html:not(.row-guides-detail) .detail-app-header::before {
  background: none !important;
}

/* Current mode button is not selectable; it is shown grey even when it is the selected/current mode. */
.detail-mode-choice.current,
.detail-mode-choice.current:disabled,
.detail-mode-choice.current.selected:disabled,
.detail-mode-choice.current.oos.selected:disabled,
.detail-mode-choice.current.off.selected:disabled,
.detail-mode-choice.current.auto.selected:disabled,
.detail-mode-choice.current.solar.selected:disabled,
.detail-mode-choice.current.effluent.selected:disabled,
.detail-mode-choice.current.maint.selected:disabled {
  background: #d6d6d6 !important;
  color: #8a8a8a !important;
  opacity: 1;
  box-shadow: none;
  outline: none;
}
.trend-card .trend-title,
.trend-card-daily .trend-title {
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
}
.trend-average-line {
  stroke-dasharray: 8 5;
  stroke-linecap: round;
}
/* Equipment schedule day slots: labels, segments, and dividers follow the visible day count. */
.overview-screen .app-card:not(.full-width-prototype) .app-window-labels,
.overview-screen .app-card:not(.full-width-prototype) .app-window-segments,
.overview-screen .app-card:not(.full-width-prototype) .app-window-days {
  display: grid;
  grid-template-columns: repeat(var(--overview-day-count, 4), minmax(0, 1fr));
}

.overview-screen .app-card:not(.full-width-prototype) .app-window-label,
.overview-screen .app-card:not(.full-width-prototype) .app-window-segment,
.overview-screen .app-card:not(.full-width-prototype) .app-window-day,
.overview-screen .app-card:not(.full-width-prototype) .app-window-label.marker,
.overview-screen .app-card:not(.full-width-prototype) .app-window-segment.marker,
.overview-screen .app-card:not(.full-width-prototype) .app-window-day.marker {
  flex: none;
}

/* Keep overview row guide bars off while the normal pages are in use. */
.overview-screen .pump-card:is([data-asset-id="PUMP_1"], [data-asset-id="PUMP_2"], [data-asset-id="PUMP_3"])::before,
.overview-screen .app-card:not(.full-width-prototype)::before,
.overview-screen .app-card.full-width-prototype::before,
.energy-card.energy-full[data-asset-id="ENERGY_ONSITE_POWER"]::before,
.overview-screen .app-card:not(.full-width-prototype) .app-window-chart::before {
  display: none !important;
  background: none !important;
}
/* Schedule marker placement: keep the orange next-schedule pill after the grey bar. */
.overview-screen .app-card.full-width-prototype {
  --plan-next-marker-space: 13px;
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-labels,
.overview-screen .app-card.full-width-prototype .app-prototype-summary-track {
  right: var(--plan-next-marker-space);
}

.overview-screen .app-card.full-width-prototype .app-prototype-summary-chart .app-window-next-status {
  right: 0;
}

.overview-screen .app-card.full-width-prototype .app-prototype-day-info-row {
  right: calc(14px + var(--plan-next-marker-space));
}

/* Clamp each schedule fill to its own grey segment so blue cannot spill outside the visible track. */
.app-window-segment {
  overflow: hidden;
}

.app-window-segment-target,
.app-window-segment-actual {
  max-width: 100%;
}

/* Plan page day labels follow the actual visible day count; equipment keeps variable-width days. */
.overview-screen .app-card.full-width-prototype .app-prototype-summary-labels {
  grid-template-columns: repeat(var(--prototype-day-count, 4), minmax(0, 1fr));
}

/* Full-width plan empty state: keep rows 1-2 visible and place no-schedule message in row 5 only. */
.overview-screen .app-card.full-width-prototype .app-prototype-days.empty-current {
  position: absolute;
  top: 0;
  left: var(--plan-row-left, 5px);
  right: 5px;
  height: var(--plan-card-h, 129px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--plan-next-marker-space, 13px);
  column-gap: 0;
  margin: 0;
  pointer-events: none;
}

.overview-screen .app-card.full-width-prototype .app-prototype-empty-current {
  grid-column: 1;
  align-self: start;
  margin: 0;
  margin-top: var(--plan-row5-top, 80px);
  height: var(--plan-row5-h, 24px);
}

.overview-screen .app-card.full-width-prototype .app-prototype-days.empty-current .app-window-next-status {
  grid-column: 2;
  align-self: start;
  position: static;
  margin-top: var(--plan-row5-top, 80px);
  width: 10px;
  height: var(--plan-row5-h, 24px);
}

/* Full-width plan empty schedule uses the same bar geometry as the normal schedule row. */
.overview-screen .app-card.full-width-prototype .app-prototype-empty-current {
  margin-right: var(--plan-next-marker-space, 13px);
}

.overview-screen .app-card.full-width-prototype .app-prototype-days.empty-current .app-window-next-status {
  justify-self: end;
}

/* Full-width empty schedule final alignment: same x/y geometry as the normal schedule track. */
.overview-screen .app-card.full-width-prototype .app-prototype-days.empty-current {
  display: block;
}

.overview-screen .app-card.full-width-prototype .app-prototype-empty-current {
  position: absolute;
  top: var(--plan-row5-top, 80px);
  left: 0;
  right: calc(14px + var(--plan-next-marker-space, 13px));
  margin: 0;
  height: var(--plan-row5-h, 24px);
}

.overview-screen .app-card.full-width-prototype .app-prototype-days.empty-current .app-window-next-status {
  position: absolute;
  top: var(--plan-row5-top, 80px);
  right: 14px;
  margin: 0;
  width: 10px;
  height: var(--plan-row5-h, 24px);
}
.equipment-application-card.service-inhibited-card::after,
.plan-box-card.service-inhibited-card::after,
.detail-status-panel.service-inhibited-card::after,
.detail-mode-choice.effluent-mode-inhibited::after {
  content: attr(data-inhibit-label);
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  z-index: 18;
  display: grid;
  place-items: center;
  height: 22px;
  border: 2px solid rgba(0, 0, 0, .62);
  border-radius: 2px;
  background: transparent;
  color: rgba(0, 0, 0, .68);
  font-size: 14px;
  line-height: 16px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
  transform: translateY(-50%) rotate(-45deg);
  pointer-events: none;
  box-sizing: border-box;
}

.detail-status-panel.service-inhibited-card {
  position: relative;
  overflow: hidden;
}

.detail-mode-choice.effluent-mode-inhibited {
  position: relative;
  overflow: hidden;
}

.detail-mode-choice.effluent.effluent-mode-inhibited:disabled {
  background: #d6d6d6 !important;
  color: #8a8a8a !important;
}

.detail-mode-choice.effluent-mode-inhibited::after {
  left: 50%;
  right: auto;
  width: 80px;
  max-width: calc(100% - 8px);
  height: 14px;
  font-size: 9px;
  line-height: 10px;
  transform: translate(-50%, -50%) rotate(-22deg);
}

.equipment-application-card.service-provider-locked {
  cursor: default;
}

.detail-mode-choice.service-return-mode {
  box-shadow: inset 0 0 0 2px rgba(246, 187, 52, .9);
}
@keyframes aei-service-return-mode-flash {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}

.detail-mode-choice.service-return-mode:not(.unavailable):not(:disabled) {
  animation: aei-service-return-mode-flash 1s steps(2, end) infinite;
}
.plan-box-mode.mode-5,
.equipment-component-mode.mode-5,
.app-mode-badge.mode-maint,
.badge.mode-maint {
  background: var(--aei-blue) !important;
  color: #fff !important;
}
/* Hide the deprecated next-schedule side marker symbol while preserving normal schedule bars. */
.smartbox-strip-marker,
.config-schedule-next-status,
.app-window-next-status {
  display: none !important;
}

.config-schedule-manager-shell .smartbox-strip-main,
.config-schedule-manager-shell .smartbox-app-strip {
  padding-right: 0 !important;
}

.app-window-summary,
.app-window-summary.empty-current {
  grid-template-columns: minmax(0, 1fr) !important;
}
.site-configure {
  width: 100%;
  min-height: 42px;
  margin: 12px 0 0;
  border: 1px solid #24983c;
  border-radius: 5px;
  background: #45df61;
  color: #0b2a13;
  font: inherit;
  font-weight: 700;
}

.site-configure[hidden] {
  display: none !important;
}
:is(.live-display-slot-stale, .live-display-slot-stale *) {
  text-decoration-line: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 2px !important;
}

