#ground-studio { min-width:0; }
.ground-heading,.ground-section-title,.ground-stage-head,.ground-transport,.ground-deploy,.ground-compare-controls {
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.ground-heading {margin:0 0 22px;align-items:flex-end;}
.ground-heading h1 {font-size:clamp(28px,3.5vw,42px);letter-spacing:-.04em;line-height:1.05;margin:10px 0;}
.ground-heading p,.ground-deploy p {margin:.5em 0;color:#a9bbc8;line-height:1.6;max-width:72ch;}
.ground-file-actions,.ground-pills,.ground-key {display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
.ground-file-actions button,.ground-pills button,.ground-wire-tools button,.ground-transport button {white-space:nowrap;}
.ground-tabs {margin-bottom:20px;}
.ground-scenario-strip {
  display:grid;grid-template-columns:minmax(150px,1.13fr) minmax(170px,1.6fr) minmax(145px,1fr) 95px;
  gap:22px;align-items:center;padding:16px 20px;background:#13232e;border:1px solid #2c4753;
  border-radius:12px;margin-bottom:18px;
}
.ground-control,.ground-slider {display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;color:#abc0c9;}
.ground-control select,.ground-control input,.ground-slider input {width:100%;min-width:0;}
.ground-control>span,.ground-slider>span {font-size:11px;letter-spacing:.025em;}
.ground-slider>span{display:flex;justify-content:space-between;align-items:center;gap:8px;}
.ground-slider output{color:#cae9df;font-variant-numeric:tabular-nums;}
.ground-slider input {accent-color:#86dbbb;cursor:pointer;}
.ground-field-grid,.ground-low-grid,.ground-analysis-grid {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.40fr);gap:16px;align-items:start;
}
.ground-side,.ground-field-stack,.ground-stack {display:grid;gap:16px;min-width:0;}
.ground-stage {min-width:0;overflow:hidden;border-radius:14px;border:1px solid #36505a;background:#101c25;}
.ground-stage-head {min-height:49px;padding:12px 16px;background:linear-gradient(105deg,#19342e,#10202b);color:#adcebd;font-size:12px;}
.ground-stage-head>div {display:flex;align-items:center;gap:6px;}
.ground-stage-head>span {font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px;}
.ground-led {display:inline-block;background:#95e6c2;width:6px;height:6px;border-radius:50%;margin-right:5px;}
.ground-pitch-wrap {position:relative;overflow:hidden;background:#1f372b;}
.ground-pitch-wrap .pitch-host {width:100%;height:clamp(290px,36vw,560px);min-height:290px;}
.ground-overlay-key {position:absolute;left:12px;top:12px;display:flex;gap:13px;padding:5px 9px;
  background:#0a1724dd;border:1px solid #5b7d7760;border-radius:6px;font-size:10px;pointer-events:none;}
.reference {color:#84c0ff;}.actual {color:#f59a80;}
.ground-transport {justify-content:flex-start;flex-wrap:wrap;padding:12px;gap:7px;}
.ground-transport select {width:59px;}
.ground-transport>span {color:#a8b9c2;font-size:10px;margin-left:auto;}
.ground-metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;}
.ground-metrics>div {padding:13px 10px;min-width:0;background:#142632;border:1px solid #2b4554;border-radius:9px;}
.ground-metrics span {display:block;min-height:17px;color:#9cb8c4;font-size:10px;}
.ground-metrics strong {font-weight:550;font-size:clamp(18px,2.1vw,28px);display:inline-block;margin-top:5px;font-variant-numeric:tabular-nums;}
.ground-metrics small {font-size:10px;color:#9eb6c0;margin-left:3px;}
.ground-card {padding:clamp(14px,1.5vw,22px);min-width:0;}
.ground-card h2,.ground-card h3,.ground-deploy h3 {margin:6px 0 12px;line-height:1.3;}
.ground-card h2 {font-size:18px;letter-spacing:-.02em;}
.ground-card h3,.ground-deploy h3 {font-size:16px;}
.ground-card p {font-size:13px;line-height:1.7;}
.ground-card .ground-guide,.ground-guide,.ground-card small,.ground-deploy small {font-size:11px;line-height:1.7;color:#9fb5c2;}
.ground-tuning .ground-slider,.ground-tuning .ground-control,.ground-network-config .ground-slider {margin:16px 0;}
.ground-tuning .control-types {gap:4px;}
.ground-pills button {font-size:11px;min-height:30px;padding:5px 9px;}
.ground-pills .selected,.ground-pills [aria-pressed=true] {color:#bcf5dd;border-color:#69a894;background:#25483e;}
.ground-section-title {align-items:flex-start;flex-wrap:wrap;margin-bottom:10px;}
.ground-badge {font-size:10px;padding:5px 9px;border-radius:20px;color:#abddc7;background:#1b3933;border:1px solid #436b5f;}
.ground-badge.warm,.ground-alert {color:#f1ce94;background:#302c21;border:1px solid #665439;}
.ground-alert,.ground-empty {padding:24px;border-radius:12px;line-height:1.7;}
.ground-empty {margin:14px 0;background:#101d27;border:1px dashed #355360;color:#a2b8c5;}
.ground-details {border-top:1px solid #304752;margin-top:16px;padding-top:10px;}
.ground-details summary {color:#a5d4c1;font-size:12px;cursor:pointer;padding:3px 0;}
.ground-key {font-size:11px;color:#a5b7c3;margin:10px 0;}
.ground-key i {font-style:normal;}
.ground-verdict {color:#bbddce;padding:9px 12px;border-left:2px solid #7dc4a8;background:#19352a50;}
.ground-verdict small {display:inline-block;margin-left:8px;}
.ground-board-scroll {overflow:auto;background-color:#0c1921;background-image:radial-gradient(#35516588 .8px,transparent .9px);background-size:16px 16px;border:1px solid #2e4857;border-radius:9px;}
#ground-board {display:block;width:100%;min-width:690px;user-select:none;}
.ground-block [data-handle] {cursor:grab;touch-action:none;}
.ground-block [data-handle]:active {cursor:grabbing;}
.ground-block rect {stroke:#5c807e;stroke-width:1.4;fill:#18323a;}
.ground-block.bypassed rect {fill:#162632;stroke:#405666;stroke-dasharray:5 4;}
.ground-block .block-symbol{fill:#95dbbf;font-family:FlowMath,serif;font-size:13px;}
.ground-block .block-title{fill:#e2edf1;font:600 13px system-ui,sans-serif;}
.ground-block .block-hint{fill:#a8c0c8;font:10px system-ui,sans-serif;}
.ground-port {cursor:crosshair;touch-action:none;}
.ground-port .plug {fill:#0e232c;stroke-width:2.5;stroke:#8bbde8;}
.ground-port.out .plug{fill:#8cd4b8;stroke:#bbf0d9;}
.ground-port.armed .plug,.ground-port.accepts .plug,.ground-port:focus .plug{stroke:#f4d18e;fill:#aa8251;}
.ground-wire{cursor:pointer;}
.ground-wire path {fill:none;}
.ground-wire .wire-hit {stroke:transparent;stroke-width:15;pointer-events:stroke;}
.ground-wire .wire-line {stroke:#9cddc5;stroke-width:2;pointer-events:none;}
.ground-wire.sense .wire-line {stroke:#80bce9;stroke-dasharray:5 3;}
.ground-wire.return .wire-line {stroke:#efa78b;}
.ground-wire:hover .wire-line {stroke-width:3.8;}
.ground-wire-tools {display:flex;flex-wrap:wrap;align-items:flex-end;gap:9px;margin-top:14px;}
.ground-wire-tools label {display:flex;flex-direction:column;gap:3px;font-size:10px;color:#abc1ca;}
#ground-wire-status {min-height:19px;color:#a3ccbd;font-size:12px;margin:10px 0 0;}
.ground-low-grid {grid-template-columns:minmax(0,1.4fr) minmax(240px,.65fr);}
.ground-network-config {display:grid;grid-template-columns:minmax(0,1.2fr) minmax(135px,.8fr);gap:16px;align-items:center;}
.ground-network {width:100%;height:auto;min-width:0;}
.ground-network rect {fill:#13291e;stroke:#416050;}
.ground-network .links {stroke:#88baaa;stroke-width:1.5;}
.ground-network [role=button] {cursor:pointer;}
.ground-network circle {fill:#233c4b;stroke:#83c9ee;stroke-width:1.5;}
.ground-network circle.pin {fill:none;stroke:#e6c276;stroke-width:1.5;}
.ground-network .armed circle {stroke:#fff;}
.ground-network text {fill:white;font-size:9px;text-anchor:middle;pointer-events:none;}
.ground-analysis-grid {grid-template-columns:minmax(0,1.5fr) minmax(220px,.77fr);margin-bottom:16px;}
.ground-equation {margin:14px 0;padding:13px 15px;background:#0c1c26;border-left:2px solid #6c9f95;overflow:auto;}
.ground-equation>div {font-family:FlowMath,Georgia,serif;font-size:16px;line-height:1.9;color:#c9e6df;}
.ground-equation small {display:block;margin-bottom:7px;}
.transfer-row {display:flex;align-items:center;gap:12px;white-space:nowrap;}
.fraction {display:inline-flex;flex-direction:column;align-items:stretch;text-align:center;}
.fraction>span:first-child {border-bottom:1px solid #a9c5c0;}
.ground-poleplot{width:100%;max-height:280px;background:#0b1923;border-radius:8px;}
.ground-numbers>div {display:flex;justify-content:space-between;gap:12px;border-top:1px solid #2c424e;padding:8px 0;font-size:12px;}
.ground-numbers dt{color:#a4b9c4;}
.ground-numbers dd {text-align:right;margin:0;}
.ground-deploy {margin-top:22px;border:1px solid #34584a;border-radius:12px;background:linear-gradient(110deg,#162f29,#11222a);padding:18px 22px;}
.ground-deploy .ground-pills {justify-content:flex-end;}
.ground-deploy p {font-size:12px;}
.ground-compare-controls {justify-content:flex-start;align-items:flex-end;}
#ground-studio>.ground-card+.ground-card {margin-top:16px;}
.launch-ground {display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:10px 14px;border:1px solid #355447;color:#b0cabb;background:#14291f80;border-radius:9px;margin:0 0 14px;font-size:12px;}
.launch-ground span {flex:1;min-width:125px;}
@media(max-width:1130px) {
  .ground-field-grid {grid-template-columns:minmax(0,1fr) minmax(205px,.43fr);}
  .ground-scenario-strip {gap:12px;grid-template-columns:1.1fr 1.2fr 1fr 78px;}
  .ground-network-config {grid-template-columns:1fr;}
}
@media(max-width:850px){
  .ground-field-grid,.ground-low-grid,.ground-analysis-grid {grid-template-columns:1fr;}
  .ground-side {grid-template-columns:1fr 1fr;}
  .ground-scenario-strip {grid-template-columns:1fr 1.1fr;}
  .ground-heading,.ground-deploy {align-items:flex-start;flex-direction:column;}
  .ground-pitch-wrap .pitch-host{height:360px;}
}
@media(max-width:540px){
  .ground-scenario-strip {grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:12px;gap:10px;}
  .ground-side {grid-template-columns:1fr;}
  .ground-metrics{grid-template-columns:1fr 1fr;}
  .ground-metrics>div{padding:9px 12px;}
  .ground-transport {gap:5px;}
  .ground-transport button {padding:5px 7px;font-size:11px;}
  .ground-pitch-wrap .pitch-host {height:310px;min-height:310px;}
  .ground-compare-controls {align-items:flex-start;flex-direction:column;}
  .ground-card .chart {height:185px;}
  .ground-stage-head{padding:9px;font-size:11px;gap:5px;}
  .ground-tabs .tab {white-space:nowrap;}
  .ground-deploy{padding:15px;}
}

#ground-cable {pointer-events:none;}

.ground-components{display:flex;flex-wrap:wrap;gap:7px}.ground-components>div{padding:8px 10px;background:#10232c;border:1px solid #2d4653;border-radius:7px;font-size:11px;color:#a8bac5;line-height:1.7}.ground-components b{color:#d2e0e6}
.ground-verdict.warning{background:#352a2055;color:#f1c19a;border-color:#d49873}
.ground-file-actions{justify-content:flex-end;align-items:flex-end}.ground-file-actions .ground-control{max-width:170px}
@media(max-width:700px){.ground-file-actions{justify-content:flex-start}}

@media(max-width:600px){.sidebar{visibility:hidden;pointer-events:none;transition:none}.sidebar.open{visibility:visible;pointer-events:auto}}

.ground-wire.internal{pointer-events:none}.ground-wire.internal .wire-line{stroke-dasharray:2 4;opacity:.72}
