:root{--re-body:'DM Sans',sans-serif;--re-display:'Space Grotesk',sans-serif}html,body{font-family:var(--re-body)!important}h1,h2,h3,h4{font-family:var(--re-display),var(--re-body)!important}button,input,select,textarea{font-family:var(--re-body)!important;box-sizing:border-box}input:not([type=checkbox]):not([type=radio]),select{min-height:44px;max-width:100%;line-height:1.4}textarea{min-height:104px;max-width:100%;line-height:1.55}button{line-height:1.35}label{line-height:1.45}img,iframe,video{max-width:100%}@media(max-width:640px){input:not([type=checkbox]):not([type=radio]),select{font-size:16px!important;min-height:46px}textarea{font-size:16px!important}}
/* Consistent field sizing and alignment across participant, coordinator and admin pages. */
.question-area,.question-content,.question-field,.access-form,.access-field,.ws-field,.adm2-field,.school-workspace .school-legacy{min-width:0;max-width:100%}
.question-content,.question-content form{width:100%}
.question-field input:not([type=checkbox]):not([type=radio]):not([type=file]),.question-field select,.access-field input,.access-field select,.ws-field input,.ws-field select,.ws-field textarea,.adm2-field input:not([type=checkbox]):not([type=radio]),.adm2-field select,.adm2-field textarea,.field input:not([type=checkbox]):not([type=radio]){display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.question-field input:not([type=checkbox]):not([type=radio]):not([type=file]),.question-field select{min-height:54px;padding:13px 15px;border:1px solid #555;border-radius:5px;font-size:16px;line-height:1.4}
.question-field{gap:9px;margin-bottom:22px}
.question-field label,.access-field label,.ws-field label,.adm2-field label,.field-label{display:block;max-width:100%;line-height:1.5}
.question-content .field-pair,.password-grid,.adm2-grid,.school-workspace .school-grid{min-width:0}
.question-content .field-pair>* ,.password-grid>* ,.adm2-grid>*{min-width:0}
.ws-field input,.ws-field select,.ws-field textarea,.access-field input,.adm2-field input,.adm2-field select,.adm2-field textarea{min-height:46px}
@media(max-width:640px){.question-field input:not([type=checkbox]):not([type=radio]):not([type=file]),.question-field select,.access-field input,.ws-field input,.ws-field select,.adm2-field input:not([type=checkbox]):not([type=radio]){font-size:16px!important;min-height:48px}}

/* Shared control rhythm: preserve each page's existing shapes and palette. */
.adm-actions,.adm2-actions,.wizard-actions,.flow-actions,.ws-action-row{align-items:center;gap:10px}
.adm-actions .adm-btn,.adm2-actions .adm2-btn,.adm2-actions a.adm2-btn,.wizard-actions button,.flow-actions .flow-button,.ws-action-row .ws-button,.school-workspace .ws-button,.school-workspace .school-btn{min-height:46px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;line-height:1.35}
.adm-actions .adm-btn,.adm2-actions .adm2-btn{padding:12px 18px;margin:0}
.adm2-actions{flex-wrap:wrap}
.adm2-actions>*{margin:0!important}
.adm2-row{align-items:center}
.adm2-row>.adm2-actions{justify-content:flex-end}
.adm2-field input:not([type=checkbox]),.adm2-field select,.adm2-field textarea,.adm-field input,.adm-field select,.adm-field textarea{box-sizing:border-box;max-width:100%}
.login-page .question-area{width:100%;min-width:0}
.login-page form .wizard-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:stretch;width:100%}
.login-page form .wizard-actions>.primary-button{width:100%;min-height:50px;justify-content:center;margin:0}
.login-page .login-mode-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:10px;margin:0}
.login-page .login-mode-switch button{width:100%;min-width:0;min-height:46px;margin:0;padding:11px 14px}
.login-page .wizard-actions .primary-button+div{min-width:0}
@media(max-width:640px){
 .adm-actions,.adm2-actions{gap:8px}
 .adm-actions .adm-btn,.adm2-actions .adm2-btn,.adm2-actions a.adm2-btn{min-height:44px;padding:11px 13px}
 .login-page form .wizard-actions{gap:10px}
 .login-page .login-mode-switch{gap:8px}
}

/* Login fields use one consistent height; the editorial registration inputs keep their existing treatment. */
.login-page .question-field input:not([type=checkbox]):not([type=radio]):not([type=file]),.login-page .question-field select{min-height:54px!important;padding:13px 15px!important;font-size:16px!important;border:1px solid #555!important;border-radius:5px!important;box-sizing:border-box}
.flow-field input,.flow-field select{min-height:48px;box-sizing:border-box}
.flow-actions .flow-button{min-height:46px}

.adm-login .adm-btn{min-height:46px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center}


/* Referral usage history: compact records that remain readable on narrow screens. */
.adm2-usage-panel{margin-top:24px;padding-top:22px;border-top:1px solid rgba(201,173,118,.24)}
.adm2-usage-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,340px);gap:18px;align-items:end;margin-bottom:18px}
.adm2-usage-head h3{font:600 20px 'Space Grotesk',sans-serif;letter-spacing:-.04em;margin:0 0 7px}
.adm2-usage-code{border:1px solid rgba(201,173,118,.22);background:#101010;border-radius:8px;padding:14px;margin:12px 0}
.adm2-usage-code-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid rgba(246,243,236,.12)}
.adm2-usage-code-head>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.adm2-usage-code-head strong{font:700 15px 'Space Grotesk',sans-serif;color:#e3c58e;letter-spacing:.06em}
.adm2-usage-code-head span,.adm2-usage-code-head b{font-size:12px;color:#d2d2d2}
.adm2-usage-record{padding:13px 0;border-bottom:1px solid rgba(246,243,236,.09)}
.adm2-usage-record:last-child{border-bottom:0}
.adm2-usage-record-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.adm2-usage-record-top strong{font-size:14px;color:#fff}
.adm2-usage-record-top span{font-size:11px;color:#c9ad76;text-transform:uppercase;letter-spacing:.08em}
.adm2-usage-record p{font-size:13px;line-height:1.55;color:#d2d2d2;margin:5px 0}
.adm2-usage-record p b{color:#f6f3ec}
.adm2-usage-meta{display:flex;gap:8px 16px;flex-wrap:wrap;align-items:center;margin-top:9px;color:#aaa;font-size:11px}
.adm2-usage-meta strong{margin-left:auto;color:#f1e5cd;font-size:13px}
@media(max-width:650px){
 .adm2-usage-head{grid-template-columns:1fr;gap:8px}
 .adm2-usage-head h3{font-size:19px}
 .adm2-usage-code{padding:12px}
 .adm2-usage-record-top{align-items:flex-start}
 .adm2-usage-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px}
 .adm2-usage-meta strong{margin-left:0}
 .adm2-hero p,.adm2-note,.adm2-alert,.adm2-error,.adm2-ok{font-size:13px!important}
 .adm2-card h2{font-size:21px}
 .adm2-field label{font-size:11px}
 .adm2-field input,.adm2-field select{font-size:16px!important;min-height:48px}
 .adm2-btn{font-size:11px;min-height:44px}
}
