/* Response dots (widgets/dots/dots.js). Unordered answers use the same validated categorical slots as the survey
   dashboard; ordered ones (need, reaction) run blue (positive) through grey to red (negative). */
.dt {
  --dt-c1: #2a78d6; --dt-c2: #eb6834; --dt-c3: #1baf7a; --dt-c4: #eda100;
  --dt-c5: #e87ba4; --dt-c6: #008300; --dt-c7: #6250d6; --dt-c8: #e34948;
  --dt-o1: #1c5cab; --dt-o2: #6da7ec; --dt-o3: #b4b6bb; --dt-o4: #f09a76; --dt-o5: #d6452c;
  --dt-other: #a3a5ab;
  display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 12px 22px;
  font-size: 12.5px; line-height: 1.35; color: var(--ink); text-align: left;
}
html[data-theme=dark] .dt {
  --dt-c1: #3987e5; --dt-c2: #d95926; --dt-c3: #199e70; --dt-c4: #c98500;
  --dt-c5: #d55181; --dt-c6: #008300; --dt-c7: #9085e9; --dt-c8: #e66767;
  --dt-o1: #5598e7; --dt-o2: #2f5f9e; --dt-o3: #5d5f66; --dt-o4: #a8553a; --dt-o5: #e66767;
  --dt-other: #5d5f66;
}
.dt__top { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.dt__head { display: flex; align-items: baseline; gap: 8px; }
.dt__eyebrow { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.dt__head strong { font-size: 15px; font-weight: 600; }
.dt__muted { color: var(--muted); font-size: 11.5px; }
.dt__ctl { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); }
.dt__ctl label { display: flex; align-items: center; gap: 6px; }
.dt__sel { padding: 4px 6px; border: 0; border-radius: 6px; background: var(--bg); color: var(--ink); font: inherit; }
/* Auto-switching: the selector that just changed glows once. */
.dt__sel.is-flash { animation: dt-flash 1.2s ease-out; }
@keyframes dt-flash { 0% { box-shadow: 0 0 0 0 transparent; } 20% { box-shadow: 0 0 0 2px var(--mark); } 100% { box-shadow: 0 0 0 2px transparent; } }

.dt__stage { position: relative; flex: 1; min-height: 0; }
.dt__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dt__labels { position: absolute; left: 0; right: 0; bottom: 0; height: 38px; pointer-events: none; }
.dt__label { position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.2; }
.dt__label-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: 11.5px; }
.dt__label-n { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }

.dt__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; min-height: 18px; }
.dt__leg { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.dt__leg i { width: 9px; height: 9px; border-radius: 50%; }
.dt__leg b { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }

.dt__tip { position: absolute; top: 0; left: 0; z-index: 5; display: flex; flex-direction: column; gap: 1px; max-width: 260px; padding: 6px 9px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: 12px; line-height: 1.3; pointer-events: none; }
.dt__tip[hidden] { display: none; }
.dt__tip strong { font-weight: 600; }

@container (max-width: 560px) { .dt__ctl { font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .dt__sel.is-flash { animation: none; } }
