[hidden] { display: none !important }

/* ---------------------------------------------------------------- 3D overlays */
.tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3 }
.tag { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; min-width: 32px; height: 26px; font-size: 13px; padding: 0 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25); will-change: transform }
.tag:hover, .tag.on { background: #14202b; color: #f2bd1d; border-color: #14202b }
.dim { position: absolute; left: 0; top: 0; background: rgba(255, 255, 255, .92); color: #14202b; padding: 1px 7px; border-radius: 4px;
  font: 600 15px/1.3 var(--display); font-variant-numeric: tabular-nums; box-shadow: 0 0 0 1px rgba(20, 32, 43, .25) }
.dim.ang { background: #14202b; color: #fff }
.compassnote { position: absolute; left: 16px; bottom: 14px; z-index: 4; font-size: 13px; color: #33414d; pointer-events: none }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule) }
.top-in { max-width: 1400px; margin: 0 auto; padding: 0 max(3vw, 14px); height: 60px; display: flex; align-items: center; gap: 18px }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px/1 var(--display); flex: none }
.brand svg { width: 36px; height: 26px }
.nav { display: flex; gap: 2px; flex: 1; justify-content: center; white-space: nowrap }
.nav a { flex: none; padding: 9px 11px; border-radius: 8px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted) }
.nav a:hover { color: var(--ink); background: var(--sheet) }
.nav a.on { color: var(--ink); box-shadow: inset 0 -2.5px 0 var(--foam) }
.dl { flex: none }
@media (max-width: 1100px) { .dl { display: none } .nav { justify-content: flex-start } }
@media (max-width: 760px) { .top-in { height: auto; flex-wrap: wrap; padding-block: 8px; gap: 4px } .nav { order: 3; flex-basis: 100%; scrollbar-width: none } .nav::-webkit-scrollbar { display: none } }

/* ---------------------------------------------------------------- hero / 3D stage */
.hero { background: var(--sheet) }
.stage { position: relative; height: clamp(540px, 82vh, 900px); overflow: hidden;
  background: linear-gradient(180deg, #a9cbe4 0%, #d6e6f1 58%, #e9eff2 100%) }
.stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab }
.stage canvas:active { cursor: grabbing }
.intro { position: absolute; z-index: 5; top: clamp(16px, 3vw, 34px); left: max(3vw, 16px); max-width: min(470px, 58vw); pointer-events: none; color: #14202b }
.intro h1 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -.015em }
.intro p { margin-top: 10px; font-size: 16.5px; line-height: 1.5; color: #23323f; max-width: 40ch }
.fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 80px 6vw 40px; mix-blend-mode: multiply }
.loading { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: 6; display: grid; gap: 10px; justify-items: center;
  font: 500 15px var(--text); color: #23323f }
.loading .bar { width: 220px; height: 6px; border-radius: 6px; background: rgba(20, 32, 43, .15); overflow: hidden }
.loading .bar i { display: block; height: 100%; width: 0; background: #14202b; transition: width .2s }
.panel { position: absolute; z-index: 10; top: 16px; right: 16px; width: 318px; max-height: calc(100% - 32px); overflow: auto; overscroll-behavior: contain;
  background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 10px 30px rgba(14, 30, 45, .14); padding: 6px 16px 16px }
.tabs { display: flex; gap: 4px; position: sticky; top: -6px; background: var(--card); padding: 8px 0 8px; z-index: 2; border-bottom: 1px solid var(--rule); margin-bottom: 8px }
.tabs button { flex: 1; min-height: 40px; border: 0; background: none; border-radius: 8px; font: 600 16px var(--display); cursor: pointer; color: var(--muted) }
.tabs button[aria-selected=true] { background: var(--sheet); color: var(--ink); box-shadow: inset 0 -2.5px 0 var(--foam) }
.row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center }
.layers { border: 0; padding: 0; margin: 10px 0 0; border-top: 1px solid var(--rule) }
.layers legend { font: 600 14px var(--display); color: var(--muted); padding: 10px 0 0 }
.read { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 6px }
.read div { background: var(--sheet); border-radius: 8px; padding: 8px 10px }
.read dt { font-size: 13px; color: var(--muted) }
.read dd { margin: 0; font: 600 19px/1.2 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap }
#play { margin-top: 10px; width: 100% }
.partlist { display: grid; gap: 14px }
.partlist h4 { margin: 0 0 4px; font: 600 14px var(--display); color: var(--muted) }
.partlist button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; border: 0; background: none; padding: 4px 6px; border-radius: 8px;
  cursor: pointer; text-align: left; font-size: 15px }
.partlist button:hover, .partlist button[aria-pressed=true] { background: var(--sheet) }
.info { position: absolute; z-index: 11; left: 16px; bottom: 16px; width: min(400px, calc(100% - 32px)); max-height: calc(100% - 140px); overflow: auto;
  background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 10px 30px rgba(14, 30, 45, .16); padding: 16px 18px }
.info .x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sheet); font-size: 22px; cursor: pointer }
.ihead { display: flex; gap: 12px; align-items: center; padding-right: 40px }
.ihead h3 { font-size: 22px }
.ihead p { margin: 2px 0 0 }
.idl { display: grid; gap: 6px; margin: 12px 0 8px; font-size: 15px }
.idl div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px }
.idl dt { color: var(--muted); font-size: 14px }
.idl dd { margin: 0 }
.inote { font-size: 15px; border-top: 1px solid var(--rule); padding-top: 8px; margin: 0 }
.tblock { background: var(--paper); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule) }
.tb-in { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)) }
.tb-in div { padding: 12px 12px 14px; border-left: 1px solid var(--rule) }
.tb-in div:first-child { border-left: 0; padding-left: 0 }
.tb-in span { display: block; font-size: 13px; color: var(--muted); line-height: 1.25 }
.tb-in b { font: 600 20px/1.25 var(--display) }
@media (max-width: 1000px) { .tb-in { grid-template-columns: repeat(4, minmax(0, 1fr)) } .tb-in div:nth-child(5) { border-left: 0; padding-left: 0 } .tb-in div:nth-child(n+5) { border-top: 1px solid var(--rule) } }
@media (max-width: 760px) {
  .stage { height: auto; display: flex; flex-direction: column; background: var(--sheet) }
  .stage .intro { position: static; max-width: none; padding: 18px 18px 6px; pointer-events: auto; color: var(--ink) }
  .stage .intro p { color: var(--muted) }
  .stage .canvas-wrap { position: relative; height: 58vh; min-height: 380px; background: linear-gradient(180deg, #a9cbe4 0%, #dfeaf2 100%) }
  .loading { top: 40% }
  .panel { position: static; width: auto; max-height: none; margin: 0; border-radius: 0; border-width: 1px 0 0; box-shadow: none }
  .info { position: fixed; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 55vh; z-index: 60 }
  .tb-in { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .tb-in div:nth-child(odd) { border-left: 0; padding-left: 0 }
  .tb-in div:nth-child(n+3) { border-top: 1px solid var(--rule) }
  .read { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}
@media (min-width: 761px) { .canvas-wrap { position: absolute; inset: 0 } }

/* ---------------------------------------------------------------- section heads */
.shead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap }
.sheetref { font: 600 15px var(--display); color: var(--muted); text-decoration: none; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; white-space: nowrap }
.sheetref:hover { color: var(--ink); border-color: var(--ink) }
.mt { margin-top: 44px; margin-bottom: 14px }
.clean { list-style: none; padding: 0; margin: 0 }

/* ---------------------------------------------------------------- how */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: start }
.flow { counter-reset: f; list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px }
.flow li { counter-increment: f; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; font-size: 16px }
.flow li::before { content: counter(f); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink);
  font: 600 14px var(--display) }
.flow b { font-weight: 600 }
.fig { position: relative }
.fig > svg { position: absolute; inset: 0; width: 100%; height: 100% }
.how-fig { margin: 0; min-height: 430px; background: var(--sheet); border-radius: var(--r) }
.mar { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(48px, 6vw, 80px); align-items: center }
.mar h3 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px }
.mar .row { margin-top: 12px }
.mar select.chip { min-height: 44px; padding: 0 12px }
.mar-fig { margin: 0; min-height: 460px; background: var(--sheet); border-radius: var(--r) }
.read.three { grid-template-columns: repeat(3, minmax(0, 1fr)) }
.alarm-on { color: var(--hot) }
@media (max-width: 900px) { .how, .mar { grid-template-columns: minmax(0, 1fr) } .how-fig { min-height: 360px } .mar-fig { min-height: 420px; order: -1 } }

/* ---------------------------------------------------------------- build */
.prep { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 26px 0 }
.prep details, .steps details { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r) }
.prep summary { cursor: pointer; padding: 14px 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px }
.prep summary h3 { font-size: 21px }
.prep summary::after, .steps summary::after { content: "+"; font: 400 26px/1 var(--display); color: var(--muted); flex: none }
.prep details[open] summary::after, .steps details[open] summary::after { content: "−" }
.prep summary::-webkit-details-marker, .steps summary::-webkit-details-marker { display: none }
.prep ul { padding: 0 18px 16px; display: grid; gap: 8px; font-size: 15.5px }
.prep li b { font-weight: 600 }
.ticks li { padding-left: 22px; position: relative }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 9px; height: 9px; border: 1.5px solid var(--ink); border-radius: 2px }
.phasebar { margin: 8px 0 16px }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px }
.steps summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 18px; min-height: 64px }
.steps .sn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 19px var(--display) }
.steps .st h3 { font-size: 21px }
.steps .st span { font-size: 14px; color: var(--muted) }
.steps .body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 26px; padding: 4px 18px 20px 84px }
.steps .body.noimg { grid-template-columns: minmax(0, 1fr) }
.steps .body ol { padding-left: 20px; margin: 0 0 12px; display: grid; gap: 6px; font-size: 16px }
.steps .check { display: flex; gap: 10px; align-items: flex-start; background: color-mix(in srgb, var(--foam) 18%, transparent); border-radius: 8px; padding: 10px 12px; font-size: 15px }
.steps .check b { font-weight: 600 }
.steps figure { margin: 0 }
.steps figure img { border-radius: 8px; background: var(--sheet); width: 100% }
.steps .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px }
.steps .links button, .steps .links a { font-size: 14px; min-height: 36px; padding: 0 12px }
.after { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 44px }
.after h3 { margin-bottom: 12px }
.num-list { counter-reset: c; display: grid; gap: 10px }
.num-list li { counter-increment: c; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; font-size: 15.5px }
.num-list li::before { content: counter(c); font: 700 17px var(--display); color: var(--muted) }
.ops { display: grid; gap: 12px; margin: 0 }
.ops div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; font-size: 15.5px; padding-bottom: 12px; border-bottom: 1px solid var(--rule) }
.ops dt { font: 600 17px var(--display) }
.ops dd { margin: 0 }
@media (max-width: 760px) {
  .prep, .after { grid-template-columns: minmax(0, 1fr) }
  .steps .body { grid-template-columns: minmax(0, 1fr); padding: 4px 16px 18px }
  .steps summary { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 10px 14px }
  .steps .sn { width: 38px; height: 38px; font-size: 17px }
  .ops div { grid-template-columns: minmax(0, 1fr); gap: 2px }
}

/* ---------------------------------------------------------------- instruments */
.sensors td:first-child { width: 64px }
.sensors button.bl { cursor: pointer }
.sensors button.bl:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--foam) 50%, transparent) }
.wiring { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 40px }
.wiring h3 { margin-bottom: 10px }
.wire-fig { margin: 0; width: 100%; max-width: 900px; aspect-ratio: 700 / 560; background: var(--sheet); border-radius: var(--r) }
@media (max-width: 600px) { .wire-scroll { overflow-x: auto; margin-inline: calc(-1 * max(5vw, 18px)); padding-inline: max(5vw, 18px) } .wire-fig { width: 640px; max-width: none } }

/* ---------------------------------------------------------------- performance */
.sim { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 3vw, 40px); margin-top: 24px; align-items: start }
.simctl { position: sticky; top: 80px }
#months .chip { min-height: 38px; padding: 0 10px; font-size: 14px }
.result { margin-top: 18px; border-top: 2px solid var(--ink); padding-top: 14px }
.result > b { display: block; font: 700 clamp(56px, 7vw, 84px)/1 var(--display); letter-spacing: -.02em }
.result > span { font-size: 15px; color: var(--muted) }
.result .read { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.charts { display: grid; gap: 18px }
.chart { margin: 0; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 14px 8px }
.chart figcaption { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; font-size: 15px }
.chart figcaption b { font: 600 17px var(--display) }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted) }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px }
.c-temp { min-height: 300px } .c-small { min-height: 190px } .c-year { min-height: 240px }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px }
.chart text { font: 12.5px var(--text); fill: var(--muted) }
.chart .lab { font: 600 13px var(--text); fill: var(--ink) }
.tableview summary { cursor: pointer; font-size: 15px; color: var(--muted); min-height: 40px; display: flex; align-items: center }
.tip { position: fixed; z-index: 70; pointer-events: none; background: var(--ink); color: var(--paper); border-radius: 8px; padding: 7px 10px; font-size: 13.5px; line-height: 1.4;
  white-space: nowrap; box-shadow: 0 6px 18px rgba(0, 0, 0, .2) }
@media (max-width: 900px) { .sim { grid-template-columns: minmax(0, 1fr) } .simctl { position: static } }
@media (max-width: 600px) { .two { grid-template-columns: minmax(0, 1fr) } }

/* ---------------------------------------------------------------- parts */
.totals { display: flex; flex-wrap: wrap; gap: 28px; margin: 18px 0 10px; padding: 14px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule) }
.totals div span { display: block; font-size: 14px; color: var(--muted) }
.totals div b { font: 700 30px/1.1 var(--display) }
#ptable h4 { font: 600 16px var(--display); margin: 22px 0 6px; color: var(--muted) }
#ptable .opt td { color: var(--muted) }
.shop { white-space: nowrap }

/* ---------------------------------------------------------------- documents */
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px }
.doc { display: grid; grid-template-rows: auto 1fr auto; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden }
.doc .thumb { aspect-ratio: 16/9; background: var(--sheet); border-bottom: 1px solid var(--rule); display: grid; place-items: center; overflow: hidden }
.doc .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top }
.doc .thumb img.render { object-fit: contain; object-position: center; padding: 8px }
.doc .thumb svg { width: 52%; height: 70% }
.doc .dbody { padding: 14px 16px 6px }
.doc h3 { font-size: 21px; margin-bottom: 6px }
.doc p { font-size: 15px; color: var(--muted); margin: 0 }
.doc .dfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px 16px; font-size: 14px; color: var(--muted) }
.sheets { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; overscroll-behavior-x: contain }
.sheets button { flex: 0 0 min(340px, 78vw); scroll-snap-align: start; border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); padding: 0; cursor: zoom-in;
  overflow: hidden; text-align: left }
.sheets img { width: 100%; aspect-ratio: 420/297; object-fit: cover; border-bottom: 1px solid var(--rule) }
.sheets span { display: block; padding: 9px 12px; font-size: 14.5px }
.sheets b { font-family: var(--display); font-weight: 600 }
.sheetnav { margin-top: 8px }
@media (max-width: 900px) { .docs { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 600px) { .docs { grid-template-columns: minmax(0, 1fr) } }

/* ---------------------------------------------------------------- faq */
.faq { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); margin-top: 20px; align-items: start }
.faq details { border-bottom: 1px solid var(--rule) }
.faq summary { cursor: pointer; padding: 14px 0; font: 600 19px/1.3 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 52px; align-items: center }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; color: var(--muted) }
.faq details[open] summary::after { content: "−" }
.faq details p { font-size: 16px; padding-bottom: 8px; max-width: 62ch }
.faq h3 { margin: 8px 0 12px }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr) } }

/* ---------------------------------------------------------------- footer + lightbox */
.foot { border-top: 2px solid var(--ink); padding: 28px 0 40px; background: var(--paper) }
.foot-in p { max-width: 80ch; margin: 0 0 6px }
dialog#lightbox { width: min(1400px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: 12px; background: var(--card); color: var(--ink) }
dialog#lightbox::backdrop { background: rgba(10, 16, 22, .72) }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--rule) }
.lb-bar b { font: 600 18px var(--display) }
#lbImg { width: 100%; max-height: calc(94vh - 70px); object-fit: contain; background: #fff }

/* ---------------------------------------------------------------- figure inks (SVG) */
.h-sky { fill: light-dark(#e6f0f7, #17212b) }
.h-roof { fill: light-dark(#ddd7cc, #2a2722) }
.h-stand { stroke: var(--muted); stroke-width: 3; fill: none }
.h-foam { fill: #f2bd1d; stroke: #b98d00; stroke-width: 1 }
.h-steel { stroke: light-dark(#7d878f, #9aa6b1); stroke-width: 3; fill: none; stroke-linecap: square }
.h-gasket { stroke: #2b2f33; stroke-width: 2.4; fill: none }
.h-basin { stroke: light-dark(#1d2024, #c9d1d8); stroke-width: 3.2; fill: none; stroke-linejoin: round }
.h-water { fill: var(--brine); opacity: .85 }
.h-glass { stroke: light-dark(#7cc0dc, #6fb7d6); stroke-width: 4; stroke-linecap: round }
.h-trough { stroke: light-dark(#59626b, #c9d1d8); stroke-width: 2; fill: none }
.h-line { stroke: light-dark(#59626b, #9aa6b1); stroke-width: 2.2; fill: none }
.h-bottle { fill: light-dark(rgba(255,255,255,.7), rgba(255,255,255,.08)); stroke: var(--muted); stroke-width: 1.6 }
.h-scale { fill: var(--muted) }
.h-sun circle { fill: #f2bd1d } .h-sun line { stroke: #f2bd1d; stroke-width: 3; stroke-linecap: round }
.h-ray { stroke: #e0a400; stroke-width: 2; stroke-dasharray: 7 6 }
.h-arrhead { fill: #e0a400 }
.h-vap { stroke: light-dark(#8aa4b8, #7d95a8); stroke-width: 2; fill: none; stroke-linecap: round; opacity: .8 }
.h-drop { fill: var(--brine) }
.h-lab { font: 500 14px var(--text); fill: var(--ink) }
.h-lab.b { font: 700 15px var(--display) }
.h-lab.on-foam { fill: #2b2100 }
.h-num circle { fill: var(--card); stroke: var(--ink); stroke-width: 1.6; transition: fill .15s }
.h-num text { font: 700 14px var(--display); fill: var(--ink) }
.h-num.on circle { fill: var(--foam); stroke: var(--foam-ink) }
.h-num.on text { fill: var(--foam-ink) }
.flow li { cursor: default }
.m-bg { fill: var(--sheet) }
.m-pipe { fill: light-dark(rgba(255,255,255,.35), rgba(255,255,255,.04)); stroke: light-dark(#7d878f, #9aa6b1); stroke-width: 2.5 }
.m-cap { fill: light-dark(#cfd5da, #3b4650); stroke: light-dark(#7d878f, #9aa6b1); stroke-width: 1.5 }
.m-air { stroke: var(--ink); stroke-width: 3; fill: none; stroke-linecap: round }
.m-bubble { fill: light-dark(#fff, #cfe3f5); stroke: var(--brine); stroke-width: 1.2 }
.m-hose { stroke: light-dark(#2f3a44, #c9d1d8); stroke-width: 5; fill: none; stroke-linejoin: round }
.m-valve { fill: #d4411e }
.m-dash { stroke: var(--brine); stroke-width: 1.4; stroke-dasharray: 5 5 }
.m-tick { stroke: var(--muted); stroke-width: 1.4 }
.m-lv { fill: light-dark(#e4e8eb, #3b4650); stroke: var(--ink); stroke-width: 1.4 }
.m-lv.on { fill: #d4411e; stroke: #8f2410 }
.w-box { fill: var(--card); stroke: var(--ink); stroke-width: 1.6 }
.w-mod { fill: var(--sheet); stroke: var(--muted); stroke-width: 1.2 }
.w-cpu { fill: var(--ink); stroke: var(--ink) }
.w-cpu + text, .w-cpu + text + text { fill: var(--paper) }
.w-opt { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 4 4 }
.w-t { font: 600 14px var(--display); fill: var(--ink) }
.w-t2 { font: 500 13.5px var(--text); fill: var(--ink) }
.w-s { font: 400 12.5px var(--text); fill: var(--muted) }
.w-wire { fill: none; stroke-width: 2.2; stroke-linejoin: round; transition: opacity .15s, stroke-width .15s }
.w-wire.on { stroke-width: 4 }
.w-wire.dim { opacity: .18 }
.w-1w { stroke: var(--brine) } .w-spi { stroke: var(--hot) } .w-i2c { stroke: var(--air) } .w-gpio { stroke: var(--ink) }
.w-pwr { stroke: var(--foam-deep); stroke-width: 3 } .w-net { stroke: var(--muted) } .w-dash { stroke-dasharray: 5 5 }
.w-pill { fill: var(--card); stroke: var(--rule); stroke-width: 1.4 }
.w-bl { fill: #f2bd1d; stroke: #2b2100; stroke-width: 1.2 }
.w-blt { font: 700 12px var(--display); fill: #2b2100 }
.w-sensor { cursor: pointer; outline: none }
.w-sensor.on .w-pill, .w-sensor:focus-visible .w-pill { stroke: var(--ink); stroke-width: 2.4 }
tr.hl td { background: color-mix(in srgb, var(--foam) 16%, transparent) }

/* ---------------------------------------------------------------- charts */
.ax .grid { stroke: var(--rule); stroke-width: 1 }
.ax .base { stroke: var(--ink); stroke-width: 1.2 }
.cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3 }
.tip i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px }
.tip b { font-weight: 600 }
.legend span { white-space: nowrap }

/* ---------------------------------------------------------------- misc */
.iact { margin-top: 12px }
.iact .btn { min-height: 38px; font-size: 14.5px; padding: 0 12px }
.pname { display: inline-flex; align-items: center; gap: 8px }
.made .bl { min-width: 28px; height: 26px; font-size: 13px }
.made td:last-child { text-align: right }
.made .chip { min-height: 32px; font-size: 13.5px }

.only-touch { display: none }
@media (hover: none), (max-width: 600px) { .only-touch { display: inline } .only-mouse { display: none } }

@media (min-width: 601px) { table.fixed { table-layout: fixed } }
.steps figure img { max-height: 420px; object-fit: contain }
