/* Mockup work-power: portálový žeriav s kladkostrojom (bezpečnostná žltá + oceľ) a záprah koní ako miera výkonu. */
.has-hoi{--hoi-y:#f2b705;--hoi-k:#1f2328;--hoi-steel:#5b6573;--hoi-steel2:#8a94a3;--hoi-wood:#b7793f;--hoi-wood2:#8a5526;--hoi-sky:#f4f6f8;--hoi-ink:#1f2328;--hoi-red:#d9480f;--hoi-panel:#1f2328;--hoi-pink:#f8f9fa}
@media(prefers-color-scheme:dark){.has-hoi{--hoi-y:#ffc61a;--hoi-k:#0f1115;--hoi-steel:#7c8696;--hoi-steel2:#a7b0bd;--hoi-wood:#c98a4d;--hoi-wood2:#9a6431;--hoi-sky:#1a1f2b;--hoi-ink:#e9edf3;--hoi-red:#ff8a4c;--hoi-panel:#0f1115;--hoi-pink:#e9edf3}}

.hoi-fig{position:relative;display:flex;flex-wrap:wrap;gap:12px;margin:.9rem 0 .5rem;padding:12px;border-radius:12px;cursor:pointer;
  background:linear-gradient(180deg,var(--hoi-sky),color-mix(in srgb,var(--hoi-sky) 70%,var(--hoi-y) 8%));
  border:1px solid var(--line);box-shadow:inset 0 -6px 0 var(--hoi-y)}
.hoi-fig svg{display:block;height:auto;min-width:0}
.hoi-scene{flex:1.4 1 300px;max-width:100%}
.hoi-power{flex:1 1 220px;max-width:100%}

.hoi-hz-a{fill:var(--hoi-y)}.hoi-hz-b{fill:var(--hoi-k)}
.hoi-beam{stroke:var(--hoi-k);stroke-width:2}
.hoi-gr{fill:var(--hoi-steel);opacity:.45}
.hoi-ground{stroke:var(--hoi-ink);stroke-width:3}
.hoi-post{fill:var(--hoi-steel)}
.hoi-brace{stroke:var(--hoi-steel);stroke-width:7;fill:none;stroke-linecap:round}
.hoi-trolley rect,.hoi-trolley circle{fill:var(--hoi-k);stroke:var(--hoi-steel2);stroke-width:1.5}
.hoi-trolley .hoi-motor{fill:var(--hoi-y);stroke:var(--hoi-k);stroke-width:2}
.hoi-trolley .hoi-drum{fill:var(--hoi-k);stroke:none}
.hoi-chain{stroke:var(--hoi-steel2);stroke-width:4;stroke-dasharray:6 3;stroke-linecap:round}
.hoi-ghost{fill:none;stroke:var(--hoi-ink);stroke-width:1.5;stroke-dasharray:5 4;opacity:.35}
.hoi-hook{fill:none;stroke:var(--hoi-steel2);stroke-width:4;stroke-linecap:round}
.hoi-sling{fill:none;stroke:var(--hoi-ink);stroke-width:2}
.hoi-box{fill:var(--hoi-wood);stroke:var(--hoi-wood2);stroke-width:3}
.hoi-plank{stroke:var(--hoi-wood2);stroke-width:2.5;fill:none}
.hoi-farrow line{stroke:var(--hoi-red);stroke-width:5;stroke-linecap:round}
.hoi-farrow path{fill:var(--hoi-red)}
.hoi-ftxt{font:700 15px/1 ui-monospace,SFMono-Regular,Consolas,monospace;fill:var(--hoi-red);text-anchor:middle}
.hoi-rl{stroke:var(--hoi-ink);stroke-width:2}
.hoi-small{font:600 12.5px/1 ui-monospace,SFMono-Regular,Consolas,monospace;fill:var(--hoi-pink)}
.hoi-rtxt{fill:var(--hoi-ink);text-anchor:end}

/* panel výkonu – tmavá tabuľa ovládača žeriavu */
.hoi-panel{fill:var(--hoi-panel);stroke:var(--hoi-y);stroke-width:3}
.hoi-watch{fill:#fffdf5;stroke:var(--hoi-y);stroke-width:4}
.hoi-pin{fill:var(--hoi-y)}
.hoi-sweep{fill:var(--hoi-y);opacity:.35}
.hoi-hand{stroke:var(--hoi-red);stroke-width:3;stroke-linecap:round}
.hoi-ttxt{font:700 19px/1 ui-monospace,SFMono-Regular,Consolas,monospace;fill:var(--hoi-y)}
.hoi-ptxt{font:800 24px/1 ui-monospace,SFMono-Regular,Consolas,monospace;fill:var(--hoi-y)}
.hoi-h-bg{fill:none;stroke:var(--hoi-steel2);stroke-width:.9;opacity:.6}
.hoi-h-fg{fill:var(--hoi-y)}
.hoi-h-eye{fill:var(--hoi-panel)}
.hoi-horse{animation:hoiIn .4s ease var(--d,0ms) backwards}
@keyframes hoiIn{from{opacity:0}to{opacity:1}}

.hoi-fig.is-idle .hoi-crate .hoi-farrow{opacity:.25}

/* príkladové hodnoty z data-ex – tlmené, so štítkom "napr." */
.hoi-ex{display:none;position:absolute;top:8px;left:10px;z-index:3;font:700 .62rem/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--hoi-k);background:var(--hoi-y);padding:4px 8px;border-radius:3px}
.hoi-fig.is-example .hoi-ex{display:inline-block}
.hoi-fig.is-example svg{opacity:.62;filter:saturate(.55)}

/* výsledky ako nitované oceľové štítky */
.has-hoi #out{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.7rem}
.has-hoi #out .tile{grid-column:auto}
.has-hoi .tile{position:relative;border-radius:6px;border:2px solid var(--hoi-k);background:linear-gradient(180deg,color-mix(in srgb,var(--hoi-steel2) 22%,var(--card)),var(--card));padding:1.05rem 1.1rem .8rem;overflow:hidden}
.has-hoi .tile::before{content:"";position:absolute;left:0;right:0;top:0;height:7px;background:repeating-linear-gradient(45deg,var(--hoi-y) 0 9px,var(--hoi-k) 9px 18px)}
.has-hoi .tile::after{content:"";position:absolute;right:10px;bottom:10px;width:7px;height:7px;border-radius:50%;background:var(--hoi-steel2);box-shadow:-14px 0 0 var(--hoi-steel2)}
.has-hoi .tile dt{font-size:.74rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--mut)}
.has-hoi .tile dd{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:1.6rem;color:var(--fg)}
.has-hoi .tile:nth-child(2){border-color:var(--hoi-y)}

@media(max-width:640px){.hoi-fig{padding:8px}.has-hoi .tile dd{font-size:1.35rem}}
@media(prefers-reduced-motion:reduce){.hoi-horse{animation:none}}
