/* Existing calculator palette and controls; intentionally scoped to this tool. */
.tool-card { padding: 24px; margin-bottom: 32px; border-radius: 16px; background: var(--lavender-soft, #eee9fa); color: var(--ink, #241a30); }
.tool-card [hidden] { display: none !important; }
.tool-form { display: grid; gap: 20px; }
.tool-fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.tool-fieldset legend { font-size: 20px; font-weight: 750; margin-bottom: 12px; }
.tool-field { display: grid; gap: 6px; margin-bottom: 16px; min-width: 0; }
.tool-field label { font-weight: 650; }
.tool-field input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; border: 2px solid var(--line, #cec5dc); border-radius: 12px; padding: 10px 12px; font: inherit; background: white; color: inherit; }
.tool-field input[aria-invalid="true"] { border-color: var(--burgundy, #76203d); }
.tool-choice { display: flex; gap: 12px; align-items: center; min-height: 48px; font-weight: 650; }
.tool-choice input { width: 22px; height: 22px; accent-color: var(--violet, #5a37ac); }
.tool-hint, .tool-privacy, .tool-nojs { font-size: 15px; line-height: 1.5; }
.tool-error { color: var(--burgundy, #76203d); font-weight: 650; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tool-actions button { min-height: 48px; padding: 10px 20px; border: 2px solid var(--ink, #241a30); border-radius: 100px; background: var(--ink, #241a30); color: white; font: inherit; cursor: pointer; }
.tool-actions button[type="reset"] { background: transparent; color: inherit; }
.tool-card :is(input, button):focus-visible { outline: 3px solid var(--violet, #5a37ac); outline-offset: 3px; }
.tool-result { display: block; margin-top: 24px; border-top: 1px solid var(--ink, #241a30); padding-top: 16px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.tool-result p { margin: 0 0 12px; }
@media (max-width: 380px) { .tool-card { padding: 16px; } }
