/* Morning Bio concept. House dark shell, gold, local fonts. */

.bio-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.bio-switch button {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
}

.bio-switch button[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--panel);
}

.bio-signals,
.bio-charts,
.bio-forecast,
.bio-consent {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.bio-sig,
.bio-card,
.bio-chart,
.bio-forecast article,
.bio-practice,
.bio-consent li {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 16px;
  min-width: 0;
}

.bio-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.bio-val {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 40px;
  line-height: 1;
}

.bio-val small {
  font-family: inherit;
  font-size: 16px;
  color: var(--muted);
}

.bio-sub,
.bio-card p,
.bio-practice p,
.bio-forecast p,
.bio-consent li {
  color: var(--muted);
  font-size: 15px;
}

.bio-meter {
  height: 8px;
  margin-top: 12px;
  border-radius: 99px;
  background: var(--bg-raised, #1c1c1f);
  overflow: hidden;
}

.bio-meter i {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
}

.bio-meter i[data-tone="low"] {
  background: #c9846a;
}

.bio-ghost-grid {
  display: grid;
  gap: 12px;
}

.bio-observation {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  line-height: 1.35;
  color: var(--ink);
}

.bio-practice h3,
.bio-forecast h3,
.bio-chart h3 {
  margin: 0 0 8px;
  font-size: 26px;
}

.bio-why {
  margin: 0;
}

.bio-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.bio-chart .bio-baseline {
  stroke: var(--line);
  stroke-dasharray: 4 4;
}

#bio-hrv-line,
#bio-hrv-dots {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
}

#bio-hrv-dots {
  fill: var(--gold);
  stroke: none;
}

#bio-sleep-bars rect {
  fill: var(--gold);
  opacity: 0.55;
}

#bio-sleep-bars rect.is-current {
  opacity: 1;
}

.bio-consent {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.bio-consent strong {
  color: var(--ink);
}

.bio-loop {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(22px, 5vw, 32px);
  line-height: 1.3;
  color: var(--ink);
}

#bio input[type="text"] {
  width: 100%;
  margin-top: 8px;
}

@media (min-width: 720px) {
  .bio-signals,
  .bio-charts,
  .bio-consent {
    grid-template-columns: 1fr 1fr;
  }

  .bio-forecast,
  .bio-ghost-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .bio-ghost-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bio-meter i {
    transition: none;
  }
}
