/* Plant workbench: physical components share a scaled, layered scene. */
.library-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #e9efed;
  border-radius: 5px;
  margin-bottom: 12px;
}
.library-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  min-height: 30px;
  font-size: 11px;
}
.library-tabs button.active {
  background: white;
  color: var(--green);
  box-shadow: 0 1px 4px #203c3012;
}
#component-search {
  font-size: 11px;
  background: white;
  margin-bottom: 10px;
  min-height: 34px;
}
.component-group {
  font: 9px var(--mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #79908c;
  margin: 17px 4px 6px;
}
.plant-library-item {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  padding: 8px 5px;
  gap: 8px;
  min-height: 48px;
  font-size: 11px;
  cursor: grab;
  white-space: normal;
}
.plant-library-item:hover {
  border-color: #bbd0c6;
  background: white;
}
.plant-library-item:active {
  cursor: grabbing;
}
.plant-library-item small {
  display: block;
  font-size: 9px;
  color: #788f88;
  margin-top: 4px;
}
.component-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 32px;
  font: 17px var(--mono);
  background: #fff;
  border: 1px solid #d8e2dd;
  border-radius: 4px;
  flex-shrink: 0;
}
.drag-grip {
  margin-left: auto;
  color: #9aacaa;
}
.scene-layers {
  padding: 20px;
  border-top: 1px solid var(--line);
}
#scene-layers {
  max-height: 235px;
  overflow: auto;
}
.layer-row {
  display: flex;
  align-items: center;
  border-radius: 3px;
  min-width: 0;
}
.layer-row.active {
  background: #e9f5ee;
}
.layer-row button {
  border: 0;
  background: transparent;
  padding: 5px;
  min-height: 30px;
  font-size: 10px;
}
.layer-row > .layer-select {
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
}
.layer-select > span:first-child {
  font: 11px var(--mono);
  width: 23px;
  color: var(--green);
  flex-shrink: 0;
}
.layer-select > span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.plant-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.plant-toolbar button,
.plant-toolbar .button {
  font-size: 11px;
  min-height: 31px;
  padding: 5px 9px;
}
.editor-modes {
  display: flex;
  background: #edf2f0;
  padding: 3px;
  border-radius: 5px;
}
.editor-modes button {
  border: 0;
  background: transparent;
  color: #6a8078;
}
.editor-modes button.active {
  background: #fff;
  box-shadow: 0 1px 5px #24473212;
  color: #16725c;
  font-weight: 600;
}
.plant-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}
.zoom-controls select {
  width: 64px;
  min-height: 31px;
  font: 10px var(--mono);
  padding: 4px;
}
.zoom-controls > button:not(:last-child) {
  width: 27px;
  padding: 0;
  font-size: 16px;
}
.scene-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eef6f1;
  border-bottom: 1px solid #dce9e1;
  min-height: 44px;
  padding: 8px 16px;
  gap: 10px;
  flex-shrink: 0;
}
.scene-guide > span {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.scene-guide strong {
  font: 9px var(--mono);
  letter-spacing: 0.6px;
  color: #3a7764;
}
.scene-guide #scene-guide-text {
  font-size: 10px;
  color: #698477;
}
.scene-guide button {
  background: transparent;
  border: 0;
  color: #247359;
  font-size: 10px;
  padding: 0;
  min-height: 26px;
}
.plant-viewport {
  min-height: 0;
  background: #e8eff2;
  position: relative;
  touch-action: none;
  overscroll-behavior: contain;
}
.plant-viewport:active {
  cursor: grabbing;
}
#scene-sizer {
  position: relative;
  min-width: 100%;
  min-height: 100%;
}
.plant-viewport #plant-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  transform-origin: 0 0;
  background-color: #f8fafb;
  background-image: radial-gradient(#ccd9de 0.8px, transparent 0.8px);
  background-size: 20px 20px;
  height: 720px;
  width: 1200px;
  box-shadow: inset 0 0 0 1px #dbe5e8;
}
.plant-viewport #plant-stage.with-background {
  background-size: contain;
  background-repeat: no-repeat;
}
.plant-viewport #plant-stage.no-grid:not(.with-background) {
  background-image: none;
}
.plant-viewport #plant-stage.drop-ready {
  box-shadow: inset 0 0 0 4px #2b9a75;
}
.scene-status {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #f8fbfa;
  border-top: 1px solid var(--line);
  padding: 8px 15px;
  font: 9px var(--mono);
  color: #769086;
  flex-shrink: 0;
  min-height: 32px;
}
.scene-status label {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.scene-status input {
  width: auto;
  min-height: 0;
  margin: 0;
  accent-color: var(--green);
}
#scene-time {
  margin-left: auto;
  white-space: nowrap;
}
.scene-object {
  position: absolute;
  user-select: none;
  touch-action: none;
  cursor: grab;
  outline: 1.5px solid transparent;
  outline-offset: 7px;
  border-radius: 3px;
}
.scene-object:hover {
  outline-color: #a5c7b8;
}
.scene-object.selected {
  outline-color: #238f6b;
}
.scene-object.locked {
  cursor: default;
}
.scene-object[data-kind="label"] {
  outline-offset: 2px;
}
.object-caption {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  right: 0;
  text-align: center;
  font: 11px var(--mono);
  font-weight: 600;
  color: #476975;
  white-space: nowrap;
  pointer-events: none;
}
.object-signal {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  text-align: center;
  font: 9px var(--mono);
  color: #668492;
  white-space: nowrap;
  pointer-events: none;
}
.scene-graphic {
  width: 100%;
  height: 100%;
  position: relative;
  pointer-events: none;
}
.scene-graphic svg,
.scene-graphic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.scene-graphic button {
  pointer-events: auto;
}
.scene-object[data-kind="label"] .object-caption,
.scene-object[data-kind="label"] .object-signal,
.scene-object[data-kind="image"] .object-signal {
  display: none;
}
.scene-text {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: pre-wrap;
  overflow: hidden;
  font-size: clamp(13px, 1.4vw, 19px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.5px;
}
.scene-object[data-kind="label"][style*="height: 30"] .scene-text {
  font-weight: 400;
}
.object-resize {
  display: none;
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 12px;
  height: 12px;
  padding: 0;
  min-height: 12px;
  border: 2px solid #208d66;
  border-radius: 1px;
  background: white;
  cursor: nwse-resize;
  z-index: 20;
}
.scene-object.selected:not(.locked) .object-resize {
  display: block;
}
#plant-stage[data-mode="operate"] .scene-object {
  cursor: default;
}
#plant-stage[data-mode="operate"] .object-resize {
  display: none;
}
#plant-stage[data-mode="operate"] .physical-control {
  cursor: pointer;
}
#plant-stage[data-mode="edit"] .physical-control,
#plant-stage[data-mode="edit"] .trip-control {
  pointer-events: none;
}
.control-plate {
  position: relative;
  width: 100%;
  height: 100%;
  background: #e3eaed;
  border: 1px solid #a8bec8;
  border-radius: 7px;
  box-shadow:
    0 4px 0 #bdcdd4,
    0 8px 10px #3550620e;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 12px;
}
.plate-screw {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #849ea9;
  top: 7px;
}
.plate-screw.a {
  left: 7px;
}
.plate-screw.b {
  right: 7px;
}
.physical-control {
  font: 700 11px var(--sans);
  width: 55%;
  height: 56%;
  min-height: 0;
  border: 5px solid #e6edf0;
  border-radius: 50%;
  padding: 0;
  background: var(--component-color);
  color: #fff;
  box-shadow:
    0 0 0 3px #708a97,
    0 4px 0 #314854;
  position: relative;
  transition:
    transform 0.08s,
    box-shadow 0.08s;
}
.physical-control:hover {
  background: var(--component-color);
  border-color: white;
}
.is-pressed .physical-control {
  transform: translateY(3px);
  box-shadow:
    0 0 0 3px #708a97,
    0 1px 0 #314854;
  filter: brightness(0.8);
}
.contact-mark {
  position: absolute;
  bottom: 9px;
  left: 2px;
  right: 2px;
  text-align: center;
  font: 5px var(--mono);
  letter-spacing: 0.2px;
  color: #67808c;
}
.emergency-plate {
  background: #edc854;
  border-color: #c6a638;
}
.emergency-plate .physical-control {
  width: 64%;
  height: 52%;
  border: 2px solid #9e372f;
  border-radius: 38%;
  box-shadow: 0 5px 0 #8e342a;
  background: #d65142;
}
.emergency-plate .contact-mark {
  color: #726023;
  font-size: 5.5px;
}
.selector-control {
  background: #203b4b;
  border-color: #b8c9d1;
}
.selector-lever {
  display: block;
  width: 8px;
  height: 90%;
  background: #d3dfe4;
  transform: rotate(-40deg);
  border: 1px solid #9db1bc;
  border-radius: 3px;
}
.is-active .selector-lever {
  transform: rotate(40deg);
}
.breaker-case {
  height: 100%;
  background: #f3f1e7;
  border: 1px solid #acb6b1;
  border-radius: 4px;
  box-shadow: 3px 5px 0 #c9d0ca;
  position: relative;
  padding: 13% 13% 12%;
}
.breaker-terminal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12%;
  font: 11px var(--mono);
  letter-spacing: 20px;
  text-align: center;
  color: #708079;
  overflow: hidden;
  background: #d0d8d2;
}
.breaker-terminal.bottom {
  top: auto;
  bottom: 0;
}
.breaker-spec {
  font: 9px var(--mono);
  font-weight: 700;
  border-bottom: 1px solid #ccd2c7;
  padding: 5px 0;
  white-space: nowrap;
}
.breaker-spec span {
  font-size: 7px;
  color: #7d8d80;
  float: right;
}
.breaker-lever {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 36%;
  min-height: 0;
  background: #344c58 !important;
  border: 0;
  border-radius: 2px;
  box-shadow: 0 2px 0 #172e3d;
  margin: 9% 0;
}
.breaker-lever span {
  height: 8px;
  width: 90%;
  background: #748894;
  position: absolute;
  top: 3px;
  border-radius: 2px;
}
.breaker-lever b {
  font: 8px var(--mono);
  color: #eef5f2;
  margin-top: 7px;
}
.is-active .breaker-lever span {
  top: auto;
  bottom: 3px;
}
.is-active .breaker-lever b {
  margin-top: 0;
  margin-bottom: 7px;
}
.breaker-trip-indicator {
  height: 4px;
  width: 9px;
  background: #acb9b0;
  position: absolute;
  top: 31%;
  right: 13%;
}
.is-tripped .breaker-trip-indicator {
  background: #ef8e25;
}
.trip-control {
  font: 6px var(--mono);
  padding: 0;
  min-height: 12px;
  position: absolute;
  bottom: 15%;
  left: 13%;
  right: 13%;
  width: 74%;
  border: 1px solid #9faca2;
  border-radius: 2px;
  background: transparent;
}
.pilot-plate {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: #e1e9ec;
  border: 1px solid #aabdc5;
  border-radius: 6px;
  box-shadow: 0 3px 0 #b2c4cc;
}
.pilot-lens {
  width: 53%;
  aspect-ratio: 1;
  border: 4px solid #f4f7f8;
  box-shadow: 0 0 0 2px #8ea4ad;
  border-radius: 50%;
  background: #728c84;
}
.is-active .pilot-lens {
  background: var(--component-color);
  box-shadow:
    0 0 0 2px #8ea4ad,
    0 0 25px var(--component-color);
}
.pilot-state {
  font: 7px var(--mono);
  color: #718993;
}
.scene-rotor {
  transform-box: fill-box;
  transform-origin: center;
}
.belt-frame {
  width: 100%;
  height: 100%;
  position: relative;
  background: #6d8997;
  border: 2px solid #516e7d;
  border-radius: 9px;
  box-shadow:
    0 5px 0 #405f6f,
    0 12px 12px #4c6f7c16;
}
.belt-surface {
  position: absolute;
  inset: 9% 3%;
  overflow: hidden;
  background: #3c5460;
  border: 2px solid #abc0c9;
  border-radius: 30px;
}
.belt-treads {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    #5c7480 0 18px,
    #344c58 18px 20px,
    #8da0aa 20px 22px,
    #344c58 22px 24px
  );
}
.is-active .belt-treads {
  animation: scene-belt var(--belt-duration, 0.25s) linear infinite;
  animation-direction: var(--belt-direction, normal);
}
@keyframes scene-belt {
  to {
    background-position: 24px 0;
  }
}
.belt-arrow {
  position: absolute;
  right: 14%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 36px;
  color: #c8dfdf60;
}
.belt-roller {
  position: absolute;
  width: 2.5%;
  height: 90%;
  background: #9fb3bd;
  border: 1px solid #556f7c;
  border-radius: 5px;
  top: 5%;
}
.belt-roller.left {
  left: 1%;
}
.belt-roller.right {
  right: 1%;
}
.belt-leg {
  position: absolute;
  top: 100%;
  width: 12px;
  height: 27%;
  background: #90a6b1;
  border: 1px solid #6e8996;
  z-index: -1;
}
.belt-leg.left {
  left: 12%;
}
.belt-leg.right {
  right: 12%;
}
.cargo-box {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--component-color);
  border: 1px solid #9e743f;
  box-shadow:
    3px 5px 0 #8e673c,
    6px 9px 8px #13304433;
  border-radius: 2px;
  overflow: hidden;
}
.cargo-tape {
  position: absolute;
  left: 42%;
  top: 0;
  height: 100%;
  width: 17%;
  background: #e4c68a;
  border-left: 1px solid #b79759;
  border-right: 1px solid #b79759;
}
.cargo-mark {
  position: absolute;
  left: 7%;
  bottom: 12%;
  font: 8px var(--mono);
  color: #674a2b;
}
.scene-object[data-kind="cargo"] .object-caption {
  font-size: 8px;
  bottom: calc(100% + 7px);
}
.scene-object[data-kind="cargo"] .object-signal {
  display: none;
}
.sensor-field {
  position: relative;
  height: 100%;
  width: 100%;
  border: 1px dashed #ccab68;
  background: #ffc8480c;
}
.sensor-beam {
  position: absolute;
  left: 48%;
  width: 4%;
  top: 15%;
  bottom: 6%;
  background: #e3ad4166;
  border-left: 1px dashed #e8b13e;
}
.proximity-head {
  position: absolute;
  top: 0;
  left: 32%;
  width: 36%;
  height: 22%;
  min-height: 30px;
  background: #8b9fac;
  border: 2px solid #4c6473;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 9px var(--mono);
  color: #edf5f7;
  box-shadow: 3px 2px 0 #c1cdd1;
}
.proximity-head:after {
  content: "";
  position: absolute;
  top: 100%;
  width: 70%;
  height: 7px;
  background: #4c6473;
}
.sensor-led {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 4px;
  height: 4px;
  background: #dbc59c;
  border-radius: 50%;
}
.is-active .sensor-led {
  background: #ffb300;
  box-shadow: 0 0 7px #ffd16d;
}
.is-active .sensor-field {
  background: #f8b43124;
  border-color: #e0a01e;
}
.sensor-zone-label {
  position: absolute;
  bottom: 2%;
  left: 0;
  right: 0;
  font: 6px var(--mono);
  letter-spacing: 1px;
  text-align: center;
  color: #b69960;
}
.image-placeholder {
  width: 100%;
  height: 100%;
  border: 2px dashed #9fb5c0;
  background: #e3edf1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #668899;
}
.image-placeholder small {
  font-size: 11px;
  margin-top: 8px;
}
.scene-empty {
  padding: 100px 45px;
  color: #708895;
  text-align: center;
  max-width: 1000px;
}
.scene-empty > span {
  font-size: 50px;
  color: #a4b9c3;
}
.scene-empty h2 {
  color: #355766;
  font-weight: 500;
}
.scene-empty p {
  font-size: 15px;
  line-height: 1.8;
}
.property-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
}
.property-grid input {
  min-width: 0;
}
input[type="color"] {
  padding: 4px;
  height: 36px;
}
.inspector .check-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}
.check-label input {
  min-height: 0;
  accent-color: var(--green);
}
.ladder-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}
.ladder-tools button {
  min-height: 29px;
  font-size: 11px;
  padding: 3px 8px;
}
.ladder-tools span {
  font: 9px var(--mono);
  color: var(--muted);
}
.io-value:disabled {
  opacity: 1;
}
.library-section {
  flex: 1;
  overflow: auto;
}
.sidebar-footer {
  flex-shrink: 0;
}
.scene-object:focus-visible {
  outline: 3px solid #278965;
  outline-offset: 7px;
}
@media (max-width: 1150px) {
  .plant-toolbar {
    gap: 6px;
    padding: 8px;
  }
  .scene-guide {
    padding: 8px;
  }
  .scene-guide #scene-guide-text {
    display: none;
  }
  .plant-toolbar-actions {
    gap: 3px;
  }
  .plant-toolbar-actions > button,
  .plant-toolbar-actions > .button {
    font-size: 10px;
  }
  .scene-status {
    gap: 8px;
    padding: 7px;
    font-size: 8px;
  }
  .plant-library-item {
    font-size: 10px;
    gap: 6px;
  }
  .component-icon {
    width: 28px;
    height: 29px;
    font-size: 15px;
  }
}
@media (max-width: 900px) {
  .scene-layers {
    border-left: 1px solid var(--line);
    max-height: 290px;
    overflow: auto;
  }
  .io-monitor {
    grid-column: 1/-1;
  }
  .plant-toolbar-actions {
    flex-wrap: wrap;
  }
  .scene-guide button {
    font-size: 9px;
  }
  .scene-text {
    font-size: 17px;
  }
}
@media (max-width: 600px) {
  .library-section {
    overflow: visible;
  }
  .library-tabs {
    display: flex !important;
    margin: 0 0 6px;
  }
  .library-tabs button {
    font-size: 11px;
  }
  #component-search {
    display: none;
  }
  #plant-library {
    display: flex;
    gap: 5px;
    overflow: auto;
    padding-bottom: 4px;
  }
  .component-group {
    display: none;
  }
  .plant-library-item {
    min-width: 90px;
    max-width: 100px;
    flex-direction: column;
    font-size: 9px;
    gap: 4px;
    padding: 5px;
    border-color: var(--line);
    text-align: center;
  }
  .plant-library-item small,
  .drag-grip {
    display: none;
  }
  .component-icon {
    width: 28px;
    height: 26px;
    font-size: 15px;
  }
  .plant-toolbar {
    padding: 7px;
    gap: 5px;
  }
  .plant-toolbar-actions {
    gap: 3px;
    margin-left: auto;
  }
  .plant-toolbar-actions label {
    font-size: 9px;
  }
  .plant-toolbar-actions button {
    font-size: 9px;
    padding: 4px 6px;
  }
  .zoom-controls {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
  .editor-modes button {
    font-size: 10px;
  }
  .scene-guide {
    min-height: 45px;
    gap: 4px;
  }
  .scene-guide strong {
    font-size: 8px;
  }
  .scene-guide button {
    font-size: 8px;
    white-space: normal;
    max-width: 115px;
    text-align: right;
  }
  .scene-status label {
    font-size: 8px;
  }
  .scene-status {
    flex-wrap: wrap;
    gap: 7px;
  }
  .scene-status #scene-time {
    margin-left: 0;
  }
  .plant-viewport {
    min-height: 300px;
  }
  .workspace-content {
    max-height: none;
    min-height: 450px;
  }
  .workspace-content[data-view="split"] .plant-viewport {
    min-height: 280px;
  }
  .workspace-content[data-view="split"] .ladder-sheet {
    max-height: 320px;
  }
  .scene-layers {
    border-left: 0;
    max-height: 280px;
  }
  .scene-text {
    font-size: 17px;
  }
  .ladder-tools > button:last-child {
    font-size: 10px;
  }
  .canvas-toolbar .ladder-tools {
    gap: 3px;
  }
  .plant-pane {
    min-height: 450px;
  }
}
.process-connections {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.process-pipe-border,
.process-pipe-flow {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.process-pipe-border {
  stroke: #77909c;
  stroke-width: 13;
}
.process-pipe-flow {
  stroke: #bccdd3;
  stroke-width: 7;
}
.process-pipe-flow.flowing {
  stroke: #409ab4;
  stroke-dasharray: 14 7;
  animation: process-flow 1s linear infinite;
}
@keyframes process-flow {
  to {
    stroke-dashoffset: -42;
  }
}
.pipe-shell {
  fill: none;
  stroke: #728c98;
  stroke-width: 14;
  stroke-linejoin: round;
}
.pipe-fluid {
  fill: none;
  stroke: #c1d1d7;
  stroke-width: 8;
  stroke-linejoin: round;
}
.has-flow .pipe-fluid {
  stroke: #3899b8;
  stroke-dasharray: 10 4;
  animation: process-flow 1s linear infinite;
}
.is-active .valve-status {
  fill: #58d99b;
}
.tank-vessel {
  position: absolute;
  inset: 5% 8% 5%;
  border: 5px solid #7e99a7;
  border-radius: 18% 18% 12% 12% / 8% 8% 5% 5%;
  background: linear-gradient(90deg, #bccdd488, #f8fcfeaa 35%, #97b2be88);
  box-shadow: 7px 5px 0 #5b7c8b33;
  overflow: hidden;
}
.tank-rim {
  position: absolute;
  top: 0;
  height: 6%;
  width: 100%;
  border-bottom: 3px solid #8ca6b3;
  border-radius: 50%;
  background: #d7e3e9;
  z-index: 4;
}
.tank-liquid {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 25%;
  background: linear-gradient(90deg, #3b98b2bb, #65bfd6cc, #3d9fbccc);
  transition: height 0.12s linear;
  border-top: 2px solid #c5f4ff;
}
.liquid-surface {
  display: block;
  width: 100%;
  height: 10px;
  border-radius: 50%;
  background: #c1f0ff66;
}
.tank-shine {
  position: absolute;
  inset: 4% 17% 5% 13%;
  border-left: 10px solid #ffffff4a;
  border-radius: 12px;
  pointer-events: none;
}
.tank-scale {
  position: absolute;
  right: 8%;
  top: 10%;
  bottom: 8%;
  font: 9px var(--mono);
  line-height: 5.2;
  color: #466573;
}
.tank-reading {
  position: absolute;
  top: 46%;
  left: 12%;
  font: 600 17px var(--mono);
  color: #204e64;
  background: #effaffb3;
  border: 1px solid #9fc3d0;
  padding: 6px;
  border-radius: 3px;
}
.level-probe {
  position: absolute;
  left: 0;
  background: #46667b;
  border: 1px solid #28495d;
  width: 16px;
  height: 13px;
  color: #fff;
  font: 9px var(--mono);
  text-align: center;
}
.elevator-shaft {
  height: 100%;
  width: 100%;
  border: 7px solid #7f9baa;
  border-bottom-width: 15px;
  background: repeating-linear-gradient(
    0deg,
    #e5edf0 0 35px,
    #d5e1e6 35px 36px
  );
  position: relative;
  box-shadow: 8px 4px 0 #3e647733;
}
.lift-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 8px;
  background: #9bb2bd;
  border-left: 2px solid #537487;
}
.lift-rail.left {
  left: 10%;
}
.lift-rail.right {
  right: 10%;
}
.lift-floor {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  border-top: 2px dashed #9cb0bb;
}
.lift-floor b {
  position: absolute;
  left: 104%;
  top: -10px;
  background: #fff;
  border: 1px solid #8ba7b3;
  border-radius: 3px;
  font: 12px var(--mono);
  padding: 5px;
}
.lift-car {
  position: absolute;
  width: 70%;
  height: 24%;
  left: 15%;
  bottom: calc(3% + var(--travel-position, 0) * 69%);
  border: 5px solid #4c7288;
  background: #d4e4eb;
  box-shadow: 0 4px 0 #2b5068;
  display: flex;
}
.lift-door {
  width: 50%;
  height: 100%;
  border: 1px solid #afc6d1;
  background: linear-gradient(90deg, #b1c7d2, #e6f0f4, #a4bdc9);
}
.lift-position {
  position: absolute;
  bottom: 103%;
  left: 32%;
  background: #223d4e;
  color: #b8f0cd;
  font: 11px var(--mono);
  padding: 3px 7px;
}
.lift-cable {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 49%;
  width: 2px;
  background: #527386;
}
.actuator-fault {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font: 9px var(--mono);
  background: #f7e0dc;
  color: #a73324;
  text-align: center;
}
.actuator-fault:empty {
  display: none;
}
.cylinder-frame {
  width: 100%;
  height: 100%;
  position: relative;
}
.cylinder-body {
  position: absolute;
  top: 15%;
  left: 0;
  width: 49%;
  height: 66%;
  background: linear-gradient(#dae7ed, #95b5c4, #e3eef3);
  border: 3px solid #628799;
  border-radius: 5px;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #4a7488;
  font: 15px var(--mono);
}
.cylinder-rod {
  position: absolute;
  top: 38%;
  left: 42%;
  height: 17%;
  width: calc(12% + var(--travel-position, 0) * 37%);
  background: linear-gradient(#7d9caa, #f7fcff, #92acb8);
  border: 1px solid #6c8798;
}
.cylinder-end {
  position: absolute;
  left: calc(50% + var(--travel-position, 0) * 37%);
  top: 22%;
  width: 6%;
  height: 48%;
  background: #7c9ba9;
  border: 2px solid #426b80;
}
.limit-switch {
  position: absolute;
  bottom: 0;
  font: 9px var(--mono);
  color: #486e80;
}
.limit-switch.low {
  left: 5%;
}
.limit-switch.high {
  right: 5%;
}
.scene-object.object-hidden {
  opacity: 0.2;
}
#plant-stage[data-mode="operate"] .scene-object.object-hidden {
  visibility: hidden;
}
.internal-properties h3 {
  font-size: 12px;
  color: #406b60;
  margin: 22px 0 14px;
}
.internal-properties .hint {
  font-size: 11px;
}
.scene-object[data-kind="pipe"] .scene-graphic svg {
  overflow: visible;
}
.property-dialog {
  width: min(640px, 94vw);
}
.property-dialog #inspector-content {
  padding: 0;
}
.property-dialog #inspector-content form {
  display: block;
}
.property-dialog .property-grid {
  grid-template-columns: repeat(3, 1fr);
}
.property-dialog label {
  font-size: 12px;
}
.property-dialog .full-width {
  width: 100%;
}
.property-dialog .button-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.property-dialog .button-row button {
  flex: 1;
}
