/* The shared calculator stylesheet owns panel dimensions and page margins. */
.upheaval-app [hidden] { display:none !important; }
.upheaval-app .card { margin-bottom:16px; }
.upheaval-app .info-note,.upheaval-app p,.upheaval-app li { font-size:12px; line-height:1.7; }
.upheaval-app h2,.upheaval-app label { line-height:1.5; }
.upheaval-app summary { cursor:pointer; font-weight:600; line-height:1.5; }
.upheaval-app .form-group { min-width:0; margin-bottom:12px; }
.uh-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:0 14px; }
.upheaval-app input,.upheaval-app select,.upheaval-app textarea { width:100%; min-width:0; min-height:38px; }
.upheaval-app textarea { min-height:76px; }
.upheaval-app input[readonly] { background:var(--tint); color:var(--text-muted); }
.uh-actions { display:flex; gap:8px; flex-wrap:wrap; }
.uh-actions button { white-space:normal; line-height:1.5; }
.uh-error { color:#a52b20; margin:5px 0; }
.uh-error:empty { display:none; }
.upheaval-app [aria-invalid=true] { outline:1px solid #a52b20; }
.uh-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; margin:16px 0; }
.uh-metrics > div { background:var(--tint); padding:14px; border-radius:6px; min-width:0; }
.uh-metrics span { display:block; font-size:12px; color:var(--text-muted); line-height:1.5; }
.uh-metrics strong { display:block; font-size:21px; margin-top:6px; color:var(--navy); overflow-wrap:anywhere; }
.uh-check { padding:12px; border-radius:5px; background:#edf7ef; color:#206539; font-weight:600; }
.uh-check.is-fail { background:#fff0eb; color:#a52b20; }
.uh-scroll { overflow-x:auto; }
.uh-table { width:100%; border-collapse:collapse; font-size:12px; line-height:1.6; }
.uh-table th,.uh-table td { padding:10px 8px; border-bottom:1px solid var(--border); text-align:right; font-variant-numeric:tabular-nums; vertical-align:top; }
.uh-table th:first-child,.uh-table td:first-child { text-align:left; }
.uh-table th { font-weight:600; }
.uh-table td { overflow-wrap:anywhere; }
.uh-scroll .uh-table { min-width:540px; }
.uh-fail { color:#a52b20; font-weight:600; }
.uh-pass { color:#206539; font-weight:600; }
.upheaval-app details p { overflow-wrap:anywhere; }
.upheaval-app [id] { scroll-margin-top:calc(var(--chrome-h) + 20px); }
