:root{--am-primary:#2563eb;--am-secondary:#7c3aed;--am-ink:#0f172a;--am-muted:#64748b;--am-border:#e2e8f0;--am-bg:#f8fafc;--am-ok:#16a34a;--am-danger:#dc2626;}
.auth-mobile-shell{direction:inherit;max-width:560px;margin:34px auto 44px;padding:0 14px;font-family:inherit;color:var(--am-ink)}
.auth-mobile-card{position:relative;background:rgba(255,255,255,.96);border:1px solid rgba(226,232,240,.9);border-radius:26px;box-shadow:0 22px 60px rgba(15,23,42,.11);overflow:hidden}.auth-mobile-card:before{content:"";position:absolute;inset:0 0 auto 0;height:6px;background:linear-gradient(90deg,var(--am-secondary),var(--am-primary));}.auth-mobile-body{padding:34px 36px 26px}.auth-mobile-title{font-size:28px;font-weight:900;margin:0 0 12px;text-align:center;color:var(--am-ink)}.auth-mobile-subtitle{font-size:15px;line-height:1.9;color:var(--am-muted);text-align:center;margin:0 0 24px}.auth-mobile-icon{width:72px;height:72px;margin:0 auto 18px;border-radius:24px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#eff6ff,#f5f3ff);box-shadow:inset 0 0 0 1px #dbeafe;color:var(--am-primary)}.auth-mobile-icon svg{width:38px;height:38px}.auth-mobile-field{margin-bottom:18px}.auth-mobile-label{font-weight:800;margin-bottom:8px;color:#111827}.auth-mobile-input,.auth-mobile-card input[type=text],.auth-mobile-card input[type=password],.auth-mobile-card input[type=email]{width:100%;height:52px;border:1px solid #dbe3ef;border-radius:15px;padding:0 16px;background:#fff;color:#0f172a;box-shadow:none;transition:.18s ease;text-align:start}.auth-mobile-input:focus,.auth-mobile-card input:focus{outline:0;border-color:#60a5fa;box-shadow:0 0 0 4px rgba(37,99,235,.12)}.auth-mobile-btn{width:100%;min-height:54px;border:0;border-radius:15px;font-weight:900;font-size:16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;cursor:pointer;transition:.18s ease}.auth-mobile-btn-primary{color:#fff;background:linear-gradient(90deg,var(--am-primary),var(--am-secondary));box-shadow:0 12px 24px rgba(37,99,235,.22)}.auth-mobile-btn-primary:hover{transform:translateY(-1px);filter:saturate(1.08)}.auth-mobile-btn-light{background:#fff;border:1px solid #dbe3ef;color:#334155}.auth-mobile-btn[disabled]{opacity:.65;cursor:not-allowed;transform:none}.auth-mobile-alert{border-radius:15px;padding:13px 15px;margin:14px 0;line-height:1.8;border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a}.auth-mobile-alert.error{border-color:#fecaca;background:#fef2f2;color:#991b1b}.auth-mobile-alert.ok{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.auth-mobile-code-row{direction:ltr;display:flex;gap:10px;justify-content:center;margin:16px 0}.auth-mobile-code-input{font-size:28px;font-weight:900;letter-spacing:10px;text-align:center!important;direction:ltr}.auth-mobile-timer{display:flex;align-items:center;gap:13px;margin:16px 0;padding:14px;border:1px solid #ddd6fe;border-radius:18px;background:linear-gradient(135deg,#fff,#f5f3ff)}.auth-mobile-ring{width:46px;height:46px;border-radius:50%;background:conic-gradient(var(--am-primary) var(--p,100%),#dbeafe 0);display:grid;place-items:center;flex:0 0 auto}.auth-mobile-ring:after{content:"";width:34px;height:34px;border-radius:50%;background:white}.auth-mobile-timer strong{display:block;color:#1e293b}.auth-mobile-timer small{color:#64748b}.auth-mobile-note{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:14px 16px;color:#475569;line-height:1.9;margin-top:16px}.auth-mobile-footer{border-top:1px solid #eef2f7;text-align:center;color:#94a3b8;font-size:12px;padding:16px}.auth-mobile-sep{display:flex;align-items:center;gap:12px;margin:18px 0;color:#94a3b8}.auth-mobile-sep:before,.auth-mobile-sep:after{content:"";height:1px;background:#e2e8f0;flex:1}.auth-mobile-loading:before{content:"";width:18px;height:18px;border:2px solid rgba(255,255,255,.5);border-top-color:#fff;border-radius:50%;animation:amspin .8s linear infinite}@keyframes amspin{to{transform:rotate(360deg)}}
/* Moodle signup/forgot form polish */
body.path-login .mform,body#page-auth-mobile-forgot_password .mform{max-width:560px;margin:24px auto;background:#fff;border:1px solid #e2e8f0;border-radius:26px;padding:30px 34px;box-shadow:0 22px 60px rgba(15,23,42,.10);direction:inherit}body.path-login .mform fieldset,body#page-auth-mobile-forgot_password .mform fieldset{border:0}body.path-login .mform .fitem,body#page-auth-mobile-forgot_password .mform .fitem{margin-bottom:16px}body.path-login .mform .col-form-label,body#page-auth-mobile-forgot_password .mform .col-form-label{font-weight:800;color:#111827;text-align:start}body.path-login .mform input[type=text],body.path-login .mform input[type=password],body.path-login .mform input[type=email],body#page-auth-mobile-forgot_password .mform input[type=text],body#page-auth-mobile-forgot_password .mform input[type=password]{height:52px;border:1px solid #dbe3ef;border-radius:15px;padding:0 16px;text-align:start}body.path-login .mform #id_code,body#page-auth-mobile-forgot_password .mform #id_code{height:48px;border:0;border-radius:14px;background:#eef2ff;color:#1d4ed8;font-weight:900;padding:0 18px}body.path-login .mform #id_submitbutton,body#page-auth-mobile-forgot_password .mform #id_submitbutton{min-height:52px;border:0;border-radius:15px;background:linear-gradient(90deg,var(--am-primary),var(--am-secondary));font-weight:900;color:#fff;padding:0 28px}#auth-mobile-inline-status{max-width:560px;margin:12px auto;padding:13px 16px;border-radius:15px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a;direction:inherit;text-align:start}.auth-mobile-form-loading{opacity:.75;pointer-events:none}.auth-mobile-form-loading #id_code:before{content:""}
@media(max-width:640px){.auth-mobile-shell{margin:18px auto}.auth-mobile-body{padding:26px 20px}.auth-mobile-title{font-size:23px}body.path-login .mform,body#page-auth-mobile-forgot_password .mform{margin:16px 12px;padding:24px 18px}}


/* v2.0.9 refined authentication pages */
body#page-auth-mobile-otp_login .auth-mobile-shell,
body#page-auth-mobile-forgot_password .auth-mobile-shell{max-width:590px}
.auth-mobile-card{border-radius:30px;box-shadow:0 28px 70px rgba(15,23,42,.12)}
.auth-mobile-alert.error{font-weight:800;text-align:center}
.auth-mobile-alert.ok{font-weight:800;text-align:center}
.auth-mobile-form button.auth-mobile-loading:before,
#id_code.auth-mobile-loading:before{content:"";width:18px;height:18px;border:2px solid rgba(255,255,255,.55);border-top-color:#fff;border-radius:50%;animation:amspin .75s linear infinite;display:inline-block;margin-left:8px;vertical-align:middle}
.auth-mobile-btn-light.auth-mobile-loading:before,#id_code.auth-mobile-loading:before{border-color:rgba(37,99,235,.2);border-top-color:#2563eb}
body.path-login#page-login-signup .mform{max-width:620px;margin:28px auto 44px;background:#fff;border:1px solid #e2e8f0;border-radius:30px;padding:34px 38px;box-shadow:0 28px 70px rgba(15,23,42,.12);direction:inherit;overflow:hidden;position:relative}
body.path-login#page-login-signup .mform:before,body#page-auth-mobile-forgot_password .auth-mobile-card:before{height:6px;background:linear-gradient(90deg,var(--am-secondary),var(--am-primary))}
.auth-mobile-signup-head{text-align:center;margin-bottom:10px}.auth-mobile-signup-head .auth-mobile-icon{margin-bottom:14px}
body.path-login#page-login-signup .mform legend,body#page-auth-mobile-forgot_password .mform legend{display:none}
body.path-login#page-login-signup .mform .fdescription,body#page-auth-mobile-forgot_password .mform .fdescription{display:none}
body#page-auth-mobile-forgot_password .auth-mobile-card .mform{box-shadow:none;border:0;margin:0;padding:0;max-width:none;background:transparent;border-radius:0}
body#page-auth-mobile-forgot_password .auth-mobile-card .mform fieldset{border:0;padding:0;margin:0}
body#page-auth-mobile-forgot_password .auth-mobile-card .mform .fitem{margin-bottom:16px}
body#page-auth-mobile-forgot_password .auth-mobile-card .mform #id_username,
body#page-auth-mobile-forgot_password .auth-mobile-card .mform #id_tempcode,
body#page-auth-mobile-forgot_password .auth-mobile-card .mform #id_password,
body.path-login#page-login-signup .mform input[type=text],
body.path-login#page-login-signup .mform input[type=password],
body.path-login#page-login-signup .mform input[type=email]{height:54px;border-radius:16px;border:1px solid #dbe3ef;box-shadow:none;text-align:start;background:#fff;padding:0 16px}
body#page-auth-mobile-forgot_password .auth-mobile-card .mform #id_code,
body.path-login#page-login-signup .mform #id_code{height:52px;border-radius:16px;border:1px solid #dbe3ef;background:#fff;color:#334155;font-weight:900;width:100%}
body#page-auth-mobile-forgot_password .auth-mobile-card .mform #id_submitbutton,
body.path-login#page-login-signup .mform #id_submitbutton{width:100%;min-height:54px;border-radius:16px;background:linear-gradient(90deg,var(--am-primary),var(--am-secondary));color:#fff;font-weight:900;border:0;box-shadow:0 12px 24px rgba(37,99,235,.22)}
body#page-auth-mobile-forgot_password .auth-mobile-card .mform .col-form-label,
body.path-login#page-login-signup .mform .col-form-label{font-weight:900;color:#111827;text-align:start}
body#page-auth-mobile-forgot_password .auth-mobile-card #auth-mobile-inline-status{margin:0 0 16px;max-width:none}
#auth-mobile-inline-status.error,#auth-mobile-inline-status.auth-mobile-alert.error{background:#fef2f2;border-color:#fecaca;color:#991b1b;font-weight:800;text-align:center}
#auth-mobile-inline-status.ok,#auth-mobile-inline-status.auth-mobile-alert.ok{background:#f0fdf4;border-color:#bbf7d0;color:#166534;font-weight:800;text-align:center}
@media(max-width:640px){body.path-login#page-login-signup .mform{margin:16px 12px;padding:26px 18px;border-radius:24px}}
.auth-mobile-hidden{display:none!important}


/* v2.0.15 advanced OTP UX */
.auth-mobile-code-boxes{direction:ltr;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:14px 0 10px}
.auth-mobile-code-boxes[data-length="4"]{grid-template-columns:repeat(4,minmax(0,1fr))}
.auth-mobile-code-boxes[data-length="5"]{grid-template-columns:repeat(5,minmax(0,1fr))}
.auth-mobile-code-boxes[data-length="7"]{grid-template-columns:repeat(7,minmax(0,1fr))}
.auth-mobile-code-boxes[data-length="8"]{grid-template-columns:repeat(8,minmax(0,1fr))}
.auth-mobile-code-box{height:58px;min-width:0;border:1px solid #dbe3ef;border-radius:17px;background:linear-gradient(180deg,#fff,#f8fafc);text-align:center!important;font-size:28px!important;font-weight:900;color:#0f172a!important;-webkit-text-fill-color:#0f172a;caret-color:#2563eb;box-shadow:0 8px 18px rgba(15,23,42,.05);transition:.18s ease;direction:ltr!important;unicode-bidi:plaintext;font-family:Arial,Tahoma,sans-serif!important;padding:0!important;line-height:58px;-webkit-appearance:none;appearance:none}
.auth-mobile-code-box:focus{outline:0;border-color:#60a5fa;box-shadow:0 0 0 4px rgba(37,99,235,.12),0 10px 22px rgba(15,23,42,.08);transform:translateY(-1px)}
.auth-mobile-hidden-code{position:absolute!important;opacity:.01!important;width:1px!important;height:1px!important;pointer-events:none!important;left:-9999px!important}
.auth-mobile-form .auth-mobile-field + .auth-mobile-timer{margin-top:8px}.auth-mobile-timer{position:relative;overflow:hidden}.auth-mobile-timer:before{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:4px;background:linear-gradient(180deg,var(--am-primary),var(--am-secondary))}.auth-mobile-timer strong{font-weight:900}.auth-mobile-btn-light:not([disabled]):hover{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.auth-mobile-sep{font-weight:900}.auth-mobile-note{font-size:13px;text-align:center}.auth-mobile-card input:-webkit-autofill{box-shadow:0 0 0 1000px #fff inset!important}
body.path-login#page-login-signup .mform,body#page-auth-mobile-forgot_password .auth-mobile-card{background:radial-gradient(circle at top right,rgba(37,99,235,.08),transparent 32%),radial-gradient(circle at bottom left,rgba(124,58,237,.08),transparent 30%),#fff}
body.path-login#page-login-signup .mform .fitem,body#page-auth-mobile-forgot_password .auth-mobile-card .mform .fitem{border:1px solid #eef2f7;background:rgba(255,255,255,.74);border-radius:18px;padding:12px 14px;margin-bottom:13px}
body.path-login#page-login-signup .mform .fitem_fsubmit,body#page-auth-mobile-forgot_password .auth-mobile-card .mform .fitem_fsubmit{border:0;background:transparent;padding:0;margin-top:18px}.auth-mobile-form-loading{position:relative}.auth-mobile-form-loading:after{content:"";position:absolute;inset:0;border-radius:24px;background:rgba(255,255,255,.42);backdrop-filter:blur(1px);pointer-events:none}
@media(max-width:640px){.auth-mobile-code-boxes{gap:7px}.auth-mobile-code-box{height:50px;border-radius:14px;font-size:23px}.auth-mobile-code-boxes[data-length="7"],.auth-mobile-code-boxes[data-length="8"]{gap:5px}.auth-mobile-code-boxes[data-length="7"] .auth-mobile-code-box,.auth-mobile-code-boxes[data-length="8"] .auth-mobile-code-box{height:46px;font-size:20px}}

.am-notify{direction:inherit;max-width:1280px;margin:0 auto}.am-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(135deg,#fff7ed,#fff);border:1px solid #fed7aa;border-radius:20px;padding:24px;margin-bottom:20px}.am-hero h2{margin:0 0 6px;font-weight:800}.am-hero p{margin:0;color:#64748b}.am-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.am-stat{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px;box-shadow:0 8px 25px rgba(15,23,42,.05)}.am-stat span{display:block;color:#64748b;font-size:13px}.am-stat strong{display:block;font-size:28px;margin-top:7px}.am-panel{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:20px;box-shadow:0 10px 30px rgba(15,23,42,.05)}.am-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}.am-badge{display:inline-block;padding:5px 10px;border-radius:999px;background:#f1f5f9;font-size:12px}.am-sent,.am-completed{background:#dcfce7;color:#166534}.am-failed{background:#fee2e2;color:#991b1b}.am-pending,.am-queued{background:#ffedd5;color:#9a3412}@media(max-width:800px){.am-stats{grid-template-columns:repeat(2,1fr)}.am-hero{align-items:flex-start;flex-direction:column}}@media(max-width:480px){.am-stats{grid-template-columns:1fr}}

/* v2.1.3 searchable multi-select pickers */
.am-smart-picker{position:relative;max-width:820px;border:1px solid #dbe4ee;border-radius:18px;padding:14px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 8px 24px rgba(15,23,42,.05);direction:inherit}
.am-picker-selected{display:flex;flex-wrap:wrap;gap:9px;margin-block-end:11px;min-height:0}.am-picker-selected.is-empty{display:none}
.am-picker-chip{display:inline-flex;align-items:center;gap:9px;max-width:100%;padding:7px 8px 7px 11px;border:1px solid #bfdbfe;border-radius:13px;background:#eff6ff;color:#1e3a8a;box-shadow:0 3px 10px rgba(37,99,235,.07)}
.am-picker-chip-text{display:flex;flex-direction:column;min-width:0;text-align:start}.am-picker-chip-text strong{font-size:13px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.am-picker-chip-text small{font-size:11px;color:#64748b;direction:ltr;text-align:start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.am-picker-remove{display:inline-grid;place-items:center;flex:0 0 auto;width:25px;height:25px;border:0;border-radius:8px;background:#dbeafe;color:#1d4ed8;font-size:19px;line-height:1;cursor:pointer;transition:.15s ease}.am-picker-remove:hover,.am-picker-remove:focus{background:#fee2e2;color:#b91c1c;outline:0}
.am-picker-search-wrap{position:relative}.am-picker-search{width:100%;min-height:50px;padding-inline-start:43px!important;padding-inline-end:45px!important;border:1px solid #cbd5e1!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important;text-align:start!important}.am-picker-search:focus{border-color:#60a5fa!important;box-shadow:0 0 0 4px rgba(37,99,235,.1)!important}
.am-picker-icon{position:absolute;inset-inline-start:15px;top:50%;transform:translateY(-50%);font-size:24px;color:#64748b;pointer-events:none;z-index:2}
.am-picker-spinner{position:absolute;inset-inline-end:16px;top:50%;width:18px;height:18px;margin-top:-9px;border:2px solid #dbeafe;border-top-color:#2563eb;border-radius:50%;animation:amspin .7s linear infinite}
.am-picker-results{position:absolute;z-index:1050;inset-inline:14px;top:calc(100% - 6px);max-height:340px;overflow:auto;padding:8px;border:1px solid #dbe4ee;border-radius:15px;background:#fff;box-shadow:0 20px 50px rgba(15,23,42,.16)}
.am-picker-result{display:flex;align-items:center;justify-content:space-between;gap:15px;width:100%;padding:11px 12px;border:0;border-bottom:1px solid #f1f5f9;border-radius:10px;background:transparent;color:#0f172a;text-align:start;cursor:pointer}.am-picker-result:last-child{border-bottom:0}.am-picker-result:hover,.am-picker-result:focus{background:#eff6ff;outline:0}.am-picker-result.is-selected{background:#f0fdf4}.am-picker-result>span:first-child{display:flex;flex-direction:column;min-width:0}.am-picker-result strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.am-picker-result small{margin-top:3px;color:#64748b;font-size:12px;direction:ltr;text-align:start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.am-picker-result-mark{display:grid;place-items:center;flex:0 0 auto;width:28px;height:28px;border-radius:9px;background:#e0e7ff;color:#3730a3;font-weight:900}.am-picker-result.is-selected .am-picker-result-mark{background:#dcfce7;color:#166534}
.am-picker-empty{padding:22px;text-align:center;color:#64748b}.am-picker-help{margin-top:9px;color:#64748b;font-size:12px;text-align:start}
@media(max-width:640px){.am-smart-picker{padding:11px;border-radius:15px}.am-picker-results{inset-inline:10px;max-height:280px}.am-picker-chip{max-width:100%;width:100%;justify-content:space-between}.am-picker-chip-text{flex:1}}

/* v2.2.0 professional audience builder */
#page-auth-mobile-campaign .am-panel{max-width:1050px;margin-inline:auto;padding:28px}
#page-auth-mobile-campaign .mform .fitem{margin-block-end:16px}
#page-auth-mobile-campaign .mform fieldset.collapsible{border:0}
#page-auth-mobile-campaign [id^="fitem_id_target_"]{border:1px solid #e2e8f0;border-radius:16px;padding:13px 16px;background:#fff;transition:.18s ease}
#page-auth-mobile-campaign [id^="fitem_id_target_"]:hover{border-color:#bfdbfe;background:#f8fbff;box-shadow:0 7px 18px rgba(37,99,235,.06)}
#page-auth-mobile-campaign [id^="fitem_id_target_"] .form-check{margin:0;min-height:28px;display:flex;align-items:center;gap:10px}
#page-auth-mobile-campaign [id^="fitem_id_target_"] input[type=checkbox],
#page-auth-mobile-campaign #fgroup_id_course_roles input[type=checkbox]{width:21px;height:21px;accent-color:#2563eb;cursor:pointer}
#page-auth-mobile-campaign [id^="fitem_id_target_"] label,
#page-auth-mobile-campaign #fgroup_id_course_roles label{font-weight:800;color:#1e293b;cursor:pointer}
.am-audience-intro{border-inline-start:4px solid #2563eb;border-radius:12px;padding:12px 15px;background:#eff6ff;color:#1e3a8a;line-height:1.9;text-align:start}
#page-auth-mobile-campaign #fgroup_id_course_roles{border:1px solid #dbeafe;border-radius:16px;padding:15px;background:#f8fbff}
#page-auth-mobile-campaign #fgroup_id_course_roles .form-check{display:flex;align-items:center;gap:8px;margin-block:7px}
.am-picker-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-block-end:13px;text-align:start}
.am-picker-head>div{display:flex;flex-direction:column;gap:4px}.am-picker-head strong{font-size:15px;color:#0f172a}.am-picker-head small{font-size:12px;color:#64748b;line-height:1.7}
.am-picker-count{display:grid;place-items:center;min-width:34px;height:34px;padding-inline:8px;border-radius:11px;background:#dbeafe;color:#1d4ed8;font-weight:900}
.am-picker-status{min-height:22px;margin-block-start:7px;font-size:12px;color:#64748b;text-align:start}.am-picker-status.is-loading{color:#1d4ed8}.am-picker-status.is-error{color:#b91c1c;font-weight:800}.am-picker-status.is-hint{color:#64748b}
#page-auth-mobile-campaign .am-smart-picker{max-width:none;border:1px solid #cbd5e1;padding:17px;border-radius:20px;background:linear-gradient(180deg,#fff,#f8fafc)}
#page-auth-mobile-campaign .am-picker-results{top:calc(100% - 4px);max-height:390px}
#page-auth-mobile-campaign .am-picker-result{min-height:58px}
#page-auth-mobile-campaign .am-picker-result strong{font-size:14px}
#page-auth-mobile-campaign .am-picker-result small{direction:inherit;text-align:start}
#page-auth-mobile-campaign .am-picker-chip{padding:9px 10px;border-radius:14px}
@media(max-width:700px){#page-auth-mobile-campaign .am-panel{padding:16px}#page-auth-mobile-campaign [id^="fitem_id_target_"]{padding:12px}.am-picker-head{align-items:center}.am-picker-head small{display:none}}

/* v2.2.1 strict conditional audience UI + live debug */
#page-auth-mobile-campaign #fitem_id_coursepicker,
#page-auth-mobile-campaign #fgroup_id_course_roles,
#page-auth-mobile-campaign #fitem_id_userpicker{display:none}
#page-auth-mobile-campaign #fgroup_id_course_roles{border:1px solid #dbeafe;border-radius:18px;padding:16px 18px;background:linear-gradient(180deg,#f8fbff,#fff)}
#page-auth-mobile-campaign #fgroup_id_course_roles .form-check{display:flex;align-items:center;gap:9px;margin:8px 0}
#page-auth-mobile-campaign #fgroup_id_course_roles input[type=radio]{width:20px;height:20px;accent-color:#2563eb}
.am-debug{margin-top:18px;border:1px solid #cbd5e1;border-radius:16px;background:#0f172a;overflow:hidden;direction:ltr}
.am-debug-head{display:flex;justify-content:space-between;align-items:center;padding:10px 13px;background:#1e293b;color:#e2e8f0;font-size:13px}
.am-debug-head button{border:1px solid #475569;border-radius:9px;background:#334155;color:#fff;padding:5px 10px;cursor:pointer}
.am-debug pre{margin:0;min-height:110px;max-height:230px;overflow:auto;padding:12px 14px;color:#bbf7d0;background:#0f172a;font:12px/1.75 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;text-align:left}


/* v2.2.6 deterministic conditional visibility */
#page-auth-mobile-campaign .am-conditional-hidden{display:none!important}
#page-auth-mobile-campaign .am-conditional-visible{display:flex!important;flex-wrap:wrap!important;width:100%!important}
#page-auth-mobile-campaign .am-conditional-visible > .col-form-label{align-self:flex-start}
#page-auth-mobile-campaign .am-conditional-visible > .felement{min-width:0;flex:1 1 520px}


/* v2.3.0 merged registration flow from production signup branch */
/* v2.0.21 two-step signup */
body.path-login#page-login-signup .mform{max-width:680px;padding:38px 42px 32px}
body.path-login#page-login-signup .auth-mobile-signup-head{margin-bottom:22px}
body.path-login#page-login-signup .auth-mobile-title{font-size:25px}
body.path-login#page-login-signup .auth-mobile-subtitle{max-width:520px;margin:0 auto 20px;font-size:14px}
.auth-mobile-signup-steps{display:grid;grid-template-columns:auto auto 1fr auto auto;align-items:center;gap:9px;margin:6px 0 20px;padding:14px 16px;border:1px solid #e5e7eb;border-radius:18px;background:rgba(248,250,252,.88)}
.auth-mobile-step-dot{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e2e8f0;color:#64748b;font-weight:900;transition:.2s ease}
.auth-mobile-step-dot.is-active{color:#fff;background:linear-gradient(135deg,var(--am-primary),var(--am-secondary));box-shadow:0 7px 16px rgba(37,99,235,.2)}
.auth-mobile-step-label{font-size:13px;font-weight:850;color:#64748b;white-space:nowrap}
.auth-mobile-signup-steps.is-verification .auth-mobile-step-label:last-child{color:#1d4ed8}
.auth-mobile-step-line{height:2px;background:#dbe3ef;border-radius:9px;min-width:28px}
.auth-mobile-signup-steps.is-verification .auth-mobile-step-line{background:linear-gradient(90deg,var(--am-primary),var(--am-secondary))}
body.path-login#page-login-signup .mform #id_code{border:0;color:#fff;background:linear-gradient(90deg,var(--am-primary),var(--am-secondary));box-shadow:0 12px 24px rgba(37,99,235,.2);min-height:56px;font-size:15px}
body.path-login#page-login-signup .mform .fitem{transition:opacity .18s ease,transform .18s ease}
body.path-login#page-login-signup .mform #fitem_id_tempcode{padding:20px 18px;background:linear-gradient(180deg,#f8fbff,#fff);border-color:#dbeafe}
body.path-login#page-login-signup .mform #fitem_id_tempcode .col-form-label{text-align:center!important;width:100%;max-width:100%;flex:0 0 100%}
body.path-login#page-login-signup .mform #fitem_id_tempcode .felement{width:100%;max-width:100%;flex:0 0 100%}
body.path-login#page-login-signup .mform #fitem_id_submitbutton{margin-top:14px}
@media(max-width:640px){body.path-login#page-login-signup .mform{padding:24px 14px 22px}.auth-mobile-signup-steps{grid-template-columns:auto 1fr auto;padding:12px 10px}.auth-mobile-step-label{display:none}.auth-mobile-step-line{min-width:40px}}

/* v2.0.22 signup custom fields + OTP modal */
.auth-mobile-signup-modal[hidden]{display:none!important}
html.auth-mobile-modal-open,body.auth-mobile-modal-open{overflow:hidden!important}
.auth-mobile-signup-modal{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:18px;direction:rtl}
.auth-mobile-signup-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.64);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.auth-mobile-signup-modal-panel{position:relative;z-index:1;width:min(100%,470px);padding:34px 30px 28px;border:1px solid rgba(255,255,255,.75);border-radius:28px;background:radial-gradient(circle at top right,rgba(37,99,235,.10),transparent 36%),radial-gradient(circle at bottom left,rgba(124,58,237,.10),transparent 34%),#fff;box-shadow:0 30px 80px rgba(15,23,42,.28);animation:authMobileModalIn .22s ease-out}
@keyframes authMobileModalIn{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
.auth-mobile-signup-modal-close{position:absolute;top:14px;left:14px;width:38px;height:38px;border:0;border-radius:12px;background:#eef2f7;color:#475569;font-size:25px;line-height:1;cursor:pointer;transition:.18s ease}
.auth-mobile-signup-modal-close:hover{background:#fee2e2;color:#b91c1c}
.auth-mobile-signup-modal-icon{width:66px;height:66px;margin:0 auto 16px;border-radius:22px;background:linear-gradient(135deg,var(--am-primary),var(--am-secondary));box-shadow:0 14px 30px rgba(37,99,235,.24);position:relative}
.auth-mobile-signup-modal-icon:before{content:"";position:absolute;inset:17px 20px;border:3px solid #fff;border-top-width:8px;border-radius:8px}
.auth-mobile-signup-modal-icon:after{content:"✓";position:absolute;right:-5px;bottom:-5px;width:25px;height:25px;border:3px solid #fff;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#16a34a;color:#fff;font-weight:900;font-size:13px}
.auth-mobile-signup-modal-title{margin:0 0 8px;text-align:center;font-size:23px;font-weight:950;color:#0f172a}
.auth-mobile-signup-modal-text{margin:0 auto 20px;max-width:370px;text-align:center;color:#64748b;font-size:14px;line-height:2}
body.path-login#page-login-signup .auth-mobile-signup-modal-panel #fitem_id_tempcode{display:block!important;margin:0 0 16px!important;padding:0!important;border:0!important;background:transparent!important}
body.path-login#page-login-signup .auth-mobile-signup-modal-panel #fitem_id_tempcode .col-form-label{display:none!important}
body.path-login#page-login-signup .auth-mobile-signup-modal-panel #fitem_id_tempcode .felement{width:100%!important;max-width:100%!important;flex:0 0 100%!important;padding:0!important;margin:0!important}
body.path-login#page-login-signup .auth-mobile-signup-modal-panel #fitem_id_submitbutton{display:block!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
body.path-login#page-login-signup .auth-mobile-signup-modal-panel #fitem_id_submitbutton .col-form-label{display:none!important}
body.path-login#page-login-signup .auth-mobile-signup-modal-panel #fitem_id_submitbutton .felement{width:100%!important;max-width:100%!important;flex:0 0 100%!important;padding:0!important;margin:0!important}
body.path-login#page-login-signup .auth-mobile-signup-modal-panel #id_submitbutton{width:100%;min-height:56px;margin:0;border:0;border-radius:17px;background:linear-gradient(90deg,var(--am-primary),var(--am-secondary));box-shadow:0 14px 28px rgba(37,99,235,.22);color:#fff;font-size:15px;font-weight:950}
.auth-mobile-signup-edit{display:block;width:100%;margin-top:10px;padding:11px 14px;border:0;background:transparent;color:#64748b;font-weight:850;cursor:pointer}
.auth-mobile-signup-edit:hover{color:#1d4ed8}
body.path-login#page-login-signup .mform .fitem[id^="fitem_id_profile_field_"]{align-items:center}
body.path-login#page-login-signup .mform .fitem[id^="fitem_id_profile_field_"] .felement input,
body.path-login#page-login-signup .mform .fitem[id^="fitem_id_profile_field_"] .felement select,
body.path-login#page-login-signup .mform .fitem[id^="fitem_id_profile_field_"] .felement textarea{width:100%;max-width:100%;border-radius:16px;border:1px solid #dbe3ef;background:#fff}
@media(max-width:640px){.auth-mobile-signup-modal{padding:12px}.auth-mobile-signup-modal-panel{padding:30px 16px 22px;border-radius:24px}.auth-mobile-signup-modal-title{font-size:20px}.auth-mobile-signup-modal-text{font-size:13px}.auth-mobile-signup-modal-close{top:10px;left:10px}}

.auth-mobile-code-entry{width:100%;direction:ltr}.auth-mobile-code-entry.is-submitting{opacity:.82;pointer-events:none}.auth-mobile-code-box::selection{background:rgba(37,99,235,.15)}
@media(max-width:480px){.auth-mobile-code-boxes{gap:6px!important}.auth-mobile-code-box{height:48px!important;line-height:48px!important;border-radius:12px!important;font-size:22px!important;padding:0!important}.auth-mobile-code-boxes[data-length=7] .auth-mobile-code-box,.auth-mobile-code-boxes[data-length=8] .auth-mobile-code-box{height:42px!important;line-height:42px!important;font-size:18px!important}}
