/* From prototype/preparar report-metrics, report-card and lead-record. */
.ls-root .ls-res-root {
  color: #222822;
}
.ls-root .ls-res-intro h1 {
  font-size: clamp(35px, 4.5vw, 62px);
  line-height: 1.06;
  letter-spacing: -2.4px;
  margin: 13px 0 20px;
}
.ls-root .ls-res-intro > p:last-child {
  color: #6e7e5b;
  max-width: 590px;
}
.ls-root .ls-res-eyebrow {
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 750;
  color: #63794b;
}
.ls-root .ls-res-source {
  padding: 18px;
  background: #e9f0de;
  border: 1px solid #d6e2c5;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  border-radius: 12px;
  margin: 25px 0;
}
.ls-root .ls-res-source strong {
  font-size: 14px;
  margin-right: auto;
  overflow-wrap: anywhere;
  min-width: 0;
}
.ls-root .ls-res-source small {
  width: 100%;
  font-size: 11px;
  color: #64784f;
}
.ls-root .ls-res-button {
  display: inline-block;
  background: white;
  color: #263322;
  border: 1px solid #c8d4bc;
  border-radius: 9px;
  padding: 11px 15px;
  min-height: 42px;
  font-size: 12px;
  cursor: pointer;
}
.ls-root .ls-res-button:hover {
  border-color: #74974e;
  background: #f6faef;
}
.ls-root .ls-res-button:disabled {
  opacity: 0.55;
  cursor: default;
}
.ls-root .ls-res-root :is(button, a, summary):focus-visible {
  outline: 3px solid #799d46;
  outline-offset: 3px;
}
.ls-root .ls-res-notice {
  font-size: 12px;
  min-height: 18px;
  color: #546540;
}
.ls-root .ls-res-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 25px 0;
}
.ls-root .ls-res-metrics > div {
  padding: 23px;
  border-radius: 13px;
  background: white;
  border: 1px solid #dce4d1;
}
.ls-root .ls-res-metrics strong {
  display: block;
  font-size: 39px;
  letter-spacing: -1.5px;
  color: #415a2e;
}
.ls-root .ls-res-metrics span {
  display: block;
  font-size: 12px;
  color: #5d7148;
}
.ls-root .ls-res-metrics small {
  display: block;
  font-size: 10px;
  color: #6a7a58;
  margin-top: 7px;
}
.ls-root .ls-res-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: start;
}
.ls-root .ls-res-columns > div {
  min-width: 0;
}
.ls-root .ls-res-card {
  padding: 24px;
  border: 1px solid #dce4d1;
  background: white;
  border-radius: 14px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.ls-root .ls-res-card h2 {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.7px;
  margin: 4px 0 16px;
}
.ls-root .ls-res-card p {
  font-size: 12px;
  color: #61744d;
}
.ls-root .ls-res-card > button {
  font-size: 11px;
  margin-top: 22px;
}
.ls-root .ls-res-activity {
  padding: 14px 0;
  border-bottom: 1px solid #e6ecd9;
}
.ls-root .ls-res-activity-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}
.ls-root .ls-res-activity h3 {
  font-size: 16px;
  margin: 0;
  line-height: 1.25;
}
.ls-root .ls-res-state {
  font-size: 10px;
  color: #62784d;
  text-align: right;
}
.ls-root .ls-res-bar {
  margin: 14px 0;
}
.ls-root .ls-res-bar > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
}
.ls-root .ls-res-bar progress {
  width: 100%;
  height: 8px;
  accent-color: #7c9e54;
  margin-top: 12px;
}
.ls-root .ls-res-lead {
  border: 1px solid #e2e9d8;
  border-radius: 9px;
  padding: 14px;
  margin: 12px 0;
}
.ls-root .ls-res-lead strong {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.ls-root .ls-res-lead span {
  display: block;
  font-size: 10px;
  color: #587538;
  margin: 8px 0;
}
.ls-root .ls-res-lead small {
  display: block;
  font-size: 10px;
  color: #667b51;
  overflow-wrap: anywhere;
}
.ls-root .ls-res-consent {
  padding-bottom: 12px;
  border-bottom: 1px solid #e6ecd9;
}
.ls-root .ls-res-root summary {
  font-size: 12px;
  color: #526b38;
  cursor: pointer;
  padding: 7px 0;
}
.ls-root .ls-res-methodology {
  margin-top: 20px;
}
.ls-root .ls-res-method-note {
  color: #64784f;
  font-size: 11px;
  margin: 24px 0;
}
.ls-root .ls-res-card .ls-res-fine {
  font-size: 10px;
}
.ls-root .ls-res-empty {
  padding: 16px 0;
  color: #64784f;
  font-size: 12px;
}
.ls-root .ls-res-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 25px;
}
.ls-root .ls-res-choice {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 12px;
  padding: 24px;
  border: 1px solid #dce4d1;
  background: white;
  border-radius: 14px;
  min-width: 0;
}
.ls-root .ls-res-choice h3 {
  font-size: 24px;
  overflow-wrap: anywhere;
}
.ls-root .ls-res-choice small {
  color: #64784f;
  font-size: 10px;
}
@media (max-width: 1100px) {
  .ls-root .ls-res-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .ls-root .ls-res-selector,
  .ls-root .ls-res-columns {
    grid-template-columns: 1fr;
  }
  .ls-root .ls-res-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .ls-root .ls-res-metrics > div {
    padding: 17px;
  }
  .ls-root .ls-res-metrics strong {
    font-size: 31px;
  }
  .ls-root .ls-res-card {
    padding: 20px;
  }
  .ls-root .ls-res-source strong {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ls-root .ls-res-root * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.ls-root .ls-res-private {
  margin-top: 20px;
}
.ls-root .ls-res-comment {
  border-bottom: 1px solid #d6e2c5;
  margin: 16px 0;
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.ls-root .ls-res-comment p {
  white-space: pre-wrap;
}
.ls-root .ls-res-rating .kind-rating-average {
  font-size: 20px;
}

.ls-root .ls-report {
  max-width: 980px;
  margin: auto;
}
.ls-root .ls-report-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
  margin: 24px 0;
}
.ls-root .ls-report-tools label {
  display: grid;
  gap: 6px;
  font-size: 12px;
}
.ls-root .ls-report-tools select {
  max-width: 100%;
  min-height: 42px;
  padding: 10px;
  background: white;
  color: #202520;
  border: 1px solid #8a9982;
  border-radius: 8px;
}
.ls-root .ls-report-page {
  background: white;
  color: #202520;
  border: 1px solid #d6ddcf;
  border-radius: 16px;
  padding: clamp(20px, 4vw, 40px);
  margin: 22px 0;
  overflow-wrap: anywhere;
  min-width: 0;
}
.ls-root .ls-report-page h1 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.12;
}
.ls-root .ls-report-page :is(p, small, span, td, th) {
  color: #293529;
}
.ls-root .ls-report-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.ls-root .ls-report-summary div {
  display: grid;
  gap: 5px;
}
.ls-root .ls-report-summary strong {
  font-size: 38px;
}
.ls-root .ls-report-kind :is(button, a, .ls-res-methodology) {
  display: none;
}
.ls-root .ls-report-kind .ls-res-card {
  border: 0;
  padding: 0;
}
.ls-root .ls-report-page table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  font-size: 12px;
}
.ls-root .ls-report-page :is(th, td) {
  text-align: left;
  border-bottom: 1px solid #b8c1b2;
  padding: 9px 5px;
  overflow-wrap: anywhere;
}
.ls-root .ls-report-note {
  font-size: 12px;
  line-height: 1.5;
}
@page lanza-report {
  size: A4 portrait;
  margin: 14mm;
}
@media print {
  body:has(.ls-report),
  body:has(.ls-report) #app,
  body:has(.ls-report) .ls-root,
  body:has(.ls-report) .ls-main {
    background: white !important;
    color: black !important;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    display: block;
  }
  body:has(.ls-report)
    :is(
      .topbar,
      .mode-note,
      #notice,
      .ls-header,
      .ls-footer,
      .ls-experience-flow,
      .ls-nav
    ),
  body:has(.ls-report) #app > footer {
    display: none !important;
  }
  .ls-root .ls-report {
    page: lanza-report;
    max-width: none;
  }
  .ls-root .ls-report-tools,
  .ls-root .ls-report-notice {
    display: none !important;
  }
  .ls-root .ls-report-page {
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    break-before: page;
  }
  .ls-root .ls-report-page:first-child {
    break-before: auto;
  }
  .ls-root .ls-report-page :is(h1, h2, h3, h4, th) {
    break-after: avoid;
  }
  .ls-root .ls-report-page :is(article, tr, .ls-res-bar, .ls-res-comment) {
    break-inside: avoid;
  }
  .ls-root .ls-report-page p {
    orphans: 3;
    widows: 3;
  }
  .ls-root .ls-report-page :is(p, small, span, td, th) {
    color: black !important;
  }
  .ls-root .ls-report-page progress {
    print-color-adjust: exact;
  }
}
@media print {
  .ls-root .ls-report,
  .ls-root .ls-report-pages {
    background: white !important;
    min-height: 0 !important;
    height: auto;
  }
  .ls-root .ls-report-page .ls-res-activity {
    break-inside: auto;
  }
  .ls-root .ls-report-page .ls-res-activity-heading {
    break-inside: avoid;
    break-after: avoid;
  }
  .ls-root .ls-report-type {
    break-after: avoid;
  }
}
@media print {
  html:has(.ls-report) {
    background: white !important;
  }
}

/* 032: history remains within the existing Results surface. */
.ls-root .ls-res-tabs {
  display: flex;
  gap: 8px;
  margin: 25px 0;
  border-bottom: 1px solid #c8d4bc;
}
.ls-root .ls-res-tabs button {
  padding: 14px 20px;
  background: transparent;
  cursor: pointer;
  border: 0;
  font: inherit;
  color: #415a2e;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.ls-root .ls-res-tabs button[aria-current="page"] {
  border-color: #415a2e;
  font-weight: 750;
}
.ls-root .ls-res-source label {
  display: grid;
  gap: 8px;
  flex: 1 1 240px;
  min-width: 0;
}
.ls-root .ls-res-source select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c8d4bc;
  border-radius: 8px;
  background: white;
  color: #263322;
  padding: 10px;
}
.ls-root .ls-res-root :is(select, [tabindex]):focus-visible {
  outline: 3px solid #799d46;
  outline-offset: 3px;
}
.ls-root .ls-history-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.ls-root .ls-history-chart {
  margin: 0;
}
.ls-root .ls-history-chart svg {
  display: block;
  width: 100%;
  height: auto;
}
.ls-root .ls-history-chart text {
  font: 12px sans-serif;
  fill: #415a2e;
}
.ls-root .ls-history-axis {
  stroke: #91a47b;
}
.ls-root .ls-history-dot {
  fill: #415a2e;
  stroke: white;
  stroke-width: 2;
}
.ls-root .ls-history-chart figcaption {
  font-size: 12px;
  color: #546540;
}
.ls-root .ls-history-table {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid #dce4d1;
  border-radius: 12px;
  background: white;
}
.ls-root .ls-history-table table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.ls-root .ls-history-table caption {
  text-align: left;
  padding: 18px;
  color: #546540;
}
.ls-root .ls-history-table :is(th, td) {
  padding: 15px;
  border-top: 1px solid #dce4d1;
}
.ls-root .ls-history-table th[scope="row"] {
  max-width: 260px;
  overflow-wrap: anywhere;
}
.ls-root .ls-history-table thead {
  background: #e9f0de;
}
@media (max-width: 600px) {
  .ls-root .ls-res-tabs button {
    padding: 14px;
  }
  .ls-root .ls-history-actions .ls-res-button {
    width: 100%;
  }
  .ls-root .ls-history-chart text {
    font-size: 26px;
  }
  .ls-root .ls-history-chart {
    margin-inline: -10px;
  }
}
