.bio-lab { --bio-mint-bg: rgba(61,220,151,0.18); }
.bio-lab .bio-back { min-height: 44px; margin: -6px 0 0; padding: 0; }
.bio-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.bio-title { margin: 0; font-size:calc(17px * var(--fs, 1)); font-weight: 700; line-height: 1.2; }
.bio-seg { display: flex; flex: none; background: var(--surface-2); border-radius: 12px; padding: 3px; }
.bio-seg button {
  border: 0; background: none; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size:calc(14px * var(--fs, 1));
  padding: 0 8px; min-height: 36px; border-radius: 8px; color: var(--text-muted); cursor: pointer;
}
.bio-seg button { position: relative; }
.bio-seg button::after { content: ''; position: absolute; inset: -4px 0; }
.bio-seg button.on { background: var(--nav-sel-bg); color: var(--primary-ink); box-shadow: inset 0 0 0 1px var(--primary); }
.bio-seg button:disabled { cursor: default; }
.bio-seg small { font-size:calc(12px * var(--fs, 1)); font-weight: 600; }
.bio-lab-wide .bio-seg.bio-seg-grid { flex-wrap: wrap; gap: 2px; }
.bio-lab-wide .bio-seg.bio-seg-grid button { flex: 1 1 calc(50% - 2px); }
.bio-scene-card {
  position: relative; background: var(--surface); border-radius: 20px; padding: 6px;
  width: min(100%, max(240px, calc(100vh - 339px)));
  width: min(100%, max(240px, calc(100dvh - 339px)));
  margin: 0 auto; box-sizing: border-box;
}
#bio-scene { display: block; width: 100%; height: auto; font-family: 'Montserrat', sans-serif; }
.bio-scene-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 0; }
.bio-phase-chip { min-width: 0; font-size:calc(15px * var(--fs, 1)); font-weight: 700; line-height: 1.25; color: var(--text); overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bio-pult { margin: 4px 0 0; }
#bio-scrub, #bc-scrub {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0;
  background: transparent; cursor: pointer; touch-action: pan-y;
}
#bio-scrub::-webkit-slider-runnable-track, #bc-scrub::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--primary) 0 var(--bio-progress, 0%), var(--surface-2) var(--bio-progress, 0%) 100%);
}
#bio-scrub::-moz-range-track, #bc-scrub::-moz-range-track { height: 6px; border-radius: 3px; background: var(--surface-2); }
#bio-scrub::-moz-range-progress, #bc-scrub::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--primary); }
#bio-scrub::-webkit-slider-thumb, #bc-scrub::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--primary); box-sizing: border-box;
}
#bio-scrub::-moz-range-thumb, #bc-scrub::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); box-sizing: border-box; }
.bio-ticks { display: flex; margin: -8px 0 0; }
.bio-ticks button {
  flex: 1; min-width: 0; border: 0; background: none; padding: 4px 0; cursor: pointer;
  font-family: 'Montserrat', sans-serif; font-size:calc(12px * var(--fs, 1)); font-weight: 600; color: var(--text-muted);
  white-space: nowrap; border-left: 1px solid var(--border);
  min-height: 32px;
}
.bio-ticks button:first-child { border-left: 0; }
.bio-ticks button { position: relative; }
.bio-ticks button::after { content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: -6px; }
.bio-ticks button.cur { color: var(--primary-ink); }
.bio-ticks .short { display: none; }
@media (max-width: 380px) {
  .bio-ticks .full { display: none; }
  .bio-ticks .short { display: inline; }
}
.bio-ticks.fit-short .full { display: none; }
.bio-ticks.fit-short .short { display: inline; }
.bio-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 8px 0 0; }
.bio-btn {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer;
}
.bio-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bio-btn svg .fill { fill: currentColor; stroke: none; }
.bio-btn-text { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size:calc(14px * var(--fs, 1)); }
.bio-btn.bio-play { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--primary); color: #0d2b1e; }
.bio-btn.bio-play svg { width: 24px; height: 24px; }
#bio-labels.on { border-color: var(--primary); color: var(--primary-ink); }
.bio-nc {
  flex: none; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size:calc(20px * var(--fs, 1)); line-height: 1.2;
  background: var(--bio-mint-bg); color: var(--primary-ink); border-radius: 8px; padding: 4px 10px;
}
@media (max-width: 359px) { .bio-nc { font-size:calc(17px * var(--fs, 1)); padding: 4px 8px; } }
.bio-counts { margin: 16px 0 12px; font-size:calc(14px * var(--fs, 1)); line-height: 1.4; color: var(--text); }
.bio-caption { background: var(--surface); border-radius: 16px; padding: 12px 16px; }
.bio-phase-title { margin: 0; font-size:calc(15px * var(--fs, 1)); font-weight: 700; }
.bio-sub { margin: 4px 0 0; color: var(--text-muted); font-size:calc(12px * var(--fs, 1)); font-weight: 600; }
.bio-caption ul { margin: 8px 0 0; padding: 0; list-style: none; font-size:calc(14px * var(--fs, 1)); line-height: 1.45; }
.bio-caption li { margin: 2px -8px; padding: 2px 8px 2px 22px; position: relative; border-radius: 8px; }
.bio-caption li::before { content: ''; position: absolute; left: 10px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted); }
.bio-caption li.key { background: var(--bio-mint-bg); }
.bio-caption li.key::before { background: var(--primary-ink); }
.bio-more {
  border: 0; background: none; padding: 8px 0 0; min-height: 36px; color: var(--text-muted);
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size:calc(12px * var(--fs, 1)); cursor: pointer;
}
.bio-chip {
  display: block; margin: 12px 0 0; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted);
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size:calc(14px * var(--fs, 1)); cursor: pointer;
}
.bio-chip.on { border-color: var(--primary); color: var(--primary-ink); }
.bio-chip[hidden] { display: none; }
#screen-bio-pics { --bio-g-dark: #487B57; --bio-g-main: #CEE8B5; --bio-g-bg: #ECF5D4; overflow-anchor: none; }
#bio-pics-home h1 { text-transform: lowercase; }
#bio-pics-home .subtitle { font-size:calc(15px * var(--fs, 1)); line-height: normal; margin: 2px 0 16px; }
.bio-pics-sections { margin: 0 0 18px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.bio-pics-sections::-webkit-scrollbar { display: none; }
.bio-pics-sections .oxide-chip { flex: none; width: auto; min-height: 44px; padding: 6px 14px; font-size:calc(13px * var(--fs, 1)); white-space: nowrap; }
.bio-pics-tiles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 16px; }
.bio-pics-tiles .bio-pics-tile { min-height: 150px; padding: 14px; border-radius: 22px; gap: 8px; }
.bio-pics-tiles .bio-pics-tile .bio-group-ico { width: 38px; height: 38px; }
.bio-pics-tiles .bio-pics-tile .bio-group-ico .ic { width: 21px; height: 21px; }
.bio-pics-tiles .bio-pics-tile .bio-group-title { font-size:calc(16px * var(--fs, 1)); letter-spacing: -0.2px; line-height: 1.15; hyphens: none; -webkit-hyphens: none; overflow-wrap: break-word; }
.bio-pics-tiles .bio-pics-tile .bio-group-sub { font-size:calc(12px * var(--fs, 1)); margin-top: 4px; }
.bio-pics-tiles .bio-pics-tile .bio-group-text { max-width: 100%; }
.bio-pics-tiles .bio-pics-tile .bio-group-wm { width: 90px; height: 90px; right: -14px; bottom: -18px; }
.bio-pics-tiles .bio-pics-tile .bio-group-arrow { width: 36px; height: 36px; }
.bio-pics-tiles .bio-pics-tile:disabled { cursor: default; filter: saturate(0.6); }
.bio-pics-tiles .bio-pics-tile:disabled:active { transform: none; }
.bio-pics-tiles .bio-pics-wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
.bio-pics-tiles .bio-pics-wide .bio-group-text { flex: 1; min-width: 0; }
.bio-pics-tiles .bio-pics-wide .bio-group-title { font-size:calc(19px * var(--fs, 1)); hyphens: manual; -webkit-hyphens: manual; }
@media (max-width: 359px) { .bio-pics-tiles .bio-pics-wide .bio-group-title { font-size:calc(17px * var(--fs, 1)); } .bio-pics-thumb { width: 64px; height: 50px; } }
.bio-pics-tiles .bio-pics-wide .bio-group-arrow { flex: none; }
.bio-pics-thumb { flex: none; width: 76px; height: 58px; border-radius: 12px; background: #fff center / contain no-repeat; position: relative; z-index: 1; }
.bio-pics-ring { position: relative; z-index: 1; flex: none; width: 44px; height: 44px; }
.bio-pics-ring svg { display: block; width: 44px; height: 44px; transform: rotate(-90deg); }
.bio-pics-ring circle { fill: none; stroke-width: 4; }
.bio-pics-ring .tr { stroke: currentColor; stroke-opacity: 0.2; }
.bio-pics-ring .ok { stroke: var(--bio-g-main); }
.bio-pics-ring .er { stroke: #ffc93c; }
:root.theme-light .bio-pics-ring .ok { stroke: var(--bio-g-dark); }
:root.theme-light .bio-pics-ring .er { stroke: #a06c0e; }
.bio-pics-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size:calc(12px * var(--fs, 1)); font-weight: 800; letter-spacing: -0.3px; }
.bio-pics-ring b svg { width: 18px; height: 18px; transform: none; }
.bio-pics-head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.bio-pics-title { flex: 1; min-width: 0; margin: 0; font-size:calc(17px * var(--fs, 1)); font-weight: 700; line-height: 1.2; color: var(--text); }
.bio-pics-prog { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.bio-pics-counter { flex: none; margin: 0; font-size:calc(12px * var(--fs, 1)); font-weight: 600; color: var(--text-muted); }
.bio-pics-bar { flex: 1; min-width: 48px; display: flex; height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bio-pics-bar i { display: block; height: 100%; }
.bio-pics-bar .ok { background: var(--primary); }
.bio-pics-bar .err { background: var(--gold); }
.bio-pics-stick {
  position: sticky; top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)); z-index: 20;
  margin: 0 -16px; padding: 6px 16px 8px; background: var(--bg); box-shadow: 0 8px 12px -10px rgba(0,0,0,0.35);
}
.bio-pics-prompt { margin: 0 0 6px; font-size:calc(14px * var(--fs, 1)); color: var(--text); }
.bio-pics-imgbtn { display: block; width: fit-content; max-width: 100%; margin: 0 auto; padding: 0; border: 0; background: #fff; border-radius: 12px; overflow: hidden; cursor: zoom-in; touch-action: manipulation; }
.bio-pics-img { display: block; width: auto; max-width: 100%; height: auto; max-height: var(--bp-img-max, 46vh); transition: max-height 0.2s ease; }
.bio-pics-img.bio-pics-loading { visibility: hidden; }
.bio-pics-picbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.bio-pics-zbtn { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--surface); color: var(--text); font: 700 13px 'Montserrat', sans-serif; cursor: pointer; }
.bio-pics-stick[data-size="kbd"] .bio-pics-picbar { display: none; }
.bio-pics-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.bio-pic-row {
  display: flex; align-items: flex-start; gap: 10px;
  scroll-margin-top: calc(var(--bp-stick-h, 0px) + 8px + var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)); scroll-margin-bottom: 16px;
}
.bio-pic-num {
  flex: none; width: 36px; height: 36px; margin-top: 4px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size:calc(15px * var(--fs, 1)); color: var(--text); background: var(--surface-2); box-sizing: border-box;
}
.bio-pic-answer { flex: 1; min-width: 0; }
.bio-pic-row-named { flex-direction: column; align-items: stretch; gap: 4px; }
.bio-pic-row-named .bio-pic-num { width: auto; height: auto; margin: 0; border-radius: 0; background: none; justify-content: flex-start; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size:calc(13px * var(--fs, 1)); color: var(--text-muted); }
.bio-pic-row-named .bio-pic-answer { flex: none; }
.bio-pic-field { width: 100%; margin: 0; min-height: 44px; font-family: 'Montserrat', sans-serif; font-size:calc(15px * var(--fs, 1)); box-sizing: border-box; }
select.bio-pic-field { padding-right: 8px; }
.bio-pic-row:focus-within .bio-pic-num { background: var(--bio-g-dark); color: #fff; }
.bio-pic-row-named:focus-within .bio-pic-num { background: none; color: var(--primary-ink); }
.bio-pic-row:focus-within .bio-pic-field { border-color: var(--primary-dark); box-shadow: 0 0 0 3px rgba(61,220,151,0.25); }
.bio-pic-row.correct .bio-pic-field { border-color: var(--primary-dark); background: rgba(61,220,151,0.15); }
.bio-pic-row.wrong .bio-pic-field { border-color: var(--coral); background: rgba(255,92,92,0.12); }
.bio-pic-row.skipped .bio-pic-field { border: 2px dashed var(--text-muted); background: transparent; }
.bio-pic-row.correct .bio-pic-field:disabled, .bio-pic-row.wrong .bio-pic-field:disabled { opacity: 1; color: var(--text); -webkit-text-fill-color: var(--text); }
.bio-pic-row.skipped .bio-pic-field:disabled { opacity: 1; color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); }
.bio-pic-row.correct:not(.bio-pic-row-named) .bio-pic-num { background: rgba(61,220,151,0.22); color: var(--primary-ink); }
.bio-pic-row.wrong:not(.bio-pic-row-named) .bio-pic-num { background: rgba(255,92,92,0.18); color: var(--coral-ink); }
.bio-pic-row.skipped:not(.bio-pic-row-named) .bio-pic-num { background: transparent; border: 2px dashed var(--text-muted); color: var(--text-muted); }
.bio-pic-row.empty-warn .bio-pic-field { border: 2px dashed var(--gold-ink); }
.bio-pic-fix { margin: 4px 0 0; font-size:calc(13px * var(--fs, 1)); font-weight: 700; color: var(--primary-ink); }
.bio-pic-row.skipped .bio-pic-fix { color: var(--text); font-weight: 600; }
.bio-pic-tag { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; font-size:calc(12px * var(--fs, 1)); font-weight: 800; }
.bio-pic-row.wrong .bio-pic-tag { background: rgba(255,92,92,0.16); color: var(--coral-ink); }
.bio-pic-row.skipped .bio-pic-tag { background: var(--surface-2); color: var(--text-muted); }
.bio-pics-warn { margin-top: 12px; }
.feedback.bio-pics-skipfb { background: var(--surface-2); color: var(--text); }
.bio-pics-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.bio-pics-pills[hidden] { display: none; }
.bio-pics-pill { font-size:calc(13px * var(--fs, 1)); font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.bio-pics-pill.ok { background: rgba(61,220,151,0.18); color: var(--primary-ink); }
.bio-pics-pill.err { background: rgba(255,92,92,0.14); color: var(--coral-ink); }
.bio-pics-pill.skip { background: var(--surface-2); color: var(--text-muted); border: 1px dashed var(--text-muted); }
.bio-pics-end-head { text-align: center; padding: 4px 0 0; }
.bio-pics-end-ico { width: 84px; height: 84px; margin: 6px auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--bio-g-dark); color: #fff; }
.bio-pics-end-ico .ic { width: 44px; height: 44px; }
.bio-pics-end-head h1 { margin: 0; font-size:calc(24px * var(--fs, 1)); }
.bio-pics-end-head p { margin: 4px 0 14px; color: var(--text-muted); font-size:calc(14px * var(--fs, 1)); line-height: 1.4; }
.bio-pics-end-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.bio-pics-end-stat span { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 14px; background: var(--surface); font-size:calc(12px * var(--fs, 1)); font-weight: 600; color: var(--text-muted); text-align: center; }
.bio-pics-end-stat b { font-size:calc(22px * var(--fs, 1)); color: var(--text); }
.bio-pics-end-stat .ok b { color: var(--primary-ink); }
.bio-pics-end-stat .err b { color: var(--gold-ink); }
.bio-pics-endbtn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; margin: 0 0 8px; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--surface); color: var(--text); font-family: 'Montserrat', sans-serif; text-align: left; cursor: pointer; }
.bio-pics-endbtn .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bio-pics-endbtn b { font-size:calc(16px * var(--fs, 1)); line-height: 1.25; }
.bio-pics-endbtn .t span { font-size:calc(13px * var(--fs, 1)); line-height: 1.35; color: var(--text-muted); }
.bio-pics-endbtn > .arrow-roboto { flex: none; font-size:calc(18px * var(--fs, 1)); color: var(--text-muted); }
.bio-pics-endbtn.main { background: var(--bio-g-dark); color: #fff; }
.bio-pics-endbtn.main .t span, .bio-pics-endbtn.main > .arrow-roboto { color: #fff; }
.bio-pics-zoom { padding: 0; overflow: hidden; background: #0b0d10; touch-action: none; }
.bio-pics-zoom-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.bio-pics-zoom-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; background: #fff; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.bio-pics-zoom-pill {
  position: absolute; left: 12px; top: calc(12px + env(safe-area-inset-top, 0px) + var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,0.66); color: #fff; font: 700 13px 'Montserrat', sans-serif; pointer-events: none;
}
.bio-pics-zoom-mini {
  position: absolute; right: 12px; top: calc(66px + env(safe-area-inset-top, 0px) + var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  width: 96px; border-radius: 8px; overflow: hidden; background: #fff; border: 1.5px solid rgba(255,255,255,0.6); pointer-events: none;
}
.bio-pics-zoom-mini[hidden] { display: none; }
.bio-pics-zoom-mini img { display: block; width: 100%; }
.bio-pics-zoom-mini i { position: absolute; border: 2px solid #13a36a; box-sizing: border-box; }
.bio-pics-zoom-bot { position: absolute; left: 12px; right: 12px; bottom: calc(16px + max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px))); display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.bio-pics-zoom-hint { margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,0.72); color: #f0f0f0; font: 600 13px/1.35 'Montserrat', sans-serif; text-align: center; }
.bio-pics-zoom-btns { display: flex; gap: 12px; pointer-events: auto; }
.bio-pics-zoom-btns button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.16); color: #fff; font: 700 24px/1 'Montserrat', sans-serif; cursor: pointer; }
.bio-pics-zoom-btns button:disabled { opacity: 0.4; cursor: default; }
.bio-pics-zoom-close {
  position: fixed; top: calc(12px + env(safe-area-inset-top, 0px) + var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px;
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff; cursor: pointer; z-index: 2;
}
.bio-pics-home-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: clamp(6px, calc(2dvh - 7px), 8px); }
.bio-pics-home-stats i { font-style: normal; font-size:calc(12px * var(--fs, 1)); font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,0.2); }
:root.theme-light .bio-pics-home-stats i { background: #fff; color: #2f5a3c; }
.bio-pics-home-bar { display: block; height: 5px; margin-top: 8px; border-radius: 3px; background: rgba(255,255,255,0.2); overflow: hidden; }
:root.theme-light .bio-pics-home-bar { background: rgba(72,123,87,0.18); }
.bio-pics-home-bar b { display: block; height: 100%; border-radius: 3px; background: var(--bio-g-main); }
:root.theme-light .bio-pics-home-bar b { background: var(--bio-g-dark); }
.bio-pics-home-stats[hidden], .bio-pics-home-bar[hidden], .trainer-soon .bio-pics-home-stats, .trainer-soon .bio-pics-home-bar { display: none; }
@media (max-height: 760px), (max-width: 379px) { #screen-biology .bio-pics-home-stats i + i { display: none; } }
@media (max-width: 379px) { .bio-pics-home-bar { margin-top: 6px; } }
@media (max-width: 379px), (max-height: 760px) { #screen-biology .bio-home-tile.has-progress:not(.trainer-soon) .bio-group-sub { display: none; } }
@media (max-height: 680px) { #screen-biology .bio-pics-home-bar { display: none; } }
.bio-anim-list { display: flex; flex-direction: column; gap: 12px; margin-top: 0; }
.bio-anim-list .module-card { margin-bottom: 0; }
#screen-bio-anim, #screen-biology { --bio-g-dark: #487B57; --bio-g-main: #CEE8B5; --bio-g-bg: #ECF5D4; }
#screen-anatomy { --bio-g-dark: #2E6DA6; --bio-g-main: #B2DCF8; --bio-g-bg: #E3F2FC; }
.bio-group-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 128px; padding: 20px 22px; border: 0; border-radius: 28px; text-align: left; cursor: pointer;
  font-family: 'Montserrat', sans-serif; background: var(--bio-g-dark); color: #fff; transition: transform 0.12s ease;
}
:root.theme-light .bio-group-tile { background: var(--bio-g-bg); color: #181818; }
.bio-group-tile:active { transform: scale(0.98); }
.bio-group-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.bio-group-ico, .bio-row-ico { border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(255,255,255,0.18); }
:root.theme-light .bio-group-ico { background: var(--bio-g-dark); }
.bio-group-ico { width: 44px; height: 44px; }
.bio-group-ico .ic { width: 24px; height: 24px; }
.bio-group-arrow { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size:calc(18px * var(--fs, 1)); line-height: 1; background: rgba(255,255,255,0.18); }
:root.theme-light .bio-group-arrow { background: #fff; color: #181818; }
.bio-group-wm { position: absolute; right: -16px; bottom: -26px; width: 130px; height: 130px; color: var(--bio-g-main); opacity: 0.3; pointer-events: none; }
:root.theme-light .bio-group-wm { opacity: 0.6; }
.bio-group-wm .ic { width: 100%; height: 100%; }
.bio-group-text { position: relative; z-index: 1; display: block; max-width: 80%; }
.bio-group-title { display: block; font-size:calc(26px * var(--fs, 1)); font-weight: 700; letter-spacing: -0.5px; line-height: 1.1; text-transform: lowercase; }
.bio-group-sub { display: block; margin-top: 4px; font-size:calc(14px * var(--fs, 1)); line-height: 1.35; }
:root.theme-light .bio-group-sub { color: #434343; opacity: 1; }
#screen-bio-anim h1, #screen-anatomy h1 { text-transform: lowercase; }
#screen-bio-anim .subtitle, #screen-anatomy .subtitle { font-size:calc(15px * var(--fs, 1)); line-height: normal; margin: 2px 0 16px; }
.bio-anim-list.bio-anim-rows { gap: 0; background: var(--surface); border-radius: 24px; overflow: hidden; }
.bio-anim-list .bio-anim-row {
  margin: 0; padding: 14px 14px 14px 18px; gap: 12px; border: 0; border-radius: 0; border-top: 1px solid var(--border); background: transparent;
}
.bio-anim-list .bio-anim-row:first-child { border-top: 0; }
.bio-anim-list .bio-anim-row:active { transform: none; background: var(--surface-2); border-bottom-width: 0; }
.bio-row-ico { width: 40px; height: 40px; background: var(--bio-g-dark); }
.bio-row-ico .ic { width: 22px; height: 22px; }
.bio-row-text { flex: 1; min-width: 0; display: block; }
.bio-anim-row .module-title { display: block; margin: 0; font-size:calc(16px * var(--fs, 1)); font-weight: 700; }
.bio-anim-row .module-desc { display: block; margin-top: 2px; font-size:calc(13px * var(--fs, 1)); line-height: 1.35; }
.bio-row-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.bio-row-tags i { font-style: normal; font-size:calc(12px * var(--fs, 1)); font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--bio-g-bg); color: #2f5a3c; }
:root:not(.theme-light) .bio-row-tags i { background: rgba(206,232,181,0.14); color: var(--bio-g-main); }
#screen-biology h1 { text-transform: lowercase; }
#screen-biology .subtitle { font-size:calc(15px * var(--fs, 1)); line-height: normal; margin: 2px 0 18px; }
.bio-home-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.25fr 1fr; gap: 12px; min-height: calc(100dvh - 250px); }
.bio-home-tile { min-height: 0; padding: 22px; }
.bio-home-tile .bio-group-title { text-transform: none; font-size:calc(30px * var(--fs, 1)); letter-spacing: -0.6px; }
.bio-home-wide { grid-column: 1 / -1; min-height: 220px; }
.bio-home-wide .bio-group-ico { width: 52px; height: 52px; }
.bio-home-wide .bio-group-ico .ic { width: 28px; height: 28px; }
.bio-home-wide .bio-group-arrow { width: 40px; height: 40px; font-size:calc(20px * var(--fs, 1)); }
.bio-home-wide .bio-group-wm { width: 150px; height: 150px; right: -18px; bottom: -28px; }
.bio-home-wide .bio-group-text { max-width: 76%; }
.bio-home-half { min-height: 170px; padding: 18px; }
.bio-home-half .bio-group-title { font-size:calc(24px * var(--fs, 1)); white-space: nowrap; }
.bio-home-half .bio-group-text { max-width: 100%; }
.bio-home-half .bio-group-wm { width: 110px; height: 110px; right: -16px; bottom: -22px; }
.bio-home-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bio-home-stats i { font-style: normal; font-size:calc(12px * var(--fs, 1)); font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,0.2); }
:root.theme-light .bio-home-stats i { background: #fff; color: #2f5a3c; }
.bio-home-tile.trainer-soon { filter: brightness(0.9) saturate(0.55); cursor: default; }
.bio-home-tile.trainer-soon .bio-group-arrow { visibility: hidden; }
.bio-home-tile.trainer-soon:active { transform: none; }
@media (max-width: 379px) { .bio-home-half .bio-group-title { font-size:calc(21px * var(--fs, 1)); letter-spacing: -0.4px; } }
@media (max-width: 359px) {
  .bio-home-half { padding: 16px; }
  .bio-home-half .bio-group-title { font-size:calc(18px * var(--fs, 1)); letter-spacing: -0.3px; }
  .bio-home-half .bio-group-sub { font-size:calc(13px * var(--fs, 1)); }
  .bio-home-wide .bio-group-title { font-size:calc(26px * var(--fs, 1)); }
}
.bio-home-grid { min-height: 0; height: max(336px, calc(100dvh - 264px - max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px)) - var(--tg-safe-area-inset-top, 0px) - var(--tg-content-safe-area-inset-top, 0px))); }
.bio-home-wide { min-height: 0; padding: clamp(14px, calc(4dvh - 12px), 22px); }
.bio-home-wide .bio-group-ico { width: clamp(36px, calc(8dvh - 16px), 52px); height: clamp(36px, calc(8dvh - 16px), 52px); }
.bio-home-wide .bio-group-ico .ic { width: clamp(20px, calc(4.3dvh - 8px), 28px); height: clamp(20px, calc(4.3dvh - 8px), 28px); }
.bio-home-wide .bio-group-arrow { width: clamp(30px, calc(5dvh - 2px), 40px); height: clamp(30px, calc(5dvh - 2px), 40px); font-size: clamp(15px, calc(2.5dvh - 1px), 20px); }
.bio-home-wide .bio-group-title { font-size: clamp(22px, calc(4dvh - 4px), 30px); }
.bio-home-wide .bio-group-wm { width: clamp(104px, calc(23dvh - 44px), 150px); height: clamp(104px, calc(23dvh - 44px), 150px); }
.bio-home-stats { margin-top: clamp(6px, calc(2dvh - 7px), 10px); }
.bio-home-half { min-height: 0; padding: clamp(12px, calc(3dvh - 7px), 18px); }
.bio-home-half .bio-group-ico { width: clamp(34px, calc(5dvh + 2px), 44px); height: clamp(34px, calc(5dvh + 2px), 44px); }
.bio-home-half .bio-group-ico .ic { width: clamp(18px, calc(3dvh - 1px), 24px); height: clamp(18px, calc(3dvh - 1px), 24px); }
.bio-home-half .bio-group-arrow { width: clamp(28px, calc(4dvh + 2px), 36px); height: clamp(28px, calc(4dvh + 2px), 36px); font-size: clamp(14px, calc(2dvh + 1px), 18px); }
.bio-home-half .bio-group-title { font-size: clamp(20px, calc(3.2dvh - 3px), 24px); }
.bio-home-half .bio-group-wm { width: clamp(84px, calc(16dvh - 25px), 110px); height: clamp(84px, calc(16dvh - 25px), 110px); }
@media (max-width: 379px) { .bio-home-half .bio-group-title { font-size: clamp(18px, calc(2.6dvh - 1px), 21px); } }
@media (max-width: 359px) {
  .bio-home-half { padding: clamp(12px, calc(3dvh - 9px), 16px); }
  .bio-home-half .bio-group-title { font-size: clamp(16px, calc(2.2dvh - 0.5px), 18px); }
  .bio-home-wide .bio-group-title { font-size: clamp(21px, calc(3.4dvh - 3px), 26px); }
  .bio-home-wide .bio-group-text { max-width: 88%; }
}
.bio-row-arrow { width: 32px; height: 32px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size:calc(17px * var(--fs, 1)); line-height: 1; background: var(--surface-2); color: var(--text); }
.bio-lab-wide .bio-head { flex-wrap: wrap; }
.bio-lab-wide .bio-seg { flex: 1 1 100%; }
.bio-lab-wide .bio-seg button { flex: 1 1 auto; }
.bio-lab-short .bio-ticks .full { display: none; }
.bio-lab-short .bio-ticks .short { display: inline; }
.bio-lab-short .bio-ticks button { padding-left: 4px; padding-right: 4px; }
.bio-lab-wide .bio-scene-card { width: 100%; }
.bio-lab-row .bio-head { flex-wrap: wrap; }
.bio-lab-row .bio-seg { flex: 1 1 100%; }
.bio-lab-row .bio-seg button { flex: 1 1 auto; }
.bio-lab-row .bio-scene-card {
  width: min(100%, max(240px, calc(100vh - 385px)));
  width: min(100%, max(240px, calc(100dvh - 385px)));
}
:root { --bio-ecto-fill: #b2dcf8; --bio-endo-fill: #fff9bc; --bio-meso-fill: #ffc5c8;
  --bio-ecto: #418bc6; --bio-endo: #8a7d16; --bio-meso: #bf303e;
  --bio-ecto-plate: #7fb8e2;
  --bio-ecto-ink: #b2dcf8; --bio-endo-ink: #fff9bc; --bio-meso-ink: #ffc5c8;
  --bio-ecto-3d: var(--bio-ecto-fill); --bio-endo-3d: var(--bio-endo-fill); --bio-meso-3d: var(--bio-meso-fill);
  --emb-bg: linear-gradient(180deg, #232a36 0%, #1a1f29 100%); --emb-surface: #1f2530; --emb-box: #1d232e;
  --emb-line: #12161d; --emb-cell: #d1d5d8; --emb-cell-line: #7d8592; --emb-far: #6f7786; --emb-far-line: #4a5262;
  --emb-cavity: #161b23; --emb-shade: #0d1117; --emb-shade-op: 0.45; --emb-tint: #0b0e13; --emb-sphere: #0b0e13; --emb-arc: #f2f4f6; }
:root.theme-light { --bio-ecto-ink: #2e6da6; --bio-endo-ink: #6e6410; --bio-meso-ink: #bf303e;
  --emb-bg: linear-gradient(180deg, #f7f9fc 0%, #edf2f8 100%); --emb-surface: #f2f5fa; --emb-box: #eef2f8;
  --emb-line: #4d5560; --emb-cell: #e3e6eb; --emb-cell-line: #8b93a0; --emb-far: #e8ebf0; --emb-far-line: #a3adbe;
  --emb-cavity: #f9fbfe; --emb-shade: #9aa8c0; --emb-shade-op: 0.35; --emb-tint: #c9d3e6; --emb-sphere: #8d9ab3; --emb-arc: #c5cedd; }
#screen-bio-division[data-bio-mode="embryo"] .bio-scene-card { background: var(--emb-bg); --surface: var(--emb-surface); }
:root { --dv-cyto: #2c3341; --dv-line: #aeb8c8; --dv-nuc: #353e4e; --dv-nuc-line: #8b95a6;
  --dv-a: #418bc6; --dv-b: #ffc5c8; --dv-b-edge: #bf303e; --dv-cm: #f2f4f6; --dv-cm-line: #12161d;
  --gm-ovo-fill: #ffc5c8; --gm-ovo-line: #bf303e; --gm-sp-fill: #b2dcf8; --gm-sp-line: #418bc6; --gm-pb-fill: #e3e6eb; --gm-pb-line: #7d8592;
  --gm-mito-fill: #ffc5c8; --gm-mito-line: #bf303e; --gm-nuc: #ffffff; --gm-ink: #1a1d21; --gm-yolk: #6e6410;
  --gm-tail: #b2dcf8; --gm-ray: #ffc5c8; --gm-ovo-ink: #ffc5c8; --gm-sp-ink: #b2dcf8; }
:root.theme-light { --dv-cyto: #fcfdfe; --dv-line: #4d5560; --dv-nuc: #e9edf3; --dv-nuc-line: #7d8592; --dv-cm: #ffffff; --dv-cm-line: #4d5560;
  --gm-tail: #418bc6; --gm-ray: #bf303e; --gm-ovo-ink: #bf303e; --gm-sp-ink: #2e6da6; }
#screen-bio-division:is([data-bio-mode="mitosis"], [data-bio-mode="meiosis"], [data-bio-mode="mitsim"], [data-bio-mode="meisim"],
  [data-bio-mode="ovo"], [data-bio-mode="sperm"], [data-bio-mode="gamboth"]) .bio-scene-card { background: var(--emb-bg); --surface: var(--emb-surface); }
#screen-bio-division .emb3d { position: absolute; z-index: 3; border-radius: 12px; background: var(--emb-box); border: 1px solid var(--text-muted);
  overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
#screen-bio-division .emb3d[hidden] { display: none; }
#screen-bio-division .emb3d.full { border-radius: 16px; background: var(--emb-bg); border-color: transparent; box-shadow: none; }
#screen-bio-division .emb3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#screen-bio-division .emb3d-open { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: var(--text); }
#screen-bio-division .emb3d.full .emb3d-open { display: none; }
#screen-bio-division .emb3d-exp { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 7px; background: var(--surface); display: grid; place-items: center; }
#screen-bio-division .emb3d-cap { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 6px; background: var(--surface);
  font: 700 12px 'Montserrat', sans-serif; }
#screen-bio-division .emb3d-lab { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
#screen-bio-division .emb3d-txt { font: 600 12px 'Montserrat', sans-serif; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; paint-order: stroke; }
#screen-bio-division .emb3d-line { stroke: var(--text-muted); stroke-width: 1; }
#screen-bio-division .emb3d-dot { fill: var(--text); stroke: var(--surface); stroke-width: 1.2; }
#screen-bio-division .emb3d-back { display: none; position: absolute; left: 4px; top: 4px; height: 44px; padding: 0 14px 0 8px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font: 600 14px 'Montserrat', sans-serif; align-items: center; gap: 4px; cursor: pointer; }
#screen-bio-division .emb3d.full .emb3d-back { display: flex; }
#screen-bio-division .emb3d-hint { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font: 600 12px 'Montserrat', sans-serif; color: var(--text-muted); background: var(--surface-2); border-radius: 8px; padding: 5px 10px; }
#screen-bio-division .emb3d:not(.full) .emb3d-hint, #screen-bio-division .emb3d-hint[hidden] { display: none; }
.bio-nc[hidden] { display: none; }
.bio-seg[hidden] { display: none; }
.bio-sim-on .bio-pult, .bio-sim-on #bio-counts, .bio-sim-on .bio-scene-head { display: none; }
.bio-sim-on .bio-scene-card {
  width: min(100%, max(240px, calc(100vh - 340px)));
  width: min(100%, max(240px, calc(100dvh - 340px)));
}
.bio-sim-again {
  display: none; position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; padding: 0; z-index: 1;
  align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); cursor: pointer;
}
.bio-sim-again::after { content: ''; position: absolute; inset: -4px; }
.bio-sim-on .bio-sim-again { display: flex; }
.bio-sim-on #bio-scene { cursor: pointer; }
.bio-sim { margin: 4px 0 12px; }
.bio-sim[hidden] { display: none; }
.bio-sim-msg { margin: 0 0 4px; min-height: 40px; font-size:calc(14px * var(--fs, 1)); line-height: 1.4; color: var(--text); padding: 4px 12px; border-radius: 12px; background: var(--surface); }
.bio-sim-msg.err { background: rgba(255,92,92,0.12); }
.bio-sim-msg.ok { background: var(--bio-mint-bg); }
.bio-sim-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bio-sim-tools.pick { grid-template-columns: repeat(4, 1fr); }
.bio-sim-tool {
  min-width: 0; min-height: 44px; padding: 2px 6px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-family: 'Montserrat', sans-serif; font-weight: 600; font-size:calc(13px * var(--fs, 1)); line-height: 1.15; cursor: pointer;
}
.bio-sim-tool.has-c { box-shadow: inset 5px 0 0 var(--sim-c); padding-left: 10px; }
.bio-sim-nuc.has-c { box-shadow: inset 0 -4px 0 var(--sim-c); padding-left: 6px; }
.bio-sim-tool.on { border-color: var(--primary); color: var(--primary-ink); background: var(--bio-mint-bg); }
.bio-sim-tool:disabled { opacity: 0.55; cursor: default; }
.bio-sim-nuc { font-size:calc(17px * var(--fs, 1)); font-weight: 700; }
@media (max-width: 359px) { .bio-scene-card { padding-left: 0; padding-right: 0; } }
@media (max-width: 359px) { .bio-sim-msg { font-size:calc(13px * var(--fs, 1)); line-height: 1.35; } }
:root { --rp-par: #8fa0c8; --rp-new: #3ddc97; --rp-prim: #ff5fa2;
  --rp-a: #f2b84b; --rp-t: #ef6f5e; --rp-g: #a28cff; --rp-c: #4cc3e6;
  --rp-hel: #ff9f1c; --rp-topo: #b07cff; --rp-ssb: #4f9dff; --rp-pria: #f2609f; --rp-pol: #19b884; --rp-lig: #ffd23f; --rp-nuc: #ff4f5e;
  --rp-edge: rgba(0,0,0,0.5); }
:root.theme-light { --rp-par: #56688f; --rp-new: #12a06a; --rp-prim: #d81b72;
  --rp-a: #a87410; --rp-t: #d9503e; --rp-g: #7a5cf0; --rp-c: #157fa6;
  --rp-hel: #c26a00; --rp-topo: #8e5cf0; --rp-ssb: #2f80ed; --rp-pria: #e0458c; --rp-pol: #0f9e6c; --rp-lig: #a88300; --rp-nuc: #c8283a;
  --rp-edge: rgba(0,0,0,0.35); }
:root { --rp-tile-a: var(--rp-a); --rp-tile-t: var(--rp-t); --rp-tile-g: var(--rp-g); --rp-tile-c: var(--rp-c); --rp-tile-on: var(--surface); }
:root.theme-light { --rp-tile-a: #97680e; --rp-tile-t: #c34837; --rp-tile-g: #7357e4; --rp-tile-c: #13789d; --rp-tile-on: #ffffff; }
:root { --tr-head: var(--rp-a); --tr-prot: var(--rp-topo); --tr-sub: var(--rp-prim); --tr-water: var(--rp-c); --tr-water-ink: var(--rp-c); --tr-na: var(--rp-new); --tr-k: var(--rp-ssb);
  --tr-h: var(--rp-t); --tr-suc: var(--rp-a); --tr-atp: var(--rp-lig); }
.bio-kinds { display: flex; gap: 6px; margin: 0 0 2px; padding: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.bio-kinds::-webkit-scrollbar { display: none; }
.bio-kinds[hidden] { display: none; }
.bio-kinds button {
  flex: none; min-height: 44px; padding: 0 12px; border: 4px solid transparent; background-clip: padding-box; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--border); background-color: var(--surface-2); color: var(--text-muted);
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size:calc(13px * var(--fs, 1)); white-space: nowrap; cursor: pointer;
}
.bio-kinds button.on { box-shadow: inset 0 0 0 1px var(--primary); color: var(--primary-ink); background-color: var(--nav-sel-bg); }
.bio-lab-kinds .bio-scene-card {
  width: min(100%, max(240px, calc(100vh - 381px)));
  width: min(100%, max(240px, calc(100dvh - 381px)));
}
.bio-lab-kinds.bio-sim-on .bio-scene-card {
  width: min(100%, max(254px, calc(100vh - 452px)));
  width: min(100%, max(254px, calc(100dvh - 452px)));
}
.bio-sim-tools[data-cols="1"] { grid-template-columns: 1fr; }
.bio-sim-tools[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.bio-sim-tools[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.bio-sim-tools[data-cols="4"] { grid-template-columns: repeat(4, 1fr); gap: 4px; }
.bio-sim-tools[data-cols="4"]:not(.pick) .bio-sim-tool { font-size:calc(12px * var(--fs, 1)); padding: 2px 2px 2px 7px; }
.bio-sim-tools[data-cols="4"]:not(.pick) .bio-sim-tool.has-c { box-shadow: inset 4px 0 0 var(--sim-c); }
.bio-sim-opt { min-height: 44px; padding: 4px 10px; text-align: left; }
.bio-sim-tools[data-cols="3"] .bio-sim-opt { text-align: center; padding: 4px 4px; font-size:calc(12.5px * var(--fs, 1)); }
@media (max-width: 359px) { .bio-sim-tools[data-cols="3"] .bio-sim-opt { font-size:calc(11.5px * var(--fs, 1)); padding: 4px 2px; } .bio-sim-tools[data-cols="3"] { gap: 4px; } }
#screen-bio-division.bio-lab-fit .bio-scene-card { width: 100%; }
#screen-bio-division.bio-lab-fit #bio-scene { width: min(100%, var(--bio-fit, 100%)); margin: 0 auto; }
body:has(#screen-bio-division.active.bio-compact) .brand-header { display: none; }
#screen-bio-division.bio-compact { position: relative; }
#screen-bio-division.bio-compact .bio-back {
  position: absolute; top: 12px; left: 0; z-index: 1; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
#screen-bio-division.bio-compact .bio-back .arrow-roboto { font-size:calc(22px * var(--fs, 1)); line-height: 1; }
#screen-bio-division.bio-compact .bio-back-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#screen-bio-division.bio-compact .bio-title { display: flex; align-items: center; min-height: 44px; padding-left: 28px; flex: 1 1 0; }
#screen-bio-division.bio-compact .bio-head { flex-wrap: wrap; row-gap: 2px; }
#screen-bio-division.bio-compact .bio-seg { margin-left: auto; }
#screen-bio-division .bio-head { flex-wrap: wrap; row-gap: 2px; }
#screen-bio-division .bio-title { flex: 1 1 0; }
#screen-bio-division .bio-seg { margin-left: auto; }
.bio-sim-msg { position: relative; }
.bio-sim-msg.next { padding-right: 58px; min-height: 52px; }
.bio-sim-next { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: #0d2b1e; cursor: pointer; box-shadow: 0 2px 0 var(--primary-dark); }
.bio-sim-next:active { transform: translateY(calc(-50% + 1px)); box-shadow: none; }
.bio-sim-head { position: relative; display: flex; align-items: baseline; gap: 10px; margin: 0 2px 4px; padding-bottom: 4px; }
.bio-sim-step { font-size:calc(13px * var(--fs, 1)); font-weight: 800; color: var(--blue-ink); }
.bio-sim-hint { margin-left: auto; font-size:calc(12px * var(--fs, 1)); font-weight: 600; color: var(--text-muted); }
.bio-sim-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.bio-sim-bar i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--blue); transition: width 0.3s ease; }
.bio-sim-msg {
  display: flex; align-items: flex-start; gap: 8px; margin: 0 0 6px; min-height: 40px; padding: 6px 12px 6px 10px;
  border: 2px solid transparent; border-left: 5px solid var(--blue); border-radius: 14px; background: var(--surface);
  font-size:calc(14px * var(--fs, 1)); font-weight: 600; line-height: 1.3;
}
.bio-sim-msg.ok { background: var(--bio-mint-bg); border-color: var(--primary); font-weight: 500; }
.bio-sim-msg.err { background: rgba(255,92,92,0.14); border-color: var(--coral); font-weight: 500; }
.bio-sim-msg { flex-wrap: wrap; align-content: center; align-items: center; }
.bio-sim-mic { flex: none; width: 20px; height: 20px; }
.bio-sim-mic .ic { width: 20px; height: 20px; }
.bio-sim-txt { flex: 1 1 0; min-width: 0; }
.bio-sim-tools { counter-reset: o; gap: 6px; }
.bio-sim-tool, .bio-sim-opt {
  background: var(--bg); border: 2px solid var(--text-muted); border-bottom-width: 4px; border-radius: 14px; color: var(--text);
  transition: transform 0.08s ease;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .bio-sim-tool, .bio-sim-opt { border-color: color-mix(in srgb, var(--text-muted) 55%, transparent); border-bottom-color: var(--text-muted); }
}
.bio-sim-tool:active:not(:disabled), .bio-sim-opt:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 2px; }
.bio-sim-opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 3px 12px; font-size:calc(14px * var(--fs, 1)); font-weight: 600; }
.bio-sim-tool { min-width: 0; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto;
  hyphenate-limit-chars: 6 3 3; -webkit-hyphenate-limit-before: 3; -webkit-hyphenate-limit-after: 3; }
.bio-sim-opt::before {
  counter-increment: o; content: counter(o); flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); color: var(--text-muted); font-size:calc(12px * var(--fs, 1)); font-weight: 800;
}
.bio-sim-tools[data-cols="2"] .bio-sim-opt, .bio-sim-tools[data-cols="3"] .bio-sim-opt { justify-content: center; text-align: center; padding: 4px 6px; font-size:calc(13px * var(--fs, 1)); }
.bio-sim-tools[data-cols="2"] .bio-sim-opt::before, .bio-sim-tools[data-cols="3"] .bio-sim-opt::before { display: none; }
.bio-sim-tools[data-cols="2"] .bio-sim-opt.right::before, .bio-sim-tools[data-cols="2"] .bio-sim-opt.wrong::before, .bio-sim-tools[data-cols="3"] .bio-sim-opt.right::before, .bio-sim-tools[data-cols="3"] .bio-sim-opt.wrong::before { display: block; width: 18px; height: 18px; flex: none; border-radius: 50%; }
.bio-sim-tools[data-cols="3"] .bio-sim-opt { font-size:calc(12.5px * var(--fs, 1)); padding: 4px 4px; }
.bio-sim-opt.right { background: var(--bio-mint-bg); border-color: var(--primary); opacity: 1; }
.bio-sim-opt.right::before { content: ''; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1410' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.bio-sim-opt.wrong { background: rgba(255,92,92,0.10); border-color: var(--coral); opacity: 1; }
.bio-sim-opt.wrong::before { content: ''; background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 14px no-repeat; }
.bio-sim-opt.dim { opacity: 0.45; }
.bio-sim-tool.on { border-color: var(--blue); background: rgba(62,157,255,0.14); color: var(--text); }
.bio-sim-on.bio-sim-q .bio-caption { display: none; }
@media (max-height: 700px) {
  .bio-sim-step, .bio-sim-hint { display: none; }
  .bio-sim-head { height: 3px; padding-bottom: 0; margin-bottom: 5px; }
}
@media (max-width: 359px) { .bio-sim-msg { font-size:calc(13px * var(--fs, 1)); line-height: 1.3; padding: 5px 8px; border-left-width: 4px; gap: 6px; } }
@media (max-height: 700px) { .bio-sim-msg { margin-bottom: 4px; padding-top: 5px; padding-bottom: 5px; } .bio-sim-tool, .bio-sim-opt { border-bottom-width: 3px; } .bio-sim-head { margin-bottom: 4px; } }
.bio-pics-sections.tight { margin-bottom: 8px; }
.bio-pics-topics .oxide-chip { font-size:calc(12.5px * var(--fs, 1)); }
.bio-pics-topics[hidden] { display: none; }
.bio-exp-on .bio-scene-card, .bio-exp-on .bio-pult, .bio-exp-on #bio-counts, .bio-exp-on .bio-caption { display: none; }
.bio-exp[hidden] { display: none; }
.bio-exp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; margin: 0 2px 6px; }
.bio-exp-stat { display: flex; flex-direction: column; min-width: 0; font-size:calc(12px * var(--fs, 1)); font-weight: 600; color: var(--text-muted); line-height: 1.3; }
.bio-exp-stat.r { text-align: right; }
.bio-exp-stat b { font-family: 'JetBrains Mono', monospace; font-size:calc(22px * var(--fs, 1)); font-weight: 700; color: var(--text); line-height: 1.2; }
.bio-exp-k { font-size:calc(12px * var(--fs, 1)); font-weight: 700; color: var(--text-muted); }
.bio-exp-legend { margin: 4px 6px 2px; font-size:calc(12px * var(--fs, 1)); font-weight: 600; color: var(--text-muted); line-height: 1.35; }
.bio-exp-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 4px 0 0; vertical-align: 0; }
.bio-exp-legend i.w { background: var(--tr-water); }
.bio-exp-legend i.p { width: 12px; height: 12px; border-radius: 4px; margin-left: 6px; background: var(--tr-prot); vertical-align: -1px; }
.bio-exp-legend i.s { width: 12px; height: 12px; margin-left: 6px; background: var(--tr-sub); vertical-align: -1px; }
.bio-exp-card { background: var(--surface); border-radius: 20px; padding: 6px; }
#bio-exp-canvas { display: block; width: 100%; aspect-ratio: 360 / 300; }
.bio-exp-set { margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.bio-exp-set[hidden] { display: none; }
.bio-exp-step { display: grid; grid-template-columns: 1fr 44px 52px 44px; align-items: center; gap: 6px; font-size:calc(14px * var(--fs, 1)); font-weight: 600; }
.bio-exp-step b { text-align: center; font-family: 'JetBrains Mono', monospace; font-size:calc(18px * var(--fs, 1)); }
.bio-exp-step .bio-btn { font-size:calc(22px * var(--fs, 1)); font-weight: 700; font-family: 'Montserrat', sans-serif; }
.bio-exp-seg { width: 100%; }
.bio-exp-seg button { flex: 1 1 0; }
.bio-exp-slider { display: flex; flex-direction: column; gap: 2px; font-size:calc(14px * var(--fs, 1)); font-weight: 600; }
.bio-exp-slider small { font-size:calc(12px * var(--fs, 1)); color: var(--text-muted); font-weight: 600; }
.bio-exp-slider input { width: 100%; height: 44px; margin: 0; accent-color: var(--primary); }
.bio-exp-pred { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size:calc(14px * var(--fs, 1)); font-weight: 700; }
.bio-exp-q { color: var(--blue-ink); }
.bio-exp-opts { display: flex; gap: 6px; width: 100%; }
.bio-exp-opts .bio-chip { margin: 0; flex: 1 1 0; padding: 0 6px; }
.bio-exp-verdict { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.bio-exp-verdict.ok { color: var(--primary-ink); }
.bio-exp-verdict.err { color: var(--coral-ink); }
.bio-exp-verdict .ic { width: 18px; height: 18px; }
.bio-exp-run { display: flex; gap: 8px; margin: 12px 0 0; }
.bio-exp-run button { flex: 1 1 0; margin: 0; }
.bio-exp-msg { margin: 10px 0 0; padding: 8px 12px; border-left: 5px solid var(--blue); border-radius: 14px; background: var(--surface);
  font-size:calc(14px * var(--fs, 1)); line-height: 1.4; min-height: 40px; }
.bio-exp-msg.done { border-left-color: var(--primary); background: var(--bio-mint-bg); }
:root { --bs-u: #8fd14f; --bs-rna: #e45cb8; --bs-rna-ink: #ff8fd3; --bs-tmpl: #6fb6ff; --bs-tmpl-ink: #9fd0ff; --bs-pol: #9b8cff;
  --bs-prom: #3ddc97; --bs-prom-ink: #3ddc97; --bs-term: #ff6b6b; --bs-term-ink: #ff8f8f; --bs-intron: #5b7cfa; --bs-intron-ink: #8fa8ff;
  --bs-cap: #8f6bff; --bs-cap-ink: #b39cff; --bs-a-ink: #f2b84b; --bs-nuc: rgba(162,140,255,0.08); --bs-cyt: rgba(242,184,75,0.06); --bs-env: #8a7fc4;
  --bs-rib: #d58fb2; --bs-rib-ink: #f0b3d0; --bs-trna: #b9a3e8; --bs-enz: #2bb3c0; --bs-atp: #ffd84d; --bs-atp-ink: #ffd84d; --bs-ft: #aab1c2; --bs-ft-txt: #16181d;
  --bs-aa0: #e98ad8; --bs-aa1: #7fdde8; --bs-aa2: #ffa98f; --bs-aa3: #92e06a; --bs-aa4: #ffe066; --bs-aa5: #ffbf6b; }
:root.theme-light { --bs-u: #4c8a1c; --bs-rna: #b0307f; --bs-rna-ink: #a3226f; --bs-tmpl: #2f6fd0; --bs-tmpl-ink: #2559b0; --bs-pol: #6a5ad6;
  --bs-prom: #12a06a; --bs-prom-ink: #0b7a50; --bs-term: #c93b3b; --bs-term-ink: #b02a2a; --bs-intron: #3450c9; --bs-intron-ink: #2a40a8;
  --bs-cap: #6b4fd8; --bs-cap-ink: #5a3fc4; --bs-a-ink: #8a5f00; --bs-nuc: rgba(106,90,214,0.07); --bs-cyt: rgba(168,116,16,0.06); --bs-env: #6a5ad6;
  --bs-rib: #b5668e; --bs-rib-ink: #8e3f66; --bs-trna: #8e6fd0; --bs-enz: #138a96; --bs-atp: #d9a800; --bs-atp-ink: #8a6a00; --bs-ft: #3b4252; --bs-ft-txt: #fff; }
.bio-intro-on .bio-scene-card, .bio-intro-on .bio-pult, .bio-intro-on #bio-counts, .bio-intro-on .bio-caption { display: none; }
.bio-intro-on .bio-seg { display: none; }
.bio-intro[hidden] { display: none; }
.bio-intro { margin: 8px 0 16px; }
.bs-flow { background: var(--surface); border-radius: 20px; padding: 16px 16px 14px; }
.bs-flow-lead { margin: 0 0 14px; font-size:calc(14px * var(--fs, 1)); line-height: 1.4; color: var(--text-muted); }
.bs-node { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.bs-node-ic { flex: none; width: 52px; height: 28px; display: grid; place-items: center; }
.bs-node-ic svg { width: 52px; height: 28px; display: block; }
.bs-node-t { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.bs-node-t b { font-size:calc(17px * var(--fs, 1)); font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.bs-node-sub { font-size:calc(15px * var(--fs, 1)); font-weight: 600; color: var(--text); }
.bs-node-note { flex-basis: 100%; margin-top: 2px; font-size:calc(13px * var(--fs, 1)); line-height: 1.3; color: var(--text-muted); }
.bs-step { display: flex; align-items: stretch; gap: 10px; padding: 6px 0 6px 26px; }
.bs-step-arrow { position: relative; flex: none; width: 12px; }
.bs-step-arrow::before { content: ''; position: absolute; left: 5px; top: 0; bottom: 8px; width: 2px; border-radius: 1px; background: var(--text-muted); }
.bs-step-arrow::after { content: ''; position: absolute; left: 1px; bottom: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 9px solid var(--text-muted); }
.bs-stage {
  position: relative; flex: 1; min-width: 0; min-height: 72px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 40px 10px 14px; border-radius: 14px; border: 2px solid var(--border); border-left: 6px solid var(--bs-c, var(--primary));
  background: var(--bg); color: var(--text); font-family: 'Montserrat', sans-serif; text-align: left; cursor: pointer; transition: transform 0.08s ease;
}
@supports (color: color-mix(in srgb, red 50%, blue)) { .bs-stage { background: color-mix(in srgb, var(--bs-c) 14%, var(--bg)); } }
.bs-stage:active { transform: translateY(2px); }
.bs-stage-trc { --bs-c: var(--bs-pol); }
.bs-stage-trl { --bs-c: var(--bs-rib); }
.bs-stage-n { font-size:calc(12px * var(--fs, 1)); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.bs-stage-name { font-size:calc(18px * var(--fs, 1)); font-weight: 700; line-height: 1.2; }
.bs-stage-what { font-size:calc(13px * var(--fs, 1)); line-height: 1.3; color: var(--text-muted); }
.bs-stage-go { position: absolute; right: 14px; top: 50%; width: 10px; height: 10px; margin-top: -6px; border-right: 2.6px solid var(--text); border-top: 2.6px solid var(--text); transform: rotate(45deg); }
.bs-flow-note { margin: 12px 0 0; font-size:calc(13px * var(--fs, 1)); line-height: 1.4; color: var(--text-muted); }
.bio-pics-sections .oxide-chip.selected { border-color: var(--primary); background: var(--nav-sel-bg); color: var(--primary-ink); }
:root { --tr-wall: #9ccc65; --tr-cyto: rgba(156,204,101,0.16); --tr-vac: rgba(76,195,230,0.22); --tr-chl: #4caf50; --tr-nuc: #b07cff; }
:root.theme-light { --tr-wall: #5b8f2a; --tr-cyto: rgba(91,143,42,0.12); --tr-vac: rgba(21,127,166,0.14); --tr-chl: #2e7d32; --tr-nuc: #8e5cf0; }
:root {
  --bc-r: var(--env-r); --bc-r-hi: var(--env-r-hi); --bc-r-d: var(--env-r-d);
  --bc-o: var(--env-o); --bc-o-hi: var(--env-o-hi); --bc-o-d: var(--env-o-d);
  --bc-y: var(--env-y); --bc-y-hi: var(--env-y-hi); --bc-y-d: var(--env-y-d);
  --bc-g: var(--env-g); --bc-g-hi: var(--env-g-hi); --bc-g-d: var(--env-g-d);
  --bc-b: var(--env-b); --bc-b-hi: var(--env-b-hi); --bc-b-d: var(--env-b-d);
  --bc-v: var(--env-v); --bc-v-hi: var(--env-v-hi); --bc-v-d: var(--env-v-d);
  --bc-n: var(--env-n); --bc-n-hi: var(--env-n-hi); --bc-n-d: var(--env-n-d);
  --bc-p: #f2bfe6; --bc-p-hi: #fbe7f6; --bc-p-d: #a3428c;
  --bc-membrane: var(--bc-y); --bc-membrane-hi: var(--bc-y-hi); --bc-membrane-d: var(--bc-y-d);
  --bc-memprot: var(--bc-v); --bc-memprot-hi: var(--bc-v-hi); --bc-memprot-d: var(--bc-v-d);
  --bc-glyco: var(--bc-g); --bc-glyco-hi: var(--bc-g-hi); --bc-glyco-d: var(--bc-g-d);
  --bc-nucleus: var(--bc-v); --bc-nucleus-hi: var(--bc-v-hi); --bc-nucleus-d: var(--bc-v-d);
  --bc-rer: var(--bc-b); --bc-rer-hi: var(--bc-b-hi); --bc-rer-d: var(--bc-b-d);
  --bc-ser: var(--bc-b); --bc-ser-hi: var(--bc-b-hi); --bc-ser-d: var(--bc-b-d);
  --bc-golgi: var(--bc-p); --bc-golgi-hi: var(--bc-p-hi); --bc-golgi-d: var(--bc-p-d);
  --bc-mito: var(--bc-r); --bc-mito-hi: var(--bc-r-hi); --bc-mito-d: var(--bc-r-d);
  --bc-lyso: var(--bc-o); --bc-lyso-hi: var(--bc-o-hi); --bc-lyso-d: var(--bc-o-d);
  --bc-perox: var(--bc-n); --bc-perox-hi: var(--bc-n-hi); --bc-perox-d: var(--bc-n-d);
  --bc-incl: var(--bc-y); --bc-incl-hi: var(--bc-y-hi); --bc-incl-d: var(--bc-y-d);
  --bc-ribo: var(--bc-y); --bc-ribo-hi: var(--bc-y-hi); --bc-ribo-d: var(--bc-y-d);
  --bc-centro: var(--bc-n); --bc-centro-hi: var(--bc-n-hi); --bc-centro-d: var(--bc-n-d);
  --bc-cytoskel: var(--bc-n); --bc-cytoskel-hi: var(--bc-n-hi); --bc-cytoskel-d: var(--bc-n-d);
  --bc-wall: var(--bc-g); --bc-wall-hi: var(--bc-g-hi); --bc-wall-d: var(--bc-g-d);
  --bc-chitin: var(--bc-o); --bc-chitin-hi: var(--bc-o-hi); --bc-chitin-d: var(--bc-o-d);
  --bc-murein: var(--bc-o); --bc-murein-hi: var(--bc-o-hi); --bc-murein-d: var(--bc-o-d);
  --bc-vacuole: var(--bc-b); --bc-vacuole-hi: var(--bc-b-hi); --bc-vacuole-d: var(--bc-b-d);
  --bc-chloro: var(--bc-g); --bc-chloro-hi: var(--bc-g-hi); --bc-chloro-d: var(--bc-g-d);
  --bc-plasmo: var(--bc-b); --bc-plasmo-hi: var(--bc-b-hi); --bc-plasmo-d: var(--bc-b-d);
  --bc-capsule: var(--bc-b); --bc-capsule-hi: var(--bc-b-hi); --bc-capsule-d: var(--bc-b-d);
  --bc-nucleoid: var(--bc-v); --bc-nucleoid-hi: var(--bc-v-hi); --bc-nucleoid-d: var(--bc-v-d);
  --bc-plasmid: var(--bc-v); --bc-plasmid-hi: var(--bc-v-hi); --bc-plasmid-d: var(--bc-v-d);
  --bc-flagellum: var(--bc-n); --bc-flagellum-hi: var(--bc-n-hi); --bc-flagellum-d: var(--bc-n-d);
  --bc-pili: var(--bc-n); --bc-pili-hi: var(--bc-n-hi); --bc-pili-d: var(--bc-n-d);
  --bc-cyto-lo: #252b37; --bc-cyto-hi: #3e4757; --bc-fog: #1f2530; --bc-ground: #5a6272;
}
:root.theme-light { --bc-p: #ecb0df; --bc-p-hi: #f8def1;
  --bc-cyto-lo: #e6ecf3; --bc-cyto-hi: #fbfcfe; --bc-fog: #f2f5fa; --bc-ground: #8890a0; }
.bc-stage {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: min(56vh, 460px); max-height: min(56dvh, 460px);
  margin: 4px auto 6px; border-radius: 20px; overflow: hidden; touch-action: none;
  --st-ink: #e6edfb; --st-muted: #a9b7d3; --st-line: #aeb8c8;
  background: var(--emb-bg); --surface: var(--emb-surface);
}
:root.theme-light .bc-stage { --st-ink: #1a1d21; --st-muted: #4d5560; --st-line: #6f7886; }
.bc-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.bc-stage.bc-nogl canvas { display: none; }
.bc-stage.bc-nogl { aspect-ratio: auto; min-height: 120px; }
.bc-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 24px; text-align: center; font-size:calc(14px * var(--fs, 1)); color: var(--st-muted); pointer-events: none; }
.bc-status[hidden] { display: none; }
.bc-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 8px; z-index: 2; }
.bc-tool {
  position: relative; display: inline-flex; align-items: center; justify-content: center; height: 36px; min-width: 36px; padding: 0 10px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size:calc(13px * var(--fs, 1)); cursor: pointer;
}
.bc-tool::after { content: ''; position: absolute; inset: -4px; }
.bc-tool[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--primary); color: var(--primary-ink); background: var(--nav-sel-bg); }
.bc-stage .bc-tool[aria-pressed="true"] { background: linear-gradient(var(--nav-sel-bg), var(--nav-sel-bg)), var(--surface-2); }
.bc-hint { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 16px); box-sizing: border-box;
  margin: 0; padding: 3px 10px; border-radius: 999px; text-align: center; font-size:calc(12px * var(--fs, 1)); line-height: 1.35; color: var(--st-muted);
  background: var(--surface); pointer-events: none; }
.bc-hint[hidden], .bc-hint.bc-hint-off { display: none; }
.bc-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.bc-inset { position: absolute; left: 8px; right: 8px; top: 48px; max-height: calc(100% - 56px); overflow: hidden; z-index: 1; pointer-events: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 8px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--st-line); color: var(--st-ink); font-family: 'Montserrat', sans-serif; }
.bc-inset { --in-mem: var(--bc-membrane-d); --in-flag: var(--bc-flagellum-d); --in-bb: var(--bc-v-d); --in-wall: var(--bc-murein);
  --in-ring: var(--bc-n-d); --in-hook: var(--bc-o-d); --in-fil: var(--bc-flagellum-d); }
:root:not(.theme-light) .bc-inset { --in-mem: var(--bc-membrane); --in-flag: var(--bc-flagellum); --in-bb: var(--bc-v); --in-ring: var(--bc-n);
  --in-hook: var(--bc-o); --in-fil: var(--bc-flagellum); }
.bc-inset-col { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; gap: 1px; }
.bc-inset-col b { font-size:calc(13px * var(--fs, 1)); font-weight: 700; color: var(--st-ink); margin-bottom: 2px; }
.bc-inset-col svg { width: 100%; max-width: 150px; height: auto; margin-bottom: 3px; }
.bc-inset-col span { font-size:calc(12px * var(--fs, 1)); line-height: 1.25; color: var(--st-muted); }
.bc-inset-col span:last-child { color: var(--st-ink); font-weight: 600; }
.bc-labels[hidden] { display: none; }
.bc-label {
  position: absolute; left: 0; top: 0; padding: 3px 8px; border-radius: 999px; pointer-events: auto; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: 'Montserrat', sans-serif; font-weight: 600; font-size:calc(12px * var(--fs, 1));
}
.bc-label.on { box-shadow: inset 0 0 0 1px var(--primary); color: var(--primary-ink); }
.bc-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bc-leaders circle { fill: var(--st-ink); }
.bc-leaders line { stroke: var(--st-line); stroke-width: 1.2; opacity: 0.85; }
.bc-parts { margin: 0 0 4px; }
.bc-card { margin: 6px 0 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); }
.bc-card h2 { margin: 0 0 2px; font-size:calc(18px * var(--fs, 1)); }
.bc-aka { margin: 0 0 8px; font-size:calc(13px * var(--fs, 1)); color: var(--text-muted); }
.bc-group { display: inline-block; margin: 2px 0 4px; padding: 4px 10px; border-radius: 999px; font-size:calc(12px * var(--fs, 1)); font-weight: 700; background: var(--nav-sel-bg); color: var(--primary-ink); }
.bc-card h3 { margin: 12px 0 4px; font-size:calc(13px * var(--fs, 1)); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.bc-card ul { margin: 0; padding-left: 18px; }
.bc-card li, .bc-dev { font-size:calc(14px * var(--fs, 1)); line-height: 1.45; color: var(--text); }
.bc-card li + li { margin-top: 4px; }
.bc-dev { margin: 0; }
.bc-empty { margin: 0; font-size:calc(14px * var(--fs, 1)); line-height: 1.45; color: var(--text-muted); }
.bc-proc-on .bc-parts, .bc-proc-on .bc-card { display: none; }
.bc-proc-on .bc-stage { max-height: min(44vh, 380px); max-height: min(44dvh, 380px); }
.bc-pult[hidden], .bc-caption[hidden] { display: none; }
.bc-caption { margin: 10px 0 12px; }
.bc-proc-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 12px 0 0; padding: 10px 14px; min-height: 48px;
  border: 0; border-radius: 14px; background: var(--primary); color: #0d2b1e; cursor: pointer; text-align: left;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size:calc(14px * var(--fs, 1));
}
.bc-proc-btn svg { width: 20px; height: 20px; flex: none; }
.bc-lab-btn { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--primary); }
.bc-lab-btn svg { color: var(--primary-ink); }
.bc-proc-on #bc-labels-btn { display: none; }
.bc-plabel { pointer-events: none; }
.bc-proc-on .bc-hint { display: none; }
#bc-ticks .short { display: none; }
@media (max-width: 419px) { #bc-ticks .full { display: none; } #bc-ticks .short { display: inline; } }
.bc-kind { flex: 1 1 100%; }
.bc-kind button { flex: 1 1 auto; padding: 0 4px; font-size:calc(13px * var(--fs, 1)); }
.bc-mode { margin: 6px 0 4px; }
.bc-mode button { flex: 1; }
.bc-stage { max-height: min(50vh, 440px); max-height: min(50dvh, 440px); }
.bc-mode-sim .bc-card, .bc-mode-test .bc-card, .bc-mode-test .bc-parts, .bc-mode-sim #bc-labels-btn, .bc-mode-test #bc-labels-btn { display: none; }
.bc-quiz[hidden] { display: none; }
.bc-quiz { margin: 6px 0 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); }
.bc-quiz h2 { margin: 0 0 4px; font-size:calc(18px * var(--fs, 1)); }
.bc-q-head { margin: 0 0 8px; font-size:calc(13px * var(--fs, 1)); font-weight: 700; color: var(--text-muted); }
.bc-q-text { margin: 0 0 10px; padding: 10px 12px; border-left: 4px solid var(--primary); border-radius: 8px; background: var(--surface-2); font-size:calc(15px * var(--fs, 1)); line-height: 1.45; color: var(--text); }
.bc-q-fb { margin: 0; min-height: 20px; font-size:calc(14px * var(--fs, 1)); line-height: 1.4; color: var(--text); }
.bc-q-fb.ok { color: var(--primary-ink); font-weight: 700; }
.bc-q-fb.err { color: var(--coral-ink); font-weight: 700; }
.bc-q-sum { margin: 0 0 6px; font-size:calc(15px * var(--fs, 1)); color: var(--text); }
.bc-test-rows { display: flex; flex-direction: column; gap: 8px; margin: 0 0 4px; }
.bc-test-row { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 4px 10px; }
.bc-test-num, .bc-num { font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.bc-test-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size:calc(15px * var(--fs, 1)); }
.bc-test-sel { min-height: 44px; width: 100%; min-width: 0; padding: 0 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-family: 'Montserrat', sans-serif; font-size:calc(14px * var(--fs, 1)); }
.bc-test-fix { grid-column: 2; font-size:calc(13px * var(--fs, 1)); font-weight: 700; color: var(--primary-ink); }
.bc-test-fix:empty { display: none; }
.bc-test-row.correct .bc-test-num { background: var(--nav-sel-bg); color: var(--primary-ink); }
.bc-test-row.wrong .bc-test-num { background: rgba(255,92,92,0.15); color: var(--coral-ink); }
.bc-label.bc-num { min-width: 26px; text-align: center; font-size:calc(14px * var(--fs, 1)); background: var(--primary); color: #0d2b1e; border-color: transparent; }
.bc-proc-btn:disabled { opacity: 0.5; cursor: default; }
.bc-proc-on #bc-mode, .bc-proc-on #bc-kind { display: none; }
.bc-proc-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.bc-proc-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-family: 'Montserrat', sans-serif; font-weight: 600; font-size:calc(13px * var(--fs, 1)); text-align: left;
}
.bc-proc-chip svg { width: 16px; height: 16px; flex: none; color: var(--primary-ink); fill: currentColor; }
.bc-retry { position: absolute; left: 50%; top: calc(50% + 34px); transform: translateX(-50%); z-index: 2; }
.bc-retry[hidden] { display: none; }
:root { --en-cyt: rgba(242,184,75,0.05); --en-ims: rgba(160,120,255,0.16); --en-mat: rgba(255,150,90,0.16); --en-outer: #ffb37a; --en-inner: #ff8fb1;
  --en-inner-hi: #ffd1de; --en-band: rgba(255,159,184,0.07); --en-chan: rgba(20,22,30,0.55); --en-gate: #f2f4f8; --en-chev: rgba(255,143,143,0.9); --en-e-ink: #ffe14d; --en-head: #ff9fb8; --en-tail: rgba(255,159,184,0.55);
  --en-edge: #1b1f2a; --en-ink: #1b1f2a; --en-c: #5b6372; --en-o: #ff6b6b; --en-co2: #8e96a8; --en-coa: #6fb6ff; --en-nadh: #3ddc97; --en-nad: #a8ecd0;
  --en-atp: #ffd84d; --en-atp-ink: #ffd84d; --en-p: #b388ff; --en-h: #ff5d5d; --en-h-ink: #ff8f8f; --en-e: #ffe14d; --en-o2: #4ea8ff; --en-h2o: #5cc8ff;
  --en-cyt1: #9b8cff; --en-cyt2: #6fb6ff; --en-cyt3: #c48cff; --en-heme: #ff7a3d; --en-stator: #2bb3c0; --en-rotor: #ff9f43; --en-rotor-d: #c96a12;
  --en-f1a: #ffcf70; --en-f1b: #ff9f5a; --en-krebs: #e98ad8; --en-cytc: #e6ebf5;
  --en-on: #1b1f2a;  }
:root.theme-light { --en-cyt: rgba(168,116,16,0.04); --en-ims: rgba(106,90,214,0.12); --en-mat: rgba(230,110,50,0.12); --en-outer: #e08a3c; --en-inner: #d9577f;
  --en-inner-hi: #ffd1de; --en-band: rgba(217,87,127,0.06); --en-chan: rgba(255,255,255,0.62); --en-gate: #2b2f3a; --en-chev: #b02a2a; --en-e-ink: #8a6a00; --en-head: #ef7f9d; --en-tail: rgba(217,87,127,0.45);
  --en-edge: #2b2f3a; --en-ink: #1b1f2a; --en-c: #4a5160; --en-o: #e04848; --en-co2: #7d8597; --en-coa: #3d8fe0; --en-nadh: #19b878; --en-nad: #8fdcbc;
  --en-atp: #f2c200; --en-atp-ink: #8a6a00; --en-p: #8e5ce0; --en-h: #e23d3d; --en-h-ink: #b02a2a; --en-e: #f5c400; --en-o2: #2f86e0; --en-h2o: #3aa8e8;
  --en-cyt1: #7a6ae0; --en-cyt2: #4a96e8; --en-cyt3: #a46ae0; --en-heme: #f06424; --en-stator: #139aa8; --en-rotor: #f08a24; --en-rotor-d: #b35a08;
  --en-f1a: #ffc24d; --en-f1b: #ff8a3d; --en-krebs: #c45ab4; --en-cytc: #ffffff; --en-on: #fff; }
.en-stage-etc { --bs-c: var(--en-inner); }
.en-stage-gly { --bs-c: var(--en-coa); }
.en-stage-atp { --bs-c: var(--en-atp); margin-top: 14px; }
.en-stage-prep { --bs-c: var(--border); }
.bs-stage.en-stage-soon { opacity: 0.6; cursor: default; padding-right: 14px; }
@media (max-width: 359px) { .bs-stage.en-stage-soon .bs-stage-name { font-size:calc(16px * var(--fs, 1)); } }
.bs-stage.en-stage-soon:active { transform: none; }
:root { --env-r: #ffc5c8; --env-r-hi: #ffe5e6; --env-r-d: #bf303e; --env-b: #b2dcf8; --env-b-hi: #dceffc; --env-b-d: #418bc6;
  --env-y: #fff9bc; --env-y-hi: #fffce1; --env-y-d: #8a7d16; --env-g: #cee8b5; --env-g-hi: #e9f5de; --env-g-d: #487b57;
  --env-v: #e7d3ff; --env-v-hi: #f4ebff; --env-v-d: #8665c3; --env-n: #dfe3e8; --env-n-hi: #f1f2f5; --env-n-d: #6f7886;
  --env-o: #ffd2a6; --env-o-hi: #ffebd7; --env-o-d: #a5572a; --env-gl: #ecf5d4; --env-gl-hi: #f6faec; --env-gl-d: #487b57;
  --env-rd: #bf303e; --env-rd-hi: #d9838b; --env-rd-d: #7c1f28; --env-gd: #487b57; --env-gd-hi: #91b09a; --env-gd-d: #2f5039;
  --env-w: #f2f4f7; --env-w-hi: #ffffff; --env-w-d: #6f7886; --env-yr: #d6ce82;
  --env-line: #aeb8c8; }
:root.theme-light { --env-r: #ffb3b9; --env-r-hi: #ffd9dc; --env-b: #a0d1f4; --env-b-hi: #d0e8fa; --env-y: #ffef94; --env-y-hi: #fff7ca;
  --env-g: #bfe0a0; --env-g-hi: #dff0d0; --env-v: #dbc1ff; --env-v-hi: #ede0ff; --env-n: #d2d8e0; --env-n-hi: #e8ecf0;
  --env-o: #ffc48c; --env-o-hi: #ffe2c6; --env-gl: #e4f1c4; --env-gl-hi: #f2f8e2; --env-w: #ffffff; --env-yr: #d9cc6e; --env-line: #4d5560;
  --ph-str: #ecf5d4; --ph-lum: rgba(191,224,160,0.55); --ph-mem: #487b57; --ph-gran: #487b57; --ph-fs: #bfe0a0; --ph-fs2: #a5cf86; --ph-chl: #487b57;
  --ph-ant: #ffef94; --ph-etc: #ffb3b9; }
:root { --ph-str: rgba(206,232,181,0.07); --ph-lum: rgba(206,232,181,0.16); --ph-mem: #cee8b5; --ph-gran: #cee8b5; --ph-fs: #cee8b5; --ph-fs2: #a9cf8d;
  --ph-chl: #487b57; --ph-ant: #fff9bc; --ph-etc: #ffc5c8; }
#screen-bio-division:is([data-bio-mode^="en"], [data-bio-mode="pha"], [data-bio-mode="phs"], [data-bio-mode="phq"]) {
  --en-h: var(--env-r); --en-o: var(--env-r); --en-atp: var(--env-y); --en-e: var(--env-y); --en-p: var(--env-v); --en-coa: var(--env-b);
  --en-o2: var(--env-b); --en-h2o: var(--env-b); --en-nadh: var(--env-g); --en-nad: var(--env-gl); --en-c: var(--env-n); --en-co2: var(--env-n);
  --en-cyt1: var(--env-v); --en-cyt2: var(--env-b); --en-cyt3: var(--env-v); --en-heme: var(--env-rd); --en-rotor: var(--env-y); --en-rotor-d: var(--env-yr);
  --en-f1a: var(--env-y); --en-f1b: var(--env-r); --en-stator: var(--env-g); --en-cytc: var(--env-n); --en-head: var(--env-r);
  --en-outer: var(--env-r-d); --en-inner: var(--env-r-d); --en-inner-hi: var(--env-r); --en-edge: var(--env-line); --en-ink: #1b1f2a; --en-on: #1b1f2a;
  --en-krebs: #e7d3ff; --en-atp-line: #fff9bc; --en-e-line: #fff9bc; --en-nadh-line: #cee8b5; --en-o-line: #ffc5c8; --en-e-core: #ffffff;
  --en-cyt: rgba(0,0,0,0); --en-ims: rgba(231,211,255,0.09); --en-mat: rgba(255,197,200,0.08); --en-band: rgba(255,197,200,0.06);
  --en-tail: rgba(255,197,200,0.5); --en-chev: #ffc5c8; --en-gate: #dfe3e8; --en-chan: rgba(18,22,29,0.6);
  --en-h-ink: #ffc5c8; --en-atp-ink: #fff9bc; --en-e-ink: #fff9bc; }
:root.theme-light #screen-bio-division:is([data-bio-mode^="en"], [data-bio-mode="pha"], [data-bio-mode="phs"], [data-bio-mode="phq"]) {
  --en-krebs: #8665c3; --en-atp-line: #8a7d16; --en-e-line: #8a7d16; --en-nadh-line: #487b57; --en-o-line: #bf303e; --en-e-core: #8a7d16;
  --en-ims: #f7eeff; --en-mat: #ffe9e3; --en-band: rgba(255,197,200,0.18); --en-tail: rgba(191,48,62,0.45); --en-chev: #bf303e; --en-gate: #4d5560;
  --en-chan: rgba(255,255,255,0.7); --en-h-ink: #bf303e; --en-atp-ink: #6e6410; --en-e-ink: #6e6410; }
#screen-bio-division:is([data-bio-mode^="en"], [data-bio-mode="pha"], [data-bio-mode="phs"], [data-bio-mode="phq"]) #bio-scene {
  --gold: var(--env-y); --coral: #ffc5c8; --blue-ink: #b2dcf8;
  --bs-aa0: var(--env-v); --bs-aa1: var(--env-b); --bs-aa2: var(--env-r); --bs-aa3: var(--env-g); --bs-aa4: var(--env-y); --bs-aa5: var(--env-o); }
:root.theme-light #screen-bio-division:is([data-bio-mode^="en"], [data-bio-mode="pha"], [data-bio-mode="phs"], [data-bio-mode="phq"]) #bio-scene {
  --coral: #bf303e; --blue-ink: #2e6da6; }
#screen-bio-division:is([data-bio-mode^="en"], [data-bio-mode="pha"], [data-bio-mode="phs"], [data-bio-mode="phq"]) .bio-scene-card {
  background: var(--emb-bg); --surface: var(--emb-surface); }
:root { --cs-mt: #3ccbd9; --cs-if: #86d25e; --cs-mf: #ff7a66; --cs-myo: #b99cff; --cs-cell: #2a323d; --cs-cell-hi: #3a4556; --cs-nuc: rgba(150,120,255,0.18); --cs-nuc-hi: rgba(185,156,255,0.34); --cs-nuc-lo: rgba(120,92,230,0.12); --cs-ves: #ffc93c; --cs-bac: #8bd35f; }
:root.theme-light { --cs-mt: #0b8597; --cs-if: #3a8a20; --cs-mf: #cf3f2c; --cs-myo: #6b4bcc; --cs-cell: #e6ecf3; --cs-cell-hi: #f8fafd; --cs-nuc: rgba(110,80,220,0.12); --cs-nuc-hi: rgba(140,110,235,0.30); --cs-nuc-lo: rgba(110,80,220,0.10); --cs-ves: #9a6800; --cs-bac: #3d8a28; }
.bio-cs-on .bio-pult, .bio-cs-on #bio-counts { display: none; }
.bio-cs { margin: 6px 0 12px; }
.bio-cs[hidden], .bio-cs-fns[hidden], .bio-cs-step[hidden], .bio-cs-range[hidden] { display: none; }
.bio-cs-fns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bio-cs-fns[data-cols="1"] { grid-template-columns: 1fr; }
.bio-cs-fns[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.bio-cs-fns[data-kind="mt"] { --fn-c: var(--cs-mt); }
.bio-cs-fns[data-kind="if"] { --fn-c: var(--cs-if); }
.bio-cs-fns[data-kind="mf"] { --fn-c: var(--cs-mf); }
.bio-cs-fns[data-kind="prot"] { --fn-c: var(--primary); }
.bio-cs-fns[data-kind="carb"] { --fn-c: var(--gold); }
.bio-cs-fns[data-kind="lip"] { --fn-c: var(--coral); }
.bio-cs-fns[data-kind="nuc"] { --fn-c: var(--violet); }
.bio-cs-fn {
  text-align: left; hyphens: manual; -webkit-hyphens: manual; border: 0; border-radius: 10px 14px 14px 10px; padding: 4px 8px 4px 12px;
  background: color-mix(in srgb, var(--fn-c, var(--primary)) 9%, var(--surface-2)); box-shadow: inset 4px 0 0 var(--fn-c, var(--primary)), inset 0 0 0 1px var(--border);
  font-size:calc(13px * var(--fs, 1)); display: flex; align-items: center;
}
@media (max-width: 359px) { .bio-cs-fn { padding: 2px 3px; } }
.bio-cs-range { display: flex; flex-direction: column; margin: 0 0 6px; font-size:calc(13px * var(--fs, 1)); font-weight: 600; color: var(--text); }
.bio-cs-range input { width: 100%; height: 40px; margin: 0; accent-color: var(--primary); }
.bio-cs-nav { display: flex; gap: 8px; align-items: stretch; }
.bio-cs-go {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 2px 12px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--primary); color: #0d2b1e; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size:calc(14px * var(--fs, 1)); line-height: 1.15;
}
.bio-cs-go:disabled { opacity: 0.45; cursor: default; }
.bio-caption li.h { margin-top: 6px; padding-left: 0; font-weight: 700; }
.bio-caption li.h::before { display: none; }
.bio-cs-link { color: var(--primary-ink); font-size:calc(13px * var(--fs, 1)); }
.bio-cs-link[hidden] { display: none; }
.bio-lab-cs .bio-kinds { display: grid; grid-template-columns: auto auto auto; gap: 4px; overflow: visible; }
.bio-lab-cs .bio-kinds button {
  min-width: auto; min-height: 56px; padding: 3px 4px 2px; border-width: 4px 1px; border-radius: 14px; white-space: normal; text-align: center;
  line-height: 1.15; font-size:calc(12px * var(--fs, 1)); hyphens: manual; -webkit-hyphens: manual;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.bio-lab-cs .bio-kinds .cs-k-ico { display: block; width: 3.6em; height: 1.1em; flex: none; overflow: visible; }
.bio-lab-cs .bio-kinds button:not(.on) .cs-k-ico { opacity: 0.85; }
.bio-lab-cs .bio-kinds button[data-kind="mt"] { --cs-c: var(--cs-mt); }
.bio-lab-cs .bio-kinds button[data-kind="if"] { --cs-c: var(--cs-if); }
.bio-lab-cs .bio-kinds button[data-kind="mf"] { --cs-c: var(--cs-mf); }
.bio-lab-cs .bio-kinds .cs-k-short { display: none; }
@media (max-width: 359px) { .bio-lab-cs .bio-kinds .cs-k-full { display: none; } .bio-lab-cs .bio-kinds .cs-k-short { display: inline; } }
:root { --fc-blood: rgba(224,113,107,0.13); --fc-snake: #7cc36a; --fc-venom: #e6d35a; --fc-bean: #c58d5b; --fc-milk: #ece6d8; }
:root.theme-light { --fc-blood: rgba(200,70,63,0.09); --fc-snake: #4f9a39; --fc-venom: #c9ad1c; --fc-bean: #b0773f; --fc-milk: #f6f1e4; }
:root { --fc-bark: #9a6a44; --fc-gum: #e8a03a; --fc-snail: #d8bf98; --fc-shell: #a8743e; --fc-slime: rgba(150,210,255,0.55); --fc-beetle: #a0683e; --fc-chitin: #c79a5e;
  --fc-frost: rgba(120,180,255,0.12); --fc-ice: #bfe3ff; --fc-fat: #f2cf5b; --fc-leaf: #5fbf5a; --fc-wax: #e8eef2; --fc-camel: #d2a86e; --fc-skin: #e2a48a; --fc-organ: #d9727a; }
:root.theme-light { --fc-bark: #7d5232; --fc-gum: #c47a10; --fc-snail: #b8935e; --fc-shell: #8a5526; --fc-slime: rgba(60,140,220,0.45); --fc-beetle: #7a4a26; --fc-chitin: #9a6d2e;
  --fc-frost: rgba(60,130,230,0.1); --fc-ice: #8fc8f2; --fc-fat: #d9a91c; --fc-leaf: #3f9a3a; --fc-wax: #c9d5dc; --fc-camel: #a97c3f; --fc-skin: #c97a5e; --fc-organ: #c4505a; }
.bio-fc-on .bio-pult, .bio-fc-on #bio-counts { display: none; }
.bio-fc-fns { grid-template-columns: repeat(6, 1fr); }
.bio-fc-fns .bio-cs-fn { grid-column: span 2; }
.bio-fc-fns .bio-cs-fn.wide { grid-column: span 3; }
.bio-lab-fc .bio-kinds { display: grid; grid-template-columns: auto auto auto auto; gap: 2px; overflow: visible; }
.bio-lab-fc .bio-kinds button {
  min-width: auto; min-height: 48px; padding: 2px 4px; border-width: 4px 1px; border-radius: 16px; white-space: normal; text-align: center;
  line-height: 1.15; font-size:calc(12px * var(--fs, 1)); hyphens: manual; -webkit-hyphens: manual;
}
.bio-lab-fc .bio-kinds button.fc-soon { background-color: transparent; font-weight: 500; opacity: 0.6; }
.bio-lab-fc .bio-kinds button.fc-soon.on { opacity: 1; }
.bio-lab-fc .bio-kinds .fc-k-short { display: none; }
@media (max-width: 359px) { .bio-lab-fc .bio-kinds .fc-k-full { display: none; } .bio-lab-fc .bio-kinds .fc-k-short { display: inline; } }
.bio-fc-link {
  display: flex; align-items: center; gap: 8px; width: 100%; margin: 8px 0 0; padding: 8px 12px; min-height: 44px;
  border: 0; border-radius: 12px; background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--primary);
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size:calc(14px * var(--fs, 1)); line-height: 1.25; text-align: left; cursor: pointer;
}
.bio-fc-link svg { width: 18px; height: 18px; flex: none; color: var(--primary-ink); }
.bio-fc-link[hidden] { display: none; }
.bio-arrow { font-family: -apple-system, 'Helvetica Neue', Roboto, Arial, sans-serif; font-weight: 400; }
:root { --sy-h1: #b2dcf8; --sy-h1-cyto: #283a4f; --sy-h2: #e7d3ff; --sy-h2-cyto: #322b48; --sy-alpha: #ffc5c8; --sy-alpha-cyto: #402b30;
  --sy-nuc: #e7d3ff; --sy-nuc-fill: #e7d3ff; --sy-nuc-line: #8665c3; --sy-rib: #fff9bc; --sy-rib-line: #8a7d16; }
:root.theme-light { --sy-h1: #418bc6; --sy-h1-cyto: #eaf4fc; --sy-h2: #8665c3; --sy-h2-cyto: #f7eeff; --sy-alpha: #bf303e; --sy-alpha-cyto: #ffe9e3;
  --sy-nuc: #8665c3; --sy-rib: #cac171; }
#screen-bio-division[data-bio-mode="sya"] .bio-scene-card { background: var(--emb-bg); --surface: var(--emb-surface); }
#screen-bio-division[data-bio-mode="sya"] #bio-scene { --ph-chl: #cee8b5; --ph-str: #cee8b5; --ph-gran: #487b57; --ph-mem: #487b57; }
:root.theme-light #screen-bio-division[data-bio-mode="sya"] #bio-scene { --ph-chl: #487b57; }
:root { --fc-mouth: var(--coral); --fc-sun: var(--gold); }
:root { --bv-ink: #1b1f2a; --bv-Y-glow: #fff9bc;
  --bv-R-hi: #ffe8e9; --bv-R: #ffc5c8; --bv-R-lo: #eb959c; --bv-R-d: #bf303e; --bv-R-line: #ffc5c8;
  --bv-B-hi: #e0f1fc; --bv-B: #b2dcf8; --bv-B-lo: #8ec2e8; --bv-B-d: #418bc6; --bv-B-line: #b2dcf8;
  --bv-Y-hi: #fffde4; --bv-Y: #fff9bc; --bv-Y-lo: #dad187; --bv-Y-d: #8a7d16; --bv-Y-line: #fff9bc;
  --bv-G-hi: #ebf6e1; --bv-G: #cee8b5; --bv-G-lo: #a3c597; --bv-G-d: #487b57; --bv-G-line: #cee8b5;
  --bv-V-hi: #f5edff; --bv-V: #e7d3ff; --bv-V-lo: #c8b0ec; --bv-V-d: #8665c3; --bv-V-line: #e7d3ff;
  --bv-N-hi: #f2f4f6; --bv-N: #dfe3e8; --bv-N-lo: #bbc1c9; --bv-N-d: #6f7886; --bv-N-line: #dfe3e8;
  --bv-O-hi: #ffeddb; --bv-O: #ffd2a6; --bv-O-lo: #e2ab7e; --bv-O-d: #a5572a; --bv-O-line: #ffd2a6; }
:root.theme-light { --bv-Y-glow: #cac171;
  --bv-R: #f7b3b7; --bv-R-lo: #e4868e; --bv-R-line: #bf303e;
  --bv-B: #a4d2f2; --bv-B-lo: #83bae3; --bv-B-line: #418bc6;
  --bv-Y: #f1eaa8; --bv-Y-lo: #cec576; --bv-Y-line: #8a7d16;
  --bv-G: #bedbaa; --bv-G-lo: #96ba8e; --bv-G-line: #487b57;
  --bv-V: #dbc6f8; --bv-V-lo: #bea5e6; --bv-V-line: #8665c3;
  --bv-N: #d2d6dc; --bv-N-lo: #b0b6bf; --bv-N-line: #6f7886;
  --bv-O: #f4c397; --bv-O-lo: #d99e72; --bv-O-line: #a5572a; }
#screen-bio-division:is([data-bio-mode^="pf"], [data-bio-mode^="fz"], [data-bio-mode^="bd_"], [data-bio-mode="fca"]) .bio-scene-card {
  background: var(--emb-bg); --surface: var(--emb-surface); }
#screen-bio-division:is([data-bio-mode^="pf"], [data-bio-mode^="fz"], [data-bio-mode^="bd_"], [data-bio-mode="fca"]) #bio-scene {
  --gold: #fff9bc; --coral: #ffc5c8; --blue: #b2dcf8; --violet: #e7d3ff; --en-nadh: #cee8b5; --en-stator: #cee8b5; --en-h2o: #b2dcf8; --en-rotor: #ffd2a6;
  --coral-ink: #ffc5c8; --blue-ink: #b2dcf8; --violet-ink: #e7d3ff; --gold-ink: #fff9bc; --cs-cell: #262d39; --cs-nuc: rgba(231,211,255,0.10); }
:root.theme-light #screen-bio-division:is([data-bio-mode^="pf"], [data-bio-mode^="fz"], [data-bio-mode^="bd_"], [data-bio-mode="fca"]) #bio-scene {
  --coral-ink: #bf303e; --blue-ink: #2e6da6; --violet-ink: #7356b0; --gold-ink: #6e6410; --cs-cell: #f3f5f9; --cs-nuc: #f7eeff; }
:root { --bx-wall: #b2dcf8; --bx-dead: #ffc5c8; --bx-own: #e7d3ff; --bx-don: #fff9bc; --bx-don-in: #8a7d16; --bx-cyto: #283a4f; --bx-cyto-d: #402b30; }
:root.theme-light { --bx-wall: #418bc6; --bx-dead: #bf303e; --bx-own: #8665c3; --bx-don: #a06c0e; --bx-don-in: #a06c0e; --bx-cyto: #eaf4fc; --bx-cyto-d: #ffe9e3; }
:root { --vr-ink: #cee8b5; --vr-edge: #487b57; --vr-fill: #cee8b5; --vr-cap: #29392c; --vr-cell: #2c3341; --vr-line: #aeb8c8;
  --vr-nuc: #322b48; --vr-nuc-line: #e7d3ff; --vr-rib-fill: #fff9bc; --vr-rib: #8a7d16; }
:root.theme-light { --vr-ink: #487b57; --vr-cap: #cee8b5; --vr-cell: #ffffff; --vr-line: #4d5560; --vr-nuc: #f7eeff; --vr-nuc-line: #8665c3; }
#screen-bio-division:is([data-bio-mode="virus"], [data-bio-mode="rnavirus"], [data-bio-mode="phage"], [data-bio-mode^="bx_"]) .bio-scene-card {
  background: var(--emb-bg); --surface: var(--emb-surface); }
.bio-lab-bx .bio-kinds { display: grid; grid-template-columns: auto auto auto; gap: 2px; overflow: visible; }
.bio-lab-bx .bio-kinds button {
  min-width: auto; padding: 2px 4px; border-width: 4px 1px; border-radius: 16px; white-space: normal; text-align: center;
  line-height: 1.15; font-size:calc(12px * var(--fs, 1)); hyphens: manual; -webkit-hyphens: manual;
}
.bio-home-grid { grid-template-rows: 1.25fr 1fr auto; }
.bio-home-grid .bq-tile { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; padding: 12px 16px; }
.bio-home-grid .bq-tile .bio-group-ico { width: 44px; height: 44px; position: relative; z-index: 1; }
.bio-home-grid .bq-tile .bio-group-text { flex: 1; max-width: none; min-width: 0; }
.bio-home-grid .bq-tile .bio-group-title { font-size:calc(22px * var(--fs, 1)); }
.bio-home-grid .bq-tile .bio-group-sub { font-size:calc(13px * var(--fs, 1)); margin-top: 2px; }
.bio-home-grid .bq-tile .bio-group-arrow { flex: none; position: relative; z-index: 1; width: 36px; height: 36px; font-size:calc(18px * var(--fs, 1)); }
.bio-home-grid .bq-tile .bio-group-wm { width: 96px; height: 96px; right: -10px; bottom: -30px; }
#bq-root h1 { text-transform: lowercase; margin-bottom: 2px; }
#bq-root .subtitle { margin: 2px 0 14px; }
.bq-review { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 14px; padding: 14px 16px; border: 0; border-radius: 18px; background: var(--bio-g-dark, #487B57); color: #fff; font-family: 'Montserrat', sans-serif; text-align: left; cursor: pointer; }
.bq-review b { font-size:calc(16px * var(--fs, 1)); } .bq-review span { flex: 1; font-size:calc(13px * var(--fs, 1)); opacity: 0.9; } .bq-review i { font-style: normal; font-size:calc(18px * var(--fs, 1)); }
#screen-bio-cards[data-subj="chem"] { --bio-g-dark: #8665C3; --bio-g-main: #E7D3FF; --bio-g-bg: #F7EEFF; }
.bq-blocks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.bq-block { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 16px; background: var(--surface); color: var(--text); font-family: 'Montserrat', sans-serif; text-align: left; cursor: pointer; }
.bq-bn { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bio-g-dark, #487B57); color: #fff; font-weight: 800; }
.bq-bt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bq-bt b { font-size:calc(15px * var(--fs, 1)); } .bq-bt small { font-size:calc(12px * var(--fs, 1)); color: var(--text-muted); }
.bq-bar { display: flex; height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.bq-bar i.k { background: var(--primary); } .bq-bar i.l { background: var(--gold); }
.bq-block > i, .bq-mode > i { font-style: normal; color: var(--text-muted); font-size:calc(18px * var(--fs, 1)); }
.bq-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.bq-stat span { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 14px; background: var(--surface); font-size:calc(12px * var(--fs, 1)); color: var(--text-muted); }
.bq-stat b { font-size:calc(22px * var(--fs, 1)); color: var(--text); } .bq-stat .k b { color: var(--primary-ink); } .bq-stat .l b { color: var(--gold-ink); }
.bq-mode { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 8px; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--surface); color: var(--text); font-family: 'Montserrat', sans-serif; text-align: left; cursor: pointer; }
.bq-mt { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.bq-mt b { font-size:calc(16px * var(--fs, 1)); } .bq-mt span { font-size:calc(12.5px * var(--fs, 1)); color: var(--text-muted); line-height: 1.35; }
.bq-top { display: flex; justify-content: space-between; font-size:calc(12px * var(--fs, 1)); font-weight: 700; color: var(--text-muted); margin-bottom: 6px; }
.bq-prog { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-bottom: 10px; }
.bq-prog i { display: block; height: 100%; background: var(--primary); transition: width 0.3s ease; }
.bq-card { background: var(--surface); border-radius: 18px; padding: 14px 16px; margin-bottom: 10px; }
.bq-q { font-size:calc(15px * var(--fs, 1)); line-height: 1.5; margin: 0 0 10px; }
.bq-ask { font-size:calc(15px * var(--fs, 1)); font-weight: 700; margin: 0 0 10px; }
.bq-given { margin: 0 0 10px; font-size:calc(14px * var(--fs, 1)); line-height: 1.45; } .bq-given p { margin: 0 0 4px; }
.bq-table-wrap { margin: 0 0 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bq-table { width: 100%; border-collapse: collapse; font-size:calc(12.5px * var(--fs, 1)); hyphens: auto; -webkit-hyphens: auto; line-height: 1.35; font-variant-numeric: tabular-nums; }
.bq-table th, .bq-table td { padding: 5px 4px; border: 1px solid var(--border); text-align: center; vertical-align: middle; }
.bq-table th { background: var(--surface-2); font-size:calc(11.5px * var(--fs, 1)); font-weight: 700; }
.bq-table td:first-child { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
.bq-table td:not(:first-child) { white-space: nowrap; }
.bq-img { display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #fff; margin: 4px 0 10px; touch-action: pan-x pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media (hover: hover) and (pointer: fine) { .bq-img { cursor: zoom-in; } .bq-flip .bq-img { cursor: pointer; } }
.bq-pinch-back { position: fixed; inset: 0; z-index: 2999; background: rgba(0, 0, 0, 0.75); opacity: 0; pointer-events: none; }
.bq-pinch-img { position: fixed; z-index: 3000; transform-origin: 0 0; background: #fff; border-radius: 12px; pointer-events: none; will-change: transform; }
.bq-sheet { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0.55);
  padding-top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) + 24px); }
.bq-sheet-panel { position: relative; width: 100%; max-width: 480px; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--bg);
  border-radius: 20px 20px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px)); font-size:calc(15px * var(--fs, 1)); line-height: 1.5; }
.bq-sheet-x { position: sticky; top: 0; float: right; width: 40px; height: 40px; margin: -6px -6px 0 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--text); font-size:calc(16px * var(--fs, 1)); cursor: pointer; z-index: 1; }
.bq-sheet-card { padding: 4px 0 14px; } .bq-sheet-card + .bq-sheet-card { border-top: 1px solid var(--border); padding-top: 14px; }
.bq-sheet-card .bq-side { position: static; display: block; margin: 8px 0 4px; }
.bq-mine { margin: 0 0 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 107, 107, 0.12); color: var(--coral-ink); font-size:calc(14px * var(--fs, 1)); }
.bq-prev { margin: -2px 0 6px; padding: 0; min-height: 32px; }
.bq-rrow { cursor: pointer; }
.bq-img img { display: block; width: 100%; height: auto; }
.bq-zoom { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; justify-content: center; gap: 10px; background: rgba(0, 0, 0, 0.88); padding: 12px 0; }
.bq-zoom-pan { max-height: calc(100% - 44px); overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.bq-zoom-pan img { display: block; width: 180%; max-width: none; height: auto; background: #fff; border-radius: 8px; }
@media (orientation: landscape) { .bq-zoom-pan img { width: 100%; } }
.bq-zoom span, .bq-zoom-x { align-self: center; color: #fff; font-size:calc(13px * var(--fs, 1)); }
.bq-zoom-x { min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: none; font-family: 'Montserrat', sans-serif; font-weight: 600; cursor: pointer; }
.bq-zoom-x:focus-visible, .bq-zoom-pan:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bq-reveal, .bq-check { width: 100%; margin-top: 4px; }
.bq-skip, .bq-link { display: block; margin: 8px auto 0; border: 0; background: none; color: var(--text-muted); font-family: 'Montserrat', sans-serif; font-size:calc(13px * var(--fs, 1)); font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 36px; }
.bq-legend { font-size:calc(12.5px * var(--fs, 1)); color: var(--text-muted); line-height: 1.5; margin: 0 0 8px; }
.bq-legend span { font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.bq-legend .g0, .bq-chip[data-v="0"] { background: rgba(62, 157, 255, 0.18); }
.bq-legend .g1, .bq-chip[data-v="1"] { background: rgba(255, 201, 60, 0.22); }
.bq-legend .g01, .bq-chip[data-v="01"] { background: rgba(140, 111, 255, 0.2); }
.bq-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bq-chip { position: relative; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); font-family: 'Montserrat', sans-serif; font-size:calc(13px * var(--fs, 1)); font-weight: 600; text-align: left; cursor: pointer; min-height: 40px; }
.bq-chip[data-v="0"] { border-color: var(--blue); } .bq-chip[data-v="1"] { border-color: var(--gold); } .bq-chip[data-v="01"] { border-color: var(--violet); }
.bq-chip.right { box-shadow: 0 0 0 2px var(--primary); } .bq-chip.wrong { box-shadow: 0 0 0 2px var(--coral); }
.bq-vtext { line-height: 2.1; }
.bq-seg { display: inline; padding: 3px 3px; border-bottom: 2px dashed var(--text-muted); border-radius: 4px; background: var(--surface-2); color: var(--text); cursor: pointer; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.bq-legend .vi, .bq-seg[data-v="i"] { background: rgba(62, 157, 255, 0.22); border-bottom-color: var(--blue); }
.bq-legend .vd, .bq-seg[data-v="d"] { background: rgba(255, 201, 60, 0.28); border-bottom-color: var(--gold); }
.bq-seg.right { outline: 2px solid var(--primary); } .bq-seg.wrong { outline: 2px solid var(--coral); }
.bq-step { font-size:calc(14px * var(--fs, 1)); font-weight: 700; margin: 6px 0; }
.bq-opts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.bq-x-cats { margin: 0 0 8px; padding-left: 22px; font-size:calc(14px * var(--fs, 1)); line-height: 1.45; }
.bq-x-rows { display: grid; gap: 6px; margin-bottom: 8px; }
.bq-x-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-2); font-size:calc(14px * var(--fs, 1)); line-height: 1.4; }
.bq-x-row > span:first-child { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.bq-x-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; flex-shrink: 0; max-width: 50%; }
.bq-x-cat { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: 700 14px 'JetBrains Mono', monospace; cursor: pointer; }
.bq-x-cat.on { border-color: var(--violet); background: rgba(140, 111, 255, 0.2); }
.bq-x-order { display: grid; gap: 6px; margin-bottom: 8px; }
.bq-x-ord { display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); font-family: 'Montserrat', sans-serif; font-size:calc(14px * var(--fs, 1)); line-height: 1.4; cursor: pointer; }
.bq-x-ord i { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px dashed var(--border); display: grid; place-items: center; font: 700 13px 'JetBrains Mono', monospace; }
.bq-x-ord.on { border-color: var(--violet); } .bq-x-ord.on i { border-style: solid; border-color: var(--violet); background: var(--violet); color: #fff; }
.bq-x-fix { line-height: 2.1; }
.bq-x-seg { padding: 2px 4px; border-radius: 6px; border-bottom: 2px dotted var(--text-muted); cursor: pointer; }
.bq-x-seg.on { background: rgba(255, 92, 92, 0.16); border-bottom-color: var(--coral); text-decoration: line-through; text-decoration-color: var(--coral); }
.bq-x-text { display: block; width: 100%; margin: 4px 0 8px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); font: 15px/1.45 'Montserrat', sans-serif; resize: vertical; }
.bq-x-why { color: var(--text-muted); font-size:calc(13px * var(--fs, 1)); line-height: 1.45; }
.bq-x-part { font-weight: 700; color: var(--gold-ink); }
.bq-x-cardsof { margin-top: 10px; }
.bq-crit { display: grid; gap: 6px; margin-bottom: 8px; }
.bq-crit-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 10px; border: 1.5px solid transparent; border-radius: 12px; background: var(--surface-2); cursor: pointer; font-size:calc(14px * var(--fs, 1)); line-height: 1.45; }
.bq-crit-row:has(input:checked) { border-color: var(--primary); }
.bq-crit-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); }
.bq-crit-n { font-weight: 700; }
.bq-crit-t { overflow-wrap: anywhere; }
.bq-crit-or { display: block; font-style: normal; font-size:calc(11.5px * var(--fs, 1)); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin: 4px 0; }
.bq-opt { padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); font-family: 'Montserrat', sans-serif; font-size:calc(13.5px * var(--fs, 1)); font-weight: 600; text-align: left; cursor: pointer; min-height: 44px; }
.bq-opt.on { border-color: var(--violet); background: rgba(140, 111, 255, 0.14); }
.bq-opt.right { border-color: var(--primary); background: rgba(61, 220, 151, 0.14); } .bq-opt.wrong { border-color: var(--coral); background: rgba(255, 92, 92, 0.12); }
.bq-ans { background: var(--surface); border-radius: 18px; padding: 14px 16px; margin-bottom: 10px; border-left: 4px solid var(--text-muted); font-size:calc(14.5px * var(--fs, 1)); line-height: 1.5; }
.bq-ans.good { border-left-color: var(--primary); } .bq-ans.bad { border-left-color: var(--coral); }
.bq-ans p { margin: 0 0 6px; } .bq-ans mark { background: rgba(255, 201, 60, 0.3); color: inherit; border-radius: 3px; padding: 0 2px; }
.bq-v { font-weight: 800; font-size:calc(15px * var(--fs, 1)); } .bq-note { font-size:calc(12.5px * var(--fs, 1)); color: var(--text-muted); }
.bq-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bq-grade button { min-height: 48px; border: 0; border-radius: 14px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size:calc(13.5px * var(--fs, 1)); cursor: pointer; color: #fff; }
.bq-grade .again { background: var(--bq-learn-bg); } .bq-grade .hard { background: var(--bq-hard-bg); } .bq-grade .good { background: var(--bq-know-bg); }
.bq-done p { margin: 0 0 6px; }
#screen-bio-cards { --bio-g-dark: #487B57; --bio-g-main: #CEE8B5; --bio-g-bg: #ECF5D4; }
@media (max-height: 760px) { #screen-biology .bio-home-stats { display: none; } }
@media (max-height: 720px) { #screen-biology .bio-home-half .bio-group-sub, #screen-biology .bq-tile .bio-group-sub { display: none; } }
@media (max-height: 620px) { #screen-biology .bio-home-wide:not(.bq-tile) .bio-group-sub { display: none; } }
.bq-mode[data-mode="deck"] { background: var(--bio-g-dark, #487B57); color: #fff; }
.bq-mode[data-mode="deck"] .bq-mt span, .bq-mode[data-mode="deck"] > i { color: #fff; }
.bq-listhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 6px; }
.bq-listhead .topic-tag { margin: 0; }
.bq-listhead .bq-link { margin: 0; padding: 0 6px; }
.bq-link.on { color: var(--gold-ink); }
.bq-terms { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.bq-term { display: grid; grid-template-columns: 1fr auto; background: var(--surface); border-radius: 14px; overflow: hidden; }
.bq-term-q { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 10px 4px 10px 14px; border: 0; background: none; color: var(--text); font-family: 'Montserrat', sans-serif; font-size:calc(13.5px * var(--fs, 1)); font-weight: 600; line-height: 1.4; text-align: left; cursor: pointer; }
.bq-term-q span { overflow-wrap: anywhere; }
.bq-term-q em { font-style: normal; font-size:calc(11px * var(--fs, 1)); font-weight: 700; color: var(--text-muted); }
.bq-term-q em.know { color: var(--primary-ink); } .bq-term-q em.learn { color: var(--gold-ink); }
.bq-term-a { grid-column: 1 / -1; padding: 0 14px 10px; font-size:calc(13.5px * var(--fs, 1)); line-height: 1.5; }
.bq-term-a p { margin: 0 0 6px; } .bq-term-a mark, .bq-face mark { background: rgba(255, 201, 60, 0.3); color: inherit; border-radius: 3px; padding: 0 2px; }
.bq-star { flex: none; width: 44px; min-height: 44px; border: 0; background: none; color: var(--text-muted); font-size:calc(20px * var(--fs, 1)); line-height: 1; cursor: pointer; opacity: 0.55; }
.bq-star.on { color: var(--gold); opacity: 1; }
.bq-deckbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bq-tg { flex: 1 1 auto; min-height: 36px; padding: 6px 10px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text-muted); font-family: 'Montserrat', sans-serif; font-size:calc(12px * var(--fs, 1)); font-weight: 700; cursor: pointer; }
.bq-tg.on { border-color: var(--bio-g-dark, #487B57); color: var(--text); background: var(--surface-2); }
.bq-counts { display: flex; justify-content: space-between; align-items: center; font-size:calc(12.5px * var(--fs, 1)); font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.bq-counts .l b { color: var(--coral-ink); } .bq-counts .k b { color: var(--primary-ink); }
.bq-stage { position: relative; perspective: 1200px; margin-bottom: 10px; min-height: 260px; }
.bq-flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.45s cubic-bezier(.2, .7, .2, 1); cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.bq-flip.flipped { transform: rotateY(180deg); }
.bq-face { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 30px 0 0; border-radius: 20px; background: var(--surface); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; font-size:calc(15px * var(--fs, 1)); line-height: 1.5; }
.bq-fc { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 0 18px 16px; }
.bq-fci { margin: auto 0; }
.bq-fc.more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); }
.bq-flip:not(.flipped) .bq-face.back, .bq-flip.flipped .bq-face.front { pointer-events: none; }
html.bq-deck-lock, html.bq-deck-lock body { overflow: hidden; overscroll-behavior: none; }
.bq-face.back { transform: rotateY(180deg); border: 2px solid var(--bio-g-dark, #487B57); }
.bq-face .bq-q, .bq-face .bq-a { margin: 0 0 8px; }
.bq-fci.big, .bq-fci.mid { text-align: center; }
.bq-fci.big .bq-q, .bq-fci.big .bq-a { font-size: clamp(24px, 7.2vw, 34px); line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.bq-fci.mid .bq-q, .bq-fci.mid .bq-a { font-size: clamp(19px, 5.4vw, 24px); line-height: 1.35; font-weight: 700; }
.bq-fci.mid .bq-img { width: auto; max-width: 100%; margin: 8px auto 4px; }
.bq-fci.mid .bq-img img { width: auto; max-width: 100%; max-height: 48vh; margin: 0 auto; }
.bq-fci.mid .bq-a:empty { display: none; }
.bq-img.nat, .bq-fci.mid .bq-img.nat { width: 190px; max-width: 100%; margin: 8px auto 6px; background: none; border-radius: 50%; }
.bq-img.nat img, .bq-fci.mid .bq-img.nat img { width: 100%; max-height: none; border-radius: 50%; }
.bq-side { position: absolute; top: 10px; left: 16px; font-size:calc(11px * var(--fs, 1)); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.bq-card > .bq-side, .bq-tfcand .bq-side { position: static; display: block; margin-bottom: 4px; }
.bq-swipe { position: absolute; top: 12px; z-index: 2; padding: 4px 10px; border-radius: 10px; font-size:calc(13px * var(--fs, 1)); font-weight: 800; text-transform: uppercase; color: #fff; opacity: 0; pointer-events: none; }
.bq-swipe.l { left: 12px; background: var(--bq-learn-bg); } .bq-swipe.k { right: 12px; background: var(--bq-know-bg); }
.bq-star-card { position: absolute; top: 0; right: 0; z-index: 3; }
:root { --bq-learn-bg: #c43c3c; --bq-know-bg: #13804f; --bq-hard-bg: #9a6200; }
.bq-deckbtns { display: grid; grid-template-columns: 48px 1fr 1fr 48px; gap: 6px; }
.bq-deckbtns button { min-height: 50px; border: 0; border-radius: 14px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size:calc(14px * var(--fs, 1)); cursor: pointer; }
.bq-nav { background: var(--surface); color: var(--text); font-size:calc(24px * var(--fs, 1)) !important; line-height: 1; padding: 0; } .bq-nav:disabled { opacity: 0.35; cursor: default; }
.bq-cur { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3; padding: 3px 10px; border-radius: 10px; font-size:calc(12px * var(--fs, 1)); font-weight: 800; text-transform: uppercase; color: #fff; pointer-events: none; }
.bq-cur.k { background: var(--bq-know-bg); } .bq-cur.l { background: var(--bq-learn-bg); }
.bq-term-act { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.bq-term-act button { min-height: 44px; border: 0; border-radius: 12px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size:calc(13px * var(--fs, 1)); cursor: pointer; color: #fff; }
.bq-term-act .bq-act-learn { background: var(--bq-learn-bg); } .bq-term-act .bq-act-know { background: var(--bq-know-bg); }
.bq-term-act .bq-act-deck { grid-column: 1 / -1; background: var(--bg); color: var(--text); border: 1px solid var(--border, rgba(127,127,127,0.3)); }
.bq-learn { background: var(--bq-learn-bg); color: #fff; } .bq-know { background: var(--bq-know-bg); color: #fff; }
.bq-learn:active, .bq-learn:focus-visible { background: var(--bq-learn-bg); color: #fff; }
.bq-know:active, .bq-know:focus-visible { background: var(--bq-know-bg); color: #fff; }
.bq-deckhint { text-align: center; margin-top: 8px; }
.bq-done { text-align: center; }
.bq-ring { --p: 0; width: 112px; height: 112px; margin: 10px auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--surface-2) 0); }
.bq-ring b { display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; background: var(--surface); font-size:calc(22px * var(--fs, 1)); font-weight: 800; }
.bq-done + .primary-btn, .bq-done ~ .secondary-btn { width: 100%; margin-bottom: 8px; }
.bq-setup .bq-step { margin-top: 12px; } .bq-setup .bq-step:first-child { margin-top: 0; }
.bq-stepper { display: flex; align-items: center; gap: 10px; }
.bq-stepper button { width: 44px; height: 44px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); font-size:calc(20px * var(--fs, 1)); font-weight: 700; cursor: pointer; }
.bq-stepper b { min-width: 32px; text-align: center; font-family: 'JetBrains Mono', monospace; font-size:calc(20px * var(--fs, 1)); }
.bq-stepper span { font-size:calc(13px * var(--fs, 1)); color: var(--text-muted); }
.bq-chk { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size:calc(14px * var(--fs, 1)); line-height: 1.35; cursor: pointer; }
.bq-chk input { flex: none; width: 20px; height: 20px; accent-color: var(--bio-g-dark, #487B57); }
#bq-exam-go { width: 100%; }
.bq-examnav { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.bq-examnav button { width: 100%; margin: 0; }
.bq-tfcand { margin: 4px 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size:calc(14.5px * var(--fs, 1)); font-weight: 600; line-height: 1.45; }
.bq-tf { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bq-tf .bq-opt { text-align: center; }
.bq-match { display: grid; grid-template-columns: 1.5fr 1fr; gap: 6px; }
.bq-mcol { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bq-mi { position: relative; display: flex; gap: 6px; align-items: flex-start; min-height: 44px; padding: 8px 8px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); font-family: 'Montserrat', sans-serif; font-size:calc(12px * var(--fs, 1)); font-weight: 600; line-height: 1.35; text-align: left; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; cursor: pointer; }
.bq-mi i { flex: none; min-width: 18px; font-style: normal; font-weight: 800; }
.bq-mi.pick { border-color: var(--violet); background: rgba(140, 111, 255, 0.14); }
.bq-mi[data-p="0"] { border-color: var(--blue); } .bq-mi[data-p="1"] { border-color: var(--gold); } .bq-mi[data-p="2"] { border-color: var(--violet); }
.bq-mi[data-p="3"] { border-color: var(--primary); } .bq-mi[data-p="4"] { border-color: var(--coral); }
.bq-results { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.bq-rrow { padding: 10px 14px; border-radius: 14px; background: var(--surface); border-left: 4px solid var(--primary); font-size:calc(13.5px * var(--fs, 1)); line-height: 1.45; }
.bq-rrow.bad { border-left-color: var(--coral); }
.bq-rrow p { margin: 0 0 4px; overflow-wrap: anywhere; }
.bq-rh { display: flex; gap: 8px; font-size:calc(12px * var(--fs, 1)); font-weight: 700; color: var(--text-muted); }
.bq-rrow.good .bq-rh { color: var(--primary-ink); } .bq-rrow.bad .bq-rh { color: var(--coral-ink); }
.bq-rq { font-weight: 700; } .bq-rcand { color: var(--text-muted); } .bq-rmine { color: var(--coral-ink); }
.bq-terms { gap: 4px; }
.bq-term-q { flex-direction: row; align-items: center; gap: 10px; padding: 8px 4px 8px 10px; font-size:calc(13px * var(--fs, 1)); line-height: 1.35; }
.bq-term-q span { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bq-term.open .bq-term-q span { visibility: hidden; height: 0; }
.bq-term-n { flex: none; display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 4px; border-radius: 9px; font-size:calc(12px * var(--fs, 1)); font-weight: 800; background: var(--surface-2); color: var(--text-muted); }
.bq-term-n.know { background: rgba(61, 220, 151, 0.18); color: var(--primary-ink); }
.bq-term-n.learn { background: rgba(255, 201, 60, 0.22); color: var(--gold-ink); }
.bq-term-pic { flex: none; font-style: normal; font-size:calc(12px * var(--fs, 1)); font-weight: 700; color: var(--text-muted); }
.bq-term-full { font-weight: 700; margin: 0 0 6px; }
.bq-term-st { margin: 0 0 6px; font-size:calc(12px * var(--fs, 1)); font-weight: 700; color: var(--text-muted); }
.bq-term-st.know { color: var(--primary-ink); } .bq-term-st.learn { color: var(--gold-ink); }
.bq-term-a .bq-img { margin: 0 0 8px; }
.bq-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: -2px 0 8px; font-size:calc(12px * var(--fs, 1)); color: var(--text-muted); }
.bq-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--surface-2); }
.bq-legend i.know { background: var(--primary); } .bq-legend i.learn { background: var(--gold); } .bq-legend i.new { background: var(--text-muted); opacity: 0.4; }
#screen-biology .bq-tile.trainer-soon .bio-group-sub { display: block; }
#screen-bio-division .emb3d.sc3d { background: var(--surface-2); }
#screen-bio-division .emb3d.sc3d.full { background: var(--surface); }
#screen-bio-division .pf3d-probe { display: none; }
:root { --mt-glass: rgba(178,220,248,.10); --mt-glass-line: #aeb8c8; --mt-dev: #2c3341; --mt-dev-line: #7d8592; --mt-bowl: #1a1f29;
  --mt-rotor: #3a4252; --mt-rotor-line: #aeb8c8; --mt-slot: #232935; --mt-hub: #4a5262; --mt-rack: #3a4252;
  --mt-plasma: #fff9bc; --mt-rbc: #bf303e; --mt-rbc-hi: #ffc5c8; --mt-wbc: #f2f4f6; --mt-force: #b2dcf8; --mt-arrow: #aeb8c8;
  --mt-hom: rgba(255,233,227,.13); --mt-cell: #2c3341; --mt-cell-line: #aeb8c8; --mt-gauge: #b2dcf8; --mt-gauge-line: #7d8592;
  --mt-cs: #24364a; --mt-cs-d: #3f77a6; --mt-n14: #b2dcf8; --mt-n15: #ffc5c8;
  --mt-solv: #26394d; --mt-solv-line: #8ec2e8; --mt-solv-bg: #1f2a38; --mt-ext: #5aa04a; --mt-leaf: #cee8b5; --mt-leaf-d: #487b57;
  --mt-stone: #3a4252; --mt-stone-line: #aeb8c8; --mt-paper: #dfe4ea; --mt-paper-line: #7d8592; --mt-wet: rgba(142,194,232,.32);
  --mt-pencil: #4d5560; --mt-lid: #3a4252; --mt-clip: #2c3341; --mt-clip-line: #aeb8c8; --mt-bulb: #6f7886; --mt-bulb-d: #aeb8c8;
  --mt-car: #f39a3e; --mt-car-d: #a5572a; --mt-xan: #f2dc4a; --mt-xan-d: #8a7d16; --mt-chla: #3fa489; --mt-chla-d: #1f6b55;
  --mt-chlb: #9cc44a; --mt-chlb-d: #55782a; --mt-fiber: #9eacbd; --mt-lig: #cee8b5; --mt-mix: #c8a7e8;
  --mt-gel: #233447; --mt-gel-line: #8ec2e8; --mt-dye: #e7d3ff; --mt-uv: #0d1230; --mt-well: #161b23; --mt-electrode: #aeb8c8;
  --mt-wire: #7d8592; --mt-current: #fff9bc; --mt-lamp: #fff9bc; --mt-dna: #e7d3ff; --mt-band: #ffc5c8; --mt-band-uv: #ffe3f1;
  --mt-glow: #ff7ab8; --mt-pore: #8ec2e8;
  --mt-wbc-line: #6f7886; --mt-front: #2a6396; }
:root.theme-light { --mt-glass: rgba(255,255,255,.6); --mt-glass-line: #6f7886; --mt-dev: #e3e7ed; --mt-dev-line: #8b93a0; --mt-bowl: #f9fbfe;
  --mt-rotor: #cfd6df; --mt-rotor-line: #6f7886; --mt-slot: #eef2f8; --mt-hub: #aeb8c8; --mt-rack: #cfd6df;
  --mt-plasma: #f1eaa8; --mt-wbc: #ffffff; --mt-force: #418bc6; --mt-arrow: #6f7886; --mt-hom: rgba(255,197,200,.22);
  --mt-cell: #ffffff; --mt-cell-line: #6f7886; --mt-gauge: #418bc6; --mt-gauge-line: #6f7886;
  --mt-cs: #e0f1fc; --mt-cs-d: #83bae3; --mt-n14: #255d8f; --mt-n15: #bf303e;
  --mt-solv: #d2e9f9; --mt-solv-line: #418bc6; --mt-solv-bg: #eef6fc; --mt-ext: #3f8a2e; --mt-leaf-d: #487b57;
  --mt-stone: #e3e7ed; --mt-stone-line: #6f7886; --mt-paper: #ffffff; --mt-paper-line: #8b93a0; --mt-wet: rgba(164,210,242,.38);
  --mt-lid: #cfd6df; --mt-clip: #aeb8c8; --mt-clip-line: #4d5560; --mt-bulb: #8b93a0; --mt-bulb-d: #4d5560;
  --mt-car: #ef8a2a; --mt-xan: #e8cc22; --mt-chla: #2f9a7c; --mt-chlb: #8cb83a; --mt-fiber: #a3b3cf; --mt-lig: #487b57; --mt-mix: #b597dc;
  --mt-gel: #e3f1fb; --mt-gel-line: #418bc6; --mt-dye: #c8b0ec; --mt-uv: #141a33; --mt-well: #f9fbfe; --mt-electrode: #4d5560;
  --mt-wire: #6f7886; --mt-current: #957708; --mt-lamp: #f1d34a; --mt-dna: #8665c3; --mt-band: #bf303e; --mt-pore: #418bc6;
  --mt-wbc-line: #6f7886; --mt-front: #2f6fa8; }
#screen-bio-division[data-bio-mode^="mt_"] .bio-scene-card { background: var(--emb-bg); --surface: var(--emb-surface); }
.bio-lab-mt .bio-kinds { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; overflow: visible; }
.bio-lab-mt .bio-kinds button {
  min-width: auto; padding: 2px 4px; border-width: 4px 1px; border-radius: 16px; white-space: normal; text-align: center;
  line-height: 1.15; font-size:calc(12px * var(--fs, 1)); hyphens: manual; -webkit-hyphens: manual;
}
:root { --sq-a: #f2b84b; --sq-t: #ef6f5e; --sq-g: #a28cff; --sq-c: #4cc3e6; --sq-on: #1a1f29; }
:root.theme-light { --sq-a: #97680e; --sq-t: #c34837; --sq-g: #7357e4; --sq-c: #13789d; --sq-on: #ffffff; --sq-new: #0e945f; --sq-dev-line: #7a828f; }
#screen-bio-division[data-bio-mode="sq"] .bio-scene-card { background: var(--emb-bg); --surface: var(--emb-surface); }
:root { --ar-mark: #ff5fb0; --ar-mark-ink: #ff8cc6; --ar-halo: rgba(255,95,176,.22); --ar-mk-hi: #ffd1e8; --ar-mk: #ff6fb8; --ar-mk-lo: #d63d8f;
  --ar-scan-line: #8ec2e8; --ar-scan: rgba(142,194,232,.13);
  --ar-screen: #161b23; --ar-screen-line: #7d8592; --ar-light: #f2dc4a; --ar-tile: #1f2530; --ar-axis: #aeb8c8; }
:root.theme-light { --ar-mark: #c2185b; --ar-mark-ink: #ad1457; --ar-halo: rgba(194,24,91,.14); --ar-mk-hi: #ffc0de; --ar-mk: #e8489a; --ar-mk-lo: #b81f6e;
  --ar-scan-line: #418bc6; --ar-scan: rgba(65,139,198,.09);
  --ar-screen: #ffffff; --ar-screen-line: #6f7886; --ar-light: #8a7d16; --ar-tile: #ffffff; --ar-axis: #6f7886; }
#screen-bio-division[data-bio-mode^="ar_"] .bio-scene-card { background: var(--emb-bg); --surface: var(--emb-surface); }
:root { --vc-line: #b2dcf8; --vc-cyto: #283a4f; --vc-ecto: #35516e; --vc-endo: #2c425a; --vc-water: #1f5f8a; --vc-water-line: #7fd0f2;
  --vc-nuc: #322b48; --vc-nuc-hi: #4a3d6e; --vc-nuc-line: #e7d3ff; --vc-dig: #5a3a24; --vc-dig-line: #ffd2a6; --vc-food: #cee8b5;
  --vc-rbc: #bf303e; --vc-rbc-line: #ffc5c8; --vc-salt: #fff9bc; }
:root.theme-light { --vc-line: #418bc6; --vc-cyto: #eaf4fc; --vc-ecto: #f6fbff; --vc-endo: #dcecf9; --vc-water: #a9d6f5; --vc-water-line: #1f78b4;
  --vc-nuc: #f7eeff; --vc-nuc-hi: #e7d3ff; --vc-nuc-line: #8665c3; --vc-dig: #ffe2c6; --vc-dig-line: #a5572a; --vc-food: #487b57;
  --vc-rbc: #bf303e; --vc-rbc-line: #7c1f28; --vc-salt: #a06c0e; }
#screen-bio-division[data-bio-mode^="vc"] .bio-scene-card { background: var(--emb-bg); --surface: var(--emb-surface); }
.bio-lab-vc .bio-seg button { flex: 1 1 0; min-width: 0; padding-left: 3px; padding-right: 3px; font-size:calc(12px * var(--fs, 1)); line-height: 1.2; hyphens: manual; -webkit-hyphens: manual; }
.bio-vc-on .bio-pult, .bio-vc-on #bio-counts { display: none; }
.bio-vc[hidden] { display: none; }
.bio-vc { margin: 6px 0 12px; }
.bio-vc-range { display: flex; flex-direction: column; margin: 0; font-size:calc(13px * var(--fs, 1)); font-weight: 600; color: var(--text); }
.bio-vc-l { display: flex; justify-content: space-between; align-items: baseline; }
.bio-vc-l b { font-size:calc(15px * var(--fs, 1)); font-weight: 700; color: var(--primary-ink); }
.bio-vc-range input { width: 100%; height: 44px; margin: 0; accent-color: var(--primary); }
.bio-vc-ticks { position: relative; height: 16px; margin-top: -8px; font-size:calc(12px * var(--fs, 1)); font-weight: 600; color: var(--text-muted); }
.bio-vc-ticks i { position: absolute; top: 0; transform: translateX(-50%); font-style: normal; }
#anatomy-list.anat-secs { display: flex; flex-direction: column; gap: 0; }
.anat-sec { margin: 22px 4px 8px; font-size:calc(15px * var(--fs, 1)); font-weight: 700; line-height: 1.2; color: var(--text-muted); text-transform: none; letter-spacing: 0; }
.anat-sec:first-child { margin-top: 2px; }
.an-type[hidden] { display: none; }
@media (min-width: 700px) {
  #screen-bio-anim, #screen-anatomy, #screen-bio-pics:not([data-view="task"]), #screen-bio-cards:has(.bq-blocks), #screen-bio-cell { max-width: var(--app-w); }
  #bio-anim-list:not(.bio-anim-rows), #anatomy-list:not(.bio-anim-rows):not(.anat-secs) { display: grid; grid-template-columns: 1fr 1fr; }
  #bio-anim-list.bio-anim-rows, #anatomy-list.bio-anim-rows { display: grid; grid-template-columns: 1fr 1fr; }
  #bio-anim-list.bio-anim-rows .bio-anim-row:nth-child(2), #anatomy-list.bio-anim-rows .bio-anim-row:nth-child(2) { border-top: 0; }
  #bio-anim-list.bio-anim-rows .bio-anim-row:nth-child(even), #anatomy-list.bio-anim-rows .bio-anim-row:nth-child(even) { border-left: 1px solid var(--border); }
  .anat-sec-list.bio-anim-rows { display: grid; grid-template-columns: 1fr 1fr; }
  .anat-sec-list.bio-anim-rows .bio-anim-row:nth-child(2) { border-top: 0; }
  .anat-sec-list.bio-anim-rows .bio-anim-row:nth-child(even) { border-left: 1px solid var(--border); }
  .bio-pics-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bq-blocks { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) and (orientation: landscape) {
  .bio-home-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; min-height: calc(100dvh - 210px); }
  .bio-home-grid > .bio-home-wide:first-child { grid-column: 1; grid-row: 1 / span 2; }
  .bio-home-grid > .bq-tile { grid-column: 2 / -1; }
  #bio-anim-list:not(.bio-anim-rows) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bio-pics-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 980px) and (orientation: landscape) {
  #screen-bio-division.active:not(.bio-exp-on):not(.bio-intro-on) { display: grid; max-width: var(--app-w);
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr); grid-template-rows: repeat(14, auto) 1fr; column-gap: 28px; align-items: start; }
  #screen-bio-division.active:not(.bio-exp-on):not(.bio-intro-on) > * { grid-column: 2; min-width: 0; }
  #screen-bio-division.active:not(.bio-exp-on):not(.bio-intro-on) > .bio-back { justify-self: start; }
  #screen-bio-division.active:not(.bio-exp-on):not(.bio-intro-on) > .bio-scene-card { grid-column: 1; grid-row: 1 / -1; position: sticky; top: var(--side-top); margin-top: 0; }
}
@media (min-width: 980px) and (orientation: landscape) {
  #screen-bio-cell.active { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr); grid-template-rows: repeat(8, auto) 1fr; column-gap: 28px; align-items: start; }
  #screen-bio-cell.active > * { grid-column: 2; min-width: 0; }
  #screen-bio-cell.active > .back-btn { justify-self: start; }
  #screen-bio-cell.active > .bc-stage { grid-column: 1; grid-row: 1 / -1; position: sticky; top: var(--side-top); margin: 0; max-height: calc(100dvh - 110px); }
  #screen-bio-pics[data-view="task"] { max-width: var(--app-w); }
  #bio-pics-task:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr); grid-template-rows: repeat(8, auto) 1fr; column-gap: 28px; align-items: start; }
  #bio-pics-task > * { grid-column: 2; min-width: 0; }
  #bio-pics-task > .back-btn { justify-self: start; }
  #bio-pics-task > .bio-pics-stick-at { display: none; }
  #bio-pics-task > .bio-pics-stick { grid-column: 1; grid-row: 1 / -1; top: var(--side-top); margin: 0; padding: 0; box-shadow: none; }
  #bio-pics-task .bio-pics-img { max-height: calc(100dvh - 190px); }
  #bio-pics-task .bio-pic-row { scroll-margin-top: 16px; }
}
@media (min-width: 700px) {
  .bio-counts, #bio-phase-items li, .bc-empty { font-size:calc(15px * var(--fs, 1)); }
  .bio-phase-title { font-size:calc(16px * var(--fs, 1)); }
  .bio-group-sub { font-size:calc(15px * var(--fs, 1)); }
  .bio-pics-tiles .bio-pics-tile .bio-group-sub { font-size:calc(13px * var(--fs, 1)); }
  .bq-bt b { font-size:calc(16px * var(--fs, 1)); } .bq-bt small { font-size:calc(13px * var(--fs, 1)); }
  .bq-term-q { font-size:calc(14px * var(--fs, 1)); }
  :is(.bio-exp-msg, .bs-flow-note, .bs-flow-lead, .bc-empty, .bio-sub) { max-width: 62ch; }
}
:root { --an-bone-sk: #f6f0e0; --an-bone: #e6dcc3; --an-ghost: 0.12; --an-hl: #25c681; --an-chip: #3ddc97; --an-pt: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)); }
:root.theme-light { --an-bone-sk: #e4d8ba; --an-bone: #cdbf9f; --an-ghost: 0.2; --an-hl: #0f9a5c; }
#screen-bio-anat.active { display: flex; flex-direction: column; box-sizing: border-box; height: 100vh; height: calc(100dvh - var(--an-pt)); padding: 4px 16px calc(22px + max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px))); overflow: hidden; }
body:has(#screen-bio-anat.active) .brand-header { display: none; }
.an-top { flex: none; display: flex; align-items: center; gap: 6px; min-height: 38px; }
.an-top .back-btn { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 0 0 0 -8px; padding: 0; font-size:calc(20px * var(--fs, 1)); }
.an-top h1 { flex: 1; min-width: 0; margin: 0; font-size:calc(17px * var(--fs, 1)); }
.an-count { font-size:calc(13px * var(--fs, 1)); font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.an-info { position: relative; flex: none; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-style: italic; font-size:calc(15px * var(--fs, 1)); cursor: pointer; }
.an-info::after { content: ''; position: absolute; inset: -6px; }
.an-type { flex: none; display: flex; gap: 6px; margin: 0 -16px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.an-type::-webkit-scrollbar { display: none; }
.an-type button { position: relative; flex: none; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size:calc(13px * var(--fs, 1)); white-space: nowrap; cursor: pointer; }
.an-type button::after { content: ''; position: absolute; inset: -5px -2px; }
.an-type button.on { background: var(--nav-sel-bg); color: var(--primary-ink); box-shadow: inset 0 0 0 1px var(--primary); }
.an-prog { flex: none; height: 4px; margin: 4px 0 6px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.an-prog i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--primary); transition: width 0.3s ease; }
.an-stage {
  position: relative; flex: 1 1 0; min-height: 200px; width: 100%; margin: 0 0 4px; border-radius: 20px; overflow: hidden; touch-action: none;
  --st-muted: #a9b7d3; background: var(--emb-bg); --surface: var(--emb-surface);
}
:root.theme-light .an-stage { --st-muted: #4d5560; }
.an-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.an-stage.an-nogl canvas { display: none; }
.an-stage.an-nogl { min-height: 120px; }
.an-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 24px; text-align: center; font-size:calc(14px * var(--fs, 1)); color: var(--st-muted); pointer-events: none; }
.an-status[hidden] { display: none; }
.an-ghostbtn .an-ghost-off { display: none; }
.an-ghostbtn[aria-pressed="false"] .an-ghost-off { display: inline; }
.an-ghostbtn[hidden] { display: none; }
.an-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 8px; z-index: 2; }
.an-retry { position: absolute; left: 50%; top: calc(50% + 34px); transform: translateX(-50%); z-index: 2; }
.an-retry[hidden] { display: none; }
.an-chip { position: absolute; left: 8px; top: 8px; z-index: 2; max-width: calc(100% - 64px); padding: 6px 12px; border-radius: 999px; pointer-events: none;
  background: var(--an-chip); color: #0d2b1e; font-weight: 700; font-size:calc(13px * var(--fs, 1)); line-height: 1.25; }
.an-chip.q { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.an-chip[hidden] { display: none; }
.an-hint { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 16px); box-sizing: border-box;
  margin: 0; padding: 3px 10px; border-radius: 999px; text-align: center; font-size:calc(12px * var(--fs, 1)); line-height: 1.35; color: var(--st-muted); background: var(--surface); pointer-events: none; }
.an-stage:has(.an-fb:not([hidden])) .an-hint { display: none; }
.an-fb { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; margin: 0; padding: 10px 12px; border-radius: 12px; font-size:calc(14px * var(--fs, 1)); line-height: 1.4; color: var(--text); background: var(--surface); }
.an-fb[hidden] { display: none; }
.an-fb.ok { border-left: 4px solid var(--primary); background: linear-gradient(var(--nav-sel-bg), var(--nav-sel-bg)), var(--surface); }
.an-fb.bad { border-left: 4px solid var(--coral); background: linear-gradient(rgba(255, 92, 92, 0.16), rgba(255, 92, 92, 0.16)), var(--surface); }
.an-body { flex: 0 1 auto; min-height: 0; max-height: 46dvh; display: flex; flex-direction: column; }
.an-body > .an-card { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.an-body > .an-chips, .an-body > .an-nav { flex: none; }
.an-card { margin: 0 0 4px; padding: 6px 12px; border-radius: 16px; background: var(--surface); }
.an-ru { margin: 0; font-size:calc(17px * var(--fs, 1)); line-height: 1.25; }
.an-lat { font-size:calc(12px * var(--fs, 1)); font-style: italic; font-weight: 600; color: var(--text-muted); overflow-wrap: anywhere; }
.an-text { margin: 4px 0 2px; font-size:calc(14px * var(--fs, 1)); line-height: 1.45; color: var(--text); display: block; overflow: visible; }
.an-card.open .an-text { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.an-own { display: inline-block; margin: 4px 0 0; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); font-size:calc(12px * var(--fs, 1)); font-weight: 700; color: var(--text); }
.an-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.an-src { font-size:calc(12px * var(--fs, 1)); color: var(--text-muted); white-space: nowrap; }
.an-meta .an-more { margin-left: auto; }
.an-more { position: relative; flex: none; height: 28px; padding: 0 2px; border: 0; background: none; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size:calc(12px * var(--fs, 1)); color: var(--primary-ink); text-decoration: underline; cursor: pointer; }
.an-more::after { content: ''; position: absolute; inset: -8px -6px; }
.an-lic { display: none; margin: 6px 0 0; font-size:calc(12px * var(--fs, 1)); line-height: 1.4; color: var(--text-muted); }
.an-card.open .an-lic { display: block; }
.an-quiz { padding: 8px; background: none; }
.an-nav { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 4px; }
.an-nav1 { grid-template-columns: 1fr; }
.an-nav3 { grid-template-columns: 1fr 1.35fr 1fr; }
.an-list { font-size:calc(14px * var(--fs, 1)); border-color: var(--border); }
.an-btn { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size:calc(15px * var(--fs, 1)); cursor: pointer; }
.an-study { flex: none; width: 100%; margin: 0 0 8px; border-color: var(--primary-ink); color: var(--primary-ink); font-weight: 700; }
.an-btn.an-primary { border-color: transparent; background: var(--primary); color: #0d2b1e; }
.an-btn:disabled { opacity: 0.45; cursor: default; }
.an-chips { display: flex; gap: 6px; margin: 0 -12px 6px; padding: 2px 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.an-chips::-webkit-scrollbar { display: none; }
.an-chip-btn { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size:calc(13px * var(--fs, 1)); white-space: nowrap; cursor: pointer; }
.an-chip-btn.on { background: var(--nav-sel-bg); color: var(--primary-ink); box-shadow: inset 0 0 0 1px var(--primary); }
.an-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.an-opt { min-height: 48px; min-width: 0; padding: 4px 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size:calc(14px * var(--fs, 1)); line-height: 1.2; text-align: center; cursor: pointer; }
.an-opt:disabled { cursor: default; }
.an-opt.ok { background: var(--nav-sel-bg); color: var(--primary-ink); box-shadow: inset 0 0 0 2px var(--primary); }
.an-opt.bad { background: rgba(255, 92, 92, 0.15); color: var(--coral-ink); box-shadow: inset 0 0 0 2px var(--coral); }
.an-link { display: inline; padding: 0; border: 0; background: none; text-decoration: underline; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size:calc(14px * var(--fs, 1)); color: var(--primary-ink); cursor: pointer; }
.an-tabs { flex: none; display: flex; gap: 6px; margin: 0 -16px; padding: 6px 16px calc(6px + max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px)));
  background: var(--bg); border-top: 1px solid var(--border); }
.an-tab { flex: 1 1 0; min-height: 44px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--text);
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size:calc(14px * var(--fs, 1)); cursor: pointer; }
.an-tab.on { background: var(--nav-sel-bg); color: var(--primary-ink); box-shadow: inset 0 0 0 1px var(--primary); }
.an-lic-modal { position: fixed; inset: 0; z-index: 700; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0.55); }
.an-lic-modal[hidden] { display: none; }
.an-lic-box { width: 100%; max-width: 480px; max-height: 90dvh; overflow-y: auto; box-sizing: border-box; padding: 16px 16px calc(16px + max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px)));
  border-radius: 20px 20px 0 0; background: var(--surface); color: var(--text); }
.an-lic-h { margin: 0 0 8px; font-size:calc(18px * var(--fs, 1)); }
.an-lic-p { margin: 0 0 10px; font-size:calc(14px * var(--fs, 1)); line-height: 1.45; overflow-wrap: anywhere; }
@media (min-width: 760px) {
  #screen-bio-anat.active { display: grid; max-width: 1120px; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto auto auto minmax(0, 1fr) auto; column-gap: 16px; padding-bottom: 16px; }
  .an-top, .an-type, .an-prog { grid-column: 1 / -1; }
  .an-stage { grid-column: 1; grid-row: 4 / 6; margin: 0; min-height: 0; }
  .an-body { grid-column: 2; grid-row: 4; max-height: none; }
  .an-tabs { grid-column: 2; grid-row: 5; margin: 0; padding: 6px 0 0; border-top: 0; background: none; }
  .an-modes { grid-column: 2; grid-row: 4; }
}
@media (max-height: 560px) { .an-hint { display: none; } }
.an-more, .an-lic { display: none !important; }
#screen-bio-anat[data-view="study"] .an-type, #screen-bio-anat[data-view="study"] .an-modes, #screen-bio-anat[data-view="study"] .an-tabs { display: none; }
#screen-bio-anat[data-view="hub"] .an-prog, #screen-bio-anat[data-view="hub"] .an-body, #screen-bio-anat[data-view="hub"] .an-tabs,
#screen-bio-anat[data-view="hub"] .an-tools, #screen-bio-anat[data-view="hub"] .an-chip, #screen-bio-anat[data-view="hub"] .an-fb { display: none; }
#screen-bio-anat[data-view="hub"] .an-type { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0 0 8px; }
#screen-bio-anat[data-view="hub"] .an-type::before { content: attr(data-cap); flex: 0 0 100%; margin: 2px 0 2px; font-size:calc(12px * var(--fs, 1)); font-weight: 600; color: var(--text-muted); }
#screen-bio-anat[data-view="hub"] .an-stage { flex: 1 1 0; min-height: 150px; }
.an-modes { flex: none; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.an-modes[hidden] { display: none; }
.an-mode { display: flex; align-items: center; gap: 12px; min-height: 62px; width: 100%; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  text-align: left; font-family: 'Montserrat', sans-serif; cursor: pointer; }
.an-mode-t { flex: 1; min-width: 0; display: block; }
.an-mode-t b { display: block; font-size:calc(16px * var(--fs, 1)); font-weight: 700; line-height: 1.25; }
.an-mode-s { display: block; margin-top: 1px; font-size:calc(12px * var(--fs, 1)); font-weight: 600; color: var(--text-muted); }
.an-mode-bar { display: block; height: 3px; margin-top: 7px; border-radius: 2px; background: var(--surface); overflow: hidden; }
.an-mode-bar u { display: block; height: 3px; border-radius: 2px; background: var(--primary); text-decoration: none; }
.an-mode-go { flex: none; font-size:calc(18px * var(--fs, 1)); color: var(--primary-ink); }
.an-sheet-list { display: flex; flex-direction: column; max-height: 52dvh; overflow-y: auto; margin: 0 -4px 10px; overscroll-behavior: contain; }
.an-sheet-row { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 8px; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--text); text-align: left;
  font-family: 'Montserrat', sans-serif; font-size:calc(14px * var(--fs, 1)); font-weight: 600; cursor: pointer; }
.an-sheet-row.on { background: var(--nav-sel-bg); color: var(--primary-ink); border-radius: 10px; }
.an-sheet-n { flex: none; width: 26px; font-size:calc(12px * var(--fs, 1)); font-weight: 700; color: var(--text-muted); text-align: right; }
.an-sheet-t { flex: 1; min-width: 0; }
.an-sheet-ok { flex: none; width: 18px; font-weight: 700; color: var(--primary-ink); }
.anat-ring { flex: none; width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--surface-2) 0); display: inline-flex; align-items: center; justify-content: center; margin-right: 6px; }
.anat-ring::after { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); }
.anat-cont { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 6px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--primary); background: var(--nav-sel-bg); color: var(--text);
  text-align: left; font-family: 'Montserrat', sans-serif; cursor: pointer; }
.anat-cont[hidden] { display: none; }
.anat-cont-t { flex: 1; min-width: 0; display: block; }
.anat-cont-k { display: block; font-size:calc(12px * var(--fs, 1)); font-weight: 700; color: var(--primary-ink); }
.anat-cont-t b { display: block; font-size:calc(15px * var(--fs, 1)); font-weight: 700; }
.anat-search { display: block; width: 100%; box-sizing: border-box; height: 42px; margin: 0 0 8px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-family: 'Montserrat', sans-serif; font-size:calc(14px * var(--fs, 1)); }
.anat-none { margin: 14px 4px; font-size:calc(14px * var(--fs, 1)); color: var(--text-muted); }
#screen-bio-task27 { --bio-g-dark: #487B57; --bio-g-main: #CEE8B5; --bio-g-bg: #ECF5D4; }
:root { --t27-a: var(--rp-tile-a); --t27-t: var(--rp-tile-t); --t27-g: var(--rp-tile-g); --t27-c: var(--rp-tile-c); --t27-u: #8fd14f; --t27-on: var(--rp-tile-on);
  --t27-sel: var(--primary); --t27-bad: #ff6b6b; --t27-sel-bg: rgba(61,220,151,0.16); --t27-bad-bg: rgba(255,92,92,0.16); --t27-grid: #6b7480; }
:root.theme-light { --t27-u: #3f7a14; --t27-sel: #0b6b42; --t27-bad: #c62828; --t27-sel-bg: rgba(29,160,103,0.12); --t27-bad-bg: rgba(198,40,40,0.10); --t27-grid: #828994; }
.t27-screen .subtitle { font-size:calc(14px * var(--fs, 1)); margin: 2px 0 14px; }
.t27-list { margin-bottom: 16px; }
.t27-num { font-size:calc(17px * var(--fs, 1)); font-weight: 700; }
.t27-row .bio-row-tags i.t27-ok { background: var(--t27-sel-bg); color: var(--primary-ink); }
.t27-cond { padding: 4px 14px; margin-bottom: 10px; }
.t27-cond summary { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; }
.t27-cond summary::-webkit-details-marker { display: none; }
.t27-badge { flex: none; width: 30px; height: 30px; border: 1.5px solid var(--text-muted); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size:calc(14px * var(--fs, 1)); font-weight: 600; }
.t27-cond-s { flex: 1; font-size:calc(15px * var(--fs, 1)); font-weight: 700; }
.t27-cond-t { font-size:calc(13px * var(--fs, 1)); color: var(--text-muted); font-weight: 600; }
.t27-cond-t::after { content: '▾'; display: inline-block; margin-left: 4px; transition: transform 0.15s ease; }
.t27-cond[open] .t27-cond-t::after { transform: rotate(180deg); }
.t27-cond-p { margin: 4px 0 12px; font-size:calc(14px * var(--fs, 1)); line-height: 1.5; overflow-wrap: anywhere; }
.t27-log { margin: 6px 2px 0; }
.t27-compl { margin: 0 0 6px; font-size:calc(13px * var(--fs, 1)); color: var(--text-muted); }
.t27-log-step { padding: 10px 0; border-top: 1px solid var(--border); }
.t27-log-t { margin: 0 0 4px; font-size:calc(14px * var(--fs, 1)); line-height: 1.45; }
.t27-sec { margin: 2px 0 6px; font-size:calc(14px * var(--fs, 1)); font-weight: 700; }
.t27-note { margin: 0 0 6px; font-size:calc(13px * var(--fs, 1)); line-height: 1.45; color: var(--text-muted); }
.t27-line { margin: 2px 0; font-size:calc(14px * var(--fs, 1)); line-height: 1.45; overflow-wrap: anywhere; }
.t27-mono { font-family: 'JetBrains Mono', monospace; font-size:calc(13px * var(--fs, 1)); }
.t27-src { color: var(--text-muted); }
.t27-step { background: var(--surface); border-radius: 18px; padding: 12px 14px 0; margin-top: 8px; scroll-margin-top: 8px; }
.t27-step-n { margin: 0 0 4px; font-size:calc(12px * var(--fs, 1)); font-weight: 700; color: var(--text-muted); }
.t27-ask { margin: 0 0 6px; font-size:calc(15px * var(--fs, 1)); font-weight: 600; line-height: 1.4; }
.t27-instr { margin: 10px 0 4px; font-size:calc(14px * var(--fs, 1)); font-weight: 500; line-height: 1.4; }
.t27-step .t27-fb { margin: 8px 0 4px; font-weight: 600; }
.t27-rev { margin: 8px 0 4px; }
.t27-w { margin: 4px 0 2px; }
.t27-dock { position: sticky; bottom: 0; z-index: 2; margin: 8px -14px 0; padding: 8px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-radius: 0 0 18px 18px; }
.t27-dock .primary-btn, .t27-dock .btn-row { margin-top: 8px; }
.t27-dock .btn-row .secondary-btn { padding: 12px 6px; font-size:calc(14px * var(--fs, 1)); }
.t27-c { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 30px; border-radius: 6px; font-family: 'Montserrat', sans-serif; font-size:calc(14px * var(--fs, 1)); font-weight: 700; line-height: 1; color: var(--t27-on); box-sizing: border-box; }
.t27-n-a { background: var(--t27-a); } .t27-n-t { background: var(--t27-t); } .t27-n-g { background: var(--t27-g); } .t27-n-c { background: var(--t27-c); } .t27-n-u { background: var(--t27-u); }
.t27-empty { background: var(--surface-2); border: 1.5px dashed var(--text-muted); }
.t27-c.t27-s { height: 24px; font-size:calc(13px * var(--fs, 1)); }
.t27-c.t27-in { cursor: pointer; }
.t27-c.t27-cur { border: 2px solid var(--t27-sel); }
.t27-c.t27-bad { box-shadow: 0 0 0 2px var(--t27-bad); }
.t27-seq { display: flex; flex-wrap: wrap; row-gap: 12px; margin: 6px 0 4px; }
.t27-col { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-right: 2px; }
.t27-col.t27-gap { margin-right: 9px; }
.t27-col-l { align-items: flex-start; }
.t27-l { display: flex; align-items: center; height: 24px; padding: 0 3px; font-size:calc(12px * var(--fs, 1)); font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.t27-l.t27-l-in { height: 30px; color: var(--text); }
.t27-dir { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 2px; }
.t27-dir-l { font-size:calc(13px * var(--fs, 1)); color: var(--text-muted); margin-right: 2px; }
.t27-dir-b { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface-2); color: var(--text); font-family: 'Montserrat', sans-serif; font-size:calc(14px * var(--fs, 1)); font-weight: 600; cursor: pointer; }
.t27-dir-b.on { border-color: var(--t27-sel); background: var(--t27-sel-bg); color: var(--primary-ink); }
.t27-kb { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; }
.t27-key { min-height: 46px; padding: 0; border: 0; border-bottom: 3px solid rgba(0,0,0,0.28); border-radius: 12px; font-family: 'Montserrat', sans-serif; font-size:calc(19px * var(--fs, 1)); font-weight: 700; color: var(--t27-on); cursor: pointer; transition: transform 0.08s ease; }
.t27-key:active { transform: translateY(2px); border-bottom-width: 1px; }
.t27-key.t27-del { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text); border: 2px solid var(--border); border-bottom-width: 3px; }
.t27-kb-aa { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.t27-kb-aa .t27-key { min-height: 44px; background: var(--surface-2); color: var(--text); border: 2px solid var(--border); border-bottom-width: 3px; font-size:calc(13px * var(--fs, 1)); font-weight: 600; }
.t27-chips { display: flex; flex-wrap: wrap; gap: 10px 6px; margin: 6px 0 10px; }
.t27-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.t27-trip { display: inline-flex; align-items: center; gap: 2px; color: var(--text-muted); font-weight: 600; }
.t27-chip .t27-c { width: 18px; height: 24px; font-size:calc(13px * var(--fs, 1)); }
.t27-aa { min-width: 60px; height: 32px; padding: 0 6px; border-radius: 8px; border: 1.5px dashed var(--text-muted); display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-size:calc(14px * var(--fs, 1)); font-weight: 600; color: var(--text); cursor: pointer; box-sizing: border-box; }
.t27-aa.t27-cur { border: 2px solid var(--t27-sel); }
.t27-aa.t27-bad { border: 2px solid var(--t27-bad); background: var(--t27-bad-bg); }
.t27-aa.t27-aa-none { visibility: hidden; }
.t27-code { margin: 4px 0 10px; }
.t27-code-h { margin: 0 0 6px; font-size:calc(12px * var(--fs, 1)); font-weight: 700; text-align: center; }
.t27-code-g { display: grid; grid-template-columns: 18px 22px repeat(4, minmax(0, 1fr)) 22px 18px; border: 1px solid var(--t27-grid); border-radius: 10px; overflow: hidden; font-size:calc(12px * var(--fs, 1)); line-height: 15px; }
.t27-code-g > span { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px 0; border-top: 1px solid var(--t27-grid); }
.t27-code-g > .t27-code-h1 { border-top: 0; font-weight: 700; padding: 4px 0; }
.t27-code-g > .t27-code-v { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 700; color: var(--text-muted); border-top: 0; }
.t27-code-g > .t27-code-1, .t27-code-g > .t27-code-b { font-weight: 700; }
.t27-code-g > .t27-code-cell { border-left: 1px solid var(--t27-grid); }
.t27-code-g > .t27-code-3 { border-left: 1px solid var(--t27-grid); color: var(--text-muted); font-weight: 700; }
.t27-pick { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; margin: 6px 0; }
.t27-pick .t27-l { height: 44px; }
.t27-pk { flex: none; width: 30px; height: 44px; margin-right: 1px; padding: 0; border: 0; border-radius: 8px; background: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.t27-pk .t27-c { width: 24px; height: 32px; font-size:calc(15px * var(--fs, 1)); }
.t27-pk.t27-gap { margin-right: 9px; }
.t27-pk.on { background: var(--t27-sel-bg); box-shadow: inset 0 0 0 2px var(--t27-sel); }
.t27-pk.t27-bad { background: var(--t27-bad-bg); box-shadow: inset 0 0 0 2px var(--t27-bad); }
.t27-pk.t27-mark { box-shadow: inset 0 -3px 0 var(--text-muted); }
.t27-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 8px 0; }
.t27-opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t27-opt { min-height: 44px; padding: 6px 12px; border-radius: 12px; border: 2px solid var(--border); background: var(--surface-2); color: var(--text); font-family: 'Montserrat', sans-serif; font-size:calc(14px * var(--fs, 1)); text-align: left; font-weight: 600; line-height: 1.3; cursor: pointer; }
.t27-opts-3 .t27-opt { font-family: 'JetBrains Mono', monospace; font-size:calc(13px * var(--fs, 1)); padding: 6px 2px; text-align: center; }
.t27-opt.on { border-color: var(--t27-sel); background: var(--t27-sel-bg); }
.t27-opt.t27-bad { border-color: var(--t27-bad); background: var(--t27-bad-bg); }
.t27-hair { display: block; width: 100%; height: auto; margin: 6px 0 4px; }
.t27-end { padding: 6px 0 2px; text-align: center; }
.t27-end-t { margin: 0 0 4px; font-size:calc(18px * var(--fs, 1)); font-weight: 700; color: var(--primary-ink); }
.t27-end-s { margin: 0 0 12px; font-size:calc(14px * var(--fs, 1)); line-height: 1.4; color: var(--text-muted); }
@media (max-width: 359px) {
  .t27-step { padding: 12px 10px 0; }
  .t27-dock { margin: 8px -10px 0; padding-left: 10px; padding-right: 10px; }
}
:root { --t27s-or: #ff9a4d; --t27s-bl: #7fd0f2; --t27s-mg: #e27bf0; --t27s-pr: #a28cff; --t27s-rd: #ff6b6b; }
:root.theme-light { --t27s-or: #c2581a; --t27s-bl: #1f78b4; --t27s-mg: #a2269e; --t27s-pr: #6a4fd8; --t27s-rd: #c62828; }
.t27-sch { padding: 10px 12px 12px; margin-bottom: 10px; }
.t27-sch-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin: 2px 0 6px; }
.t27-sch-h2 { justify-content: flex-end; margin-top: 0; }
.t27-sch-t { font-size:calc(15px * var(--fs, 1)); font-weight: 700; color: var(--violet-ink); }
.t27-sch-n { font-size:calc(13px * var(--fs, 1)); font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.t27-sch-svg { display: block; width: 100%; max-width: 360px; height: auto; margin: 0 auto; overflow: hidden; font-family: 'Montserrat', sans-serif; }
.t27-sch-dock { position: sticky; bottom: 0; z-index: 2; margin: 8px -12px -12px; padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-radius: 0 0 18px 18px; }
.t27-sch-ctl { margin-top: 8px; }
.t27-sch-btns { display: flex; gap: 6px; }
.t27-sch-btns button { min-height: 48px; margin: 0; white-space: nowrap; font-size:calc(15px * var(--fs, 1)); }
.t27-sch-btns .primary-btn { flex: 1 1 auto; width: auto; min-width: 0; padding: 12px 6px; }
.t27-sch-btns .t27-sch-back { flex: 0 0 46px; padding: 0; font-size:calc(20px * var(--fs, 1)); }
.t27-sch-btns .t27-sch-skip { flex: 0 0 auto; padding: 12px 8px; font-size:calc(14px * var(--fs, 1)); }
.t27-sch-btns button:disabled { opacity: 0.45; cursor: default; transform: none; }
.t27-sch-d summary { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; }
.t27-sch-d summary::-webkit-details-marker { display: none; }
.t27-sch-d summary .t27-sch-t { flex: 1; }
.t27-sch-d[open] .t27-cond-t::after { transform: rotate(180deg); }
@media (max-width: 359px) { .t27-sch-t { font-size:calc(14px * var(--fs, 1)); } .t27-sch-n { font-size:calc(12px * var(--fs, 1)); } .t27-sch-btns .primary-btn { font-size:calc(14px * var(--fs, 1)); } }
:root { --gn-a: #418bc6; --gn-a-line: #b2dcf8; --gn-b: #ffc5c8; --gn-b-line: #ff8a92; --gn-n: #aeb8c8; --gn-n-line: #e3e6eb;
  --gn-locus: #fff3a0; --gn-locus-line: #f1d34a; --gn-on-locus: #1a1d21; --gn-hist: #e7d3ff; --gn-hist-line: #b598e6;
  --gn-y-fill: #fff9bc; --gn-y-line: #e0c84a; --gn-y-ink: #f1d34a; --gn-g: #cee8b5; --gn-g-fill: #cee8b5; --gn-g-line: #8cc79a; --gn-g-ink: #cee8b5;
  --gn-sa-fill: #b2dcf8; --gn-sa-line: #418bc6; --gn-sg-fill: #cee8b5; --gn-sg-line: #7fbf8f; --gn-sy-fill: #fff9bc; --gn-sy-line: #8a7d16; --gn-sv-fill: #e7d3ff; --gn-sv-line: #8665c3;
  --gn-skin: #f6dcc6; --gn-skin-line: #a5572a; --gn-hair: #6b4a32; --gn-eye-k: #7a4a1e; --gn-eye-b: #2f80ed;
  --gn-box: #232b38; --gn-lens: #1b212b; }
:root.theme-light { --gn-sg-line: #487b57; --gn-a-line: #2e6da6; --gn-b-line: #bf303e; --gn-n: #c5cedd; --gn-n-line: #4d5560;
  --gn-locus-line: #8a7d16; --gn-hist-line: #8665c3; --gn-y-line: #8a7d16; --gn-y-ink: #6e6410; --gn-g-line: #487b57; --gn-g-ink: #3d6b4a;
  --gn-box: #ffffff; --gn-lens: #ffffff; }
#screen-bio-division[data-bio-mode^="gn_"] .bio-scene-card { background: var(--emb-bg); --surface: var(--emb-surface); }
:root { --gn-heart: #ffc5c8; --gn-heart-line: #ff8a92; --gn-egg: #fff4e2; --gn-egg-line: #d9a35b; --gn-hen: #ffd2a6; --gn-hen-line: #e09a5c;
  --gn-cow: #f2f4f6; --gn-cow-line: #aeb8c8; --gn-cow-spot: #4d5560; --gn-milk: #f7fbff; --gn-milk-line: #7fd0f2; --gn-soil: #a8835c; --gn-goat: #dfe3e8; --gn-goat-line: #aeb8c8;
  --gn-frame: #f1d34a; --gn-curve: #ff8a92; --gn-err: #ff8a92; --gn-new: #3ddc97; }
:root.theme-light { --gn-heart-line: #bf303e; --gn-egg-line: #a5572a; --gn-hen-line: #a5572a; --gn-cow: #ffffff; --gn-cow-line: #6f7886; --gn-milk: #ffffff; --gn-milk-line: #1f78b4;
  --gn-soil: #8a6a4a; --gn-goat: #e3e6eb; --gn-goat-line: #6f7886; --gn-frame: #8a7d16; --gn-curve: #bf303e; --gn-err: #bf303e; --gn-new: #0e7f55; }
.bio-nr[hidden] { display: none; }
.bio-nr { margin: 2px 0 0; padding: 0 2px; }
.bio-nr-range { display: flex; flex-direction: column; margin: 0; font-size:calc(13px * var(--fs, 1)); font-weight: 600; color: var(--text); }
.bio-nr-range input { width: 100%; height: 44px; margin: 0; accent-color: var(--primary); }
.bio-nr-ends { display: flex; justify-content: space-between; margin-top: -8px; font-size:calc(12px * var(--fs, 1)); font-weight: 600; color: var(--text-muted); }
.bio-nr-ends i { font-style: normal; }
#screen-bio-division:is([data-bio-mode^="gn_cv"], [data-bio-mode^="gn_mu_"], [data-bio-mode^="gn_cy"]) .bio-kinds:not([hidden]) { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; overflow: visible; }
#screen-bio-division:is([data-bio-mode^="gn_cv"], [data-bio-mode^="gn_mu_"], [data-bio-mode^="gn_cy"]) .bio-kinds button {
  min-width: auto; padding: 2px 4px; white-space: normal; text-align: center; line-height: 1.15; hyphens: manual; -webkit-hyphens: manual; }
:root { --mn-ring: #ff8a3d; --mn-y-hi: #fff4b8; --mn-y: #ffdc63; --mn-y-lo: #e3b437; --mn-y-line: #e3b437;
  --mn-g-hi: #ddf2cb; --mn-g: #a4d784; --mn-g-lo: #6fae58; --mn-g-line: #7fbf68; }
:root.theme-light { --mn-ring: #d9480f; --mn-y-hi: #fff2a8; --mn-y: #ffd447; --mn-y-lo: #dba526; --mn-y-line: #8a6a0e;
  --mn-g-hi: #d3edbd; --mn-g: #8fcb6b; --mn-g-lo: #5f9f4d; --mn-g-line: #3d6b3a; }
#screen-bio-division[data-bio-mode^="gn_mn"] .bio-kinds:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px; overflow: visible; }
#screen-bio-division[data-bio-mode^="gn_mn"] .bio-kinds button {
  min-width: auto; padding: 2px 4px; border-radius: 16px; white-space: pre-line; text-align: center; line-height: 1.15; font-size:calc(12px * var(--fs, 1)); }
:root { --tl-chrom: #343e52; --tl-nuc: #ff7b54; --tl-err: #ff8a8a; --tl-tase: #2bb3c0; --tl-tile-u: #8fd14f; }
:root.theme-light { --tl-chrom: #e3e9f4; --tl-nuc: #c94a22; --tl-err: #c62828; --tl-tase: #138a96; --tl-tile-u: #3f7a14; }
:root { --na-pre: #f2f4f6; --na-pre-line: #aeb8c8; --na-white: #f7f9fc; --na-petal: #b38df5; --na-petal-line: #e7d3ff;
  --na-blk: #2a2e35; --na-blk-line: #c5cedd; --na-red: #d9682e; --na-red-line: #ffd2a6; --na-mel: #5a3420; --na-mel-line: #e2b48f; --na-hair-line: #d2a982;
  --na-coat-pale: #c3c9d2; --na-mane-pale: #8f98a6; --na-coat-grey: #c3c9d2; --na-mane-grey: #8f98a6; --na-coat-black: #111317; --na-mane-black: #000000;
  --na-coat-red: #c8692f; --na-mane-red: #86391a; --na-coat-line: #dfe3e8; --na-eye: #1a1d21; --na-eye-ring: #f2f4f6;
  --na-skin0: #f6dcc6; --na-skin1: #e4b893; --na-skin2: #c58b5c; --na-skin3: #8f5733; --na-skin4: #5a3420; --na-skin-line: #f0c9a6; --na-mouth-d: #7a3a1e; --na-mouth-l: #f6dcc6; }
:root.theme-light { --na-pre: #ffffff; --na-pre-line: #6f7886; --na-white: #ffffff; --na-petal: #a57ae8; --na-petal-line: #6b45b8;
  --na-blk-line: #1a1d21; --na-red-line: #8a3a10; --na-mel-line: #3b2214; --na-hair-line: #3b2a1c;
  --na-coat-pale: #d0d6de; --na-coat-grey: #d0d6de; --na-coat-line: #2b3038; --na-skin-line: #6e3d1f; }
#screen-bio-division[data-bio-mode^="gn_na_"] .bio-kinds:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.82fr) minmax(0, 1.06fr); gap: 4px; overflow: visible; }
#screen-bio-division[data-bio-mode^="gn_na_"] .bio-kinds button { min-width: 0; padding: 2px 4px; white-space: normal; text-align: center; line-height: 1.15; hyphens: manual; -webkit-hyphens: manual; }
:root { --gs-oper: #ffb347; --gs-oper-ink: #ffc46b; }
:root.theme-light { --gs-oper: #c77700; --gs-oper-ink: #9a5a00; }
.an-approx { margin: 6px 0 0; font-size:calc(12px * var(--fs, 1)); line-height: 1.35; color: var(--text-muted); }
:root { --ch-head: #b2dcf8; --ch-head-line: #418bc6; --ch-tracer: #ffc5c8; --ch-tracer-line: #ff8a92; --ch-tail: #dfe3e8;
  --ch-unsat: #ffa860; --ch-unsat-ink: #ffb77a; --ch-chol: #fff3a6; --ch-chol-line: #8a7d16; --ch-chol-ink: #ffe36b; --ch-chol-track: #f2d24a;
  --ch-water: rgba(127, 208, 242, 0.1); --ch-core: rgba(255, 210, 166, 0.05); --ch-curve: #7fd0f2; --ch-dot: #ff8a92; --ch-cold: #4ea8ff; --ch-hot: #ff6b6b; }
:root.theme-light { --ch-head: #a4d2f2; --ch-head-line: #2f6fa6; --ch-tracer: #f7b3b7; --ch-tracer-line: #bf303e; --ch-tail: #4d5560;
  --ch-unsat: #c2581a; --ch-unsat-ink: #a8480f; --ch-chol: #f5d75a; --ch-chol-line: #6e5c00; --ch-chol-ink: #7a5e00; --ch-chol-track: #b08f00;
  --ch-water: rgba(31, 120, 180, 0.08); --ch-core: rgba(165, 87, 42, 0.05); --ch-curve: #1f78b4; --ch-dot: #bf303e; --ch-cold: #2f86e0; --ch-hot: #d63c3c; }
#screen-bio-division[data-bio-mode="chol"] .bio-scene-card { background: var(--emb-bg); --surface: var(--emb-surface); }
.bio-ch-on .bio-pult, .bio-ch-on #bio-counts, .bio-ch-on .bio-caption { display: none; }
.bio-ch-on .bio-phase-chip { -webkit-line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; }
#bio-ch { margin-top: 4px; }
#bio-ch[hidden] { display: none; }
.bio-ch-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) 52px; align-items: center; column-gap: 8px; min-height: 44px; }
.bio-ch-name { font-size:calc(12px * var(--fs, 1)); font-weight: 600; line-height: 1.2; color: var(--text); }
@media (min-width: 360px) { .bio-ch-row { grid-template-columns: 124px minmax(0, 1fr) 58px; } .bio-ch-name { font-size:calc(13px * var(--fs, 1)); } }
.bio-ch-row[data-k="chol"] .bio-ch-name { color: var(--ch-chol-ink); }
.bio-ch-row[data-k="unsat"] .bio-ch-name { color: var(--ch-unsat-ink); }
.bio-ch-val { text-align: right; font-size:calc(15px * var(--fs, 1)); font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bio-ch-row input[type=range] { --acc: var(--ch-chol-track); -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; padding: 0;
  background: transparent; cursor: pointer; touch-action: pan-y; }
.bio-ch-row[data-k="unsat"] input[type=range] { --acc: var(--ch-unsat); }
.bio-ch-row input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--border);
  background: linear-gradient(to right, var(--acc) 0 var(--p, 50%), var(--surface-2) var(--p, 50%) 100%); }
.bio-ch-row input[type=range]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.bio-ch-row input[type=range]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--acc); }
.bio-ch-row[data-k="temp"] input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--ch-cold), var(--ch-hot)); box-shadow: none; }
.bio-ch-row[data-k="temp"] input[type=range]::-moz-range-track { background: linear-gradient(to right, var(--ch-cold), var(--ch-hot)); }
.bio-ch-row[data-k="temp"] input[type=range]::-moz-range-progress { background: transparent; }
.bio-ch-row input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--text); box-sizing: border-box; }
.bio-ch-row input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 3px solid var(--text); box-sizing: border-box; }
.bio-ch-row input[type=range]:focus-visible { outline: 2px solid var(--primary-ink); outline-offset: 2px; border-radius: 8px; }
.bio-ch-btns { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.bio-ch-btns .bio-btn.bio-play { width: 48px; height: 48px; }
.bio-ch-btns .bio-btn:disabled { opacity: 0.5; cursor: default; }
.bio-ch-info-btn { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font: 600 14px 'Montserrat', sans-serif; cursor: pointer; }
.bio-ch-info-btn[aria-expanded="true"] { border-color: var(--primary); color: var(--primary-ink); }
.bio-ch-btns button:focus-visible { outline: 2px solid var(--primary-ink); outline-offset: 2px; }
.bio-ch-info { margin: 10px 0 0; background: var(--surface); border-radius: 16px; padding: 12px 16px; }
.bio-ch-info[hidden] { display: none; }
.bio-ch-info h3 { margin: 0 0 6px; font-size:calc(15px * var(--fs, 1)); font-weight: 700; }
.bio-ch-info p { margin: 0 0 8px; font-size:calc(14px * var(--fs, 1)); line-height: 1.45; color: var(--text); }
.bio-ch-info .bio-ch-note { margin: 10px 0 0; padding-top: 8px; border-top: 1px dashed var(--border); font-size:calc(13px * var(--fs, 1)); }
@media (min-width: 600px) and (max-height: 500px) and (orientation: landscape) {
  #screen-bio-division.bio-ch-on.active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 1fr); grid-template-rows: auto auto auto; column-gap: 16px; align-items: start; }
  #screen-bio-division.bio-ch-on > * { min-width: 0; }
  #screen-bio-division.bio-ch-on > .bio-head { grid-column: 1 / -1; grid-row: 1; margin-bottom: 4px; }
  #screen-bio-division.bio-ch-on > .bio-scene-card { grid-column: 1; grid-row: 2; position: static; width: 100%; }
  #screen-bio-division.bio-ch-on > #bio-ch { grid-column: 2; grid-row: 2; margin-top: 0; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .bio-home-grid { min-height: 0; height: min(560px, calc(100dvh - 230px)); }
}
:root { --sl-petal: #ffd84a; --sl-petal-2: #f2c230; --sl-petal-line: #e3b437; --sl-center: #e8902a; --sl-center-line: #a5572a;
  --sl-stem: #8cc79a; --sl-leaf: #cee8b5; --sl-wall: #34503e; --sl-wall-line: #8cc79a;
  --sl-ta: #eef1f5; --sl-ta-line: #aeb8c8; --sl-tb: #7d8796; --sl-tb-line: #dfe3e8;
  --sl-col: #47d7ea; --sl-col-line: #c9f6fc; --sl-tube: #2f3747; --sl-bulb: #ff8a92; --sl-bulb-line: #ffc5c8; }
:root.theme-light { --sl-petal: #ffd447; --sl-petal-2: #f0bb22; --sl-petal-line: #8a6a0e; --sl-center: #e8892a; --sl-center-line: #8a3a10;
  --sl-stem: #487b57; --sl-wall: #dff0d0; --sl-wall-line: #487b57;
  --sl-ta: #f4f6f9; --sl-ta-line: #6f7886; --sl-tb: #6f7886; --sl-tb-line: #2b3038;
  --sl-col: #1fb3c8; --sl-col-line: #0b6b78; --sl-tube: #dfe5ee; --sl-bulb: #e05563; --sl-bulb-line: #bf303e; }
#screen-bio-division[data-bio-mode^="gn_sl_"] .bio-kinds:not([hidden]) { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; overflow: visible; }
#screen-bio-division[data-bio-mode^="gn_sl_"] .bio-kinds button { min-width: auto; padding: 2px 4px; white-space: normal; text-align: center; line-height: 1.15; hyphens: manual; -webkit-hyphens: manual; }
:root { --hy-c: #418bc6; --hy-c-line: #b2dcf8; --hy-c-ink: #b2dcf8; --hy-r: #e05563; --hy-r-line: #ffc5c8; --hy-r-ink: #ff9aa2;
  --hy-weak: #e9dca8; --hy-weak-line: #c9a94a; --hy-rec: #f6e3a6; --hy-seed: #a5572a; --hy-seed-line: #ffd2a6;
  --hy-root: #b4629a; --hy-root-line: #f0c6dc; }
:root.theme-light { --hy-c-line: #2e6da6; --hy-c-ink: #2e6da6; --hy-r-line: #bf303e; --hy-r-ink: #bf303e;
  --hy-weak: #efe2b0; --hy-weak-line: #8a6a0e; --hy-seed-line: #5a2e10; --hy-root: #a64d86; --hy-root-line: #6e2a4d; }
:root { --ht-silk: #e8a46a; }
:root.theme-light { --ht-silk: #9a4a1c; }
:root { --mc-bark: #8a5a3c; --mc-bark-line: #e0b08a; --mc-bloom: #fdeef3; --mc-bloom-line: #e58fb0; --mc-tape: #eef1f5; --mc-tape-line: #9aa4b4;
  --mc-sub: #ffb24a; --mc-sub-line: #ffe2b0; --mc-flesh: #fff1d2; }
:root.theme-light { --mc-bark: #b07a52; --mc-bark-line: #5e3a22; --mc-bloom: #fff5f8; --mc-bloom-line: #b4436e; --mc-tape: #ffffff; --mc-tape-line: #5f6876;
  --mc-sub: #c9660f; --mc-sub-line: #6e3a0a; --mc-flesh: #fff4dc; }
:root { --mj-dna: #e8902a; --mj-dna-line: #ffd2a6; --mj-gene: #a68be0; --mj-gene-line: #e7d3ff; --mj-prot: #d9c8f5;
  --mj-zona: rgba(178, 220, 248, 0.22); --mj-zona-line: #7fd0f2; --mj-glass: rgba(178, 220, 248, 0.12); --mj-glass-line: #aeb8c8;
  --mj-medium: rgba(127, 208, 242, 0.16); --mj-sol: rgba(231, 211, 255, 0.35);
  --mj-wool: #f2f4f6; --mj-wool-line: #aeb8c8; --mj-face: #efe3d0; --mj-face-line: #b9a68a; --mj-gwool: #9aa3b0; --mj-gwool-line: #dfe3e8;
  --mj-gface: #5f6876; --mj-gface-line: #c5cedd; --mj-eye: #1a1d21; --mj-uterus: #ffdfe2; --mj-ok: #2f7a48; }
:root.theme-light { --mj-dna-line: #8a3a10; --mj-gene: #7a5cc0; --mj-gene-line: #4b2d8a; --mj-prot: #e4d8fa;
  --mj-zona: rgba(127, 208, 242, 0.25); --mj-zona-line: #1f78b4; --mj-glass: rgba(255, 255, 255, 0.6); --mj-glass-line: #6f7886;
  --mj-medium: rgba(127, 208, 242, 0.22); --mj-sol: rgba(167, 139, 224, 0.25);
  --mj-wool: #ffffff; --mj-wool-line: #6f7886; --mj-face: #f6ead8; --mj-face-line: #8a6a4a; --mj-gwool: #b4bcc8; --mj-gwool-line: #4d5560;
  --mj-gface: #6f7886; --mj-gface-line: #2b3038; --mj-uterus: #ffe8ea; --mj-ok: #2f7a48; }
:root { --mkl-root: #f08a3c; --mkl-root-line: #ffc08a; --mkl-ring: #9a4314; --mkl-flesh: #ffcf9c; --mkl-med: rgba(255, 216, 74, 0.28); --mkl-med-line: #e3c45a;
  --mkl-cell: #f2f4f6; --mkl-cell-line: #8f9aab; --mkl-horm: #ff8fc8; --mkl-soil: #3d3226; --mkl-blade: #dfe3e8; --mkl-handle: #5f6876; --mkl-handle-line: #c5cedd; }
:root.theme-light { --mkl-root: #f28c38; --mkl-root-line: #a5481a; --mkl-ring: #a5481a; --mkl-flesh: #ffd9b0; --mkl-med: rgba(255, 212, 71, 0.45); --mkl-med-line: #8a6a0e;
  --mkl-cell: #ffffff; --mkl-cell-line: #6f7886; --mkl-horm: #c2307a; --mkl-soil: #ead9c2; --mkl-blade: #ffffff; --mkl-handle: #8f9aab; --mkl-handle-line: #4d5560; }
:root { --cln-n: #3f86e8; --cln-soma: #d6ead0; --cln-soma-line: #7fb86e; --cln-bwool: #9b6b43; --cln-bwool-line: #e3c39f; --cln-bface: #3a2a1f;
  --cln-bface-line: #c9a682; --cln-pulse: #ffd24a; }
:root.theme-light { --cln-n: #2a62c9; --cln-soma: #e4f2df; --cln-soma-line: #4f7f40; --cln-bwool: #b5835a; --cln-bwool-line: #5a3b20; --cln-bface: #4a3426;
  --cln-bface-line: #2b1d12; --cln-pulse: #a87400; }
.anat-tiles { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 6px 0 12px; }
@media (min-width: 560px) { .anat-tiles { grid-template-columns: 1fr 1fr; } }
.anat-tile-sub { display: block; margin-top: 2px; font-size:calc(12px * var(--fs, 1)); font-weight: 600; color: var(--text-muted); }
.anat-tiles .bio-group-tile { min-height: 0; padding: 14px 18px; gap: 8px; border-radius: 22px; }
.anat-tiles .bio-group-top { margin: 0; }
.an-top h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) and (pointer: fine) and (min-width: 1280px) {
  .bio-group-tile { gap: calc(12px * var(--fs)); min-height: calc(128px * var(--fs)); padding: calc(20px * var(--fs)) calc(22px * var(--fs)); border-radius: calc(28px * var(--fs)); }
  .bio-group-ico { width: calc(44px * var(--fs)); height: calc(44px * var(--fs)); }
  .bio-group-ico .ic { width: calc(24px * var(--fs)); height: calc(24px * var(--fs)); }
  .bio-group-arrow { width: calc(36px * var(--fs)); height: calc(36px * var(--fs)); }
  .bio-group-wm { width: calc(130px * var(--fs)); height: calc(130px * var(--fs)); right: calc(-16px * var(--fs)); bottom: calc(-26px * var(--fs)); }
  .bio-home-tile { padding: calc(22px * var(--fs)); }
  .bio-home-wide .bio-group-ico { width: calc(52px * var(--fs)); height: calc(52px * var(--fs)); }
  .bio-home-wide .bio-group-ico .ic { width: calc(28px * var(--fs)); height: calc(28px * var(--fs)); }
  .bio-home-wide .bio-group-wm { width: calc(150px * var(--fs)); height: calc(150px * var(--fs)); right: calc(-18px * var(--fs)); bottom: calc(-28px * var(--fs)); }
  .bio-home-half .bio-group-ico { width: calc(44px * var(--fs)); height: calc(44px * var(--fs)); }
  .bio-home-half .bio-group-ico .ic { width: calc(24px * var(--fs)); height: calc(24px * var(--fs)); }
  .bio-home-half .bio-group-wm { width: calc(110px * var(--fs)); height: calc(110px * var(--fs)); right: calc(-16px * var(--fs)); bottom: calc(-22px * var(--fs)); }
  .bio-home-grid .bq-tile .bio-group-wm { width: calc(96px * var(--fs)); height: calc(96px * var(--fs)); right: calc(-10px * var(--fs)); bottom: calc(-30px * var(--fs)); }
  .bio-pics-tiles .bio-pics-tile { min-height: calc(150px * var(--fs)); padding: calc(14px * var(--fs)); gap: calc(8px * var(--fs)); }
  .bio-pics-tiles .bio-pics-tile .bio-group-ico { width: calc(38px * var(--fs)); height: calc(38px * var(--fs)); }
  .bio-pics-tiles .bio-pics-tile .bio-group-ico .ic { width: calc(21px * var(--fs)); height: calc(21px * var(--fs)); }
  .bio-pics-tiles .bio-pics-tile .bio-group-arrow { width: calc(36px * var(--fs)); height: calc(36px * var(--fs)); }
  .bio-pics-tiles .bio-pics-tile .bio-group-wm { width: calc(90px * var(--fs)); height: calc(90px * var(--fs)); }
  .anat-tiles .bio-group-tile { padding: calc(14px * var(--fs)) calc(18px * var(--fs)); gap: calc(8px * var(--fs)); border-radius: calc(22px * var(--fs)); }
  .bio-anim-list .bio-anim-row { padding: calc(14px * var(--fs)) calc(14px * var(--fs)) calc(14px * var(--fs)) calc(18px * var(--fs)); gap: calc(12px * var(--fs)); }
  .bio-row-ico { width: calc(40px * var(--fs)); height: calc(40px * var(--fs)); }
  .bio-row-ico .ic { width: calc(22px * var(--fs)); height: calc(22px * var(--fs)); }
  .bio-row-arrow { width: calc(32px * var(--fs)); height: calc(32px * var(--fs)); }
  .bio-btn { width: calc(44px * var(--fs)); height: calc(44px * var(--fs)); border-radius: calc(12px * var(--fs)); }
  .bio-btn svg { width: calc(20px * var(--fs)); height: calc(20px * var(--fs)); }
  .bio-btn.bio-play { width: calc(56px * var(--fs)); height: calc(56px * var(--fs)); }
  .bio-btn.bio-play svg { width: calc(24px * var(--fs)); height: calc(24px * var(--fs)); }
  #screen-bio-division.active:not(.bio-exp-on):not(.bio-intro-on) { grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr); }
}
#screen-bio-cards .back-btn { text-transform: lowercase; }
.bio-home-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bio-streak { font-weight: 800; font-size:calc(14px * var(--fs, 1)); }
.bio-streak-unit { font-weight: 600; font-size:calc(12px * var(--fs, 1)); color: var(--text-muted); margin-left: 2px; }
@media (max-width: 350px) { .bio-streak-unit { display: none; } }
