/* ozero_hdpe — інтерактивні медіа (3D, креслення, вузли) */
.oz-widget { margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); box-shadow: var(--sh); overflow: hidden; }
.oz-widget:not([data-ready]) { min-height: 120px; }
.oz-title { font-weight: 700; font-size: .95rem; color: var(--teal); padding: 12px 16px 0; }
.ozv-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 10px 12px; background: var(--aqua-soft); border-bottom: 1px solid var(--line); }
.ozv-tabs button, .ozv-btn { font: inherit; font-size: .88rem; font-weight: 600; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.ozv-tabs button[aria-selected="true"], .ozv-btn.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.ozv-tabs button:hover, .ozv-btn:hover { border-color: var(--teal-2); }
.ozv-stage { position: relative; height: clamp(300px, 52vw, 520px); background: radial-gradient(ellipse at 50% 20%, #f4fbfc, #cfe6ea 70%, #b6d3d9); touch-action: none; }
.ozv-canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.ozv-canvas:active { cursor: grabbing; }
.ozv-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-2); font-weight: 600; pointer-events: none; }
.ozv-hint { position: absolute; left: 12px; bottom: 10px; font-size: .78rem; color: var(--ink-2); background: rgba(255,255,255,.75); padding: 3px 9px; border-radius: 8px; pointer-events: none; transition: opacity .4s; }
.ozv-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid var(--line); }
.ozv-cut { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.ozv-cut input { width: 140px; }
.ozv-cap, .ozs-info { padding: 12px 16px; font-size: .95rem; background: var(--sand-soft); border-top: 1px solid var(--line); }
.ozs-info { min-height: 3.6em; }
.ozs-box { background: linear-gradient(#f4fafb, #eaf4f6); }
.ozs-svg { display: block; width: 100%; height: auto; }
.ozs-svg .dim { font: 600 13px "Segoe UI", system-ui, sans-serif; fill: #3e5560; }
.ozs-svg .dim.sm { font-size: 11.5px; font-weight: 500; }
.ozs-svg [data-hs], .ozs-svg .node, .ozs-svg .hot, .ozs-svg .lay { cursor: pointer; outline: none; }
.ozs-svg .hit { cursor: pointer; }
.ozs-svg .hot { fill: #fff; transition: transform .15s; }
.ozs-svg [data-hs]:hover, .ozs-svg [data-hs]:focus-visible { filter: brightness(1.15) drop-shadow(0 0 3px rgba(43,179,192,.9)); }
.ozs-svg [data-hs].sel { filter: drop-shadow(0 0 4px #2bb3c0); }
.ozs-svg circle.hot { animation: ozpulse 2s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ozpulse { 50% { stroke-width: 5; } }
.ozs-svg .node circle { transition: r .15s; }
.ozs-svg .node:hover circle, .ozs-svg .node:focus-visible circle { filter: drop-shadow(0 0 5px rgba(15,92,110,.8)); }
.ozs-svg .node.sel circle { stroke: #ffd02b; stroke-width: 4.5; }
.ozs-svg .node.sel rect, .ozs-svg .node.sel path { stroke: #ffd02b; stroke-width: 3; }
.ozs-ctl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 18px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ozs-ctl label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.ozs-ctl label b { color: var(--teal); }
.ozs-ctl input[type=range], .ozv-cut input { accent-color: var(--teal); }
.ozs-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.ozs-out > div { background: var(--aqua-soft); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; }
.ozs-out span { font-size: .78rem; color: var(--muted); }
.ozs-out b { font-size: 1.12rem; color: var(--teal); }
.ozs-out p { grid-column: 1 / -1; margin: 0; }
.ozs-warn { grid-column: 1 / -1; background: var(--warn-soft); color: var(--warn); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.ozd-ctl { display: flex; gap: 8px; align-items: center; padding: 0 16px; flex-wrap: wrap; }
.ozd-ctl:not(:empty) { padding: 10px 16px; }
.ozn-list { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid var(--line); }
.ozn-chip { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: .86rem; font-weight: 600; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); cursor: pointer; }
.ozn-chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ozn-chip.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.oz-band { padding: 36px 0; }
.oz-band .oz-widget { margin: 1em 0 0; }
@media (max-width: 640px) { .ozv-cut input { width: 100px; } .ozs-svg .dim { font-size: 15px; } }
