/* Panel sizing, position, padding and breakpoints come from the shared calculator stylesheet. */
.velocity-app [hidden] { display:none !important; }
.velocity-app .card { margin-bottom:16px; }
.velocity-app .section-heading,.velocity-app .results-section h2 { line-height:1.5; }
.velocity-app .info-note { font-size:12px; line-height:1.65; margin:10px 0; }
.velocity-app .form-group { min-width:0; margin-bottom:12px; }
.velocity-app label { line-height:1.5; }
.velocity-app [id] { scroll-margin-top:calc(var(--chrome-h) + 20px); }
.velocity-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.velocity-app input:not([type=radio]),.velocity-app select,.velocity-app textarea { width:100%; min-width:0; min-height:38px; }
.velocity-app textarea { min-height:76px; }
.velocity-app input[readonly] { background:var(--tint); color:var(--text-muted); cursor:default; }
.reference-options { border:0; min-width:0; padding:0; margin:4px 0 12px; display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:8px; }
.reference-options legend { font-size:12px; font-weight:600; color:var(--text-muted); margin-bottom:8px; }
.reference-options label { display:flex; align-items:center; gap:10px; border:1px solid var(--border); border-radius:6px; padding:10px 12px; margin:0; cursor:pointer; }
.reference-options input { flex:0 0 16px; width:16px; height:16px; margin:0; accent-color:var(--blue); }
.reference-options small,.component-row small { display:block; font-size:11px; font-weight:400; color:var(--text-muted); line-height:1.5; margin-top:3px; }
.reference-options label:has(input:checked) { background:var(--tint); border-color:var(--blue); }
.reference-definitions { font-size:12px; line-height:1.65; padding:10px 12px; margin:12px 0; background:var(--tint); border-left:3px solid var(--blue); border-radius:4px; }
.reference-definitions p { margin:6px 0; }
.velocity-error { color:#a52b20; font-size:12px; line-height:1.5; margin:5px 0; }
.velocity-error:empty { display:none; }
.velocity-app [aria-invalid=true] { outline:1px solid #a52b20; }
.component-heading,.component-row { display:grid; grid-template-columns:minmax(0,1fr) 132px; align-items:center; gap:16px; }
.component-heading { font-size:11px; font-weight:600; color:var(--text-muted); padding:12px 0 8px; }
.component-heading > :last-child { text-align:right; }
.component-row { padding:10px 0; border-top:1px solid var(--border); }
.component-row > * { min-width:0; }
.component-row label { font-size:12px; margin:0; }
.component-row input { text-align:right; font-variant-numeric:tabular-nums; }
.composition-total { background:var(--tint); padding:12px; border-radius:5px; font-size:13px; line-height:1.6; font-weight:600; margin:14px 0 6px; }
.composition-total.is-invalid { background:#fff0eb; color:#a52b20; }
#extraComponents { margin:14px 0; border-block:1px solid var(--border); }
#extraComponents summary,.gas-method summary { cursor:pointer; font-size:13px; line-height:1.6; font-weight:600; color:var(--navy); padding:12px 0; }
.gas-method summary { padding:0; }
.gas-method[open] summary { margin-bottom:14px; }
.composition-actions { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0; }
.composition-actions button { font-size:12px; padding:9px 12px; white-space:normal; line-height:1.5; }
.gas-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; margin:16px 0; }
.gas-metrics > div { min-width:0; padding:12px; background:var(--tint); border-radius:6px; }
.gas-metrics span { display:block; color:var(--text-muted); font-size:12px; line-height:1.5; margin-bottom:7px; }
.gas-metrics strong { display:block; color:var(--navy); font-size:21px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.velocity-summary { border-top:3px solid var(--blue); }
.velocity-number { font-size:36px; font-weight:600; color:var(--navy); margin:14px 0; overflow-wrap:anywhere; }
.velocity-number small { font-size:18px; font-weight:400; }
.velocity-check { padding:10px 12px; border-radius:5px; background:#edf7ef; color:#206539; font-size:14px; font-weight:600; line-height:1.5; }
.velocity-check.is-fail { background:#fff0eb; color:#a52b20; }
.velocity-table { width:100%; table-layout:fixed; border-collapse:collapse; font-size:12px; line-height:1.6; }
.velocity-table th,.velocity-table td { text-align:left; padding:10px 8px; border-bottom:1px solid var(--border); vertical-align:top; overflow-wrap:anywhere; }
.velocity-table th { width:44%; }
.velocity-table td { text-align:right; font-variant-numeric:tabular-nums; }
.velocity-table tbody th { font-weight:400; color:var(--text-muted); }
.velocity-table thead { background:var(--tint); }
.velocity-equations,.gas-method { font-size:12px; line-height:1.75; overflow-wrap:anywhere; }
.velocity-equations p,.gas-method p { margin:12px 0; }
.velocity-app .table-scroll { overflow-x:auto; }
.velocity-app .save-feedback { display:block; margin-top:10px; line-height:1.5; }
#pipeOverrides summary { cursor:pointer; font-weight:600; font-size:13px; line-height:1.6; }
.velocity-pipes-table { width:100%; min-width:650px; border-collapse:collapse; font-size:12px; line-height:1.6; }
.velocity-pipes-table th,.velocity-pipes-table td { padding:8px; text-align:right; border-bottom:1px solid var(--border); font-variant-numeric:tabular-nums; }
.velocity-pipes-table th:first-child,.velocity-pipes-table td:first-child { text-align:left; overflow-wrap:anywhere; }
.velocity-pipes-table .is-fail { color:#a52b20; font-weight:600; }
@media(max-width:540px) {
  .velocity-fields { grid-template-columns:minmax(0,1fr); gap:0; }
  .component-heading,.component-row { grid-template-columns:minmax(0,1fr) 108px; gap:10px; }
}
