/* Mockup torque: kľúč na skrutke zhora, slzičkový plech, chrómový kľúč, oranžová sila, medený oblúk momentu.
   Rozloženie: štítky vľavo pod sebou, výkres vpravo. */
.has-wrn{--wrn-plate:#cfd5dc;--wrn-tr:#aab2bd;--wrn-c1:#f7f9fb;--wrn-c2:#b8c0ca;--wrn-c3:#6f7a87;--wrn-edge:#4b5563;--wrn-f:#ea580c;--wrn-cu:#b45309;--wrn-ink:#1f2937;--wrn-hole:#8b95a1}
@media(prefers-color-scheme:dark){.has-wrn{--wrn-plate:#2b313b;--wrn-tr:#3c4450;--wrn-c1:#eef2f6;--wrn-c2:#9aa4b1;--wrn-c3:#4d5866;--wrn-edge:#11151b;--wrn-f:#fb923c;--wrn-cu:#f59e0b;--wrn-ink:#f1f5f9;--wrn-hole:#1d222a}}

.cres.has-wrn{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);column-gap:1.1rem;row-gap:0;align-items:center}
.cres.has-wrn>*{grid-column:1/-1;min-width:0}
.cres.has-wrn>.wrn-fig{grid-column:2;grid-row:3}
.cres.has-wrn>#out{grid-column:1;grid-row:3}
.cres.has-wrn>.cres-head{grid-row:1}.cres.has-wrn>.empty{grid-row:2}.cres.has-wrn>#say{grid-row:4}.cres.has-wrn>.priv{grid-row:5}.cres.has-wrn>.cres-actions{grid-row:6}.cres.has-wrn>details{grid-row:7}
.cres.has-wrn.is-empty>.wrn-fig{grid-column:1/-1;max-width:460px;justify-self:center;width:100%}

.wrn-fig{position:relative;margin:.9rem 0 .5rem;cursor:pointer;border-radius:14px;box-shadow:0 0 0 1px var(--line),0 10px 24px -14px rgba(0,0,0,.45)}
.wrn-fig svg{display:block;width:100%;height:auto;border-radius:14px}
.wrn-plate{fill:var(--wrn-plate)}
.wrn-tr{fill:var(--wrn-tr)}
.wrn-c1{stop-color:var(--wrn-c1)}.wrn-c2{stop-color:var(--wrn-c2)}.wrn-c3{stop-color:var(--wrn-c3)}
.wrn-washer{fill:var(--wrn-c2);stroke:var(--wrn-edge);stroke-width:1.5}
.wrn-hex{fill:var(--wrn-c3);stroke:var(--wrn-edge);stroke-width:1.5}
.wrn-thread{fill:none;stroke:var(--wrn-c1);stroke-width:2;stroke-dasharray:3 2;opacity:.6}
.wrn-handle,.wrn-ring,.wrn-jaw{stroke:var(--wrn-edge);stroke-width:1.5}
.wrn-hole{fill:var(--wrn-hole);stroke:var(--wrn-edge);stroke-width:1}
.wrn-key{filter:drop-shadow(3px 5px 3px rgba(0,0,0,.3))}
.wrn-dim line{stroke:var(--wrn-ink);stroke-width:1.5}
.wrn-dim line:first-child{stroke-dasharray:4 3}
.wrn-rtxt{font:700 13px/1 ui-monospace,SFMono-Regular,Consolas,monospace;fill:var(--wrn-ink);text-anchor:middle}
.wrn-fline{stroke:var(--wrn-f);stroke-width:6;stroke-linecap:round}
.wrn-fhead{fill:var(--wrn-f)}
.wrn-ftxt{font:800 15px/1 ui-monospace,SFMono-Regular,Consolas,monospace;fill:var(--wrn-f);text-anchor:middle;paint-order:stroke;stroke:var(--wrn-plate);stroke-width:4px}
.wrn-arc{fill:none;stroke:var(--wrn-cu);stroke-width:7;stroke-linecap:round}
.wrn-arrowhead{fill:var(--wrn-cu)}
.wrn-tag rect{fill:var(--wrn-plate);stroke:var(--wrn-cu);stroke-width:2.5}.wrn-tag circle{fill:var(--wrn-cu)}
.wrn-mtxt{font:800 18px/1 ui-monospace,SFMono-Regular,Consolas,monospace;fill:var(--wrn-cu);text-anchor:end}
.wrn-mtxt2{font:700 12px/1 ui-monospace,SFMono-Regular,Consolas,monospace;fill:var(--wrn-ink);text-anchor:end;opacity:.85}
.wrn-fig.is-idle .wrn-force{opacity:.2}

.wrn-ex{display:none;position:absolute;top:10px;right:10px;font:800 .62rem/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase;color:#fff;background:var(--wrn-cu);padding:4px 8px;border-radius:999px}
.wrn-fig.is-example .wrn-ex{display:inline-block}
.wrn-fig.is-example svg{opacity:.6;filter:grayscale(.45)}

/* štítky momentu: vyrazené kovové platne */
.has-wrn #out{grid-template-columns:1fr;gap:.8rem;margin:.9rem 0 .5rem}
.has-wrn .tile{position:relative;border-radius:10px;padding:.9rem 1rem .9rem 1.2rem;background:var(--card);border:1px solid var(--line);border-left:0;box-shadow:inset 6px 0 0 var(--wrn-cu)}
.has-wrn .tile:first-child{background:linear-gradient(135deg,#3b4350,#1f252e);border-color:#11151b;color:#f1f5f9}
.has-wrn .tile dt{font-size:.72rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--mut)}
.has-wrn .tile:first-child dt{color:#cbd5e1}
.has-wrn .tile dd{text-align:left;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:1.45rem}
.has-wrn .tile:first-child dd{font-size:clamp(1.7rem,4.4vw,2.3rem);color:#fbbf24}
.has-wrn .tile:first-child::after{content:"";position:absolute;right:12px;top:50%;width:22px;height:22px;margin-top:-11px;border-radius:50%;border:3px solid #fbbf24;border-right-color:transparent;transform:rotate(30deg);opacity:.7}

@media(max-width:700px){
  .cres.has-wrn{grid-template-columns:1fr}
  .cres.has-wrn>*,.cres.has-wrn>.wrn-fig,.cres.has-wrn>#out{grid-column:1;grid-row:auto}
}
