/* Free tools (/gst-calculator, /amount-in-words, /invoice-number-generator) on the public .legal layout. */
.tool { margin: var(--s6) 0; display: grid; gap: var(--s5); }
.legal .tool > h2 { margin: 0; font-size: var(--fs-lg); font-weight: 700; color: var(--text); }
.tool-choice legend { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-800); margin-bottom: 6px; }
.tool-error { margin: 0; color: var(--red-700); font-weight: 600; font-size: var(--fs-sm); }
.tool-result { margin: 0; }
.tool-result th { text-align: left; font-weight: 600; color: var(--text); text-transform: none; letter-spacing: 0; font-size: var(--fs-sm); background: none; }
.tool-result td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tool-result th { border-bottom: 1px solid var(--border); }
.tool-total th, .tool-total td { font-weight: 700; border-top: 2px solid var(--border-strong); border-bottom: 0; }
.tool-words { font-size: var(--fs-lg); font-weight: 600; line-height: 1.45; margin: 0; padding: var(--s4); background: var(--surface-2); border-radius: var(--r-md); min-height: 3em; }
.tool-list { margin: 0; padding-left: 1.2em; font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.tool-note { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.tool-note.warn { color: var(--red-700); font-weight: 600; }
