
:root{
  --rq-base:#f8fafc;
  --rq-card:#ffffff;
  --rq-ink:#0f172a;
  --rq-muted:#64748b;
  --rq-line:#e2e8f0;
  --rq-brand:#2563eb;
  --rq-accent:#4f46e5;
  --rq-success:#10b981;
  --rq-warning:#f59e0b;
  --rq-dark:#0f172a;
}

html[data-theme="spring"]{--rq-brand:#16a34a;--rq-accent:#65a30d;}
html[data-theme="summer"]{--rq-brand:#ea580c;--rq-accent:#f59e0b;}
html[data-theme="autumn"]{--rq-brand:#b45309;--rq-accent:#d97706;}
html[data-theme="winter"]{--rq-brand:#0f766e;--rq-accent:#0284c7;}
html[data-theme="blackfriday"]{--rq-base:#020617;--rq-card:#0f172a;--rq-ink:#e2e8f0;--rq-muted:#94a3b8;--rq-line:#1e293b;--rq-brand:#e11d48;--rq-accent:#8b5cf6;--rq-dark:#020617;}
html[data-theme="christmas"]{--rq-brand:#dc2626;--rq-accent:#16a34a;}
html[data-theme="easter"]{--rq-brand:#7c3aed;--rq-accent:#ec4899;}
html[data-theme="local-fair"]{--rq-brand:#0891b2;--rq-accent:#16a34a;}
html[data-theme="back-to-school"]{--rq-brand:#1d4ed8;--rq-accent:#f97316;}

body{
  background-color:var(--rq-base);
  color:var(--rq-ink);
  -webkit-font-smoothing:antialiased;
  font-family:'Inter',sans-serif;
}

.rq-page-wrap{min-height:calc(100vh - 92px);}
.rq-card{
  background-color:var(--rq-card);
  border:1px solid var(--rq-line);
  border-radius:1.5rem;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
}
.rq-subcard{
  background:#fff;
  border:1px solid #edf2f7;
  border-radius:1rem;
}
.rq-soft-panel{
  background:#f8fafc;
  border:1px solid var(--rq-line);
  border-radius:1rem;
  padding:1rem;
}
.rq-input,.rq-select,textarea.rq-input{
  width:100%;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  border-radius:.75rem;
  padding:.85rem 1rem;
  outline:none;
  font-size:.95rem;
  font-weight:600;
  color:var(--rq-ink);
}
.rq-input:focus,.rq-select:focus{
  border-color:var(--rq-brand);
  background:#fff;
  box-shadow:0 0 0 4px rgba(37,99,235,.08);
}
.rq-btn,.rq-btn-lg,.btn-primary{
  background-color:var(--rq-brand);
  color:#fff;
  font-weight:700;
  font-size:14px;
  border-radius:.75rem;
  padding:.7rem 1.15rem;
  text-align:center;
  cursor:pointer;
  transition:background-color .2s, transform .2s;
  border:none;
  outline:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
}
.rq-btn:hover,.rq-btn-lg:hover,.btn-primary:hover{background-color:#1d4ed8;transform:translateY(-1px);}
.rq-btn-lg{padding:.9rem 1.25rem;font-size:15px;}
.rq-chip,.rq-chip-lg,.btn-outline{
  background:#fff;
  color:var(--rq-ink);
  font-weight:700;
  font-size:14px;
  border-radius:.75rem;
  padding:.7rem 1.15rem;
  text-align:center;
  cursor:pointer;
  transition:all .2s;
  border:1px solid #cbd5e1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
}
.rq-chip:hover,.rq-chip-lg:hover,.btn-outline:hover{background:#f1f5f9;border-color:#94a3b8;}
.rq-chip-lg{padding:.9rem 1.25rem;}
.rq-icon-btn{
  width:42px;height:42px;border-radius:999px;border:1px solid var(--rq-line);
  display:inline-flex;align-items:center;justify-content:center;background:#fff;
}
.rq-badge,.rq-badge-outline{
  display:inline-flex;align-items:center;gap:.35rem;
  border-radius:999px;padding:.4rem .75rem;font-size:11px;
  font-weight:800;letter-spacing:.08em;text-transform:uppercase;
}
.rq-badge{background:rgba(37,99,235,.1);color:var(--rq-brand);}
.rq-badge-outline{background:#fff;border:1px solid var(--rq-line);color:var(--rq-ink);}
.rq-nav-card{
  display:block;padding:1rem 1rem;background:#fff;border:1px solid var(--rq-line);
  border-radius:1rem;font-weight:800;transition:all .2s;
}
.rq-nav-card:hover{border-color:var(--rq-brand); box-shadow:0 8px 20px rgba(37,99,235,.08);}
.rq-kpi{padding:1.1rem;border-radius:1rem;background:#fff;border:1px solid var(--rq-line);}
.rq-kpi-num{font-size:2rem;font-weight:900;line-height:1;}
.rq-kpi-label{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:var(--rq-muted);font-weight:900;margin-top:.5rem;}
.rq-pretty-json{white-space:pre-wrap;word-break:break-word;background:#020617;color:#e2e8f0;border-radius:1rem;padding:1rem;font-size:12px;min-height:180px;overflow:auto;}
.rq-test-card{padding:1rem;border:1px solid var(--rq-line);border-radius:1rem;background:#fff;}
.rq-test-head{font-weight:900;margin-bottom:.75rem;font-size:13px;letter-spacing:.08em;text-transform:uppercase;}
.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;display:-webkit-box;}
.no-scrollbar::-webkit-scrollbar{display:none;}
.no-scrollbar{-ms-overflow-style:none;scrollbar-width:none;}
.cat-icon-box{
  width:64px;height:64px;border-radius:16px;background:#fff;border:1px solid var(--rq-line);
  display:flex;align-items:center;justify-content:center;transition:all .2s ease;cursor:pointer;
  box-shadow:0 1px 3px rgba(0,0,0,0.05);
}
.cat-icon-box:hover{border-color:var(--rq-brand);transform:translateY(-2px);box-shadow:0 4px 6px rgba(0,0,0,0.05);}
.modal-backdrop{
  position:fixed;inset:0;background-color:rgba(15,23,42,.5);backdrop-filter:blur(2px);z-index:1000;
  display:none;align-items:center;justify-content:center;
}
.modal-backdrop.flex{display:flex;}
.modal-panel{
  background:#fff;border-radius:16px;max-height:90vh;overflow-y:auto;
  box-shadow:0 20px 25px -5px rgba(0,0,0,.1);width:100%;max-width:500px;
}
.autocomplete-box{
  position:absolute;top:100%;left:0;right:0;background:white;
  border:1px solid var(--rq-line);border-radius:12px;margin-top:4px;
  max-height:250px;overflow-y:auto;z-index:50;box-shadow:0 10px 15px -3px rgba(0,0,0,.1);
}
.autocomplete-item{padding:12px 16px;cursor:pointer;border-bottom:1px solid #f1f5f9;}
.autocomplete-item:hover{background-color:#eff6ff;}
#toast-container{
  position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);
  background-color:#1e293b;color:white;padding:12px 24px;border-radius:999px;
  font-weight:500;font-size:14px;z-index:1100;opacity:0;pointer-events:none;
  transition:all .3s ease;box-shadow:0 10px 15px -3px rgba(0,0,0,.1);
}
#toast-container.show{opacity:1;transform:translateX(-50%) translateY(0);}
.rq-debug-shell{
  position:fixed;bottom:16px;right:16px;z-index:80;width:420px;max-width:92vw;
  background:#020617;color:#e2e8f0;border-radius:1.25rem;box-shadow:0 20px 40px rgba(0,0,0,.35);
  border:1px solid #1e293b;overflow:hidden;
}
.rq-hero-title{font-size:2.3rem;line-height:1;font-weight:800;letter-spacing:-0.03em;}
@media(min-width:768px){.rq-hero-title{font-size:4.2rem;}}
.rq-surface{
  background:#fff;border:1px solid var(--rq-line);border-radius:1.5rem;box-shadow:0 10px 30px rgba(15,23,42,.06);
}
.rq-dist-big{font-size:1.6rem;font-weight:900;line-height:1;color:var(--rq-success);}
.rq-dist-note{font-size:11px;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.08em;}
.rq-section-title{font-size:1.35rem;font-weight:800;color:var(--rq-ink);}
