/* Tools pages (/tools/*): solid colours and borders only, no gradients, buttons do not lift. */
.tool-card { max-width: 820px; margin: 0 auto; }
.tool-drop { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 36px 16px; text-align: center; }
.tool-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.tool-stage { position: relative; display: inline-block; max-width: 100%; margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; line-height: 0; }
.tool-stage canvas { display: block; max-width: 100%; height: auto; }
.tool-stage #ro-mask { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .6; cursor: crosshair; touch-action: none; }
.tool-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.tool-brush { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.tool-msg { color: var(--bad); font-weight: 600; }
.tool-card #ro-out { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.tool-rights { font-size: 13px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.tool-cta { border: 1px solid var(--line-strong); border-radius: 12px; padding: 16px; margin-top: 14px; background: var(--panel-2); }
.tool-cta h3 { margin: 0 0 6px; }
.tool-embed { width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: 13px ui-monospace, monospace; }
.calc-head, .calc-row { display: grid; grid-template-columns: 2fr 1.2fr 90px; gap: 10px; margin-bottom: 10px; }
.calc-head { font-size: 13px; color: var(--muted); }
.calc-row[hidden] { display: none; }
.calc-row select, .calc-row input { min-height: 40px; background: var(--panel); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 10px; font: inherit; }
/* the result lives outside the narrow form card, in a wide section (guest.css .seo-wide) */
.calc-wide .calc-out { display: block; margin: 0; padding: 0; }
.calc-wide:has(> .calc-out:empty) { margin: 0; }
.calc-out h2 { font-size: 24px; }
@media (max-width: 640px) { .calc-head { display: none; } .calc-row { grid-template-columns: 1fr 1fr; } .calc-row select:first-child { grid-column: 1 / -1; } }
.calc-all th, .calc-all td, .calc-result th, .calc-result td { white-space: nowrap; }
.calc-notes { font-size: 13px; line-height: 1.6; padding-left: 20px; }
