.anatomy-study {
  border: 1px solid #d3dfe5;
  border-radius: 16px;
  background: #fff;
  color: #243f4e;
  font-size: 16px;
  line-height: 1.65;
  overflow: hidden;
  margin: 16px 0 24px;
  min-width: 0;
}
.anatomy-study > header {
  padding: 22px 22px 12px;
}
.anatomy-study h3 {
  margin: 4px 0 10px;
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.3;
}
.anatomy-eyebrow {
  color: #654284;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}
.anatomy-steps {
  display: flex;
  overflow: auto;
  gap: 10px;
  padding: 6px 22px 18px;
}
.anatomy-study button {
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  color: #365366;
  border: 1px solid #cddce3;
  background: #fff;
  border-radius: 8px;
  padding: 9px 12px;
  line-height: 1.4;
}
.anatomy-steps button {
  flex: 0 0 auto;
  max-width: 180px;
  display: flex;
  gap: 8px;
  align-items: center;
  text-align: left;
  font-size: 14px;
  font-weight: 750;
}
.anatomy-steps button > span {
  color: #654284;
  font-weight: 850;
}
.anatomy-steps button[aria-current] {
  background: #654284;
  border-color: #654284;
  color: #fff;
}
.anatomy-steps button[aria-current] > span {
  color: #fff;
}
.anatomy-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border-block: 1px solid #dbe5e9;
}
.anatomy-study .anatomy-picture {
  margin: 0;
  border: 0;
  padding: 16px;
  border-radius: 0;
  background: #fff;
  min-width: 0;
}
.anatomy-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
}
.anatomy-tools button {
  font-size: 14px;
}
.anatomy-view-hint {
  font-size: 14px;
  line-height: 1.5;
  color: #4f6975;
  margin: 10px 0;
}
.anatomy-window {
  overflow: auto;
  margin: 12px 0;
  overscroll-behavior: contain;
}
.anatomy-study .anatomy-window > svg {
  width: 100%;
  height: auto;
  max-height: 560px;
  display: block;
  overflow: hidden;
}
.anatomy-stage--large {
  grid-template-columns: minmax(0, 1fr);
}
.anatomy-stage--large .anatomy-window {
  max-height: 75vh;
}
.anatomy-study .anatomy-stage--large .anatomy-window > svg {
  width: max(100%, 640px);
  min-width: 640px;
  height: auto;
  max-height: none;
}
.anatomy-picture figcaption {
  font-size: 14px;
  color: #4f6975;
  line-height: 1.6;
}
.anatomy-explanation {
  padding: 24px;
  border-left: 1px solid #dbe5e9;
}
.anatomy-explanation h4 {
  font-size: 25px;
  line-height: 1.35;
  margin: 0 0 18px;
}
.anatomy-explanation > strong,
.anatomy-reason > strong {
  font-size: 14px;
  color: #654284;
}
.anatomy-explanation p {
  margin: 5px 0 18px;
}
.anatomy-reason {
  border-left: 3px solid #8d76a6;
  padding-left: 14px;
  margin-top: 22px;
}
.anatomy-controls {
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.anatomy-controls button:last-child {
  background: #654284;
  color: #fff;
  border-color: #654284;
}
.anatomy-study button:disabled {
  opacity: 0.45;
  cursor: default;
}
.anatomy-study :focus-visible {
  outline: 3px solid #497ec4;
  outline-offset: 3px;
}
.anatomy-credit {
  padding: 12px 22px;
  border-top: 1px solid #dbe5e9;
  color: #516976;
  font-size: 14px;
}
.anatomy-credit details {
  margin-top: 8px;
}
.anatomy-credit summary {
  cursor: pointer;
}
.anatomy-credit a {
  color: #355d83;
  text-decoration: underline;
}
.anatomy-thumbnail {
  padding: 12px 14px 8px;
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.anatomy-thumbnail svg {
  width: 100%;
  height: 190px;
  overflow: hidden;
}
.anatomy-thumbnail > span {
  font-size: 14px;
  color: #4e6270;
  line-height: 1.4;
}
.bio-memory-panel .anatomy-stage {
  grid-template-columns: minmax(0, 1fr);
}
.bio-memory-panel .anatomy-explanation {
  border-left: 0;
  border-top: 1px solid #dbe5e9;
}
@media (max-width: 700px) {
  .anatomy-stage {
    grid-template-columns: minmax(0, 1fr);
  }
  .anatomy-explanation {
    border-left: 0;
    border-top: 1px solid #dbe5e9;
    padding: 18px 16px;
  }
  .anatomy-study > header {
    padding: 18px 16px 10px;
  }
  .anatomy-steps {
    padding-inline: 16px;
  }
  .anatomy-study .anatomy-window > svg {
    height: auto;
    max-height: 480px;
  }
  .anatomy-controls {
    padding: 16px;
  }
  .anatomy-credit {
    padding-inline: 16px;
  }
}
@media print {
  .anatomy-tools,
  .anatomy-steps,
  .anatomy-controls,
  .anatomy-view-hint {
    display: none;
  }
  .anatomy-study .anatomy-window {
    max-height: none;
    overflow: visible;
  }
  .anatomy-study .anatomy-window > svg {
    width: 100%;
    min-width: 0;
    max-height: none;
    height: auto;
  }
}
