/* Hareketli açıklayıcılar (js/commissioning-viz.js, js/viz/*.js).
   v7 "Kor · modern dark": figür iç sayfa tasarımındaki .viz-pencere gibi bir ürün penceresidir — üst çubuk
   (3 nokta + adres + CANLI rozeti; işaretleme eklenmeden figure::before / ::after / .cviz-stage::after),
   ince sınır, yarıçap 18, gradyan yüzey, mono küçük etiketler, kor vurgu, su yalnız su için.
   Renkler css/sd/00-temel.css token'larından. */
.cviz {
  --c-water: var(--water, oklch(0.88 0.05 215));
  --c-air: oklch(0.92 0.005 270);
  --c-ok: var(--ok, oklch(0.86 0.13 165));
  --c-bad: var(--bad, oklch(0.72 0.17 25));
  --c-line: var(--border-strong, oklch(1 0 0 / 0.14));
  --c-stage: #07060f;
  position: relative;
  margin: 2em 0 2.2em;
  padding: 0;
  border-radius: 18px;
  border: 1px solid var(--border-strong, oklch(1 0 0 / 0.14));
  background: linear-gradient(180deg, oklch(0.185 0.006 270), oklch(0.15 0.005 270));
  box-shadow: var(--shadow-2xl, 0 50px 100px -30px oklch(0 0 0 / 0.85));
  overflow: hidden;
}
figure.cviz { margin: 2em 0 2.2em; }   /* .post-content figure (0,1,1) boşluğunu ezer */

/* Pencere üst çubuğu: üç nokta + üst kenar ışığı */
.cviz::before {
  content: "";
  display: block; height: 40px;
  border-bottom: 1px solid var(--border, oklch(1 0 0 / 0.08));
  background:
    radial-gradient(circle at 20px 50%, oklch(1 0 0 / 0.13) 0 5.5px, transparent 6px),
    radial-gradient(circle at 38px 50%, oklch(1 0 0 / 0.13) 0 5.5px, transparent 6px),
    radial-gradient(circle at 56px 50%, oklch(1 0 0 / 0.13) 0 5.5px, transparent 6px),
    linear-gradient(180deg, oklch(1 0 0 / 0.05), transparent),
    oklch(0.16 0.005 270 / 0.92);
}
/* Adres hapı: konu adı (yalnız görünüm; ekran okuyucuya gitmez) */
.cviz::after {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 2;
  max-width: calc(100% - 200px);
  padding: 3px 12px 3px 28px; border-radius: 8px;
  border: 1px solid var(--border, oklch(1 0 0 / 0.08));
  background:
    radial-gradient(circle at 14px 50%, var(--c-dot, var(--accent)) 0 2.5px, transparent 4.5px),
    oklch(1 0 0 / 0.04);
  font-family: var(--font-mono); font-size: 12px; line-height: 1.5; letter-spacing: 0;
  color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
  content: "selvi.org"; content: "selvi.org" / "";
}
.cviz[data-viz="sequence"]::after { content: "selvi.org · NFPA 13 · devreye alma sırası"; content: "selvi.org · NFPA 13 · devreye alma sırası" / ""; }
.cviz[data-viz="flush"]::after { content: "selvi.org · NFPA 13 · yıkama debisi"; content: "selvi.org · NFPA 13 · yıkama debisi" / ""; }
.cviz[data-viz="hydro"]::after { content: "selvi.org · NFPA 13 · hidrostatik test"; content: "selvi.org · NFPA 13 · hidrostatik test" / ""; }
.cviz[data-viz="air"]::after { content: "selvi.org · NFPA 13 · hava testi"; content: "selvi.org · NFPA 13 · hava testi" / ""; }
.cviz[data-viz="drain"]::after { content: "selvi.org · NFPA 13 · ana tahliye testi"; content: "selvi.org · NFPA 13 · ana tahliye testi" / ""; }
.cviz[data-viz="drytrip"]::after { content: "selvi.org · NFPA 13 · su ulaşma süresi"; content: "selvi.org · NFPA 13 · su ulaşma süresi" / ""; }
.cviz[data-viz="spares"]::after { content: "selvi.org · NFPA 13 · yedek sprinkler"; content: "selvi.org · NFPA 13 · yedek sprinkler" / ""; }
.cviz[data-viz="thermal-bulbs"]::after { content: "selvi.org · NFPA 13 · cam tüp renk kodu"; content: "selvi.org · NFPA 13 · cam tüp renk kodu" / ""; }
.cviz[data-viz="commodity-tree"]::after { content: "selvi.org · NFPA 13 · plastik karar ağacı"; content: "selvi.org · NFPA 13 · plastik karar ağacı" / ""; }
.cviz[data-viz="density-area"]::after { content: "selvi.org · NFPA 13 · yoğunluk-alan yöntemi"; content: "selvi.org · NFPA 13 · yoğunluk-alan yöntemi" / ""; }
.cviz[data-viz="hanger-spacing"]::after { content: "selvi.org · NFPA 13 · askı aralığı"; content: "selvi.org · NFPA 13 · askı aralığı" / ""; }
.cviz[data-viz="rack-flues"]::after { content: "selvi.org · NFPA 13 · baca boşlukları · 3B"; content: "selvi.org · NFPA 13 · baca boşlukları · 3B" / ""; }
.cviz[data-viz="ds20-spacing"]::after { content: "selvi.org · FM DS 2-0 · aralık planı"; content: "selvi.org · FM DS 2-0 · aralık planı" / ""; }
.cviz[data-viz="ds7112-flow"]::after { content: "selvi.org · FM DS 7-112 · karar akışı"; content: "selvi.org · FM DS 7-112 · karar akışı" / ""; }
.cviz[data-viz="en-grid"] { --c-dot: var(--water); }
.cviz[data-viz="pipe-config"] { --c-dot: var(--water); }
.cviz[data-viz="pipe-config"]::after { content: "selvi.org · NFPA 13 · EN 12845 · borulama düzeni"; content: "selvi.org · NFPA 13 · EN 12845 · borulama düzeni" / ""; }
.cviz[data-viz="esfr-check"]::after { content: "selvi.org · NFPA 13 · EN 12845-2 · ESFR kontrolü"; content: "selvi.org · NFPA 13 · EN 12845-2 · ESFR kontrolü" / ""; }
.cviz[data-viz="en-grid"]::after { content: "selvi.org · EN 12845 · yerleşim planı"; content: "selvi.org · EN 12845 · yerleşim planı" / ""; }
:lang(en) .cviz[data-viz="sequence"]::after { content: "selvi.org · NFPA 13 · commissioning sequence"; content: "selvi.org · NFPA 13 · commissioning sequence" / ""; }
:lang(es) .cviz[data-viz="sequence"]::after { content: "selvi.org · NFPA 13 · secuencia de puesta en marcha"; content: "selvi.org · NFPA 13 · secuencia de puesta en marcha" / ""; }
:lang(en) .cviz[data-viz="flush"]::after { content: "selvi.org · NFPA 13 · flushing flow"; content: "selvi.org · NFPA 13 · flushing flow" / ""; }
:lang(es) .cviz[data-viz="flush"]::after { content: "selvi.org · NFPA 13 · caudal de lavado"; content: "selvi.org · NFPA 13 · caudal de lavado" / ""; }
:lang(en) .cviz[data-viz="hydro"]::after { content: "selvi.org · NFPA 13 · hydrostatic test"; content: "selvi.org · NFPA 13 · hydrostatic test" / ""; }
:lang(es) .cviz[data-viz="hydro"]::after { content: "selvi.org · NFPA 13 · prueba hidrostática"; content: "selvi.org · NFPA 13 · prueba hidrostática" / ""; }
:lang(en) .cviz[data-viz="air"]::after { content: "selvi.org · NFPA 13 · air test"; content: "selvi.org · NFPA 13 · air test" / ""; }
:lang(es) .cviz[data-viz="air"]::after { content: "selvi.org · NFPA 13 · prueba de aire"; content: "selvi.org · NFPA 13 · prueba de aire" / ""; }
:lang(en) .cviz[data-viz="drain"]::after { content: "selvi.org · NFPA 13 · main drain test"; content: "selvi.org · NFPA 13 · main drain test" / ""; }
:lang(es) .cviz[data-viz="drain"]::after { content: "selvi.org · NFPA 13 · prueba de drenaje principal"; content: "selvi.org · NFPA 13 · prueba de drenaje principal" / ""; }
:lang(en) .cviz[data-viz="drytrip"]::after { content: "selvi.org · NFPA 13 · water delivery time"; content: "selvi.org · NFPA 13 · water delivery time" / ""; }
:lang(es) .cviz[data-viz="drytrip"]::after { content: "selvi.org · NFPA 13 · tiempo de entrega de agua"; content: "selvi.org · NFPA 13 · tiempo de entrega de agua" / ""; }
:lang(en) .cviz[data-viz="spares"]::after { content: "selvi.org · NFPA 13 · spare sprinklers"; content: "selvi.org · NFPA 13 · spare sprinklers" / ""; }
:lang(es) .cviz[data-viz="spares"]::after { content: "selvi.org · NFPA 13 · rociadores de repuesto"; content: "selvi.org · NFPA 13 · rociadores de repuesto" / ""; }
:lang(en) .cviz[data-viz="thermal-bulbs"]::after { content: "selvi.org · NFPA 13 · bulb colour code"; content: "selvi.org · NFPA 13 · bulb colour code" / ""; }
:lang(es) .cviz[data-viz="thermal-bulbs"]::after { content: "selvi.org · NFPA 13 · código de colores de bulbos"; content: "selvi.org · NFPA 13 · código de colores de bulbos" / ""; }
:lang(en) .cviz[data-viz="commodity-tree"]::after { content: "selvi.org · NFPA 13 · plastics decision tree"; content: "selvi.org · NFPA 13 · plastics decision tree" / ""; }
:lang(es) .cviz[data-viz="commodity-tree"]::after { content: "selvi.org · NFPA 13 · árbol de decisión de plásticos"; content: "selvi.org · NFPA 13 · árbol de decisión de plásticos" / ""; }
:lang(en) .cviz[data-viz="density-area"]::after { content: "selvi.org · NFPA 13 · density/area method"; content: "selvi.org · NFPA 13 · density/area method" / ""; }
:lang(es) .cviz[data-viz="density-area"]::after { content: "selvi.org · NFPA 13 · método densidad/área"; content: "selvi.org · NFPA 13 · método densidad/área" / ""; }
:lang(en) .cviz[data-viz="hanger-spacing"]::after { content: "selvi.org · NFPA 13 · hanger spacing"; content: "selvi.org · NFPA 13 · hanger spacing" / ""; }
:lang(es) .cviz[data-viz="hanger-spacing"]::after { content: "selvi.org · NFPA 13 · espaciamiento de soportes"; content: "selvi.org · NFPA 13 · espaciamiento de soportes" / ""; }
:lang(en) .cviz[data-viz="rack-flues"]::after { content: "selvi.org · NFPA 13 · flue spaces · 3D"; content: "selvi.org · NFPA 13 · flue spaces · 3D" / ""; }
:lang(es) .cviz[data-viz="rack-flues"]::after { content: "selvi.org · NFPA 13 · espacios de humos · 3D"; content: "selvi.org · NFPA 13 · espacios de humos · 3D" / ""; }
:lang(en) .cviz[data-viz="ds20-spacing"]::after { content: "selvi.org · FM DS 2-0 · spacing plan"; content: "selvi.org · FM DS 2-0 · spacing plan" / ""; }
:lang(es) .cviz[data-viz="ds20-spacing"]::after { content: "selvi.org · FM DS 2-0 · plano de espaciamiento"; content: "selvi.org · FM DS 2-0 · plano de espaciamiento" / ""; }
:lang(en) .cviz[data-viz="ds7112-flow"]::after { content: "selvi.org · FM DS 7-112 · decision flow"; content: "selvi.org · FM DS 7-112 · decision flow" / ""; }
:lang(es) .cviz[data-viz="ds7112-flow"]::after { content: "selvi.org · FM DS 7-112 · flujo de decisión"; content: "selvi.org · FM DS 7-112 · flujo de decisión" / ""; }
:lang(en) .cviz[data-viz="en-grid"]::after { content: "selvi.org · EN 12845 · sprinkler layout"; content: "selvi.org · EN 12845 · sprinkler layout" / ""; }
:lang(es) .cviz[data-viz="en-grid"]::after { content: "selvi.org · EN 12845 · disposición de rociadores"; content: "selvi.org · EN 12845 · disposición de rociadores" / ""; }
:lang(en) .cviz[data-viz="pipe-config"]::after { content: "selvi.org · NFPA 13 · EN 12845 · pipe layout"; content: "selvi.org · NFPA 13 · EN 12845 · pipe layout" / ""; }
:lang(es) .cviz[data-viz="pipe-config"]::after { content: "selvi.org · NFPA 13 · EN 12845 · trazado de tuberías"; content: "selvi.org · NFPA 13 · EN 12845 · trazado de tuberías" / ""; }
:lang(en) .cviz[data-viz="esfr-check"]::after { content: "selvi.org · NFPA 13 · EN 12845-2 · ESFR check"; content: "selvi.org · NFPA 13 · EN 12845-2 · ESFR check" / ""; }
:lang(es) .cviz[data-viz="esfr-check"]::after { content: "selvi.org · NFPA 13 · EN 12845-2 · verificación ESFR"; content: "selvi.org · NFPA 13 · EN 12845-2 · verificación ESFR" / ""; }

.cviz:not(.is-ready):not(.is-js):not(:has(.cviz-still)) { display: none; }
/* Durağan kare: JS yokken görünür; görsel sayfa açılırken kurulunca gizlenir (js/viz/core.js) */
.cviz .cviz-still { display: block; width: calc(100% - 40px); height: auto; margin: 20px 20px 18px; border-radius: 0; }   /* canlı sahnenin iç kutusuyla aynı yerde */
.post-content .cviz .cviz-still { border: 0; border-radius: 0; }
.cviz.is-ready .cviz-still { display: none; }

/* Sahne: çizim + denetimler pencere yüzeyinde; CANLI rozeti üst çubuğun sağında.
   Sahne kabı: js/viz/core.js'te .cviz-stage, js/commissioning-viz.js'te .cviz-seq/.cviz-flush/… — ikisi de figürün ilk div'i. */
.cviz > div { position: relative; padding: 20px 20px 18px; }
.cviz > div::after {
  position: absolute; right: 12px; top: -31px; z-index: 2;
  padding: 2px 8px 2px 20px; border-radius: 6px;
  border: 1px solid oklch(0.80 0.15 62 / 0.3);
  background:
    radial-gradient(circle at 10px 50%, var(--accent) 0 2.5px, oklch(0.80 0.15 62 / 0.4) 3.5px, transparent 5px),
    var(--accent-soft, oklch(0.80 0.15 62 / 0.12));
  font-family: var(--font-mono); font-size: 11px; line-height: 1.55; letter-spacing: 0.04em;
  color: var(--accent); pointer-events: none;
  content: "CANLI"; content: "CANLI" / "";
}
:lang(en) .cviz > div::after { content: "LIVE"; content: "LIVE" / ""; }
:lang(es) .cviz > div::after { content: "EN VIVO"; content: "EN VIVO" / ""; }
.cviz > .cviz-stage.is-still::after { display: none; }
/* Durağan karede etkileşim öğeleri yok */
.cviz-stage.is-still .cviz-slider, .cviz-stage.is-still .cviz-readout, .cviz-stage.is-still .cviz-chips { display: none; }

.cviz figcaption {
  margin: 0; padding: 16px 20px 20px;
  text-align: left; font-style: normal;
  font-size: 14px; line-height: 1.62; color: var(--muted-foreground);
  border-top: 1px solid var(--border); background: oklch(0.15 0.005 270);
}
.cviz figcaption strong { color: var(--foreground); font-weight: 600; }
.cviz .dim { color: var(--subtle-foreground); }
.cviz .ok { color: var(--c-ok); font-weight: 600; }
.cviz .bad { color: var(--c-bad); font-weight: 600; }

.cviz-btn {
  font: inherit; font-size: 13px; font-weight: 500; line-height: 1.5; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; margin-top: 12px;
  color: var(--accent-foreground, oklch(0.2 0.05 55)); background: var(--accent); border: 1px solid var(--accent);
  box-shadow: 0 1px 0 0 oklch(1 0 0 / 0.35) inset, 0 8px 22px -10px oklch(0.80 0.15 62 / 0.6);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.cviz-btn:hover { transform: translateY(-1px); background: oklch(0.84 0.13 64); }
.cviz-btn.ghost { background: oklch(1 0 0 / 0.03); color: var(--muted-foreground); border-color: var(--border-strong); box-shadow: none; }
.cviz-btn.ghost:hover { color: var(--foreground); border-color: oklch(0.80 0.15 62 / 0.55); background: oklch(1 0 0 / 0.05); }
.cviz button:focus-visible, .cviz input:focus-visible { outline: 2px solid var(--ring, var(--accent)); outline-offset: 2px; }

.cviz-readout { margin: 12px 0 0; font-size: 14px; line-height: 1.62; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.cviz-readout b, .cviz-readout strong { color: var(--foreground); }
/* Metni oynatma sırasında değişen alan (js/commissioning-viz.js yigin): görünmez ölçü katmanları ile canlı metin
   aynı hücrede; kutu en uzun metne göre yer ayırır, figür uzayıp kısalmaz */
.cviz-yigin { display: grid; }
.cviz-yigin > .cviz-yigin-t, .cviz-yigin > .cviz-olcu { grid-area: 1 / 1; min-width: 0; }
.cviz-yigin > .cviz-olcu { visibility: hidden; pointer-events: none; user-select: none; }

.cviz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cviz-chips button {
  font: inherit; font-size: 13px; line-height: 1.5; cursor: pointer; padding: 6px 12px; border-radius: 999px;
  color: var(--muted-foreground); background: oklch(1 0 0 / 0.03); border: 1px solid var(--border);
  transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.cviz-chips button:hover { color: var(--foreground); border-color: var(--border-strong); background: oklch(1 0 0 / 0.06); }
.cviz-chips button span { color: var(--muted-foreground); }
.cviz-chips button.on { color: var(--foreground); background: var(--accent-soft); border-color: oklch(0.80 0.15 62 / 0.55); box-shadow: 0 0 0 3px oklch(0.80 0.15 62 / 0.08); }

/* Kaydırıcılar (yerel kaydırıcı, kor vurgu) */
.cviz-inputs { display: grid; gap: 12px; }
.cviz-slider { display: grid; gap: 6px; font-size: 13px; line-height: 1.4; color: var(--muted-foreground); }
.cviz-slider[hidden], .cviz-check[hidden] { display: none; }
.cviz-slider .t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cviz-slider output { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cviz-slider output .dim { font-weight: 400; }
.cviz-slider input[type=range] { width: 100%; accent-color: var(--accent); cursor: pointer; }
.cviz-check { font-size: 13.5px; color: var(--muted-foreground); display: flex; gap: 8px; align-items: center; cursor: pointer; }
.cviz-check input { accent-color: var(--accent); width: 16px; height: 16px; }

/* Gösterge */
.cviz-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.cviz-gauge { text-align: center; }
.cviz-gauge svg { width: 100%; max-width: 220px; display: block; margin: 0 auto; overflow: visible; }
.cviz-gauge .g-track, .cviz-gauge .g-fill { fill: none; stroke-width: 8; stroke-linecap: round; }
.cviz-gauge .g-track { stroke: oklch(1 0 0 / 0.07); }
.cviz-gauge .g-fill { stroke: var(--accent); stroke-dasharray: 0 100; filter: drop-shadow(0 0 6px oklch(0.80 0.15 62 / 0.35)); }
.cviz-gauge .g-ticks line { stroke: var(--subtle-foreground); stroke-width: 1; }
.cviz-gauge .g-needle { transform-origin: 60px 62px; transform: rotate(-90deg); }
.cviz-gauge .g-needle line { stroke: var(--foreground); stroke-width: 2.4; stroke-linecap: round; }
.cviz-gauge .g-needle circle { fill: var(--foreground); }
.cviz-gauge .g-val { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; color: var(--foreground); font-variant-numeric: tabular-nums; }
.cviz-gauge .g-val span { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 400; letter-spacing: 0; color: var(--subtle-foreground); }
.cviz-gauge .g-label { font-size: 12.5px; color: var(--subtle-foreground); }

/* İlerleme / saat çubukları */
.cviz-clock, .cviz-progress { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: 14px; font-size: 13px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.cviz-clock .v, .cviz-progress .v { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0; }
.cviz-clock .track, .cviz-progress .track, .cviz-lane .track, .cviz-bar .track {
  position: relative; height: 6px; border-radius: 99px; background: oklch(1 0 0 / 0.07); overflow: hidden;
}
.cviz-clock .fill, .cviz-progress .fill, .cviz-bar .fill {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: var(--accent);
}
.cviz-clock .fill { box-shadow: 0 0 10px oklch(0.80 0.15 62 / 0.5); }
.cviz-progress .fill { transition: width var(--transition); background: var(--c-ok); }
.cviz-progress .cviz-btn { margin: 0; padding: 4px 10px; font-size: 12px; }

/* 1) Sıra + kolon şeması */
.cviz-seq { display: grid; gap: 16px; }
.cviz-riser { width: 100%; max-width: 600px; display: block; margin: 0 auto; }
.cviz-riser .ground { stroke: var(--subtle-foreground); stroke-dasharray: 3 4; }
.cviz-riser .pipe { fill: none; stroke: oklch(1 0 0 / 0.3); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--transition); }
.cviz-riser .pipe.thin { stroke-width: 4; }
.cviz-riser path:not(.pipe):not(.flow):not(.head):not(.comp) { stroke: oklch(1 0 0 / 0.3); stroke-width: 3; }
.cviz-riser .head { fill: oklch(1 0 0 / 0.5); }
.cviz-riser .comp { fill: oklch(0.2 0.006 270); stroke: oklch(1 0 0 / 0.4); stroke-width: 1.5; transition: all var(--transition); }
.cviz-riser .lbl { font-size: 11.5px; fill: var(--muted-foreground); font-family: var(--font-sans); }
.cviz-riser .lbl.dim { fill: var(--subtle-foreground); }
.cviz-riser g.on .pipe { stroke: oklch(0.80 0.15 62 / 0.75); }
.cviz-riser g.on .comp { stroke: var(--accent); fill: oklch(0.80 0.15 62 / 0.2); filter: drop-shadow(0 0 6px oklch(0.80 0.15 62 / 0.55)); }
.cviz-riser g.on .lbl { fill: var(--foreground); font-weight: 600; }
.cviz-riser g.on .head { fill: var(--accent); }
.cviz-riser .flow { fill: none; stroke: var(--c-water); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 5 9; animation: cviz-flow 0.9s linear infinite; }
.cviz-riser .flow.air { stroke: var(--c-air); stroke-dasharray: 2 7; animation-duration: 2.4s; }
.cviz-riser .flow.still { stroke-dasharray: none; stroke-width: 3; opacity: 0.55; animation: cviz-pulse 1.6s ease-in-out infinite; }
@keyframes cviz-flow { to { stroke-dashoffset: -28; } }
@keyframes cviz-pulse { 50% { opacity: 0.95; } }

.cviz-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.cviz ol.cviz-steps, .cviz .cviz-steps li { margin: 0; padding: 0; max-width: none; }   /* .post-content ol/li girintisi ve boşluğu figürün içine girmesin */
.cviz .cviz-steps li::marker { content: none; }
.cviz-steps button {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  font: inherit; font-size: 13.5px; line-height: 1.4; padding: 7px 9px; border-radius: 10px;
  color: var(--muted-foreground); background: transparent; border: 1px solid transparent; transition: all var(--transition);
}
.cviz-steps button:hover { color: var(--foreground); background: oklch(1 0 0 / 0.03); }
.cviz-steps .n {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--subtle-foreground); border: 1px solid var(--border-strong);
}
.cviz-steps button.done .n { color: var(--c-ok); border-color: oklch(0.86 0.13 165 / 0.45); }
.cviz-steps button.on { color: var(--foreground); background: var(--accent-soft); border-color: oklch(0.80 0.15 62 / 0.45); }
.cviz-steps button.on .n { color: var(--accent-foreground, oklch(0.2 0.05 55)); background: var(--accent); border-color: var(--accent); }
.cviz-detail { position: relative; margin: 12px 0 0; min-height: 5.5em; padding: 14px 16px 14px 18px; border-radius: 12px; border: 1px solid var(--border); background: radial-gradient(120% 140% at 0% 0%, oklch(0.80 0.15 62 / 0.07), transparent 55%), oklch(0.16 0.005 270); font-size: 14px; line-height: 1.6; color: var(--foreground); }
.cviz-detail::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 14px oklch(0.80 0.15 62 / 0.6); }

/* 2) Yıkama */
.cviz-pipe { position: relative; margin: 18px 0 4px; padding: 0 4px; }
.cviz-pipe__bore {
  position: relative; overflow: hidden; border-radius: 6px; transition: height 0.5s ease;
  background: linear-gradient(180deg, oklch(0.88 0.05 215 / 0.08), oklch(0.88 0.05 215 / 0.24), oklch(0.88 0.05 215 / 0.08));
  border-top: 3px solid oklch(1 0 0 / 0.32); border-bottom: 3px solid oklch(1 0 0 / 0.32);
}
.cviz-pipe__bore i {
  position: absolute; left: -6%; width: 6px; height: 4px; border-radius: 2px; background: #C8A27A;
  animation: cviz-debris 1.5s linear infinite;
}
.cviz-pipe__bore i:nth-child(3n) { background: #9CA3AF; width: 4px; }
@keyframes cviz-debris { to { left: 104%; } }
.cviz-pipe__speed { position: absolute; right: 10px; top: -22px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--c-water); }
.cviz-bars { display: grid; gap: 6px; margin-top: 14px; }
.cviz-bar { display: grid; grid-template-columns: 56px 1fr 92px; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; color: var(--subtle-foreground); font-variant-numeric: tabular-nums; }
.cviz-bar .fill { background: oklch(0.88 0.05 215 / 0.4); transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cviz-bar .v { text-align: right; }
.cviz-bar.on { color: var(--foreground); }
.cviz-bar.on .fill { background: var(--c-water); box-shadow: 0 0 10px oklch(0.88 0.05 215 / 0.55); }

/* 4) Hava testi grafiği */
.cviz-chart svg { width: 100%; max-width: 560px; display: block; margin-top: 12px; }   /* masaüstünde eksen yazıları şişmesin */
.cviz-chart .gl { stroke: oklch(1 0 0 / 0.06); }
.cviz-chart .ax { font-size: 9px; fill: var(--subtle-foreground); font-family: var(--font-mono); }
.cviz-chart .limit { stroke: var(--c-bad); stroke-width: 1.2; stroke-dasharray: 5 4; }
.cviz-chart .limit-t { font-size: 9px; fill: var(--c-bad); font-family: var(--font-mono); }
.cviz-chart .line { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.cviz-chart .line.pass { stroke: var(--c-ok); }
.cviz-chart .line.fail { stroke: var(--c-bad); }
.cviz-chart .dot { fill: var(--foreground); }

/* 5) Ana tahliye */
.cviz-drain__stage { position: relative; max-width: 240px; margin: 16px auto 0; }
.cviz-spray { position: absolute; right: -18px; bottom: 6px; width: 40px; height: 40px; pointer-events: none; }
.cviz-spray i { position: absolute; left: 0; bottom: 10px; width: 4px; height: 4px; border-radius: 50%; background: var(--c-water); opacity: 0; }
.cviz-drain.flowing .cviz-spray i { animation: cviz-drop 0.8s ease-in infinite; }
.cviz-drain.flowing .cviz-spray i:nth-child(2) { animation-delay: 0.16s; }
.cviz-drain.flowing .cviz-spray i:nth-child(3) { animation-delay: 0.32s; }
.cviz-drain.flowing .cviz-spray i:nth-child(4) { animation-delay: 0.48s; }
.cviz-drain.flowing .cviz-spray i:nth-child(5) { animation-delay: 0.64s; }
@keyframes cviz-drop { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(30px, 26px); } }
.cviz-drain .cviz-btn, .cviz-trip .cviz-btn { display: block; margin-left: auto; margin-right: auto; }

/* 6) Kuru vana su ulaşma şeridi */
.cviz-lane { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: 14px; font-size: 12.5px; color: var(--subtle-foreground); font-variant-numeric: tabular-nums; }
.cviz-lane .track { height: 12px; background: repeating-linear-gradient(90deg, oklch(1 0 0 / 0.07) 0 6px, transparent 6px 12px); }
.cviz-lane .water { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, oklch(0.88 0.05 215 / 0.45), var(--c-water)); border-radius: 99px; }
.cviz-lane .v1 { min-width: 64px; text-align: right; font-family: var(--font-mono); letter-spacing: 0; color: var(--foreground); }

/* 7) Yedek sprinkler dolabı */
.cviz-cabinet {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; margin-top: 14px; padding: 14px;
  border: 1px solid var(--border-strong); border-radius: 12px; background: var(--c-stage);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.04);
}
.cviz-cabinet .sp { width: 22px; animation: cviz-pop 0.35s cubic-bezier(0.3, 1.5, 0.6, 1) both; }
.cviz-cabinet .sp svg { width: 100%; display: block; }
.cviz-cabinet .sp path { fill: oklch(1 0 0 / 0.5); stroke: oklch(1 0 0 / 0.5); stroke-width: 1; }
.cviz-cabinet .sp .bulb { fill: #EF4444; }
.cviz-cabinet .wrench { flex-basis: 100%; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0; color: var(--subtle-foreground); margin-top: 6px; }
@keyframes cviz-pop { from { opacity: 0; transform: translateY(8px) scale(0.6); } }

/* 8) Kontrol listesi (yazı içi ul[data-cviz-checklist]) */
ul.cviz-checklist { list-style: none; padding-left: 0; display: grid; gap: 6px; }
ul.cviz-checklist li { margin: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: oklch(1 0 0 / 0.02); transition: border-color var(--transition), background var(--transition); }
ul.cviz-checklist li::marker { content: none; }
ul.cviz-checklist li:has(input:checked) { border-color: oklch(0.86 0.13 165 / 0.3); background: oklch(0.86 0.13 165 / 0.04); }
ul.cviz-checklist label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
ul.cviz-checklist input { margin-top: 0.35em; width: 17px; height: 17px; accent-color: var(--c-ok, oklch(0.86 0.13 165)); flex-shrink: 0; }
ul.cviz-checklist input:checked + span { color: var(--subtle-foreground); text-decoration: line-through; text-decoration-color: oklch(0.86 0.13 165 / 0.6); }
.cviz-progress .t { font-size: 13px; }

@media (max-width: 640px) {
  .cviz, figure.cviz { margin: 26px calc(-1 * var(--yan, 16px)); border-radius: 0; border-left: 0; border-right: 0; }
  .cviz::after { max-width: calc(100% - 172px); font-size: 11px; padding-left: 24px; background-position: -2px 50%, 0 0; }
  .cviz > div { padding: 16px 16px 14px; }
  .cviz .cviz-still { width: calc(100% - 32px); margin: 16px 16px 14px; }
  .cviz figcaption { padding: 14px 16px 18px; }
  .cviz-steps { grid-template-columns: 1fr; }
  .cviz-seq__steps { display: flex; flex-direction: column; }
  .cviz-seq__steps .cviz-detail { order: -1; margin: 0 0 12px; min-height: 8em; }
  .cviz-seq__steps .cviz-btn { align-self: flex-start; }
  .cviz-gauges { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cviz-bar { grid-template-columns: 50px 1fr 80px; }
  .cviz-chart .ax, .cviz-chart .limit-t { font-size: 11px; }   /* 340 birimlik grafik telefonda ~%95 ölçekte: yazı ≥ 10 px kalsın */
  .cviz-clock { grid-template-columns: auto minmax(0, 1fr); }   /* sondaki "2:00 ✓ kayıp yok → kabul" çubuğu ezmesin: alta iner */
  .cviz-clock .v { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .cviz *, .cviz *::before, .cviz *::after { animation: none !important; transition: none !important; }
}

/* Sıcaklık sınıfı cam tüp skalası (js/viz/thermal.js) — sıvı renkleri standardın renk kodudur, tema rengi değildir */
.tbz { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.tbz .tb { font: inherit; cursor: pointer; display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px;
  background: transparent; border: 1px solid transparent; border-radius: 12px; color: inherit; transition: opacity var(--transition), background var(--transition), border-color var(--transition); }
.tbz .tb:hover { background: oklch(1 0 0 / 0.03); border-color: var(--border); }
.tbz .tb svg { width: 100%; max-width: 40px; height: auto; display: block; }
.tbz .tb.on { background: var(--accent-soft); border-color: oklch(0.80 0.15 62 / 0.55); box-shadow: 0 0 0 3px oklch(0.80 0.15 62 / 0.08); }
.tbz .tb:focus-visible { outline: 2px solid var(--ring, var(--accent)); outline-offset: 2px; }
.tbz .tb.off { opacity: 0.28; }
.tbz .tb-glass { fill: oklch(1 0 0 / 0.06); stroke: oklch(0.92 0.005 270 / 0.65); stroke-width: 1.5; }
.tbz .tb-liq { stroke: oklch(0.92 0.005 270 / 0.35); stroke-width: 0.8; }
.tbz .tb-cap { fill: #6b6e76; }
.tbz .tb-air { fill: oklch(1 0 0 / 0.75); }
.tbz .tb.on .tb-air { animation: tbz-rise 1.6s ease-in-out infinite; }
.tbz .tb-t { color: var(--foreground); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbz .tb-s { color: var(--subtle-foreground); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0; line-height: 1; }
.tbz .tb-n { color: var(--muted-foreground); font-size: 11px; line-height: 1.2; margin-top: 2px; }
@keyframes tbz-rise { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (max-width: 640px) { .tbz { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .tbz .tb.on .tb-air { animation: none; } }
.cviz-stage.is-still .tbz .tb.on { background: transparent; border-color: transparent; box-shadow: none; }
