/* Shared page chrome stays in styles.css; the process drawing stays scalable. */
[hidden]{display:none!important}
.dashboard-page{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column;border:1px solid #d6e0ec;border-radius:7px;background:#f9fafc;overflow:hidden}
.diagram-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;padding:8px 14px;border-bottom:1px solid #e2e8f0;background:#fff;min-height:56px}
.diagram-legend{display:flex;align-items:center;flex-wrap:wrap;column-gap:20px;row-gap:8px;font-size:12px;color:#62748a}
.diagram-legend>span{display:flex;align-items:center;gap:7px;white-space:nowrap}.legend-line{display:inline-block;width:22px;height:2px;background:#168bd0}.legend-line.branch{background:#42b84d}.legend-line.vacuum{background:#868b90}.readout-legend{font-size:11px;color:#7d8b9e}
.diagram-tools{display:flex;align-items:center;gap:6px;flex-shrink:0}.diagram-tools button{border:1px solid #ced9e7;background:#fff;color:#34567c;min-width:44px;min-height:44px;padding:6px;font-size:20px}.diagram-tools .diagram-fit{font-size:13px;padding:6px 12px;min-width:88px}.diagram-fit[aria-pressed="true"]{background:#eaf1ff;border-color:#8aaee5;color:#1d5cce}.diagram-tools output{min-width:48px;text-align:center;font-size:12px;color:#637992;font-variant-numeric:tabular-nums}
.diagram-scroll{flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-x pan-y;scrollbar-width:thin;scrollbar-color:#b8c8dc #f1f4f8}
.diagram-canvas{width:100%;height:100%;min-width:1440px;min-height:660px}
.diagram-canvas{margin-inline:auto}
#processDiagram{width:100%;height:100%;display:block;overflow:hidden;pointer-events:auto;font-family:"Microsoft YaHei","PingFang SC",sans-serif;color:#4b5763}
#processDiagram text{user-select:none}
#processDiagram .process-pipe{fill:none;stroke:#148bd0;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#processDiagram .process-pipe.branch{stroke:#42ba50}#processDiagram .process-pipe.vacuum{stroke:#858a90}
#processDiagram .channel-pipe.is-selected{stroke:#075bba;stroke-width:3}
#processDiagram .junction{fill:#148bd0}#processDiagram .junction.branch{fill:#42ba50}
#processDiagram .gas-label{font-size:17px;fill:#273e58;font-weight:500}
#processDiagram .equipment-hit{fill:transparent;stroke:transparent;stroke-width:1.5}
#processDiagram [role="button"]{cursor:pointer;outline:none;touch-action:manipulation}
#processDiagram [role="button"]:hover>.equipment-hit,#processDiagram [role="button"]:focus-visible>.equipment-hit{fill:#e6f0ff;fill-opacity:.7;stroke:#92b6ea}
#processDiagram .inlet-selection{fill:#b5c1ce;opacity:0}#processDiagram .channel-label.is-selected .inlet-selection{fill:#119773;opacity:1}#processDiagram .channel-label.is-selected .gas-label{fill:#0868b8;font-weight:700}
#processDiagram .readout-plate,#processDiagram .source-temperature-plate{fill:url(#readoutPlate);stroke:#b3bcc5;stroke-width:1.1}
#processDiagram .readout-divider{stroke:#d5dce4;stroke-width:.65}#processDiagram .setpoint{fill:#5b626b;font-size:14px;font-variant-numeric:tabular-nums}#processDiagram .feedback{fill:#168ccc;font-size:14px;font-variant-numeric:tabular-nums}
#processDiagram .readout-tag,#processDiagram .readout-unit{font-size:14px;fill:#505c68}#processDiagram .valve-tag{font-size:14px;fill:#60666c}
#processDiagram .instrument-link{stroke:#9ca6b1;stroke-width:1;stroke-dasharray:2 3;fill:none}#processDiagram .bubbler-body{fill:#fff;stroke:#52a2d5;stroke-width:1.5}#processDiagram .vessel-ports{stroke:#a1acb4;stroke-width:7;fill:none}#processDiagram .source-divider{stroke:#bdc7d2;stroke-width:1}#processDiagram .source-tag{font-size:15px}#processDiagram .source-material{font-size:14px}
#processDiagram .cooling-jacket{fill:none;stroke:url(#steelBar);stroke-width:15;stroke-linecap:square}#processDiagram .cooling-crossbar{fill:none;stroke:#9ba3aa;stroke-width:3}#processDiagram .chamber-wall{fill:none;stroke:#8e969d;stroke-width:2.1}#processDiagram .substrate-holder{fill:#d7dadd;stroke:#9199a1;stroke-width:1.3}#processDiagram .substrate-lines{fill:none;stroke:#939ca6;stroke-width:1}#processDiagram .spindle-body{fill:#d7dadd;stroke:#939ba3;stroke-width:1.5}#processDiagram .spindle-shaft{stroke:#959da5;stroke-width:17}#processDiagram .chamber-label{font-size:16px;fill:#454e58}
#processDiagram .pump-housing{fill:#f1f4f7;stroke:#929ba4;stroke-width:2}#processDiagram .process-pump{color:#687580}#processDiagram .pump-tag{font-size:14px;fill:#687580}
.equipment-category{display:block;color:#73849a;font-weight:400;font-size:12px;letter-spacing:1px;margin-bottom:6px}#equipmentTitle{font-size:20px}.equipment-body{padding:20px 24px 26px}.equipment-state{font-size:13px;color:#7b8da4;display:flex;align-items:center;gap:8px;margin:0 0 20px}.equipment-state:before{content:"";width:8px;height:8px;background:#a9b9c9;border-radius:50%}.equipment-body dl{display:grid;grid-template-columns:1fr 1fr;margin:0;align-items:center;gap:0}.equipment-body dt,.equipment-body dd{margin:0;padding:16px 0;border-top:1px solid #e2e8f0;font-size:16px}.equipment-body dt{color:#6f8196}.equipment-body dd{text-align:right;color:#294b71;font-variant-numeric:tabular-nums}.gas-row.is-located{box-shadow:inset 0 0 0 2px #6399e4;background:#eaf2ff;outline-offset:-2px}
body[data-page="dashboard"] .page-head{margin-bottom:12px}body[data-page="dashboard"] .title p{letter-spacing:2.5px}
@media(min-width:1401px){
 body[data-page="dashboard"] main{position:relative;padding:12px 22px 10px}
 body[data-page="dashboard"] .page-head{position:absolute;right:38px;top:24px;z-index:2;min-height:0;margin:0}
 body[data-page="dashboard"] .page-head>div:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 body[data-page="dashboard"] .head-tools .time{font-size:12px}
 body[data-page="dashboard"] .dashboard-page{position:relative}
 body[data-page="dashboard"] .diagram-toolbar{position:absolute;top:82px;right:16px;z-index:1;flex-direction:column-reverse;align-items:flex-end;gap:14px;min-height:0;border:0;background:transparent;padding:0}
 body[data-page="dashboard"] .diagram-legend{max-width:370px;justify-content:flex-end;column-gap:14px}
 body[data-page="dashboard"] .readout-legend{flex-basis:100%;justify-content:flex-end}
}
@media(min-width:1650px){.diagram-toolbar{padding:8px 18px}.diagram-legend{font-size:13px}.readout-legend{font-size:12px}}
@media(max-width:1400px){.readout-legend{display:none}.diagram-toolbar{gap:8px;padding:6px 10px}.diagram-legend{column-gap:12px;font-size:11px}.diagram-tools{gap:4px}.diagram-tools button{min-width:44px}.diagram-tools .diagram-fit{min-width:78px;font-size:12px}}
@media(max-width:999px){body[data-page="dashboard"]{height:100dvh;display:grid;grid-template-rows:var(--top) minmax(0,1fr) var(--bottom);overflow:hidden}body[data-page="dashboard"] .top{position:static}body[data-page="dashboard"] .layout{min-height:0}body[data-page="dashboard"] main{min-height:0;overflow:hidden;padding-top:12px}body[data-page="dashboard"] .bottom{position:static}body[data-page="dashboard"] .page-head{flex-shrink:0}body[data-page="dashboard"] .dashboard-page{min-height:0}body[data-page="dashboard"] .page-status{flex-shrink:0}}
@media(max-width:700px){.diagram-toolbar{align-items:center}.diagram-legend{column-gap:8px;row-gap:5px;font-size:10px}.legend-line{width:13px}.diagram-tools .diagram-fit{min-width:60px;padding:6px;font-size:11px}.diagram-tools output{min-width:36px}.diagram-tools button{min-width:40px;min-height:44px}.diagram-tools{gap:2px}body[data-page="dashboard"] .page-head h2{font-size:21px}}

/* Latest reference keeps the diagram on a white, uncluttered surface. */
body[data-page="dashboard"] .dashboard-page{background:white;border:0;border-radius:0}
body[data-page="dashboard"] .page-head{top:8px;right:26px}
body[data-page="dashboard"] .diagram-toolbar{top:58px;right:10px;gap:6px}
body[data-page="dashboard"] .diagram-legend{display:none}

#processDiagram [role="button"]:hover>.equipment-hit,#processDiagram [role="button"]:focus-visible>.equipment-hit{fill:#dcecff;fill-opacity:.35;stroke:#5795d5}
#processDiagram [data-equipment]:not([role="button"]){cursor:default}

.diagram-reference-note{font-size:11px;color:#73849a;white-space:nowrap}
@media(max-width:700px){.diagram-reference-note{display:none}}
