/* Existing site tokens and calculator control conventions. */
.tool-card { margin: 0 0 32px; padding: 24px; border-radius: 16px; background: var(--lavender-soft, #f0e9ff); color: var(--ink, #231d2d); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.tool-card [hidden] { display: none !important; }
.tool-form { display: grid; gap: 24px; }
.tool-fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.tool-fieldset legend { font-weight: 750; font-size: 20px; margin-bottom: 12px; }
.tool-field { display: grid; gap: 6px; margin: 16px 0; min-width: 0; }
.tool-field label { font-weight: 650; }
.tool-field input, .tool-field select { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid var(--tool-control-border, #81728e); border-radius: 12px; background: white; color: inherit; font: inherit; }
.tool-field [aria-invalid="true"] { border-color: var(--burgundy, #67223c); }
.tool-error { margin: 0; color: var(--burgundy, #67223c); font-weight: 650; }
.tool-hint, .tool-privacy, .tool-nojs { font-size: 14px; line-height: 1.5; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-actions button { min-height: 48px; padding: 10px 18px; border: 2px solid var(--ink, #231d2d); border-radius: 100px; background: transparent; color: inherit; font: inherit; font-weight: 650; cursor: pointer; }
.tool-actions button[type="submit"] { background: var(--ink, #231d2d); color: white; }
.tool-actions button:hover { background: var(--violet, #6340a6); border-color: var(--violet, #6340a6); color: white; }
.tool-field input:focus-visible, .tool-field select:focus-visible, .tool-actions button:focus-visible { outline: 3px solid var(--violet, #6340a6); outline-offset: 3px; }
.tool-result { display: block; margin-top: 24px; padding-top: 20px; border-top: 1px solid currentColor; font-size: 18px; font-weight: 600; }
@media (max-width: 380px) { .tool-card { padding: 16px; } }
