.plant-view {
  --plant-line: rgba(119, 197, 225, .24);
  --plant-fg: #e5f2fa;
  --plant-muted: #a5bdcd;
  --plant-cyan: #67e2f3;
  min-width: 0;
  color: var(--plant-fg);
  font: 400 14px/1.5 Inter, "Segoe UI", Arial, sans-serif;
}
.plant-view * { box-sizing: border-box; }
.plant-view .plant-controls, .plant-view .plant-stage-tools, .plant-view .plant-selection {
  display: flex;
  align-items: end;
  gap: .65rem;
  flex-wrap: wrap;
}
.plant-view .plant-controls { margin: 0 0 .6rem; }
.plant-view .plant-field {
  flex: 1 1 12rem;
  display: grid;
  gap: .2rem;
  max-width: 100%;
  min-width: 0;
}
.plant-view .plant-field > span { font-size: .76rem; font-weight: 650; color: var(--plant-muted); }
.plant-view button, .plant-view input, .plant-view select {
  min-height: 40px;
  min-width: 0;
  max-width: 100%;
  padding: .38rem .7rem;
  background: #0c2335;
  border: 1px solid var(--plant-line);
  color: var(--plant-fg);
  border-radius: 8px;
  font: inherit;
}
.plant-view button { cursor: pointer; }
.plant-view button:hover { background: #113046; border-color: var(--plant-cyan); }
.plant-view :focus-visible { outline: 2px solid var(--plant-cyan); outline-offset: 2px; }
.plant-view input::placeholder { color: var(--plant-muted); }
.plant-view .plant-stage-tools { align-items: center; justify-content: end; margin: .3rem 0 .55rem; }
.plant-view .plant-stage-tools button { min-width: 42px; min-height: 40px; }
.plant-view .plant-stage-tools .plant-field {
  display: flex; align-items: center; flex: auto; min-width: 120px;
}
.plant-view .plant-stage-tools select { max-width: min(11rem, 100%); }
.plant-view .plant-frame { width: 100%; min-width: 0; }
.plant-view .plant-stage {
  position: relative;
  height: clamp(300px, 54vh, 650px);
  min-height: 0;
  width: 100%;
  border: 1px solid var(--plant-line);
  border-radius: 14px;
  overflow: hidden;
  background: #0b1925;
}
.plant-view .plant-stage[data-mode="2d"] { overflow: auto; overscroll-behavior: contain; background: #091724; }
.plant-view .plant-canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.plant-view .plant-canvas:active { cursor: grabbing; }
.plant-view .plant-stage > svg { display: block; height: auto; max-width: none; margin: 0 auto; }
.plant-view .sector { fill: #12283a; stroke: #355166; }
.plant-view .sector-title { fill: #c0d8e5; font-size: 17px; }
.plant-view .asset, .plant-view .device, .plant-view .edge { cursor: pointer; }
.plant-view .asset > .focus-outline { fill: transparent; stroke: transparent; stroke-width: 3px; }
.plant-view .asset > text { fill: #deeef7; }
.plant-view .asset > text:nth-last-of-type(2) { fill: #284354; }
.plant-view .asset.is-related > .focus-outline { stroke: #6c91a9; }
.plant-view .asset.is-selected > .focus-outline, .plant-view .asset:focus > .focus-outline,
.plant-view .asset:hover > .focus-outline { fill: #1c394b; stroke: var(--plant-cyan); stroke-width: 5px; }
.plant-view .edge { display: none; }
.plant-view .edge.is-visible { display: inline; }
.plant-view .edge .edge-underlay polyline { stroke: #071827; }
.plant-view .edge .edge-ink polyline { stroke: #ffab60; stroke-width: 4px; }
.plant-view .edge .edge-ink polygon { fill: #ffab60; stroke: #ffab60; }
.plant-view .edge.is-incoming .edge-ink polyline, .plant-view .edge.is-incoming .edge-ink polygon { stroke: #59b9ff; }
.plant-view .edge.is-incoming .edge-ink polygon { fill: #59b9ff; }
.plant-view .edge.is-route .edge-ink polyline, .plant-view .edge.is-route .edge-ink polygon { stroke: #55e6d3; }
.plant-view .edge.is-route .edge-ink polygon { fill: #55e6d3; }
.plant-view .plant-status, .plant-view .plant-note { margin: .55rem 0; color: var(--plant-muted); font-size: .8rem; }
.plant-view .plant-selection { align-items: center; padding: .65rem 0 .2rem; gap: .35rem .55rem; }
.plant-view .plant-selection > strong { color: #fff; font-size: 1rem; }
.plant-view .plant-selection > span { flex: 1 1 100%; color: var(--plant-muted); font-size: .8rem; }
.plant-view .plant-selection .plant-field-note { border-left: 2px solid #e2b761; padding-left: .55rem; color: #d5c8ab; }
.plant-view .plant-selection .plant-tag { min-height: 35px; padding: .25rem .6rem; font-size: .8rem; }
.plant-view .plant-demo-stage {
  position: relative; display: grid; place-items: center; min-height: 300px;
  border: 1px solid var(--plant-line); border-radius: 14px;
  background: radial-gradient(ellipse at 50% 68%, #244057, #102536 42%, #0a1927 76%);
}
.plant-view .plant-stage-label {
  position: absolute; top: .8rem; left: 1rem; color: var(--plant-muted); font-size: .75rem;
}
.plant-view button.plant-demo-sample {
  display: grid; justify-items: center; gap: .2rem; margin: 1.6rem 1rem 1rem; padding: .6rem 1rem;
  background: transparent; border-color: transparent;
}
.plant-view button.plant-demo-sample:focus-visible, .plant-view button.plant-demo-sample:hover,
.plant-view button.plant-demo-sample[aria-pressed="true"] { border-color: var(--plant-cyan); }
.plant-view .plant-demo-sample img, .plant-view .plant-demo-sample svg {
  width: auto; height: clamp(150px, 23vh, 230px); max-width: 100%; object-fit: contain; color: #79dcf2;
}
.plant-view .plant-demo-sample > span { font-weight: 700; }
.plant-view .plant-demo-sample > small { color: var(--plant-cyan); }
@media (max-width: 650px) {
  .plant-view .plant-field { flex-basis: 100%; }
  .plant-view .plant-stage-tools .plant-field { flex-basis: 100%; }
  .plant-view .plant-stage { height: clamp(285px, 52svh, 480px); }
  .plant-view .plant-stage-tools { justify-content: start; }
  .plant-view button, .plant-view select, .plant-view .plant-stage-tools button,
  .plant-view .plant-selection .plant-tag { min-height: 44px; }
}
