.rp-shell {
  display: grid;
  grid-template-columns: minmax(340px, 1.1fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 1024px) {
  .rp-shell {
    grid-template-columns: 1fr;
  }
}

.rp-panel {
  border: 1px solid var(--border, #d0d7de);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(150deg, #f7fbff, #eef5ff);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.rp-panel--results {
  background: linear-gradient(160deg, #0b1220, #0e1a2e);
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, 0.16);
  box-shadow: 0 16px 40px rgba(10, 19, 35, 0.45);
}

.rp-subtext {
  margin: 0 0 10px;
  color: var(--muted, #475569);
  font-size: 14px;
}

.rp-banner {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #7f1d1d;
  margin-bottom: 10px;
}

.rp-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

.rp-field textarea,
.rp-field input[type="number"] {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border, #d0d7de);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 24px rgba(15, 23, 42, 0.06);
  font-size: 15px;
  line-height: 1.5;
}

.rp-field textarea {
  min-height: 180px;
  resize: vertical;
}

.rp-field input:focus-visible,
.rp-field textarea:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.rp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #0f5132;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.rp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.rp-toggle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--border, #d0d7de);
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.rp-toggle input {
  margin-top: 4px;
}

.rp-toggle strong {
  display: block;
  font-size: 14px;
}

.rp-toggle small {
  color: var(--muted, #475569);
  display: block;
  margin-top: 2px;
}

.rp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.rp-actions .primary {
  min-width: 150px;
}

.rp-status {
  margin-top: 8px;
  color: var(--muted, #475569);
  font-size: 14px;
}

.rp-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.rp-meta-label {
  font-size: 13px;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rp-meta-value {
  font-size: 15px;
  font-weight: 700;
}

.rp-output {
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.rp-output h3 {
  margin: 0 0 8px;
}

.rp-list-box {
  min-height: 80px;
}

.rp-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.rp-list li {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(226, 232, 240, 0.16);
}

.rp-panel--results .rp-list li {
  border-color: rgba(226, 232, 240, 0.28);
}

.rp-panel--results p.small {
  color: #cbd5e1;
}
