:root {
  --anatomy-bg: #eef1f6;
  --anatomy-card: #ffffff;
  --anatomy-border: #e6e9ef;
  --anatomy-text: #1f2937;
  --anatomy-label: #6b7280;
  --anatomy-blue: #3f6df5;
  --anatomy-blue-bg: #eaf1ff;
  --anatomy-green: #16a34a;
  --anatomy-green-bg: #e7f8ee;
  --anatomy-amber: #f59e0b;
  --anatomy-amber-bg: #fff8e6;
  --anatomy-amber-bg-soft: #fffdf5;
  --anatomy-dashed: #93afd4;
  --anatomy-radius: 12px;
}

.anatomy-section {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--anatomy-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem;
}

.anatomy-section .page {
  width: 100%;
  max-width: 1120px;
}

/* Header */
.anatomy-section .header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.anatomy-section .header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--anatomy-text);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.anatomy-section .header p {
  font-size: 1rem;
  color: var(--anatomy-label);
  line-height: 1.6;
}

/* Main layout: 2 columns (Callouts left, demo card right) */
.anatomy-section .anatomy-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0 2.5rem;
  align-items: start;
  position: relative;
}

/* Callout column */
.anatomy-section .callouts-left {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  padding-top: 4rem;
}

.anatomy-section .callout {
  position: relative;
  cursor: pointer;
}

.anatomy-section .callout-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.anatomy-section .callout-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--anatomy-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.anatomy-section .callout-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--anatomy-blue);
  transition: color 0.2s;
}

.anatomy-section .callout-body {
  font-size: 13px;
  color: var(--anatomy-label);
  line-height: 1.55;
  padding-left: 36px;
}

.anatomy-section .callout:hover .callout-num {
  transform: scale(1.1);
  box-shadow: 0 0 0 4px rgba(63, 109, 245, 0.15);
}
.anatomy-section .callout:hover .callout-title { color: #254ec4; }

/* Dashed connector lines — right side of left callouts */
.anatomy-section .callouts-left .callout::after {
  content: '';
  position: absolute;
  right: -2.5rem;
  top: 13px;
  width: 2.5rem;
  height: 1px;
  border-top: 2px dashed var(--anatomy-dashed);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.anatomy-section .callouts-left .callout:hover::after { opacity: 1; }

/* Form card in center */
.anatomy-section .form-center {
  position: relative;
}

.anatomy-section .demo-card {
  background: var(--anatomy-card);
  border: 1px solid var(--anatomy-border);
  border-radius: var(--anatomy-radius);
  padding: 32px;
  box-shadow: 0 4px 24px rgba(10, 24, 50, 0.06);
}

.anatomy-section .crumbs {
  font-size: 13px;
  color: var(--anatomy-label);
  margin-bottom: 6px;
}
.anatomy-section .crumbs b {
  color: var(--anatomy-text);
}
.anatomy-section .demo-title {
  color: var(--anatomy-blue);
  font-size: 26px;
  font-weight: 700;
  margin: 4px 0 20px;
}

/* Fields & Highlights */
.anatomy-section .field-block {
  margin-bottom: 24px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s, box-shadow 0.2s;
}
.anatomy-section .field-block.highlighted {
  background: #eaf1ff;
  box-shadow: 0 0 0 2px var(--anatomy-blue);
}

.anatomy-section label.section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--anatomy-label);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.anatomy-section label.section-label .req {
  color: #e0455a;
  margin-left: 2px;
}

.anatomy-section input[type="text"] {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--anatomy-border);
  padding: 6px 2px 10px;
  font-size: 14px;
  outline: none;
  background: transparent;
  color: var(--anatomy-text);
}
.anatomy-section input[type="text"]::placeholder {
  color: #c3c8d1;
}
.anatomy-section input[type="text"]:focus {
  border-bottom-color: var(--anatomy-blue);
}

.anatomy-section textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border: 1px solid var(--anatomy-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  color: var(--anatomy-text);
}
.anatomy-section textarea:focus {
  border-color: var(--anatomy-blue);
}
.anatomy-section .counter {
  text-align: right;
  font-size: 11px;
  color: #9aa1ac;
  margin-top: 4px;
}

/* Category grid */
.anatomy-section .cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 720px) {
  .anatomy-section .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.anatomy-section .cat-card {
  border: 1px solid var(--anatomy-border);
  border-radius: 10px;
  padding: 20px 8px 16px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: 0.15s;
}
.anatomy-section .cat-card:hover {
  border-color: var(--anatomy-blue);
  box-shadow: 0 2px 8px rgba(63, 109, 245, 0.12);
  transform: translateY(-1px);
}
.anatomy-section .cat-card.selected {
  border-color: var(--anatomy-amber);
  background: var(--anatomy-amber-bg-soft);
}
.anatomy-section .cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--anatomy-blue-bg);
  color: var(--anatomy-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 18px;
}
.anatomy-section .cat-card.leaf-tag .cat-icon {
  background: var(--anatomy-amber-bg);
  color: var(--anatomy-amber);
}
.anatomy-section .cat-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--anatomy-text);
}

/* Breadcrumb trail (pills) */
.anatomy-section .trail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.anatomy-section .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
}
.anatomy-section .pill.blue {
  background: var(--anatomy-blue-bg);
  color: var(--anatomy-blue);
}
.anatomy-section .pill.green {
  background: var(--anatomy-green-bg);
  color: var(--anatomy-green);
}
.anatomy-section .pill.amber {
  background: var(--anatomy-amber-bg);
  color: var(--anatomy-amber);
}
.anatomy-section .pill.ghost {
  background: #fff;
  color: var(--anatomy-label);
  border: 1px solid var(--anatomy-border);
  font-weight: 600;
}
.anatomy-section .pill.ghost:hover {
  border-color: #c8ccd4;
}

/* Selected summary box */
.anatomy-section .selected-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--anatomy-amber-bg);
  border: 1px solid #f6dea3;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 24px;
}
.anatomy-section .selected-box-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.anatomy-section .selected-box .icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--anatomy-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex: none;
}
.anatomy-section .selected-box .sel-title {
  font-size: 13px;
  font-weight: 700;
  color: #8a5a00;
  margin-bottom: 2px;
}
.anatomy-section .selected-box .sel-path {
  font-size: 12.5px;
  color: #9c7326;
}

.anatomy-section .btn {
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--anatomy-border);
  background: #fff;
  color: var(--anatomy-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.anatomy-section .btn:hover {
  border-color: #c8ccd4;
}
.anatomy-section .btn-primary {
  background: var(--anatomy-blue);
  border-color: var(--anatomy-blue);
  color: #fff;
}
.anatomy-section .btn-primary:hover {
  background: #345fe0;
}
.anatomy-section .btn-primary:disabled {
  background: #b9c6f5;
  border-color: #b9c6f5;
  cursor: not-allowed;
}
.anatomy-section .btn-plain {
  border: none;
  background: none;
  color: var(--anatomy-label);
  font-weight: 600;
  padding: 9px 4px;
}

.anatomy-section .upload {
  border: 1px dashed #c9cfd8;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--anatomy-label);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.anatomy-section .upload:hover {
  border-color: var(--anatomy-blue);
  color: var(--anatomy-blue);
}

.anatomy-section hr.sep {
  border: none;
  border-top: 1px solid var(--anatomy-border);
  margin: 26px 0;
}

.anatomy-section .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 640px) {
  .anatomy-section .two-col {
    grid-template-columns: 1fr;
  }
}
.anatomy-section .readonly-field {
  border: 1px solid var(--anatomy-border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--anatomy-text);
  background: #fff;
}
.anatomy-section .readonly-field.muted {
  background: #f6f7f9;
  color: var(--anatomy-label);
}

.anatomy-section .footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}

/* Subtle step fade */
.anatomy-section .step {
  animation: fadeIn 0.18s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .anatomy-section .anatomy-layout {
    grid-template-columns: 1fr;
  }
  .anatomy-section .callouts-left {
    padding-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .anatomy-section .callouts-left .callout::after {
    display: none;
  }
  .anatomy-section .callout {
    flex: 1 1 45%;
  }
}
