.ref .tool{margin:20px 0 0;border-top:2px solid var(--ref-rule-strong);border-bottom:1px solid var(--ref-rule);background:var(--ref-sheet);padding:18px 18px 20px;max-width:none}.ref .tool h2,.ref .tool h3{font-family:var(--ref-sans)}.ref .tool fieldset{border:0;margin:0 0 18px;padding:0;min-width:0}.ref .tool legend{font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--ref-ink-3);padding:0;margin:0 0 6px}.ref .tool .row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px 14px;align-items:end}.ref .tool .field{display:flex;flex-direction:column;gap:4px;min-width:0}.ref .tool .lbl,.ref .tool label.lbl{font-size:.88rem;font-weight:600;color:var(--ref-ink)}.ref .tool .hint{font-size:.8rem;color:var(--ref-ink-3)}.ref .tool input[type=text]{font:inherit;font-size:1rem;min-height:44px;padding:0 12px;border:1px solid var(--ref-rule-strong);border-radius:4px;background:var(--ref-paper);color:var(--ref-ink);width:100%;box-sizing:border-box;font-variant-numeric:tabular-nums}.ref .tool input[type=text]:focus-visible{outline:2px solid var(--ref-focus);outline-offset:1px}.ref .tool input[aria-invalid=true]{border-color:oklch(.5 .16 28);border-width:2px}.ref .tool .seg{display:flex;flex-wrap:wrap;gap:0}.ref .tool .seg label{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 14px;border:1px solid var(--ref-rule-strong);margin:0 -1px -1px 0;cursor:pointer;font-size:.95rem;background:var(--ref-paper);color:var(--ref-ink-2)}.ref .tool .seg input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}.ref .tool .seg label:has(input:checked){background:var(--ref-accent);border-color:var(--ref-accent);color:oklch(.985 .004 70);z-index:1}.ref .tool .seg label:has(input:focus-visible){outline:2px solid var(--ref-focus);outline-offset:2px;z-index:2}.ref .tool .check{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:.95rem;cursor:pointer}.ref .tool .check input{width:20px;height:20px;accent-color:var(--ref-accent);margin:0}.ref .tool .line{border-top:1px solid var(--ref-rule);padding:14px 0 4px}.ref .tool .line:first-of-type{border-top:0;padding-top:0}.ref .tool .line-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}.ref .tool .line-head strong{font-size:.9rem}.ref .tool button.btn{font:inherit;font-size:.95rem;min-height:44px;padding:0 16px;border:1px solid var(--ref-accent);border-radius:4px;background:transparent;color:var(--ref-accent);cursor:pointer}.ref .tool button.btn:hover{background:var(--ref-accent-wash)}.ref .tool button.btn.solid{background:var(--ref-accent);color:oklch(.985 .004 70)}.ref .tool button.btn.solid:hover{background:var(--ref-accent-hover)}.ref .tool button.btn.quiet{border-color:var(--ref-rule-strong);color:var(--ref-ink-2)}.ref .tool button.btn[disabled]{opacity:.5;cursor:not-allowed}.ref .tool .actions{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 0}.ref .tool .out{margin-top:22px;border-top:2px solid var(--ref-rule-strong);padding-top:14px}.ref .tool .out h3{margin:0 0 8px;font-size:1rem}.ref .tool .out table{margin:0}.ref .tool .out td.num,.ref .tool .out th.num{text-align:right}.ref .tool .out tr.grand td,.ref .tool .out tr.grand th{font-weight:700;font-size:1.05rem;border-top:2px solid var(--ref-rule-strong)}.ref .tool .notice{margin:12px 0 0;padding:10px 12px;border-top:1px solid var(--ref-rule);border-bottom:1px solid var(--ref-rule);font-size:.92rem;color:var(--ref-ink-2)}.ref .tool .notice.err{color:oklch(.42 .15 28);border-color:oklch(.5 .16 28)}.ref .tool .notice ul{margin:4px 0 0;padding-left:1.1rem}.ref .tool .compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.ref .tool .compare>div{border-top:1px solid var(--ref-rule);padding:10px 0}.ref .tool .compare .big{font-family:var(--ref-mono);font-size:1.5rem;font-variant-numeric:tabular-nums}.ref .tool .compare small{display:block;color:var(--ref-ink-3)}.ref .tool .preview{white-space:pre-wrap;overflow-wrap:anywhere;font-family:var(--ref-sans);font-size:.98rem;background:var(--ref-paper);border:1px solid var(--ref-rule);padding:12px 14px;margin:8px 0 10px;border-radius:4px}.ref .tool .tpl-list{list-style:none;margin:0 0 16px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:0 14px}.ref .tool .tpl-list li{margin:0}.ref .tool .tpl-list label{display:flex;gap:8px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--ref-rule);cursor:pointer;min-height:44px;box-sizing:border-box}.ref .tool .tpl-list input{margin:4px 0 0;accent-color:var(--ref-accent)}.ref .tool .tpl-list small{display:block;color:var(--ref-ink-3)}.ref .tool .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}@container (max-width:560px){.ref .tool .compare{grid-template-columns:1fr}.ref .tool{padding:14px 12px 16px}}.ref .noscript-note{border-top:1px solid var(--ref-rule);border-bottom:1px solid var(--ref-rule);padding:10px 0;color:var(--ref-ink-2)}