/* Calculator components extend the shared Arrow tokens. */
.sov-calculator{padding:24px;border:1px solid var(--a16);border-radius:var(--r-lg);background:var(--bg-card);margin:28px 0}
.sov-calculator fieldset{padding:0;border:0;min-width:0}
.sov-calculator legend{font-size:20px;font-weight:600;margin-bottom:14px}
.sov-calculator label{display:grid;gap:7px;font-size:14px;line-height:1.5;min-width:0}
.sov-calculator input,.sov-calculator select{width:100%;box-sizing:border-box;min-height:48px;border:1px solid var(--a16);border-radius:var(--r-sm);background:var(--bg-card);color:var(--ink);padding:10px 12px;font-family:inherit;font-size:16px;line-height:1.4}
.sov-calculator input:focus-visible,.sov-calculator select:focus-visible,.sov-calculator button:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.sov-calculator .sov-panel{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}
.sov-calculator .sov-outcome{grid-column:1/-1}
.sov-brand-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:12px;align-items:end;margin:16px 0}
.sov-calculator .btn{min-height:48px;cursor:pointer;white-space:normal;text-align:center;font:inherit}
.sov-calculator button:disabled{opacity:.5;cursor:default}
.sov-calculator .sov-actions{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 12px}
.sov-calculator .sov-status{font-size:15px;line-height:1.6;color:var(--ink)}
.sov-calculator [hidden]{display:none!important}
.sov-result-wrap{overflow-x:auto;max-width:100%;margin:20px 0}
.sov-calculator table{border-collapse:collapse;width:100%;font-size:14px;line-height:1.5}
.sov-calculator caption{text-align:left;font-weight:600;margin-bottom:12px}
.sov-calculator th,.sov-calculator td{padding:12px 10px;border-bottom:1px solid var(--a12);text-align:left;overflow-wrap:anywhere}
.sov-calculator [data-sov-summary]{font-weight:500}
.sov-calculator .sov-help{font-size:14px;color:var(--muted);line-height:1.7}
.sov-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.sov-calculator{padding:18px}.sov-calculator .sov-panel,.sov-brand-row{grid-template-columns:minmax(0,1fr)}.sov-brand-row{border-top:1px solid var(--a12);padding-top:16px}.sov-brand-row button{justify-self:start}.sov-calculator .sov-actions{flex-direction:column}.sov-calculator th,.sov-calculator td{padding:10px 5px;font-size:12px}}

@media(max-width:600px){
 .sov-calculator thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 .sov-calculator tbody,.sov-calculator tbody tr,.sov-calculator tbody th{display:block}
 .sov-calculator tbody tr{border:1px solid var(--a12);border-radius:var(--r-sm);padding:12px;margin:12px 0}
 .sov-calculator tbody th{border:0;font-size:15px;padding:6px 0 12px}
 .sov-calculator tbody td{display:flex;justify-content:space-between;gap:16px;font-size:14px;padding:10px 0;white-space:nowrap}
 .sov-calculator tbody td::before{content:attr(data-label);white-space:normal;color:var(--muted)}
 .sov-calculator tbody td:last-child{border-bottom:0}
}
