.rep {
  --rep-bg: var(--paper-2, #151226);
  --rep-bg-2: var(--paper-3, #1E1A36);
  --rep-page: var(--paper, #0D0B18);
  --rep-ink: var(--ink, #F4F1FB);
  --rep-ink-2: var(--ink-2, #CFC9E2);
  --rep-ink-3: var(--ink-3, #A69FC2);
  --rep-rule: var(--rule, rgba(207, 201, 226, 0.2));
  --rep-hair: var(--hair, rgba(207, 201, 226, 0.085));
  --rep-mark: var(--mark, #F6B84B);
  --rep-royal: var(--royal-lit, #B69CFF);
  --rep-ok: var(--ok, #5CCB8F);
  --rep-warn: var(--warn, #F2A33A);
  --rep-stop: var(--stop, #F2766B);
  --rep-font: var(--text, 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif);
  position: relative;
  container-type: inline-size;
  display: grid;
  gap: 18px;
  margin: 36px 0 44px;
  color: var(--rep-ink);
  font-family: var(--rep-font);
}

.rep-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}

.rep-eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rep-mark);
}

.rep-intro {
  margin: 0;
  font-size: 0.9rem;
  color: var(--rep-ink-3);
}

/* ── strip ── */

.rep-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border: 1px solid var(--rep-rule);
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(124, 58, 237, 0.16), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, rgba(246, 184, 75, 0.08), transparent 60%),
    var(--rep-bg);
  overflow: hidden;
}

.rep-tile {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px 20px 20px;
  border-left: 1px solid var(--rep-hair);
  min-width: 0;
}

.rep-tile:first-child {
  border-left: 0;
}

.rep-tile-label,
.rep-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rep-ink-3);
}

.rep-tile-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}

.rep-tile-value b {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.rep-tile-value i,
.rep-stat-value i,
.rep-team-size i,
.rep-uptime-value i {
  font-style: normal;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--rep-ink-3);
}

.rep-tile-sub {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--rep-ink-2);
}

.rep-tile-means,
.rep-stat-means {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--rep-ink-3);
}

.rep-why {
  font-size: 0.84rem;
  color: var(--rep-ink-2);
}

.rep-why summary,
.rep-table summary {
  cursor: pointer;
  width: fit-content;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rep-royal);
  list-style: none;
}

.rep-why summary::-webkit-details-marker,
.rep-table summary::-webkit-details-marker {
  display: none;
}

.rep-why summary::after,
.rep-table summary::after {
  content: " +";
}

.rep-why[open] summary::after,
.rep-table[open] summary::after {
  content: " \2212";
}

.rep-why ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.rep-why li {
  display: grid;
  grid-template-columns: 7.5em 1fr 2.8em;
  align-items: center;
  gap: 8px;
}

.rep-why li b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.rep-why p {
  margin: 8px 0 0;
  color: var(--rep-stop);
}

/* ── meters and chips ── */

.rep-meter {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(246, 184, 75, 0.14);
  overflow: hidden;
}

.rep-meter > span {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--rep-mark);
  transform-origin: left;
  animation: rep-grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.rep-meter.is-big {
  height: 8px;
}

.rep-meter.is-royal {
  background: rgba(182, 156, 255, 0.14);
}

.rep-meter.is-royal > span {
  background: var(--rep-royal);
}

@keyframes rep-grow {
  from { transform: scaleX(0); }
}

.rep-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 3px 9px 3px 6px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--rep-ink-2);
  background: rgba(207, 201, 226, 0.1);
}

.rep-tile-value .rep-chip {
  font-size: 0.95rem;
  padding: 5px 12px 5px 8px;
}

.rep-icon {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rep-chip.is-ok { color: var(--rep-ok); background: rgba(92, 203, 143, 0.13); }
.rep-chip.is-warn { color: var(--rep-warn); background: rgba(242, 163, 58, 0.13); }
.rep-chip.is-stop { color: var(--rep-stop); background: rgba(242, 118, 107, 0.13); }
.rep-chip.is-wait .rep-icon { fill: currentColor; }

/* ── tabs ── */

.rep-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--rep-rule);
  border-radius: 999px;
  background: var(--rep-bg);
  scrollbar-width: none;
}

.rep-tab {
  flex: none;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rep-ink-3);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.rep-tab:hover {
  color: var(--rep-ink);
}

.rep-tab[aria-selected="true"] {
  color: var(--mark-ink, #1A1204);
  background: var(--rep-mark);
}

.rep-tab:focus-visible,
.rep-hit:focus-visible,
.rep-col:focus-visible,
.rep-radar-point:focus-visible,
.rep-cell:focus-visible {
  outline: 2px solid var(--rep-royal);
  outline-offset: 2px;
}

.rep-panel {
  animation: rep-in 0.35s ease both;
}

@keyframes rep-in {
  from { opacity: 0; transform: translateY(6px); }
}

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

/* ── blocks ── */

.rep-block {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 20px 22px 22px;
  border: 1px solid var(--rep-hair);
  border-radius: 14px;
  background: var(--rep-bg);
}

.rep-block.is-wide {
  grid-column: 1 / -1;
}

.rep-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
}

.rep-block-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rep-ink);
}

.rep-block-aside {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--rep-ink-2);
}

.rep-means {
  margin: -6px 0 2px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--rep-ink-3);
}

/* ── roadmap lanes ── */

.rep-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rep-lane {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--rep-bg-2);
}

.rep-lane header {
  display: grid;
  gap: 2px;
  padding: 2px 4px 6px;
  border-bottom: 1px solid var(--rep-hair);
}

.rep-lane header b {
  font-size: 0.95rem;
}

.rep-lane header span,
.rep-lane-empty {
  font-size: 0.78rem;
  color: var(--rep-ink-3);
}

.rep-lane-empty {
  margin: 0;
  padding: 4px;
}

.rep-lane ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rep-item {
  display: grid;
  gap: 6px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--rep-hair);
  background: var(--rep-bg);
}

.rep-item.is-shipped .rep-item-title {
  color: var(--rep-ink-2);
}

.rep-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.rep-item-note {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--rep-ink-3);
}

/* ── charts ── */

.rep-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--rep-ink-2);
}

.rep-legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rep-key {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
}

.rep-key.is-line {
  width: 16px;
  height: 2px;
  border-radius: 2px;
}

.rep-key.is-dotted {
  background: radial-gradient(circle, var(--c) 1px, transparent 1.4px) 0 50% / 5px 2px repeat-x;
}

.rep-chart {
  position: relative;
  min-height: 190px;
}

.rep-chart svg {
  display: block;
  overflow: visible;
}

.rep-chart.is-radar {
  min-height: 260px;
}

.rep-axis text,
.rep-target-label,
.rep-radar-label,
.rep-cap {
  font-family: var(--rep-font);
  font-size: 11px;
  fill: var(--rep-ink-3);
  font-variant-numeric: tabular-nums;
}

.rep-radar-label {
  font-size: 12px;
  font-weight: 600;
  fill: var(--rep-ink-2);
}

.rep-cap {
  font-weight: 700;
  fill: var(--rep-ink-2);
}

.rep-gridline {
  stroke: var(--rep-hair);
  stroke-width: 1;
}

.rep-base {
  stroke: var(--rep-rule);
  stroke-width: 1;
}

.rep-target {
  stroke: var(--rep-ink-3);
  stroke-width: 1;
  stroke-opacity: 0.6;
}

.rep-cross {
  stroke: var(--rep-ink-3);
  stroke-width: 1;
}

.rep-dot {
  stroke: var(--rep-bg);
  stroke-width: 2;
}

.rep-hit {
  cursor: crosshair;
  outline: none;
}

.rep-col {
  cursor: pointer;
  outline: none;
  transition: opacity 0.15s;
}

.rep-chart:hover .rep-col:not(.is-hot) {
  opacity: 0.55;
}

.rep-radar-point {
  cursor: pointer;
  outline: none;
}

.rep-line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: rep-draw 1.3s cubic-bezier(0.4, 0.1, 0.2, 1) forwards;
}

@keyframes rep-draw {
  to { stroke-dashoffset: 0; }
}

.rep-radar-shape {
  transform-box: fill-box;
  transform-origin: center;
  animation: rep-bloom 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes rep-bloom {
  from { transform: scale(0.2); opacity: 0; }
}

.rep-tip {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: 5px;
  min-width: 140px;
  padding: 10px 12px;
  border: 1px solid var(--rep-rule);
  border-radius: 10px;
  background: rgba(13, 11, 24, 0.96);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  font-size: 0.8rem;
}

.rep-tip-head {
  font-weight: 600;
  color: var(--rep-ink-3);
}

.rep-tip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rep-ink-3);
}

.rep-tip-row b {
  color: var(--rep-ink);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.rep-table table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.rep-table th,
.rep-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid var(--rep-hair);
}

.rep-table th {
  font-weight: 600;
  color: var(--rep-ink-3);
}

/* ── lists of figures ── */

.rep-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.rep-stat {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 14px;
  border-radius: 12px;
  background: var(--rep-bg-2);
}

.rep-stat-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.05;
}

.rep-bars {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rep-bars li {
  display: grid;
  grid-template-columns: minmax(7em, 1fr) minmax(80px, 1.4fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--rep-ink-2);
}

.rep-bars li b {
  min-width: 3.5em;
  text-align: right;
  color: var(--rep-ink);
  font-variant-numeric: tabular-nums;
}

.rep-bars.is-tall li span {
  display: grid;
  gap: 2px;
}

.rep-bars em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--rep-ink-3);
}

.rep-speeds {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rep-speeds li {
  display: grid;
  gap: 7px;
}

.rep-speed-label {
  font-size: 0.88rem;
  color: var(--rep-ink-2);
}

.rep-bullet {
  position: relative;
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(207, 201, 226, 0.08);
}

.rep-bullet-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background: var(--rep-ok);
  transform-origin: left;
  animation: rep-grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.rep-bullet.is-warn .rep-bullet-bar {
  background: var(--rep-warn);
}

.rep-bullet-target {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: var(--x);
  width: 2px;
  border-radius: 2px;
  background: var(--rep-ink);
}

.rep-speed-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
}

.rep-speed-value em {
  font-style: normal;
  color: var(--rep-ink-3);
}

.rep-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px 36px;
  align-items: start;
}

.rep-uptime {
  display: grid;
  gap: 10px;
}

.rep-uptime-value,
.rep-team-size {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}

.rep-uptime-value b,
.rep-team-size b {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.rep-cells {
  position: relative;
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 2px;
}

.rep-cell {
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.15s;
}

.rep-cell:hover {
  transform: scaleY(1.15);
}

.rep-cell.is-ok { background: var(--rep-ok); }
.rep-cell.is-warn { background: var(--rep-warn); }
.rep-cell.is-stop { background: var(--rep-stop); }

.rep-checks {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rep-checks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rep-hair);
  font-size: 0.9rem;
  color: var(--rep-ink-2);
}

.rep-checks li:last-child {
  border-bottom: 0;
}

.rep-kv {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--rep-bg-2);
}

.rep-kv span {
  font-size: 0.78rem;
  color: var(--rep-ink-3);
}

.rep-badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rep-badge {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--rep-hair);
  background: var(--rep-bg-2);
}

.rep-badge b {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.rep-badge.is-ok {
  border-color: rgba(92, 203, 143, 0.35);
}

.rep-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 22px;
  margin: 0;
}

.rep-fact {
  display: grid;
  gap: 5px;
}

.rep-fact.is-wide {
  grid-column: 1 / -1;
}

.rep-fact dt {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rep-ink-3);
}

.rep-fact dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--rep-ink-2);
}

.rep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rep-tags span {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--rep-rule);
  font-size: 0.8rem;
  color: var(--rep-ink-2);
}

.rep-stack {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: layer;
}

.rep-stack li {
  display: grid;
  grid-template-columns: minmax(8em, 0.8fr) minmax(0, 1.6fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 8px 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rep-hair);
  font-size: 0.9rem;
  color: var(--rep-ink-2);
}

.rep-stack li:last-child {
  border-bottom: 0;
}

.rep-stack li b {
  color: var(--rep-ink);
}

.rep-questions {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.3em;
  color: var(--rep-ink-2);
  font-size: 0.93rem;
  line-height: 1.5;
}

.rep-questions li::marker {
  color: var(--rep-mark);
  font-weight: 700;
}

.rep-requests {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rep-requests li {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(60px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rep-hair);
  font-size: 0.9rem;
}

.rep-requests li:last-child {
  border-bottom: 0;
}

.rep-requests b {
  font-size: 0.84rem;
  color: var(--rep-ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rep-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--rep-ink-2);
}

.rep-log {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rep-log li {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rep-hair);
}

.rep-log li:last-child {
  border-bottom: 0;
}

.rep-log-when {
  display: grid;
  gap: 2px;
  font-size: 0.82rem;
  color: var(--rep-ink-3);
}

.rep-log-when i {
  font-style: normal;
  font-weight: 700;
  color: var(--rep-ink-2);
}

.rep-log-what {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-size: 0.92rem;
  color: var(--rep-ink-2);
}

@container (max-width: 820px) {
  .rep-grid,
  .rep-lanes {
    grid-template-columns: minmax(0, 1fr);
  }

  .rep-tile {
    border-left: 0;
    border-top: 1px solid var(--rep-hair);
  }

  .rep-tile:first-child {
    border-top: 0;
  }

  .rep-stack li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .rep-requests li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .rep-requests .rep-meter {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .rep-log li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .rep-block {
    padding: 16px;
  }
}

@container (max-width: 560px) {
  .rep-tabs {
    flex-wrap: wrap;
    width: 100%;
    border-radius: 18px;
  }

  .rep-tab {
    flex: 1 1 auto;
  }

  .rep-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .rep-cells {
    grid-template-columns: repeat(15, minmax(0, 1fr));
  }

  .rep-bars li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .rep-bars li .rep-meter {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rep-meter > span,
  .rep-bullet-bar,
  .rep-line,
  .rep-radar-shape,
  .rep-panel {
    animation: none;
  }

  .rep-line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}
