.anatomy-section {
  --anatomy-ink: #14211f;
  --anatomy-muted: #5d6964;
  --anatomy-panel: rgba(255, 252, 246, 0.9);
  --anatomy-line: rgba(20, 33, 31, 0.1);
  --anatomy-green: #17332f;
  --anatomy-green-2: #2f5a50;
  --anatomy-teal: #0f766e;
  --anatomy-amber: #d8891f;
  --anatomy-red: #b45309;
  --anatomy-shadow: 0 24px 58px rgba(65, 54, 34, 0.12);

  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 68px;
  color: var(--anatomy-ink);
}

.anatomy-hero {
  grid-template-columns: minmax(0, 1.28fr) minmax(640px, 0.72fr);
  gap: 18px;
  margin-bottom: 18px;
}

.anatomy-hero-copy,
.anatomy-status-card,
.anatomy-visual-card,
.anatomy-detail-card {
  border: 1px solid var(--anatomy-line);
  box-shadow: var(--anatomy-shadow);
}

.anatomy-hero-copy {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 42px;
  border-radius: 32px;
  color: #fff7e8;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #122521 0%, #1d3b35 58%, #0f1715 100%);
  background-size:
    42px 42px,
    42px 42px,
    auto;
}

.anatomy-hero-copy::after {
  content: '';
  position: absolute;
  right: -90px;
  bottom: 34px;
  width: 420px;
  height: 120px;
  border: 1px solid rgba(255, 244, 231, 0.18);
  background: linear-gradient(
    120deg,
    rgba(216, 137, 31, 0.22),
    rgba(15, 118, 110, 0.08)
  );
  transform: rotate(-12deg);
  pointer-events: none;
}

.anatomy-kicker,
.anatomy-panel-label {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--anatomy-amber);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.anatomy-hero h1,
.anatomy-visual-head h2,
.anatomy-detail-head h2 {
  margin: 0;
  font-family:
    Georgia,
    Times New Roman,
    serif;
  line-height: 1.02;
}

.anatomy-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 10ch;
  font-size: 4.25rem;
  font-weight: 700;
}

.anatomy-summary {
  position: relative;
  z-index: 1;
  max-width: 58ch;
  margin: 20px 0 0;
  color: rgba(255, 247, 232, 0.78);
  font-size: 1.05rem;
  line-height: 1.75;
}

.anatomy-hero-preview {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 520px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 232, 0.18);
  border-radius: 22px;
  background: rgba(255, 247, 232, 0.08);
}

.anatomy-hero-preview img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.anatomy-hero-preview span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 247, 232, 0.22);
  border-radius: 999px;
  background: rgba(19, 32, 29, 0.72);
  color: #fff7e8;
  font-size: 0.78rem;
  font-weight: 900;
}

.anatomy-status-card,
.anatomy-visual-card,
.anatomy-detail-card {
  border-radius: 28px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.82),
      rgba(255, 250, 241, 0.92)
    ),
    var(--anatomy-panel);
  backdrop-filter: blur(18px);
}

.anatomy-status-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.anatomy-status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(23, 51, 47, 0.1);
  border-radius: 999px;
  background: rgba(23, 51, 47, 0.06);
  color: var(--anatomy-green);
}

.anatomy-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--anatomy-red);
  box-shadow: 0 0 0 7px rgba(180, 83, 9, 0.11);
}

.anatomy-status-badge.is-live .anatomy-status-dot {
  background: #23855d;
  box-shadow: 0 0 0 7px rgba(35, 133, 93, 0.14);
}

.anatomy-status-grid,
.anatomy-detail-grid {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.anatomy-status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.anatomy-status-grid div,
.anatomy-detail-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(23, 51, 47, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.anatomy-section dt {
  color: var(--anatomy-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.anatomy-section dd {
  margin: 5px 0 0;
  color: var(--anatomy-ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.anatomy-panel-note,
.anatomy-status-copy,
.anatomy-detail-head p {
  color: var(--anatomy-muted);
  line-height: 1.7;
}

.anatomy-status-copy {
  margin: 0 0 14px;
}

.anatomy-api-url,
.anatomy-detail-item code {
  display: block;
  max-width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  background: #13201d;
  color: #fff1d6;
  font-size: 0.84rem;
  overflow-x: auto;
}

.anatomy-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 18px;
  align-items: start;
}

.anatomy-visual-card,
.anatomy-detail-card {
  padding: 24px;
}

.anatomy-detail-card {
  position: sticky;
  top: 128px;
}

.anatomy-visual-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.anatomy-visual-head h2,
.anatomy-detail-head h2 {
  font-size: 2rem;
}

.anatomy-panel-note {
  max-width: 24ch;
  margin: 0;
  text-align: right;
}

.anatomy-image-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(23, 51, 47, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(23, 51, 47, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 51, 47, 0.06) 1px, transparent 1px),
    linear-gradient(145deg, #fef8ec 0%, #e8f2ec 48%, #f7ead8 100%);
  background-size:
    36px 36px,
    36px 36px,
    auto;
  aspect-ratio: var(--car-image-width) / var(--car-image-height);
}

.anatomy-image-backdrop {
  position: absolute;
  inset: 18px;
  z-index: 0;
  border-radius: 22px;
  background:
    linear-gradient(
      120deg,
      transparent 0 34%,
      rgba(15, 118, 110, 0.1) 34% 36%,
      transparent 36% 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.38),
      rgba(255, 255, 255, 0.12)
    );
}

.anatomy-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 26px 18px rgba(23, 51, 47, 0.16));
}

.anatomy-hotspot {
  position: absolute;
  z-index: 2;
  border: 2px solid rgba(216, 137, 31, 0.82);
  border-radius: 16px;
  background: rgba(216, 137, 31, 0.13);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 12px 22px rgba(23, 51, 47, 0.12);
  color: var(--anatomy-ink);
  cursor: pointer;
  font: inherit;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
  animation: hotspotIn 420ms ease both;
}

.anatomy-hotspot:hover,
.anatomy-hotspot:focus-visible,
.anatomy-hotspot.is-active {
  border-color: #fff1c7;
  background: rgba(216, 137, 31, 0.28);
  box-shadow:
    0 0 0 4px rgba(216, 137, 31, 0.28),
    0 20px 34px rgba(23, 51, 47, 0.18);
  outline: none;
  transform: scale(1.035);
}

.anatomy-hotspot.is-active {
  border-color: var(--anatomy-green);
  background: rgba(15, 118, 110, 0.24);
}

.anatomy-hotspot-tag {
  position: absolute;
  top: -16px;
  left: -16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid rgba(255, 250, 241, 0.88);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--anatomy-green),
    var(--anatomy-teal)
  );
  color: #fff8e9;
  font-size: 0.74rem;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(23, 51, 47, 0.2);
}

.anatomy-part-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.anatomy-index-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 0 14px;
  border: 1px solid rgba(23, 51, 47, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--anatomy-ink);
  cursor: pointer;
  font: inherit;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.anatomy-index-chip span {
  color: var(--anatomy-amber);
  font-weight: 900;
}

.anatomy-index-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anatomy-index-chip:hover,
.anatomy-index-chip:focus-visible,
.anatomy-index-chip.is-active {
  border-color: transparent;
  background: linear-gradient(
    135deg,
    var(--anatomy-green),
    var(--anatomy-green-2)
  );
  color: #fff7e8;
  outline: none;
  transform: translateY(-1px);
}

.anatomy-index-chip.is-active span,
.anatomy-index-chip:hover span,
.anatomy-index-chip:focus-visible span {
  color: #ffd98d;
}

.anatomy-detail-head p {
  margin: 14px 0 0;
}

.anatomy-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.anatomy-detail-item-wide {
  grid-column: 1 / -1;
}

.anatomy-category-stack {
  padding-top: 2px;
}

.anatomy-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anatomy-category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: #14524c;
  font-size: 0.82rem;
  font-weight: 800;
}

.obj-viewer-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto 72px;
  color: var(--anatomy-ink);
}

.obj-viewer-copy,
.obj-viewer-panel {
  border: 1px solid var(--anatomy-line);
  border-radius: 28px;
  box-shadow: var(--anatomy-shadow);
}

.obj-viewer-copy {
  padding: 28px;
  background:
    radial-gradient(
      circle at 18% 10%,
      rgba(216, 137, 31, 0.22),
      transparent 32%
    ),
    linear-gradient(150deg, #13201d 0%, #203c36 58%, #111816 100%);
  color: #fff7e8;
}

.obj-viewer-copy h2 {
  margin: 0;
  font-family:
    Georgia,
    Times New Roman,
    serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
}

.obj-viewer-copy p {
  margin: 16px 0 0;
  color: rgba(255, 247, 232, 0.76);
  line-height: 1.7;
}

.obj-viewer-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.obj-file-control {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 247, 232, 0.16);
  border-radius: 18px;
  background: rgba(255, 247, 232, 0.08);
}

.obj-file-control span {
  color: #ffd98d;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.obj-file-control input {
  max-width: 100%;
  color: rgba(255, 247, 232, 0.82);
  font: inherit;
  font-size: 0.85rem;
}

.obj-reset-button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: #fff7e8;
  color: #13201d;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.obj-viewer-panel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #101816;
  background-size:
    34px 34px,
    34px 34px,
    auto;
}

.obj-viewer-toolbar {
  position: absolute;
  inset: 16px 16px auto;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.obj-viewer-toolbar span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 247, 232, 0.16);
  border-radius: 999px;
  background: rgba(16, 24, 22, 0.72);
  color: rgba(255, 247, 232, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.obj-viewer-canvas {
  position: absolute;
  inset: 0;
  touch-action: none;
}

.obj-viewer-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.obj-viewer-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  color: #fff7e8;
  text-align: center;
  pointer-events: none;
}

.obj-viewer-empty[hidden] {
  display: none;
}

.obj-viewer-empty strong {
  font-family:
    Georgia,
    Times New Roman,
    serif;
  font-size: 2rem;
}

.obj-viewer-empty span {
  color: rgba(255, 247, 232, 0.66);
}

@keyframes hotspotIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(4px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .anatomy-hotspot,
  .anatomy-index-chip {
    animation: none;
    transition: none;
  }
}

@media (max-width: 1100px) {
  .anatomy-section {
    width: min(100% - 32px, 1480px);
    padding-top: 24px;
  }

  .anatomy-hero,
  .anatomy-workspace,
  .obj-viewer-section {
    grid-template-columns: 1fr;
  }

  .anatomy-detail-card {
    position: static;
  }

  .obj-viewer-section {
    width: min(100% - 32px, 1480px);
  }
}

@media (max-width: 760px) {
  .anatomy-section {
    width: min(100% - 24px, 1480px);
    padding-bottom: 42px;
  }

  .anatomy-hero-copy {
    min-height: auto;
    padding: 28px;
    border-radius: 24px;
  }

  .anatomy-hero-copy::after {
    right: -180px;
    bottom: 6px;
  }

  .anatomy-hero h1 {
    max-width: 12ch;
    font-size: 2.7rem;
  }

  .anatomy-status-card,
  .anatomy-visual-card,
  .anatomy-detail-card,
  .obj-viewer-copy,
  .obj-viewer-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .obj-viewer-panel {
    min-height: 480px;
    padding: 0;
  }

  .obj-viewer-toolbar {
    inset: 12px 12px auto;
  }

  .anatomy-status-card {
    min-height: auto;
  }

  .anatomy-status-grid,
  .anatomy-detail-grid {
    grid-template-columns: 1fr;
  }

  .anatomy-visual-head {
    display: block;
  }

  .anatomy-visual-head h2,
  .anatomy-detail-head h2 {
    font-size: 1.65rem;
  }

  .anatomy-panel-note {
    max-width: none;
    margin-top: 10px;
    text-align: left;
  }

  .anatomy-image-frame {
    border-radius: 18px;
  }

  .anatomy-hotspot {
    border-radius: 12px;
  }

  .anatomy-hotspot-tag {
    top: -12px;
    left: -12px;
    width: 26px;
    height: 26px;
    font-size: 0.64rem;
  }

  .anatomy-index-chip {
    flex: 1 1 150px;
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .anatomy-section {
    width: min(100% - 20px, 1480px);
  }

  .obj-viewer-section {
    width: min(100% - 20px, 1480px);
  }

  .anatomy-hero h1 {
    font-size: 2.35rem;
  }

  .anatomy-summary {
    font-size: 1rem;
  }

  .anatomy-hero-preview span {
    position: static;
    justify-content: center;
    border-radius: 0;
    background: rgba(19, 32, 29, 0.9);
  }

  .anatomy-status-grid div,
  .anatomy-detail-item {
    padding: 12px;
  }
}
