/* Biomiv profile switcher (biomiv-profiles.js, operator 2026-12-01). Theme variables first, so it follows the page's
   light or dark preset; fallbacks are the site palette. */
.bmp-switch { position: relative; display: inline-flex; align-items: center; margin-right: 6px; }
.bmp-switch[hidden] { display: none; }
.bmp-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 160px; padding: 3px 10px 3px 3px;
  border: 1px solid var(--hairline, rgba(0, 150, 255, 0.15)); border-radius: 999px; background: transparent;
  color: var(--text, inherit); font: inherit; font-size: 13px; cursor: pointer; }
.bmp-chip:hover, .bmp-chip[aria-expanded="true"] { border-color: var(--accent); }
.bmp-chip:focus-visible, .bmp-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bmp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmp-dot { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; color: var(--bg); font-weight: 700; font-size: 12px; line-height: 1; }
.bmp-panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 1000; width: 290px; max-height: 70vh;
  overflow: auto; padding: 8px; border: 1px solid var(--hairline-strong, rgba(0, 150, 255, 0.3)); border-radius: 10px;
  background: var(--surface); color: var(--text); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.bmp-panel[hidden] { display: none; }
.bmp-h { margin: 4px 6px 6px; font-size: 12px; color: var(--text-muted, inherit); opacity: 0.8; }
.bmp-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 6px; border: 0; border-radius: 8px;
  background: transparent; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.bmp-item:hover { background: rgba(0, 207, 255, 0.08); }
.bmp-item[aria-checked="true"] { background: rgba(0, 207, 255, 0.14); font-weight: 600; }
.bmp-item:disabled { opacity: 0.5; cursor: not-allowed; }
.bmp-item-t { display: flex; flex-direction: column; min-width: 0; }
.bmp-focus { font-size: 11px; font-weight: 400; opacity: 0.75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmp-add-btn { color: var(--accent); }
.bmp-add { display: flex; flex-direction: column; gap: 6px; padding: 6px; }
.bmp-add[hidden] { display: none; }
.bmp-in { width: 100%; box-sizing: border-box; padding: 7px 8px; border: 1px solid var(--hairline, rgba(0, 150, 255, 0.15));
  border-radius: 6px; background: var(--bg, transparent); color: inherit; font: inherit; font-size: 13px; }
.bmp-row { display: flex; gap: 6px; }
.bmp-btn { padding: 6px 12px; border: 1px solid var(--hairline, rgba(0, 150, 255, 0.15)); border-radius: 6px;
  background: transparent; color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.bmp-primary { border-color: var(--accent); color: var(--accent); }
.bmp-manage { display: block; margin: 6px 6px 2px; font-size: 13px; color: var(--accent); }
.bmp-msg { margin: 6px; font-size: 12px; font-weight: 700; padding-left: 8px; border-left: 3px solid var(--text-2); }
.bmp-msg[hidden] { display: none; }
/* "Lab results for Maya · Change" on pages that keep things per profile (data-bmp-for) */
.bmp-for { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; padding: 8px 10px;
  border: 1px solid var(--hairline); border-left: 3px solid var(--accent); border-radius: 8px; font-size: 14px; }
.bmp-for[hidden] { display: none; }
.bmp-for .bmp-btn { padding: 3px 10px; font-size: 12px; }

/* phone: the chip can sit anywhere in the header, so the panel spans the screen instead of hanging off the chip */
@media (max-width: 560px) {
  .bmp-name { display: none; }
  .bmp-chip { padding-right: 3px; }
  .bmp-panel { position: fixed; top: 60px; left: 8px; right: 8px; width: auto; max-height: calc(100vh - 76px); }
}
