/* WHR – "keramická váza": profil vázy = postava (pás a boky), glazúra podľa rizika (seladón / tehlová),
   váza stojí na hrnčiarskom kruhu, pod ňou pravítko pomeru s prahom. Polia ako glazované kachličky. */
:root{--vz-ok:#4f9a7c;--vz-ok2:#3b7d63;--vz-bad:#c4553a;--vz-bad2:#9c3f29;--vz-clay:#d9b38c;--vz-clay2:#b98c63;--vz-tile:#f3f7f3;--vz-ink:#2f2a26}
@media(prefers-color-scheme:dark){:root{--vz-ok:#6cc3a0;--vz-ok2:#4fa585;--vz-bad:#ec7a5c;--vz-bad2:#c95f43;--vz-clay:#8c6a4c;--vz-clay2:#6e5139;--vz-tile:#263330;--vz-ink:#efe7df}}

.cform[data-tool="whr"] .fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}
.cform[data-tool="whr"] .field{margin:0;padding:.75rem .85rem .9rem;border-radius:18px;background:radial-gradient(120% 80% at 20% 0%,color-mix(in srgb,#fff 55%,transparent),transparent 60%),var(--vz-tile);
  border:1px solid color-mix(in srgb,var(--vz-ok) 28%,var(--line));box-shadow:inset 0 -3px 0 color-mix(in srgb,var(--vz-ok) 18%,transparent)}
@media(prefers-color-scheme:dark){.cform[data-tool="whr"] .field{background:var(--vz-tile)}}
.cform[data-tool="whr"] .field label{display:block;margin-bottom:.35rem;font-weight:800;color:color-mix(in srgb,var(--vz-ok2) 70%,var(--fg))}
.cform[data-tool="whr"] .field input,.cform[data-tool="whr"] .field select{font-size:1.2rem;font-weight:750;background:var(--card);border-radius:12px}
.cform[data-tool="whr"] .field .unit{background:var(--card)}
.cform[data-tool="whr"] .field input:focus,.cform[data-tool="whr"] .field select:focus{border-color:var(--vz-ok);box-shadow:0 0 0 3px color-mix(in srgb,var(--vz-ok) 25%,transparent);outline:0}
@media(max-width:640px){.cform[data-tool="whr"] .fields{grid-template-columns:1fr}}

.cform[data-tool="whr"]~.cres{display:grid;grid-template-columns:minmax(0,1fr);column-gap:1.4rem;border-top:4px solid var(--vz-clay)}
.cform[data-tool="whr"]~.cres.is-empty{border-top-color:var(--line)}
.cform[data-tool="whr"]~.cres.vz-lo{border-top-color:var(--vz-ok)}
.cform[data-tool="whr"]~.cres.vz-hi{border-top-color:var(--vz-bad)}
.cform[data-tool="whr"]~.cres>*{grid-column:1/-1;min-width:0}
.cform[data-tool="whr"]~.cres>#scalebox{display:none}
.cform[data-tool="whr"]~.cres dl#out{display:flex;flex-direction:column;gap:.7rem;margin:.6rem 0}
.cform[data-tool="whr"]~.cres #out .tile{--c:var(--vz-clay2);position:relative;text-align:left;padding:.8rem 1rem;border-radius:18px;background:var(--card);border:1px solid var(--line)}
.cform[data-tool="whr"]~.cres #out .tile dt{font-size:.86rem;color:var(--mut);font-weight:700;letter-spacing:.04em}
.cform[data-tool="whr"]~.cres #out .tile dd{text-align:left;font-size:clamp(1.8rem,5vw,2.5rem);font-weight:800;color:var(--fg);-webkit-text-fill-color:currentColor;background:none}
.cform[data-tool="whr"]~.cres #out .tile:nth-child(2) dd{font-size:1.35rem}
.cform[data-tool="whr"]~.cres.vz-lo #out .tile:nth-child(2){background:color-mix(in srgb,var(--vz-ok) 14%,var(--card));border-color:color-mix(in srgb,var(--vz-ok) 50%,var(--line))}
.cform[data-tool="whr"]~.cres.vz-lo #out .tile:nth-child(2) dd{color:var(--vz-ok2)}
.cform[data-tool="whr"]~.cres.vz-hi #out .tile:nth-child(2){background:color-mix(in srgb,var(--vz-bad) 14%,var(--card));border-color:color-mix(in srgb,var(--vz-bad) 50%,var(--line))}
.cform[data-tool="whr"]~.cres.vz-hi #out .tile:nth-child(2) dd{color:var(--vz-bad2)}
@media(prefers-color-scheme:dark){.cform[data-tool="whr"]~.cres.vz-lo #out .tile:nth-child(2) dd{color:var(--vz-ok)}.cform[data-tool="whr"]~.cres.vz-hi #out .tile:nth-child(2) dd{color:var(--vz-bad)}}
@media(min-width:760px){
  .cform[data-tool="whr"]~.cres{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .cform[data-tool="whr"]~.cres>.vz-vase{grid-column:1;grid-row:2/span 2}
  .cform[data-tool="whr"]~.cres>#out{grid-column:2;grid-row:2;align-self:center}
  .cform[data-tool="whr"]~.cres.is-empty>.empty{grid-column:2;grid-row:2}
}

.vz-vase{position:relative;max-width:380px;width:100%;margin:.4rem auto 0}
.vz-vase svg{display:block;width:100%;height:auto;transition:opacity .25s}
.vz-vase .vz-wheel{fill:var(--vz-clay2)}
.vz-vase .vz-wheel2{fill:var(--vz-clay)}
.vz-vase .vz-glaze{fill:var(--vz-ok);transition:fill .5s}
.vz-vase.hi .vz-glaze{fill:var(--vz-bad)}
.vz-vase .vz-drip{fill:var(--vz-ok2);transition:fill .5s;opacity:.85}
.vz-vase.hi .vz-drip{fill:var(--vz-bad2)}
.vz-vase .vz-out{fill:none;stroke:color-mix(in srgb,var(--vz-ink) 55%,transparent);stroke-width:1.6}
.vz-vase .vz-mouth{fill:color-mix(in srgb,var(--vz-ink) 70%,#000);stroke:color-mix(in srgb,var(--vz-ink) 55%,transparent);stroke-width:1.4}
.vz-vase .vz-shine{fill:#fff;opacity:.35;animation:vz-spin 4.5s linear infinite}
.vz-vase .vz-tape line{stroke:#d4a017;stroke-width:3;stroke-dasharray:2 3}
.vz-vase .vz-tape text{fill:var(--vz-ink);font:700 11px system-ui,sans-serif}
.vz-vase .vz-ok{fill:var(--vz-ok)}
.vz-vase .vz-bad{fill:var(--vz-bad)}
.vz-vase .vz-ticks line{stroke:var(--mut);stroke-width:1}
.vz-vase .vz-lbl,.vz-vase .vz-thr text{fill:var(--mut);font:600 10px system-ui,sans-serif}
.vz-vase .vz-thr line{stroke:var(--vz-ink);stroke-width:1.5;stroke-dasharray:2 2}
.vz-vase .vz-thr,.vz-vase .vz-pin{transition:transform .6s cubic-bezier(.3,1.3,.5,1)}
.vz-vase .vz-pin path{fill:var(--vz-ink)}
.vz-vase .vz-glaze,.vz-vase .vz-out{transition:d .6s cubic-bezier(.3,1.2,.5,1),fill .5s}
.vz-vase .mock-ex-badge{position:absolute;top:0;right:0;z-index:2;font:600 .68rem/1 system-ui,sans-serif;letter-spacing:.03em;color:var(--mut);background:var(--card);border:1px solid var(--line);padding:3px 8px;border-radius:999px;opacity:0;transition:opacity .2s;pointer-events:none}
.vz-vase.is-example .mock-ex-badge{opacity:1}
.vz-vase.is-example svg{opacity:.55}
@keyframes vz-spin{from{transform:translateX(0)}to{transform:translateX(340px)}}
@media(prefers-reduced-motion:reduce){.vz-vase .vz-shine{animation:none;transform:translateX(150px)}.vz-vase *{transition:none!important}}
/* posuvník z tool-ui.js na vlastný riadok, aby sa číslo nezužovalo */
.cform[data-tool="whr"] .iu{flex-wrap:wrap}
.cform[data-tool="whr"] .iu input{flex:1 1 0;min-width:0}
.cform[data-tool="whr"] .iu .field-range{order:3;flex:1 0 100%;margin-top:.45rem;accent-color:var(--vz-ok2)}
.cform[data-tool="whr"] .iu.ok::after{order:2;align-self:center;margin-left:.3rem}
.cform[data-tool="whr"] .segs{display:flex;gap:.4rem}
.cform[data-tool="whr"] .segs button{flex:1 1 0;border-radius:12px}
.cform[data-tool="whr"] .segs button[aria-pressed=true]{background:var(--vz-ok2);border-color:var(--vz-ok2);color:#fff}
@media(prefers-color-scheme:dark){.cform[data-tool="whr"] .segs button[aria-pressed=true]{background:var(--vz-ok);border-color:var(--vz-ok);color:#10201a}}
