.rc {
  --rc-line: #67477c;
  --rc-muted: #c9b3db;
  max-width: 1680px;
  margin: auto;
  color: #f6efff;
  font: 14px/1.55 system-ui, sans-serif;
}
.rc * {
  box-sizing: border-box;
}
.rc [hidden] {
  display: none !important;
}
.rc-hero {
  padding: 28px 30px;
  margin-bottom: 22px;
  border: 1px solid #79578f;
  border-radius: 22px;
  background: radial-gradient(ellipse at top right, #453262, transparent 70%), #25182f;
}
.rc-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.rc h1 {
  margin: 4px 0 !important;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.2;
}
.rc h1 img[data-tool-icon] {
  display: none !important;
}
.rc-eyebrow {
  color: #d7b3ff;
  font-size: 10px;
  letter-spacing: .13em;
  font-weight: 750;
}
.rc-hero p {
  max-width: 890px;
  color: var(--rc-muted);
  margin: 16px 0 0;
}
.rc-desk {
  overflow: hidden;
  border: 1px solid var(--rc-line);
  border-radius: 18px;
  background: #191021;
}
.rc-toolbar, .rc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: #2d1d39;
}
.rc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rc button {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 10px 13px;
  border: 1px solid #89659c;
  border-radius: 8px;
  background: #3c274c;
  color: #f8f0ff;
  font: 600 12px/1.4 system-ui;
  cursor: pointer;
}
.rc button:hover {
  background: #523466;
  border-color: #d5a6f7;
}
.rc .rc-primary {
  background: #8550bd;
  border-color: #c899ec;
}
.rc .rc-danger {
  color: #ffbaca;
}
.rc button:disabled {
  opacity: .45;
  cursor: default;
}
.rc input, .rc select, .rc textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #7c5a90;
  border-radius: 8px;
  padding: 10px 12px;
  background: #1c1227;
  color: #f7efff;
  font: inherit;
}
.rc textarea {
  resize: vertical;
}
.rc label {
  display: grid;
  gap: 7px;
  color: var(--rc-muted);
  font-size: 12px;
}
.rc button:focus-visible, .rc input:focus-visible, .rc select:focus-visible, .rc textarea:focus-visible, .rc summary:focus-visible {
  outline: 3px solid #e6c0ff;
  outline-offset: 2px;
}
.rc h2 {
  font-size: 17px;
  margin: 0 !important;
}
.rc h3 {
  font-size: 14px;
  margin: 0 0 14px;
}
.rc-settings {
  display: grid;
  grid-template-columns: 1fr 1.3fr 200px auto;
  align-items: end;
  gap: 14px;
  padding: 18px 20px;
}
.rc-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--rc-line);
}
.rc-metrics > div {
  padding: 18px 24px;
  border-right: 1px solid #52365f;
}
.rc-metrics > div:first-child {
  background: #3b254d;
}
.rc-metrics strong {
  display: block;
  font-size: 25px;
  color: #d9b1ff;
}
.rc-metrics span {
  display: block;
  margin-top: 4px;
  color: var(--rc-muted);
  font-size: 11px;
}
.rc-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--rc-line);
  background: #24172f;
}
.rc-comparison > div {
  min-width: 0;
}
.rc-comparison p {
  margin: 7px 0 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.rc-arrow {
  align-self: center;
  color: #b989e8;
  font-size: 26px;
}
.rc-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}
.rc-visual, .rc-editor {
  padding: 22px;
  border-bottom: 1px solid var(--rc-line);
}
.rc .rc-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rc-inline select {
  max-width: 270px;
}
.rc-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #150c1f;
  border: 1px solid #65447a;
  border-radius: 11px;
}
.rc-switch button {
  min-height: 32px;
  border: 0;
  padding: 6px 10px;
  background: transparent;
  color: #c5abd7;
}
.rc-switch button[aria-pressed=true] {
  background: #704098;
  color: #fff;
}
.rc-help {
  color: var(--rc-muted);
  font-size: 11px;
  line-height: 1.65;
  margin: 10px 0 0;
}
.rc-map-scroll {
  overflow: auto;
  max-height: 430px;
  margin-top: 14px;
  border: 1px solid #654779;
  border-radius: 12px;
  background-color: #20142a;
  background-image: radial-gradient(#76518a44 1px, transparent 1px);
  background-size: 18px 18px;
}
.rc-map {
  position: relative;
  min-height: 190px;
}
.rc-map svg {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}
.rc .rc-node {
  display: grid !important;
  gap: 4px;
  justify-items: start;
  position: absolute;
  width: 210px;
  height: 76px;
  min-height: 76px;
  padding: 11px 13px;
  text-align: left;
  background: #2c2038;
  border-color: #629f9d;
  box-shadow: 0 4px 14px #10081966;
}
.rc-node strong, .rc-node span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rc-node strong {
  font-size: 12px;
}
.rc-node span {
  font-size: 10px;
  color: #c7b4d4;
  font-weight: 400;
}
.rc .rc-node.is-critical {
  background: #4d2e65;
  border-color: #bc89ec;
}
.rc .rc-node.is-problem {
  background: #422132;
  border-color: #d7839f;
}
.rc .rc-node.is-selected {
  outline: 3px solid #f1d7ff;
  outline-offset: 3px;
}
.rc-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  color: var(--rc-muted);
  font-size: 11px;
}
.rc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.rc-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.rc-purple {
  background: #b780e5;
}
.rc-teal {
  background: #6bd1c0;
}
.rc-coral {
  background: #e293a9;
}
.rc-timing {
  margin-top: 14px;
  border: 1px solid #614375;
  border-radius: 10px;
  overflow: auto;
  max-height: 430px;
}
.rc-time-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  min-width: 600px;
  border-bottom: 1px solid #51345f;
}
.rc-time-track {
  position: relative;
  height: 30px;
  background: #241830;
}
.rc .rc-time-bar {
  position: absolute;
  top: 2px;
  bottom: 2px;
  min-height: 26px;
  min-width: 6px;
  padding: 2px 7px;
  white-space: nowrap;
  font-size: 10px;
  background: #31564f;
  border-color: #70b9a8;
}
.rc .rc-time-bar.is-critical {
  background: #643b81;
  border-color: #cb92f5;
}
.rc-time-row > button {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  justify-content: start;
  background: transparent;
  border: 0;
  min-height: 28px;
  padding: 0;
}
.rc-diagnostics {
  padding: 20px 22px;
  background: #3c202f;
  border-bottom: 1px solid #a16a80;
}
.rc-diagnostics > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.rc-diagnostics button {
  background: #502c3e;
  border-color: #a57085;
}
.rc-editor {
  background: #251831;
}
.rc-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.rc-original, .rc-proposal {
  min-width: 0;
  height: auto;
  align-self: stretch;
  padding: 18px;
  border: 1px solid #68487c;
  border-radius: 12px;
  background: #1b1226;
}
.rc-original > label, .rc-proposal > label {
  margin-top: 13px;
}
.rc-proposal {
  background: linear-gradient(140deg, #33213f, #21162d);
}
.rc-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 13px;
}
.rc .rc-check {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-block: 19px;
}
.rc-check input {
  width: 17px;
  height: 17px;
  accent-color: #af7be0;
}
.rc-summary {
  padding: 12px;
  border-left: 3px solid #bd8ce9;
  background: #3b2847;
  font-size: 12px;
  margin-bottom: 0;
}
.rc-editor-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.rc-editor-actions .rc-help {
  margin: 0;
}
.rc-table-section {
  padding: 20px 22px;
}
.rc summary {
  cursor: pointer;
  font-weight: 650;
}
.rc summary span {
  color: var(--rc-muted);
  margin-left: 10px;
  font-size: 11px;
  font-weight: 400;
}
.rc-search {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 16px 0;
}
.rc-search > input {
  max-width: 470px;
}
.rc-table-wrap {
  overflow: auto;
  border: 1px solid #644578;
  border-radius: 10px;
}
.rc table {
  width: 100%;
  min-width: 790px;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
.rc th {
  padding: 12px;
  background: #30203c;
  color: #d7bbe8;
}
.rc td {
  padding: 10px 12px;
  border-top: 1px solid #51345e;
  overflow-wrap: anywhere;
  max-width: 300px;
}
.rc td button {
  min-height: 28px;
  padding: 4px 7px;
}
.rc tr.is-selected {
  background: #3c244f;
}
.rc-pagination {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--rc-muted);
}
.rc-footer > p {
  flex: 1;
  min-width: 230px;
  font-size: 12px;
  margin: 0;
}
.rc [data-error=true] {
  color: #ffbbcf;
}
.rc-guide {
  padding: 24px;
  margin-top: 24px;
  border: 1px solid #624374;
  border-radius: 16px;
  background: #22162c;
}
.rc-guide ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding-left: 20px;
}
.rc-guide p {
  color: var(--rc-muted);
  font-size: 12px;
}
.rc-guide details {
  padding-block: 12px;
}
.rc-guide a {
  color: #d9b0ff;
}
.rc-focus {
  position: fixed !important;
  inset: 0;
  z-index: 9999;
  overflow: auto !important;
  border-radius: 0 !important;
}
@media (max-width: 1100px) {
  .rc-settings {
    grid-template-columns: 1fr 1fr;
  }
  .rc-metrics > div {
    padding: 16px;
  }
}
@media (max-width: 760px) {
  .rc-hero {
    padding: 20px;
  }
  .rc-brand {
    gap: 12px;
  }
  .rc-brand img {
    width: 48px;
    height: 48px;
  }
  .rc-settings, .rc-edit-grid, .rc-pair {
    grid-template-columns: 1fr;
  }
  .rc-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rc-comparison {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .rc-arrow {
    display: none;
  }
  .rc-visual, .rc-editor {
    padding: 16px;
  }
  .rc-heading > .rc-actions {
    width: 100%;
  }
  .rc-heading .rc-inline {
    flex-wrap: wrap;
  }
  .rc-inline select {
    max-width: 100%;
  }
  .rc-editor .rc-actions {
    align-items: end;
  }
  .rc-editor .rc-inline {
    max-width: 100%;
  }
  .rc-guide ol {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.rc-map-canvas {
  position: relative;
  transform-origin: top left;
}
.rc-map {
  min-height: 0;
}
.rc-editor {
  scroll-margin-top: 90px;
}
