/* Frontend */
.gypg-test-wrapper{
  --gypg-bg:#ffffff;
  --gypg-ink:#111827;
  --gypg-muted:#6b7280;
  --gypg-line:#e5e7eb;
  --gypg-primary:#111827;
  --gypg-accent:#f59e0b;
  --gypg-soft:#f9fafb;
  max-width:980px;
  margin:0 auto;
  color:var(--gypg-ink);
  font-family:Arial, Helvetica, sans-serif;
}
.gypg-progress{margin:0 0 20px;}
.gypg-progress__bar{height:10px;background:#eef2f7;border-radius:999px;overflow:hidden;}
.gypg-progress__fill{display:block;height:100%;width:0;background:linear-gradient(90deg,#111827,#f59e0b);transition:width .3s ease;}
.gypg-progress__meta{display:flex;justify-content:space-between;margin-top:8px;font-size:14px;color:var(--gypg-muted);}
.gypg-screen{display:none;}
.gypg-screen.is-active{display:block;}
.gypg-card{
  background:var(--gypg-bg);
  border:1px solid var(--gypg-line);
  border-radius:24px;
  padding:28px;
  box-shadow:0 20px 60px rgba(17,24,39,.06);
}
.gypg-card--hero{padding:36px;}
.gypg-card--center{text-align:center;padding:48px 28px;}
.gypg-badge{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  letter-spacing:.02em;
  background:#fff7e6;
  color:#92400e;
  margin-bottom:14px;
}
.gypg-subtitle{font-size:18px;color:var(--gypg-muted);margin:8px 0 18px;}
.gypg-copy p{margin:0 0 14px;}
.gypg-highlights{
  margin:20px 0 28px;
  padding-left:18px;
  color:var(--gypg-muted);
}
.gypg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.gypg-field{display:flex;flex-direction:column;gap:8px;}
.gypg-field span{font-weight:700;}
.gypg-field input,.gypg-field textarea,.gypg-field select{
  border:1px solid var(--gypg-line);
  border-radius:14px;
  padding:14px 16px;
  font-size:15px;
}
.gypg-field--full{grid-column:1/-1;}
.gypg-field--hidden{display:none !important;}
.gypg-checkbox{
  display:flex;
  gap:12px;
  align-items:flex-start;
  color:var(--gypg-muted);
}
.gypg-checkbox input{margin-top:3px;}
.gypg-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:24px;flex-wrap:wrap;}
.gypg-button{
  border:none;
  border-radius:14px;
  padding:14px 18px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:160px;
}
.gypg-button--primary{background:var(--gypg-primary);color:#fff;}
.gypg-button--ghost{background:#f3f4f6;color:var(--gypg-ink);}
.gypg-card__head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:22px;flex-wrap:wrap;}
.gypg-muted{color:var(--gypg-muted);}
.gypg-question-list{display:grid;gap:18px;}
.gypg-question-card{
  border:1px solid var(--gypg-line);
  border-radius:20px;
  padding:20px;
  background:#fff;
}
.gypg-question-card__top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:12px;
  flex-wrap:wrap;
}
.gypg-question-card__number{font-size:13px;color:var(--gypg-muted);font-weight:700;}
.gypg-question-card__dimension{
  font-size:12px;
  background:#f3f4f6;
  border-radius:999px;
  padding:6px 10px;
  color:#374151;
}
.gypg-question-card__text{
  font-size:18px;
  line-height:1.45;
  margin:0 0 18px;
}
.gypg-scale{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
}
.gypg-scale__option{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:center;
  text-align:center;
  border:1px solid var(--gypg-line);
  border-radius:18px;
  padding:14px 10px;
  cursor:pointer;
  transition:border-color .2s ease,transform .2s ease,background .2s ease;
}
.gypg-scale__option input{display:none;}
.gypg-scale__pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:999px;
  background:#f3f4f6;
  font-weight:700;
}
.gypg-scale__option small{font-size:12px;line-height:1.3;color:var(--gypg-muted);}
.gypg-scale__option:has(input:checked){
  border-color:#111827;
  background:#fff8eb;
  transform:translateY(-1px);
}
.gypg-scale__option:has(input:checked) .gypg-scale__pill{
  background:#111827;
  color:#fff;
}
.gypg-inline-error{
  color:#b91c1c;
  font-weight:700;
  margin-top:14px;
  min-height:20px;
}
.gypg-loader{
  width:44px;
  height:44px;
  border-radius:999px;
  border:4px solid #e5e7eb;
  border-top-color:#111827;
  margin:0 auto 16px;
  animation:gypgSpin .8s linear infinite;
}
@keyframes gypgSpin{to{transform:rotate(360deg);}}
.gypg-result-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  margin-top:24px;
}
.gypg-result-list{
  margin:12px 0 0;
  padding-left:18px;
  color:#374151;
}
.gypg-result-list li{margin-bottom:8px;}
.gypg-message-box,.gypg-score-board,.gypg-note{
  margin-top:24px;
  border:1px solid var(--gypg-line);
  border-radius:18px;
  padding:20px;
  background:#fafafa;
}
.gypg-secondary-profile{
  margin-top:18px;
  padding:14px 16px;
  border-radius:16px;
  background:#fff8eb;
  color:#92400e;
}
.gypg-score-bars{display:grid;gap:14px;margin-top:14px;}
.gypg-score-row__head{display:flex;justify-content:space-between;gap:12px;margin-bottom:6px;font-size:14px;}
.gypg-score-row__bar{height:10px;background:#eceff3;border-radius:999px;overflow:hidden;}
.gypg-score-row__bar span{display:block;height:100%;background:linear-gradient(90deg,#111827,#f59e0b);}
.gypg-disclaimer{
  font-size:13px;
  color:var(--gypg-muted);
  margin-top:18px;
}
.gypg-result-cta{margin-top:24px;}
@media (max-width: 782px){
  .gypg-card{padding:22px;}
  .gypg-grid,.gypg-result-grid{grid-template-columns:1fr;}
  .gypg-scale{grid-template-columns:1fr 1fr;}
  .gypg-button{width:100%;}
  .gypg-actions{flex-direction:column;}
}
