﻿.vf-tool-dialog{--ht-bg:#fff;--ht-ink:#06281d;--ht-soft:#edf5ef;--ht-line:#8ba698;--ht-accent:#006b49;box-sizing:border-box;background:var(--ht-bg);color:var(--ht-ink);border:1px solid var(--ht-line);border-radius:20px;padding:28px;width:calc(100% - 24px);max-width:640px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;line-height:1.5}
.vf-tool-dialog::backdrop{background:#001b12b8}.vf-tool-dialog h2{padding-right:35px;font-size:26px}.vf-tool-close{position:absolute;right:14px;top:12px;width:44px;height:44px;font-size:28px}.vf-tool-dialog button,.vf-tool-dialog input,.vf-tool-dialog select{font:inherit;border:1px solid var(--ht-line);border-radius:8px;background:var(--ht-bg);color:var(--ht-ink);min-height:44px;padding:9px;max-width:100%;box-sizing:border-box}.vf-tool-dialog label{display:grid;gap:5px;margin:12px 0}.vf-tool-dialog fieldset{border:0;padding:0;margin:12px 0}.vf-tool-dialog :focus-visible{outline:3px solid var(--ht-accent);outline-offset:3px}.vf-tool-segments,.vf-tool-tabs{display:flex;gap:6px;flex-wrap:wrap}.vf-tool-segments label{display:flex;align-items:center;flex:1;min-width:120px;background:var(--ht-soft);padding:8px;border-radius:8px}.vf-tool-segments input{min-height:20px}.vf-tool-tabs button[aria-selected=true]{background:var(--ht-accent);color:#fff}.vf-tool-result{background:var(--ht-soft);border:1px solid var(--ht-line);border-radius:12px;padding:18px;margin-top:18px}.vf-tool-result strong{font-size:24px;display:block}.vf-tool-action{display:inline-block;margin-top:12px;padding:12px 16px;border-radius:8px;background:#08734e;color:#fff!important;text-decoration:none}.vf-tool-note{font-size:13px}.vf-tool-error{color:#ac291c}.vf-tool-bar{position:relative;height:16px;margin:20px 0 10px;background:linear-gradient(90deg,#b2cfde 0% 23.33%,#8ac59d 23.33% 41.67%,#e6ca81 41.67% 58.33%,#d8a2a2 58.33%);border-radius:10px}.vf-tool-marker{position:absolute;top:-6px;height:28px;width:3px;background:var(--ht-ink)}.vf-tool-hint{display:block;font-size:12px;color:var(--vf-muted,#53685c)}#vf-home-tools .vf-service-card:focus-visible{transform:translateY(-4px)}#vf-home-tools .vf-service-card:hover{box-shadow:0 8px 20px #06281d14}
html[data-theme="dark"] .vf-tool-dialog{--ht-bg:#172620;--ht-ink:#f1f7f3;--ht-soft:#20352c;--ht-line:#6c8978;--ht-accent:#08734e}html[data-theme="dark"] .vf-tool-error{color:#ffb8a9}
@media(prefers-color-scheme:dark){html:not([data-theme="light"]) .vf-tool-dialog{--ht-bg:#172620;--ht-ink:#f1f7f3;--ht-soft:#20352c;--ht-line:#6c8978;--ht-accent:#08734e}html:not([data-theme="light"]) .vf-tool-error{color:#ffb8a9}}
@media(max-width:400px){.vf-tool-dialog{padding:20px}.vf-tool-dialog h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){#vf-home-tools .vf-service-card,#vf-home-tools .vf-service-image img{transition:none;transform:none!important}#vf-home-tools .vf-service-card:focus-visible{transform:none}}

.vf-tool-segments label:has(input:checked){background:var(--ht-accent);color:#fff}.vf-tool-segments label:focus-within{outline:3px solid var(--ht-accent);outline-offset:3px}.vf-tool-height-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
