/* Existing calculator tokens and native controls, scoped to this tool. */
.tool-card { padding:24px; margin:0 0 32px; border-radius:16px; background:var(--lavender-soft); color:var(--ink); font-size:16px; line-height:1.5; }
.tool-card [hidden] { display:none !important; }
.tool-form { display:grid; gap:20px; }
.tool-items { display:grid; gap:24px; min-width:0; }
.tool-fieldset { min-width:0; border:0; border-bottom:1px solid var(--line); padding:0 0 20px; margin:0; }
.tool-fieldset legend { font-weight:750; margin-bottom:12px; }
.tool-field { display:grid; gap:6px; margin:0 0 16px; min-width:0; }
.tool-field label { font-weight:650; }
.tool-form input, .tool-form select { box-sizing:border-box; width:100%; min-width:0; max-width:100%; min-height:48px; padding:10px; border:2px solid #797080; border-radius:10px; color:var(--ink); background:#fff; font:inherit; }
.tool-form button { min-height:44px; padding:10px 16px; border:2px solid var(--violet); border-radius:10px; background:#fff; color:var(--ink); font:inherit; font-weight:650; cursor:pointer; }
.tool-form button:hover { background:var(--lavender-soft); }
.tool-form button:disabled { opacity:.55; cursor:default; }
.tool-form :focus-visible { outline:3px solid var(--violet); outline-offset:3px; }
.tool-form [aria-invalid="true"] { border-color:var(--burgundy); }
.tool-actions { display:flex; flex-wrap:wrap; gap:10px; }
.tool-error { color:var(--burgundy); font-weight:650; }
.tool-result { display:block; margin-top:24px; padding:16px; background:#fff; border-radius:12px; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.tool-result p { margin:0 0 12px; }
.tool-result p:last-child { margin:0; }
.tool-hint, .tool-privacy, .tool-nojs { font-size:15px; }
@media(max-width:420px) { .tool-card { padding:16px; } }
