* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 186, 126, 0.14), transparent 28%),
    linear-gradient(180deg, #eef4ef 0%, #f7faf8 40%, #fdfefd 100%);
  color: #16302a;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  background: #fcfffdde;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #d9e5de;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar__inner,
.page,
.login-card {
  max-width: 1120px;
  margin: 0 auto;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
}

.brand {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.nav a {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: #294840;
  font-size: 0.95rem;
}

.nav a:hover {
  background: #edf4ef;
}

.link-button,
.button-link,
button {
  appearance: none;
  border: 0;
  background: var(--brand, #0b6b75);
  color: white;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font: inherit;
  cursor: pointer;
}

.link-button {
  padding: 0.5rem 0.85rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-link--secondary {
  background: #e8eff1;
  color: #18363d;
}

.page {
  padding: 0.9rem;
}

.page h1,
.page h2,
.page h3 {
  font-family: "Avenir Next", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.hero {
  margin: 0.75rem 0 1rem;
  padding: 1.2rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, #d6edd9 0%, #edf7ef 38%, #ffffff 100%);
  border: 1px solid #d7e6da;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.hero--ops {
  background:
    radial-gradient(circle at top right, rgba(62, 208, 122, 0.16), transparent 26%),
    radial-gradient(circle at bottom left, rgba(39, 111, 225, 0.16), transparent 24%),
    linear-gradient(145deg, #09151d 0%, #102432 55%, #132c26 100%);
  border: 1px solid rgba(104, 162, 185, 0.22);
  box-shadow: 0 24px 80px rgba(5, 16, 26, 0.38);
  color: #e6f3fa;
}

.compact-hero {
  margin: 0.4rem 0 0.85rem;
  padding: 0.25rem 0 0.1rem;
}

.compact-hero h1,
.hero h1 {
  margin: 0.2rem 0 0.35rem;
  line-height: 1.05;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero__actions--compact .button-link {
  padding: 0.55rem 0.85rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  color: #4c7078;
  font-weight: 700;
}

.eyebrow--ops {
  color: #7cc7e5;
}

.muted {
  color: #60756e;
}

.muted--ops {
  color: #95b1be;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card,
.panel,
.login-card {
  background: #ffffff;
  border: 1px solid #d7e2db;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(22, 48, 42, 0.06);
}

.card {
  padding: 1.25rem;
}

.card h2 {
  margin: 0 0 0.35rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading--tight {
  margin-bottom: 0.85rem;
}

.card--link:hover {
  border-color: var(--brand, #0b6b75);
}

.panel {
  padding: 1rem;
}

.panel--soft {
  background: linear-gradient(180deg, #f7fbfb 0%, #ffffff 100%);
}

.panel--dense {
  padding: 0.85rem;
}

.panel--map {
  padding: 0.75rem;
}

.panel--ops-map {
  background: linear-gradient(180deg, rgba(9, 21, 29, 0.98), rgba(10, 24, 34, 0.94));
  border: 1px solid rgba(96, 138, 160, 0.2);
  box-shadow: 0 22px 70px rgba(5, 16, 26, 0.34);
}

.chart-grid {
  margin-bottom: 1.5rem;
}

.chart-canvas {
  min-height: 320px;
}

.table-wrap {
  overflow-x: auto;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.list-card {
  display: block;
  background: #ffffff;
  border: 1px solid #d7e1e4;
  border-radius: 20px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(11, 107, 117, 0.06);
}

.list-card:hover {
  border-color: var(--brand, #0b6b75);
  transform: translateY(-1px);
}

.list-card h2,
.list-card h3 {
  margin: 0 0 0.35rem;
}

.list-card__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.list-card__header h2,
.list-card__header h3 {
  margin: 0;
}

.structure-panel {
  margin-bottom: 1.25rem;
}

.structure-panel .list-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.structure-card {
  padding: 1rem;
}

.structure-card .muted {
  margin: 0.2rem 0 0;
}

.truncate-one-line {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.device-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  background: #edf6ef;
  color: #214f35;
  font-size: 0.82rem;
  font-weight: 700;
}

.device-chip .status-dot {
  width: 0.58rem;
  height: 0.58rem;
  margin-top: 0;
  box-shadow: none;
}

.device-chip--muted {
  background: #f1f5f6;
  color: #5d7278;
  font-weight: 600;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  color: #325059;
  font-size: 0.94rem;
}

.ui-icon {
  display: inline-flex;
  width: 0.82rem;
  height: 0.82rem;
  margin-right: 0.24rem;
  vertical-align: -0.08rem;
  color: currentColor;
  opacity: 0.9;
}

.ui-icon svg {
  width: 100%;
  height: 100%;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.summary-chip {
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f6faf7 100%);
  border: 1px solid #d7e2db;
  box-shadow: 0 8px 24px rgba(22, 48, 42, 0.05);
}

.summary-chip strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.summary-chip__label {
  display: block;
  color: #5a7068;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-strip--ops {
  min-width: min(100%, 420px);
}

.summary-chip--ops {
  background: linear-gradient(180deg, rgba(12, 28, 39, 0.92), rgba(8, 21, 30, 0.84));
  border: 1px solid rgba(106, 156, 177, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.summary-chip--ops .summary-chip__label {
  color: #7ea5b7;
}

.summary-chip--ops strong {
  color: #f4fbff;
}

.building-feed {
  display: grid;
  gap: 0.6rem;
}

.building-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid #dbe6de;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 246, 0.96));
  box-shadow: 0 8px 24px rgba(22, 48, 42, 0.05);
}

.building-row:hover {
  border-color: #b9d1c0;
  transform: translateY(-1px);
}

.building-row__primary {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
}

.building-row__copy {
  min-width: 0;
}

.building-row__copy h2,
.building-row__copy h3 {
  margin: 0;
  font-size: 1rem;
}

.building-row__copy .muted {
  margin: 0.18rem 0 0;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.building-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin-top: 0.35rem;
  color: #4d665f;
  font-size: 0.8rem;
}

.building-row__meta span,
.building-row__metrics small,
.meta-row span {
  display: inline-flex;
  align-items: center;
}

.building-row__metrics {
  flex-shrink: 0;
  text-align: right;
}

.building-row__metrics strong {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #0e4235;
}

.building-row__metrics strong span {
  margin-left: 0.08rem;
  font-size: 0.76rem;
  color: #547168;
  letter-spacing: 0;
}

.building-row__metrics small {
  display: block;
  margin-top: 0.28rem;
  color: #60756e;
  font-size: 0.78rem;
}

.metric-inline__icon {
  color: #cc8e20;
  width: 0.9rem;
  height: 0.9rem;
}

.status-dot {
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.2rem;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.04);
}

.status-dot--producing {
  background: #22b455;
  box-shadow:
    0 0 0 5px rgba(34, 180, 85, 0.13),
    0 0 18px rgba(34, 180, 85, 0.45);
  animation: livePulse 2.8s ease-in-out infinite;
}

.status-dot--live {
  background: #22b455;
  box-shadow:
    0 0 0 5px rgba(34, 180, 85, 0.13),
    0 0 18px rgba(34, 180, 85, 0.45);
  animation: livePulse 2.8s ease-in-out infinite;
}

.status-dot--idle {
  background: #d69a1f;
  box-shadow: 0 0 0 5px rgba(214, 154, 31, 0.12);
  animation: livePulseSoft 3.8s ease-in-out infinite;
}

.status-dot--offline {
  background: #df4d48;
  box-shadow:
    0 0 0 5px rgba(223, 77, 72, 0.14),
    0 0 14px rgba(223, 77, 72, 0.28);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-pill--ready {
  background: #e7f8ee;
  color: #17623a;
}

.status-pill--muted {
  background: #eef3f4;
  color: #516a71;
}

.map-canvas {
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
}

.map-canvas--ops {
  min-height: 560px;
  border-radius: 24px;
}

.ops-map-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(114, 167, 186, 0.18);
  background:
    radial-gradient(circle at top, rgba(59, 126, 209, 0.16), transparent 30%),
    linear-gradient(180deg, #08131a 0%, #091821 100%);
}

.ops-map-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(132, 176, 195, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 176, 195, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.25;
  z-index: 401;
}

.ops-map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 58%, rgba(5, 14, 20, 0.58) 100%);
  z-index: 402;
}

.ops-map-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 500;
  width: min(100% - 2rem, 360px);
  padding: 1rem 1.05rem;
  border: 1px solid rgba(120, 167, 185, 0.18);
  border-radius: 18px;
  background: rgba(7, 19, 27, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(3, 12, 20, 0.35);
}

.ops-map-overlay__heading h2 {
  margin: 0.2rem 0 0.35rem;
  color: #f0fbff;
}

.leaflet-popup-content {
  color: #1d3732;
}

.map-canvas--ops .leaflet-control-zoom {
  border: 1px solid rgba(108, 152, 173, 0.26);
  box-shadow: 0 14px 40px rgba(5, 16, 26, 0.4);
}

.map-canvas--ops .leaflet-control-zoom a {
  background: rgba(7, 20, 28, 0.92);
  color: #dff6ff;
  border-bottom-color: rgba(108, 152, 173, 0.18);
}

.map-canvas--ops .leaflet-control-attribution {
  background: rgba(7, 19, 27, 0.78);
  color: #8cabba;
  border-radius: 10px 0 0 0;
}

.map-canvas--ops .leaflet-control-attribution a {
  color: #c6edf7;
}

.map-canvas--ops .leaflet-tile-pane {
  filter: saturate(0.4) hue-rotate(165deg) brightness(0.52) contrast(1.18);
}

.map-canvas--ops .leaflet-popup-content-wrapper,
.map-canvas--ops .leaflet-popup-tip {
  background: rgba(5, 16, 23, 0.94);
  color: #def7ff;
  border: 1px solid rgba(105, 154, 177, 0.22);
  box-shadow: 0 18px 48px rgba(3, 12, 20, 0.42);
}

.map-canvas--ops .leaflet-popup-content {
  margin: 0;
  color: inherit;
}

.map-beacon-marker {
  background: transparent;
  border: 0;
}

.map-dot-marker {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}

.map-canvas--ops .map-dot-marker {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px rgba(215, 245, 255, 0.95);
}

.map-dot-marker::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  background: currentColor;
  opacity: 0.2;
}

.map-canvas--ops .map-dot-marker::before {
  inset: -8px;
  opacity: 0.18;
}

.map-canvas--ops .map-dot-marker::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: inherit;
  border: 1px solid currentColor;
  opacity: 0.18;
}

.map-dot-marker__core {
  width: 8px;
  height: 8px;
  border-radius: inherit;
  background: #f5fdff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.85);
}

.map-dot-marker--live,
.map-dot-marker--producing {
  background: #22b455;
  color: #22b455;
  animation: livePulse 2.6s ease-in-out infinite;
}

.map-dot-marker--idle {
  background: #e0ab2d;
  color: #e0ab2d;
  animation: livePulseSoft 3s ease-in-out infinite;
}

.map-dot-marker--offline {
  background: #df4d48;
  color: #df4d48;
}

.map-dot-marker--selected {
  transform: scale(1.16);
}

.map-dot-marker--selected::after {
  opacity: 0.42;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.78rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.live-badge .status-dot {
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0;
}

.live-badge__copy {
  display: grid;
  gap: 0.05rem;
}

.live-badge__copy strong,
.live-badge__copy small {
  display: block;
}

.live-badge__copy small {
  font-weight: 500;
  opacity: 0.84;
}

.live-badge--producing {
  background: #e7f8ee;
  color: #17623a;
  box-shadow: inset 0 0 0 1px rgba(23, 98, 58, 0.08);
}

.live-badge--idle {
  background: #fff4df;
  color: #8b5a00;
  box-shadow: inset 0 0 0 1px rgba(139, 90, 0, 0.08);
}

.live-badge--offline {
  background: #eef3f4;
  color: #516a71;
  box-shadow: inset 0 0 0 1px rgba(81, 106, 113, 0.08);
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  align-items: center;
  margin-top: 0.95rem;
}

.hero-status__last-seen {
  font-size: 0.92rem;
}

.metric-card__label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.42rem;
  color: #58716a;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.map-building-card {
  position: relative;
  overflow: hidden;
}

.map-building-card__status {
  margin-bottom: 0.95rem;
}

.map-building-card--ops {
  background: linear-gradient(180deg, rgba(10, 23, 31, 0.96), rgba(8, 19, 28, 0.92));
  border: 1px solid rgba(106, 151, 173, 0.18);
  box-shadow: 0 18px 54px rgba(4, 14, 22, 0.28);
  color: #e7f7fc;
}

.map-building-card--ops:hover,
.map-building-card--selected {
  border-color: rgba(82, 191, 136, 0.55);
  box-shadow:
    0 20px 56px rgba(4, 14, 22, 0.36),
    0 0 0 1px rgba(82, 191, 136, 0.24) inset;
}

.map-building-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.map-building-card__header h3 {
  color: #f0fbff;
}

.map-building-card__power {
  flex-shrink: 0;
  color: #7df0a8;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.list-grid--ops .meta-row {
  color: #95b5c1;
  font-size: 0.86rem;
}

.map-building-card--ops .live-badge--producing {
  background: rgba(20, 74, 46, 0.72);
  color: #b9ffd2;
  box-shadow: inset 0 0 0 1px rgba(66, 181, 107, 0.2);
}

.map-building-card--ops .live-badge--idle {
  background: rgba(92, 66, 18, 0.72);
  color: #ffe2a1;
  box-shadow: inset 0 0 0 1px rgba(203, 159, 58, 0.2);
}

.map-building-card--ops .live-badge--offline {
  background: rgba(69, 32, 34, 0.72);
  color: #ffc2c0;
  box-shadow: inset 0 0 0 1px rgba(192, 85, 82, 0.2);
}

.ops-popup {
  min-width: 220px;
  padding: 0.9rem;
}

.ops-popup__eyebrow {
  margin: 0 0 0.3rem;
  color: #7db7d0;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-popup h3 {
  margin: 0 0 0.55rem;
  color: #f3fbff;
}

.ops-popup__metrics {
  display: grid;
  gap: 0.3rem;
  color: #bedae5;
  font-size: 0.88rem;
}

.ops-popup__last {
  margin: 0.7rem 0 0.55rem;
  color: #8fabb8;
  font-size: 0.83rem;
}

.ops-popup a {
  color: #7df0a8;
  font-weight: 700;
}

.phase-metrics {
  display: grid;
  gap: 0.65rem;
}

.phase-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #e5ecee;
}

.phase-row:last-child {
  border-bottom: 0;
}

.json-block {
  margin: 0;
  padding: 1rem;
  border-radius: 16px;
  background: #0e2126;
  color: #d9eef2;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.45;
}

.live-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 1rem;
}

.live-state--online {
  background: #e7f8ee;
  color: #17623a;
}

.live-state--stale {
  background: #fff4df;
  color: #8b5a00;
}

.live-state--offline,
.live-state--reconnecting {
  background: #fceaea;
  color: #8d2727;
}

@keyframes livePulse {
  0%, 100% {
    transform: scale(1);
    filter: saturate(1);
  }

  50% {
    transform: scale(1.08);
    filter: saturate(1.12);
  }
}

@keyframes livePulseSoft {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.04);
    opacity: 0.92;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.85rem;
  text-align: left;
  border-bottom: 1px solid #e5ecee;
}

th {
  color: #47636a;
  font-size: 0.92rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

label span {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid #c7d5d9;
  background: #fcfefe;
  font: inherit;
}

select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid #c7d5d9;
  background: #fcfefe;
  font: inherit;
}

.split-fields {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checkbox-row input {
  width: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.login-card {
  width: min(100%, 420px);
  padding: 2rem;
}

.alert,
.success {
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.alert {
  background: #fff2f2;
  color: #8d2727;
  border: 1px solid #f2c9c9;
}

.success {
  background: #eefaf4;
  color: #1b6b3c;
  border: 1px solid #cde9d8;
}

@media (max-width: 720px) {
  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 0.7rem;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.1rem;
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .summary-chip {
    padding: 0.75rem;
  }

  .summary-chip strong {
    font-size: 0.96rem;
  }

  .hero--ops {
    align-items: flex-start;
  }

  .summary-strip--ops {
    width: 100%;
    min-width: 0;
  }

  .building-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .building-row__metrics {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .building-row__metrics small {
    margin-top: 0;
  }

  .hero-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-canvas {
    min-height: 320px;
  }

  .map-canvas--ops {
    min-height: 460px;
  }

  .ops-map-overlay {
    position: static;
    width: auto;
    margin: 1rem 1rem 0;
  }

  .map-building-card__header {
    flex-direction: column;
    gap: 0.45rem;
  }

  .chart-canvas {
    min-height: 260px;
  }
}
