/* Graphical results dashboard – Free overview + Pro detail */

body.rd-open {
  overflow: hidden;
}

.rd-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  overflow: auto;
  background: #0b0e14;
  color: #e8eaf0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.rd-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.rd-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rd-header__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.rd-header__brand strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.rd-header__sub {
  width: 100%;
  font-size: 0.75rem;
  opacity: 0.65;
}

.rd-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #6366f1;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rd-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.7rem;
  opacity: 0.55;
  justify-content: center;
}

.rd-steps .is-active {
  opacity: 1;
  color: #a5b4fc;
  font-weight: 600;
}

.rd-header__secure {
  text-align: right;
  font-size: 0.72rem;
  opacity: 0.7;
}

.rd-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 0;
}

.rd-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: #e8eaf0;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.rd-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.rd-btn.is-active {
  border-color: #818cf8;
  background: rgba(99, 102, 241, 0.25);
}

.rd-btn--primary {
  background: #6366f1;
  border-color: #6366f1;
  font-weight: 600;
}

.rd-btn--primary:hover {
  background: #4f46e5;
}

.rd-btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  font-weight: 500;
}

.rd-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.rd-btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  font-weight: 500;
}

.rd-btn--locked {
  opacity: 0.55;
}

.rd-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.rd-grid {
  display: grid;
  grid-template-columns: minmax(200px, 240px) 1fr minmax(240px, 300px);
  gap: 1rem;
  align-items: start;
}

.rd-card {
  background: rgba(18, 22, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.85rem;
}

.rd-card h3 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c7d2fe;
}

.rd-card h4 {
  margin: 0.85rem 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.85;
}

.rd-dl {
  margin: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
}

.rd-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.25rem;
}

.rd-dl dt {
  opacity: 0.55;
}

.rd-dl dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}

.rd-dept-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
}

.rd-dept-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-left: 3px solid #94a3b8;
  padding-left: 0.5rem;
  margin-bottom: 0.25rem;
}

.rd-dept-list li.is-high { border-color: #4ade80; }
.rd-dept-list li.is-medium { border-color: #facc15; }
.rd-dept-list li.is-low { border-color: #f87171; }

.rd-dept-meta {
  opacity: 0.65;
  font-size: 0.7rem;
  white-space: nowrap;
}

.rd-legend {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.68rem;
}

.rd-legend span::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.3rem;
  vertical-align: middle;
}

.rd-legend .is-high::before { background: #4ade80; }
.rd-legend .is-medium::before { background: #facc15; }
.rd-legend .is-low::before { background: #f87171; }

/* Company wheel */
.rd-wheel-wrap {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 1rem;
}

.rd-wheel {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.rd-wheel__hub {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #1e2433, #0f131c 70%);
  border: 2px solid rgba(129, 140, 248, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
  z-index: 2;
}

.rd-wheel__hub-label {
  font-size: 0.7rem;
  opacity: 0.7;
}

.rd-wheel__score {
  font-size: 2.4rem;
  line-height: 1.1;
  color: #4ade80;
  margin: 0.15rem 0;
}

.rd-wheel__score-cap {
  font-size: 0.65rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rd-wheel__pot {
  font-size: 0.68rem;
  margin-top: 0.35rem;
  opacity: 0.85;
}

.rd-wheel__pot b {
  color: #4ade80;
  font-weight: 600;
}

.rd-wheel__node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--a)) translate(155px) rotate(calc(-1 * var(--a)));
  z-index: 1;
}

.rd-wheel__bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  min-height: 96px;
  border-radius: 50%;
  background: #151a26;
  border: 2px solid #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.35rem;
  font-size: 0.62rem;
  line-height: 1.2;
}

.rd-wheel__node.is-high .rd-wheel__bubble { border-color: #4ade80; }
.rd-wheel__node.is-medium .rd-wheel__bubble { border-color: #facc15; }
.rd-wheel__node.is-low .rd-wheel__bubble { border-color: #f87171; }

.rd-wheel__bubble strong {
  font-size: 0.65rem;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rd-wheel__bubble em {
  font-style: normal;
  opacity: 0.75;
}

.rd-wheel__count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #6366f1;
  color: #fff;
  font-size: 0.58rem;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rd-gauge {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.5rem 0 0.75rem;
}

.rd-gauge strong {
  font-size: 2rem;
  color: #4ade80;
}

.rd-gauge span {
  font-size: 0.8rem;
  color: #86efac;
}

.rd-muted {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.65;
}

.rd-table-wrap {
  overflow: auto;
  max-height: 220px;
}

.rd-table-wrap--wide {
  max-height: 360px;
}

.rd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.rd-table th,
.rd-table td {
  padding: 0.35rem 0.4rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rd-table th {
  opacity: 0.55;
  font-weight: 500;
  position: sticky;
  top: 0;
  background: #121620;
}

.rd-pct {
  color: #4ade80;
  font-weight: 600;
}

.rd-ideas {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.75rem;
  line-height: 1.45;
}

.rd-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.rd-tops {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
}

.rd-tops li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0;
}

.rd-tops em {
  margin-left: auto;
  font-style: normal;
  color: #4ade80;
  font-size: 0.72rem;
}

.rd-rank {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
}

.rd-metrics {
  display: grid;
  gap: 0.65rem;
}

.rd-metrics > div {
  display: flex;
  flex-direction: column;
}

.rd-metrics strong {
  font-size: 1.15rem;
  color: #a5b4fc;
}

.rd-metrics span {
  font-size: 0.7rem;
  opacity: 0.6;
}

.rd-bars {
  display: grid;
  gap: 0.45rem;
  font-size: 0.72rem;
}

.rd-bar {
  display: grid;
  grid-template-columns: 5.5rem 1fr 2.2rem;
  align-items: center;
  gap: 0.4rem;
}

.rd-bar__track {
  height: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.rd-bar__track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #4ade80);
  border-radius: inherit;
}

.rd-bar em {
  font-style: normal;
  text-align: right;
  opacity: 0.75;
}

.rd-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
}

.rd-steps-list li {
  display: flex;
  gap: 0.5rem;
  padding: 0.3rem 0;
}

.rd-steps-list span {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #6366f1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

/* Detail (Pro/Ultimate) */
.rd-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.rd-kpis > div {
  background: rgba(18, 22, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
}

.rd-kpis strong {
  display: block;
  font-size: 1.05rem;
  color: #a5b4fc;
}

.rd-kpis span {
  font-size: 0.68rem;
  opacity: 0.6;
}

.rd-pill {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.7rem;
}

.rd-pill.is-high { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
.rd-pill.is-medium { background: rgba(250, 204, 21, 0.2); color: #facc15; }
.rd-pill.is-low { background: rgba(248, 113, 113, 0.2); color: #f87171; }

.rd-tech {
  color: #7dd3fc;
  font-size: 0.68rem;
}

.rd-export-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (max-width: 1100px) {
  .rd-grid {
    grid-template-columns: 1fr;
  }

  .rd-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .rd-header {
    grid-template-columns: 1fr;
  }

  .rd-header__secure {
    text-align: left;
  }

  .rd-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .rd-wheel__node {
    transform: rotate(var(--a)) translate(130px) rotate(calc(-1 * var(--a)));
  }
}

@media (max-width: 640px) {
  .rd-bottom {
    grid-template-columns: 1fr;
  }

  .rd-wheel {
    width: min(100%, 320px);
  }

  .rd-wheel__node {
    transform: rotate(var(--a)) translate(110px) rotate(calc(-1 * var(--a)));
  }

  .rd-wheel__bubble {
    width: 78px;
    min-height: 78px;
  }
}

/* Light executive-overview report (all licence tiers) */
.rd-overlay--light {
  background: #eef2f7;
  color: #12233d;
}

.rd-overlay--light .rd-header,
.rd-overlay--light .rd-toolbar {
  color: #12233d;
}

.rd-overlay--light .rd-header {
  border-bottom-color: #d5deea;
}

.rd-overlay--light .rd-header__sub,
.rd-overlay--light .rd-steps {
  opacity: 0.75;
}

.rd-overlay--light .rd-steps .is-active {
  color: #1d4ed8;
}

.rd-overlay--light .rd-btn {
  background: #fff;
  color: #12233d;
  border-color: #cfd8e3;
}

.rd-overlay--light .rd-btn.is-active,
.rd-overlay--light .rd-btn--primary {
  background: #1e3a8a;
  color: #fff;
  border-color: #1e3a8a;
}

.rd-overlay--light .rd-card--funding {
  background: #fff;
  color: #12233d;
}

.eo-doc {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0.5rem 0 2rem;
}

.eo-page {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: 0 10px 30px rgba(15, 39, 68, 0.08);
}

.eo-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.eo-head h2 {
  margin: 0;
  font-size: 1.65rem;
  color: #12355b;
}

.eo-sub {
  margin: 0.15rem 0 0;
  color: #3b6ea5;
  font-weight: 600;
  font-size: 1.05rem;
}

.eo-lead {
  margin: 0.45rem 0 0;
  color: #5b6b80;
  font-size: 0.92rem;
}

.eo-date {
  margin: 0;
  color: #8a97a8;
  font-size: 0.78rem;
  text-align: right;
}

.eo-date strong {
  display: block;
  color: #5b6b80;
  font-weight: 500;
}

.eo-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.eo-kpis--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eo-kpi {
  position: relative;
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  padding: 0.9rem 0.9rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
}

.eo-kpi__icon {
  color: #2563eb;
  font-size: 1.1rem;
}

.eo-kpi strong {
  font-size: 1.45rem;
  color: #12355b;
}

.eo-kpi span:last-of-type {
  color: #6b7280;
  font-size: 0.78rem;
}

.eo-kpi__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: #2563eb;
}

.eo-kpi__bar.is-part {
  width: 42%;
  background: #22c55e;
}

.eo-case {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
  border-left: 6px solid #16a34a;
}

.eo-case--orange {
  border-left-color: #ea580c;
}

.eo-case h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.eo-case__tech {
  margin: 0 0 0.5rem;
  color: #4b5563;
  font-size: 0.85rem;
}

.eo-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 600;
}

.eo-case--orange .eo-pill {
  background: #ffedd5;
  color: #9a3412;
}

.eo-case__saved {
  margin: 0.65rem 0 0;
  color: #12355b;
  font-weight: 600;
}

.eo-case__chart-title {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.eo-bars {
  display: flex;
  align-items: flex-end;
  gap: 1.4rem;
  height: 110px;
}

.eo-bars__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 52px;
}

.eo-bars__col b {
  display: block;
  width: 36px;
  border-radius: 6px 6px 0 0;
  min-height: 8px;
}

.eo-bars__col b.is-before { background: #cbd5e1; }
.eo-case--green .eo-bars__col b.is-after,
.eo-case:not(.eo-case--orange) .eo-bars__col b.is-after { background: #16a34a; }
.eo-case--orange .eo-bars__col b.is-after { background: #ea580c; }

.eo-bars__col span {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: #6b7280;
  text-align: center;
}

.eo-bars__col em {
  display: block;
  font-style: normal;
  color: #12233d;
  font-weight: 700;
}

.eo-delta {
  margin: 0.4rem 0 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #16a34a;
}

.eo-case--orange .eo-delta { color: #ea580c; }

.eo-delta small {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
}

.eo-cta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #e8f1fb;
  color: #1e3a8a;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

.eo-cta--dark {
  background: #12355b;
  color: #fff;
  justify-content: center;
}

.eo-depts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.eo-dept {
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
}

.eo-dept h3 { margin: 0 0 0.6rem; font-size: 1rem; }

.eo-gauge {
  --p: 70;
  width: 96px;
  height: 96px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  background: conic-gradient(#2563eb calc(var(--p) * 1%), #e5e7eb 0);
  display: grid;
  place-items: center;
}

.eo-gauge strong {
  background: #fff;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: #12355b;
}

.eo-gauge span { display: none; }

.eo-muted, .eo-dept p { color: #5b6b80; font-size: 0.85rem; margin: 0.15rem 0; }

.eo-h3 {
  margin: 1.2rem 0 0.6rem;
  font-size: 1rem;
  color: #12355b;
}

.eo-cmp { display: flex; flex-direction: column; gap: 0.55rem; }

.eo-cmp__row {
  display: grid;
  grid-template-columns: minmax(7rem, 16rem) 1fr auto;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.85rem;
}

.eo-cmp__track {
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.eo-cmp__track i {
  display: block;
  height: 100%;
  background: #2563eb;
}

.eo-road {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.eo-road__col {
  border-radius: 12px;
  padding: 0.85rem;
  min-height: 7rem;
}

.eo-road__col h3 { margin: 0 0 0.4rem; font-size: 0.9rem; }
.eo-road__col p { margin: 0; font-size: 0.82rem; color: #374151; }
.eo-road__col--green { background: #dcfce7; }
.eo-road__col--blue { background: #dbeafe; }
.eo-road__col--teal { background: #cffafe; }
.eo-road__col--orange { background: #ffedd5; }

.eo-risks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.eo-risk {
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  padding: 0.9rem;
}

.eo-risk h3 { margin: 0 0 0.4rem; }
.eo-measure { color: #1d4ed8; font-size: 0.85rem; }

.eo-flow {
  margin: 1rem 0;
  color: #1d4ed8;
  font-weight: 600;
}

@media (max-width: 900px) {
  .eo-kpis, .eo-depts, .eo-risks, .eo-road, .eo-case {
    grid-template-columns: 1fr;
  }
  .eo-kpis--3 { grid-template-columns: 1fr; }
  .eo-cmp__row { grid-template-columns: 1fr; }
}

