.chart-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 300px;
  min-height: 250px;
  display: none;
}
canvas.surveyChart {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
}

.chart-wrapper .luai-chart-form-title {
  position: absolute;
  color: #090F52;
  font-size: 17px;
  font-weight: 600;
  left: 20px;
  top: 18px;
  font-family: 'Inter';
}

.bb-dark-theme .chart-wrapper .luai-chart-form-title {
  color: #ffffff;
}
.share-this-result-btn {
  margin-top: 20px;
  width: 100%;
}

@media (max-width: 768px) {
  .chart-wrapper .luai-chart-form-title {
    font-size: 14px;
  }
}
/* Exact-series report, shared completed-task surface. */
.eff-series-report { max-width: 760px; margin: 0 auto; padding: 24px; }
.eff-series-report svg { width: 100%; min-height: 175px; overflow: visible; }
.eff-series-report text { fill: currentColor; font-size: 18px; }
.eff-series-track { stroke: #b0c4c4; stroke-width: 4; }
.eff-series-you { fill: #176d72; stroke: currentColor; stroke-width: 2; }
.eff-series-average { fill: transparent; stroke: currentColor; stroke-width: 3; }
.eff-series-metric { font-size: clamp(2.5rem, 8vw, 5rem); line-height: 1.2; }
/* Report content scrolls independently of its canonical Continue action. */
.eff-report-frame {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  block-size: var(--eff-report-height, calc(100dvh - 12rem));
  max-block-size: calc(100dvh - 2rem);
  min-block-size: 0;
}
.eff-report-body {
  min-block-size: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
}
.eff-report-footer {
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  border-block-start: 1px solid #b0c4c4;
}
.eff-report-footer .eff-report-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  min-block-size: 48px;
  margin: 0;
  white-space: normal;
  text-align: center;
}

.eff-age-difference { font-size: clamp(2rem, 7vw, 4rem); font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; margin-block: 1rem; }
.eff-age-details { border-top: 1px solid currentColor; margin-top: 2rem; padding-top: 1rem; }
.eff-age-details > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-block: 1rem; }
.eff-age-details dd { margin: 0; font-weight: 600; }
.eff-age-calculated { font-size: .875rem; overflow-wrap: anywhere; }
/* EFF-6105: recorded baseline sex, consistent chart and legend colors. */
.eff-sex-report { max-width: 760px; margin: 0 auto; padding: 24px; }
.eff-sex-donut { display: block; width: min(100%, 280px); margin: 24px auto; }
.eff-sex-donut circle { fill: none; stroke-width: 8; stroke-linecap: butt; transform: rotate(-90deg); transform-origin: 50% 50%; }
.eff-sex-male { --eff-sex-color: #3fc6cd; }
.eff-sex-female { --eff-sex-color: #638b9a; }
.eff-sex-donut circle { stroke: var(--eff-sex-color); }
.eff-sex-legend { display: flex; justify-content: space-evenly; gap: 24px; flex-wrap: wrap; }
.eff-sex-category { min-width: 110px; }
.eff-sex-category dt::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--eff-sex-color); margin-right: 8px; }
.eff-sex-category dd { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.2; margin: 8px 0 0; font-weight: 700; }
/* EFF-5723: discrete activity results, including in shared images. */
.eff-result-snapshots { padding: 20px; overflow-x: auto; }
.eff-result-snapshot { margin-bottom: 20px; }
.eff-result-snapshot table { width: 100%; border-collapse: collapse; }
.eff-result-snapshot th, .eff-result-snapshot td { padding: 10px; text-align: left; vertical-align: top; }
.eff-result-snapshot h3 { overflow-wrap: anywhere; }
