*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
     background:linear-gradient(135deg,#1a1a2e 0%,#16213e 60%,#0f3460 100%);
     min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px}
.card{background:#fff;border-radius:16px;padding:40px 36px;width:100%;max-width:420px;
      box-shadow:0 20px 60px rgba(0,0,0,.35)}
.logo{text-align:center;margin-bottom:28px}
.logo-icon{font-size:48px;display:block;margin-bottom:8px}
h1{font-size:22px;font-weight:700;color:#1a202c;text-align:center;margin-bottom:4px}
.sub{text-align:center;color:#718096;font-size:13.5px;margin-bottom:28px}
.arm-badge{display:flex;align-items:center;justify-content:center;gap:6px;
           background:#ebf8ff;color:#2b6cb0;border-radius:20px;
           padding:4px 14px;font-size:12.5px;font-weight:600;margin-bottom:24px}
#loginCard label{display:block;font-size:13px;font-weight:600;color:#4a5568;margin-bottom:6px}
#loginCard input[type=text],#loginCard input[type=password],#loginCard input:not([type]){
  width:100%;padding:11px 14px;border:1.5px solid #e2e8f0;border-radius:8px;
  font-size:15px;outline:none;transition:border-color .15s;color:#1a202c;box-sizing:border-box}
#loginCard input[type=text]:focus,#loginCard input[type=password]:focus,#loginCard input:not([type]):focus{
  border-color:#4299e1;box-shadow:0 0 0 3px rgba(66,153,225,.15)}
.hint{font-size:12px;color:#a0aec0;margin-top:5px}
.btn{width:100%;margin-top:20px;padding:13px;background:#3182ce;color:#fff;
     border:none;border-radius:8px;font-size:15px;font-weight:700;cursor:pointer;
     transition:background .15s,transform .1s}
.btn:hover{background:#2b6cb0}
.btn:active{transform:scale(.98)}
.btn:disabled{background:#bee3f8;cursor:not-allowed;transform:none}
.error{margin-top:14px;padding:10px 14px;background:#fff5f5;border:1px solid #fed7d7;
       border-radius:7px;color:#c53030;font-size:13px;display:none}
.footer{margin-top:24px;text-align:center;font-size:12px;color:#a0aec0}
#loginCard.login-card--gated{visibility:hidden;pointer-events:none;position:absolute;left:-9999px}
.login-commitment-overlay{position:fixed;inset:0;z-index:100;display:flex;align-items:flex-end;justify-content:center;
  background:rgba(15,23,42,.45);padding:0}
.login-commitment-overlay[hidden]{display:none!important}
.login-commitment-sheet{width:100%;max-width:480px;max-height:92vh;background:#fff;border-radius:20px 20px 0 0;
  padding:28px 22px calc(20px + env(safe-area-inset-bottom,0));box-shadow:0 -8px 40px rgba(0,0,0,.18);
  display:flex;flex-direction:column;overflow:hidden}
@media (min-width:520px){
  .login-commitment-overlay{align-items:center;padding:16px}
  .login-commitment-sheet{border-radius:16px;max-height:88vh}
}
.login-commitment-heading{font-size:22px;font-weight:700;color:#1a202c;text-align:center;margin-bottom:8px;line-height:1.35}
.login-commitment-subtitle{font-size:14px;color:#718096;text-align:center;margin-bottom:20px;line-height:1.5}
.login-commitment-list{list-style:none;flex:1;overflow-y:auto;margin:0 -4px 16px;padding:0 4px;-webkit-overflow-scrolling:touch}
.login-commitment-item{display:flex;gap:12px;margin-bottom:18px}
.login-commitment-item:last-child{margin-bottom:8px}
.login-commitment-icon{flex-shrink:0;width:22px;height:22px;border-radius:50%;background:#3182ce;color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;margin-top:2px}
.login-commitment-item-title{font-size:15px;font-weight:700;color:#1a202c;margin-bottom:4px}
.login-commitment-item-body{font-size:13px;color:#718096;line-height:1.55}
.login-commitment-confirm{flex-shrink:0;margin-top:0;width:100%;padding:14px;border-radius:999px;font-size:16px}
.login-pretest-overlay{position:fixed;inset:0;z-index:110;display:flex;align-items:stretch;justify-content:center;
  background:rgba(15,23,42,.45);padding:0}
.login-pretest-overlay[hidden]{display:none!important}
.login-pretest-sheet{width:100%;max-width:min(920px,100%);height:100%;max-height:100%;
  background:#fff;border-radius:0;padding:24px 20px calc(18px + env(safe-area-inset-bottom,0));
  box-shadow:0 -8px 40px rgba(0,0,0,.18);display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}
@media (min-width:640px){
  .login-pretest-overlay{align-items:center;padding:20px 16px}
  .login-pretest-sheet{height:auto;max-height:min(92vh,900px);min-height:min(72vh,640px);
    border-radius:16px;padding:28px 28px 22px}
}
.login-pretest-intro{font-size:14px;color:#718096;text-align:center;margin:0 0 18px;line-height:1.55;flex-shrink:0}
.login-pretest-questions{flex:1 1 auto;min-height:200px;overflow-y:auto;margin:0 0 14px;padding:6px 10px 14px 4px;
  -webkit-overflow-scrolling:touch}
.login-pretest-questions .formal-attention-item{border:1px solid #e8edf3;border-radius:10px;padding:14px 16px;
  background:#fafbfc;margin:0 0 14px;min-width:0}
.login-pretest-questions .formal-attention-item:last-child{margin-bottom:4px}
.login-pretest-questions fieldset.formal-attention-item{border:1px solid #e8edf3;margin:0 0 14px;padding:14px 16px}
.login-pretest-questions .formal-attention-qtext{font-size:15px;font-weight:600;color:#2d3748;margin:0 0 12px;line-height:1.55}
.login-pretest-questions .formal-attention-options{display:flex;flex-direction:column;gap:10px;width:100%}
.login-pretest-questions .formal-attention-option{display:flex;align-items:flex-start;gap:10px;font-size:14px;
  color:#4a5568;line-height:1.5;cursor:pointer;width:100%;margin:0;font-weight:400;text-align:left}
.login-pretest-questions .formal-attention-option input[type=radio],
.login-pretest-questions .formal-attention-option input[type=checkbox]{
  width:18px;height:18px;margin:2px 0 0;padding:0;flex-shrink:0;accent-color:#3182ce;box-sizing:border-box}
.login-pretest-questions .formal-attention-option span{flex:1;min-width:0;word-break:break-word}
.login-pretest-error{color:#c53030;font-size:13px;text-align:center;margin:0 0 10px;flex-shrink:0}
.login-pretest-error[hidden]{display:none!important}
.login-pretest-sheet .login-commitment-heading{flex-shrink:0}
.login-pretest-sheet .login-commitment-confirm{flex-shrink:0;margin-top:4px}
.login-pretest-select,.login-pretest-questions .questionnaire-select{
  width:100%;max-width:100%;padding:11px 12px;border:1.5px solid #e2e8f0;border-radius:8px;
  font-size:14px;color:#1a202c;background:#fff;outline:none;box-sizing:border-box;display:block}
.login-pretest-select:focus,.login-pretest-questions .questionnaire-select:focus{
  border-color:#4299e1;box-shadow:0 0 0 3px rgba(66,153,225,.15)}

/* Matrix (login pre-test) */
.login-pretest-questions .matrix-wrap{overflow-x:auto;margin:4px 0}
.login-pretest-questions .matrix-table{border-collapse:collapse;width:100%;min-width:340px}
.login-pretest-questions .matrix-table th,.login-pretest-questions .matrix-table td{
  padding:8px 10px;text-align:center;border:1px solid #edf2f7}
.login-pretest-questions .matrix-col-hd{font-size:12px;font-weight:600;color:#4a5568;background:#f7fafc}
.login-pretest-questions .matrix-row-label{text-align:left!important;font-size:13px;color:#2d3748;
  background:#f7fafc;padding:10px 14px;white-space:normal;max-width:280px;line-height:1.45}
.login-pretest-questions .matrix-cell{vertical-align:middle}
.login-pretest-questions .matrix-radio{display:flex;justify-content:center;cursor:pointer}
.login-pretest-questions .matrix-radio input[type=radio]{display:none}
.login-pretest-questions .matrix-dot{width:18px;height:18px;border:2px solid #cbd5e0;border-radius:50%;
  display:block;transition:all .15s}
.login-pretest-questions .matrix-radio input[type=radio]:checked+.matrix-dot{
  border-color:#3182ce;background:#3182ce;box-shadow:0 0 0 3px rgba(49,130,206,.2)}
.login-pretest-questions .matrix-table tbody tr:hover{background:#ebf8ff}
.login-pretest-text-input,.login-pretest-questions .questionnaire-text-input{
  width:100%;max-width:280px;padding:10px 12px;font-size:15px;border:1px solid #cbd5e0;border-radius:8px;
  background:#fff;color:#2d3748;box-sizing:border-box}
.login-pretest-text-input:focus,.login-pretest-questions .questionnaire-text-input:focus{
  outline:none;border-color:#4299e1;box-shadow:0 0 0 3px rgba(66,153,225,.2)}
.login-pretest-other-row{align-items:center!important;flex-wrap:wrap;gap:8px}
.login-pretest-other-row .login-pretest-other-input{
  flex:1 1 160px;min-width:120px;padding:8px 10px;border:1.5px solid #e2e8f0;border-radius:6px;
  font-size:13px;color:#2d3748;background:#fff;box-sizing:border-box}
.login-pretest-other-row .login-pretest-other-input:focus{
  border-color:#4299e1;box-shadow:0 0 0 3px rgba(66,153,225,.15);outline:none}
.formal-attention-options .login-pretest-other-row{display:flex;width:100%}
