/* calc-gbc.css - tools component styles, uses tokens.css variables only */
.calc{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface-1);padding:var(--space-6);margin-top:var(--space-6)}
.calc h3{font-family:var(--font-serif);font-weight:500;font-size:var(--step-2);margin:0 0 var(--space-4)}
.calc .fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:var(--space-2) var(--space-5)}
.calc .fields p{margin:0 0 var(--space-3)}
.calc label{display:flex;flex-direction:column;gap:6px;font-size:var(--step--1);font-weight:600;color:var(--text)}
.calc input,.calc select{font:inherit;font-weight:500;font-size:var(--step-0);padding:10px 12px;border:1px solid var(--border-input);border-radius:var(--radius-md);background:var(--bg);color:var(--text);width:100%}
.calc input:focus-visible,.calc select:focus-visible,.calc button:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.calc label.chk{flex-direction:row;align-items:center;gap:10px;font-weight:500}
.calc label.chk input{width:auto}
.calc .hint{font-weight:400;font-size:var(--step--2);color:var(--text-3)}
.calc .actions button{font:inherit;font-size:var(--step--1);font-weight:600;padding:9px 14px;border-radius:var(--radius-pill);border:1px solid var(--border-strong);background:transparent;color:var(--text);cursor:pointer}
.calc [data-out]{margin-top:var(--space-5);padding:var(--space-5);border-radius:var(--radius-md);background:var(--surface-2)}
.calc-rows{margin:0;display:grid;gap:6px}
.calc-rows div{display:flex;justify-content:space-between;gap:16px;border-bottom:1px dashed var(--border);padding:4px 0}
.calc-rows div:last-child{border-bottom:0}
.calc-rows dt{color:var(--text-2);margin:0}
.calc-rows dd{margin:0;font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
.calc-rows .key dt,.calc-rows .key dd{color:var(--text);font-weight:700}
.calc-warn{margin:10px 0 0;color:var(--accent-ink, var(--accent));font-weight:600;font-size:var(--step--1)}
.calc-err{margin:0;font-weight:600}
.calc-note,.calc .note{margin:10px 0 0;font-size:var(--step--1);color:var(--text-3)}
pre.formula{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-md);padding:var(--space-4);overflow:auto;font:500 var(--step--1)/1.6 var(--font-mono);white-space:pre-wrap}
@media (max-width:560px){.calc{padding:var(--space-4)}.calc-rows div{flex-direction:column;gap:2px}.calc-rows dd{text-align:left}}
