/* Оценка состава тела. Дополняет calc-phenoage.css + tool-hypertension.css + tool-fib4.css.
   Пилюли (.fib-pill*), карточка (.pa-headline--light), выноска (.fib-plain*) — из tool-fib4.css. */

.pa-field--wide { grid-column: 1 / -1; }

/* Селект под общий стиль полей */
.pa-field__select {
  flex: 1; width: 100%;
  padding: 13px 40px 13px 16px;
  font-size: 15.5px; font-family: var(--v2-font); font-weight: 500;
  color: var(--v2-ink); background: transparent; border: none; outline: none;
  cursor: pointer; appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2370738f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.pa-field__select::-ms-expand { display: none; }

/* Большое число % жира */
.bc-big { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: nowrap; }
#bc-bigval { font-size: clamp(56px, 12vw, 96px); line-height: 1; }
.bc-unit { font-family: var(--v2-font); font-weight: 600; font-size: 20px; letter-spacing: normal; color: var(--v2-ink-3); white-space: nowrap; flex: 0 0 auto; }
.bc-headline-note { margin-top: 8px; font-family: var(--v2-font); font-size: 12.5px; color: var(--v2-ink-3); }
.bc-pills { display: flex; justify-content: center; margin-top: 18px; }
.bc-pills .bc-pill {
  width: min(420px, 94%); box-sizing: border-box; min-height: 46px;
  display: flex; align-items: center; justify-content: center;
  padding: 9px 22px; text-align: center; line-height: 1.25; margin: 0; font-size: 13.5px;
}

.bc-scale-title {
  font-family: var(--v2-font-display, 'Cabinet Grotesk', sans-serif); font-weight: 700;
  font-size: 13.5px; color: var(--v2-ink); margin: 22px 0 8px;
}

/* ── Стековая полоса состава ── */
.bc-compbar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: #e2e8f0; }
.bc-compbar__seg { height: 100%; transition: width .8s cubic-bezier(.22,.61,.36,1); }
.bc-compbar__seg--fat { background: #e8963a; }
.bc-compbar__seg--muscle { background: #0ea5a5; }
.bc-compbar__seg--rest { background: #94a3b8; }
.bc-complegend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 4px; font-family: var(--v2-font); font-size: 13px; color: var(--v2-ink-2); }
.bc-complegend__item { display: flex; align-items: center; gap: 7px; }
.bc-complegend__item b { color: var(--v2-ink); }
.bc-dot { width: 12px; height: 12px; border-radius: 3px; flex: 0 0 auto; }
.bc-dot--fat { background: #e8963a; }
.bc-dot--muscle { background: #0ea5a5; }
.bc-dot--rest { background: #94a3b8; }

/* ── Мышечные индексы ── */
.bc-index-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.bc-index {
  padding: 14px 12px; border-radius: 12px; text-align: center;
  border: 1px solid var(--v2-border, #e6e8f0); background: var(--v2-surface-2, #f7f9fc);
}
.bc-index__label { font-family: var(--v2-font); font-weight: 600; font-size: 11px; letter-spacing: .02em; text-transform: uppercase; color: var(--v2-ink-3); margin-bottom: 4px; }
.bc-index__val { font-family: var(--v2-font-display, 'Cabinet Grotesk', sans-serif); font-weight: 700; font-size: 26px; color: var(--v2-ink); line-height: 1; letter-spacing: -.02em; }
.bc-index__unit { margin-top: 4px; font-size: 11.5px; color: var(--v2-ink-3); line-height: 1.3; }
@media (max-width: 620px) { .bc-index-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Распределение жира ── */
.bc-dist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bc-dist__card { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--v2-border, #e6e8f0); background: var(--v2-surface, #fff); }
.bc-dist__top { font-family: var(--v2-font); font-size: 13.5px; color: var(--v2-ink-2); }
.bc-dist__top b { font-family: var(--v2-font-display, 'Cabinet Grotesk', sans-serif); font-size: 20px; color: var(--v2-ink); margin-left: 4px; }
.bc-dist__sub { margin-top: 5px; font-family: var(--v2-font-display, 'Cabinet Grotesk', sans-serif); font-weight: 700; font-size: 14px; }
.bc-dist__note { margin-top: 6px; font-size: 12.5px; color: var(--v2-ink-3); line-height: 1.45; }
@media (max-width: 560px) { .bc-dist { grid-template-columns: 1fr; } }

/* ── ABSI ── */
.bc-absi { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--v2-border, #e6e8f0); background: var(--v2-surface-2, #f7f9fc); }
.bc-absi__nums { display: flex; gap: 28px; margin-bottom: 8px; }
.bc-absi__item { display: flex; flex-direction: column; }
.bc-absi__lbl { font-family: var(--v2-font); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--v2-ink-3); }
.bc-absi__val { font-family: var(--v2-font-display, 'Cabinet Grotesk', sans-serif); font-weight: 700; font-size: 24px; color: var(--v2-ink); letter-spacing: -.02em; }
.bc-absi__interp { font-size: 13.5px; line-height: 1.5; color: var(--v2-ink-2); margin-bottom: 10px; }
.bc-mort-pill {
  display: inline-block; padding: 7px 16px; border-radius: 99px;
  font-family: var(--v2-font); font-weight: 600; font-size: 13px; color: #fff;
}
.bc-mort-pill--green { background: #059669; }
.bc-mort-pill--amber { background: #d97706; }
.bc-mort-pill--orange { background: #ea580c; }
.bc-mort-pill--red { background: #dc2626; }
.bc-mort-pill--grey { background: #64748b; }

/* ── Рекомендации ── */
.bc-recs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 6px; }
.bc-rec { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--v2-surface, #fff); border: 1px solid var(--v2-border, #e6e8f0); font-size: 13.5px; line-height: 1.5; color: var(--v2-ink-2); }
.bc-rec strong { color: var(--v2-ink); }
.bc-rec__icon { color: #0ea5a5; font-size: 22px; flex: 0 0 auto; }
@media (max-width: 560px) { .bc-recs { grid-template-columns: 1fr; } }

/* ── Ошибка ── */
#bc-error-msg.is-visible {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fee2e2; border: 0; border-left: 4px solid #dc2626; color: #991b1b;
  border-radius: 12px; padding: 14px 18px;
  font-size: 14.5px; font-weight: 600; line-height: 1.45;
  box-shadow: 0 6px 20px rgba(220, 38, 38, .18); animation: fib-err-pop .45s ease;
}
#bc-error-msg.is-visible::before { content: '⚠'; font-size: 18px; line-height: 1.2; flex-shrink: 0; color: #dc2626; }
