/* ═══════════════════════════════════════════════════
   Ruqyah Survey Plugin — Frontend CSS
   Islamic Green Theme with Arabic-inspired elegance
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Noto+Serif+Bengali:wght@400;600;700&display=swap');

:root {
  --rsp-primary:     #1B6B45;
  --rsp-primary-lt:  #27a165;
  --rsp-primary-dk:  #124830;
  --rsp-gold:        #C9A94B;
  --rsp-gold-lt:     #f0d080;
  --rsp-bg:          #f8faf9;
  --rsp-surface:     #ffffff;
  --rsp-border:      #d8e8e0;
  --rsp-text:        #1a2e25;
  --rsp-muted:       #5a7a6a;
  --rsp-danger:      #c0392b;
  --rsp-warning-bg:  #fffbeb;
  --rsp-warning-bd:  #d4a017;
  --rsp-radius:      14px;
  --rsp-radius-sm:   8px;
  --rsp-shadow:      0 2px 16px rgba(27,107,69,0.10);
  --rsp-shadow-lg:   0 8px 32px rgba(27,107,69,0.16);
}

/* ── Base ── */
#rsp-root {
  font-family: 'Hind Siliguri', 'Noto Serif Bengali', sans-serif;
  color: var(--rsp-text);
  background: var(--rsp-bg);
  min-height: 500px;
  position: relative;
}

/* ── Loading ── */
.rsp-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.rsp-spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--rsp-border);
  border-top-color: var(--rsp-primary);
  border-radius: 50%;
  animation: rsp-spin 0.8s linear infinite;
}
@keyframes rsp-spin { to { transform: rotate(360deg); } }

/* ── Screens ── */
.rsp-screen {
  animation: rsp-fadein 0.3s ease;
}
@keyframes rsp-fadein { from { opacity:0; transform: translateY(6px); } to { opacity:1; transform: none; } }

/* ══════════════════════════════
   HOME PAGE
   ══════════════════════════════ */
.rsp-home { padding: 0 0 2rem; }

.rsp-brand {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  background: linear-gradient(160deg, var(--rsp-primary-dk) 0%, var(--rsp-primary) 100%);
  position: relative;
  overflow: hidden;
}
.rsp-brand::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.rsp-brand-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.25rem;
  position: relative;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.rsp-brand-title span { color: var(--rsp-gold-lt); }
.rsp-brand-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  position: relative;
}

.rsp-home-body { padding: 1.5rem 1rem 0; }
.rsp-home-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--rsp-primary-dk);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rsp-home-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rsp-border);
}

.rsp-survey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.rsp-survey-card {
  background: var(--rsp-surface);
  border: 1.5px solid var(--rsp-border);
  border-radius: var(--rsp-radius);
  padding: 1.1rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.rsp-survey-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-color, var(--rsp-primary));
  opacity: 0.7;
}
.rsp-survey-card:hover {
  border-color: var(--rsp-primary);
  box-shadow: var(--rsp-shadow-lg);
  transform: translateY(-2px);
}
.rsp-card-icon {
  font-size: 1.6rem;
  width: 44px; height: 44px;
  border-radius: var(--rsp-radius-sm);
  background: var(--card-color, #e8f5ee);
  display: flex; align-items: center; justify-content: center;
}
.rsp-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--rsp-text);
  line-height: 1.35;
}
.rsp-card-desc {
  font-size: 0.75rem;
  color: var(--rsp-muted);
}
.rsp-card-arrow {
  font-size: 0.75rem;
  color: var(--rsp-primary);
  margin-top: auto;
  font-weight: 600;
}

/* ══════════════════════════════
   QUIZ PAGE
   ══════════════════════════════ */
.rsp-quiz { padding: 0 0 2rem; }

.rsp-quiz-header {
  background: var(--rsp-primary);
  padding: 1rem 1.25rem 1.25rem;
  color: #fff;
}
.rsp-quiz-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}
.rsp-back-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.rsp-back-btn:hover { background: rgba(255,255,255,0.25); }
.rsp-quiz-title {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  flex: 1;
}
.rsp-q-counter {
  font-size: 0.78rem;
  background: rgba(255,255,255,0.15);
  padding: 3px 10px;
  border-radius: 20px;
  color: rgba(255,255,255,0.9);
}

.rsp-progress-track {
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  overflow: hidden;
}
.rsp-progress-fill {
  height: 100%;
  background: var(--rsp-gold-lt);
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(.4,0,.2,1);
}

.rsp-quiz-body { padding: 1.5rem 1.25rem; }
.rsp-question-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--rsp-text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  min-height: 3.5rem;
}

.rsp-answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.5rem;
}
.rsp-answer-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--rsp-border);
  border-radius: var(--rsp-radius);
  background: var(--rsp-surface);
  cursor: pointer;
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 0.95rem;
  color: var(--rsp-text);
  text-align: left;
  transition: all 0.18s ease;
  position: relative;
}
.rsp-answer-btn::before {
  content: '';
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--rsp-border);
  flex-shrink: 0;
  transition: all 0.18s;
}
.rsp-answer-btn:hover {
  border-color: var(--rsp-primary);
  background: #f0faf4;
}
.rsp-answer-btn.rsp-selected {
  border-color: var(--rsp-primary);
  background: #e8f5ee;
}
.rsp-answer-btn.rsp-selected::before {
  background: var(--rsp-primary);
  border-color: var(--rsp-primary);
  box-shadow: inset 0 0 0 4px #e8f5ee;
}
.rsp-answer-btn.rsp-yes    { --hover-color: #fef0ef; }
.rsp-answer-btn.rsp-mid    { --hover-color: #fefaeb; }
.rsp-answer-btn.rsp-no     { --hover-color: #f0faf4; }
.rsp-answer-btn.rsp-selected.rsp-yes { border-color: #c0392b; background: #fef0ef; }
.rsp-answer-btn.rsp-selected.rsp-yes::before { background: #c0392b; border-color: #c0392b; box-shadow: inset 0 0 0 4px #fef0ef; }
.rsp-answer-btn.rsp-selected.rsp-mid { border-color: #e67e22; background: #fefaeb; }
.rsp-answer-btn.rsp-selected.rsp-mid::before { background: #e67e22; border-color: #e67e22; box-shadow: inset 0 0 0 4px #fefaeb; }

.rsp-nav-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.rsp-nav-btn {
  padding: 0.75rem;
  border-radius: var(--rsp-radius-sm);
  border: 1.5px solid var(--rsp-border);
  background: var(--rsp-surface);
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--rsp-text);
  transition: all 0.15s;
}
.rsp-nav-btn:hover:not(:disabled) { background: #f0faf4; border-color: var(--rsp-primary); }
.rsp-nav-btn:disabled { opacity: 0.35; cursor: default; }
.rsp-nav-btn.rsp-next {
  background: var(--rsp-primary);
  color: #fff;
  border-color: var(--rsp-primary);
}
.rsp-nav-btn.rsp-next:hover:not(:disabled) { background: var(--rsp-primary-lt); }

/* ══════════════════════════════
   RESULT PAGE
   ══════════════════════════════ */
.rsp-result { padding: 0 0 2rem; }

.rsp-result-hero {
  background: linear-gradient(160deg, var(--rsp-primary-dk), var(--rsp-primary));
  padding: 2rem 1.25rem;
  text-align: center;
  color: #fff;
}
.rsp-result-hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.rsp-result-hero p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.rsp-result-body { padding: 1.25rem; }

.rsp-summary-card {
  background: var(--rsp-surface);
  border: 1px solid var(--rsp-border);
  border-radius: var(--rsp-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--rsp-shadow);
}
.rsp-summary-row {
  font-size: 0.88rem;
  color: var(--rsp-text);
  margin-bottom: 5px;
  line-height: 1.5;
}
.rsp-summary-row strong { color: var(--rsp-primary-dk); }
.rsp-verdict-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rsp-primary-dk);
  margin-top: 10px;
  line-height: 1.55;
  padding-top: 10px;
  border-top: 1px solid var(--rsp-border);
}

/* Score ring */
.rsp-score-ring-wrap {
  text-align: center;
  margin: 0.5rem 0 1.25rem;
}
.rsp-score-svg { display: block; margin: 0 auto; }
.rsp-score-label { font-size: 0.8rem; color: var(--rsp-muted); margin-top: 6px; }

/* Section titles */
.rsp-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rsp-primary-dk);
  text-align: center;
  margin: 1.5rem 0 1rem;
  position: relative;
}
.rsp-section-title::before,
.rsp-section-title::after {
  content: '❖';
  font-size: 0.6rem;
  color: var(--rsp-gold);
  vertical-align: middle;
  margin: 0 8px;
}

/* Karanio (করণীয়) */
.rsp-karanio-box {
  background: var(--rsp-surface);
  border: 1px solid var(--rsp-border);
  border-radius: var(--rsp-radius);
  padding: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--rsp-text);
  box-shadow: var(--rsp-shadow);
}
.rsp-karanio-intro {
  font-weight: 600;
  color: var(--rsp-primary-dk);
  margin-bottom: 0.75rem;
}
.rsp-karanio-step {
  display: flex;
  gap: 10px;
  margin-bottom: 0.65rem;
  align-items: flex-start;
}
.rsp-step-num {
  background: var(--rsp-primary);
  color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.rsp-italic-block {
  font-style: italic;
  font-weight: 600;
  color: var(--rsp-primary-dk);
  border-left: 3px solid var(--rsp-gold);
  padding-left: 12px;
  margin: 0.85rem 0;
  line-height: 1.7;
}
.rsp-warning-box {
  background: var(--rsp-warning-bg);
  border: 1px solid var(--rsp-warning-bd);
  border-radius: var(--rsp-radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.83rem;
  color: #5a3a00;
  line-height: 1.6;
  margin-top: 1rem;
}

/* AI loading */
.rsp-ai-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--rsp-muted);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}
.rsp-dots { display: flex; gap: 4px; }
.rsp-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rsp-primary);
  animation: rsp-dot 1.2s infinite;
}
.rsp-dots span:nth-child(2) { animation-delay: .2s; }
.rsp-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes rsp-dot { 0%,80%,100%{opacity:.25;transform:scale(.8)} 40%{opacity:1;transform:scale(1)} }

/* Problems list */
.rsp-problems-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rsp-problem-item {
  background: var(--rsp-surface);
  border: 1px solid var(--rsp-border);
  border-radius: var(--rsp-radius-sm);
  padding: 0.7rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
}
.rsp-problem-q { flex: 1; color: var(--rsp-text); line-height: 1.45; }
.rsp-problem-q-num {
  font-size: 0.75rem;
  color: var(--rsp-muted);
  display: block;
  margin-bottom: 2px;
}
.rsp-problem-ans {
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.82rem;
}
.rsp-ans-yes { color: #c0392b; }
.rsp-ans-mid { color: #e67e22; }

/* Action buttons */
.rsp-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1.5rem;
}
.rsp-action-btn {
  padding: 0.8rem;
  border-radius: var(--rsp-radius-sm);
  border: none;
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.rsp-action-btn:active { transform: scale(0.97); }
.rsp-btn-del  { background: #c0392b; color: #fff; }
.rsp-btn-copy { background: var(--rsp-primary); color: #fff; }
.rsp-btn-new  { background: var(--rsp-gold); color: var(--rsp-primary-dk); grid-column: 1/-1; }

/* Footer */
.rsp-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.75rem;
  color: var(--rsp-muted);
  border-top: 1px solid var(--rsp-border);
  margin-top: 1rem;
}
.rsp-footer a { color: var(--rsp-primary); text-decoration: none; }

/* Responsive */
@media (max-width: 420px) {
  .rsp-survey-grid { grid-template-columns: 1fr 1fr; }
  .rsp-action-row  { grid-template-columns: 1fr; }
  .rsp-btn-new     { grid-column: unset; }
}

/* ══════════════════════════════
   PRE-SURVEY POPUP  (v2)
   ══════════════════════════════ */
#rsp-popup-overlay,
#rsp-history-overlay {
  position: fixed; inset: 0;
  background: rgba(10,30,20,0.65);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(3px);
}
#rsp-popup-overlay.rsp-popup-visible,
#rsp-history-overlay.rsp-popup-visible { opacity: 1; }

.rsp-popup {
  background: #fff;
  border-radius: 18px;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}
#rsp-popup-overlay.rsp-popup-visible .rsp-popup,
#rsp-history-overlay.rsp-popup-visible .rsp-popup { transform: none; }

.rsp-popup-header {
  background: linear-gradient(135deg, var(--rsp-primary-dk), var(--rsp-primary));
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: center;
  color: #fff;
}
.rsp-popup-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.rsp-popup-header h2 { margin: 0 0 0.25rem; font-size: 1.2rem; font-weight: 700; color: #fff; }
.rsp-popup-header p  { margin: 0; font-size: 0.8rem; color: rgba(255,255,255,0.75); }

.rsp-popup-body { padding: 1.25rem; }

.rsp-popup-field { margin-bottom: 0.85rem; }
.rsp-popup-field label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--rsp-muted); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.rsp-required { color: #c0392b; }
.rsp-popup-field input,
.rsp-popup-field textarea {
  width: 100%; box-sizing: border-box;
  padding: 9px 12px;
  border: 1.5px solid var(--rsp-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Hind Siliguri', sans-serif;
  color: var(--rsp-text);
  background: #fafcfb;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}
.rsp-popup-field input:focus,
.rsp-popup-field textarea:focus {
  outline: none;
  border-color: var(--rsp-primary);
  box-shadow: 0 0 0 3px rgba(27,107,69,0.12);
  background: #fff;
}

.rsp-popup-error {
  background: #fff0f0; border: 1px solid #ffcdd2;
  border-radius: 6px; padding: 8px 12px;
  font-size: 13px; color: #c0392b;
  margin-bottom: 0.75rem;
}

.rsp-popup-submit {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--rsp-primary), var(--rsp-primary-lt));
  color: #fff; border: none;
  border-radius: 10px;
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 1rem; font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  box-shadow: 0 4px 14px rgba(27,107,69,0.3);
}
.rsp-popup-submit:hover { opacity: 0.92; }
.rsp-popup-submit:active { transform: scale(0.98); }
.rsp-popup-submit:disabled { opacity: 0.6; cursor: default; }

.rsp-popup-note {
  text-align: center; font-size: 11px;
  color: var(--rsp-muted); margin: 0.65rem 0 0;
}

/* ══════════════════════════════
   HISTORY MODAL  (v2)
   ══════════════════════════════ */
.rsp-history-modal { max-width: 520px; }
.rsp-history-modal .rsp-popup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; text-align: left;
}
.rsp-history-modal .rsp-popup-header h2 { margin: 0; font-size: 1rem; }
.rsp-history-close {
  background: rgba(255,255,255,0.2); border: none; color: #fff;
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.rsp-history-close:hover { background: rgba(255,255,255,0.35); }

.rsp-history-body { padding: 1rem; max-height: 70vh; overflow-y: auto; }
.rsp-hist-loading { display: flex; justify-content: center; padding: 2rem; }
.rsp-hist-empty   { text-align: center; padding: 2rem; color: var(--rsp-muted); font-size: 0.9rem; }
.rsp-hist-user {
  font-size: 0.85rem; font-weight: 600;
  color: var(--rsp-primary-dk);
  margin-bottom: 0.85rem;
  padding: 6px 12px; background: #e8f5ee; border-radius: 20px;
  display: inline-block;
}

.rsp-hist-card {
  border: 1px solid var(--rsp-border);
  border-radius: 10px; padding: 0.85rem; margin-bottom: 10px;
  background: #fafcfb;
}
.rsp-hist-latest {
  border-color: var(--rsp-primary);
  background: #f0faf5;
  position: relative;
}
.rsp-hist-latest::before {
  content: 'সর্বশেষ';
  position: absolute; top: -10px; left: 12px;
  font-size: 10px; font-weight: 700;
  background: var(--rsp-primary); color: #fff;
  padding: 2px 8px; border-radius: 10px;
}
.rsp-hist-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rsp-hist-icon     { font-size: 1.5rem; }
.rsp-hist-info     { flex: 1; }
.rsp-hist-title    { font-size: 0.88rem; font-weight: 600; color: var(--rsp-text); }
.rsp-hist-date     { font-size: 0.75rem; color: var(--rsp-muted); }
.rsp-hist-score    { font-size: 1.1rem; font-weight: 700; }

.rsp-hist-problems { border-top: 1px solid var(--rsp-border); padding-top: 7px; }
.rsp-hist-prob {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 0.78rem; color: var(--rsp-muted); padding: 3px 0;
  line-height: 1.4;
}
.rsp-hist-ans   { font-weight: 600; white-space: nowrap; }
.rsp-hist-more  { font-size: 0.75rem; color: var(--rsp-primary); margin-top: 4px; }

/* ══════════════════════════════
   HOME TOP ROW  (v2)
   ══════════════════════════════ */
.rsp-home-top-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; flex-wrap: wrap; gap: 8px;
}
.rsp-history-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: #fff; border: 1.5px solid var(--rsp-primary);
  border-radius: 20px; color: var(--rsp-primary);
  font-family: 'Hind Siliguri', sans-serif;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.rsp-history-btn:hover { background: var(--rsp-primary); color: #fff; }
.rsp-hist-badge {
  background: var(--rsp-primary); color: #fff;
  font-size: 10px; width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.rsp-history-btn:hover .rsp-hist-badge { background: #fff; color: var(--rsp-primary); }

/* User tag in quiz */
.rsp-user-tag {
  display: inline-block; font-size: 12px;
  background: rgba(27,107,69,0.1); color: var(--rsp-primary-dk);
  padding: 4px 10px; border-radius: 20px; margin-bottom: 1rem;
  font-weight: 500;
}
/* User info in result */
.rsp-result-user {
  font-size: 0.8rem; color: rgba(255,255,255,0.8); margin-top: 6px;
}

/* History and new buttons in action row */
.rsp-action-row { grid-template-columns: 1fr 1fr; }
.rsp-btn-hist { background: var(--rsp-primary); color: #fff; }
.rsp-btn-new  { background: var(--rsp-gold); color: var(--rsp-primary-dk); grid-column: 1/-1; }

/* Nav button active state */
.rsp-nav-btn.rsp-active {
  background: var(--rsp-primary); color: #fff; border-color: var(--rsp-primary);
}
