/* Chart finishes share the site's existing series and severity colors. */
.tech-column > i,
.doc-chart > b {
  --chart-tone: var(--bar-tone, var(--accent, #789aff));
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--chart-tone), white 65%),
    var(--chart-tone) 28%,
    color-mix(in srgb, var(--chart-tone), transparent 45%) 68%,
    color-mix(in srgb, var(--chart-tone), transparent 88%)) !important;
  border-radius: 6px 6px 1px 1px;
  box-shadow: inset 0 1px #ffffff42, 0 0 10px color-mix(in srgb, var(--chart-tone), transparent 82%);
}
.tech-bar > i > b,
.dash-contribution > i > b,
.individual-report-metrics i {
  --chart-tone: var(--contribution-tone, var(--metric-color, var(--accent, #789aff)));
  background-image: linear-gradient(90deg,
    color-mix(in srgb, var(--chart-tone), transparent 78%),
    var(--chart-tone) 76%,
    color-mix(in srgb, var(--chart-tone), white 62%)) !important;
  box-shadow: inset 0 1px #ffffff30, 0 0 9px color-mix(in srgb, var(--chart-tone), transparent 82%);
}
.tech-ring {
  background: conic-gradient(from 215deg,
    color-mix(in srgb, var(--accent), white 35%),
    var(--accent) calc(var(--angle) * .58),
    color-mix(in srgb, var(--accent), white 20%) var(--angle),
    #1a2942 var(--angle));
  box-shadow: 0 0 19px color-mix(in srgb, var(--accent), transparent 72%);
}
.tech-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 215deg, transparent 0 5deg, #071321a0 5deg 6deg);
  mask-image: radial-gradient(circle closest-side, transparent calc(100% - 6px), #000 calc(100% - 5.5px));
  pointer-events: none;
}
.tech-ring > div,
.eh-findings-donut > div,
.chord-hub {
  box-shadow: inset 0 0 18px #060d1b, inset 0 0 0 1px #d9e8ff24;
}
.eh-findings-donut,
.chord-disk {
  box-shadow: inset 0 0 0 1px #ffffff36, 0 0 20px #789aff26;
}
.eh-findings-donut {
  position: relative;
}
.eh-findings-donut::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: repeating-radial-gradient(circle closest-side, transparent 0 6px, #06102028 6px 7px);
  mask-image: radial-gradient(circle closest-side, transparent 74%, #000 75%);
}

.report-composer > .tech-document {
  height: auto;
  min-height: 160px;
  padding-bottom: 14px;
  overflow-wrap: anywhere;
}
.report-composer .doc-chart > b {
  min-width: 0;
}

.eh-findings-donut.eh-radial-chart {
  padding: 0;
  background: none;
  box-shadow: none;
}
.eh-radial-chart::after { content: none; }
.eh-severity-rose {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px #789aff32);
}
.eh-findings-donut.eh-radial-chart > div {
  position: absolute;
  inset: 19%;
  width: auto;
  height: auto;
}

.tech-ring.scm-risk-dots {
  background: none;
  box-shadow: none;
  padding: 0;
}
.scm-risk-dots::before, .scm-risk-dots::after { content: none; }
.scm-risk-dots > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.scm-risk-dots .scm-risk-track { opacity: .18; }
.scm-risk-dots .scm-risk-progress {
  mask-image: conic-gradient(#000 var(--angle), transparent var(--angle));
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--accent), transparent 44%));
}
.scm-risk-outer { fill: var(--accent); }
.scm-risk-inner { fill: #c69aff; }
.tech-ring.scm-risk-dots > div {
  position: absolute;
  inset: 21%;
  height: auto;
  background: radial-gradient(circle, #112139, #081321);
}
.scm-score-strip .tech-ring.scm-risk-dots {
  width: clamp(132px, 16vw, 172px);
  height: auto;
  aspect-ratio: 1;
}
.tech-visual .scm-risk-dots strong {
  font-size: clamp(30px, 3vw, 42px) !important;
  letter-spacing: 0;
}

/* Faint guides and concentric ticks from the dashboard reference. */
.tech-chart, .dash-chart-wrap {
  background-image: linear-gradient(90deg, #b6a8ec14 1px, transparent 1px);
  background-size: 12.5% 100%;
}
.tech-ring:not(.scm-risk-dots)::before {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px dotted color-mix(in srgb, var(--accent), transparent 38%);
  border-radius: 50%;
  pointer-events: none;
}
.eh-chart-panel .cia-shape {
  filter: drop-shadow(0 0 7px #9d8dff62);
}

.tech-visual[data-tech-index="4"] .tech-tabs > button[data-action="severity"][data-value="0"] {
  --tech-filter-tone: var(--xyber-green);
}
.tech-visual[data-tech-index="4"] .tech-tabs > button[data-action="severity"][data-value="1"] {
  --tech-filter-tone: #ff7a99;
}
.tech-visual[data-tech-index="4"] .tech-tabs > button[data-action="severity"][data-value="2"] {
  --tech-filter-tone: #ffc270;
}
.tech-visual[data-tech-index="4"] .tech-tabs > button[data-action="severity"][data-value="3"] {
  --tech-filter-tone: var(--tech-blue);
}

.tech-visual[data-tech-index="8"] .tech-tabs > button[data-action="report"][data-value="0"] {
  --tech-filter-tone: var(--tech-purple);
}
.tech-visual[data-tech-index="8"] .tech-tabs > button[data-action="report"][data-value="1"] {
  --tech-filter-tone: #ffd66b;
}
.tech-visual[data-tech-index="8"] .tech-tabs > button[data-action="report"][data-value="2"] {
  --tech-filter-tone: var(--xyber-green);
}

.tech-visual[data-tech-index="8"] .tech-tabs > button[data-action="report"] {
  border-width: 1.1px;
}

.tech-visual[data-tech-index="8"] .tech-tabs > button[data-action="report"],
.tech-visual[data-tech-index="4"] .tech-tabs > button[data-action="severity"] {
  border-color: color-mix(in srgb, var(--tech-filter-tone) 53%, transparent);
  background: color-mix(in srgb, var(--tech-filter-tone) 13%, #0b1528);
  color: color-mix(in srgb, var(--tech-filter-tone) 48%, #edf4ff);
}

.tech-visual[data-tech-index="8"] .tech-tabs > button[data-action="report"]:is(:hover, [aria-pressed="true"]),
.tech-visual[data-tech-index="4"] .tech-tabs > button[data-action="severity"]:is(:hover, [aria-pressed="true"]) {
  border-color: var(--tech-filter-tone);
  background: color-mix(in srgb, var(--tech-filter-tone) 27%, #0b1528);
  box-shadow: 0 0 10px color-mix(in srgb, var(--tech-filter-tone) 22%, transparent);
}
