﻿:root {
  --design-width: 1920;
  --design-height: 1080;
  --dashboard-scale: 1;
  --dashboard-min-scale: 0.62;
  --dashboard-max-scale: 1.3333;
  --line: rgba(170, 220, 255, 0.12);
  --line-soft: rgba(170, 220, 255, 0.08);
  --energy-line: rgba(26, 117, 255, 0.22);
  --energy-line-soft: rgba(26, 117, 255, 0.14);
  --ops-line: rgba(136, 162, 242, 0.18);
  --ops-line-soft: rgba(136, 162, 242, 0.1);
  --text: #eef8ff;
  --muted: #9eb8ca;
  --co2: #1f933c;
  --co2-text: #3359cc;
  --co2-title: #242c42;
  --green: #4d94ff;
  --yellow: #ffd76a;
  --orange: #ffab67;
  --blue: #7ad9ff;
  --cyan: #89f1ff;
  --danger: #ff8e72;
  --delta-up: #ff7b72;
  --delta-flat: #a9b6c2;
  --delta-down: #4d94ff;
  --state-good: #4d94ff;
  --state-good-soft: rgba(26, 117, 255, 0.1);
  --state-caution: #ffd76a;
  --state-caution-soft: rgba(255, 215, 106, 0.14);
  --state-risk: #ff8e72;
  --state-risk-soft: rgba(180, 92, 78, 0.18);
  --state-neutral: #a9b6c2;
  --state-neutral-soft: rgba(169, 182, 194, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-outer: 18px;
  --radius-panel: 18px;
  --radius-card: 14px;
  --radius-subcard: 10px;
  --radius-chip: 6px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    linear-gradient(135deg, #121521 0%, #08112b 48%, #121521 100%);
  color: var(--text);
  font-family:
    "Pretendard", "SUIT Variable", "Noto Sans KR", "Segoe UI", sans-serif;
}

body {
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
}

.display-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.shell {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--design-width) * 1px);
  height: calc(var(--design-height) * 1px);
  min-height: 0;
  padding: 16px;
  display: grid;
  grid-template-rows: auto minmax(0, 2fr) minmax(0, 8fr) auto;
  gap: 10px;
  overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--dashboard-scale));
  transform-origin: center center;
}

.overview-strip,
.layout,
.heat-panel,
.impact-card {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.topbar,
.footerbar {
  display: grid;
  grid-template-columns: 1.15fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 4px 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 154px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-copy h1 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.brand-copy p,
.footerbar p {
  margin: 4px 0 0;
  color: rgba(183, 203, 218, 0.58);
  font-size: 0.82rem;
}

.footer-update {
  justify-self: end;
  color: rgba(183, 203, 218, 0.58);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.footer-update strong {
  margin-left: 6px;
  color: rgba(236, 246, 255, 0.82);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.status-cluster {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(236, 246, 255, 0.82);
  font-size: 0.84rem;
  line-height: 1;
  white-space: nowrap;
}

.pill strong {
  color: #fff;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.pill-now {
  background: rgba(26, 117, 255, 0.14);
  border-color: rgba(126, 179, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 22px rgba(0, 0, 0, 0.12);
  font-weight: 800;
}

.pill-time {
  gap: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.1);
  font-weight: 800;
}

.clock-date {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(220, 234, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.pill-update {
  position: relative;
  padding-left: 14px;
  background: rgba(136, 162, 242, 0.08);
  border-color: rgba(136, 162, 242, 0.18);
}

.pill-basis {
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(220, 234, 255, 0.66);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
}

.pill-update::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.8px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  position: relative;
  margin-right: 2px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)) center 3px / 1.6px 4px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)) calc(50% + 2px) calc(50% + 1px) / 4px 1.6px no-repeat;
  opacity: 0.92;
  flex: 0 0 auto;
}

.overview-strip {
  background-color: #04131e80;
  border-color: #5a77df;
  border-width: 2px;
}

.zone-overview {
  display: grid;
  grid-template-columns: 18% minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
}

.overview-strip p,
.impact-card p {
  margin: 2px 0 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.78rem;
}

.overview-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.overview-energy-card,
.overview-impact-card,
.resource-card {
  padding: 8px 10px;
  border-radius: 12px;
}


.overview-energy-card,
.overview-impact-card {
  position: relative;
  min-height: 0;
  display: grid;
  gap: 5px;
}

.overview-energy-card.electric::after {
  background: linear-gradient(180deg, #6e90f7, rgba(110, 144, 247, 0.28));
}

.overview-energy-card.gas::after {
  background: linear-gradient(180deg, #ff9933, rgba(255, 153, 51, 0.28));
}

.overview-energy-card.water::after {
  background: linear-gradient(180deg, #89f1ff, rgba(137, 241, 255, 0.28));
}

.overview-energy-card.warn::after,
.overview-impact-card.warn::after {
  background: linear-gradient(180deg, var(--yellow), #ff9d66);
}

.overview-energy-card strong,
.overview-impact-card strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.overview-energy-card small,
.overview-impact-card small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.overview-visual {
  display: grid;
  grid-template-rows: 1fr;
  gap: 6px;
  min-height: 0;
}

.overview-grid {
  align-self: stretch;
  min-height: 0;
}

.overview-card-head {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  align-items: flex-start;
}

.overview-card-head span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.campus-scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: var(--radius-pill);
  color: #dceaff !important;
  background: rgba(126, 179, 255, 0.12);
  border: 1px solid rgba(126, 179, 255, 0.22);
  font-size: 0.58rem !important;
  font-weight: 900 !important;
  line-height: 1;
  white-space: nowrap;
}

.campus-scope-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  flex: 0 0 auto;
}

.campus-scope-badge.electric {
  color: #dceaff !important;
  background: rgba(110, 144, 247, 0.16);
  border-color: rgba(130, 161, 255, 0.3);
}

.campus-scope-badge.gas {
  color: #ffe0ba !important;
  background: rgba(255, 153, 51, 0.14);
  border-color: rgba(255, 176, 92, 0.3);
}

.campus-scope-badge.water {
  color: #d8fbff !important;
  background: rgba(137, 241, 255, 0.13);
  border-color: rgba(143, 245, 255, 0.3);
}

.overview-live-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(112px, 0.65fr);
  gap: 6px;
  align-items: stretch;
}

.overview-live-metrics {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 6px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}


.overview-live-number {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.overview-live-value {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  order: 2;
  padding-top: 6px;
}

.overview-live-number strong {
  display: block;
  font-size: 2.4rem;
  line-height: 0.9;
  letter-spacing: -0.07em;
  white-space: nowrap;
}

.overview-live-value small,
.metric-unit {
  font-size: 0.66em;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  opacity: 0.9;
}

.overview-live-number small {
  display: block;
  margin-bottom: 3px;
  font-size: 0.84rem;
  color: #9fd2ff;
  white-space: nowrap;
}

.overview-live-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-chip);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  order: 1;
}

.overview-live-icon svg {
  width: 26px;
  height: 26px;
}

.overview-live-icon.electric {
  color: #12274f;
  background: #6e90f7;
  border-color: rgba(180, 202, 255, 0.44);
}

.overview-live-icon.gas {
  color: #3b1b05;
  background: #ff9933;
  border-color: rgba(255, 198, 124, 0.46);
}

.overview-live-icon.water {
  color: #073644;
  background: #89f1ff;
  border-color: rgba(200, 251, 255, 0.48);
}

.overview-spark {
  position: relative;
  min-height: 34px;
  padding: 3px 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.01)),
    repeating-linear-gradient(to right,
      rgba(255, 255, 255, 0.07) 0,
      rgba(255, 255, 255, 0.07) 1px,
      transparent 1px,
      transparent 25%);
  overflow: hidden;
}

.overview-spark::before {
  content: "";
  position: absolute;
  inset: 6px 5px 14px;
  background: repeating-linear-gradient(to bottom,
      rgba(255, 255, 255, 0.07) 0,
      rgba(255, 255, 255, 0.07) 1px,
      transparent 1px,
      transparent 25%);
  pointer-events: none;
}

.overview-spark svg {
  position: relative;
  width: 100%;
  height: 22px;
  z-index: 1;
}

.overview-spark path.fill {
  opacity: 0.18;
}

.overview-spark path.line {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.14));
}

.overview-current-dot {
  fill: #fff;
  stroke-width: 5;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.42));
  pointer-events: none;
}

.overview-future-year-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 4 5;
  opacity: 0.42;
  pointer-events: none;
}

.overview-spark.electric .overview-current-dot {
  stroke: #6e90f7;
}

.overview-spark.gas .overview-current-dot {
  stroke: #ff9933;
}

.overview-spark.water .overview-current-dot {
  stroke: #89f1ff;
}

.overview-spark.electric .overview-future-year-line {
  stroke: #aebfff;
}

.overview-spark.gas .overview-future-year-line {
  stroke: #ffd09c;
}

.overview-spark.water .overview-future-year-line {
  stroke: #cffbff;
}

.overview-spark.electric path.line {
  stroke: #6e90f7;
}

.overview-spark.electric path.fill {
  fill: #6e90f7;
}

.overview-spark.gas path.line {
  stroke: #ff9933;
}

.overview-spark.gas path.fill {
  fill: #ff9933;
}

.overview-spark.water path.line {
  stroke: #89f1ff;
}

.overview-spark.water path.fill {
  fill: #89f1ff;
}

.overview-hours {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.55rem;
  text-align: center;
}

.overview-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-left: 51px;
}

.overview-compare-item {
  padding: 9px;
  border-radius: 7px;
  background: rgba(231, 242, 254, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label label"
    "value delta";
  gap: 4px 7px;
  align-content: start;
}

.overview-compare-item span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 3px;
}

.overview-compare-item em {
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  line-height: 1.1;
  font-style: normal;
  font-weight: 500;
  opacity: 0.82;
}

.overview-compare-item.down strong {
  color: var(--state-good);
}

.overview-compare-item.is-caution strong {
  color: var(--state-caution);
}

.overview-compare-item.is-risk strong,
.overview-compare-item.up strong {
  color: var(--state-risk);
}

.overview-compare-item.is-good em,
.overview-compare-item.down em {
  color: var(--state-good);
}

.overview-compare-item.is-caution em {
  color: var(--state-caution);
}

.overview-compare-item.is-risk em,
.overview-compare-item.up em {
  color: var(--state-risk);
}


.overview-energy-card .overview-live-metrics {
  padding: 0;
  background: transparent;
  border: 0;
}

.overview-energy-card .overview-spark {
  padding: 2px 0 2px;
  border: 0;
  background: transparent;
}

.overview-energy-card .overview-spark::before {
  display: none;
}

.overview-energy-card .overview-compare {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-left: 0;
}

.overview-impact-card .overview-live-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.overview-impact-card .overview-live-metrics {
  padding: 0;
  background: transparent;
  border: 0;
}

.overview-impact-inline-compare {
  display: flex;
  width: fit-content;
  justify-content: flex-end;
  justify-self: end;
  align-self: start;
  text-align: left;
  gap: 14px;
}

.overview-impact-inline-item {
  display: grid;
  gap: 1px;
  min-width: 54px;
  justify-items: start;
  text-align: left;
}

.overview-impact-inline-item span {
  color: rgba(16, 32, 47, 0.58);
  font-size: 0.72rem;
  line-height: 1.1;
}

.overview-compare-item strong,
.overview-impact-inline-item strong {
  font-size: 1.04rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.overview-impact-inline-item small {
  display: block;
  margin-top: 2px;
  color: rgba(16, 32, 47, 0.62);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.12;
  white-space: nowrap;
}

.overview-impact-card.infographic-card,
.overview-impact-card.carbon {
  position: relative;
  align-self: start;
  overflow: hidden;
  align-content: start;
  padding: 15px;
}


.overview-impact-card .overview-card-head {
  padding: 0 0 8px;
}

.overview-impact-card.infographic-card small,
.overview-impact-card.carbon small {
  color: rgba(16, 32, 47, 0.6);
}

.carbon .overview-live-value strong,
.overview-impact-card.infographic-card strong,
.overview-impact-card.carbon strong {
  color: var(--co2);
}

.carbon {
  display: grid;
  align-content: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  padding: 14px 16px 12px;
  background-image: url(/resources/img/ic3.png);
  background-position: 90% 60%;
  background-size: 20%;
  background-repeat: no-repeat;
  color: #ecf6ff;
}

.carbon .overview-card-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 0;
}

.carbon .overview-card-head span:not(.campus-carbon-kicker) {
  color: rgba(236, 246, 255, 0.9);
}

.campus-carbon-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #dfffea !important;
  background: rgba(35, 164, 85, 0.18);
  border: 1px solid rgba(103, 232, 141, 0.32);
  font-size: 0.58rem !important;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.campus-carbon-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #67e88d;
  box-shadow: 0 0 10px rgba(103, 232, 141, 0.55);
  flex: 0 0 auto;
}

.carbon .overview-live-row {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  margin-bottom: 0;
  grid-column: 1;
  align-self: stretch;
}

.carbon .overview-live-metrics {
  min-height: 70px;
  padding: 8px 0 7px;
  background: transparent;
  border: 0;
}

.carbon .overview-live-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.carbon .overview-live-value {
  align-items: baseline;
  gap: 8px;
}

.carbon .overview-live-value strong {
  color: #67e88d !important;
  text-shadow: 0 8px 20px rgba(20, 146, 62, 0.24);
}

.carbon .overview-live-value small {
  color: rgba(220, 234, 255, 0.68);
}

.carbon-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 0;
  min-height: 90px;
  max-width: 80%;
}

.carbon-metric {
  position: relative;
  min-width: 0;
  padding: 9px 13px 8px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.carbon-metric+.carbon-metric {
  padding-left: 14px;
  padding-right: 0;
}

.carbon-metric::before {
  content: "";
  display: block;
  width: 26px;
  height: 4px;
  margin-bottom: 9px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #67e88d, rgba(137, 241, 255, 0.55));
  box-shadow: 0 0 14px rgba(103, 232, 141, 0.32);
}

.carbon-metric span {
  display: block;
  color: rgba(220, 255, 234, 0.68);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.12;
  white-space: nowrap;
}

.carbon-metric strong {
  display: inline-block;
  margin-top: 8px;
  color: #67e88d !important;
  font-size: 1.9rem;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-shadow: 0 8px 20px rgba(20, 146, 62, 0.24);
}

.carbon-metric small {
  display: inline-block;
  margin-left: 5px;
  color: rgba(220, 234, 255, 0.68) !important;
  font-size: 0.72rem;
  font-weight: 800;
}

.carbon-metric-total {
  background: transparent;
  border-color: rgba(103, 232, 141, 0.24);
}

.overview-impact-message {
  display: grid;
  gap: 5px;
  padding: 7px 8px;
  margin-bottom: 2px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(26, 117, 255, 0.14);
}

.overview-impact-message strong {
  font-size: 1.15em;
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #155ec7;
}

.overview-impact-message p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(22, 43, 61, 0.72);
}

.detail-impact-card {
  min-height: auto;
  height: auto;
  align-self: start;
  background-size: 55%;
  background-position: 100% 100%;
  background-image: url(/resources/img/ic2.png);
  background-repeat: no-repeat;
  border-radius: 0;
  background-color: rgba(207, 230, 252, 0.96);
  color: #10202f;
  box-shadow: 0 18px 34px rgba(4, 16, 28, 0.18);
}

.detail-impact-card.infographic-card .building-badge {
  background-color: #04131e80;
}

.detail-impact-card>article:last-child {
  align-self: start;
}

.detail-impact-card .overview-live-row {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 10px;
}

.building-impact-metrics-card {
  align-self: start;
}

.detail-impact-card .building-impact-metrics-card .overview-card-head {
  padding-bottom: 6px;
}

.detail-impact-card .building-impact-metrics-card .overview-card-head span {
  color: rgba(22, 43, 61, 0.78);
  font-weight: 900;
}

.detail-impact-card .building-impact-metrics-card .overview-live-row {
  gap: 14px;
  margin-bottom: 8px;
}

.detail-impact-card .building-impact-metrics-card .overview-live-metrics {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.detail-impact-card .building-impact-metrics-card .overview-impact-inline-item {
  min-width: 76px;
  padding: 8px 9px;
  border-radius: var(--radius-chip);
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.82),
      rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 8px 18px rgba(35, 76, 118, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

.detail-impact-card .building-impact-metrics-card .overview-impact-inline-item span,
.detail-impact-card .building-impact-metrics-card .overview-impact-inline-item small {
  color: rgba(22, 43, 61, 0.66);
}

.building-focus-card {
  position: relative;
  min-height: auto;
  height: auto;
  align-self: start;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}


.building-focus-card>* {
  position: relative;
  z-index: 1;
}

.building-focus-photo {
  min-height: 154px;
  border-radius: 10px;
  background-image: var(--focus-image,
      linear-gradient(135deg,
        rgba(136, 162, 242, 0.18),
        rgba(26, 117, 255, 0.16)));
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.building-focus-copy {
  display: none;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.building-focus-copy strong {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: -0.02em;
}

.building-focus-copy p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.34;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.resource-name {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 4px 0;
}

.layout {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  gap: 10px;
  min-height: 0;
  overflow: visible;
  border: none;
}

.heat-panel {
  padding: 14px;
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: visible;
  grid-template-rows: auto minmax(0, 1fr);
  background-color: rgba(231, 242, 254, 0.1);
}

.heat-top,
.detail-header,
.resource-head,
.detail-badges {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.detail-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: fit-content;
  margin-top: 2px;
}

.detail-title-row h3 {
  margin: 0;
  flex: 0 0 auto;
}

.detail-header .detail-badges {
  display: inline-flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.building-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--ops-line-soft);
  color: var(--muted);
  font-size: 0.78rem;
}

.heat-basis-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: var(--radius-chip);
  color: rgba(220, 234, 255, 0.72);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  font-size: 0.7rem;
  line-height: 1;
  white-space: nowrap;
}

.heat-basis-legend::before {
  content: "집계기준";
  padding-right: 7px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(220, 234, 255, 0.5);
  font-size: 0.66rem;
  font-weight: 800;
}

.heat-basis-legend span {
  color: rgba(220, 234, 255, 0.52);
  font-weight: 700;
}

.heat-basis-legend strong {
  color: var(--state-risk);
/*  color: rgba(255, 255, 255, 0.9);*/
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.table-rank.gold {
  color: #1f1400;
  background: linear-gradient(135deg, #ffe27d, #ffb347);
  box-shadow: 0 10px 22px rgba(255, 190, 90, 0.28);
}

.table-rank.silver {
  color: #15202b;
  background: linear-gradient(135deg, #edf3fb, #aebdcc);
  box-shadow: 0 10px 22px rgba(174, 189, 204, 0.2);
}

.table-rank.bronze {
  color: #23160d;
  background: linear-gradient(135deg, #e6b286, #b87444);
  box-shadow: 0 10px 22px rgba(184, 116, 68, 0.22);
}

.table-rank.neutral {
  color: rgba(241, 247, 255, 0.9);
  background: linear-gradient(135deg,
      rgba(118, 136, 152, 0.38),
      rgba(66, 82, 96, 0.72));
  border: 1px solid rgba(200, 214, 227, 0.14);
  box-shadow: none;
}

.table-row strong {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: -0.06em;
  font-size: 0.86rem;
  line-height: 1.18;
  min-height: 2.15em;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.building-table {
  padding: 8px 0 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.table-grid {
  display: grid;
  grid-auto-rows: minmax(0, auto);
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
}

.table-row {
  display: grid;
  grid-template-columns:
    58px minmax(120px, 1.85fr) 0.82fr 0.88fr 0.88fr 0.88fr;
  gap: 10px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(231, 242, 254, 0.06);
  border: 1px solid var(--ops-line-soft);
  font-size: 0.77rem;
}

.table-row.header {
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.015em;
  background: transparent;
  border-style: solid;
  border-color: transparent;
  text-align: center;
}

.table-row.active {
  border-color: rgba(118, 153, 215, 0.66);
  background: #5a77df42;
}

.table-row[data-building] {
  cursor: pointer;
}

.table-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  gap: 6px;
  min-width: 0;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  color: #04131e;
  background: linear-gradient(135deg, #ffe27d, #ffb55f);
  box-shadow: 0 10px 22px rgba(255, 181, 95, 0.28);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
  width: fit-content;
}

.table-building {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.table-building-thumb {
  display: block;
  width: 80px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 17, 28, 0.02), rgba(5, 17, 28, 0.28)),
    var(--thumb-image, url("../ems_dashboard/assets/campus-bg.jpg")) center/cover no-repeat;
  background-position: var(--thumb-pos, center);
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.table-building-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.table-building-main span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.68rem;
  font-weight: 700;
}

.table-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  min-height: 28px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  width: fit-content;
}

.table-energy {
  display: grid;
  grid-template-columns: minmax(72px, auto) 52px;
  align-items: center;
  justify-content: start;
  gap: 8px;
  min-width: 0;
}

.table-energy-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.table-energy-value .metric-unit {
  font-size: 0.8em;
  font-weight: 500;
  opacity: 0.74;
  letter-spacing: -0.01em;
  min-width: 28px;
  text-align: left;
}

.table-energy-delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.table-energy-delta.status-good,
.resource-delta.status-good {
  color: #99ccff;
  background: var(--state-good-soft);
  border-color: rgba(26, 117, 255, 0.38);
  text-shadow: 0 1px 6px rgba(7, 19, 28, 0.45);
}

.table-energy-delta.status-risk,
.resource-delta.status-risk {
  color: var(--state-risk);
  background: var(--state-risk-soft);
  border-color: rgba(255, 142, 114, 0.4);
  text-shadow: 0 0 12px rgba(255, 142, 114, 0.26);
}

.table-energy-delta.status-neutral,
.resource-delta.status-neutral {
  color: var(--state-neutral);
  background: var(--state-neutral-soft);
  border-color: rgba(169, 182, 194, 0.32);
  text-shadow: 0 0 10px rgba(169, 182, 194, 0.2);
}

.hero-value {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  padding-top: 5px;
}

.resource-grid {
  padding: 15px;
}

.resource-value {
  font-size: 1.72rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.mini-chart {
  display: grid;
  gap: 6px;
  min-height: 120px;
}

.resource-card {
  display: grid;
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
  gap: 8px;
  align-content: start;
  position: relative;
  height: 100%;
  background-color: #04131e40;
}

.resource-head {
  gap: 8px;
}

.resource-value-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.resource-insight {
  color: rgba(255, 255, 255, 0.7);
  min-height: 2.1em;
  font-size: 0.8em;
}

.resource-delta,
.trend-up,
.trend-down,
.trend-flat {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
}

.resource-delta {
  font-size: 0.82em;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.building-badge.good {
  color: var(--state-good);
  border-color: rgba(26, 117, 255, 0.24);
  background: var(--state-good-soft);
}

.building-badge.stable {
  color: var(--state-caution);
  border-color: rgba(255, 215, 106, 0.24);
  background: var(--state-caution-soft);
}

.building-badge.alert {
  color: var(--state-risk);
  border-color: rgba(214, 116, 96, 0.28);
  background: var(--state-risk-soft);
}

.mini-chart-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mini-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.64);
  white-space: nowrap;
}

.mini-chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}

.mini-chart-legend-dot.today {
  box-shadow: 0 0 10px currentColor;
}

.mini-chart-plot {
  position: relative;
  height: 92px;
  padding: 6px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mini-chart-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mini-chart-today-guide {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.8;
  stroke-dasharray: 3 5;
}

.mini-chart-today-point {
  fill: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 0 8px currentColor);
}

.mini-chart-grid-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-dasharray: 3 5;
}

.mini-chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-chart-line.today {
  stroke-width: 2.8;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.16));
}

.mini-chart-line.day,
.mini-chart-line.week,
.mini-chart-line.month {
  stroke-width: 1.7;
  opacity: 0.6;
}

.mini-chart-line.day {
  stroke-dasharray: 0;
}

.mini-chart-line.week {
  stroke-dasharray: 5 5;
}

.mini-chart-line.month {
  stroke-dasharray: 2 4;
}

.mini-chart-line.electric.day,
.mini-chart-legend-dot.electric.day {
  color: #aebfff;
  stroke: #aebfff;
}

.mini-chart-line.electric.week,
.mini-chart-legend-dot.electric.week {
  color: #8ea8ff;
  stroke: #8ea8ff;
}

.mini-chart-line.electric.month,
.mini-chart-legend-dot.electric.month {
  color: #6f86d7;
  stroke: #6f86d7;
}

.mini-chart-line.electric.today,
.mini-chart-legend-dot.electric.today {
  color: #6e90f7;
  stroke: #6e90f7;
}

.mini-chart-line.gas.day,
.mini-chart-legend-dot.gas.day {
  color: #ffd09c;
  stroke: #ffd09c;
}

.mini-chart-line.gas.week,
.mini-chart-legend-dot.gas.week {
  color: #ffb86a;
  stroke: #ffb86a;
}

.mini-chart-line.gas.month,
.mini-chart-legend-dot.gas.month {
  color: #d88830;
  stroke: #d88830;
}

.mini-chart-line.gas.today,
.mini-chart-legend-dot.gas.today {
  color: #ff9933;
  stroke: #ff9933;
}

.mini-chart-line.water.day,
.mini-chart-legend-dot.water.day {
  color: #cffbff;
  stroke: #cffbff;
}

.mini-chart-line.water.week,
.mini-chart-legend-dot.water.week {
  color: #aaf5ff;
  stroke: #aaf5ff;
}

.mini-chart-line.water.month,
.mini-chart-legend-dot.water.month {
  color: #5ccfe0;
  stroke: #5ccfe0;
}

.mini-chart-line.water.today,
.mini-chart-legend-dot.water.today {
  color: #89f1ff;
  stroke: #89f1ff;
}

.mini-chart-axis {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 3px;
}

.mini-chart-axis span {
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
  letter-spacing: 0;
  transform: none;
  white-space: nowrap;
}

.compare-card {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  display: grid;
  gap: 0;
}

.compare-chart {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-height: 0;
}

.compare-stat {
  display: grid;
  gap: 4px;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  align-content: start;
}

.compare-stat.today {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 24px rgba(0, 0, 0, 0.14);
}

.compare-stat.today.electric {
  background: linear-gradient(180deg,
      rgba(110, 144, 247, 0.18),
      rgba(110, 144, 247, 0.06));
}

.compare-stat.today.gas {
  background: linear-gradient(180deg,
      rgba(255, 153, 51, 0.18),
      rgba(255, 153, 51, 0.06));
}

.compare-stat.today.water {
  background: linear-gradient(180deg,
      rgba(137, 241, 255, 0.18),
      rgba(137, 241, 255, 0.06));
}

.compare-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.74);
}

.compare-stat.today .compare-label {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.compare-value {
  font-size: 0.98rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.94);
}

.compare-delta-inline {
  display: block;
  font-size: 0.82em;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
  color: #99ccff;
  text-shadow: 0 1px 4px rgba(7, 19, 28, 0.32);
}

.resource-trend-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 4px;
  padding: 6px 7px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  min-height: 44px;
}

.resource-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.resource-trend-title {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.resource-trend-period {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.resource-trend-chart-wrap {
  display: grid;
  align-content: start;
  gap: 3px;
  padding-top: 1px;
  min-height: 0;
}

.resource-trend-chart {
  width: 100%;
  height: 48px;
  display: block;
}

.resource-trend-grid-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-dasharray: 3 5;
}

.resource-trend-bar.electric {
  fill: #82a1ff;
}

.resource-trend-bar.gas {
  fill: #ffad5a;
}

.resource-trend-bar.water {
  fill: #8ff5ff;
}

.resource-trend-bar:not(.current) {
  opacity: 0.58;
}

.resource-trend-bar.current {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.22));
}

.resource-trend-axis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  min-height: 12px;
  align-items: start;
}

.resource-trend-axis span {
  text-align: center;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1;
  white-space: nowrap;
}

.resource-trend-axis span.current {
  color: rgba(255, 255, 255, 0.78);
}

.overview-hours {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  font-size: 0.68rem;
}

.resource-head .resource-delta {
  display: none;
}

.overview-compare-item.is-risk strong,
.overview-compare-item.is-risk em,
.overview-compare-item.up strong,
.overview-compare-item.up em,
.compare-delta-inline.status-risk,
.compare-delta-inline.trend-up,
.status-risk,
.trend-up {
  color: var(--state-risk);
  text-shadow: 0 0 12px rgba(255, 142, 114, 0.26);
}

.overview-compare-item.is-caution strong,
.overview-compare-item.is-caution em {
  color: var(--state-caution);
  text-shadow: 0 0 12px rgba(255, 215, 106, 0.22);
}

.compare-delta-inline.status-neutral,
.compare-delta-inline.trend-flat,
.status-neutral,
.trend-flat {
  color: var(--state-neutral);
  text-shadow: 0 0 10px rgba(169, 182, 194, 0.2);
}

.compare-stat:has(.compare-delta-inline.status-good),
.compare-stat:has(.compare-delta-inline.trend-down) {
  border-color: rgba(26, 117, 255, 0.24);
  background: rgba(26, 117, 255, 0.06);
}

.compare-stat:has(.compare-delta-inline.status-risk),
.compare-stat:has(.compare-delta-inline.trend-up) {
  border-color: rgba(255, 142, 114, 0.24);
  background: rgba(255, 142, 114, 0.055);
}

.compare-stat:has(.compare-delta-inline.status-neutral),
.compare-stat:has(.compare-delta-inline.trend-flat) {
  border-color: rgba(169, 182, 194, 0.2);
  background: rgba(169, 182, 194, 0.045);
}



.overview-impact-card.infographic-card .overview-impact-inline-item span,
.detail-impact-card.infographic-card .overview-impact-inline-item span {
  color: rgba(22, 50, 75, 0.56);
}

.overview-impact-card.infographic-card .overview-impact-inline-item.status-risk strong,
.detail-impact-card.infographic-card .overview-impact-inline-item.status-risk strong,
.overview-impact-card.infographic-card .overview-impact-inline-item.up strong,
.detail-impact-card.infographic-card .overview-impact-inline-item.up strong {
  color: #d66d4b;
}

.overview-impact-card.infographic-card .overview-impact-inline-item.status-neutral strong,
.detail-impact-card.infographic-card .overview-impact-inline-item.status-neutral strong,
.overview-impact-card.infographic-card .overview-impact-inline-item.neutral strong,
.detail-impact-card.infographic-card .overview-impact-inline-item.neutral strong {
  color: #6e8091;
}

.overview-impact-card.infographic-card .overview-impact-message,
.detail-impact-card.infographic-card .overview-impact-message {
  background: rgba(255, 255, 255, 0.8);
}

.overview-impact-card.infographic-card .overview-impact-message strong,
.detail-impact-card.infographic-card .overview-impact-message strong {
  color: #162b3d;
}

.overview-impact-card.infographic-card .overview-impact-message p,
.detail-impact-card.infographic-card .overview-impact-message p {
  color: rgba(22, 43, 61, 0.72);
}

.overview-energy-card .overview-compare-item span {
  grid-area: label;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
  line-height: 1.1;
}

.overview-energy-card .overview-compare-item strong {
  grid-area: value;
  align-self: end;
  font-size: 0.96rem;
  line-height: 1;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.overview-energy-card .overview-compare-item em {
  grid-area: delta;
  align-self: end;
  justify-self: end;
  margin-top: 0;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.05;
  opacity: 1;
  text-align: right;
  white-space: nowrap;
}

.overview-energy-card .overview-compare-item.is-good em,
.overview-energy-card .overview-compare-item.down em {
  color: var(--state-good);
}

.overview-energy-card .overview-compare-item.is-caution em {
  color: var(--state-caution);
}

.overview-energy-card .overview-compare-item.is-risk em,
.overview-energy-card .overview-compare-item.up em {
  color: var(--state-risk);
}


.campus-overview-title {
  position: relative;
  grid-column: 1 / -1;
  padding: 14px 14px 4px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  z-index: 2;
  pointer-events: none;
}

.campus-status-message {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  padding: 12px 17px 15px 14px;
}


.campus-status-message strong {
  color: rgba(231, 242, 254, 0.66);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

.campus-status-message p {
  position: relative;
  margin: 5px 0 0;
  width: fit-content;
  padding: 11px 13px;
  border-radius: var(--radius-subcard);
  border: 1px solid #155ec730;
  background: rgba(231, 242, 254, 0.06);
  word-break: keep-all;
  font-size: 0.92em;
}

.campus-status-message p::before {
  content: none;
  position: absolute;
  left: -6px;
  bottom: 0;
  width: 14px;
  height: 16px;
  border-bottom-right-radius: 14px;
  background: #255781;
  transform: skewX(-18deg);
  transform-origin: bottom right;
}

.zone-overview .overview-visual {
  min-width: 0;
  min-height: 0;
}

.campus-overview-title span {
  color: rgba(220, 234, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
}

.zone-overview .overview-grid {
  gap: 0;
  height: 100%;
}

.zone-overview .overview-grid>article {
  border-radius: 0;
  box-shadow: none;
  padding: 7px 14px 7px;
  align-content: start;
}

.zone-overview .overview-grid article {
  border-left: 1px solid rgba(126, 179, 255, 0.2);
}



.zone-overview .campus-scope-badge,
.zone-overview .campus-carbon-kicker {
  display: none;
}

.zone-overview .overview-card-head {
  padding-bottom: 0;
  min-height: 18px;
  align-items: center;
  padding-right: 164px;
}

.zone-overview .overview-card-head span {
  color: rgba(236, 246, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.zone-overview .carbon .overview-card-head span:not(.campus-carbon-kicker) {
  color: rgba(222, 255, 234, 0.74);
}

.zone-overview .overview-live-number strong {
  font-size: 2.04rem;
}

.zone-overview .overview-live-icon {
  width: 28px;
  height: 28px;
}

.zone-overview .overview-live-icon svg {
  width: 22px;
  height: 22px;
}

.zone-overview .overview-live-row {
  gap: 6px;
}

.zone-overview .overview-spark {
  min-height: 28px;
  padding-bottom: 6px;
}

.zone-overview .overview-spark svg {
  height: 18px;
}

.zone-overview .overview-hours {
  font-size: 0.54rem;
}

.zone-overview .overview-insight {
  position: absolute;
  top: 7px;
  right: 14px;
  width: auto;
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: right;
  color: rgba(220, 234, 255, 0.54);
}

.zone-overview .overview-energy-card .overview-compare {
  gap: 6px;
}


.zone-overview .overview-energy-card .overview-compare-item span {
  font-size: 0.64rem;
}

.zone-overview .overview-energy-card .overview-compare-item strong {
  font-size: 0.86rem;
}

.zone-overview .overview-energy-card .overview-compare-item em {
  font-size: 0.7rem;
}

.zone-overview .carbon {
  align-content: start;
}

.zone-overview .carbon-metric+.carbon-metric {
  padding-left: 14px;
  padding-right: 0;
}


.zone-overview h3,
.zone-buildings h3,
.zone-detail h3 {
  font-size: 1.18rem;
  margin: 0;
}

.overview-energy-card .overview-live-row {
  grid-template-columns: minmax(0, 1.16fr) minmax(132px, 0.84fr);
  gap: 8px;
}


.table-row.active .table-building strong,
.table-row.active .table-energy-value {
  color: #ffffff;
  font-weight: 800;
}

.table-row.active .table-rank {
  color: #e4ecff;
  background: rgba(40, 55, 92, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(118, 153, 215, 0.3),
    0 8px 18px rgba(0, 0, 0, 0.14);
}



.zone-detail {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: #5a77df70;
  transition: opacity 0.35s ease;
}

.zone-detail.building-exit {
  opacity: 0;
}

.heat-panel .table-row.header,
.heat-panel .table-energy-value .metric-unit {
  color: rgba(244, 251, 255, 0.56);
}

.table-status.building-badge {
  gap: 6px;
  padding: 5px 10px;
  color: #dceaff;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.table-status.building-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--state-neutral);
  box-shadow: 0 0 10px rgba(169, 182, 194, 0.36);
  flex: 0 0 auto;
}

.table-status.building-badge.good {
  color: #dceaff;
  background: rgba(26, 117, 255, 0.18);
  border-color: rgba(88, 155, 255, 0.34);
}

.table-status.building-badge.good::before {
  background: var(--state-good);
  box-shadow: 0 0 10px rgba(26, 117, 255, 0.45);
}

.table-status.building-badge.stable {
  color: #fff1b2;
  background: rgba(255, 215, 106, 0.13);
  border-color: rgba(255, 215, 106, 0.28);
}

.table-status.building-badge.stable::before {
  background: var(--state-caution);
  box-shadow: 0 0 10px rgba(255, 215, 106, 0.46);
}

.table-status.building-badge.alert {
  color: #ffd6cb;
  background: rgba(255, 142, 114, 0.15);
  border-color: rgba(255, 142, 114, 0.3);
}

.table-status.building-badge.alert::before {
  background: var(--state-risk);
  box-shadow: 0 0 10px rgba(255, 142, 114, 0.48);
}

#detail-rank-badge.building-badge {
  color: #ecf6ff;
  background: rgba(20, 34, 52, 0.86);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 16px rgba(8, 22, 36, 0.18);
  font-weight: 800;
}

#detail-state-badge.building-badge {
  gap: 6px;
  padding: 5px 10px;
  color: #eef6ff;
  background: rgba(20, 78, 158, 0.72);
  border-color: rgba(116, 174, 255, 0.62);
  font-weight: 800;
}

#detail-state-badge.building-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--state-neutral);
  box-shadow: 0 0 10px rgba(169, 182, 194, 0.36);
  flex: 0 0 auto;
}

#detail-state-badge.building-badge.good {
  color: #f2f8ff;
  background: rgba(17, 87, 184, 0.78);
  border-color: rgba(124, 184, 255, 0.72);
}

#detail-state-badge.building-badge.good::before {
  background: #6eb0ff;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.16),
    0 0 10px rgba(26, 117, 255, 0.58);
}

#detail-state-badge.building-badge.stable {
  color: #fff6cb;
  background: rgba(116, 80, 8, 0.76);
  border-color: rgba(255, 218, 106, 0.68);
}

#detail-state-badge.building-badge.stable::before {
  background: #ffdc62;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.14),
    0 0 10px rgba(255, 215, 106, 0.58);
}

#detail-state-badge.building-badge.alert {
  color: #ffe4dd;
  background: rgba(130, 55, 43, 0.78);
  border-color: rgba(255, 152, 126, 0.68);
}

#detail-state-badge.building-badge.alert::before {
  background: #ff967d;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.14),
    0 0 10px rgba(255, 142, 114, 0.6);
}

.resource-corner-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-chip);
  display: grid;
  place-items: center;
  border: 0;
  box-shadow: none;
  z-index: 2;
}

.resource-corner-icon svg {
  width: 22px;
  height: 22px;
}

.resource-corner-icon.electric {
  color: #12274f;
  background: #82a1ff;
}

.resource-corner-icon.gas {
  color: #3b1b05;
  background: #ffb05c;
}

.resource-corner-icon.water {
  color: #073644;
  background: #8ff5ff;
}

.overview-impact-card .overview-live-row,
.detail-impact-card .overview-live-row {
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.overview-impact-card .overview-live-metrics,
.detail-impact-card .overview-live-metrics {
  width: fit-content;
  min-width: 0;
}

/* simplify detail area: reduce nested box layers */
.zone-detail::before {
  inset: 0;
  border-color: rgba(118, 153, 215, 0.16);
  background: transparent;
}

.detail-impact-card .building-focus-photo {
  border-radius: var(--radius-subcard);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.detail-impact-card .overview-impact-message {
  background: rgba(255, 255, 255, 0.74);
  border: 0;
  box-shadow: 0 8px 18px rgba(61, 95, 163, 0.09);
}
