/* Phase 4 - thermal & moisture science panel. Uses the app's design tokens. */
.phase4-panel { margin-top: 22px; }
.p4-index {
  min-width: 68px; text-align: center; padding: 8px 12px; border-radius: 12px;
  font-weight: 900; font-size: 20px; background: var(--panel2); border: 1px solid var(--line);
}
.p4-index small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); }
.p4-index.attention { color: var(--gold2); border-color: var(--gold); }
.p4-index.warning { color: var(--amber); border-color: var(--amber); }
.p4-index.critical { color: var(--red); border-color: var(--red); }
.p4-index.normal { color: var(--green); border-color: var(--green); }

.p4-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.p4-card { background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.p4-card h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.p4-big { font-size: 30px; font-weight: 800; line-height: 1; }
.p4-big span { font-size: 15px; font-weight: 600; color: var(--muted); }
.p4-sub { color: var(--muted); font-size: 12px; margin-top: 6px; }
.p4-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.p4-row:last-child { border-bottom: 0; }
.p4-row b { font-weight: 700; }
.p4-band { height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--green), var(--amber), var(--red)); position: relative; margin: 12px 0 6px; }
.p4-band i { position: absolute; top: -4px; width: 3px; height: 16px; background: var(--text); border-radius: 2px; }
.p4-chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid var(--line); }
.p4-chip.toward_core { color: var(--amber); border-color: var(--amber); }
.p4-chip.toward_surface { color: var(--blue); border-color: var(--blue); }
.p4-chip.stable { color: var(--muted); }
.p4-factors ul { list-style: none; margin: 0; padding: 0; }
.p4-factors li { display: flex; justify-content: space-between; font-size: 12.5px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.p4-factors li b { color: var(--gold2); }
.p4-note { color: var(--muted); font-size: 11.5px; margin-top: 14px; line-height: 1.5; }
.p4-sim { color: var(--amber); font-weight: 700; }
