:root {
  color-scheme: light;
  --ink: #172b42;
  --muted: #586d83;
  --line: #dce4eb;
  --blue: #155fa7;
  --bg: #f4f7fa;
  --panel: #fff;
  --soft: #eaf3fb;
  --radius: 17px;
  --snap: 229ms cubic-bezier(0.23, 1, 0.32, 1);
  --glide: 360ms cubic-bezier(0.23, 1, 0.32, 1);
  --exit: 140ms cubic-bezier(0.55, 0, 1, 0.45);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.55 Inter,
    "Microsoft YaHei UI",
    "PingFang SC",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #3385cf;
  outline-offset: 3px;
}
button:disabled {
  cursor: wait;
  opacity: 0.7;
}
button,
.btn,
.device,
.icon-link {
  transition:
    background-color var(--snap),
    transform var(--snap),
    box-shadow var(--snap),
    border-color var(--snap);
}
button:active:not(:disabled),
.btn:active,
.icon-link:active {
  transform: scale(0.97);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.045em;
}
h3 {
  font-size: 16px;
}
h1 {
  font-size: clamp(29px, 2.7vw, 38px);
  letter-spacing: -0.055em;
  line-height: 1.3;
}
em {
  font-style: normal;
}
.wrap {
  width: min(1256px, calc(100% - clamp(40px, 9vw, 150px)));
  margin-inline: auto;
}
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 19px;
  height: 19px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}
.top {
  background: white;
  border-bottom: 1px solid var(--line);
}
.top-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: clamp(42px, 6vw, 100px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
.brand-icon,
.login-icon {
  width: 41px;
  height: 41px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0e477e, #2472bb);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: inset 0 0 0 1px #ffffff20;
}
.brand-icon .icon {
  width: 28px;
  height: 28px;
}
.brand b {
  font-size: 21px;
  letter-spacing: 0.045em;
  line-height: 1.2;
  display: block;
}
.brand small {
  display: block;
  color: #506881;
  font:
    700 10px/1.5 Arial,
    sans-serif;
  letter-spacing: 0.14em;
}
.tabs {
  align-self: stretch;
  display: flex;
  gap: 28px;
}
.tabs a,
.admin-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
}
.tabs a {
  position: relative;
  padding: 0 5px;
}
.tabs .icon,
.admin-link .icon {
  width: 17px;
  height: 17px;
}
.tabs a[aria-current],
.admin-link[aria-current] {
  color: var(--blue);
}
.tabs a[aria-current]:after {
  content: "";
  position: absolute;
  bottom: -1px;
  height: 3px;
  left: 0;
  right: 0;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
}
.tabs a:hover,
.admin-link:hover {
  color: var(--blue);
}
.admin-link {
  margin-left: auto;
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 9px;
  background: #fbfcfd;
}
.admin-link[aria-current] {
  background: var(--soft);
}
main {
  padding-bottom: 64px;
  outline: none;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 31px 0 22px;
}
.dateline,
.sub,
.time-label,
.mini-foot,
.dev-foot,
.dateline,
.form-footer small {
  color: var(--muted);
  font-size: 13px;
}
.dateline,
.time-label,
.sub,
.dev-foot > span,
.link,
h2:has(> .icon),
h3:has(> .icon) {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dateline {
  margin-bottom: 5px;
  font-weight: 550;
}
.dateline .icon,
.sub .icon,
.time-label .icon,
.dev-foot .icon {
  width: 15px;
  height: 15px;
}
.btn,
.icon-btn,
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  line-height: 1.3;
  gap: 8px;
  font-weight: 650;
  font-size: 14px;
}
.btn {
  padding: 10px 16px;
  min-height: 40px;
}
.btn:hover,
.icon-btn:hover,
.icon-link:hover {
  background: var(--soft);
  border-color: #b5cddd;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.btn.primary:hover {
  background: #104d89;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.actions,
.dlg-actions,
.panel-title,
.list-head,
.list-tools,
.form-footer,
.detail-status,
.period-tools {
  display: flex;
  align-items: center;
}
.panel-title,
.list-head,
.form-footer {
  justify-content: space-between;
  gap: 14px;
}
.panel-title h2,
.panel-title h3,
.list-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.overview-top {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
  gap: 20px;
}
.hero,
.panel,
.device {
  border-radius: var(--radius);
}
.panel,
.device {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 2px 4px #233a5005;
}
.hero {
  color: white;
  background: linear-gradient(113deg, #15365c 6%, #1a497d 63%, #286c9f);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 218px;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(#98c6ee55 1px, transparent 1px),
    linear-gradient(90deg, #98c6ee55 1px, transparent 1px);
  background-size: 25px 25px;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.hero-content {
  padding: 23px 29px;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.hero h2 {
  font-size: 17px;
  color: #f0f8ff;
  gap: 9px;
}
.hero h2 .icon {
  color: #99d9fa;
}
.fleet-count {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font:
    600 61px/1.18 Inter,
    Arial,
    sans-serif;
  letter-spacing: -0.055em;
  margin: 6px 0 16px;
}
.fleet-count span {
  font:
    500 14px/1.5 "Microsoft YaHei",
    sans-serif;
  letter-spacing: 0;
  color: #d2e5f5;
}
.hero-stats {
  display: flex;
  gap: 0;
}
.hero-stats > div {
  min-width: 68px;
  padding-right: 17px;
}
.hero-stats > div + div {
  border-left: 1px solid #acc5df52;
  padding-left: 16px;
}
.hero-stats small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e0edf7;
  font-size: 12px;
}
.hero-stats b {
  font:
    600 23px/1.4 Inter,
    Arial,
    sans-serif;
}
.dot,
.badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #97aabd;
  display: inline-block;
}
.dot.on {
  background: #67e5c6;
}
.dot.off {
  background: #c4d8ea;
}
.dot.unknown {
  background: #f4bf69;
}
.hero-art {
  position: absolute;
  width: 51%;
  height: 100%;
  right: 0;
  bottom: 0;
}
.hero-art img {
  position: absolute;
  width: 91%;
  top: 20%;
  right: 5%;
  filter: drop-shadow(0 14px 13px #051f3c69);
  transform: rotate(-1deg);
}
.orbit {
  position: absolute;
  width: 88%;
  height: 80%;
  right: -5%;
  bottom: 1%;
  border: 1px solid #a8dbff33;
  border-radius: 50%;
  transform: rotate(-15deg);
}
.orbit:before,
.orbit:after {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px dashed #a6d2f32e;
  border-radius: 50%;
}
.orbit:after {
  inset: -13%;
  border-style: solid;
  border-color: #a8dbff19;
}
.flow-lines {
  position: absolute;
  width: 75%;
  height: 72%;
  bottom: -17%;
  left: 8%;
  transform: skewY(-12deg);
  opacity: 0.39;
  background: repeating-linear-gradient(
    100deg,
    transparent 0 16px,
    #aadfff61 17px,
    transparent 18px
  );
  mask-image: linear-gradient(transparent, #000 25%, transparent);
}
.energy-mini {
  padding: 20px 24px;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
}
.energy-mini h2 {
  font-size: 17px;
}
.mini-icon,
.ac-icon {
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--soft);
  color: var(--blue);
}
.mini-icon {
  width: 29px;
  height: 29px;
  background: #e0f6ed;
  color: #20765a;
}
.mini-icon .icon {
  width: 18px;
  height: 18px;
}
.icon-btn,
.icon-link {
  width: 32px;
  height: 32px;
  color: var(--muted);
}
.icon-link {
  border: 0;
  background: #f1f5f8;
}
.mini-main,
.energy-band,
.mini-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.mini-main {
  margin: 7px 0 0;
  align-items: center;
}
.energy-value {
  font:
    600 clamp(36px, 3.3vw, 52px)/1.2 Inter,
    Arial,
    sans-serif;
  letter-spacing: -0.045em;
}
.energy-value em,
.energy-band em,
.detail-readings em,
.energy-kpis em {
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted);
}
.dev-tag {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.energy-band {
  background: #f3f7fa;
  border-radius: 8px;
  padding: 6px 10px;
  align-items: center;
}
.energy-band strong {
  font-family: Inter, "Microsoft YaHei", sans-serif;
  font-variant-numeric: tabular-nums;
}
.mini-foot {
  margin-top: 12px;
  align-items: center;
}
.link {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 650;
  display: inline-flex;
  justify-content: center;
  padding: 0;
}
.link .icon {
  width: 15px;
  height: 15px;
}
.status-strip,
.notice {
  background: #eaf1f7;
  border-radius: 9px;
  color: #405a72;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
}
.status-strip {
  margin-top: 12px;
}
.status-strip .icon,
.notice .icon {
  width: 16px;
  height: 16px;
}
.status-strip a {
  margin-left: auto;
  white-space: nowrap;
}
.list-head {
  margin: 27px 0 14px;
}
.counter {
  min-width: 25px;
  padding: 1px 7px;
  border-radius: 6px;
  background: #e4edf4;
  color: #526c82;
  font:
    600 13px/1.5 Inter,
    Arial;
  text-align: center;
}
.list-tools,
.period-tools {
  gap: 12px;
}
.segments {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: #e7edf2;
  border-radius: 9px;
}
.segments button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #526477;
  line-height: 1.4;
  min-height: 30px;
  white-space: nowrap;
}
.segments button[aria-pressed="true"] {
  color: #15568d;
  background: white;
  box-shadow: 0 1px 4px #24445e20;
  font-weight: 650;
}
.search {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  padding: 0 10px;
  max-width: 160px;
}
.search .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.search input {
  border: 0;
  min-width: 0;
  width: 100%;
  height: 36px;
  background: transparent;
  font-size: 13px;
}
.search:focus-within {
  outline: 2px solid #87b7df;
}
.search input:focus {
  outline: 0;
}
input::placeholder {
  color: #677a8a;
}
.devices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.device {
  padding: 15px 17px 0;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
  position: relative;
}
.device:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 19px #1b437013;
  border-color: #a8c3da;
}
.device:active {
  transform: scale(0.985);
}
.device-top,
.dev-foot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.ac-icon {
  width: 36px;
  height: 36px;
}
.ac-icon .icon {
  width: 23px;
  height: 23px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  background: #eef1f4;
  color: #526270;
}
.badge i {
  width: 6px;
  height: 6px;
  background: #778c9f;
}
.badge.on {
  background: #dcf5e9;
  color: #237253;
}
.badge.on i {
  background: #258057;
}
.badge.off {
  background: #e8f1fa;
  color: #446985;
}
.badge.off i {
  background: #537798;
}
.badge.unknown {
  background: #fff3da;
  color: #795722;
}
.badge.unknown i {
  background: #bc852d;
}
.mini-main {
  justify-content: flex-start;
  column-gap: 14px;
}
.dev-name {
  font-size: 20px;
  line-height: 1.4;
  margin: 9px 0 5px;
  overflow-wrap: anywhere;
}
.readouts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 20px;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 13px;
}
.readouts b {
  font-weight: 550;
  color: #334c64;
  margin-left: 3px;
}
.dev-foot {
  padding: 9px 0;
  border-top: 1px solid #e8edf1;
  font-size: 12px;
}
.dev-foot > span {
  gap: 5px;
}
.dev-foot > .icon {
  color: var(--blue);
}
.empty,
.boot,
.blank-chart {
  padding: 40px 18px;
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
}
.empty {
  grid-column: 1/-1;
}
.boot {
  padding: 100px 0;
}
.empty > .icon {
  width: 30px;
  height: 30px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  width: min(480px, calc(100% - 28px));
  color: var(--ink);
  padding: 0;
  max-height: 90dvh;
  box-shadow: 0 28px 90px #142e4440;
}
#dialog-body {
  padding: 25px;
  background: white;
}
dialog[open] {
  animation: dialog-in var(--glide);
}
dialog.closing {
  animation: dialog-out var(--exit) both;
}
dialog::backdrop {
  background: #142d4669;
  animation: fade-in 180ms cubic-bezier(0.23, 1, 0.32, 1);
}
.dlg-head,
.dlg-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.dlg-head {
  margin-bottom: 15px;
}
.dlg-actions {
  margin-top: 22px;
  justify-content: flex-end;
}
.danger {
  background: transparent;
  color: #ad3542;
  border: 0;
  padding: 8px 0;
  margin-right: auto;
}
.btn.remove {
  color: white;
  background: #ac3440;
  border-color: #ac3440;
}
.detail-status {
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 18px;
}
.notice {
  margin: 12px 0;
  align-items: flex-start;
}
.notice .icon {
  margin-top: 2px;
}
dialog h3 {
  margin: 17px 0 9px;
}
.detail-readings,
.energy-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: #f4f7fa;
  border-radius: 10px;
  padding: 15px;
}
.detail-readings small,
.energy-kpis small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.detail-readings strong,
.energy-kpis strong {
  font-size: 20px;
}
.detail-readings em,
.energy-kpis em {
  margin-left: 3px;
}
.sub {
  margin: 12px 0;
  line-height: 1.6;
}
.energy-tools,
.settings,
.registry,
.energy-detail,
.records {
  margin-bottom: 18px;
}
.energy-tools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
}
.energy-tools label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}
select,
input:not(.search input) {
  border: 1px solid #bfcdd9;
  border-radius: 8px;
  background: white;
  min-height: 40px;
  padding: 7px 10px;
}
select {
  max-width: 100%;
  min-width: 116px;
}
.energy-detail,
.records,
.settings,
.registry {
  padding: 22px 25px;
}
.energy-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 8px;
  background: none;
  padding: 0;
  max-width: 540px;
}
.energy-kpis strong {
  font:
    600 40px/1.3 Inter,
    Arial,
    sans-serif;
}
.energy-detail h3 {
  margin: 20px 0 10px;
}
.energy-detail h3 small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.chart-scroll {
  overflow-x: auto;
}
.chart {
  height: 165px;
  display: flex;
  gap: 8px;
  align-items: stretch;
  min-width: calc(var(--columns) * 32px);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(
    to top,
    transparent 0 39px,
    #edf2f5 40px 41px
  );
}
.bar-col {
  flex: 1;
  max-width: 84px;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font:
    12px/1.4 Inter,
    Arial,
    sans-serif;
  color: var(--muted);
}
.bar-col i {
  display: block;
  background: linear-gradient(#248bac, #3268a1);
  border-radius: 4px 4px 0 0;
  width: min(54%, 30px);
  height: calc(var(--bar) * 0.75);
  min-height: 2px;
  transform-origin: bottom;
  animation: bar-in var(--glide);
}
.bar-col small {
  font-size: 12px;
}
.records table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  font-variant-numeric: tabular-nums;
}
.records td,
.records th {
  text-align: right;
  padding: 9px 5px;
  border-bottom: 1px solid var(--line);
}
.records td:first-child,
.records th:first-child {
  text-align: left;
}
.records th {
  font-size: 13px;
  color: var(--muted);
}
.login {
  margin: clamp(45px, 9vh, 100px) auto;
  padding: 32px;
  width: min(420px, 100%);
}
.login-icon {
  margin-bottom: 18px;
}
.login h1 {
  font-size: 27px;
}
.login .btn {
  width: 100%;
  margin: 5px 0 14px;
}
.login label,
.field-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
}
.login .sub {
  margin-bottom: 20px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 17px;
}
.field-grid input {
  min-width: 0;
  width: 100%;
  font-family: "Cascadia Mono", Consolas, "Microsoft YaHei", monospace;
  font-weight: 400;
}
.field-grid .wide {
  grid-column: 1/-1;
}
.form-footer {
  margin-top: 15px;
}
.form-error {
  color: #ad3542;
  font-size: 14px;
  margin-top: 8px;
}
.form-error:empty {
  display: none;
}
.admin-search {
  margin: 16px 0 5px;
  max-width: 290px;
}
.archive-row {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.archive-row:last-child {
  border-bottom: 0;
}
.archive-row dl {
  display: grid;
  grid-template-columns: 1fr 1.7fr 0.8fr 0.6fr 1.15fr;
  gap: 11px;
  margin: 10px 0 0;
}
.archive-row dt {
  font-size: 12px;
  color: var(--muted);
}
.archive-row dd {
  font-family: Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
  margin: 3px 0 0;
}
.archive-row h3 > .icon {
  color: var(--blue);
}
.settings h2 > .icon {
  color: var(--blue);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  z-index: 10;
  color: white;
  background: #1d394e;
  border-radius: 11px;
  padding: 11px 18px;
  text-align: center;
  max-width: 90vw;
  width: max-content;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition:
    opacity var(--snap),
    transform var(--snap);
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.top + main {
  animation: page-in 420ms cubic-bezier(0.23, 1, 0.32, 1);
}
.refresh:disabled .icon {
  animation: spin 0.9s linear infinite;
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dialog-out {
  to {
    opacity: 0;
    transform: translateY(5px) scale(0.98);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes bar-in {
  from {
    transform: scaleY(0.03);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .devices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-content {
    padding-inline: 22px;
  }
  .hero-stats > div {
    min-width: 60px;
  }
  .energy-mini {
    padding: 18px;
  }
  .archive-row dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .top-inner {
    height: 62px;
    gap: 20px;
  }
  .brand-icon {
    width: 35px;
    height: 35px;
  }
  .brand b {
    font-size: 17px;
  }
  .brand small {
    font-size: 9px;
  }
  .tabs {
    gap: 9px;
  }
  .tabs a,
  .admin-link {
    font-size: 13px;
    gap: 5px;
  }
  .overview-top {
    grid-template-columns: 1.3fr 1fr;
    gap: 10px;
  }
  .hero-art {
    width: 48%;
  }
  .hero-art img {
    top: 22%;
    right: -5%;
    width: 104%;
  }
  .hero-content {
    padding: 16px;
  }
  .hero-stats > div {
    min-width: 45px;
    padding-right: 10px;
  }
  .hero-stats > div + div {
    padding-left: 10px;
  }
  .energy-mini {
    padding: 14px;
  }
  .devices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    min-height: 190px;
  }
  .mini-foot {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px;
  }
  .list-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .archive-row dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 580px) {
  .top-inner {
    height: auto;
    min-height: 91px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    padding-top: 8px;
  }
  .brand {
    gap: 8px;
  }
  .admin-link {
    grid-column: 2;
    grid-row: 1;
    font-size: 13px;
  }
  .tabs {
    grid-column: 1/-1;
    grid-row: 2;
    gap: 18px;
  }
  .tabs a {
    padding: 8px 2px 7px;
    min-height: 36px;
  }
  .page-head {
    margin: 19px 0 14px;
  }
  .dateline {
    font-size: 12px;
  }
  .btn {
    padding: 9px 12px;
  }
  .overview-top {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero {
    min-height: 165px;
  }
  .hero-content {
    padding: 14px 19px;
  }
  .hero h2 {
    font-size: 15px;
  }
  .fleet-count {
    font-size: 45px;
    margin: 2px 0 7px;
  }
  .hero-stats b {
    font-size: 20px;
  }
  .hero-art {
    width: 47%;
  }
  .hero-art img {
    top: 24%;
    right: 1%;
    width: 98%;
  }
  .energy-mini {
    padding: 13px 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
  }
  .energy-mini .panel-title {
    grid-column: 1/-1;
  }
  .energy-mini .mini-main {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 2px 8px;
    margin: 0;
  }
  .energy-mini .energy-value {
    font-size: 31px;
  }
  .energy-band {
    align-self: center;
    gap: 6px;
    background: transparent;
    padding: 0;
  }
  .energy-mini .time-label {
    font-size: 12px;
  }
  .energy-mini .time-label .icon {
    display: none;
  }
  .mini-foot {
    grid-column: 1/-1;
    margin: 0;
  }
  .status-strip {
    font-size: 12px;
    align-items: flex-start;
    margin-top: 8px;
    padding: 8px;
  }
  .status-strip .link {
    font-size: 12px;
  }
  .status-strip a .icon {
    display: none;
  }
  .status-strip > .icon {
    margin-top: 2px;
  }
  .list-head {
    margin: 19px 0 11px;
    gap: 9px;
  }
  .list-tools {
    width: 100%;
    gap: 8px;
    justify-content: space-between;
  }
  .search {
    max-width: 145px;
    min-width: 0;
  }
  .segments button {
    padding: 5px 9px;
    min-width: 34px;
  }
  .devices {
    gap: 9px;
  }
  .device {
    padding: 11px 11px 0;
    border-radius: 12px;
  }
  .ac-icon {
    width: 31px;
    height: 31px;
  }
  .ac-icon .icon {
    width: 20px;
    height: 20px;
  }
  .dev-name {
    font-size: 18px;
    margin: 6px 0 3px;
  }
  .readouts {
    column-gap: 9px;
    padding-bottom: 8px;
    font-size: 12px;
  }
  .dev-foot {
    font-size: 12px;
    padding: 7px 0;
  }
  .dev-foot > span .icon {
    display: none;
  }
  .dev-foot > .icon {
    width: 12px;
  }
  .badge {
    font-size: 12px;
    padding: 2px 7px;
  }
  .energy-tools {
    align-items: flex-start;
    flex-direction: column;
  }
  .energy-tools label,
  .period-tools {
    width: 100%;
    justify-content: space-between;
  }
  .energy-tools select {
    min-width: 146px;
  }
  .energy-detail,
  .records,
  .settings,
  .registry,
  .login,
  #dialog-body {
    padding: 17px;
  }
  .energy-kpis strong {
    font-size: 31px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .form-footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .archive-row dl {
    grid-template-columns: 1fr 1fr;
  }
  .archive-row dl > div:nth-child(2) {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .hero,
  .panel {
    border-radius: 13px;
  }
  .search input,
  select,
  input:not(.search input) {
    font-size: 16px;
  }
  .search input {
    width: 100%;
    font-size: 16px;
  }
  .sub {
    align-items: flex-start;
  }
  .brand small {
    font-size: 9px;
  }
  .status-strip .link {
    margin-left: auto;
  }
}
.brand small {
  font-size: 11px;
  letter-spacing: 0.09em;
}
.search input::placeholder {
  color: #5f7284;
}
.energy-mini,
.device {
  border: 0;
  box-shadow: 0 1px 4px #18385313;
}
.device:hover {
  box-shadow: 0 4px 14px #18385326;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .device:hover,
  button:active:not(:disabled),
  .btn:active,
  .icon-link:active {
    transform: none;
  }
}
