:root {
  --navy: #1b365d;
  --teal: #0e7c7b;
  --accent: #c45c26;
  --bg: #f4f7fb;
  --text: #111827;
  --muted: #6b7280;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 260px;
  background: var(--navy);
  color: #e8eef7;
  padding: 20px 16px;
  flex-shrink: 0;
}
.sidebar h2 { margin: 0 0 8px; }
.sidebar label { display: block; margin: 14px 0 6px; font-size: 13px; }
.sidebar select {
  width: 100%;
  margin-top: 6px;
  padding: 8px;
  border-radius: 6px;
  border: none;
}
.weight-panel {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.22);
}
.weight-panel h3 { margin: 0 0 10px; font-size: 14px; }
.weight-panel label { margin: 9px 0; }
.weight-panel output { float: right; font-variant-numeric: tabular-nums; }
.weight-panel input[type="range"] { width: 100%; margin-top: 5px; accent-color: #35b8b5; }
.weight-panel button {
  width: 100%; margin-top: 8px; padding: 7px; border: 1px solid #9fb2cf;
  border-radius: 6px; color: white; background: transparent; cursor: pointer;
}
.muted { color: #c5d0e3; font-size: 13px; }
.small { font-size: 12px; line-height: 1.45; }
main { flex: 1; padding: 18px 22px 40px; overflow-x: hidden; }
.banner {
  background: linear-gradient(90deg, var(--navy), var(--teal));
  color: white;
  padding: 18px 22px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.banner h1 { margin: 0; font-size: 24px; }
.banner p { margin: 6px 0 0; opacity: 0.92; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tabs button {
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  color: var(--navy);
}
.tabs button.active { background: var(--navy); color: white; border-color: var(--navy); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 10px 0 16px; }
.card {
  background: white;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(27,54,93,0.1);
  border-left: 4px solid var(--teal);
}
.card h3 { margin: 0; font-size: 12px; color: var(--muted); font-weight: 500; }
.card p { margin: 6px 0 0; font-size: 22px; font-weight: 700; color: var(--navy); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stage-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.stage {
  background: white;
  border-radius: 10px;
  padding: 12px 14px;
  border-top: 3px solid var(--teal);
  box-shadow: 0 2px 8px rgba(27,54,93,0.08);
}
.stage h4 { margin: 0 0 6px; color: var(--navy); font-size: 14px; }
.stage p { margin: 0; font-size: 12px; color: #374151; line-height: 1.5; }
table { width: 100%; border-collapse: collapse; font-size: 12px; background: white; }
th, td { border: 1px solid #e5e7eb; padding: 6px 8px; text-align: left; }
th { background: var(--navy); color: white; }
tr:nth-child(even) { background: #f8fafc; }
.plot { height: 400px; background: white; border-radius: 10px; }
h2.section { color: var(--navy); font-size: 20px; margin: 8px 0 10px; }
.callout { background: #ecfeff; border-left: 4px solid var(--teal); padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.warn { background: #fff7ed; border-left: 4px solid var(--accent); padding: 10px 12px; border-radius: 8px; }
.go { color: #2f855a; font-weight: 700; }
.hold { color: #c45c26; font-weight: 700; }
.nogo { color: #c53030; font-weight: 700; }
footer { margin-top: 24px; color: var(--muted); font-size: 12px; }
@media (max-width: 980px) {
  body { flex-direction: column; }
  .sidebar { width: 100%; }
  .grid2, .stage-grid { grid-template-columns: 1fr; }
}
