@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --dash-ink: #18362a;
  --dash-deep: #143f2c;
  --dash-muted: #6c7b72;
  --dash-green: #2fbc79;
  --dash-lime: #9bd16a;
  --dash-pale: #edf4ea;
  --dash-paper: #f7f9f4;
  --dash-white: #fff;
  --dash-line: rgba(24, 54, 42, 0.13);
  --dash-orange: #ef7c3e;
  --dash-blue: #56a5ed;
  --dash-font: 'Manrope', 'DM Sans', 'Segoe UI', sans-serif;
}

.ark-page,
.ark-page * {
  box-sizing: border-box;
}

.ark-page {
  min-height: 100%;
  padding: clamp(28px, 4.8vw, 84px) clamp(18px, 7vw, 130px) clamp(42px, 7vw, 100px);
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 24%, rgba(155, 209, 106, 0.13), transparent 24%),
    radial-gradient(circle at 95% 72%, rgba(47, 188, 121, 0.09), transparent 26%),
    var(--dash-paper);
  color: var(--dash-ink);
  font-family: var(--dash-font);
}

.model-display,
.metric-grid,
.sensor-dashboard,
.summary-section,
.dashboard-note {
  width: min(100%, 1320px);
  margin-inline: auto;
}

.model-display {
  margin-bottom: clamp(44px, 5vw, 72px);
}

.model-stage {
  position: relative;
  min-height: clamp(500px, 54vw, 720px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(105, 213, 170, .12);
  border-radius: clamp(34px, 5vw, 76px);
  background:
    radial-gradient(ellipse at 50% 49%, rgba(54, 148, 105, .22), transparent 34%),
    radial-gradient(circle at 70% 27%, rgba(44, 126, 90, .11), transparent 25%),
    linear-gradient(145deg, #112d24 0%, #08251d 48%, #071d18 100%);
  box-shadow:
    0 38px 78px rgba(16, 56, 41, .25),
    inset 0 0 110px rgba(0, 8, 6, .38),
    inset 0 1px rgba(181, 255, 226, .05);
}

.model-stage::before,
.model-stage::after {
  position: absolute;
  z-index: 1;
  content: '';
  pointer-events: none;
}

.model-stage::before {
  inset: 10%; 12% 17%;
  border: 1px solid rgba(122, 199, 168, .07);
  clip-path: polygon(10% 5%, 90% 9%, 96% 88%, 4% 94%);
}

.model-stage::after {
  right: 7%;
  bottom: 8%;
  width: 10%;
  height: 4px;
  border-radius: 99px;
  background: rgba(83, 231, 178, .82);
  box-shadow: -145px 0 0 rgba(146, 220, 190, .14), 0 0 12px rgba(83, 231, 178, .38);
}

.model-stage-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .62;
  background-image:
    linear-gradient(rgba(140, 218, 184, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 218, 184, .025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle, #000 12%, transparent 76%);
}

.model-stage-glow::before,
.model-stage-glow::after {
  position: absolute;
  content: '';
  pointer-events: none;
}

.model-stage-glow::before {
  right: 8%;
  bottom: 13%;
  left: 8%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(44, 230, 161, .15), rgba(44, 164, 117, .02) 48%, transparent 70%);
  filter: blur(22px);
  animation: twin-ambient-breathe 6s ease-in-out infinite;
}

.model-stage-glow::after {
  inset: 9%;
  border: 1px solid rgba(118, 232, 186, .045);
  border-radius: 42% 48% 40% 46%;
  filter: blur(.2px);
}

.model-poster,
.model-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.model-poster {
  z-index: 2;
  padding: 8% 8% 13%;
  object-fit: contain;
  opacity: .4;
  filter: saturate(.82) brightness(.78) contrast(1.06) drop-shadow(0 25px 25px rgba(0, 8, 5, .38));
  transition: opacity .35s ease;
}

.model-poster[hidden] {
  display: block;
  opacity: 0;
  pointer-events: none;
}

.model-canvas {
  z-index: 3;
  outline: none;
}

.model-canvas:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(83, 231, 178, .72);
}

.model-webgl-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.twin-overlay {
  position: absolute;
  inset: 0;
  z-index: auto;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.twin-connections {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.twin-connector-path {
  fill: none;
  stroke: rgba(175, 218, 201, .35);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: .85;
  vector-effect: non-scaling-stroke;
}

.twin-connector-energy {
  stroke: rgba(100, 242, 194, .88);
  stroke-width: .9;
  stroke-dasharray: 1 15;
  filter: url('#twin-node-glow');
  animation: twin-energy-flow 4.8s linear infinite;
}

.twin-connector-glow {
  stroke: rgba(74, 235, 178, .5);
  stroke-width: 3;
  opacity: .1;
  filter: url('#twin-node-glow');
}

.twin-house-anchor,
.twin-panel-terminal {
  fill: #55e6b3;
  filter: url('#twin-node-glow');
}

.twin-house-anchor-halo {
  fill: rgba(71, 229, 174, .16);
  stroke: rgba(72, 222, 171, .26);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: twin-anchor-pulse 3.6s ease-in-out infinite;
}

.twin-spatial-frame {
  fill: none;
  stroke: rgba(175, 214, 198, .24);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.twin-spatial-frame-back { opacity: .25; }

.twin-spatial-frame-front { opacity: .55; }

.twin-spatial-frame-glow {
  stroke: rgba(78, 230, 177, .36);
  stroke-width: 2.4;
  opacity: .1;
  filter: url('#twin-node-glow');
}

.twin-spatial-frame circle {
  fill: #5ce7b6;
  filter: url('#twin-node-glow');
  transform-box: fill-box;
  transform-origin: center;
  animation: twin-frame-node-pulse 4.4s ease-in-out infinite;
}

.twin-connector {
  opacity: .9;
  transition: opacity .18s ease;
}

.twin-connector.is-behind-model {
  opacity: .34;
}

.twin-panel {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  min-width: 0;
  overflow: hidden;
  padding: clamp(9px, 1.25vw, 18px);
  border: 1px solid rgba(150, 244, 208, .24);
  border-radius: clamp(7px, 1vw, 13px);
  background:
    linear-gradient(112deg, rgba(218, 255, 240, .055), transparent 23%, rgba(218, 255, 240, .018) 58%, transparent 72%),
    repeating-linear-gradient(0deg, rgba(174, 255, 225, .012) 0 1px, transparent 1px 5px),
    linear-gradient(145deg, rgba(7, 35, 27, .34), rgba(10, 49, 37, .22));
  color: rgba(239, 255, 248, .96);
  box-shadow:
    inset 0 0 0 1px rgba(210, 255, 235, .025),
    inset 0 0 24px rgba(23, 88, 63, .055),
    0 0 0 1px rgba(80, 221, 168, .025),
    0 10px 28px rgba(0, 14, 10, .2);
  font-family: var(--dash-font);
  backdrop-filter: blur(2.5px) saturate(1.08);
  transform-origin: 50% 50%;
  transition: opacity .18s ease, filter .18s ease, box-shadow .18s ease;
  will-change: left, top, transform, opacity;
}

.twin-overlay:not(.is-spatially-ready) .twin-panel,
.twin-overlay:not(.is-spatially-ready) .twin-connector {
  opacity: 0;
}

.twin-panel.is-in-front {
  opacity: .98;
  filter: saturate(1.08) brightness(1.08);
  box-shadow:
    inset 0 0 0 1px rgba(218, 255, 239, .025),
    inset 0 0 20px rgba(78, 225, 172, .035),
    0 0 14px rgba(39, 190, 134, .1),
    0 14px 30px rgba(0, 14, 10, .25);
}

.twin-panel.is-behind-model {
  opacity: .58;
  filter: saturate(.76) brightness(.82) blur(.1px);
}

.twin-panel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 2% 10%, rgba(115, 245, 197, .18) 18% 58%, #7bf1c5 76% 89%, transparent 97%);
  content: '';
  opacity: .72;
}

.twin-panel::after {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(181, 255, 226, .035);
  border-radius: calc(clamp(7px, 1vw, 13px) - 3px);
  content: '';
  pointer-events: none;
}

.twin-panel-corners {
  position: absolute;
  inset: 3px;
  z-index: 2;
  background:
    linear-gradient(#87f5cd, #87f5cd) 0 0 / 18px 1px no-repeat,
    linear-gradient(#87f5cd, #87f5cd) 0 0 / 1px 8px no-repeat,
    linear-gradient(rgba(135, 245, 205, .35), rgba(135, 245, 205, .35)) 100% 0 / 7px 1px no-repeat,
    linear-gradient(rgba(135, 245, 205, .35), rgba(135, 245, 205, .35)) 100% 0 / 1px 7px no-repeat,
    linear-gradient(rgba(135, 245, 205, .28), rgba(135, 245, 205, .28)) 0 100% / 7px 1px no-repeat,
    linear-gradient(rgba(135, 245, 205, .28), rgba(135, 245, 205, .28)) 0 100% / 1px 7px no-repeat,
    linear-gradient(#87f5cd, #87f5cd) 100% 100% / 16px 1px no-repeat,
    linear-gradient(#87f5cd, #87f5cd) 100% 100% / 1px 9px no-repeat;
  opacity: .7;
  pointer-events: none;
}

.twin-panel-status-light {
  position: absolute;
  top: 8px;
  left: 9px;
  z-index: 3;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9cf7d1;
  box-shadow: 0 0 0 3px rgba(101, 235, 187, .1), 0 0 8px #55e6b3;
  animation: twin-status-pulse 3.2s ease-in-out infinite;
}

.twin-panel-scan {
  position: absolute;
  inset: -45% -30%;
  z-index: 1;
  background: linear-gradient(105deg, transparent 42%, rgba(219, 255, 242, .07) 49%, rgba(219, 255, 242, .018) 53%, transparent 59%);
  pointer-events: none;
  transform: translateX(-36%);
  animation: twin-panel-scan 12s ease-in-out infinite;
}

.twin-panel > :not(.twin-panel-corners, .twin-panel-status-light, .twin-panel-scan) {
  position: relative;
  z-index: 2;
}

.twin-panel p,
.twin-panel dl,
.twin-panel dd {
  margin: 0;
}

.twin-panel-brief {
  width: 13.5%;
}

.twin-panel-overview {
  width: 20%;
}

.twin-panel-pm {
  width: 16.5%;
}

.twin-panel-co2 {
  width: 18%;
}

.twin-panel-climate {
  width: 19%;
}

.twin-panel-kicker,
.twin-panel-meta,
.twin-panel-heading,
.twin-reading-list dt,
.twin-chart-legend {
  font-size: clamp(.38rem, .58vw, .62rem);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.twin-panel-kicker { padding-left: 9px; }

.twin-panel-kicker,
.twin-panel-meta,
.twin-reading-list dt,
.twin-chart-legend {
  color: rgba(216, 250, 232, .46);
}

.twin-panel-meta { margin-top: 7px !important; }

.twin-brief-value,
.twin-overview-primary,
.twin-chart-value {
  margin-top: 5px !important;
  font-size: clamp(.9rem, 1.7vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
}

.twin-brief-value small,
.twin-overview-primary small,
.twin-chart-value small {
  margin-left: 2px;
  font-size: .42em;
  font-weight: 700;
  letter-spacing: 0;
}

.twin-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.twin-panel-heading > span {
  color: rgba(142, 232, 188, .72);
  font-size: .8em;
}

.twin-reading-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px !important;
  background: rgba(126, 224, 176, .08);
}

.twin-reading-list div {
  min-width: 0;
  padding: 7px 4px;
  background: rgba(6, 43, 30, .13);
}

.twin-reading-list dd {
  margin-top: 4px;
  font-size: clamp(.55rem, .9vw, .95rem);
  font-weight: 800;
  white-space: nowrap;
}

.twin-mini-chart {
  display: block;
  width: 100%;
  height: clamp(25px, 3.4vw, 44px);
  margin-top: 8px;
  overflow: visible;
}

.twin-mini-chart-large {
  height: clamp(32px, 4.2vw, 54px);
}

.twin-chart-grid {
  fill: none;
  stroke: rgba(177, 231, 203, .08);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.twin-chart-area { pointer-events: none; }

.twin-chart-line {
  fill: none;
  stroke: #65e7bc;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 2px rgba(101, 231, 188, .45));
}

.twin-chart-line-secondary {
  stroke: #a9db71;
  stroke-dasharray: 3 3;
}

.twin-chart-beacon {
  fill: #b5ffe4;
  filter: drop-shadow(0 0 3px #55e6b3);
  animation: twin-chart-beacon 3s ease-in-out infinite;
}

.twin-chart-beacon-secondary {
  fill: #c7ec91;
  filter: drop-shadow(0 0 3px #9bd16a);
}

.model-has-error .twin-overlay { display: none; }

@keyframes twin-energy-flow { to { stroke-dashoffset: -44; } }
@keyframes twin-anchor-pulse { 50% { opacity: .45; transform: scale(1.55); } }
@keyframes twin-frame-node-pulse { 50% { opacity: .48; transform: scale(1.35); } }
@keyframes twin-status-pulse { 50% { opacity: .55; box-shadow: 0 0 0 5px rgba(101, 235, 187, .04), 0 0 6px #55e6b3; } }
@keyframes twin-panel-scan { 0%, 18% { transform: translateX(-38%); } 55%, 100% { transform: translateX(38%); } }
@keyframes twin-chart-beacon { 50% { opacity: .45; transform: scale(.75); } }
@keyframes twin-ambient-breathe { 50% { opacity: .62; transform: scale(1.035); } }

.twin-chart-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}

.model-loading,
.model-error {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 8;
  width: min(330px, calc(100% - 48px));
  padding: 18px;
  border: 1px solid rgba(133, 236, 196, .2);
  border-radius: 16px;
  background: rgba(7, 31, 24, .86);
  color: rgba(237, 255, 248, .88);
  box-shadow: 0 16px 35px rgba(0, 8, 5, .3);
  transform: translate(-50%, -50%);
}

.model-loading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  align-items: center;
  color: rgba(212, 242, 229, .58);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.model-loading[hidden],
.model-error[hidden] {
  display: none;
}

.model-loading-track {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(160, 225, 199, .1);
}

.model-loading-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--dash-green);
  transition: width .2s ease;
}

.model-error {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.model-error strong {
  font-size: 1rem;
  text-transform: uppercase;
}

.model-error span {
  color: rgba(212, 242, 229, .58);
  font-size: .75rem;
}

.model-toolbar {
  position: absolute;
  right: 6%;
  bottom: 7%;
  left: 6%;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.model-instruction,
.model-reset {
  border: 1px solid rgba(173, 231, 208, .14);
  border-radius: 999px;
  background: rgba(6, 29, 22, .46);
  color: rgba(221, 246, 236, .65);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.model-instruction {
  padding: 11px 14px;
}

.model-reset {
  padding: 12px 17px;
  cursor: pointer;
  pointer-events: auto;
}

.model-reset:hover,
.model-reset:focus-visible {
  border-color: rgba(113, 244, 196, .45);
  background: rgba(20, 75, 55, .62);
  color: #fff;
  outline: none;
}

.model-caption {
  position: absolute;
  bottom: 4.6%;
  left: 50%;
  z-index: 5;
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%);
}

.model-caption h1 {
  margin: 0;
  color: rgba(230, 241, 236, .76);
  font-size: clamp(1.4rem, 2.7vw, 2.3rem);
  font-weight: 800;
  line-height: 1;
}

.model-caption p,
.model-noscript {
  margin: 8px 0 0;
  color: rgba(183, 207, 196, .4);
  font-size: .75rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
  max-width: 1060px;
  margin-bottom: clamp(44px, 6vw, 78px);
}

.metric-card {
  position: relative;
  min-width: 0;
  min-height: clamp(250px, 24vw, 320px);
  overflow: hidden;
  padding: clamp(20px, 2.5vw, 30px);
  border-radius: clamp(18px, 2vw, 24px);
  box-shadow: 0 20px 44px rgba(37, 68, 48, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px rgba(28, 73, 50, .13);
}

.metric-card-aqi {
  background: linear-gradient(145deg, #173b2c, #102b21);
  color: #fff;
}

.metric-card-co2 {
  background: linear-gradient(145deg, #b1d989, #96c86d);
  color: #102d21;
}

.metric-card-temperature {
  border: 1px solid rgba(24, 54, 42, .08);
  background: rgba(255, 255, 253, .92);
  color: #112f23;
}

.metric-pill {
  display: inline-flex;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .56rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.metric-card-aqi .metric-pill { color: var(--dash-lime); }

.card-value {
  margin: 13px 0 0;
  font-size: clamp(2.35rem, 4vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .9;
}

.unit {
  margin-left: 4px;
  font-size: .32em;
  font-weight: 800;
  letter-spacing: -.02em;
}

.aqi-bars {
  position: absolute;
  right: 8%;
  bottom: 10%;
  left: 8%;
  height: 49%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 4%;
}

.aqi-bars i {
  position: relative;
  width: 12%;
  height: var(--bar);
  border: 1px solid rgba(195, 224, 160, .32);
  border-radius: 10px 10px 2px 2px;
  background: linear-gradient(to top, rgba(155, 209, 106, .04), rgba(155, 209, 106, .28));
}

.aqi-bars i.is-live {
  background: linear-gradient(to top, #3a512e, #9bd16a);
}

.aqi-bars i span {
  position: absolute;
  top: -27px;
  left: 50%;
  padding: 4px 6px;
  border-radius: 5px;
  background: #fff;
  color: #27402d;
  font-size: .52rem;
  font-style: normal;
  transform: translateX(-50%);
}

.co2-radar {
  position: absolute;
  right: 5%;
  bottom: 8%;
  left: 5%;
  width: 90%;
  height: 48%;
  overflow: visible;
}

.radar-grid,
.radar-line {
  fill: none;
  stroke: rgba(28, 68, 42, .2);
  stroke-width: 2;
}

.radar-fill { fill: rgba(29, 79, 42, .32); }
.radar-line { stroke: #365d35; stroke-width: 3; }
.radar-points { fill: #18362a; }

.temperature-bars {
  position: absolute;
  right: 8%;
  bottom: 10%;
  left: 8%;
  height: 49%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 5%;
}

.temperature-column {
  position: relative;
  width: 16%;
  height: 92%;
  overflow: hidden;
  border: 1px solid rgba(24, 54, 42, .08);
  border-radius: 9px;
  background: #f3f5f1;
}

.temperature-column i {
  position: absolute;
  right: 4px;
  bottom: 48%;
  left: 4px;
  height: calc(var(--temp) - 36%);
  border-radius: 7px 7px 3px 3px;
  background: var(--tone);
}

.temperature-column b {
  position: absolute;
  right: 4px;
  bottom: 4px;
  left: 4px;
  height: 40%;
  border-radius: 3px 3px 6px 6px;
  background: #e8ebe6;
}

.sensor-dashboard {
  position: relative;
  margin-bottom: clamp(52px, 7vw, 92px);
  padding-top: clamp(8px, 1.5vw, 20px);
}

.dashboard-section-heading {
  margin-bottom: clamp(34px, 4vw, 54px);
}

.dashboard-section-heading h2 {
  max-width: 880px;
  margin: 0;
  color: var(--dash-ink);
  font-size: clamp(2.55rem, 5.2vw, 5.45rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .95;
}

.dashboard-section-heading h2 span { color: var(--dash-green); }

.chart-wrap {
  margin-bottom: clamp(30px, 4vw, 52px);
}

.chart-head {
  margin-bottom: 16px;
}

.chart-head h3 {
  margin: 0;
  color: #5d9359;
  font-size: clamp(.8rem, 1.5vw, 1.1rem);
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.chart-head h3 span { color: #85ad77; }

#tempChartBox {
  position: relative;
  width: 100%;
  height: clamp(185px, 19vw, 250px);
}

#humidityChartBox {
  position: relative;
  width: 100%;
  height: clamp(185px, 19vw, 250px);
}

#co2ChartBox {
  position: relative;
  width: 100%;
  height: 1px;
}

#tempChartBox canvas,
#humidityChartBox canvas,
#co2ChartBox canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.chart-data-source-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.chart-base-layer { z-index: 1; }
.chart-hover-layer { z-index: 2; touch-action: none; }

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--dash-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.chart-tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--dash-deep);
  color: #fff;
  box-shadow: 0 10px 28px rgba(20, 63, 44, .2);
  pointer-events: none;
  font-size: .68rem;
  line-height: 1.75;
  white-space: nowrap;
  will-change: transform;
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 3px;
}

.chart-tooltip[hidden] { display: none; }

.summary-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  max-width: 900px;
  min-height: 570px;
  margin-right: 0;
  margin-left: auto;
  margin-bottom: 65px;
}

.summary-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 30px;
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 16% 100%, 0 91%);
}

.summary-card-energy {
  height: 380px;
  padding-top: 170px;
  background: linear-gradient(180deg, #806541, #d26d2f);
}

.summary-card-comfort {
  height: 475px;
  padding-top: 235px;
  background: linear-gradient(180deg, #4e7952, #9acf68);
}

.summary-card-growth {
  height: 570px;
  background: linear-gradient(165deg, #136a4f 0%, #123d29 100%);
}

.summary-value {
  margin: 0 0 12px;
  font-size: clamp(2.6rem, 4.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
}

.summary-card > p:last-child,
.summary-growth-copy > p:last-child {
  margin: 10px 0 0;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.summary-meter {
  width: 100%;
  height: 28px;
  border: solid rgba(255, 255, 255, .5);
  border-width: 1px 1px 0;
}

.summary-meter span {
  display: block;
  width: 68%;
  height: 100%;
  background: rgba(255, 255, 255, .18);
}

.summary-bars {
  height: 42px;
  display: flex;
  align-items: end;
  gap: 4px;
}

.summary-bars i {
  width: 14%;
  height: 20%;
  background: rgba(30, 88, 35, .55);
}

.summary-bars i:nth-child(2) { height: 32%; }
.summary-bars i:nth-child(3) { height: 58%; }
.summary-bars i:nth-child(4) { height: 35%; }
.summary-bars i:nth-child(5) { height: 78%; background: #7fcc45; }
.summary-bars i:nth-child(6) { height: 52%; }
.summary-bars i:nth-child(7) { height: 34%; }

.sprout {
  position: absolute;
  top: 70px;
  left: 50%;
  width: 70%;
  max-height: 175px;
  transform: translateX(-50%);
}

.summary-growth-copy {
  position: absolute;
  right: 35px;
  bottom: 34px;
  left: 35px;
}

.summary-wave {
  width: 100%;
  height: 32px;
  fill: none;
  stroke: #da8a31;
  stroke-width: 2;
}

.dashboard-note {
  color: var(--dash-muted);
  font-size: .74rem;
}

@media (max-width: 980px) {
  .metric-grid { gap: 16px; }
  .metric-card { min-height: 260px; padding: 22px; border-radius: 20px; }
}

@media (max-width: 780px) {
  .ark-page { padding: 24px 18px 60px; }

  .model-stage {
    min-height: 500px;
    border-radius: 32px;
  }

  .model-toolbar { right: 20px; bottom: 22px; left: 20px; }
  .model-instruction { display: none; }
  .model-caption { bottom: 74px; }
  .model-stage::after { display: none; }

  .twin-panel {
    padding: 6px;
    border-radius: 6px;
    box-shadow: inset 0 0 12px rgba(78, 225, 172, .06), 0 0 8px rgba(39, 190, 134, .14);
    backdrop-filter: blur(3px);
  }

  .twin-panel::after { inset: 3px; }
  .twin-panel-corners { display: none; }
  .twin-panel-status-light { top: 5px; left: 5px; width: 3px; height: 3px; }
  .twin-spatial-frame { opacity: .28; }
  .twin-spatial-frame-front { opacity: .48; }
  .twin-connector-glow { opacity: .1; }

  .twin-panel-brief { width: 20%; }
  .twin-panel-overview { width: 29%; }
  .twin-panel-pm { width: 24%; }
  .twin-panel-co2 { width: 25%; }
  .twin-panel-climate { width: 28%; }

  .twin-panel-kicker,
  .twin-panel-meta,
  .twin-panel-heading,
  .twin-reading-list dt,
  .twin-chart-legend {
    font-size: .32rem;
    letter-spacing: .03em;
  }

  .twin-brief-value,
  .twin-overview-primary,
  .twin-chart-value { font-size: .72rem; }
  .twin-reading-list { gap: 0; margin-top: 5px !important; }
  .twin-reading-list div { padding: 4px 2px; }
  .twin-reading-list dd { font-size: .48rem; }
  .twin-mini-chart { height: 20px; margin-top: 4px; }
  .twin-mini-chart-large { height: 24px; }
  .twin-connections { inset: 0; width: 100%; height: 100%; }

  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 330px; }

  .summary-section {
    grid-template-columns: 1fr;
    max-width: 520px;
    min-height: 0;
    margin-inline: auto;
    gap: 14px;
  }

  .summary-card,
  .summary-card-energy,
  .summary-card-comfort,
  .summary-card-growth {
    width: 100%;
    height: 300px;
    padding-top: 145px;
  }

  .summary-card-growth {
    height: 390px;
    padding-top: 30px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 16% 100%, 0 91%);
  }
}

@media (max-width: 520px) {
  .model-stage { min-height: 420px; }
  .model-caption { width: 80%; }
  .metric-card { min-height: 315px; }

  .twin-panel-overview { width: 31%; }
  .twin-panel-pm { width: 27%; }
  .twin-panel-co2 { width: 27%; }
  .twin-panel-climate { width: 30%; }
}

@media (prefers-reduced-motion: reduce) {
  .metric-card,
  .model-poster,
  .model-loading-fill {
    transition: none !important;
  }

  .model-stage-glow::before,
  .twin-connector-energy,
  .twin-house-anchor-halo,
  .twin-spatial-frame circle,
  .twin-panel-status-light,
  .twin-panel-scan,
  .twin-chart-beacon {
    animation: none !important;
  }

  .twin-panel-scan { display: none; }
}
