.q41-result-pattern,
.q41-result-balance,
.q41-result-contexts {
  --q41-insight-blue: #0b3ee3;
  --q41-insight-navy: #172554;
  --q41-insight-border: #dfe4ed;
  --q41-insight-soft: #f8f9fb;
}

.q41-result-pattern > header > p,
.q41-result-balance > header > p,
.q41-result-contexts > header > p {
  max-width: 680px;
  color: #667085;
  font-size: 14px;
  line-height: 1.55;
}

.q41-result-pattern-visual {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--q41-insight-border);
  border-radius: 12px;
  background: var(--q41-insight-soft);
}

.q41-result-pattern-visual svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 230px;
  overflow: visible;
}

.q41-result-pattern-axis {
  stroke: #c8d0dc;
  stroke-width: 3;
  stroke-linecap: round;
}

.q41-result-pattern-mid {
  stroke: #8f9bad;
  stroke-width: 2;
  stroke-linecap: round;
}

.q41-result-pattern-line {
  fill: none;
  stroke: var(--q41-insight-blue);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.q41-result-pattern-dot {
  fill: #fff;
  stroke: var(--q41-insight-navy);
  stroke-width: 5;
}

.q41-result-pattern-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.q41-result-pattern-legend div {
  min-width: 0;
}

.q41-result-pattern-legend strong,
.q41-result-pattern-legend span {
  display: block;
}

.q41-result-pattern-legend strong {
  color: #273346;
  font-size: 13px;
  line-height: 1.35;
}

.q41-result-pattern-legend span {
  margin-top: 3px;
  color: #697386;
  font-size: 11px;
  line-height: 1.4;
}

.q41-result-balance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.q41-result-balance-grid article {
  position: relative;
  min-width: 0;
  padding: 22px 22px 20px;
  border: 1px solid var(--q41-insight-border);
  border-radius: 12px;
  background: #fff;
}

.q41-result-balance-grid article:before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 12px 12px 0 0;
  background: var(--q41-insight-blue);
  content: '';
}

.q41-result-balance-overuse:before {
  background: #9b5c2d !important;
}

.q41-v2026-result .q41-result-balance-grid h3,
.q41-v2026-result .q41-result-contexts-grid h3 {
  margin: 0 0 13px !important;
  font-size: 17px !important;
  line-height: 1.35 !important;
}

.q41-result-balance-grid ul,
.q41-result-contexts-grid ul {
  margin: 0;
  padding-left: 21px;
}

.q41-result-balance-grid li,
.q41-result-contexts-grid li {
  margin: 0 0 8px;
  color: #4f5868;
  font-size: 15px;
  line-height: 1.5;
}

.q41-result-contexts-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.q41-result-contexts-grid:before {
  position: absolute;
  top: 11px;
  right: 16.66%;
  left: 16.66%;
  height: 2px;
  background: #cbd4df;
  content: '';
}

.q41-result-contexts-grid article {
  position: relative;
  min-width: 0;
  padding: 35px 18px 19px;
  border: 1px solid var(--q41-insight-border);
  border-radius: 12px;
  background: var(--q41-insight-soft);
}

.q41-result-context-node {
  position: absolute;
  z-index: 2;
  top: -21px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -11px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--q41-insight-blue);
  box-shadow: 0 0 0 2px #aebbd0;
}

.q41-result-contexts-grid article:last-child .q41-result-context-node {
  background: #9b5c2d;
}

.q41-result-contexts-grid p {
  color: #4f5868;
  font-size: 14px;
  line-height: 1.58;
}

@media (max-width: 700px) {
  .q41-result-pattern-visual {
    margin-top: 18px;
    padding: 15px;
  }

  .q41-result-pattern-visual svg {
    max-height: 190px;
  }

  .q41-result-pattern-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 16px;
  }

  .q41-result-balance-grid {
    grid-template-columns: 1fr;
  }

  .q41-result-balance-grid article {
    padding: 20px 18px 17px;
  }

  .q41-result-contexts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
    padding-left: 20px;
  }

  .q41-result-contexts-grid:before {
    top: 18px;
    bottom: 18px;
    left: 9px;
    width: 2px;
    height: auto;
  }

  .q41-result-contexts-grid article {
    padding: 19px 17px;
  }

  .q41-result-context-node {
    top: 23px;
    left: -21px;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .q41-result-pattern-line,
  .q41-result-pattern-dot {
    transition: none;
  }
}
