:root {
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0b111c;
  color: #dbe5f2;
  font:
    12px system-ui,
    sans-serif;
}
header {
  height: 66px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-bottom: 1px solid #26364b;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 17px;
  font-weight: 650;
}
.mark {
  font-size: 30px;
  color: #6fdbbc;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #748ba8;
  margin-top: 4px;
}
a {
  color: #93aac7;
  text-decoration: none;
}
nav {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  flex-wrap: wrap;
  background: #142032;
  border-bottom: 1px solid #26364b;
}
button,
select,
input {
  font: inherit;
  color: #dbe5f2;
  background: #1b2a3f;
  border: 1px solid #354a65;
  border-radius: 5px;
  padding: 6px 9px;
}
button {
  cursor: pointer;
}
button:hover {
  background: #2a3d58;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid #71d9b8;
  outline-offset: 2px;
}
label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.grow {
  flex: 1;
}
.divider {
  height: 20px;
  width: 1px;
  background: #354a65;
  margin: 0 4px;
}
.streambar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 7px 18px;
  border-bottom: 1px solid #26364b;
  background: #0e1929;
  flex-wrap: wrap;
}
.muted,
#stream-stats {
  color: #859bb6;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #657790;
}
.live-dot.running {
  background: #57d7af;
  box-shadow: 0 0 10px #57d7af55;
}
main {
  display: flex;
  flex: 1;
  min-height: 0;
}
aside {
  padding: 18px 14px;
  background: #101b2b;
  overflow: auto;
}
.palette {
  width: 158px;
  flex-shrink: 0;
  border-right: 1px solid #26364b;
}
h2 {
  margin: 0 0 14px;
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #91a8c3;
}
.palette button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 10px;
  margin-bottom: 9px;
  position: relative;
}
.palette small {
  display: block;
  font-size: 10px;
  color: #8a9fb9;
  margin: 4px 0 0 13px;
}
i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 7px;
}
.sensor,
.good {
  background: #57d7af;
}
.transform {
  background: #9b9cf3;
}
.output,
.warning {
  background: #edbc65;
}
.gateway {
  background: #65bce1;
}
.alarm {
  background: #f3788a;
}
.offline {
  background: #647389;
}
.instructions {
  font-size: 11px;
  line-height: 1.5;
  color: #7f94af;
  margin-top: 26px;
}
.instructions strong {
  color: #b4c4d9;
}
.instructions p {
  margin: 9px 0;
}
#views {
  flex: 1;
  display: flex;
  min-width: 0;
  min-height: 0;
}
.pane {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid #26364b;
}
.pane-label {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 1;
  pointer-events: none;
  color: #6d88a9;
  font-size: 9px;
  letter-spacing: 1.5px;
  background: #0b111c99;
  padding: 4px 6px;
  border-radius: 3px;
}
.diagram-canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  touch-action: none;
  cursor: grab;
}
.diagram-canvas:focus-visible {
  box-shadow: inset 0 0 0 1px #5576a0;
}
.inspector {
  width: 220px;
  flex-shrink: 0;
  border-left: 1px solid #26364b;
}
.inspector p {
  color: #8196b2;
  line-height: 1.6;
}
#node-form label {
  display: block;
  margin: 13px 0;
  color: #9eb2cc;
}
#node-form input {
  display: block;
  width: 100%;
  margin-top: 6px;
}
dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 11px;
  margin-top: 24px;
}
dt {
  color: #7e95b1;
}
dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.legend {
  margin-top: 28px;
  border-top: 1px solid #26364b;
  padding-top: 20px;
}
.legend span {
  display: block;
  color: #92a7c1;
  margin: 9px 0;
  font-size: 11px;
}
.architecture {
  margin-top: 28px;
  color: #7189a7;
  font-size: 10px;
  line-height: 1.7;
}
footer {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 29px;
  padding: 6px 16px;
  background: #152338;
  color: #8fa7c5;
  font-size: 10px;
}
#notice {
  color: #e5b97b;
  max-width: 35%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .inspector {
    width: 180px;
  }
  .palette {
    width: 130px;
  }
  .instructions {
    font-size: 10px;
  }
}
@media (max-width: 750px) {
  .inspector {
    display: none;
  }
  .palette {
    width: 110px;
  }
  #stream-stats {
    display: none;
  }
  .instructions {
    display: none;
  }
}
