/* Uses the existing article palette and typeface. */
.tool-card { margin: 0 0 32px; padding: 24px; border-radius: 16px; background: var(--lavender-soft, #f2edfa); color: var(--ink, #291a38); line-height: 1.5; }
.tool-card *, .tool-card *::before, .tool-card *::after { box-sizing: border-box; }
.tool-card [hidden] { display: none !important; }
.tool-privacy, .tool-nojs { margin: 0 0 20px; font-size: 15px; }
.tool-form { display: grid; gap: 24px; }
.tool-fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.tool-fieldset legend { padding: 0; margin-bottom: 16px; font-size: 20px; font-weight: 750; }
.tool-field { display: grid; gap: 6px; margin-bottom: 16px; min-width: 0; }
.tool-field label { font-weight: 650; }
.tool-form input[type="text"], .tool-form select { width: 100%; min-width: 0; max-width: 100%; min-height: 48px; padding: 10px; border: 2px solid var(--line, #d3cbdc); border-radius: 10px; background: #fff; color: var(--ink, #291a38); font: inherit; }
.tool-hint, .tool-field small, .tool-fieldset > small { display: block; color: var(--ink, #291a38); font-size: 14px; }
.tool-check { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.tool-check input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--violet, #6843a8); }
.tool-error { margin: 0; color: var(--burgundy, #741c39); font-weight: 650; font-size: 14px; }
.tool-form [aria-invalid="true"] { border-color: var(--burgundy, #741c39); }
.tool-form :is(input, select, button):focus-visible { outline: 3px solid var(--violet, #6843a8); outline-offset: 3px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-actions button { max-width: 100%; min-height: 48px; padding: 10px 16px; border: 2px solid var(--ink, #291a38); border-radius: 100px; color: var(--ink, #291a38); background: transparent; font: inherit; font-weight: 650; cursor: pointer; }
.tool-actions button[type="submit"] { color: #fff; background: var(--ink, #291a38); }
.tool-result { display: grid; gap: 12px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--ink, #291a38); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.tool-result-line { display: block; }
.tool-result-line:first-child { font-size: 20px; font-weight: 750; }
@media (max-width: 380px) { .tool-card { padding: 14px; } .tool-form select { font-size: 15px; } }
