:root {
  --rr-rco-green: #176A4F;
  --rr-rco-green-dark: #0F3F32;
  --rr-rco-green-soft: #EEF7F3;
  --rr-rco-bg: #FFFFFF;
  --rr-rco-bg-alt: #F7FAF8;
  --rr-rco-text: #1F2933;
  --rr-rco-muted: #5B6670;
  --rr-rco-border: #DDE7E2;
  --rr-rco-warning: #FFF7E6;
  --rr-rco-radius: 22px;
  --rr-rco-shadow: 0 20px 50px rgba(15, 63, 50, 0.08);
}

.rr-rco-tool {
  max-width: 1040px;
  margin: 0 auto;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--rr-rco-text);
}

.rr-rco-shell {
  background: var(--rr-rco-bg);
  border: 1px solid var(--rr-rco-border);
  border-radius: var(--rr-rco-radius);
  box-shadow: var(--rr-rco-shadow);
  padding: clamp(22px, 4vw, 46px);
}

.rr-rco-eyebrow {
  color: var(--rr-rco-green);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

.rr-rco-title {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.08;
  margin: 0 0 14px;
  color: var(--rr-rco-green-dark);
}

.rr-rco-copy {
  color: var(--rr-rco-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 760px;
}

.rr-rco-benefits {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.rr-rco-benefits li::before {
  content: "✓";
  color: var(--rr-rco-green);
  font-weight: 800;
  margin-right: 8px;
}

.rr-rco-progress {
  margin-bottom: 28px;
}

.rr-rco-progress-label {
  font-size: 14px;
  color: var(--rr-rco-muted);
  margin-bottom: 8px;
}

.rr-rco-progress-bar {
  height: 8px;
  background: var(--rr-rco-green-soft);
  border-radius: 999px;
  overflow: hidden;
}

.rr-rco-progress-fill {
  height: 100%;
  width: 0;
  background: var(--rr-rco-green);
  border-radius: 999px;
  transition: width .25s ease;
}

.rr-rco-question {
  margin: 24px 0;
}

.rr-rco-question label,
.rr-rco-question-title {
  display: block;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 750;
  margin-bottom: 8px;
  color: var(--rr-rco-green-dark);
}

.rr-rco-help {
  color: var(--rr-rco-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.rr-rco-input,
.rr-rco-textarea {
  width: 100%;
  border: 1px solid var(--rr-rco-border);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--rr-rco-text);
  background: #fff;
}

.rr-rco-input:focus,
.rr-rco-textarea:focus {
  outline: 2px solid rgba(23, 106, 79, 0.18);
  border-color: var(--rr-rco-green);
}

.rr-rco-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.rr-rco-option {
  border: 1px solid var(--rr-rco-border);
  border-radius: 16px;
  padding: 14px 15px;
  background: #fff;
  cursor: pointer;
  transition: all .15s ease;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rr-rco-option:hover {
  border-color: rgba(23, 106, 79, .45);
  background: var(--rr-rco-green-soft);
}

.rr-rco-option.is-selected {
  border-color: var(--rr-rco-green);
  background: var(--rr-rco-green-soft);
  box-shadow: inset 0 0 0 1px var(--rr-rco-green);
}

.rr-rco-option-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--rr-rco-border);
  flex: 0 0 auto;
}

.rr-rco-option.is-selected .rr-rco-option-check {
  border-color: var(--rr-rco-green);
  background: var(--rr-rco-green);
}

.rr-rco-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.rr-rco-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 13px 20px;
  font-weight: 750;
  font-size: 15px;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rr-rco-btn-primary {
  background: var(--rr-rco-green);
  color: #fff;
}

.rr-rco-btn-primary:hover {
  background: var(--rr-rco-green-dark);
  color: #fff;
}

.rr-rco-btn-secondary {
  background: #fff;
  color: var(--rr-rco-green-dark);
  border-color: var(--rr-rco-border);
}

.rr-rco-btn-secondary:hover {
  border-color: var(--rr-rco-green);
  color: var(--rr-rco-green);
}

.rr-rco-alert {
  background: var(--rr-rco-warning);
  border-left: 4px solid #D69B2D;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 18px 0;
  color: #5E4A1F;
}

.rr-rco-preview,
.rr-rco-result-card,
.rr-rco-limit {
  background: var(--rr-rco-bg-alt);
  border: 1px solid var(--rr-rco-border);
  border-radius: 20px;
  padding: 22px;
  margin: 20px 0;
}

.rr-rco-result-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--rr-rco-border);
}

.rr-rco-result-section:last-child {
  border-bottom: 0;
}

.rr-rco-dimensions {
  display: grid;
  gap: 14px;
}

.rr-rco-dimension-row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 120px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--rr-rco-border);
  border-radius: 14px;
}

.rr-rco-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--rr-rco-green-soft);
  color: var(--rr-rco-green-dark);
  font-size: 13px;
  font-weight: 750;
}

.rr-rco-priority-list {
  display: grid;
  gap: 12px;
}

.rr-rco-priority-item {
  background: #fff;
  border: 1px solid var(--rr-rco-border);
  border-radius: 16px;
  padding: 16px;
}

.rr-rco-priority-item strong {
  color: var(--rr-rco-green-dark);
}

@media (max-width: 760px) {
  .rr-rco-shell {
    padding: 22px 16px;
    border-radius: 18px;
  }

  .rr-rco-options {
    grid-template-columns: 1fr;
  }

  .rr-rco-actions {
    flex-direction: column-reverse;
  }

  .rr-rco-btn {
    width: 100%;
  }

  .rr-rco-dimension-row {
    grid-template-columns: 1fr;
  }
}

/* v0.2.0 questionnaire additions */
.rr-rco-step-head {
  margin: 18px 0 28px;
}

.rr-rco-step-head h2 {
  margin: 0 0 8px;
  color: var(--rr-rco-green-dark);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.12;
}

.rr-rco-step-head p {
  color: var(--rr-rco-muted);
  margin: 0;
  max-width: 760px;
  line-height: 1.55;
}

.rr-rco-fields {
  display: grid;
  gap: 26px;
}

.rr-rco-field-label {
  display: block;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 780;
  margin-bottom: 8px;
  color: var(--rr-rco-green-dark);
}


.rr-rco-field-invalid .rr-rco-input,
.rr-rco-field-invalid .rr-rco-textarea {
  border-color: #b42318;
}

.rr-rco-error {
  margin-top: 8px;
  color: #b42318;
  font-size: 14px;
  font-weight: 650;
}

.rr-rco-option {
  text-align: left;
  color: var(--rr-rco-text);
}

.rr-rco-option span:last-child {
  flex: 1 1 auto;
}

.rr-rco-option.is-disabled {
  opacity: .45;
  cursor: not-allowed;
}

.rr-rco-option.is-selected .rr-rco-option-check {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}


/* v0.2.2 microcopy and helper tooltip */
.rr-rco-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rr-rco-field-label-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
}

.rr-rco-required-badge {
  color: var(--rr-rco-muted);
  background: var(--rr-rco-bg-alt);
  border: 1px solid var(--rr-rco-border);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.rr-rco-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--rr-rco-border);
  color: var(--rr-rco-green);
  background: var(--rr-rco-green-soft);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.rr-rco-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: min(320px, 78vw);
  padding: 11px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--rr-rco-border);
  box-shadow: 0 12px 32px rgba(15, 63, 50, .14);
  color: var(--rr-rco-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 30;
}

.rr-rco-info:hover .rr-rco-tooltip,
.rr-rco-info:focus .rr-rco-tooltip {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 760px) {
  .rr-rco-field-label {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* v0.3.0 result content refinements */
.rr-rco-message-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}
.rr-rco-message-pair p {
  margin: 0;
  padding: 14px;
  border: 1px solid #DDE7E2;
  border-radius: 14px;
  background: #F7FAF8;
}
.rr-rco-criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.rr-rco-criteria-grid > div {
  border: 1px solid #DDE7E2;
  border-radius: 14px;
  padding: 14px;
  background: #FFFFFF;
}
.rr-rco-result-card h5,
.rr-rco-result-section h5 {
  margin: 16px 0 8px;
  font-size: 0.95rem;
  color: #0F3F32;
}
@media (max-width: 760px) {
  .rr-rco-message-pair,
  .rr-rco-criteria-grid {
    grid-template-columns: 1fr;
  }
}






@media (max-width: 720px) {
}


/* Test mode: always-visible testing panel */
@media (max-width: 720px) {
}


.rr-rco-field {
  scroll-margin-top: calc(var(--rr-rco-scroll-offset, 260px) + 24px);
}

.rr-rco-field-label {
  margin-bottom: 10px;
}

.rr-rco-help {
  margin-bottom: 14px;
  line-height: 1.5;
}

.rr-rco-options,
.rr-rco-options-radio,
.rr-rco-options-multi {
  gap: 14px;
  margin-top: 14px;
}

.rr-rco-option {
  min-height: 74px;
  padding: 18px 18px;
  border-radius: 18px;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 13px;
  line-height: 1.38;
}

.rr-rco-option-check {
  margin-top: 1px;
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}

.rr-rco-option-label,
.rr-rco-option span:last-child {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
}

.rr-rco-option.is-selected:not(.is-uncertain) {
  border-color: var(--rr-rco-green);
  background: var(--rr-rco-green-soft);
  box-shadow: inset 0 0 0 1px rgba(23, 106, 79, .95);
}

.rr-rco-option.is-uncertain.is-selected {
  border-color: #B8C2BD;
  background: #F4F6F5;
  box-shadow: inset 0 0 0 1px rgba(119, 130, 124, .32);
}

.rr-rco-option.is-uncertain.is-selected .rr-rco-option-check {
  border-color: #8A958F;
  background: #E8ECE9;
  color: transparent;
}

.rr-rco-option.is-uncertain.is-selected .rr-rco-option-check::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7A8580;
}

.rr-rco-option.is-uncertain:hover {
  border-color: #B8C2BD;
  background: #F7FAF8;
}

.rr-rco-actions {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(221, 231, 226, .9);
}

.rr-rco-step-head {
  margin: 18px 0 30px;
}

.rr-rco-step-head p {
  line-height: 1.6;
}

.rr-rco-required-badge {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .rr-rco-fields {
    gap: 30px;
  }

  .rr-rco-option {
    min-height: 66px;
    padding: 16px 16px;
    border-radius: 16px;
  }

  .rr-rco-actions {
    margin-top: 30px;
    padding-top: 18px;
  }
}


/* v0.4.2 hover/focus contrast fixes */
.rr-rco-tool button.rr-rco-option,
.rr-rco-tool button.rr-rco-option:hover,
.rr-rco-tool button.rr-rco-option:focus,
.rr-rco-tool button.rr-rco-option:active,
.rr-rco-tool button.rr-rco-option.is-selected,
.rr-rco-tool button.rr-rco-option.is-selected:hover,
.rr-rco-tool button.rr-rco-option.is-selected:focus {
  color: var(--rr-rco-text) !important;
  text-decoration: none !important;
}

.rr-rco-tool button.rr-rco-option:hover,
.rr-rco-tool button.rr-rco-option:focus-visible {
  border-color: rgba(23, 106, 79, .55);
  background: var(--rr-rco-green-soft);
  color: var(--rr-rco-text) !important;
}

.rr-rco-tool button.rr-rco-option.is-selected,
.rr-rco-tool button.rr-rco-option.is-selected:hover,
.rr-rco-tool button.rr-rco-option.is-selected:focus-visible {
  background: var(--rr-rco-green-soft);
  color: var(--rr-rco-text) !important;
}

.rr-rco-tool button.rr-rco-option .rr-rco-option-label,
.rr-rco-tool button.rr-rco-option:hover .rr-rco-option-label,
.rr-rco-tool button.rr-rco-option:focus-visible .rr-rco-option-label,
.rr-rco-tool button.rr-rco-option.is-selected .rr-rco-option-label {
  color: var(--rr-rco-text) !important;
}

.rr-rco-tool .rr-rco-btn,
.rr-rco-tool .rr-rco-btn:hover,
.rr-rco-tool .rr-rco-btn:focus,
.rr-rco-tool .rr-rco-btn:active,
.rr-rco-tool .rr-rco-btn:visited {
  text-decoration: none !important;
}

.rr-rco-tool .rr-rco-btn-primary,
.rr-rco-tool .rr-rco-btn-primary:visited {
  background: var(--rr-rco-green);
  border-color: var(--rr-rco-green);
  color: #FFFFFF !important;
}

.rr-rco-tool .rr-rco-btn-primary:hover,
.rr-rco-tool .rr-rco-btn-primary:focus-visible,
.rr-rco-tool .rr-rco-btn-primary:active {
  background: var(--rr-rco-green-dark);
  border-color: var(--rr-rco-green-dark);
  color: #FFFFFF !important;
}

.rr-rco-tool .rr-rco-btn-secondary,
.rr-rco-tool .rr-rco-btn-secondary:visited {
  background: #FFFFFF;
  border-color: var(--rr-rco-border);
  color: var(--rr-rco-green-dark) !important;
}

.rr-rco-tool .rr-rco-btn-secondary:hover,
.rr-rco-tool .rr-rco-btn-secondary:focus-visible,
.rr-rco-tool .rr-rco-btn-secondary:active {
  background: var(--rr-rco-green-soft);
  border-color: var(--rr-rco-green);
  color: var(--rr-rco-green-dark) !important;
}

.rr-rco-tool .rr-rco-btn[disabled],
.rr-rco-tool .rr-rco-btn.is-disabled,
.rr-rco-tool .rr-rco-btn[disabled]:hover,
.rr-rco-tool .rr-rco-btn.is-disabled:hover {
  opacity: .55;
  cursor: not-allowed;
}

.rr-rco-tool .rr-rco-btn-primary[disabled],
.rr-rco-tool .rr-rco-btn-primary.is-disabled,
.rr-rco-tool .rr-rco-btn-primary[disabled]:hover,
.rr-rco-tool .rr-rco-btn-primary.is-disabled:hover {
  background: var(--rr-rco-green) !important;
  border-color: var(--rr-rco-green) !important;
  color: #FFFFFF !important;
}

.rr-rco-tool .rr-rco-btn-secondary[disabled],
.rr-rco-tool .rr-rco-btn-secondary.is-disabled,
.rr-rco-tool .rr-rco-btn-secondary[disabled]:hover,
.rr-rco-tool .rr-rco-btn-secondary.is-disabled:hover {
  background: #FFFFFF !important;
  border-color: var(--rr-rco-border) !important;
  color: var(--rr-rco-green-dark) !important;
}


/* v0.4.3 result functional visuals */
.rr-rco-visual-section {
  position: relative;
}

.rr-rco-visual-head {
  margin-bottom: 16px;
}

.rr-rco-visual-head h3 {
  margin: 0 0 6px;
  color: var(--rr-rco-green-dark);
}

.rr-rco-visual-head p {
  margin: 0;
  color: var(--rr-rco-muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 760px;
}

.rr-rco-dimension-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rr-rco-dimension-card {
  background: #FFFFFF;
  border: 1px solid var(--rr-rco-border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(15, 63, 50, .045);
}

.rr-rco-dimension-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rr-rco-dimension-top strong {
  color: var(--rr-rco-green-dark);
  line-height: 1.25;
}

.rr-rco-level-badge,
.rr-rco-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--rr-rco-green-soft);
  color: var(--rr-rco-green-dark);
  border: 1px solid rgba(23, 106, 79, .16);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.1;
}

.rr-rco-dimension-track,
.rr-rco-portfolio-meter {
  height: 8px;
  border-radius: 999px;
  background: #EAF1EE;
  overflow: hidden;
}

.rr-rco-dimension-track span,
.rr-rco-portfolio-meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--rr-rco-green);
}

.rr-rco-level-risk-high .rr-rco-dimension-track span {
  background: #B36B16;
}

.rr-rco-level-risk-high .rr-rco-level-badge {
  background: #FFF7E6;
  border-color: rgba(179, 107, 22, .22);
  color: #7A4A10;
}

.rr-rco-level-low .rr-rco-dimension-track span,
.rr-rco-level-very-low .rr-rco-dimension-track span,
.rr-rco-level-medium-low .rr-rco-dimension-track span {
  background: #93A49B;
}

.rr-rco-dimension-card p {
  margin: 12px 0 0;
  color: var(--rr-rco-muted);
  font-size: 14px;
  line-height: 1.5;
}

.rr-rco-profile-visual-list,
.rr-rco-portfolio-bars,
.rr-rco-alert-grid {
  display: grid;
  gap: 12px;
}

.rr-rco-profile-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  align-items: flex-start;
  background: #FFFFFF;
  border: 1px solid var(--rr-rco-border);
  border-radius: 18px;
  padding: 15px;
}

.rr-rco-profile-index {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rr-rco-green-soft);
  color: var(--rr-rco-green-dark);
  font-weight: 820;
  font-size: 13px;
}

.rr-rco-profile-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rr-rco-profile-title-row strong {
  color: var(--rr-rco-green-dark);
  line-height: 1.3;
}

.rr-rco-profile-card p {
  margin: 8px 0 0;
  color: var(--rr-rco-muted);
  line-height: 1.5;
  font-size: 14px;
}

.rr-rco-status-priority {
  border-color: rgba(23, 106, 79, .32);
  box-shadow: inset 4px 0 0 var(--rr-rco-green);
}

.rr-rco-status-promising {
  border-color: rgba(23, 106, 79, .22);
  box-shadow: inset 4px 0 0 #5F8F7C;
}

.rr-rco-status-secondary,
.rr-rco-status-explore {
  box-shadow: inset 4px 0 0 #A9B8B0;
}

.rr-rco-status-not-priority {
  background: #FBFAF7;
  border-color: rgba(179, 107, 22, .25);
  box-shadow: inset 4px 0 0 #B36B16;
}

.rr-rco-status-not-priority .rr-rco-status-badge {
  background: #FFF7E6;
  border-color: rgba(179, 107, 22, .22);
  color: #7A4A10;
}

.rr-rco-portfolio-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, .8fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--rr-rco-border);
  border-radius: 18px;
  background: #FFFFFF;
}

.rr-rco-portfolio-label strong {
  display: block;
  color: var(--rr-rco-green-dark);
  line-height: 1.3;
}

.rr-rco-portfolio-label span {
  display: block;
  margin-top: 5px;
  color: var(--rr-rco-muted);
  font-size: 13px;
  line-height: 1.4;
}

.rr-rco-alert-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 15px;
  border-radius: 18px;
  background: #FFF7E6;
  border: 1px solid rgba(179, 107, 22, .22);
}

.rr-rco-alert-num,
.rr-rco-risk-dot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F0D6AE;
  color: #6E4210;
  font-weight: 820;
  font-size: 13px;
}

.rr-rco-alert-card strong {
  color: #5E3A0C;
}

.rr-rco-alert-card p {
  margin: 6px 0 0;
  color: #5E4A1F;
  line-height: 1.5;
  font-size: 14px;
}

.rr-rco-risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rr-rco-risk-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 18px;
  background: #FFFDF8;
  border: 1px solid rgba(179, 107, 22, .24);
}

.rr-rco-risk-card p {
  margin: 0;
  color: var(--rr-rco-text);
  line-height: 1.45;
  font-size: 14px;
}

.rr-rco-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rr-rco-matrix-item {
  min-height: 96px;
  padding: 15px;
  border: 1px solid var(--rr-rco-border);
  border-radius: 18px;
  background: #FFFFFF;
}

.rr-rco-matrix-item strong {
  display: block;
  color: var(--rr-rco-green-dark);
  line-height: 1.3;
  margin-bottom: 8px;
}

.rr-rco-matrix-item span {
  color: var(--rr-rco-muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .rr-rco-dimension-visuals,
  .rr-rco-risk-grid,
  .rr-rco-matrix-grid {
    grid-template-columns: 1fr;
  }

  .rr-rco-profile-title-row {
    flex-direction: column;
    gap: 8px;
  }

  .rr-rco-portfolio-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}


/* v0.4.4 semantic color system for result visuals */
:root {
  --rr-rco-stone-50: #F8FAF8;
  --rr-rco-stone-100: #F1F4F2;
  --rr-rco-stone-300: #DDE5E0;
  --rr-rco-stone-700: #59645F;

  --rr-rco-amber: #B87918;
  --rr-rco-amber-soft: #FFF7E8;
  --rr-rco-amber-border: #E7C77A;
  --rr-rco-amber-text: #6F4E12;

  --rr-rco-risk: #A24A3A;
  --rr-rco-risk-soft: #FFF1EE;
  --rr-rco-risk-border: #E2A197;
  --rr-rco-risk-text: #742F25;

  --rr-rco-bridge: #496873;
  --rr-rco-bridge-soft: #EEF4F5;
  --rr-rco-bridge-border: #AFC4CA;
  --rr-rco-bridge-text: #31515C;
}

/* Dimensions: color communicates diagnostic meaning, not only brand */
.rr-rco-dimension-card {
  border-color: var(--rr-rco-stone-300);
  background: #FFFFFF;
}

.rr-rco-dimension-track {
  background: var(--rr-rco-stone-100);
}

.rr-rco-level-high .rr-rco-dimension-track span,
.rr-rco-level-medium-high .rr-rco-dimension-track span {
  background: var(--rr-rco-green);
}

.rr-rco-level-high .rr-rco-level-badge,
.rr-rco-level-medium-high .rr-rco-level-badge {
  background: var(--rr-rco-green-soft);
  border-color: rgba(23, 106, 79, .18);
  color: var(--rr-rco-green-dark);
}

.rr-rco-level-medium .rr-rco-dimension-track span {
  background: #7E958B;
}

.rr-rco-level-medium .rr-rco-level-badge {
  background: var(--rr-rco-stone-100);
  border-color: var(--rr-rco-stone-300);
  color: var(--rr-rco-stone-700);
}

.rr-rco-level-medium-low .rr-rco-dimension-track span,
.rr-rco-level-low .rr-rco-dimension-track span,
.rr-rco-level-very-low .rr-rco-dimension-track span {
  background: var(--rr-rco-amber);
}

.rr-rco-level-medium-low .rr-rco-level-badge,
.rr-rco-level-low .rr-rco-level-badge,
.rr-rco-level-very-low .rr-rco-level-badge {
  background: var(--rr-rco-amber-soft);
  border-color: var(--rr-rco-amber-border);
  color: var(--rr-rco-amber-text);
}

.rr-rco-level-risk-high {
  border-color: var(--rr-rco-risk-border);
  background: var(--rr-rco-risk-soft);
}

.rr-rco-level-risk-high .rr-rco-dimension-track {
  background: #F4DAD5;
}

.rr-rco-level-risk-high .rr-rco-dimension-track span {
  background: var(--rr-rco-risk);
}

.rr-rco-level-risk-high .rr-rco-level-badge {
  background: #FFFFFF;
  border-color: var(--rr-rco-risk-border);
  color: var(--rr-rco-risk-text);
}

/* Profile priority: semantic states */
.rr-rco-profile-card {
  background: #FFFFFF;
  border-color: var(--rr-rco-stone-300);
}

.rr-rco-profile-index {
  background: var(--rr-rco-stone-100);
  color: var(--rr-rco-green-dark);
}

.rr-rco-status-priority {
  border-color: rgba(23, 106, 79, .28);
  background: #FFFFFF;
  box-shadow: inset 4px 0 0 var(--rr-rco-green);
}

.rr-rco-status-priority .rr-rco-profile-index,
.rr-rco-status-priority .rr-rco-status-badge {
  background: var(--rr-rco-green-soft);
  border-color: rgba(23, 106, 79, .18);
  color: var(--rr-rco-green-dark);
}

.rr-rco-status-validation,
.rr-rco-status-promising,
.rr-rco-status-future,
.rr-rco-status-explore,
.rr-rco-status-controlled {
  border-color: var(--rr-rco-amber-border);
  background: var(--rr-rco-amber-soft);
  box-shadow: inset 4px 0 0 var(--rr-rco-amber);
}

.rr-rco-status-validation .rr-rco-profile-index,
.rr-rco-status-promising .rr-rco-profile-index,
.rr-rco-status-future .rr-rco-profile-index,
.rr-rco-status-explore .rr-rco-profile-index,
.rr-rco-status-controlled .rr-rco-profile-index,
.rr-rco-status-validation .rr-rco-status-badge,
.rr-rco-status-promising .rr-rco-status-badge,
.rr-rco-status-future .rr-rco-status-badge,
.rr-rco-status-explore .rr-rco-status-badge,
.rr-rco-status-controlled .rr-rco-status-badge {
  background: #FFFFFF;
  border-color: var(--rr-rco-amber-border);
  color: var(--rr-rco-amber-text);
}

.rr-rco-status-bridge {
  border-color: var(--rr-rco-bridge-border);
  background: var(--rr-rco-bridge-soft);
  box-shadow: inset 4px 0 0 var(--rr-rco-bridge);
}

.rr-rco-status-bridge .rr-rco-profile-index,
.rr-rco-status-bridge .rr-rco-status-badge {
  background: #FFFFFF;
  border-color: var(--rr-rco-bridge-border);
  color: var(--rr-rco-bridge-text);
}

.rr-rco-status-not-priority {
  border-color: var(--rr-rco-risk-border);
  background: var(--rr-rco-risk-soft);
  box-shadow: inset 4px 0 0 var(--rr-rco-risk);
}

.rr-rco-status-not-priority .rr-rco-profile-index,
.rr-rco-status-not-priority .rr-rco-status-badge {
  background: #FFFFFF;
  border-color: var(--rr-rco-risk-border);
  color: var(--rr-rco-risk-text);
}

.rr-rco-status-not-evaluable,
.rr-rco-status-neutral {
  border-color: var(--rr-rco-stone-300);
  background: var(--rr-rco-stone-50);
  box-shadow: inset 4px 0 0 #AAB7B1;
}

.rr-rco-status-not-evaluable .rr-rco-profile-index,
.rr-rco-status-not-evaluable .rr-rco-status-badge,
.rr-rco-status-neutral .rr-rco-profile-index,
.rr-rco-status-neutral .rr-rco-status-badge {
  background: #FFFFFF;
  border-color: var(--rr-rco-stone-300);
  color: var(--rr-rco-stone-700);
}

/* Portfolio map: D9 reads as ordered opportunity, not generic green everywhere */
.rr-rco-portfolio-row {
  border-color: var(--rr-rco-stone-300);
}

.rr-rco-portfolio-meter {
  background: var(--rr-rco-stone-100);
}

.rr-rco-portfolio-row .rr-rco-portfolio-meter span {
  background: #7E958B;
}

.rr-rco-portfolio-very-high {
  border-color: rgba(23, 106, 79, .26);
  background: var(--rr-rco-green-soft);
}

.rr-rco-portfolio-very-high .rr-rco-portfolio-meter span {
  background: var(--rr-rco-green);
}

.rr-rco-portfolio-high .rr-rco-portfolio-meter span,
.rr-rco-portfolio-medium-high .rr-rco-portfolio-meter span {
  background: #4F876F;
}

.rr-rco-portfolio-medium .rr-rco-portfolio-meter span {
  background: #8DA79A;
}

.rr-rco-portfolio-low {
  background: var(--rr-rco-stone-50);
}

.rr-rco-portfolio-low .rr-rco-portfolio-meter span {
  background: #AAB7B1;
}

.rr-rco-portfolio-row .rr-rco-level-badge {
  background: #FFFFFF;
  border-color: var(--rr-rco-stone-300);
  color: var(--rr-rco-stone-700);
}

.rr-rco-portfolio-very-high .rr-rco-level-badge,
.rr-rco-portfolio-high .rr-rco-level-badge,
.rr-rco-portfolio-medium-high .rr-rco-level-badge {
  background: #FFFFFF;
  border-color: rgba(23, 106, 79, .22);
  color: var(--rr-rco-green-dark);
}

/* D6 strategic alerts: explicit risk color */
.rr-rco-warning-section .rr-rco-visual-head h3 {
  color: var(--rr-rco-risk-text);
}

.rr-rco-alert-card {
  background: var(--rr-rco-risk-soft);
  border-color: var(--rr-rco-risk-border);
}

.rr-rco-alert-num {
  background: #F5D0C8;
  color: var(--rr-rco-risk-text);
}

.rr-rco-alert-card strong {
  color: var(--rr-rco-risk-text);
}

.rr-rco-alert-card p {
  color: #6D4038;
}

/* D10/non-priority risk indicators */
.rr-rco-nonpriority-visual .rr-rco-visual-head h3 {
  color: var(--rr-rco-risk-text);
}

.rr-rco-risk-card {
  background: var(--rr-rco-risk-soft);
  border-color: var(--rr-rco-risk-border);
}

.rr-rco-risk-dot {
  background: #F5D0C8;
  color: var(--rr-rco-risk-text);
}

.rr-rco-risk-card p {
  color: #4A2D28;
}

/* General “do not do yet” block is a risk/warning block, not a brand-green block */
.rr-rco-alert {
  background: var(--rr-rco-risk-soft);
  border-left-color: var(--rr-rco-risk);
  color: var(--rr-rco-risk-text);
}

.rr-rco-alert h3 {
  color: var(--rr-rco-risk-text);
}

/* Matrix uses semantic state colors when active */
.rr-rco-matrix-item.rr-rco-status-priority {
  border-color: rgba(23, 106, 79, .28);
  background: var(--rr-rco-green-soft);
}

.rr-rco-matrix-item.rr-rco-status-validation,
.rr-rco-matrix-item.rr-rco-status-promising,
.rr-rco-matrix-item.rr-rco-status-future,
.rr-rco-matrix-item.rr-rco-status-explore,
.rr-rco-matrix-item.rr-rco-status-controlled {
  border-color: var(--rr-rco-amber-border);
  background: var(--rr-rco-amber-soft);
}

.rr-rco-matrix-item.rr-rco-status-bridge {
  border-color: var(--rr-rco-bridge-border);
  background: var(--rr-rco-bridge-soft);
}

.rr-rco-matrix-item.rr-rco-status-not-priority {
  border-color: var(--rr-rco-risk-border);
  background: var(--rr-rco-risk-soft);
}

.rr-rco-matrix-item.rr-rco-status-not-evaluable,
.rr-rco-matrix-item.rr-rco-status-neutral {
  background: var(--rr-rco-stone-50);
}

/* Keep semantic visuals restrained on mobile */
@media (max-width: 760px) {
  .rr-rco-profile-card,
  .rr-rco-alert-card,
  .rr-rco-risk-card {
    border-radius: 16px;
  }
}


/* v0.4.5 result visual semantics correction
   Color must explain diagnostic meaning: green = good/focus, amber = attention/filter,
   risk = true block/high risk/what-not-to-do. */
.rr-rco-result-section > h3,
.rr-rco-result-card h3,
.rr-rco-visual-head h3,
.rr-rco-warning-section .rr-rco-visual-head h3,
.rr-rco-nonpriority-visual .rr-rco-visual-head h3,
.rr-rco-alert h3 {
  color: var(--rr-rco-green-dark) !important;
}

/* Dimension bars: map strictly by qualitative level */
.rr-rco-level-high,
.rr-rco-level-medium-high,
.rr-rco-level-medium,
.rr-rco-level-medium-low,
.rr-rco-level-low,
.rr-rco-level-very-low,
.rr-rco-level-risk-high {
  background: #FFFFFF;
}

.rr-rco-level-high,
.rr-rco-level-medium-high {
  border-color: rgba(23, 106, 79, .24);
}

.rr-rco-level-high .rr-rco-dimension-track span,
.rr-rco-level-medium-high .rr-rco-dimension-track span {
  background: var(--rr-rco-green) !important;
}

.rr-rco-level-medium {
  border-color: var(--rr-rco-stone-300);
}

.rr-rco-level-medium .rr-rco-dimension-track span {
  background: #7E958B !important;
}

.rr-rco-level-medium-low,
.rr-rco-level-low,
.rr-rco-level-very-low {
  border-color: var(--rr-rco-amber-border);
  background: #FFFFFF;
}

.rr-rco-level-medium-low .rr-rco-dimension-track span,
.rr-rco-level-low .rr-rco-dimension-track span,
.rr-rco-level-very-low .rr-rco-dimension-track span {
  background: var(--rr-rco-amber) !important;
}

.rr-rco-level-risk-high {
  border-color: var(--rr-rco-risk-border);
  background: #FFFFFF;
}

.rr-rco-level-risk-high .rr-rco-dimension-track {
  background: #F4DAD5 !important;
}

.rr-rco-level-risk-high .rr-rco-dimension-track span {
  background: var(--rr-rco-risk) !important;
}

.rr-rco-level-risk-high .rr-rco-level-badge {
  background: var(--rr-rco-risk-soft);
  border-color: var(--rr-rco-risk-border);
  color: var(--rr-rco-risk-text);
}

/* Non-priority is a commercial-quality filter, not an error alarm. Keep it amber. */
.rr-rco-status-not-priority {
  border-color: var(--rr-rco-amber-border) !important;
  background: var(--rr-rco-amber-soft) !important;
  box-shadow: inset 4px 0 0 var(--rr-rco-amber) !important;
}

.rr-rco-status-not-priority .rr-rco-profile-index,
.rr-rco-status-not-priority .rr-rco-status-badge {
  background: #FFFFFF !important;
  border-color: var(--rr-rco-amber-border) !important;
  color: var(--rr-rco-amber-text) !important;
}

.rr-rco-nonpriority-visual .rr-rco-risk-card {
  background: var(--rr-rco-amber-soft) !important;
  border-color: var(--rr-rco-amber-border) !important;
}

.rr-rco-nonpriority-visual .rr-rco-risk-dot {
  background: #F6E0B8 !important;
  color: var(--rr-rco-amber-text) !important;
}

.rr-rco-nonpriority-visual .rr-rco-risk-card p {
  color: var(--rr-rco-text) !important;
}

/* True risk stays reserved for D6 and the explicit "do not do" block. */
.rr-rco-warning-section .rr-rco-alert-card {
  background: var(--rr-rco-risk-soft);
  border-color: var(--rr-rco-risk-border);
}

.rr-rco-warning-section .rr-rco-alert-num {
  background: #F5D0C8;
  color: var(--rr-rco-risk-text);
}

.rr-rco-warning-section .rr-rco-alert-card strong {
  color: var(--rr-rco-risk-text);
}

.rr-rco-alert {
  background: var(--rr-rco-risk-soft) !important;
  border-left-color: var(--rr-rco-risk) !important;
  color: var(--rr-rco-risk-text) !important;
}

.rr-rco-alert h3 {
  color: var(--rr-rco-green-dark) !important;
}

/* Avoid "ghost height" cards in signal and measurement blocks. */
.rr-rco-signals-grid,
.rr-rco-measure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  grid-auto-rows: auto;
}

.rr-rco-signals-grid .rr-rco-priority-item,
.rr-rco-measure-grid .rr-rco-priority-item {
  min-height: 0 !important;
  height: auto !important;
  align-self: start !important;
  padding: 14px 15px;
}

.rr-rco-signals-grid .rr-rco-priority-item p,
.rr-rco-measure-grid .rr-rco-priority-item p {
  margin: 7px 0 0;
  line-height: 1.45;
}

/* Matrix non-priority should follow the same amber-filter logic. */
.rr-rco-matrix-item.rr-rco-status-not-priority {
  border-color: var(--rr-rco-amber-border) !important;
  background: var(--rr-rco-amber-soft) !important;
}

/* Keep section headers calm; color lives in badges, bars, borders and backgrounds. */
.rr-rco-result-section h3 {
  letter-spacing: -0.01em;
}

@media (max-width: 760px) {
  .rr-rco-signals-grid,
  .rr-rco-measure-grid {
    grid-template-columns: 1fr;
  }
}

/* v0.4.6 result hierarchy pass
   Goal: reduce flat text feeling by grouping the report into executive phases,
   creating rhythm between diagnostic, customer/proposal, validation and decision blocks. */
.rr-rco-result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(221, 231, 226, .95);
  margin-bottom: 28px;
}

.rr-rco-result-hero .rr-rco-title {
  max-width: 820px;
}

.rr-rco-result-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rr-rco-result-phase {
  margin: 30px 0 0;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(221, 231, 226, .95);
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: 0 16px 42px rgba(15, 63, 50, .045);
}

.rr-rco-result-phase:nth-of-type(even) {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--rr-rco-stone-50, #F8FAF8) 100%);
}

.rr-rco-result-phase-diagnosis {
  border-color: rgba(23, 106, 79, .16);
}

.rr-rco-result-phase-focus {
  border-color: rgba(184, 121, 24, .18);
}

.rr-rco-result-phase-action {
  border-color: rgba(73, 104, 115, .18);
}

.rr-rco-result-phase-decision {
  border-color: rgba(162, 74, 58, .14);
}

.rr-rco-phase-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(221, 231, 226, .92);
}

.rr-rco-phase-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--rr-rco-green-soft);
  border: 1px solid rgba(23, 106, 79, .18);
  color: var(--rr-rco-green-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .02em;
}

.rr-rco-result-phase-focus .rr-rco-phase-num {
  background: var(--rr-rco-amber-soft);
  border-color: var(--rr-rco-amber-border);
  color: var(--rr-rco-amber-text);
}

.rr-rco-result-phase-action .rr-rco-phase-num {
  background: var(--rr-rco-bridge-soft);
  border-color: var(--rr-rco-bridge-border, #BFD0D4);
  color: var(--rr-rco-bridge, #496873);
}

.rr-rco-result-phase-decision .rr-rco-phase-num {
  background: var(--rr-rco-risk-soft);
  border-color: var(--rr-rco-risk-border);
  color: var(--rr-rco-risk-text);
}

.rr-rco-phase-head h3 {
  margin: 0 0 4px;
  color: var(--rr-rco-green-dark);
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.rr-rco-phase-head p {
  margin: 0;
  color: var(--rr-rco-stone-700, #59645F);
  font-size: 14.5px;
  line-height: 1.5;
  max-width: 760px;
}

.rr-rco-phase-body > .rr-rco-result-section {
  padding: 20px 0;
  border-bottom: 1px solid rgba(221, 231, 226, .82);
}

.rr-rco-phase-body > .rr-rco-result-section:first-child {
  padding-top: 0;
}

.rr-rco-phase-body > .rr-rco-result-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.rr-rco-phase-body > .rr-rco-visual-section {
  margin: 0 0 18px;
  padding: 18px;
  background: rgba(248, 250, 248, .72);
  border: 1px solid rgba(221, 231, 226, .78);
  border-radius: 20px;
}

.rr-rco-phase-body > .rr-rco-visual-section + .rr-rco-visual-section {
  margin-top: 16px;
}

.rr-rco-result-section > h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.rr-rco-result-section > h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(23, 106, 79, .45);
  flex: 0 0 auto;
}

.rr-rco-section-executive .rr-rco-prose-card {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--rr-rco-green-soft) 100%);
  border: 1px solid rgba(23, 106, 79, .18);
  border-left: 4px solid var(--rr-rco-green);
  border-radius: 18px;
  padding: 18px 20px;
}

.rr-rco-prose-card p,
.rr-rco-offer-card p,
.rr-rco-actionability-card p,
.rr-rco-result-card p {
  margin-top: 0;
}

.rr-rco-prose-card p:last-child,
.rr-rco-offer-card p:last-child,
.rr-rco-actionability-card p:last-child,
.rr-rco-result-card p:last-child {
  margin-bottom: 0;
}

.rr-rco-list-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rr-rco-mini-card {
  background: #FFFFFF;
  border: 1px solid var(--rr-rco-stone-300, #DDE5E0);
  border-radius: 16px;
  padding: 13px 15px;
  color: var(--rr-rco-text);
  line-height: 1.48;
}

.rr-rco-section-change .rr-rco-mini-card {
  border-color: var(--rr-rco-amber-border);
  background: var(--rr-rco-amber-soft);
}

.rr-rco-section-conclusion {
  margin: 14px 0 0;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid var(--rr-rco-border);
  border-radius: 16px;
  color: var(--rr-rco-text);
}

.rr-rco-offer-card {
  background: #FFFFFF;
  border: 1px solid rgba(23, 106, 79, .16);
  border-left: 4px solid var(--rr-rco-green);
  border-radius: 18px;
  padding: 18px 20px;
}

.rr-rco-current-expression {
  color: var(--rr-rco-stone-700, #59645F);
}

.rr-rco-better-expression {
  padding: 14px 16px;
  background: var(--rr-rco-green-soft);
  border-radius: 14px;
  color: var(--rr-rco-green-dark);
  font-weight: 650;
}

.rr-rco-actionability-card {
  background: #FFFFFF;
  border: 1px solid var(--rr-rco-bridge-border, #BFD0D4);
  border-left: 4px solid var(--rr-rco-bridge, #496873);
  border-radius: 18px;
  padding: 18px 20px;
}

.rr-rco-actionability-label {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rr-rco-bridge-border, #BFD0D4);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 12px;
  background: var(--rr-rco-bridge-soft, #EEF4F5);
  color: var(--rr-rco-bridge, #496873);
  font-size: 13px;
  font-weight: 800;
}

.rr-rco-next-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rr-rco-next-grid article {
  background: #FFFFFF;
  border: 1px solid var(--rr-rco-stone-300, #DDE5E0);
  border-radius: 16px;
  padding: 15px 16px;
}

.rr-rco-next-grid article strong {
  display: block;
  color: var(--rr-rco-green-dark);
  margin-bottom: 5px;
}

.rr-rco-next-grid article p {
  margin: 0;
  color: var(--rr-rco-stone-700, #59645F);
  line-height: 1.45;
}

.rr-rco-result-card {
  background: #FFFFFF;
  box-shadow: 0 12px 30px rgba(15, 63, 50, .05);
}

.rr-rco-result-phase .rr-rco-alert {
  margin: 0;
  border-radius: 18px;
}

.rr-rco-result-phase-decision .rr-rco-result-card {
  border-color: rgba(23, 106, 79, .18);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--rr-rco-green-soft) 100%);
}

@media (max-width: 900px) {
  .rr-rco-result-hero {
    grid-template-columns: 1fr;
  }
  .rr-rco-result-hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .rr-rco-result-phase {
    padding: 18px 14px;
    border-radius: 20px;
  }
  .rr-rco-phase-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .rr-rco-list-cards,
  .rr-rco-next-grid {
    grid-template-columns: 1fr;
  }
  .rr-rco-phase-body > .rr-rco-visual-section {
    padding: 14px;
  }
}


/* v0.4.7 fine visual consistency pass
   Goal: keep the report premium and systematic after the chapter redesign. */

/* Chapter numbers are navigation, not diagnosis. Keep them consistent across all phases. */
.rr-rco-result-phase .rr-rco-phase-num,
.rr-rco-result-phase-focus .rr-rco-phase-num,
.rr-rco-result-phase-action .rr-rco-phase-num,
.rr-rco-result-phase-decision .rr-rco-phase-num {
  background: var(--rr-rco-green-soft) !important;
  border-color: rgba(23, 106, 79, .18) !important;
  color: var(--rr-rco-green-dark) !important;
}

/* Section hierarchy should come from typography, spacing and cards, not inconsistent bullets. */
.rr-rco-result-section > h3 {
  display: block;
  margin: 0 0 14px;
  padding: 0;
  color: var(--rr-rco-green-dark);
}

.rr-rco-result-section > h3::before {
  content: none !important;
  display: none !important;
}

.rr-rco-visual-head h3,
.rr-rco-result-section > h3,
.rr-rco-result-card > h3 {
  color: var(--rr-rco-green-dark);
}

/* The reframe recommendation is a key executive insight, not secondary microcopy. */
.rr-rco-better-expression {
  position: relative;
  margin-top: 14px;
  padding: 18px 18px 17px 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--rr-rco-green-soft) 100%);
  border: 1px solid rgba(23, 106, 79, .24);
  border-left: 5px solid var(--rr-rco-green);
  border-radius: 16px;
  color: var(--rr-rco-green-dark);
  font-weight: 700;
  line-height: 1.55;
}

.rr-rco-better-expression::before {
  content: "Reformulación recomendada";
  display: block;
  margin: 0 0 7px;
  color: var(--rr-rco-green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

/* Make the profile state coding visible enough to be read, while remaining sober. */
.rr-rco-profile-card {
  border-left-width: 1px;
}

.rr-rco-status-priority {
  border-color: rgba(23, 106, 79, .34) !important;
  box-shadow: inset 6px 0 0 var(--rr-rco-green), 0 10px 24px rgba(15, 63, 50, .035) !important;
}

.rr-rco-status-validation,
.rr-rco-status-promising,
.rr-rco-status-future,
.rr-rco-status-explore,
.rr-rco-status-controlled {
  border-color: rgba(184, 121, 24, .34) !important;
  box-shadow: inset 6px 0 0 var(--rr-rco-amber), 0 10px 24px rgba(15, 63, 50, .025) !important;
}

.rr-rco-status-bridge {
  border-color: rgba(73, 104, 115, .34) !important;
  box-shadow: inset 6px 0 0 var(--rr-rco-bridge), 0 10px 24px rgba(15, 63, 50, .025) !important;
}

.rr-rco-status-not-priority {
  border-color: rgba(184, 121, 24, .36) !important;
  box-shadow: inset 6px 0 0 var(--rr-rco-amber), 0 10px 24px rgba(15, 63, 50, .025) !important;
}

.rr-rco-status-not-evaluable,
.rr-rco-status-neutral {
  border-color: rgba(170, 183, 177, .46) !important;
  box-shadow: inset 6px 0 0 #AAB7B1, 0 10px 24px rgba(15, 63, 50, .02) !important;
}

@media (max-width: 760px) {
  .rr-rco-better-expression {
    padding: 16px 16px 15px 18px;
  }
}

/* v0.4.9 result typography hierarchy pass
   Goal: make every heading level read as a distinct hierarchy: result > chapter > section > card > label. */
.rr-rco-result {
  --rr-rco-fs-result-title: clamp(30px, 3.35vw, 42px);
  --rr-rco-fs-phase-title: clamp(22px, 2.15vw, 26px);
  --rr-rco-fs-section-title: clamp(17px, 1.55vw, 18.5px);
  --rr-rco-fs-card-title: clamp(18px, 1.65vw, 21px);
  --rr-rco-fs-card-label: 13.5px;
  --rr-rco-fs-body: 15px;
  --rr-rco-fs-small: 13px;
}

.rr-rco-result .rr-rco-eyebrow {
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: .095em;
}

.rr-rco-result .rr-rco-title {
  font-size: var(--rr-rco-fs-result-title);
  line-height: 1.06;
  font-weight: 830;
  letter-spacing: -0.035em;
  max-width: 860px;
}

.rr-rco-result .rr-rco-copy {
  font-size: 16.5px;
  line-height: 1.56;
  max-width: 780px;
}

.rr-rco-result .rr-rco-phase-head h3 {
  font-size: var(--rr-rco-fs-phase-title) !important;
  line-height: 1.12;
  font-weight: 830;
  letter-spacing: -0.03em;
  margin: 0 0 5px;
}

.rr-rco-result .rr-rco-phase-head p {
  font-size: 14.5px;
  line-height: 1.48;
  max-width: 760px;
}

.rr-rco-result .rr-rco-phase-num {
  width: 40px;
  height: 40px;
  font-size: 12.5px;
  font-weight: 870;
  letter-spacing: .035em;
}

.rr-rco-result .rr-rco-visual-head h3,
.rr-rco-result .rr-rco-result-section > h3,
.rr-rco-result .rr-rco-alert > h3 {
  font-size: var(--rr-rco-fs-section-title) !important;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.018em;
  margin: 0 0 11px;
  color: var(--rr-rco-green-dark);
}

.rr-rco-result .rr-rco-visual-head p {
  font-size: 13.5px;
  line-height: 1.48;
  max-width: 760px;
}

/* Customer/result cards have their own internal hierarchy:
   block label -> actual customer/profile title -> body -> micro-labels. */
.rr-rco-result .rr-rco-result-card > h3 {
  margin: 0 0 11px;
  color: var(--rr-rco-stone-700, #59645F) !important;
  font-size: var(--rr-rco-fs-card-label) !important;
  line-height: 1.22;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.rr-rco-result .rr-rco-result-card > h4 {
  margin: 0 0 10px;
  color: var(--rr-rco-green-dark);
  font-size: var(--rr-rco-fs-card-title);
  line-height: 1.22;
  font-weight: 830;
  letter-spacing: -0.025em;
}

.rr-rco-result .rr-rco-result-card h5,
.rr-rco-result .rr-rco-result-section h5 {
  margin: 17px 0 8px;
  color: var(--rr-rco-stone-700, #59645F);
  font-size: 12.5px !important;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.rr-rco-result .rr-rco-result-card p,
.rr-rco-result .rr-rco-prose-card p,
.rr-rco-result .rr-rco-offer-card p,
.rr-rco-result .rr-rco-actionability-card p,
.rr-rco-result .rr-rco-result-card li {
  font-size: var(--rr-rco-fs-body);
  line-height: 1.58;
}

.rr-rco-result .rr-rco-result-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.rr-rco-result .rr-rco-result-card li + li {
  margin-top: 5px;
}

.rr-rco-result .rr-rco-dimension-top strong,
.rr-rco-result .rr-rco-profile-title-row strong,
.rr-rco-result .rr-rco-portfolio-label strong,
.rr-rco-result .rr-rco-next-grid article strong {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.rr-rco-result .rr-rco-profile-card p,
.rr-rco-result .rr-rco-dimension-card p,
.rr-rco-result .rr-rco-portfolio-label span,
.rr-rco-result .rr-rco-next-grid article p,
.rr-rco-result .rr-rco-mini-card,
.rr-rco-result .rr-rco-section-conclusion,
.rr-rco-result .rr-rco-risk-card p,
.rr-rco-result .rr-rco-alert-card p {
  font-size: 14px;
  line-height: 1.48;
}

.rr-rco-result .rr-rco-level-badge,
.rr-rco-result .rr-rco-status-badge,
.rr-rco-result .rr-rco-actionability-label {
  font-size: 12px;
  font-weight: 830;
  letter-spacing: .01em;
}

.rr-rco-result .rr-rco-better-expression {
  font-size: 15.5px;
  line-height: 1.55;
}

.rr-rco-result .rr-rco-better-expression::before {
  font-size: 11.5px;
  letter-spacing: .07em;
}

.rr-rco-result .rr-rco-current-expression {
  font-size: 14.5px;
  line-height: 1.55;
}

.rr-rco-result .rr-rco-phase-body > .rr-rco-result-section {
  padding: 18px 0;
}

.rr-rco-result .rr-rco-phase-body > .rr-rco-visual-section {
  padding: 18px;
}

@media (max-width: 760px) {
  .rr-rco-result {
    --rr-rco-fs-result-title: clamp(27px, 7vw, 34px);
    --rr-rco-fs-phase-title: clamp(20px, 5.2vw, 24px);
    --rr-rco-fs-section-title: 17px;
    --rr-rco-fs-card-title: 18px;
    --rr-rco-fs-body: 14.5px;
  }

  .rr-rco-result .rr-rco-copy {
    font-size: 15.5px;
  }

  .rr-rco-result .rr-rco-phase-num {
    width: 36px;
    height: 36px;
  }

  .rr-rco-result .rr-rco-result-card > h3 {
    font-size: 12.5px !important;
  }
}


/* v0.5.4 PDF polish + public button radius */
.rr-rco-tool .rr-rco-btn {
  border-radius: 10px !important;
}

.rr-rco-result-bottom-actions {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--rr-rco-border);
  background: var(--rr-rco-bg-alt);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.rr-rco-result-bottom-actions__copy strong {
  display: block;
  color: var(--rr-rco-green-dark);
  font-size: 17px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.rr-rco-result-bottom-actions__copy span {
  display: block;
  color: var(--rr-rco-muted);
  font-size: 14px;
  line-height: 1.35;
}

.rr-rco-result-bottom-actions__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .rr-rco-result-bottom-actions,
  .rr-rco-result-bottom-actions__buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .rr-rco-result-bottom-actions .rr-rco-btn {
    width: 100%;
  }
}


/* v0.5.4 button radius hardening */
.rr-rco-tool .rr-rco-btn,
.rr-rco-tool .rr-rco-access-open,
.rr-rco-tool button[data-action="download-pdf"],
.rr-rco-tool button[data-action="restart"],
.rr-rco-tool button[data-action="next"],
.rr-rco-tool button[data-action="prev"],
.rr-rco-tool button[data-action="generate"],
.rr-rco-tool button[data-action="open-gate"] {
  border-radius: 10px !important;
}


/* v0.5.6 web measurement criteria semantic colors
   Aligns the result web view with the PDF decision matrix: advance / adjust / discard. */
.rr-rco-criteria-grid > .rr-rco-criterion-card {
  border-radius: 10px;
  padding: 16px 16px 15px;
  min-height: 0;
  box-shadow: inset 4px 0 0 var(--rr-rco-stone-300);
}

.rr-rco-criteria-grid > .rr-rco-criterion-card h5 {
  margin: 0 0 10px !important;
  font-size: .78rem;
  line-height: 1.15;
  letter-spacing: .055em;
  text-transform: uppercase;
  font-weight: 850;
}

.rr-rco-criteria-grid > .rr-rco-criterion-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.rr-rco-criteria-grid > .rr-rco-criterion-card li {
  position: relative;
  margin: 0 0 6px;
  padding-left: 12px;
  color: var(--rr-rco-text);
  font-size: .94rem;
  line-height: 1.42;
}

.rr-rco-criteria-grid > .rr-rco-criterion-card li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: currentColor;
}

.rr-rco-criteria-grid > .rr-rco-criterion-card li:last-child {
  margin-bottom: 0;
}

.rr-rco-criteria-grid > .rr-rco-criterion-advance {
  background: var(--rr-rco-green-soft);
  border-color: rgba(23, 106, 79, .34);
  box-shadow: inset 4px 0 0 var(--rr-rco-green);
}

.rr-rco-criteria-grid > .rr-rco-criterion-advance h5 {
  color: var(--rr-rco-green-dark);
}

.rr-rco-criteria-grid > .rr-rco-criterion-adjust {
  background: var(--rr-rco-amber-soft);
  border-color: var(--rr-rco-amber-border);
  box-shadow: inset 4px 0 0 var(--rr-rco-amber);
}

.rr-rco-criteria-grid > .rr-rco-criterion-adjust h5 {
  color: var(--rr-rco-amber-text);
}

.rr-rco-criteria-grid > .rr-rco-criterion-stop {
  background: var(--rr-rco-risk-soft);
  border-color: var(--rr-rco-risk-border);
  box-shadow: inset 4px 0 0 var(--rr-rco-risk);
}

.rr-rco-criteria-grid > .rr-rco-criterion-stop h5 {
  color: var(--rr-rco-risk-text);
}


/* v1.0.0-beta.6 — selected answer state only
   Keeps previous typography, spacing and option dimensions.
   Changes only selected answer treatment and moves the existing check to the right. */
.rr-rco-tool button.rr-rco-option {
  position: relative;
}

.rr-rco-tool button.rr-rco-option .rr-rco-option-label,
.rr-rco-tool button.rr-rco-option span:last-child {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
}

.rr-rco-tool button.rr-rco-option .rr-rco-option-check {
  order: 2;
  flex: 0 0 auto;
  margin-left: auto;
  margin-right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rr-rco-tool button.rr-rco-option.is-selected:not(.is-uncertain),
.rr-rco-tool button.rr-rco-option.is-selected:not(.is-uncertain):hover,
.rr-rco-tool button.rr-rco-option.is-selected:not(.is-uncertain):focus-visible {
  border-color: rgba(23, 106, 79, .55) !important;
  background: #F4FAF7 !important;
  box-shadow: inset 4px 0 0 var(--rr-rco-green) !important;
  color: var(--rr-rco-text) !important;
}

.rr-rco-tool button.rr-rco-option.is-selected:not(.is-uncertain) .rr-rco-option-label,
.rr-rco-tool button.rr-rco-option.is-selected:not(.is-uncertain) span:last-child {
  color: var(--rr-rco-text) !important;
}

.rr-rco-tool button.rr-rco-option.is-selected:not(.is-uncertain) .rr-rco-option-check {
  width: 31px !important;
  height: 31px !important;
  border-radius: 999px !important;
  border: 2px solid rgba(23, 106, 79, .70) !important;
  background: #FFFFFF !important;
  color: var(--rr-rco-green) !important;
  font-size: 17px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

.rr-rco-tool button.rr-rco-option.is-selected:not(.is-uncertain) .rr-rco-option-check::before,
.rr-rco-tool button.rr-rco-option.is-selected:not(.is-uncertain) .rr-rco-option-check::after {
  content: none !important;
}

.rr-rco-tool button.rr-rco-option.is-uncertain.is-selected,
.rr-rco-tool button.rr-rco-option.is-uncertain.is-selected:hover,
.rr-rco-tool button.rr-rco-option.is-uncertain.is-selected:focus-visible {
  border-color: #B8C2BD !important;
  background: #F4F6F5 !important;
  box-shadow: inset 4px 0 0 #8A958F !important;
}

.rr-rco-tool button.rr-rco-option.is-uncertain.is-selected .rr-rco-option-check {
  width: 31px !important;
  height: 31px !important;
  border-radius: 999px !important;
  border: 2px solid #8A958F !important;
  background: #FFFFFF !important;
  color: transparent !important;
}

