.rp-page {
  --rp-bg:#f8fafc;
  --rp-card:#ffffff;
  --rp-card2:#f8fafc;
  --rp-border:#e2e8f0;
  --rp-field-border:#64748b;
  --rp-chart-grid:#7d8799;
  --rp-text:#0f172a;
  --rp-muted:#475569;
  --rp-accent:#4f46e5;
  --rp-accent-ink:#ffffff;
  --rp-accent-soft:#eef2ff;
  --rp-mono:ui-monospace,"SF Mono","Cascadia Mono",Menlo,Consolas,monospace;
  --rp-shadow:0 12px 32px rgba(2,6,23,.16);
  --rp-amber-bg:#fffbeb;
  --rp-amber-border:#f59e0b;
  --rp-amber-text:#92400e;
  --rp-slate-bg:#f1f5f9;
  --rp-slate-border:#94a3b8;
  --rp-slate-text:#334155;
  --rp-emerald-bg:#ecfdf5;
  --rp-emerald-border:#10b981;
  --rp-emerald-text:#065f46;
  --rp-rose-bg:#fff1f2;
  --rp-rose-border:#e11d48;
  --rp-rose-text:#9f1239;
  color: var(--rp-text);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
html.dark .rp-page {
  --rp-bg:#0b1120;
  --rp-card:#0f172a;
  --rp-card2:#131c2e;
  --rp-border:#243044;
  --rp-text:#e6edf6;
  --rp-muted:#a3b1c4;
  --rp-chart-grid:#64748b;
  --rp-accent:#818cf8;
  --rp-accent-ink:#0b1120;
  --rp-accent-soft:rgba(79,70,229,.22);
  --rp-shadow:0 12px 32px rgba(0,0,0,.5);
  --rp-amber-bg:rgba(217,119,6,.16);
  --rp-amber-border:#d97706;
  --rp-amber-text:#fcd34d;
  --rp-slate-bg:rgba(51,65,85,.4);
  --rp-slate-border:#64748b;
  --rp-slate-text:#cbd5e1;
  --rp-emerald-bg:rgba(5,150,105,.16);
  --rp-emerald-border:#059669;
  --rp-emerald-text:#6ee7b7;
  --rp-rose-bg:rgba(190,18,60,.16);
  --rp-rose-border:#e11d48;
  --rp-rose-text:#fda4af;
}
.rp-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.rp-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: -8px 0 0 -8px;
  border-radius: 8px;
  color: var(--rp-muted);
  text-decoration: none;
  font-size: 1.25rem;
}
.rp-back:hover {
  background: var(--rp-card2);
  color: var(--rp-text);
}
.rp-title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
}
.rp-subtitle {
  margin: 4px 0 0;
  font-size: .875rem;
  color: var(--rp-muted);
  max-width: 48rem;
}
.rp-alert {
  padding: 12px 16px;
  border: 1px solid var(--rp-rose-border);
  border-radius: 10px;
  background: var(--rp-rose-bg);
  color: var(--rp-rose-text);
  font-size: .875rem;
}
.rp-noscript {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--rp-amber-border);
  border-radius: 10px;
  background: var(--rp-amber-bg);
  color: var(--rp-amber-text);
  font-size: .875rem;
}
.rp {
  min-width: 0;
}
.rp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.rp-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.rp-sheet {
  display: none;
  flex-direction: column;
  gap: 12px;
}
.rp-sheet--open {
  display: flex;
}
.rp-sheet-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background:
    linear-gradient(
      to top,
      var(--rp-bg) 75%,
      transparent);
}
.rp-sheet-done {
  width: 100%;
  min-height: 44px;
}
.rp-btn.rp-side-toggle {
  justify-content: space-between;
  width: 100%;
}
.rp-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
@media (min-width: 1024px) {
  .rp-layout {
    grid-template-columns: 20rem minmax(0, 1fr);
  }
  .rp-side {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding-right: 4px;
  }
  .rp-btn.rp-side-toggle {
    display: none;
  }
  .rp-sheet {
    display: flex;
  }
  .rp-sheet-bar {
    display: none;
  }
}
.rp-card {
  background: var(--rp-card);
  border: 1px solid var(--rp-border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.rp-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.rp-skip:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 8px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--rp-card);
  color: var(--rp-accent);
  font-weight: 600;
  outline: 2px solid var(--rp-accent);
}
#rp-side:focus,
#rp-results:focus {
  outline: none;
}
.rp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rp-card-title {
  margin: 0;
  font-size: .875rem;
  font-weight: 600;
  color: var(--rp-text);
}
.rp-subheading {
  margin: 4px 0 0;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--rp-muted);
}
.rp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.rp-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.rp-label {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--rp-text);
}
.rp-input {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--rp-field-border);
  border-radius: 8px;
  background: var(--rp-card);
  color: var(--rp-text);
  font-size: .875rem;
}
.rp-fieldset {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--rp-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.rp-legend {
  padding: 0 4px;
  font-size: .8125rem;
  font-weight: 600;
}
.rp-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-size: .875rem;
  cursor: pointer;
}
.rp-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--rp-accent);
}
.rp-check input:disabled + span {
  color: var(--rp-muted);
}
.rp-check--strong {
  font-weight: 600;
}
.rp-check--top {
  align-items: flex-start;
}
.rp-check--top input {
  margin-top: 2px;
}
.rp-check-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-left: 26px;
}
.rp-hint {
  display: block;
  margin: 0;
  font-size: .75rem;
  color: var(--rp-muted);
}
.rp-note {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--rp-amber-border);
  border-radius: 8px;
  background: var(--rp-amber-bg);
  color: var(--rp-amber-text);
  font-size: .75rem;
}
.rp-section {
  gap: 0;
}
.rp-section[open] {
  gap: 10px;
}
.rp-section-summary,
.rp-more-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
}
.rp-section-summary::-webkit-details-marker,
.rp-more-summary::-webkit-details-marker {
  display: none;
}
.rp-section-summary::after,
.rp-more-summary::after {
  content: "\25be";
  margin-left: auto;
  color: var(--rp-muted);
}
.rp-section[open] > .rp-section-summary::after,
.rp-more-totals[open] > .rp-more-summary::after {
  content: "\25b4";
}
.rp-section-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rp-section-body .rp-card-head {
  justify-content: flex-end;
}
.rp-more-totals {
  border-top: 1px solid var(--rp-border);
  padding-top: 6px;
}
.rp-more-totals[open] {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rp-more-summary {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--rp-accent);
}
.rp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--rp-field-border);
  border-radius: 8px;
  background: var(--rp-card);
  color: var(--rp-text);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.rp-btn:hover {
  background: var(--rp-card2);
}
.rp-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.rp-link-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.rp-btn--sm {
  min-height: 32px;
  padding: 4px 10px;
  font-size: .8125rem;
}
.rp-btn--ghost {
  border-color: transparent;
  color: var(--rp-accent);
}
.rp-btn--ghost:hover {
  background: var(--rp-accent-soft);
}
.rp-btn--primary {
  background: var(--rp-accent);
  border-color: var(--rp-accent);
  color: var(--rp-accent-ink);
}
.rp-btn--primary:hover {
  background: var(--rp-accent);
  filter: brightness(1.08);
}
.rp-btn--danger {
  color: var(--rp-rose-text);
  border-color: var(--rp-rose-border);
}
.rp-btn--danger:hover {
  background: var(--rp-rose-bg);
}
.rp-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--rp-field-border);
  border-radius: 6px;
  background: var(--rp-card);
  color: var(--rp-text);
  cursor: pointer;
  font-size: .875rem;
}
.rp-icon-btn:hover {
  background: var(--rp-card2);
}
.rp-icon-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.rp-page a:focus-visible,
.rp-page button:focus-visible,
.rp-page input:focus-visible,
.rp-page select:focus-visible,
.rp-page summary:focus-visible {
  outline: 2px solid var(--rp-accent);
  outline-offset: 2px;
}
.rp-table-wrap:has(> .rp-table:focus-visible) {
  outline: 2px solid var(--rp-accent);
  outline-offset: 2px;
}
.rp-group {
  border: 1px solid var(--rp-border);
  border-radius: 10px;
}
.rp-group-summary {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: .8125rem;
  font-weight: 600;
  border-radius: 10px;
}
.rp-group-summary:hover {
  background: var(--rp-card2);
}
.rp-group-list {
  list-style: none;
  margin: 0;
  padding: 0 12px 8px;
}
.rp-chosen {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: rp-col;
}
.rp-chosen-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 2px 4px 2px 8px;
  border: 1px solid var(--rp-border);
  border-radius: 8px;
  background: var(--rp-card2);
  font-size: .8125rem;
  counter-increment: rp-col;
}
.rp-chosen-item::before {
  content: counter(rp-col);
  min-width: 1.25rem;
  color: var(--rp-muted);
  font-variant-numeric: tabular-nums;
}
.rp-chosen-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.rp-chosen-fixed {
  font-size: .75rem;
  color: var(--rp-muted);
}
.rp-chosen-moves {
  display: inline-flex;
  gap: 4px;
}
.rp-drag-handle {
  cursor: grab;
  color: var(--rp-muted);
  padding: 0 6px;
  user-select: none;
  touch-action: none;
}
.rp-chosen-dragging .rp-drag-handle {
  cursor: grabbing;
}
.rp-chosen-ghost {
  opacity: .4;
  outline: 2px dashed var(--rp-accent);
}
.rp-saved-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rp-saved-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--rp-border);
  border-radius: 10px;
}
.rp-saved-item--active {
  border-color: var(--rp-accent);
  box-shadow: 0 0 0 1px var(--rp-accent);
}
.rp-saved-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.rp-saved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rp-save-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rp-save-row {
  display: flex;
  gap: 6px;
}
.rp-save-row .rp-input {
  flex: 1;
  min-width: 0;
}
.rp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rp-tabs {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--rp-field-border);
  border-radius: 10px;
  background: var(--rp-card);
}
.rp-tab {
  min-height: 36px;
  padding: 4px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--rp-muted);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
}
.rp-tab:hover {
  color: var(--rp-text);
  background: var(--rp-card2);
}
.rp-tab--active,
.rp-tab--active:hover {
  background: var(--rp-accent);
  color: var(--rp-accent-ink);
}
.rp-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rp-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.rp-status {
  margin: 0;
  min-height: 1.25rem;
  font-size: .8125rem;
  color: var(--rp-muted);
}
.rp-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 0 0 10px;
  border: 1px solid var(--rp-slate-border);
  border-radius: 999px;
  background: var(--rp-slate-bg);
  color: var(--rp-slate-text);
  font-size: .75rem;
  font-weight: 500;
}
.rp-chip .rp-btn {
  border-radius: 999px;
}
.rp-status--loading {
  color: var(--rp-text);
}
.rp-status--error {
  color: var(--rp-rose-text);
}
.rp-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.rp-tiles {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 768px) {
  .rp-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.rp-tile {
  min-width: 0;
}
.rp-tile-label {
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--rp-muted);
}
.rp-tile-value {
  margin: 2px 0 0;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.rp-table-wrap {
  overflow: auto;
  max-height: calc(100vh - 1rem);
  max-height: calc(100dvh - 1rem);
  background: var(--rp-card);
  border: 1px solid var(--rp-border);
  border-radius: 12px;
  min-width: 0;
}
.rp-table-wrap[data-grid] {
  max-height: var(--rp-grid-max, calc(100vh - 1rem));
  max-height: var(--rp-grid-max, calc(100dvh - 1rem));
}
.rp-hscroll {
  position: sticky;
  bottom: var(--rp-dock-offset,0px);
  z-index: 4;
  overflow-x: auto;
  overflow-y: hidden;
  height: 14px;
  background: var(--rp-card);
  border: 1px solid var(--rp-border);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}
.rp-hscroll-inner {
  height: 1px;
}
.rp-hscroll[hidden] {
  display: none;
}
.rp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .8125rem;
}
.rp-table th,
.rp-table td {
  padding: 7px 12px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  border-bottom: 1px solid var(--rp-border);
}
.rp-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--rp-card2);
  font-weight: 600;
  color: var(--rp-text);
  border-bottom-color: var(--rp-field-border);
}
.rp-table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: var(--rp-card2);
  font-weight: 600;
  border-top: 1px solid var(--rp-field-border);
  border-bottom: 0;
}
.rp-table tbody tr:hover td {
  background: var(--rp-card2);
}
.rp-table th:first-of-type,
.rp-table td:first-of-type:not(.rp-empty) {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--rp-card);
  border-right: 1px solid var(--rp-field-border);
}
.rp-table thead th:first-of-type,
.rp-table tfoot td:first-of-type {
  z-index: 3;
  background: var(--rp-card2);
}
.rp-table tbody tr:hover td:first-of-type:not(.rp-empty) {
  background: var(--rp-card2);
}
.rp-table .rp-num {
  text-align: right;
}
.rp-table[role=grid] {
  outline: none;
}
.rp-table tbody td:not(.rp-empty) {
  cursor: cell;
}
.rp-table tbody tr.rp-row-active td,
.rp-table tbody tr.rp-row-active td:first-of-type:not(.rp-empty) {
  background: var(--rp-card2);
}
.rp-table tbody tr.rp-row-active td:first-of-type:not(.rp-cell-active) {
  box-shadow: inset 3px 0 0 var(--rp-accent);
}
.rp-table thead th.rp-col-active {
  background: linear-gradient(var(--rp-accent-soft), var(--rp-accent-soft)) var(--rp-card2);
  color: var(--rp-text);
}
.rp-table tbody tr td.rp-cell-active,
.rp-table tbody tr td.rp-cell-active:first-of-type:not(.rp-empty) {
  box-shadow: inset 0 0 0 2px var(--rp-accent);
  background: linear-gradient(var(--rp-accent-soft), var(--rp-accent-soft)) var(--rp-card);
}
.rp-num {
  font-variant-numeric: tabular-nums;
}
.rp-link {
  color: var(--rp-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rp-empty {
  padding: 24px 12px !important;
  text-align: center !important;
  color: var(--rp-muted);
  white-space: normal !important;
}
.rp-escalas {
  font-family: var(--rp-mono);
}
.rp-extras {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rp-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding: 0 8px;
  border: 1px solid var(--rp-slate-border);
  border-radius: 999px;
  background: var(--rp-slate-bg);
  color: var(--rp-slate-text);
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
td > span.rp-badge:first-of-type {
  margin-left: 0;
}
.rp-badge--warn {
  background: var(--rp-amber-bg);
  border-color: var(--rp-amber-border);
  color: var(--rp-amber-text);
}
.rp-badge--muted {
  background: transparent;
  border-style: dashed;
  color: var(--rp-muted);
}
.rp-escala {
  white-space: nowrap;
}
.rp-escala--done {
  color: var(--rp-emerald-text);
}
.rp-escala--skipped {
  text-decoration: line-through;
  color: var(--rp-muted);
}
.rp-escala--pending {
  color: var(--rp-amber-text);
}
.rp-charts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 768px) {
  .rp-charts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.rp-chart {
  margin: 0;
  min-width: 0;
}
.rp-chart-title {
  margin-bottom: 6px;
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--rp-muted);
}
.rp-chart-canvas {
  position: relative;
  min-width: 0;
}
.rp-toast-slot {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: calc(100vw - 32px);
}
.rp-toast {
  padding: 10px 14px;
  border: 1px solid;
  border-radius: 10px;
  box-shadow: var(--rp-shadow);
  font-size: .875rem;
  font-weight: 500;
}
.rp-toast--success {
  background: var(--rp-emerald-bg);
  border-color: var(--rp-emerald-border);
  color: var(--rp-emerald-text);
}
.rp-toast--error {
  background: var(--rp-rose-bg);
  border-color: var(--rp-rose-border);
  color: var(--rp-rose-text);
}
html.dark .rp-toast--success {
  background: #052e24;
}
html.dark .rp-toast--error {
  background: #3b0a17;
}
@media (max-width: 639px) {
  .rp-input,
  .rp-btn,
  .rp-btn--sm,
  .rp-tab,
  .rp-check,
  .rp-group-summary,
  .rp-chosen-item {
    min-height: 44px;
  }
  .rp-check input {
    width: 24px;
    height: 24px;
  }
  .rp-page .pmdt-trigger {
    min-height: 44px;
  }
  .rp-icon-btn {
    width: 44px;
    height: 44px;
  }
  .rp-drag-handle {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .rp-section-summary,
  .rp-more-summary {
    min-height: 44px;
  }
  .rp-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
  }
  .rp-table td {
    vertical-align: middle;
  }
  .rp-input {
    font-size: 1rem;
  }
  .rp-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .rp-tabs {
    display: flex;
  }
  .rp-tab {
    flex: 1;
    padding: 4px 8px;
  }
  .rp-downloads .rp-btn {
    flex: 1;
  }
  .rp-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
