/* Bio2Twin DESIGN.md v3 — production Personal Model presentation only.
   Scope: no changes to JavaScript, model values, authentication or APIs. */
:root {
  color-scheme: dark;
  --pm-canvas: #0b0c0c;
  --pm-surface: #171919;
  --pm-line: #303435;
  --pm-ink: #e2e5e3;
  --pm-body: #b7bebb;
  --pm-muted: #929b98;
  --pm-accent: #2997ff;
  --bt-observed: #e2e5e3;
  --bt-prediction: #2997ff;
  --bt-research: #d9a15f;
}

body.bt-member-graphite.pmv2,
.bt-member-graphite .pmv2-main-col,
.bt-member-graphite .pmv2-workspace {
  background: #0b0c0c;
  color: #e2e5e3;
}

.bt-member-graphite .pmv2-sidebar,
.bt-member-graphite .pmv2-topbar,
.bt-member-graphite .pmv2-unified-topbar {
  background: #101212;
  border-color: #292d2d;
  box-shadow: none;
}

.bt-member-graphite .pmv2-content { max-width: 1140px; }
.bt-member-graphite .pmhome3-title {
  font-size: clamp(30px, 2.8vw, 42px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -.035em;
}
.bt-member-graphite .pmhome3-head h2 {
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 500;
  letter-spacing: -.018em;
  line-height: 1.35;
}
.bt-member-graphite .pmhome3-date,
.bt-member-graphite .pmhome3-subhead,
.bt-member-graphite .pmhome3-meta,
.bt-member-graphite .pmhome3-metric-unit,
.bt-member-graphite .pmhome3-metric-note,
.bt-member-graphite .pmhome3-delta { color: #a8b0ac; }

/* One neutral visual language for measured metrics; colors never encode truth by card index. */
.bt-member-graphite .pmv2-content :is(
  .pmhome3-metric,
  .pmhome3-trend-item,
  .pmhome3-trend-card,
  .pmhome3-activity-item,
  .pmgpld-score,
  .pmhome3-state-grid > div,
  .pm-login-grid > article
) {
  background: #171919 !important;
  background-image: none !important;
  border: 1px solid #303435 !important;
  border-radius: 14px;
  box-shadow: none !important;
  color: #e2e5e3;
}
.bt-member-graphite #pmhome3Metrics .pmhome3-metric,
.bt-member-graphite .pm-today-metrics .pmhome3-metric {
  padding: 15px 16px;
  min-height: 108px;
}
.bt-member-graphite .pmhome3-metric-value,
.bt-member-graphite .pmhome3-metric .value {
  color: #f1f3f2;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
  line-height: 1.3;
}
.bt-member-graphite .pmhome3-metric-unit,
.bt-member-graphite .pmhome3-metric-value .unit {
  display: inline-block;
  margin-inline-start: 4px;
  color: #a8b0ac;
  font-size: 11px;
  line-height: 1.3;
}
.bt-member-graphite .pmhome3-trends,
.bt-member-graphite .pmhome3-gpld,
.bt-member-graphite .pmhome3-head,
.bt-member-graphite .pmhome3-hero,
.bt-member-graphite .surface-role {
  border-color: #303435;
}
.bt-member-graphite .pmhome3-card,
.bt-member-graphite .pace-pm {
  box-shadow: none;
}
.bt-member-graphite .pmhome3-empty,
.bt-member-graphite .pmhome3-error {
  background: #131515;
  border-color: #363b3a;
  color: #b7bebb;
}

/* Action blue is for navigation, not for decorating real health measurements. */
.bt-member-graphite .pmhome3-head .pm-content-arrow,
.bt-member-graphite :is(.pmhome3-action,.pm-login-actions>a)::after {
  background: #0066cc;
  color: #fff;
  box-shadow: none;
}
.bt-member-graphite .pmhome3-action,
.bt-member-graphite .pm-login-actions > a {
  background: #171919 !important;
  background-image: none !important;
  border: 1px solid #303435 !important;
  box-shadow: none !important;
}
.bt-member-graphite :is(a,button):focus-visible {
  outline: 2px solid #2997ff;
  outline-offset: 3px;
}
.bt-member-graphite :is(.pmhome3-action,.pm-login-actions>a):hover {
  transform: none;
  border-color: #589de1 !important;
}
.bt-member-graphite .pmhome3-head .pm-content-arrow {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}

/* Biomni research is a secondary neutral surface, not an oversized purple hero. */
.bt-member-graphite #pmBiomniFlow {
  background: #171919;
  background-image: none;
  border: 1px solid #303435;
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: none;
}
.bt-member-graphite #pmBiomniFlow h2 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}
.bt-member-graphite #pmBiomniFlow p { color: #b7bebb; line-height: 1.65; }
.bt-member-graphite .pm-biomni-steps { gap: 8px; }
.bt-member-graphite .pm-biomni-steps li {
  background: #111313;
  color: #b7bebb;
  border: 1px solid #303435;
  border-radius: 9px;
  padding: 9px 11px;
}
.bt-member-graphite .pm-biomni-steps li[data-state="active"] {
  border-color: #2997ff;
  color: #e2e5e3;
}
.bt-member-graphite .pm-biomni-steps li[data-state="done"] {
  border-color: #52615c;
  color: #e2e5e3;
}
.bt-member-graphite .pm-biomni-actions button {
  color: #e2e5e3;
  border-color: #404849;
  background: #222626;
  min-height: 44px;
  padding: 10px 15px;
}
.bt-member-graphite .pm-biomni-actions button:not(:disabled):hover {
  border-color: #2997ff;
}
.bt-member-graphite .pm-biomni-actions button:disabled { opacity: .5; }
.bt-member-graphite .pm-biomni-actions a { color: #c5d4df; }

/* Data-semantic cues: observed white/gray, model blue, research amber. */
.bt-member-graphite .pmhome3-metric-name,
.bt-member-graphite .pmhome3-metric-label { color: #e2e5e3; }
.bt-member-graphite .pmhome3-model-top .pmhome3-badge,
.bt-member-graphite .pmhome3-learning { color: #8fc8ff; }
.bt-member-graphite #pmBiomniFlow .pmhome3-meta,
.bt-member-graphite .pm-biomni-note { color: #d9a15f; }

@media (max-width: 900px) {
  .bt-member-graphite .pmv2-content { max-width: none; }
}

@media (max-width: 600px) {
  .bt-member-graphite .pmv2-workspace { padding: 0 16px; }
  .bt-member-graphite .pmv2-content { padding-top: 20px; }
  .bt-member-graphite .pmhome3-title {
    font-size: 30px;
    line-height: 1.25;
  }
  .bt-member-graphite .pmhome3-head h2 { font-size: 18px; }
  .bt-member-graphite .pmhome3-section { margin: 20px 0; }
  .bt-member-graphite #pmBiomniFlow {
    padding: 15px 16px;
    margin-bottom: 20px;
    border-radius: 14px;
  }
  .bt-member-graphite #pmBiomniFlow h2 { font-size: 17px; }
  .bt-member-graphite #pmBiomniFlow p { font-size: 12px; }
  .bt-member-graphite .pm-biomni-steps {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 5px;
  }
  .bt-member-graphite .pm-biomni-steps li {
    font-size: 10px;
    line-height: 1.35;
    padding: 8px 5px;
    overflow-wrap: anywhere;
  }
  .bt-member-graphite .pm-biomni-actions { gap: 8px 10px; }
  .bt-member-graphite .pm-biomni-actions button {
    min-height: 44px;
    font-size: 12px;
    padding: 9px 12px;
  }
  .bt-member-graphite #pmhome3Metrics .pmhome3-metric,
  .bt-member-graphite .pm-today-metrics .pmhome3-metric {
    padding: 13px;
    min-height: 112px;
  }
  .bt-member-graphite .pmhome3-metric-value { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .bt-member-graphite :is(a,button) { transition: none !important; }
}
