@font-face {
  font-family: Inter;
  src: url("/assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --bg: #f7f5f1;
  --surface: #fff;
  --soft: #efece6;
  --ink: #0e1b2e;
  --muted: #5b6576;
  --line: #e2ded6;
  --navy: #0b1a30;
  --navy2: #132744;
  --blue: #1f6fe5;
  --blue2: #3b8cf6;
  --blue-soft: #e6effd;
  --gold: #9a7b4f;
  --gold-light: #d4b483;
  --ok: #1e9e62;
  --radius: 17px;
  --head: "Space Grotesk", Inter, "Segoe UI", sans-serif;
  --body: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--body);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  min-width: 280px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
[hidden] {
  display: none !important;
}
button,
input,
select,
a {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
}
a {
  color: var(--blue);
}
button:disabled {
  cursor: wait;
  opacity: 0.58;
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
canvas:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #599bf4;
  outline-offset: 3px;
}
h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--head);
}
.ico {
  display: inline-block;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.start-screen,
.empty-view {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
}
.start-screen {
  min-height: 100vh;
  color: var(--muted);
}
.skip {
  position: fixed;
  top: -90px;
  left: 15px;
  z-index: 20;
  background: var(--surface);
  padding: 12px;
  border-radius: 6px;
}
.skip:focus {
  top: 12px;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  color: white;
  background: var(--navy);
  padding: 31px 16px 21px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 4px;
  font-family: var(--head);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.65px;
  line-height: 1.18;
  white-space: nowrap;
}
.brand small {
  display: block;
  color: #a4b2c6;
  font-family: var(--body);
  font-weight: 450;
  font-size: 10px;
  letter-spacing: 0.04em;
  margin-top: 5px;
}
.logo-box {
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #e2ded6;
}
.logo-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nav-list {
  display: grid;
  gap: 7px;
  margin-top: 61px;
}
.nav-item {
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  color: #b6c3d5;
  background: none;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: left;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-item:hover {
  background: #162a45;
  color: #fff;
}
.nav-item[aria-current="page"] {
  background: #1b3657;
  color: #fff;
  border-color: #28456a;
  box-shadow: inset 3px 0 #5b9dff;
}
.nav-item[aria-current] .ico {
  color: #8cbcff;
}
.nav-count,
.counter {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 6px;
  background: #294364;
  color: #dbe9fb;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}
.nav-count {
  margin-left: auto;
}
.sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 21px 2px 0;
  border-top: 1px solid #26364c;
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #41516a;
  border-radius: 50%;
  color: #e9dbc7;
  background: #23364b;
  font-family: var(--head);
  font-size: 13px;
  font-weight: 600;
}
.person {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.person strong,
.person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.person strong {
  font-size: 12px;
}
.person small {
  color: #a4b2c6;
  font-size: 10px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
}
.signout {
  margin-left: auto;
  width: 34px;
  height: 35px;
  color: #b6c3d5;
}
.signout:hover {
  background: #243951;
  color: #fff;
}
.main {
  min-width: 0;
  outline: 0;
}
.page-frame {
  width: min(100%, 1530px);
  margin: 0 auto;
  padding: 38px clamp(22px, 3vw, 62px) 48px;
}
.page-head,
.header-actions,
.small-head,
.range-nav,
.legend,
.chart-foot,
.section-head {
  display: flex;
  align-items: center;
}
.page-head {
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}
.page-head h1 {
  font-size: clamp(31px, 3.1vw, 49px);
  font-weight: 570;
  letter-spacing: -0.062em;
  line-height: 1.09;
  margin: 10px 0;
}
.section-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.105em;
  color: var(--muted);
}
.section-kicker i {
  display: inline-block;
  width: 19px;
  height: 2px;
  background: var(--gold);
}
.page-sub {
  min-height: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.mode-chip,
.status-chip {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  line-height: 1.3;
}
.mode-chip {
  font-size: 11px;
  color: var(--muted);
}
.mode-chip:before,
.status-chip:before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.mode-chip.live,
.status-chip.online {
  color: #167849;
}
.mode-chip.archive,
.status-chip.archived {
  color: #86652f;
}
.mode-chip.offline,
.status-chip.bad {
  color: #a54b39;
}
.sub-date {
  padding-left: 10px;
  border-left: 1px solid #c9c4ba;
}
.header-actions {
  gap: 7px;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  white-space: nowrap;
}
.btn:hover {
  border-color: #aeb7c2;
  background: #fafcff;
}
.quiet {
  width: 39px;
  padding: 0;
}
.btn.export {
  border-color: #c8d0da;
}
.btn.export .ico {
  width: 16px;
  height: 16px;
}
.btn.primary,
.btn.lookup-submit {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn.primary:hover,
.btn.lookup-submit:hover {
  background: #193457;
}
.notice {
  background: #fcf2df;
  border: 1px solid #e6d4ae;
  color: #765820;
  font-size: 13px;
  padding: 12px 15px;
  margin-bottom: 18px;
  border-radius: 9px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.98fr) minmax(225px, 0.92fr);
  gap: 16px;
  align-items: stretch;
}
.chart-card,
.card,
.reading-card,
.stat-card {
  border-radius: var(--radius);
  min-width: 0;
}
.card,
.reading-card,
.stat-card {
  border: 1px solid var(--line);
  background: var(--surface);
}
.chart-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 350px;
  background: linear-gradient(120deg, #0b1a30 16%, #122b4a 100%);
  color: white;
  padding: 22px 23px 15px;
  border: 1px solid #172e4a;
}
.chart-card:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 92% -11%, #214977a6, 0.1%, transparent 75%),
    repeating-linear-gradient(131deg, transparent 0 12px, #abd0ff08 12px 13px);
  mask-image: linear-gradient(135deg, transparent 44%, #000 104%);
}
.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.select-label {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.select-label label,
.chart-caption {
  font-size: 11px;
  font-weight: 450;
  color: #b4c4d9;
}
.select-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.select-wrap:after {
  content: "";
  display: block;
  position: absolute;
  right: 12px;
  top: calc(50% - 4px);
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  pointer-events: none;
}
select {
  appearance: none;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 7px 31px 7px 10px;
  color: var(--ink);
  font-size: 12px;
}
.dark-select {
  align-self: start;
  justify-self: start;
  max-width: 100%;
  color: #cee1fb;
}
.dark-select:after {
  right: 3px;
}
.dark-select select {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-family: var(--head);
  font-size: clamp(19px, 1.75vw, 26px);
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 1.3;
  padding: 0 21px 0 0;
  max-width: 100%;
  text-overflow: ellipsis;
}
.dark-select select option {
  background: var(--navy);
  color: white;
}
.segments {
  display: flex;
  gap: 1px;
  flex-shrink: 0;
  padding: 3px;
  border: 1px solid #344861;
  border-radius: 7px;
  background: #101e33;
}
.segments button {
  padding: 6px clamp(5px, 0.63vw, 12px);
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #c4cfe0;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.35;
}
.segments button[aria-pressed="true"] {
  color: white;
  background: #2b4770;
}
.segments button:hover {
  color: #fff;
  background: #243a56;
}
.chart-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin: 17px 0 4px;
}
.chart-caption {
  display: block;
  font-size: 12px;
  line-height: 1.45;
}
.chart-modes {
  display: flex;
  align-self: flex-start;
  gap: 3px;
  margin-top: 13px;
  padding: 2px;
  border: 1px solid #415472;
  border-radius: 8px;
}
.chart-modes button {
  border: 0;
  border-radius: 5px;
  padding: 5px 11px;
  min-height: 30px;
  background: transparent;
  color: #d5dfed;
  font: 570 12px/1.3 var(--body);
}
.chart-modes button:hover { background: #263c56; color: #fff; }
.chart-modes button[aria-pressed="true"] { background: #cce3ff; color: #142842; }
.chart-modes [data-metric="power"][aria-pressed="true"] { background: #edca98; color: #38291a; }
.chart-modes + .chart-summary { margin-top: 11px; }
.chart-summary > div:first-child { flex: 1 1 12rem; min-width: 0; }
.chart-measure-info, .chart-grant {
  display: block;
  color: #b8c9df;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.chart-measure-info:empty { display: none; }
.chart-grant { margin: 5px 0 0; }
.chart-from-zero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 3px 14px;
  margin-top: 6px;
  padding-top: 9px;
  border-top: 1px solid #344a66;
  color: #dbe6f5;
  font-size: 12px;
  line-height: 1.45;
}
.chart-from-zero time {
  display: block;
  color: #b8c9df;
  font-size: 11px;
}
.chart-from-zero strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.camera-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 38px;
  padding: 6px 12px;
  margin: 0 0 14px;
  border: 1px solid #bad1ed;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #18509b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.camera-shortcut:hover { text-decoration: underline; }
.camera-shortcut span { overflow-wrap: anywhere; }
.camera-shortcut .ico { flex: none; width: 18px; height: 18px; }
.chart-total,
.reading-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--head);
  font-variant-numeric: tabular-nums;
}
.chart-total strong {
  font-size: clamp(36px, 3.65vw, 57px);
  line-height: 1.08;
  letter-spacing: -0.065em;
  font-weight: 520;
}
.chart-total > span {
  font-size: 16px;
  color: #c5d4e8;
}
.range-nav {
  flex: none;
  margin-inline-start: auto;
  gap: 2px;
  margin-bottom: 5px;
  min-width: 0;
  color: #c5d4ea;
}
.range-nav span {
  font-size: 10px;
  white-space: nowrap;
  font-weight: 450;
}
.range-nav button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 24px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #bbcee7;
}
.range-nav button:hover {
  background: #304562;
}
.range-nav .ico {
  width: 11px;
  height: 11px;
}
.plot-wrap {
  position: relative;
  min-width: 0;
  min-height: 117px;
  flex: 1;
  margin-top: 7px;
}
.plot-wrap canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  border-radius: 4px;
}
.plot-empty {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  pointer-events: none;
  color: #d5e3f3;
  text-align: center;
  font-size: 12px;
}
.plot-empty strong {
  font-weight: 550;
}
.plot-empty small {
  font-size: 10px;
  color: #a9bdd5;
}
.plot-tip {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  padding: 8px 9px;
  border-radius: 6px;
  border: 1px solid #7491b0;
  background: #152b47;
  color: white;
  font-size: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
  box-shadow: 0 2px 8px #0002;
}
.chart-foot {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  min-height: 23px;
  margin-top: 5px;
  color: #b7c7dc;
  font-size: 10px;
}
.legend {
  gap: 5px;
}
.legend i {
  width: 14px;
  height: 2px;
  background: #78b6ff;
}
.legend small {
  font-size: 10px;
  color: #a4b9d3;
}
.power-legend i { width: 7px; height: 7px; border-radius: 50%; background: #efc58d; }
.chart-foot #coverage {
  text-align: right;
  font-size: 11px;
}
.side-stack {
  display: grid;
  gap: 14px;
  grid-template-rows: 0.93fr 1.07fr;
  min-width: 0;
}
.reading-card,
.lookup {
  padding: 19px 20px;
}
.reading-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #e8eff8;
  border-color: #d8e1ee;
}
.reading-card:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/gebouw.jpg") 74% 56% / cover no-repeat;
  opacity: 0.6;
}
.reading-card:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, #e9f0f9 14%, #e9f0f9fa 39%, #e9f0f9ac 71%, #eaf1f84d);
}
.small-head {
  gap: 8px;
}
.small-head h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.tile-icon,
.stat-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.tile-icon {
  border-radius: 8px;
  width: 30px;
  height: 30px;
  background: #d6e6fb;
  color: #245888;
}
.tile-icon .ico {
  width: 17px;
  height: 17px;
}
.reading-value {
  margin: 13px 0 4px;
}
.reading-value strong {
  font-size: clamp(28px, 2.75vw, 45px);
  font-weight: 550;
  line-height: 1.05;
  letter-spacing: -0.065em;
}
.reading-value > span {
  font-size: 14px;
}
.reading-card p,
.section-head p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.selected-power {
  margin-top: 13px;
  padding: 10px 11px;
  border: 1px solid #c8d7e7;
  border-radius: 8px;
  background: #f3f7fcee;
  color: var(--ink);
}
.selected-power h3 { font: 600 12px/1.4 var(--body); }
.selected-power p { margin-top: 3px; line-height: 1.16; color: var(--ink); }
.selected-power strong { font: 600 23px/1.15 var(--head); font-variant-numeric: tabular-nums; }
.selected-power small { display: block; margin-top: 3px; color: #495b72; font-size: 10px; line-height: 1.45; }
@media (max-width:650px) {
  .chart-modes button { min-height: 38px; }
  .chart-foot { row-gap: 4px; }
}
.lookup .small-head .ico {
  color: #45607d;
  width: 16px;
  height: 16px;
}
.date-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 8px;
  margin: 13px 0 11px;
}
.date-fields label,
.login-form label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
}
input {
  min-width: 0;
  width: 100%;
  border: 1px solid #d8d7d3;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  padding: 7px 8px;
  line-height: 1.2;
}
.date-fields input {
  height: 34px;
  font-size: 11px;
  max-width: 100%;
  color-scheme: light;
}
.lookup-submit {
  width: 100%;
  min-height: 33px;
  font-size: 11px;
}
.stats-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 22px;
}
.stat-card {
  padding: 16px 15px 15px;
}
.stat-card > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.stat-icon {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: #eaf1fb;
  color: #315e9b;
}
.stat-card:nth-child(2) .stat-icon {
  background: #f2ece2;
  color: #876540;
}
.stat-card:nth-child(3) .stat-icon {
  background: #e7f1ee;
  color: #477369;
}
.stat-card:nth-child(4) .stat-icon {
  background: #eeedf3;
  color: #665b82;
}
.stat-icon .ico {
  width: 15px;
  height: 15px;
}
.stat-card h2 {
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.stat-card p {
  margin: 11px 0 4px;
  font-family: var(--head);
  font-size: clamp(20px, 1.9vw, 31px);
  font-weight: 550;
  letter-spacing: -0.065em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-card p span {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.section-head {
  justify-content: space-between;
  gap: 15px;
  padding: 20px 23px 16px;
}
.section-head h2,
.empty-view h2 {
  font-size: 22px;
  font-weight: 570;
  letter-spacing: -0.055em;
}
.section-head p {
  margin-top: 3px;
}
.table-panel,
.detail-panel,
.alerts-panel {
  overflow: hidden;
}
.table-scroll {
  overflow: auto;
}
.table-panel .section-head {
  flex-wrap: wrap;
}
.meter-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.meter-filters label {
  max-width: 100%;
}
#meterTenantFilterWrap {
  width: clamp(9.25rem, 27vw, 15rem);
}
#meterTenantFilterWrap .select-wrap {
  display: block;
}
#meterTenantFilter {
  width: 100%;
  text-overflow: ellipsis;
}
.meter-tenant-inline {
  display: none;
}
td.meter-tenant-col {
  max-width: 16rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
.meter-tenant-col span {
  display: block;
}
.meter-tenant-col .unassigned {
  color: var(--muted);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}
th {
  text-align: left;
  color: var(--muted);
  background: #faf9f6;
  font-size: 10px;
  font-weight: 550;
}
th,
td {
  padding: 9px 13px;
  border-top: 1px solid #ece9e2;
}
th:first-child,
td:first-child {
  padding-left: 23px;
}
th:last-child,
td:last-child {
  padding-right: 20px;
}
.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.number > small {
  color: var(--muted);
  font-size: 9px;
}
.time-col {
  color: var(--muted);
  font-size: 11px;
}
.meter-row {
  cursor: pointer;
}
.meter-row:hover {
  background: #f8fafe;
}
.meter-row.active {
  background: #f2f6fd;
}
.meter-row.active td:first-child {
  box-shadow: inset 3px 0 var(--blue);
}
.meter-name {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 4px;
  background: none;
  text-align: left;
  color: var(--ink);
  padding: 1px 0;
  max-width: 100%;
}
.meter-name > span:last-child {
  display: grid;
  gap: 2px;
}
.meter-name strong {
  font-size: 12px;
  font-weight: 580;
}
.meter-name small {
  color: var(--muted);
  font-size: 10px;
}
.row-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe5ec;
  border-radius: 7px;
  color: #48617e;
  background: #f4f6f9;
}
.row-icon .ico {
  width: 15px;
  height: 15px;
}
.active .row-icon {
  background: #e5eefb;
  border-color: #ceddf2;
  color: #2c62a8;
}
.status-chip {
  font-size: 10px;
  color: var(--muted);
}
.status-chip.stale {
  color: #86652f;
}
.empty-text,
.empty-view p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.empty-text {
  padding: 18px 23px;
}
.empty-view {
  min-height: 250px;
  padding: 24px;
}
.detail-panel {
  margin-bottom: 20px;
}
.reading-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px 18px;
  border-top: 1px solid var(--line);
  padding: 18px 23px 22px;
}
.reading-details dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.reading-details dd {
  font: 550 19px/1.35 var(--head);
  letter-spacing: -0.03em;
}
.reading-details dd span {
  font-size: 12px;
  font-weight: 450;
  color: var(--muted);
}
.counter {
  color: #2b507d;
  background: #e7eef7;
}
.alerts-view {
  display: grid;
  gap: 18px;
}
.alerts-view > * {
  min-width: 0;
}
.alert-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 23px;
  border-top: 1px solid var(--line);
}
.alert-row .tile-icon {
  background: #f6eddc;
  color: #8c672d;
}
.alert-row.info .tile-icon {
  background: var(--blue-soft);
  color: var(--blue);
}
.alert-row h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.alert-row p,
.alert-row small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.alert-row small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
}
.alert-row button {
  margin-top: 7px;
}
.alert-clear {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 24px;
}
.alert-clear .tile-icon {
  background: #dfefe7;
  color: #197448;
}
.alert-clear p {
  font-size: 13px;
}
.alert-clear small {
  color: var(--muted);
}
.login-layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  background: var(--bg);
}
.login-side {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 5vw, 85px);
}
.brand-light {
  color: var(--ink);
  margin: 0;
}
.brand-light small {
  color: var(--muted);
}
.login-form {
  width: min(100%, 350px);
  align-self: center;
  margin: auto 0;
  padding: 42px 0;
}
.form-symbol {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: var(--blue-soft);
  color: #28588d;
  border: 1px solid #d6e3f4;
  border-radius: 12px;
  margin-bottom: 20px;
}
.login-form h1 {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 550;
  letter-spacing: -0.07em;
  line-height: 1.08;
}
.login-form > p:not(.form-error) {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 10px 0 26px;
}
.login-form label {
  margin: 15px 0 6px;
}
.login-form h1 + label {
  margin-top: 24px;
}
.login-form input {
  height: 44px;
  font-size: 14px;
  padding: 10px 11px;
}
.pw-wrap {
  position: relative;
}
.pw-wrap input {
  padding-right: 58px;
}
.pw-wrap button {
  position: absolute;
  right: 7px;
  top: 7px;
  height: 30px;
  border: 0;
  border-radius: 4px;
  background: #eff3f8;
  color: #365b87;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
}
.login-submit {
  margin-top: 23px;
  min-height: 43px;
  width: 100%;
}
.form-success {
  margin-top: 15px;
  padding: 10px 12px;
  border: 1px solid #c6e3d3;
  border-radius: 7px;
  background: #edf6f1;
  color: #196444;
  font-size: 12px;
  line-height: 1.45;
}
.form-error {
  color: #a53c2b;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 10px;
}
.login-foot {
  color: var(--muted);
  font-size: 10px;
}
.login-visual {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  overflow: hidden;
  background: var(--navy);
  margin: 14px 14px 14px 0;
  min-height: 0;
  border-radius: 21px;
}
.login-visual img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
  z-index: -2;
}
.login-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0b1a3008 48%, #0b1a30ce 100%);
  z-index: -1;
}
.photo-caption {
  position: absolute;
  bottom: 34px;
  left: 33px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--head);
  font-size: 19px;
  letter-spacing: -0.045em;
  color: #fff;
}
.photo-caption i {
  width: 22px;
  height: 2px;
  background: #ddc39b;
}
@media (min-width: 1450px) {
  .app-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 23px;
    padding-right: 23px;
  }
  .chart-card {
    min-height: 394px;
  }
  .chart-card,
  .reading-card,
  .lookup {
    padding: 24px;
  }
  .stats-section {
    gap: 16px;
  }
  .stat-card {
    padding: 20px;
  }
  .section-head {
    padding-top: 24px;
  }
  th,
  td {
    padding-top: 11px;
    padding-bottom: 11px;
  }
}
@media (max-width: 1150px) and (min-width: 801px) {
  .app-shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 11px;
    padding-right: 11px;
  }
  .brand {
    gap: 7px;
    font-size: 15px;
  }
  .logo-box {
    width: 32px;
    height: 32px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(205px, 0.9fr);
    gap: 12px;
  }
  .chart-card {
    padding: 18px 15px 13px;
  }
  .reading-card,
  .lookup {
    padding: 15px;
  }
  .stats-section {
    gap: 7px;
  }
  .stat-card {
    padding: 11px;
  }
  .page-frame {
    padding-left: 20px;
    padding-right: 20px;
  }
  .chart-head {
    flex-wrap: wrap;
  }
  .segments {
    margin-left: auto;
  }
  .chart-summary {
    margin-top: 12px;
  }
}
@media (max-width: 800px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    min-height: 65px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
  }
  .brand {
    margin: 0;
  }
  .sidebar-bottom {
    padding: 0;
    border: 0;
    margin: 0 0 0 auto;
  }
  .person {
    display: grid;
    max-width: min(27vw, 180px);
    min-width: 0;
  }
  .avatar {
    width: 30px;
    height: 30px;
  }
  .signout {
    width: 32px;
  }
  .nav-list {
    position: fixed;
    z-index: 8;
    inset: auto 0 0;
    display: flex;
    justify-content: space-around;
    gap: 2px;
    margin: 0;
    padding: 4px 9px max(4px, env(safe-area-inset-bottom));
    background: #0b1a30f8;
    backdrop-filter: blur(8px);
    border-top: 1px solid #243853;
  }
  .nav-item {
    display: grid;
    position: relative;
    justify-items: center;
    align-content: center;
    gap: 3px;
    min-height: 51px;
    width: auto;
    flex: 1;
    text-align: center;
    padding: 4px;
    font-size: 9px;
  }
  .nav-item[aria-current="page"] {
    box-shadow: none;
    background: #1a3454;
  }
  .nav-item .ico {
    width: 17px;
    height: 17px;
  }
  .nav-list:has(#buildingNav:not([hidden])) {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 1px;
    padding-inline: 3px;
  }
  .nav-list:has(#buildingNav:not([hidden])) .nav-item {
    min-width: 0;
    padding-inline: 1px;
  }
  .nav-count {
    position: absolute;
    top: 3px;
    left: calc(50% + 7px);
    height: 14px;
    min-width: 14px;
    border-radius: 10px;
    font-size: 8px;
  }
  .page-frame {
    padding: 23px 20px 84px;
  }
  .page-head {
    gap: 10px;
    margin-bottom: 19px;
  }
  .page-head h1 {
    font-size: 35px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(215px, 0.95fr);
  }
  .chart-card {
    padding: 18px 16px 12px;
  }
  .chart-head {
    flex-wrap: wrap;
  }
  .chart-summary {
    margin-top: 13px;
  }
  .reading-card,
  .lookup {
    padding: 16px;
  }
  .segments {
    margin-left: auto;
  }
  .stats-section {
    gap: 8px;
  }
  .stat-card {
    padding: 13px 10px;
  }
}
@media (max-width: 950px) {
  .meter-tenant-col {
    display: none;
  }
  .meter-tenant-inline {
    display: block;
    margin: 3px 0 0;
    max-width: 18rem;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 650px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .chart-card {
    min-height: 297px;
  }
  .chart-head {
    flex-wrap: nowrap;
  }
  .side-stack {
    grid-template-columns: 1fr 1.15fr;
    grid-template-rows: auto;
    gap: 9px;
  }
  .reading-card,
  .lookup {
    padding: 14px 12px;
  }
  .date-fields {
    gap: 4px;
    margin: 9px 0;
  }
  .date-fields input {
    padding: 5px 3px;
    height: 31px;
  }
  .reading-value {
    margin-top: 21px;
  }
  .stats-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 10px 0 15px;
  }
  .power-col,
  .time-col {
    display: none;
  }
  .login-layout {
    display: block;
  }
  .login-side {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 28px max(25px, 8vw);
  }
  .login-visual {
    display: none;
  }
}
@media (max-width: 440px) {
  .sidebar-bottom { min-width: 0; gap: 5px; }
  .sidebar-bottom .avatar { display: none; }
  .sidebar .brand { gap: 6px; font-size: 14px; }
  .sidebar {
    padding: 10px 14px;
  }
  .page-frame {
    padding: 20px 12px 82px;
  }
  .section-kicker {
    font-size: 9px;
  }
  .page-head {
    align-items: flex-end;
  }
  .page-head h1 {
    font-size: 31px;
  }
  .header-actions {
    gap: 5px;
    margin-bottom: 2px;
  }
  .header-actions .btn {
    width: 34px;
    min-height: 34px;
    padding: 0;
  }
  .export span {
    display: none;
  }
  .page-sub {
    font-size: 10px;
    gap: 5px;
  }
  .sub-date {
    padding-left: 6px;
  }
  .mode-chip {
    font-size: 10px;
  }
  .chart-card {
    padding: 15px 13px 10px;
    min-height: 282px;
  }
  .chart-summary {
    margin-top: 14px;
  }
  .segments button {
    padding: 6px;
  }
  .chart-foot {
    font-size: 9px;
  }
  .side-stack {
    grid-template-columns: 1fr;
  }
  .reading-card {
    min-height: 108px;
  }
  .reading-value {
    margin: 9px 0 3px;
  }
  .lookup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
  }
  .lookup .small-head {
    grid-column: 1/-1;
  }
  .lookup .date-fields {
    margin: 0;
  }
  .lookup-submit {
    align-self: end;
    width: auto;
    min-height: 31px;
    font-size: 10px;
    padding: 0 7px;
  }
  .section-head {
    padding: 15px;
  }
  .section-head h2 {
    font-size: 20px;
  }
  th,
  td {
    padding: 8px 6px;
  }
  th:first-child,
  td:first-child {
    padding-left: 12px;
  }
  th:last-child,
  td:last-child {
    padding-right: 9px;
  }
  .meter-name {
    gap: 6px;
  }
  .meter-name strong {
    font-size: 11px;
  }
  .row-icon {
    width: 24px;
    height: 24px;
  }
  .row-icon .ico {
    width: 13px;
    height: 13px;
  }
  .status-chip {
    font-size: 9px;
  }
  .reading-details {
    padding: 15px;
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 340px) {
  .side-stack {
    display: block;
  }
  .lookup {
    margin-top: 8px;
  }
  .segments button {
    padding: 5px 4px;
  }
  .row-icon {
    display: none;
  }
  .range-nav span {
    font-size: 9px;
  }
}
.chart-scope {
  border: 1px solid #3b516c;
  border-radius: 5px;
  background: transparent;
  color: #cfdbeb;
  font-size: 9px;
  padding: 3px 6px;
  line-height: 1.2;
  margin-right: auto;
  white-space: nowrap;
}
.chart-scope:hover {
  background: #254366;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
.camera-panel { padding: clamp(18px, 3vw, 32px); }
.camera-panel .camera-head { align-items: end; flex-wrap: wrap; gap: 10px 20px; padding: 0; }
.camera-identity { min-width: 0; overflow-wrap: anywhere; }
.camera-audience { display: flex; flex-wrap: wrap; gap: 3px 9px; margin: 6px 0 0; font-size: 13px; line-height: 1.5; }
.camera-audience dt { color: var(--muted); }
.camera-audience dd { margin: 0; color: var(--ink); font-weight: 600; }
.camera-chooser { display: grid; gap: 4px; max-width: 100%; color: var(--muted); font-size: 13px; font-weight: 600; }
.camera-chooser select {
  width: 100%; min-width: 0; max-width: 100%; min-height: 44px; padding: 7px 32px 7px 11px;
  color: var(--ink); border: 1px solid #b5bfcc; border-radius: 7px; background-color: var(--surface);
  appearance: auto; font: 500 15px/1.4 var(--body);
}
.camera-panel #cameraToggle { min-height: 44px; }
@media (max-width: 600px) {
  .camera-chooser { width: 100%; }
  .camera-chooser select { font-size: 16px; }
}
.camera-panel p { color: var(--muted); margin: 13px 0; }
.camera-stage { position: relative; min-width: 0; }
.camera-stage:is([data-state="loading"],[data-state="playing"],[data-state="manual"]) {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 65vh;
  overflow: hidden;
  margin-block: 12px;
  border-radius: 9px;
  background: var(--navy, #0b1a30);
}
.camera-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.camera-stage[data-state="loading"] #cameraStatus {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  margin: 0;
  background: #102036d9;
  color: #f1f6ff;
  font: 550 14px/1.4 var(--body);
  pointer-events: none;
}
.camera-stage[data-state="loading"] #cameraStatus::before {
  content: "";
  width: clamp(32px, 5vw, 44px);
  aspect-ratio: 1;
  border: 3px solid #90b4e13d;
  border-top-color: #b3d7ff;
  border-right-color: #6197df;
  border-radius: 50%;
  animation: camera-turn 1s linear infinite;
}
@keyframes camera-turn { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  .camera-stage[data-state="loading"] #cameraStatus::before { animation: none; }
}
.camera-stage[data-state="playing"] #cameraStatus {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0;
}
.camera-stage[data-state="manual"] #cameraStatus {
  position: absolute; inset: 8px auto auto 8px; margin: 0; padding: 5px 8px;
  color: white; background: #132744e8; border-radius: 5px; pointer-events: none;
}
