/* Body Graph module */
.body-module .btn {
    width: auto;
}

.body-panel {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
    padding: 0.5rem;
}

.body-panel-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #495057;
    text-align: center;
}

.body-chart {
    display: block;
    width: 100%;
    height: auto;
    max-height: 75vh;
    margin: 0 auto;
    cursor: crosshair;
    touch-action: manipulation;
}

.body-chart.readonly {
    cursor: default;
}

/* One step at a time: Front, Back, then Describe */
.body-module[data-step="anterior"] .body-view[data-view="posterior"],
.body-module[data-step="posterior"] .body-view[data-view="anterior"],
.body-module[data-step="describe"] .body-view,
.body-module:not([data-step="describe"]) .body-describe {
    display: none;
}

.body-figure-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

#bodyDraftBtn {
    --bs-btn-color: #006666;
    --bs-btn-border-color: #006666;
    --bs-btn-bg: #e6f2f2;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #006666;
    --bs-btn-hover-border-color: #006666;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #005252;
    --bs-btn-active-border-color: #005252;
    --bs-btn-disabled-color: #006666;
    --bs-btn-disabled-border-color: #006666;
    font-weight: 500;
}

.body-stepper {
    gap: 0.5rem;
}

.body-stepper li {
    flex: 1 1 0;
}

.body-stepper-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.45rem 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    background: #fff;
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 600;
}

.body-stepper-btn:hover {
    border-color: #006666;
}

.body-stepper-number {
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #495057;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.body-stepper-btn.done {
    color: #006666;
}

.body-stepper-btn.done .body-stepper-number {
    background: rgba(0, 102, 102, 0.15);
    color: #006666;
}

.body-stepper-btn.active {
    border-color: #006666;
    background: #006666;
    color: #fff;
}

.body-stepper-btn.active .body-stepper-number {
    background: #fff;
    color: #006666;
}

.body-stepper-count {
    font-weight: 500;
}

.body-describe textarea {
    min-height: 12rem;
}

.body-side-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #868e96;
    padding: 0 0.25rem;
}

/* Markers drawn in figure coordinates (900 x 1600) */
.body-point {
    stroke: #fff;
    stroke-width: 4;
}

.body-point-label {
    font-size: 40px;
    font-weight: 700;
    fill: #212529;
    stroke: #fff;
    stroke-width: 10px;
    paint-order: stroke;
    pointer-events: none;
}

.body-pin-area {
    fill: rgba(0, 102, 102, 0.1);
    stroke: rgba(0, 102, 102, 0.5);
    stroke-width: 3;
    stroke-dasharray: 10 8;
    pointer-events: none;
}

.body-point {
    pointer-events: none;
}

.body-pin.active .body-pin-area {
    fill: rgba(0, 102, 102, 0.18);
    stroke: #006666;
}

.body-pin-bubble {
    fill: #5f9ea0;
    stroke: #fff;
    stroke-width: 5;
}

.body-pin.active .body-pin-bubble {
    fill: #006666;
}

.body-pin-number {
    font-size: 40px;
    font-weight: 700;
    fill: #fff;
    pointer-events: none;
}

.body-pin.interactive {
    cursor: pointer;
}

.body-location.active {
    border-color: #006666;
    box-shadow: 0 0 0 2px rgba(0, 102, 102, 0.15);
}

.body-location-toggle {
    border: 0;
    background: none;
    padding: 0;
    text-align: left;
    color: inherit;
}

.body-location-toggle .min-w-0,
.body-location-toggle.min-w-0 {
    min-width: 0;
}

.body-location.collapsed:hover {
    border-color: #006666;
}

.body-location-preview {
    min-width: 0;
}

/* Location list */
.body-pin-badge {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: #006666;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.body-point-chip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    line-height: 1.3;
}

.body-point-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background-color: var(--meridian);
    flex-shrink: 0;
}
