/* Uses the established article palette and calculator form vocabulary. */
.tool-card { padding: 24px; margin: 24px 0 32px; background: var(--lavender-soft, #eee8ff); border-radius: 16px; color: var(--ink, #252126); font-size: 16px; line-height: 1.5; }
.tool-card [hidden] { display: none !important; }
.tool-form { display: grid; gap: 16px; }
.tool-field { display: grid; gap: 6px; min-width: 0; }
.tool-field label { font-weight: 650; }
.tool-form input, .tool-form select, .tool-form button { box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 2px solid var(--line, #82768d); border-radius: 10px; background: #fff; color: var(--ink, #252126); font: inherit; }
.tool-form :focus-visible { outline: 3px solid var(--violet, #7040e8); outline-offset: 3px; }
.tool-form [aria-invalid="true"] { border-color: var(--burgundy, #77263f); }
.tool-hint, .tool-privacy, .tool-nojs { font-size: 15px; }
.tool-error { margin: 0; color: var(--burgundy, #77263f); font-weight: 600; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tool-actions button { width: auto; flex: 1 1 130px; cursor: pointer; font-weight: 650; }
.tool-actions button:hover { background: var(--lavender-soft, #eee8ff); border-color: var(--ink, #252126); }
.tool-actions button:active { background: #fff; }
.tool-result { display: block; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line, #82768d); font-size: 18px; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
@media (max-width: 400px) { .tool-card { padding: 16px; } }
