:root {
  --diagram-feed: #2877d4;
  --diagram-permeate: #22977e;
  --diagram-concentrate: #bb7845;
  --diagram-recycle: #7d64b0;
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.process-diagram { padding-block: clamp(38px, 4vw, 64px); background: #eaf3fa; }
.process-diagram > .container { width: min(100% - 40px, 1440px); }
.diagram-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 70px; align-items: end; margin-bottom: 18px; }
.diagram-overline { margin-bottom: 18px; color: var(--blue-dark); font-size: 13px; font-weight: 750; }
.diagram-intro h2 { max-width: 820px; margin: 0; font-size: clamp(34px, 3.5vw, 46px); }
.diagram-intro > p { max-width: 400px; margin: 0 0 5px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.diagram-shell { overflow: hidden; border: 1px solid #c8d9e7; border-radius: 10px; background: #fff; box-shadow: 0 22px 54px rgba(24, 68, 112, .08); }
.diagram-toolbar { display: flex; align-items: stretch; justify-content: space-between; gap: 18px; padding: 0 26px; border-bottom: 1px solid #dce7ef; }
.diagram-tabs { display: flex; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #b1cbe2 transparent; }
.diagram-tab { flex: none; min-height: 70px; padding: 8px 13px 6px; border: 0; border-bottom: 3px solid transparent; color: #53647a; background: transparent; font-size: 14px; font-weight: 680; white-space: nowrap; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.diagram-tab:hover { color: var(--blue-dark); background: #f4f8fc; }
.diagram-tab.is-active { color: var(--navy); border-bottom-color: var(--blue); font-weight: 800; }
.diagram-tab span { display: inline-block; margin-left: 4px; padding: 3px 5px; border: 1px solid #b5c4d2; border-radius: 3px; color: #617489; font-size: 10px; line-height: 1; vertical-align: 1px; }
.diagram-model { display: none; }
.diagram-model span { margin: 0 5px; color: #a6b7c5; }
.diagram-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 380px); align-items: stretch; }
.diagram-drawing { display: flex; flex-direction: column; min-width: 0; background: #fff; }
.diagram-live-stack { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; padding: 17px; border-left: 1px solid #dce7ef; background: #f6f9fc; }
.diagram-drawing-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 23px 28px 10px; }
.diagram-drawing-head strong { color: var(--navy); font-size: 15px; }
.diagram-drawing-head span { color: #6b7e90; font-size: 12px; }
.diagram-svg-wrap { overflow-x: auto; padding: 0 12px; background: #fff; scrollbar-color: #aac4da transparent; }
.diagram-svg { display: block; width: 100%; min-width: 0; height: auto; }
.diagram-svg text { font-family: var(--font-display); user-select: none; }
.diagram-base { fill: none; stroke: #cfdae2; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.diagram-base .diagram-base-optional { stroke-dasharray: 6 8; stroke: #c3d9d3; }
.diagram-flow { opacity: 0; filter: drop-shadow(0 0 0 transparent); transition: opacity .5s ease, filter .4s ease; pointer-events: none; }
.diagram-flow.is-active { opacity: 1; }
.diagram-flow .flow-track, .diagram-flow .flow-motion { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.diagram-flow .flow-track { stroke: currentColor; stroke-width: 6; }
.diagram-flow .flow-motion { stroke: rgba(255,255,255,.88); stroke-width: 2; stroke-dasharray: 2 15; animation: diagram-water 1.25s linear infinite; }
.has-flow-transitions .diagram-flow .flow-track { stroke-dasharray: var(--flow-length) var(--flow-length); stroke-dashoffset: var(--flow-length); transition: stroke-dashoffset .65s cubic-bezier(.22, .7, .2, 1), stroke-width .25s ease; }
.has-flow-transitions .diagram-flow.is-active .flow-track { stroke-dashoffset: 0; }
.diagram-shell.has-flow-focus .diagram-flow.is-active:not(.is-flow-focused) { opacity: .27; }
.diagram-flow.is-active.is-flow-focused { filter: drop-shadow(0 0 5px currentColor); }
.diagram-flow.is-active.is-flow-focused .flow-track { stroke-width: 9; }
.diagram-flow.is-active.is-flow-focused .flow-motion { stroke-width: 2.8; }
.diagram-shell[data-mode="feed-flush"] .diagram-flow .flow-motion,
.diagram-shell[data-mode="permeate-flush"] .diagram-flow .flow-motion { animation-duration: .625s; }
.flow-feed { color: var(--diagram-feed); }
.flow-permeate, .flow-option { color: var(--diagram-permeate); }
.flow-concentrate, .flow-flush { color: var(--diagram-concentrate); }
.flow-recycle { color: var(--diagram-recycle); }
@keyframes diagram-water { to { stroke-dashoffset: -17; } }
.diagram-flow-label { fill: #425c75; font-size: 14px; font-weight: 700; }
.diagram-report-flow { fill: #2676ae; font-size: 12px; font-weight: 800; }
.diagram-option-caption { fill: #5a786f; font-size: 12px; font-weight: 700; }
.diagram-discharge-caption { opacity: .55; }
.diagram-shell[data-mode="permeate-discharge"] .diagram-discharge-caption { opacity: 1; fill: #168065; }
.diagram-ratio-note { margin: 0; color: #5c7082; font-size: 12px; line-height: 1.5; }
.diagram-report-note { margin: 0; padding: 10px 12px; border-left: 3px solid #4893cc; color: #4c6578; background: #f1f7fb; font-size: 12px; line-height: 1.45; }
.diagram-report-note strong { color: #184d78; }
.diagram-shell:not([data-mode="service"]) [data-report-only] { display: none; }
.diagram-context-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 22px; padding: 19px 28px 23px; border-top: 1px solid #dce7ef; }
.diagram-context-notes .controller-preview-note, .diagram-context-notes .capacity-note { max-width: none; margin: 0; color: #687d91; font-size: 11px; line-height: 1.5; }
.controller-preview { width: calc(100% - 56px); max-width: 620px; margin: 0 auto 26px; padding: 22px 22px 17px; border: 1px solid #d8e6ef; border-radius: 10px; background: linear-gradient(155deg, #f8fbfd, #edf4f9); box-shadow: 0 16px 35px rgba(28, 65, 101, .07); }
.diagram-live-stack .controller-preview { width: 100%; max-width: none; margin: 0; padding: 9px; box-shadow: 0 8px 22px rgba(28, 65, 101, .06); }
.diagram-live-stack .controller-preview-head { margin-bottom: 8px; }
.diagram-live-stack .controller-face { width: min(100%, 310px); padding: 7px; }
.controller-preview-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.controller-preview-head > div > span { color: #567d9b; font-size: 11px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.controller-preview-head h3 { margin: 3px 0 0; color: var(--navy); font-size: 21px; line-height: 1.1; }
.controller-preview-sync { display: inline-flex; align-items: center; gap: 6px; color: #397265; font-size: 11px; font-weight: 700; white-space: nowrap; }
.controller-preview-sync i { width: 6px; height: 6px; border-radius: 50%; background: #38ae80; box-shadow: 0 0 0 3px #dbf3e9; }
.controller-face { width: min(100%, 486px); margin: 0 auto; padding: 14px; border: 1px solid #415269; border-radius: 11px; background: #1b293e; box-shadow: inset 0 2px 3px rgba(255,255,255,.12), 0 14px 26px rgba(17, 37, 64, .25); }
.controller-bezel { position: relative; z-index: 1; padding: 8px; border: 3px solid #415169; border-radius: 5px; background: #0d1725; box-shadow: 0 1px 0 rgba(255,255,255,.15), inset 0 0 0 2px #0a1220; }
.controller-lcd { position: relative; overflow: hidden; aspect-ratio: 1.62; border: 1px solid #3d8be5; border-radius: 2px; color: #b5e7ec; background: radial-gradient(ellipse at 50% 40%, #126ae7 0%, #0751c3 52%, #063ca7 100%); box-shadow: inset 0 0 22px rgba(1, 25, 101, .7), 0 0 8px rgba(44, 124, 245, .5); font-family: var(--font-display); text-shadow: 0 0 4px rgba(180, 239, 252, .35); }
.controller-lcd::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12; background: repeating-linear-gradient(0deg, transparent 0 3px, #021f6c 3px 4px); }
.controller-lcd [hidden] { display: none !important; }
.controller-lcd-sensors { position: absolute; top: 7%; left: 7%; right: 7%; display: flex; align-items: start; justify-content: space-between; gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(9px, 1.1vw, 13px); font-weight: 750; line-height: 1.28; white-space: nowrap; }
.controller-lcd-drop { display: inline-block; width: 7px; height: 8px; margin-right: 1px; border: 1px solid currentColor; border-radius: 0 55% 55% 55%; transform: rotate(45deg); }
.controller-lcd-thermo { position: relative; display: inline-block; width: 4px; height: 9px; margin: 0 2px 0 1px; border: 1px solid currentColor; border-radius: 3px; }
.controller-lcd-thermo::after { content: ""; position: absolute; left: -2px; bottom: -3px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.controller-lcd-sensors > span:last-child { text-align: right; }
.controller-lcd-arrows { --arrow-cycle: 1.15s; --arrow-step: .14s; display: inline-flex; align-items: center; gap: clamp(3px, .55vw, 7px); padding-top: 4px; color: #b8e36c; font-size: clamp(7px, 1vw, 11px); white-space: nowrap; }
.controller-lcd-arrows span { display: inline-block; opacity: .28; transform: translateX(-3px); }
.controller-lcd[data-flow="moving"] .controller-lcd-arrows span { animation: controller-water-arrow var(--arrow-cycle) linear infinite; }
.controller-lcd-arrows span:nth-child(2) { animation-delay: var(--arrow-step); }
.controller-lcd-arrows span:nth-child(3) { animation-delay: calc(var(--arrow-step) * 2); }
.controller-lcd-arrows span:nth-child(4) { animation-delay: calc(var(--arrow-step) * 3); }
.controller-lcd-arrows span:nth-child(5) { animation-delay: calc(var(--arrow-step) * 4); }
.controller-lcd[data-screen="feed-flush"] .controller-lcd-arrows,
.controller-lcd[data-screen="permeate-flush"] .controller-lcd-arrows { --arrow-cycle: .6s; --arrow-step: .07s; }
@keyframes controller-water-arrow {
  0%, 100% { opacity: .25; transform: translateX(-3px); }
  27%, 45% { opacity: 1; transform: translateX(0); }
  70% { opacity: .25; transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .controller-lcd[data-flow="moving"] .controller-lcd-arrows span { animation: none; opacity: 1; transform: none; }
}
.controller-lcd-logo { position: absolute; top: 39%; left: 50%; width: 51%; height: auto; transform: translate(-50%, -50%); filter: brightness(0) invert(92%) sepia(18%) saturate(630%) hue-rotate(127deg); }
.controller-lcd-mode { position: absolute; top: 52%; left: 0; right: 0; display: block; color: #d2e9f4; font-size: clamp(14px, 1.65vw, 21px); font-weight: 800; text-align: center; line-height: 1.15; }
.controller-lcd-detail { position: absolute; top: 68%; left: 5%; right: 5%; display: block; font-size: clamp(11px, 1.3vw, 16px); font-weight: 700; text-align: center; line-height: 1.2; }
.controller-lcd-time { position: absolute; bottom: 7%; left: 0; right: 0; display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: .06em; text-align: center; line-height: 1; font-variant-numeric: tabular-nums; }
.controller-lcd-support { position: absolute; top: 8%; left: 9%; right: 9%; margin: 0; font-size: clamp(10px, 1.25vw, 15px); font-weight: 700; line-height: 1.16; text-align: center; }
.controller-lcd[data-screen="service"] .controller-lcd-time { bottom: 4%; font-size: clamp(17px, 2vw, 25px); }
.controller-lcd[data-screen="stop"] .controller-lcd-logo { display: none; }
.controller-lcd[data-screen="stop"] .controller-lcd-mode { top: 31%; padding: 4px 0; background: #143884; }
.controller-lcd[data-screen="stop"] .controller-lcd-detail { top: 49%; max-width: 75%; margin: 0 auto; font-size: clamp(16px, 2vw, 22px); }
.controller-lcd[data-screen="fault"] .controller-lcd-logo { top: 45%; }
.controller-lcd[data-screen="fault"] .controller-lcd-mode { top: 67%; padding: 3px 0; color: #f8e6d6; background: #d94d38; }
.controller-lcd[data-screen="fault"] .controller-lcd-detail { top: 83%; }
.controller-preview-note { max-width: 500px; margin: 15px auto 0; color: #71869a; font-size: 11px; line-height: 1.4; text-align: center; }
.rodms-quicklook { min-width: 0; padding: 12px 15px; border: 1px solid #d9e5e2; border-radius: 9px; color: #273b49; background: #fff; box-shadow: 0 8px 22px rgba(28, 65, 101, .06); font-family: var(--font-sans); }
.rodms-quicklook-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rodms-quicklook-head h3 { margin: 0; color: #1d3447; font-size: 14px; line-height: 1.15; }
.rodms-quicklook-head h3 span { color: #4d8776; font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.rodms-quicklook-online { display: inline-flex; align-items: center; gap: 5px; flex: none; color: #28765e; font-size: 10px; font-weight: 700; }
.rodms-quicklook-online i { width: 6px; height: 6px; border-radius: 50%; background: #42a67e; }
.rodms-quicklook-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; align-items: stretch; margin-top: 8px; }
.rodms-quicklook-state { min-width: 0; padding: 8px 10px; border-radius: 6px; background: #eaf6ef; }
.rodms-quicklook-state > span { display: block; margin-bottom: 3px; color: #647e74; font-size: 10px; }
.rodms-quicklook-state strong { display: flex; align-items: center; gap: 8px; color: #24775e; font-size: 16px; line-height: 1.2; }
.rodms-quicklook-state strong::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rodms-quicklook.is-process .rodms-quicklook-state { background: #e9f2fb; }
.rodms-quicklook.is-process .rodms-quicklook-state strong { color: #2b6093; }
.rodms-quicklook.is-idle .rodms-quicklook-state { background: #edf1f4; }
.rodms-quicklook.is-idle .rodms-quicklook-state strong { color: #627182; }
.rodms-quicklook.is-alert .rodms-quicklook-state { background: #fbede9; }
.rodms-quicklook.is-alert .rodms-quicklook-state strong { color: #ad503f; }
.rodms-quicklook.is-changing .rodms-quicklook-state strong::before { animation: quicklook-dot .7s ease-out; }
@keyframes quicklook-dot { 35% { transform: scale(1.7); } }
.rodms-quicklook-values { min-width: 0; margin: 0; }
.rodms-quicklook-values > div { min-width: 0; padding: 5px 0; }
.rodms-quicklook-values dt { color: #71828d; font-size: 10px; line-height: 1.25; }
.rodms-quicklook-values dd { margin: 3px 0 0; color: #263a48; font-size: 13px; font-weight: 740; line-height: 1.2; }
.rodms-quicklook-values small { display: block; margin-top: 3px; color: #8795a0; font-size: 9px; line-height: 1.2; }
.rodms-quicklook > a { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: #1d755e; font-size: 11px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.rodms-quicklook > a:focus-visible { outline: 2px solid #1d755e; outline-offset: 3px; }
.tank-water { fill: #bce9db; opacity: .8; pointer-events: none; transition: y .35s ease, height .35s ease; }
.part-tank .part-hit { fill: #f7fcfa; stroke: #7ba99c; stroke-dasharray: 5 4; }
.part-tank[data-state="unknown"] .tank-water { opacity: .25; }
.tank-title { fill: #375d53; font-size: 13px; font-weight: 760; pointer-events: none; }
.float-stem { fill: none; stroke: #3e7468; stroke-width: 2; }
.float-buoy { fill: #5db29b; stroke: #367563; stroke-width: 1.5; transition: cy .25s ease; }
.part-float[data-state="high"] .float-buoy { cy: -3; }
.part-float[data-state="unknown"] .float-buoy { fill: #aebfcb; }
.diagram-part { cursor: pointer; outline: none; }
.diagram-part .part-hit { fill: #fff; stroke: #8ca3b5; stroke-width: 2; transition: fill .2s ease, stroke .2s ease; }
.diagram-part:hover .part-hit { stroke: var(--blue); fill: #f0f7fd; }
.diagram-part:focus-visible .part-hit, .diagram-part.is-selected .part-hit { stroke: var(--blue-dark); stroke-width: 3; }
.diagram-part[data-state="open"] .part-hit, .diagram-part[data-state="on"] .part-hit, .diagram-part[data-state="active"] .part-hit, .diagram-part[data-state="flow"] .part-hit { fill: #f0f7ff; stroke: var(--blue); }
.diagram-part[data-state="normal"] .part-hit, .diagram-part[data-state="measuring"] .part-hit { fill: #f0f9f5; stroke: #69aa97; }
.diagram-part[data-state="closed"] .part-hit { fill: #f6f8fa; stroke: #a8b9c6; }
.diagram-part[data-state="unknown"] .part-hit { fill: #f8fafb; stroke: #aebfcb; stroke-dasharray: 4 3; }
.diagram-part[data-state="off"] .part-hit, .diagram-part[data-state="idle"] .part-hit { fill: #f6f8fa; stroke: #a8b9c6; }
.diagram-part[data-state="triggered"] .part-hit { fill: #fff2e8; stroke: #c46d3e; }
.diagram-part[data-state="configurable"] .part-hit { fill: #f7f1ff; stroke: var(--diagram-recycle); }
.diagram-part.part-optional .part-hit { stroke-dasharray: 4 3; }
.part-meter[data-state="flow"] .part-hit { fill: #eef9f5; stroke: #5ba98f; }
.diagram-part.is-flow-source .part-hit { stroke: var(--blue-dark); stroke-width: 3; filter: drop-shadow(0 0 5px rgba(40, 119, 212, .45)); }
.node-title { fill: #24415d; font-size: 12px; font-weight: 790; pointer-events: none; }
.node-detail { fill: #587087; font-size: 10.5px; font-weight: 650; pointer-events: none; }
.node-state { fill: #168065; font-size: 12px; font-weight: 760; pointer-events: none; }
.diagram-part[data-state="closed"] .node-state, .diagram-part[data-state="off"] .node-state, .diagram-part[data-state="idle"] .node-state, .diagram-part[data-state="unknown"] .node-state { fill: #73889a; }
.diagram-part[data-state="triggered"] .node-state { fill: #b56736; }
.diagram-part[data-state="configurable"] .node-state { fill: #6d51a0; font-size: 10.5px; }
.valve-symbol, .pump-symbol { fill: none; stroke: #244b77; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.diagram-part[data-state="closed"] .valve-symbol { stroke: #788b9d; }
.valve-closure { display: none; fill: none; stroke: #6d8294; stroke-width: 2.5; stroke-linecap: round; }
.diagram-part[data-state="closed"] .valve-closure { display: block; }
.sensor-symbol { fill: #234d73; font-size: 16px; font-weight: 800; }
.part-code { fill: #465d74; font-size: 13px; font-weight: 750; }
.membrane-symbol { fill: none; stroke: #6d9bbf; stroke-width: 3; }
.diagram-filter rect { fill: #fff; stroke: #7995aa; stroke-width: 2; }
.diagram-filter text { fill: #415d75; font-size: 13px; font-weight: 760; }
.diagram-filter path { fill: none; stroke: #abc3d4; stroke-width: 2; }
.diagram-passive path { fill: #fff; stroke: #7890a3; stroke-width: 1.6; }
.diagram-passive text { fill: #6d8193; font-size: 12px; font-weight: 650; }

.diagram-readout { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; min-width: 0; padding: 24px 28px 27px; border-top: 1px solid #dce7ef; background: #f8fbfd; }
.diagram-readout-story, .diagram-readout-details { min-width: 0; }
.diagram-readout-details > .readout-group:first-child { margin-top: 0; }
.readout-label { margin-bottom: 8px; color: var(--blue-dark); font-size: 12px; font-weight: 760; }
.diagram-readout h3 { margin: 0 0 10px; color: var(--navy); font-size: 28px; line-height: 1.12; }
.readout-summary { margin-bottom: 14px; color: #52657a; font-size: 14px; line-height: 1.5; }
.readout-trigger { margin-bottom: 22px; padding: 11px 13px; border-left: 3px solid var(--blue); color: #40566d; background: #eaf3fa; font-size: 12px; line-height: 1.5; }
.readout-trigger strong { color: var(--navy); }
.diagram-next-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 11px 13px; border: 1px solid #83bba9; border-radius: 4px; color: #166b57; background: #e8f7f2; font: inherit; font-size: 12px; font-weight: 760; text-align: left; cursor: pointer; }
.diagram-next-action:hover { background: #d9f0e8; }
.diagram-next-action:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 2px; }
.diagram-next-action[hidden] { display: none; }
.diagram-timer { margin-top: 3px; padding: 15px 16px 13px; border: 1px solid #b6d5e8; border-radius: 5px; background: #edf6fb; }
.diagram-timer[hidden] { display: none; }
.diagram-timer-top { display: flex; justify-content: space-between; gap: 14px; align-items: end; }
.diagram-timer-top > div:first-child { min-width: 0; }
.diagram-timer-top strong, .diagram-timer-top span { display: block; }
.diagram-timer-step, .diagram-timer-remaining span { margin-bottom: 4px; color: #56748b; font-size: 11px; font-weight: 650; }
.diagram-timer-top > div:first-child strong { color: var(--navy); font-size: 13px; line-height: 1.3; }
.diagram-timer-remaining { flex: none; text-align: right; }
.diagram-timer-remaining strong { color: #176fb7; font-variant-numeric: tabular-nums; font-size: 25px; line-height: 1; }
.diagram-timer-progress { height: 5px; margin-top: 15px; overflow: hidden; border-radius: 3px; background: #cddfea; }
.diagram-timer-progress[hidden], .diagram-auto-stop[hidden] { display: none; }
.diagram-timer-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: #2875b5; }
.diagram-auto-stop { margin-top: 12px; padding: 0; border: 0; color: #286185; background: transparent; font: inherit; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.diagram-auto-stop:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 3px; }
.readout-group { min-width: 0; margin-top: 12px; border: 1px solid #d5e4ed; border-radius: 5px; background: #fff; }
.readout-group summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; color: #36546b; font-size: 12px; font-weight: 760; list-style: none; cursor: pointer; }
.readout-group summary::-webkit-details-marker { display: none; }
.readout-group summary::after { content: "+"; color: #39758f; font-size: 19px; font-weight: 500; line-height: .7; }
.readout-group[open] summary::after { content: "−"; }
.readout-group summary:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: -3px; }
.readout-group .readout-list { margin: 0 14px 12px; }
.readout-list { margin: 0; border-top: 1px solid #dae6ee; }
.readout-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #dae6ee; }
.readout-list dt { flex: 1; color: #243a51; font-size: 12px; font-weight: 760; }
.readout-list dt span { display: block; margin-top: 2px; color: #8191a0; font-size: 11px; font-weight: 500; }
.readout-list dd { max-width: 53%; margin: 0; color: #41617c; font-size: 12px; font-weight: 700; text-align: right; line-height: 1.28; }
.readout-list dd[data-kind="open"], .readout-list dd[data-kind="on"], .readout-list dd[data-kind="flow"] { color: #16785f; }
.readout-list dd[data-kind="high"] { color: #a06023; }
.readout-list dd[data-kind="low"], .readout-list dd[data-kind="filling"], .readout-list dd[data-kind="drawing"] { color: #16785f; }
.readout-list dd[data-kind="triggered"] { color: #aa5b2e; }
.readout-list dd[data-kind="unknown"] { color: #7f8e9b; }
.diagram-inspector { margin-top: 23px; padding: 16px 18px; border: 1px solid #cedfe9; border-radius: 5px; background: #fff; }
.diagram-inspector > span { display: block; margin-bottom: 7px; color: #768da0; font-size: 11px; }
.diagram-inspector strong { display: block; margin-bottom: 6px; color: var(--navy); font-size: 14px; }
.diagram-inspector p { margin: 0; color: #5b6c7d; font-size: 12px; line-height: 1.5; }
.diagram-footnote { margin: 0; padding: 16px 26px; border-top: 1px solid #dce7ef; color: #687d91; background: #f5f9fc; font-size: 12px; line-height: 1.55; }
.diagram-mobile-flow { display: none; }

@media (max-width: 1120px) {
  .process-diagram > .container { width: min(100% - 38px, 1280px); }
  .diagram-toolbar { flex-wrap: wrap; gap: 0; }
  .diagram-model { padding: 0 13px 13px; }
  .diagram-layout { grid-template-columns: 1fr; }
  .diagram-live-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; border-left: 0; border-top: 1px solid #dce7ef; }
  .diagram-readout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diagram-inspector { align-self: start; }
}

@media (max-width: 760px) {
  .process-diagram > .container { width: min(100% - 30px, 1280px); }
  .diagram-intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
  .diagram-intro > p { font-size: 16px; }
  .diagram-toolbar { padding: 0 12px; }
  .diagram-tabs { width: 100%; gap: 0; }
  .diagram-tab { min-height: 57px; padding: 8px 12px 5px; font-size: 13px; }
  .diagram-model { padding: 9px 12px 12px; }
  .diagram-drawing-head { padding: 20px 19px 6px; }
  .diagram-live-stack { grid-template-columns: 1fr; padding: 15px; }
  .diagram-readout { display: block; }
  .diagram-readout-details { margin-top: 22px; }
  .diagram-context-notes { grid-template-columns: 1fr; padding: 18px 20px; }
  .diagram-svg-wrap { display: none; }
  .diagram-mobile-flow { display: block; position: relative; margin: 12px 18px 0; padding: 18px; border: 1px solid #d3e2ec; border-radius: 6px; background: linear-gradient(180deg, #f9fcfe, #f1f7fb); }
  .mobile-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mobile-inputs > div, .mobile-outputs > div { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 42px; padding: 7px; border: 1px solid #d0dce5; border-radius: 4px; color: #8292a1; background: #fff; font-size: 11px; font-weight: 720; text-align: center; line-height: 1.25; }
  .mobile-outputs > div { flex-direction: column; gap: 2px; }
  .diagram-mobile-flow [data-report-only] { color: #2676ae; font-size: 10px; font-weight: 800; }
  .mobile-inputs small { font-size: 9px; }
  .mobile-inputs [data-flow="feed"].is-active { color: #175baf; border-color: #85b8e9; background: #eaf4ff; }
  .mobile-inputs [data-flow="permeate-feed"].is-active { color: #17745f; border-color: #8fcaba; background: #e8f7f2; }
  .mobile-spine { position: absolute; top: 57px; bottom: 121px; left: 50%; width: 2px; background: #9bb4ca; transform: translateX(-50%); }
  .mobile-float { position: relative; display: flex; justify-content: space-between; gap: 8px; width: 100%; margin-top: 10px; padding: 9px 11px; border: 1px solid #b9d8cc; border-radius: 4px; color: #315d50; background: #f1faf6; font: inherit; font-size: 11px; font-weight: 750; text-align: left; cursor: pointer; }
  .mobile-float[data-state="high"] { border-color: #e4c49c; color: #88531d; background: #fff8ed; }
  .mobile-float[data-state="unknown"] { border-color: #d0dce5; color: #8292a1; background: #fff; }
  .mobile-float:focus-visible, .mobile-float.is-selected { outline: 2px solid var(--blue-dark); outline-offset: 2px; }
  .mobile-process { position: relative; display: grid; justify-items: center; gap: 13px; margin: 21px 0; }
  .mobile-process button { min-width: 155px; min-height: 51px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 1px solid #92aac0; border-radius: 5px; color: #274a6b; background: #fff; font-size: 13px; font-weight: 800; }
  .mobile-process button span { color: #73899b; font-size: 10px; font-weight: 550; }
  .mobile-process button[data-state="open"], .mobile-process button[data-state="on"], .mobile-process button[data-state="active"], .mobile-process button[data-state="flow"] { border-color: var(--blue); background: #eaf4ff; }
  .mobile-process button[data-state="closed"], .mobile-process button[data-state="off"], .mobile-process button[data-state="idle"] { border-color: #c8d4dd; color: #728596; background: #f6f8fa; }
  .mobile-process button[data-state="open"] span, .mobile-process button[data-state="on"] span, .mobile-process button[data-state="active"] span, .mobile-process button[data-state="flow"] span { color: #16785f; font-weight: 750; }
  .mobile-process button.is-selected, .mobile-process button:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 2px; }
  .mobile-outputs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mobile-outputs [data-flow="permeate"].is-active { color: #17745f; border-color: #8fcaba; background: #e8f7f2; }
  .mobile-outputs [data-flow="permeate-discharge"].is-active { color: #17745f; border-color: #8fcaba; background: #e8f7f2; }
  .mobile-outputs [data-flow="concentrate"].is-active, .mobile-outputs [data-flow="flush"].is-active { color: #965a2d; border-color: #d4ad89; background: #fff3e9; }
  .mobile-outputs [data-flow="recycle"].is-active { color: #6548a0; border-color: #baa6dd; background: #f5efff; }
  .diagram-mobile-flow [data-flow].is-active.is-flow-focused, .diagram-mobile-flow [data-part].is-flow-source { box-shadow: 0 0 0 2px currentColor, 0 5px 14px rgba(29, 86, 130, .12); }
  .diagram-mobile-flow > p { margin: 14px 0 0; color: #788b9a; font-size: 11px; line-height: 1.4; text-align: center; }
  .diagram-ratio-note { padding: 16px 20px 8px; }
  .diagram-report-note { margin: 0 20px 12px; }
  .diagram-live-stack .controller-preview { padding: 15px 12px 14px; }
  .controller-preview-head { display: block; }
  .controller-preview-head h3 { font-size: 19px; }
  .controller-preview-sync { margin-top: 9px; }
  .controller-face { padding: 9px; }
  .controller-bezel { padding: 5px; border-width: 2px; }
  .controller-lcd-sensors { font-size: 8px; }
  .controller-lcd-arrows { font-size: 6px; gap: 2px; }
  .controller-lcd-mode { font-size: clamp(13px, 4vw, 17px); }
  .controller-lcd-detail { font-size: clamp(9px, 3vw, 13px); }
  .controller-lcd-time { font-size: clamp(23px, 8vw, 32px); }
  .controller-lcd-support { font-size: clamp(9px, 2.5vw, 12px); }
  .diagram-readout { display: block; padding: 25px 20px; }
  .diagram-footnote { padding: 16px 20px; }
}

@media (max-width: 380px) {
  .diagram-mobile-flow { margin-inline: 12px; padding: 12px; }
  .diagram-readout h3 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .diagram-flow { transition: none; }
  .diagram-flow .flow-motion { animation: none; }
  .has-flow-transitions .diagram-flow .flow-track { stroke-dashoffset: 0; transition: none; }
  .rodms-quicklook.is-changing .rodms-quicklook-state strong::before { animation: none; }
}
