/* biomiv.com/goals — My Goals. Theme tokens only (both Biomiv presets); pos/neg colours on the scores only. */
.bmg { max-width: 720px; }
.bmg-head { margin-bottom: 22px; }
.bmg-head h1 { font-size: clamp(32px, 7vw, 48px); letter-spacing: -0.03em; margin: 0 0 8px; color: var(--text-heading, var(--text)); }
.bmg-sub { color: var(--text-2); font-size: 17px; line-height: 1.45; margin: 0; }
#bmGoals .bmg-h { font-size: 14px !important; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2) !important; margin: 26px 0 10px !important; }
.bmg-opt { text-transform: none; letter-spacing: 0; font-weight: 400; opacity: 0.8; }
.bmg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bmg-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--bm-line, var(--hairline)); border-radius: 999px; cursor: pointer; }
.bmg-chip:hover { border-color: var(--accent); }
.bmg-chip.is-on { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.bmg-chip .bmg-rank { display: none; font-size: 12px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 999px; background: var(--bg); color: var(--accent); }
.bmg-chip.is-on .bmg-rank { display: inline-block; }
.bmg-me { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bmg-tile { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--bm-line, var(--hairline)); border-radius: 14px; background: var(--surface); min-width: 0; }
.bmg-tile-k { font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; }
.bmg-tile-v { font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.bmg-tile-v a { color: var(--accent); }
.bmg-tile select { min-height: 36px; font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--bm-line-strong, var(--hairline)); border-radius: 8px; padding: 0 8px; }
.bmg-file { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; overflow-wrap: anywhere; }
.bmg-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bmg-file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.bmg-clear { align-self: flex-start; font: inherit; font-size: 12px; color: var(--text-2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.bmg-fine { color: var(--text-2); font-size: 12.5px !important; line-height: 1.5; margin: 10px 0 0 !important; }
.bmg-go { display: block; width: 100%; min-height: 56px; margin: 26px 0 8px; font: inherit; font-size: 18px; font-weight: 700; color: var(--bg); background: var(--accent); border: 0; border-radius: 16px; cursor: pointer; }
.bmg-go:disabled { opacity: 0.45; cursor: default; }
.bmg-status { color: var(--text-2); font-size: 14px; min-height: 20px; margin: 0 0 8px; }
.bmg-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 18px 0 12px; position: sticky; top: 64px; z-index: 2; background: var(--bg); padding: 6px 0; }
.bmg-tab { min-height: 48px; font: inherit; font-size: 16px; font-weight: 700; color: var(--text-2); background: var(--surface); border: 1px solid var(--bm-line, var(--hairline)); border-radius: 12px; cursor: pointer; }
.bmg-tab b { font-weight: 500; opacity: 0.75; margin-left: 4px; }
.bmg-tab.is-on { color: var(--text); border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.bmg-perso { font-size: 13px !important; color: var(--text-2); margin: 0 0 10px !important; }
.bmg-list { list-style: none; padding: 0 !important; margin: 0 !important; max-width: none !important; }
.bmg-row { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 12px 0 !important; margin: 0 !important; border-bottom: 1px solid var(--bm-line, var(--hairline)); }
.bmg-score { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 58px; border-radius: 14px; background: var(--surface); border: 1px solid var(--bm-line, var(--hairline)); font-family: var(--bm-mono, monospace); }
.bmg-score b { font-size: 24px; line-height: 1; color: var(--pos, var(--positive, var(--accent))); }
.bmg-score.is-neg b { color: var(--neg, var(--negative, var(--text))); }
.bmg-score small { font-size: 10px; color: var(--text-2); margin-top: 2px; }
.bmg-bar { height: 4px; width: 40px; border-radius: 4px; background: var(--bm-line, var(--hairline)); overflow: hidden; margin-top: 4px; }
.bmg-bar i { display: block; height: 100%; background: var(--pos, var(--positive, var(--accent))); }
.bmg-score.is-neg .bmg-bar i { background: var(--neg, var(--negative, var(--text))); }
.bmg-main { min-width: 0; }
.bmg-name { font-size: 17px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.bmg-why { display: block; font-size: 13.5px; color: var(--text-2); margin-top: 2px; line-height: 1.4; }
.bmg-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.bmg-tag { font-size: 11.5px; color: var(--text-2); border: 1px solid var(--bm-line, var(--hairline)); border-radius: 999px; padding: 1px 8px; }
.bmg-tag.is-me { color: var(--accent); border-color: var(--accent); }
.bmg-shop { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bmg-shop a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 11px; font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none !important; background: var(--surface); border: 1px solid var(--bm-line, var(--hairline)); border-radius: 999px; }
.bmg-shop a:hover, .bmg-shop a:focus-visible { border-color: var(--accent); color: var(--accent); }
.bmg-more { margin-top: 6px; font-size: 12.5px; color: var(--text-2); }
.bmg-more summary { cursor: pointer; }
.bmg-more p { font-size: 12.5px !important; margin: 4px 0 0 !important; }
.bmg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.bmg-actions .bma-btn { margin-top: 0; }
.bmg-copied { color: var(--text-2); font-size: 14px; }
.bmg-empty { color: var(--text-2); padding: 16px 0; }
@media (max-width: 600px) {
  .bmg-me { grid-template-columns: 1fr; }
  .bmg-tabs { top: 56px; }
}
