.tool-panel{--tool-ink:#192033;--tool-muted:#626579;--tool-line:#dddce7;--tool-purple:#6840d8;--tool-light:#f5f2ff;color:var(--tool-ink);background:#fff;border:1px solid var(--tool-line);border-radius:26px;padding:clamp(22px,4vw,48px);box-shadow:0 12px 40px rgba(36,21,78,.045);margin:28px 0;text-align:left}
.tool-panel *{box-sizing:border-box}
.tool-kicker{display:inline-flex;align-items:center;gap:8px;color:#5330b2;background:var(--tool-light);border:1px solid #e4dafd;border-radius:99px;font-size:.72rem;font-weight:750;letter-spacing:.07em;text-transform:uppercase;padding:6px 11px;margin:0 0 14px}
.tool-heading{font:inherit;font-size:clamp(1.5rem,2.8vw,2.1rem);font-weight:750;letter-spacing:-.045em;line-height:1.16;color:var(--tool-ink);margin:0 0 12px}
.tool-intro{color:var(--tool-muted);font-size:1rem;line-height:1.7;max-width:72ch;margin:0 0 26px}
.tool-form{margin:0}
.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.tool-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.tool-field{display:flex;flex-direction:column;min-width:0;gap:8px}
.tool-full{grid-column:1/-1}
.tool-label{color:var(--tool-ink);font-size:.85rem;line-height:1.5;font-weight:650;margin:0}
.tool-optional{font-weight:400;color:var(--tool-muted)}
.tool-input,.tool-select,.tool-textarea{width:100%;min-width:0;border:1px solid #cbcbd8;background:#fff;border-radius:10px;padding:12px 13px;font:inherit;font-size:.94rem;line-height:1.55;color:var(--tool-ink);margin:0;box-shadow:0 1px 2px rgba(18,17,31,.025);transition:border-color .15s ease,box-shadow .15s ease}
.tool-input::placeholder,.tool-textarea::placeholder{color:#78798b;opacity:1}
.tool-input:focus,.tool-select:focus,.tool-textarea:focus{outline:3px solid #ded4ff;outline-offset:2px;border-color:var(--tool-purple)}
.tool-input:disabled,.tool-textarea:disabled{background:#f7f7fa;color:var(--tool-muted)}
.tool-textarea{resize:vertical;min-height:100px}
.tool-transcript{min-height:260px}
.tool-help{font-size:.77rem;line-height:1.65;color:var(--tool-muted);margin:0}
.tool-help a,.tool-note a{color:#5431b2;text-decoration:underline;text-underline-offset:3px}
.tool-help a:hover,.tool-note a:hover{color:#352064}
.tool-help a:focus-visible,.tool-note a:focus-visible{outline:3px solid #c9b9fa;outline-offset:4px;border-radius:2px}
.tool-fieldset{min-width:0;border:1px solid var(--tool-line);border-radius:15px;padding:22px;margin:0 0 24px}
.tool-legend{font-size:.8rem;font-weight:700;color:#56506b;letter-spacing:.02em;padding:0 8px}
.tool-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:24px}
.tool-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;border:1px solid var(--tool-purple);border-radius:10px;padding:11px 19px;background:var(--tool-purple);color:#fff;font:inherit;font-size:.86rem;font-weight:650;line-height:1.4;cursor:pointer;text-align:center;text-decoration:none;transition:background .15s ease,transform .15s ease}
.tool-button:hover{background:#5130b1;border-color:#5130b1;transform:translateY(-1px)}
.tool-button:focus-visible{outline:3px solid #c9b9fa;outline-offset:3px}
.tool-button-secondary{background:#fff;border-color:#d8d3e7;color:#503092}
.tool-button-secondary:hover{background:#f4f0ff;border-color:#ad99e4}
.tool-button:disabled{opacity:.5;cursor:not-allowed;transform:none}
.tool-button:disabled:hover{background:#ece8f6;border-color:#d8d3e7;color:#625977}
.tool-action-note{font-size:.77rem;line-height:1.6;color:var(--tool-muted);margin:0}
.tool-status{min-height:1.55em;font-size:.82rem;line-height:1.65;color:#4f3b7c;padding:0;margin:16px 0 0;overflow-wrap:anywhere}
.tool-status[data-state=error]{color:#a12441;background:#fff2f4;border:1px solid #f5cbd4;border-radius:10px;padding:12px 14px}
.tool-status:focus{outline:3px solid #dfc4ce;outline-offset:3px;border-radius:5px}
.tool-result{border-top:1px solid var(--tool-line);margin-top:24px;padding-top:26px}
.tool-result[hidden]{display:none!important}
.tool-result-heading{font:inherit;font-size:1.13rem;font-weight:700;letter-spacing:-.015em;line-height:1.4;margin:0 0 16px;color:var(--tool-ink)}
.tool-output{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:.8rem;line-height:1.7;min-height:280px;background:#faf9fd;color:#383049;border-color:#ddd6eb;tab-size:2;overflow-wrap:anywhere}
.tool-output-link{min-height:115px}
.tool-output-xml{min-height:420px}
.tool-result .tool-actions{margin-top:10px}
.tool-note{font-size:.79rem;line-height:1.75;color:#656074;background:#f7f5fb;border:1px solid #eae4f4;border-radius:11px;padding:14px 16px;margin:20px 0 0;overflow-wrap:anywhere}
.tool-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 20px}
.tool-metric{background:#f7f6fa;border:1px solid #e7e4ee;border-radius:13px;padding:19px 16px;min-width:0}
.tool-metric dt{font-size:.75rem;line-height:1.6;color:#696477;margin:0 0 9px}
.tool-metric dd{color:#201b30;font-size:clamp(1.25rem,2.4vw,1.75rem);line-height:1.2;font-weight:750;letter-spacing:-.04em;overflow-wrap:anywhere;margin:0}
.tool-metric-feature{background:#eee7ff;border-color:#d8c9fb}
.tool-metric-feature dt{color:#56358c}
.tool-metric-feature dd{color:#5630b2}
.tool-metrics-pair{grid-template-columns:repeat(2,minmax(0,1fr));max-width:550px}
.tool-formula{font-size:.8rem;line-height:1.75;color:#625c70;margin:0;max-width:85ch}
.tool-formula strong{font-weight:650;color:#373041}
@media(max-width:720px){.tool-grid-three{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-output{min-height:250px}.tool-fieldset{padding:18px}}
@media(max-width:540px){.tool-panel{border-radius:19px;padding:23px 18px}.tool-grid,.tool-grid-three{grid-template-columns:minmax(0,1fr);gap:17px}.tool-fieldset{padding:16px 12px}.tool-actions{align-items:stretch}.tool-button{flex:1 1 auto}.tool-input,.tool-select,.tool-textarea{font-size:16px}.tool-output{font-size:13px}.tool-metric{padding:16px 12px}.tool-metric dd{font-size:1.3rem}.tool-action-note{width:100%}}
@media(prefers-reduced-motion:reduce){.tool-button,.tool-input,.tool-select,.tool-textarea{transition:none}.tool-button:hover{transform:none}}
