/* Group-first annotation, with the same steps on touch and desktop. */
.breast-group-dialog { width: min(440px, calc(100vw - 24px)); }
.breast-group-fan { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 16px 4px; }
.breast-family { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 112px; padding: 16px 10px; }
.breast-family > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: white; font-size: 20px; }
.breast-fan-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.breast-types-dialog { width: min(540px, calc(100vw - 24px)); }
.breast-type-menu { display: grid; gap: 8px; margin: 12px 0; }
.breast-type { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 72px; text-align: left; width: 100%; }
.breast-type > span:nth-child(2) { flex: 1; }
.breast-type strong, .breast-type small { display: block; }
.breast-type small { font-size: 12px; margin-top: 4px; color: var(--muted); }
.breast-category-symbol { font-size: 26px; }
.tone-green .breast-category-symbol, .breast-category-legend .tone-green b { color: #26834d; }
.tone-yellow .breast-category-symbol, .breast-category-legend .tone-yellow b { color: #a56c05; }
.tone-red .breast-category-symbol, .breast-category-legend .tone-red b { color: #c73b47; }
.breast-category-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; padding: 12px 0; }
.breast-marker-shape > * { stroke: white; stroke-width: .45; }
.breast-marker-shape.tone-green > * { fill: #26834d; }
.breast-marker-shape.tone-yellow > * { fill: #b77c10; }
.breast-marker-shape.tone-red > * { fill: #c73b47; }
.breast-marker-shape.tone-none > * { fill: #65736d; }
.map-marker .breast-marker-shape + text { fill: white; pointer-events: none; }
.breast-pending-marker { fill: none; stroke: var(--green); stroke-width: .6; stroke-dasharray: 1 1; pointer-events: none; }
.breast-v2-start { margin: 16px 0; }
@media (max-width: 767px) {
 .breast-group-dialog, .breast-types-dialog { max-height: 86dvh; margin: auto auto 0; border-radius: 20px 20px 0 0; }
 .breast-group-fan { gap: 14px; }
 .breast-family { min-height: 100px; }
 .breast-fan-center { display: none; }
 .breast-type img { width: 48px; height: 36px; }
}

@media (prefers-color-scheme: dark) { .breast-type img { background: #eef2e8; border-radius: 6px; } }
/* Keep category colors even when the existing map highlights the selected marker. */
.organ-map .map-marker .breast-marker-shape.tone-green > * { fill: #26834d; stroke: white; }
.organ-map .map-marker .breast-marker-shape.tone-yellow > * { fill: #b77c10; stroke: white; }
.organ-map .map-marker .breast-marker-shape.tone-red > * { fill: #c73b47; stroke: white; }
.organ-map .map-marker .breast-marker-shape + text { fill: white; }
.organ-map .map-marker.active .breast-marker-shape > * { stroke-width: .8; }
