.anatomy-panel { --ink: #273922; --muted: #56644f; --red: #b5403a; }
.anatomy-panel .titlebar { margin-block-start: 0; }
.anatomy-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(18px, 4vw, 64px);
  max-width: 1100px; margin: 0 auto; padding: 10px clamp(4px, 2vw, 26px) 18px;
}
.anatomy-visual { min-width: 0; }
.anatomy-panel figure { margin: 0; }
.anatomy-views {
  display: grid; grid-template-columns: 1fr 1fr; text-align: center;
  font-size: 12px; font-weight: 700; color: var(--muted); direction: ltr;
  margin: 6px auto 5px; max-width: 405px;
}
.anatomy-diagram svg { width: 100%; max-width: 405px; display: block; margin: auto; }
.anatomy-panel svg { isolation: isolate; }
.anatomy-ink { mix-blend-mode: multiply; fill: #d64542; }
.anatomy-motion img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.anatomy-modes { display: flex; width: fit-content; max-width: 100%; margin: 0 auto 12px; padding: 3px; border-radius: 12px; background: #f1f4ed; }
.anatomy-modes button { background: transparent; border: 1px solid transparent; padding: 8px 12px; font-weight: 650; font-size: 13px; color: #485740; }
.anatomy-modes button[aria-pressed=true] { background: #fff; border-color: #cbd5c2; color: var(--ink); }
.anatomy-info { min-width: 0; color: var(--ink); }
.anatomy-info h3 { margin: 0 0 3px; font-size: clamp(20px, 2.3vw, 28px); color: var(--ink); line-height: 1.22; }
.anatomy-help { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 2px 0 13px; }
.anatomy-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.anatomy-choice {
  min-height: 58px; min-width: 0; display: flex; align-items: center; gap: 9px;
  color: var(--ink); font-size: 14px; font-weight: 650; line-height: 1.28; text-align: start;
  border: 1px solid #d7dfd3; padding: 4px 8px 4px 4px; background: #fff;
}
.anatomy-choice span { overflow-wrap: anywhere; }
.anatomy-choice svg { flex: 0 0 45px; width: 45px; height: 45px; border-radius: 7px; }
.anatomy-choice:hover { border-color: #aab7a2; }
.anatomy-choice[aria-pressed=true] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: #fff5f2; }
.anatomy-panel button:focus-visible { outline: 3px solid #365a43; outline-offset: 2px; }
.anatomy-focus { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 10px 0 5px; }
.anatomy-active { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; }
.anatomy-active::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: 0 0 auto; }
.anatomy-active[data-empty]::before { background: #829080; }
.anatomy-reset { background: white; padding: 7px 3px; min-height: 36px; border: 0; color: #435f32; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.anatomy-selected-action { margin: 4px 0 8px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.anatomy-depth, .anatomy-skill p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.anatomy-skill { margin: 10px 0; }
.anatomy-skill strong, .anatomy-function h4 { margin: 0 0 4px; font-size: 14px; font-weight: 750; color: var(--ink); }
.anatomy-function { margin: 10px 0 0; border-inline-start: 3px solid #839b71; padding: 7px 12px; background: #f5f7f2; }
.anatomy-function p { margin: 0; font-size: 15px; line-height: 1.55; }
.middle.camera-and-counters { grid-template-columns: 1fr 1fr; }
.middle.camera-and-counters > section:last-child { grid-column: auto; }
@media (max-width: 700px) {
  .anatomy-layout { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 3px 2px 8px; }
  .anatomy-diagram svg, .anatomy-views { max-width: 350px; }
  .middle.camera-and-counters { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 360px) {
  .anatomy-choice { gap: 4px; font-size: 12px; }
  .anatomy-choice svg { flex-basis: 34px; width: 34px; height: 40px; }
}

.anatomy-flipped { transform: scaleX(-1); }
#gameGuide .anatomy-panel {
  margin: 18px 0; padding: 14px; border: 1px solid #d6dfce; border-radius: 13px;
  background: #fff; container-type: inline-size;
}
#gameGuide .anatomy-panel .titlebar { background: #48632b; color: #fff; border-radius: 9px; padding: 9px 13px; margin: 0 0 10px; font: 700 18px/1.3 Arial, sans-serif; }
#gameGuide .anatomy-layout { gap: clamp(14px, 2vw, 28px); padding: 4px 2px; }
#gameGuide .anatomy-info h3 { background: transparent; color: var(--ink); margin: 0; padding: 0; font: 700 21px/1.24 Arial, sans-serif; }
#gameGuide .anatomy-function p { font-size: 15px; line-height: 1.5; }
#gameGuide .anatomy-choice { border-radius: 9px; }
#gameGuide .anatomy-modes button { border-radius: 9px; }
@container (max-width: 650px) {
  #gameGuide .anatomy-layout { grid-template-columns: minmax(0, 1fr); }
  #gameGuide .anatomy-diagram svg, #gameGuide .anatomy-views { max-width: 310px; }
}
.game-muscle-peek { display: none; }
.is-immersive .game-dock .game-muscle-peek:not([hidden]) {
  grid-column: 1 / -1; display: flex; align-items: center; justify-self: start; gap: 8px;
  min-height: 40px; max-width: 100%; padding: 3px 8px; text-align: start; line-height: 1.2;
}
.game-muscle-peek svg { width: 37px; height: 37px; flex: 0 0 37px; border-radius: 5px; background: white; isolation: isolate; }
.game-muscle-peek strong, .game-muscle-peek small { display: block; }
.game-muscle-peek small { font-size: 12px; font-weight: 400; margin-top: 2px; }
@media (max-width:650px) {
  .is-immersive .game-dock .game-muscle-peek:not([hidden]) { justify-self: center; }
}
@media (max-height:500px) and (orientation:landscape) {
  .is-immersive .game-dock .game-muscle-peek:not([hidden]) { grid-column: 2; justify-self: end; min-height: 30px; }
  .game-muscle-peek svg { width: 24px; height: 24px; flex-basis: 24px; }
  .game-muscle-peek small { display: none; }
}

.plan-muscle-control { display: grid; gap: 4px; justify-items: start; grid-column: 1 / -1; margin-block: .55rem; }
.plan-muscle-control button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 7px 12px; border: 1px solid #bcccb2; border-radius: 8px; background: #f5f8f1; color: #304928; font: 650 14px/1.35 system-ui,sans-serif; cursor: pointer; }
.plan-muscle-control button::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #b5403a; }
.plan-muscle-control small { color: #52604d; font-size: 13px; line-height: 1.4; }
.training-atlas-dialog { position: fixed; inset: 0; box-sizing: border-box; width: min(880px,calc(100% - 20px)); max-height: 90dvh; overflow: auto; margin: auto; border: 1px solid #bbc8b1; border-radius: 14px; padding: clamp(12px,2vw,24px); background: white; color: #273922; }
.training-atlas-dialog::backdrop { background: rgb(22 34 27 / 55%); }
.training-atlas-dialog .titlebar { margin: 0 0 12px; padding: 10px 15px; padding-inline-end: 100px; border-radius: 8px; background: #48632b; color: white; font: 700 20px/1.35 system-ui,sans-serif; }
.training-atlas-close { position: absolute; inset-inline-end: clamp(18px,3vw,33px); margin-top: 5px; padding: 7px 12px; border: 1px solid #80936d; border-radius: 6px; background: white; color: #33452d; cursor: pointer; }
.training-atlas-dialog .anatomy-layout { padding: 5px 0; gap: clamp(16px,3vw,36px); }
.training-atlas-dialog [hidden] { display: none !important; }
.training-atlas-dialog .anatomy-choice { border-radius: 8px; }
@media print {
  #trainingPrintArea pre { white-space: pre-wrap; font: inherit; }
  #trainingPrintArea figure { break-inside: avoid; display: flow-root; margin: 6mm 0; border-top: 1px solid #adb7aa; padding-top: 3mm; white-space: normal; }
  #trainingPrintArea h3, #trainingPrintArea p { margin: 1mm 0; }
  #trainingPrintArea img { display: block; width: 58mm; height: 58mm; }
  #trainingPrintArea .strength-logo-heading > img.strength-logo { width:9mm; height:9mm; }
  #trainingPrintArea .plan-print-views { float: left; width: 58mm; margin-inline-end: 6mm; }
  #trainingPrintArea .anatomy-views { font: 8pt sans-serif; margin: 0; }
}
