/* SiteFlow — donut charts (shared) */
.sfdn-card { container-type: inline-size; background: #fff; border: 1px solid #E4E7EC; border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; box-sizing: border-box; }
.sfdn-card.flat { border: 0; padding: 0; background: transparent; }
.sfdn-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sfdn-h b { display: block; font: 700 15px 'Plus Jakarta Sans', Inter, sans-serif; color: #0A1F44; letter-spacing: -.005em; }
.sfdn-h span { display: block; font: 500 12.5px Inter, sans-serif; color: #5B6B87; margin-top: 2px; }
.sfdn-go { border: 1px solid #E4E7EC; background: #fff; border-radius: 8px; width: 28px; height: 28px; font-size: 18px; line-height: 1; color: #5B6B87; cursor: pointer; flex: none; }
.sfdn { display: flex; align-items: center; gap: 22px; }
.sfdn-ring { position: relative; flex: none; }
.sfdn-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sfdn-seg { cursor: pointer; transition: opacity .15s, stroke-width .15s; }
.sfdn-seg.dim { opacity: .28; }
.sfdn-seg.on { stroke-width: 14.5; }
.sfdn-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; padding: 0 22%; }
.sfdn-c small { font: 600 10.5px Inter, sans-serif; color: #5B6B87; text-transform: uppercase; letter-spacing: .05em; line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sfdn-c b { font: 800 21px 'Plus Jakarta Sans', Inter, sans-serif; color: #0A1F44; letter-spacing: -.02em; margin-top: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sfdn-c span { font: 600 12px Inter, sans-serif; color: #5B6B87; min-height: 15px; }
.sfdn-lg { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sfdn-r { display: grid; grid-template-columns: 10px 1fr auto 40px; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font: 500 13.5px Inter, sans-serif; color: #0A1F44; }
.sfdn-r:hover, .sfdn-r.on { background: #F4F6F9; }
.sfdn-r i { width: 10px; height: 10px; border-radius: 3px; }
.sfdn-r .l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sfdn-r .l small { color: #8A94A6; font-size: 11.5px; }
.sfdn-r b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sfdn-r .p { text-align: right; color: #5B6B87; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sfdn.empty { flex-direction: column; gap: 8px; padding: 6px 0; }
.sfdn.empty .sfdn-svg { width: 112px; height: 112px; }
.sfdn-none { margin: 0; font: 500 13px Inter, sans-serif; color: #5B6B87; text-align: center; max-width: 260px; }
.sfdn-note { font: 500 12px Inter, sans-serif; color: #5B6B87; border-top: 1px solid #F0F1F4; padding-top: 10px; }
.sfdn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; margin: 0 0 16px; }
@media (max-width: 520px) {
  .sfdn { flex-direction: column; align-items: stretch; gap: 14px; }
  .sfdn-ring { align-self: center; }
  .sfdn-grid { grid-template-columns: 1fr; }
}
/* Narrow card: legend goes under the ring so labels never get squeezed out */
@container (max-width: 440px) {
  .sfdn { flex-direction: column; align-items: stretch; gap: 14px; }
  .sfdn-ring { align-self: center; }
}
