/* Moduł „Opiekun prawny” – style narzędzi. Korzysta wyłącznie ze zmiennych style.css serwisu. */
.opr-tool{max-width:52rem}
.opr-q{margin:1.4rem 0 1.6rem;padding:1rem 1.1rem 1.1rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}
.opr-q[hidden]{display:none}
.opr-lk{border:0;margin:0;padding:0;min-width:0}
.opr-lk legend{padding:0;margin-bottom:.4rem;font-weight:700;line-height:1.35;color:var(--navy)}
.opr-lk .opr-hint{font-size:.92rem;color:var(--muted);margin:.1rem 0 .4rem}
.opr-scale{position:relative;display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr))}
.opr-scale.opr-n2{max-width:24rem}.opr-scale.opr-n3{max-width:34rem}
.opr-scale::before{content:"";position:absolute;top:26px;left:calc(50% / var(--n,3));right:calc(50% / var(--n,3));height:2px;background:var(--border)}
.opr-opt{position:relative;display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:0 2px 4px;cursor:pointer;min-width:0}
.opr-hit{position:relative;height:52px;width:100%;min-width:44px;display:flex;align-items:center;justify-content:center}
.opr-hit input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.opr-dot{width:var(--z,32px);height:var(--z,32px);border-radius:999px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;background:var(--surface);border:2.5px solid var(--muted);color:#fff;font-weight:800;font-size:calc(var(--z,32px) * .5)}
.opr-hit input:checked+.opr-dot{background:var(--teal);border:3px solid var(--teal);box-shadow:0 0 0 4px var(--ok-bg)}
.opr-hit input:checked+.opr-dot::after{content:"✓"}
.opr-hit input:focus-visible+.opr-dot{outline:3px solid var(--focus);outline-offset:3px}
.opr-opt:hover .opr-dot{border-color:var(--teal)}
.opr-lbl{font-size:.82rem;line-height:1.2;text-align:center;color:var(--muted);overflow-wrap:normal;hyphens:manual;min-width:0}
.opr-opt:has(input:checked) .opr-lbl{color:var(--text);font-weight:800}
.opr-clear{margin-top:.1rem;min-height:36px;padding:.2rem .5rem;border:0;background:transparent;color:var(--teal);text-decoration:underline;cursor:pointer;font:inherit;font-size:.9rem}
.opr-clear[hidden]{display:none}
@media (max-width:560px){.opr-scale{grid-template-columns:1fr;max-width:none!important}.opr-scale::before{display:none}.opr-opt{flex-direction:row;justify-content:flex-start;gap:.6rem}.opr-hit{width:52px;flex:0 0 52px}.opr-lbl{text-align:left;font-size:.95rem}}
.opr-field{margin:1rem 0}
.opr-field label{display:block;font-weight:700;color:var(--navy);margin-bottom:.3rem}
.opr-field input[type=text],.opr-field input[type=date],.opr-field input[type=number],.opr-field textarea{width:100%;max-width:36rem;font:inherit;padding:.55rem .7rem;border:2px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text)}
.opr-field textarea{min-height:6rem}
.opr-field input:focus,.opr-field textarea:focus{outline:3px solid var(--focus);outline-offset:2px}
.opr-res{margin-top:1.5rem}
.opr-res .card h3{margin-top:.2rem}
.opr-status{display:inline-block;font-weight:800;font-size:.85rem;padding:.1rem .55rem;border-radius:999px;border:2px solid var(--border)}
.opr-status.tak{background:var(--ok-bg);border-color:var(--teal)}
.opr-status.moze{background:var(--warn-bg);border-color:var(--warn-b)}
.opr-status.nie{background:var(--surface2)}
.opr-alarm{border:3px solid var(--accent);background:var(--accent-bg);border-radius:var(--radius);padding:1rem 1.2rem;margin:1.2rem 0}
.opr-alarm h2,.opr-alarm h3{margin-top:0;color:var(--accent)}
.opr-steps{counter-reset:s;list-style:none;padding-left:0}
.opr-steps>li{counter-increment:s;position:relative;padding-left:2.4rem;margin:.6rem 0}
.opr-steps>li::before{content:counter(s);position:absolute;left:0;top:.05rem;width:1.8rem;height:1.8rem;border-radius:999px;background:var(--teal);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center}
.opr-big{font-size:1.6rem;font-weight:800;color:var(--navy)}
.opr-tabs{display:flex;flex-wrap:wrap;gap:.4rem;margin:.6rem 0 1rem}
.opr-out{white-space:pre-wrap;font-family:"Liberation Serif","Times New Roman",serif;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:1.2rem 1.4rem;max-width:44rem;line-height:1.55}
.opr-hub .card .ico{color:var(--teal)}
@media print{header.site,footer.site,.crumbs,.share,.opr-noprint{display:none!important}.opr-out{border:0;padding:0}}
.opr-scale.opr-list{grid-template-columns:1fr;max-width:none!important}
.opr-scale.opr-list::before{display:none}
.opr-scale.opr-list .opr-opt{flex-direction:row;justify-content:flex-start;gap:.6rem;align-items:center}
.opr-scale.opr-list .opr-hit{width:52px;flex:0 0 52px}
.opr-scale.opr-list .opr-lbl{text-align:left;font-size:.98rem}
.opr-hint{font-size:.92rem;color:var(--muted);margin:.1rem 0 .4rem}
.opr-out mark,.letter-doc mark{background:var(--warn-bg);color:inherit}
