/* SVG blueprint. Colours are tokens so the same drawing works on the dark viewer and white reports. */
.bp { --bp-line: #3fc0ec; --bp-dim: #43617a; --bp-text: #dbe7ee; --bp-muted: #a7bcc9; --bp-label: rgba(8, 19, 29, 0.92);
  --bp-water: rgba(63, 192, 236, 0.13); --bp-good: #2fbf8f; --bp-monitor: #e8a838; --bp-action: #ef5b52; display: block; font-family: var(--font); }
.bp--light { --bp-line: #0b74aa; --bp-dim: #a7bcc9; --bp-text: #142532; --bp-muted: #587082; --bp-label: #ffffff;
  --bp-water: rgba(11, 116, 170, 0.08); --bp-good: #16865f; --bp-monitor: #a86a05; --bp-action: #c63c33; }
.bp .ln { fill: none; stroke: var(--bp-line); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bp--mini .ln { stroke-width: 1.1; }
.bp .thin { stroke-width: 0.8; opacity: 0.35; }
.bp .rung { stroke-width: 1; opacity: 0.85; }
.bp .hid { stroke-dasharray: 3 4; opacity: 0.5; }
.bp .xray { stroke-dasharray: 2 4; opacity: 0.4; }
.bp .heavy { stroke-width: 2.4; }
.bp .pipe { stroke-width: 4; }
.bp .w2 { stroke-width: 2.5; } .bp .w3 { stroke-width: 3; } .bp .w4 { stroke-width: 4; } .bp .w5 { stroke-width: 5; } .bp .w6, .bp .w7, .bp .w8, .bp .w9 { stroke-width: 6.5; }
.bp .fill-floor { fill: var(--bp-water); opacity: 0.6; }
.bp .fill-plate { fill: color-mix(in srgb, var(--bp-line) 16%, transparent); }
.bp .fill-hatch { fill: color-mix(in srgb, var(--bp-line) 30%, transparent); }
.bp .water-body { fill: var(--bp-water); stroke: none; }
.bp .water-top { fill: color-mix(in srgb, var(--bp-line) 18%, transparent); stroke: var(--bp-line); stroke-width: 1; opacity: 0.9; }
.bp .water-line { fill: none; stroke: var(--bp-line); stroke-width: 1; stroke-dasharray: 6 4; opacity: 0.55; }
.bp .part.off { display: none; }
.bp .part.dim .ln { stroke: var(--bp-dim); opacity: 0.45; }
.bp .part.st-good .ln { stroke: var(--bp-good); }
.bp .part.st-monitor .ln { stroke: var(--bp-monitor); }
.bp .part.st-action .ln { stroke: var(--bp-action); }
.bp .part.st-good .fill-plate, .bp .part.st-good .fill-hatch { fill: color-mix(in srgb, var(--bp-good) 22%, transparent); }
.bp .part.st-monitor .fill-plate, .bp .part.st-monitor .fill-hatch { fill: color-mix(in srgb, var(--bp-monitor) 24%, transparent); }
.bp .part.st-action .fill-plate, .bp .part.st-action .fill-hatch { fill: color-mix(in srgb, var(--bp-action) 26%, transparent); }
.bp .part.sel .ln { stroke-width: 3; }
.bp .hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; vector-effect: non-scaling-stroke; }
.bp [data-area]:focus-visible { outline: none; }
.bp .dim path { fill: none; stroke: var(--bp-dim); stroke-width: 1; }
.bp .dim text { font: 500 12px var(--mono); fill: var(--bp-muted); }
.bp .callout { cursor: pointer; }
.bp .callout .leader { fill: none; stroke-width: 1; opacity: 0.8; }
.bp .callout .dot { stroke: var(--bp-label); stroke-width: 2; }
.bp .callout .lbl { fill: var(--bp-label); stroke-width: 1.2; }
.bp .callout .lbl-t { font: 600 12.5px var(--font); fill: var(--bp-text); }
.bp .callout .badge-t { font: 600 11px var(--mono); fill: #04111b; }
.bp .callout.st-action { --c: var(--bp-action); } .bp .callout.st-monitor { --c: var(--bp-monitor); } .bp .callout.st-good { --c: var(--bp-good); }
.bp .callout .leader, .bp .callout .lbl { stroke: var(--c); }
.bp .callout .dot, .bp .callout .badge { fill: var(--c); }
.bp .callout:hover .lbl, .bp .callout:focus-visible .lbl, .bp .callout.sel .lbl { stroke-width: 2.4; }
@media (prefers-reduced-motion: no-preference) {
  .bp .part.sel .ln { animation: bp-pulse 1.4s ease-in-out infinite; }
  .bp .callout.sel .dot { animation: bp-pulse 1.4s ease-in-out infinite; }
}
@keyframes bp-pulse { 50% { opacity: 0.35; } }

/* Penetrations: the tank from above, hatch at 6 */
.clock-dial { --cd-pipe: #0b74aa; --cd-valve: #a86a05; --cd-hatch: #c63c33; display: block; width: 100%; max-width: 360px; margin: 0 auto; }
.clock-dial .cd-tank { fill: var(--surface-2); stroke: var(--muted); stroke-width: 1.5; }
.clock-dial .cd-tick { stroke: var(--muted); stroke-width: 1.2; }
.clock-dial .cd-hour { font: 600 13px var(--mono); fill: var(--muted); }
.clock-dial .cd-run { stroke: var(--cd-pipe); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: 0.55; }
.clock-dial .cd-pipe circle { fill: var(--cd-pipe); }
.clock-dial .cd-valve rect { fill: var(--cd-valve); }
.clock-dial .cd-pipe text, .clock-dial .cd-valve text, .clock-dial .cd-hatch text { font: 700 11px var(--mono); fill: #fff; }
.clock-dial .cd-hatch rect { fill: var(--cd-hatch); }
.dial-key { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; padding: 0; font-size: 0.82rem; color: var(--muted); }
.dial-key { justify-content: center; }
.dial-key li { display: inline-flex; align-items: center; gap: 6px; }
.dial-key b { font: 700 0.76rem var(--mono); color: var(--text); }
.k-hatch, .k-pipe, .k-valve { display: inline-block; width: 12px; height: 12px; flex: none; }
.k-hatch { background: #c63c33; border-radius: 3px; }
.k-pipe { background: #0b74aa; border-radius: 50%; }
.k-valve { background: #a86a05; border-radius: 2px; transform: rotate(45deg) scale(0.86); }

/* The real photo of the tank */
.tp { padding: 0; }
.tp img { display: block; width: 100%; max-height: 600px; object-fit: contain; border-radius: var(--r-sm, 8px); }
.asset-photo { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Penetrations: one block each, values across then the notes underneath, so nothing is squeezed on a phone or tablet */
.pen-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pen-item { border: 1px solid var(--line); border-radius: var(--r-sm, 8px); padding: 12px 14px; background: var(--surface); }
.pen-item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pen-item-head strong { font-size: 1rem; color: var(--text); }
.pen-tag { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: #0b74aa; color: #fff; font: 700 0.72rem var(--mono); }
.pen-vals { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px 14px; margin: 0; }
.pen-vals dt { font: 500 0.68rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pen-vals dd { margin: 2px 0 0; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.pen-notes { margin: 10px 0 0; padding: 9px 11px; border-radius: 6px; background: var(--surface-2); color: var(--text); font-size: 0.9rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.pen-notes span { display: block; font: 500 0.68rem var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; white-space: normal; }
.pen-notes em { color: var(--muted); font-style: normal; }
