.qs-box,.qs-form{border:1px solid #dcdcde;border-radius:8px;padding:20px;margin:16px 0;background:#fff;max-width:760px}.qs-form label{display:block;margin:12px 0}.qs-form input:not([type=radio]):not([type=checkbox]),.qs-form textarea{display:block;width:100%;max-width:520px;padding:10px;border:1px solid #8c8f94;border-radius:4px;margin-top:5px}.qs-form button,.qs-button{display:inline-block;background:#2271b1;color:#fff;padding:10px 16px;border:0;border-radius:4px;text-decoration:none;cursor:pointer}.qs-option{display:block;padding:8px 0}.qs-table{border-collapse:collapse;width:100%;margin:12px 0}.qs-table th,.qs-table td{border:1px solid #dcdcde;padding:8px;text-align:left}.qs-error{background:#fcf0f1;color:#8a2424;padding:12px;border-left:4px solid #d63638}.qs-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}

.qs-notice{background:#edfaef;color:#14532d;padding:12px;border-left:4px solid #16a34a}.qs-categories{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0}.qs-categories li{border:1px solid #dcdcde;border-radius:999px;padding:6px 12px;background:#f6f7f7}.qs-form fieldset{border:1px solid #dcdcde;border-radius:6px;padding:14px}.qs-form legend{font-weight:600}.qs-box a{overflow-wrap:anywhere}@media(max-width:600px){.qs-box,.qs-form{padding:14px}.qs-table{display:block;overflow-x:auto;white-space:nowrap}}

/* Keep plugin forms in normal document flow so theme footers cannot overlap them. */
.qs-box,.qs-form{position:relative;clear:both;box-sizing:border-box;float:none!important;overflow:visible}.qs-box:after,.qs-form:after{content:"";display:table;clear:both}.qs-user-diploma{position:relative;clear:both;max-width:100%;overflow:hidden}.qs-diploma-render{box-sizing:border-box;max-width:100%}@media(max-width:600px){.qs-form,.qs-box{width:100%;min-width:0}.qs-table{white-space:normal}.qs-table th,.qs-table td{overflow-wrap:anywhere}}

/* Participant dashboard: responsive cards and a clear visual hierarchy. */
.qs-dashboard{max-width:1100px;margin:24px auto 36px;color:#172033}.qs-dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:clamp(22px,4vw,38px);border-radius:18px;background:linear-gradient(125deg,#172554 0%,#1d4ed8 62%,#0e7490 100%);color:#fff;box-shadow:0 12px 30px rgba(30,64,175,.18);box-sizing:border-box}.qs-dashboard-hero h2{margin:8px 0;font-size:clamp(24px,4vw,34px);line-height:1.2;color:#fff}.qs-dashboard-hero p{margin:0;color:rgba(255,255,255,.86);font-size:15px}.qs-dashboard-eyebrow{font-size:11px;letter-spacing:.14em;font-weight:700;color:#bfdbfe}.qs-dashboard-avatar{width:62px;height:62px;flex:0 0 62px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.35);font-size:27px;font-weight:700;color:#fff}.qs-dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0 24px}.qs-stat-card{min-width:0;padding:20px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.045);box-sizing:border-box}.qs-stat-card span,.qs-stat-card small{display:block;color:#64748b;font-size:13px}.qs-stat-card strong{display:block;margin:8px 0;font-size:32px;line-height:1.1;color:#1d4ed8}.qs-stat-card small{font-size:12px}.qs-account-details{max-width:none;border-color:#e2e8f0;border-radius:14px;box-shadow:0 5px 18px rgba(15,23,42,.04)}.qs-dashboard .qs-table{border:0;border-spacing:0;border-collapse:separate;border-radius:10px;overflow:hidden}.qs-dashboard .qs-table th{background:#f1f5f9;color:#334155;font-size:13px}.qs-dashboard .qs-table td{background:#fff}.qs-dashboard .qs-table th,.qs-dashboard .qs-table td{border-right:0;border-left:0;border-top:0;border-color:#e2e8f0;padding:12px}.qs-dashboard .qs-button{font-weight:600;white-space:nowrap;transition:background .15s ease,transform .15s ease}.qs-dashboard .qs-button:hover{background:#1e40af;color:#fff;transform:translateY(-1px)}.qs-login-prompt{max-width:680px;margin:30px auto;border-color:#dbeafe;background:#eff6ff}
@media(max-width:700px){.qs-dashboard-stats{grid-template-columns:1fr;gap:10px}.qs-stat-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 12px;padding:16px}.qs-stat-card span{grid-column:1}.qs-stat-card strong{grid-column:2;grid-row:1/3;font-size:28px;margin:0}.qs-stat-card small{grid-column:1}.qs-dashboard-hero{padding:22px;border-radius:14px}.qs-dashboard-avatar{width:48px;height:48px;flex-basis:48px;font-size:22px}.qs-dashboard .qs-table{display:block;max-width:100%;overflow-x:auto;white-space:normal}.qs-dashboard .qs-table th,.qs-dashboard .qs-table td{min-width:90px;overflow-wrap:anywhere}.qs-dashboard .qs-table td .qs-button{white-space:normal}}

/* Diploma application: preview on the left, form on the right. */
.qs-diploma-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,0.85fr);gap:24px;align-items:start;margin:18px 0}
.qs-diploma-layout>.qs-box{min-width:0;max-width:none;margin:0}
.qs-diploma-preview .qs-user-diploma{overflow:visible}
.qs-diploma-preview .qs-diploma-render{width:100%!important;max-width:100%;height:auto}
.qs-diploma-form-panel .qs-form{border:0;padding:0;margin:0;max-width:none}
.qs-diploma-form-panel .qs-form input:not([type=radio]):not([type=checkbox]),.qs-diploma-form-panel .qs-form select{max-width:none}
@media(max-width:760px){.qs-diploma-layout{grid-template-columns:minmax(0,1fr)}.qs-diploma-layout>.qs-box{width:100%}}

/* Diploma form spacing and consistent control sizing. */
.qs-diploma-form-panel .qs-form{display:flex;flex-direction:column;gap:14px;box-sizing:border-box}.qs-diploma-form-panel .qs-form label{display:block;margin:0;line-height:1.45}.qs-diploma-form-panel .qs-form input:not([type=radio]):not([type=checkbox]),.qs-diploma-form-panel .qs-form select{display:block;width:100%;max-width:none;min-height:42px;box-sizing:border-box;padding:10px 12px;margin-top:6px;border:1px solid #8c8f94;border-radius:5px;font:inherit;background:#fff}.qs-diploma-form-panel .qs-form button{align-self:flex-start;margin-top:2px}.qs-diploma-form-panel .qs-box{box-sizing:border-box}

.qs-diploma-selected-result{padding:12px 14px;margin:0 0 16px;border:1px solid #dbeafe;border-radius:10px;background:#eff6ff}.qs-diploma-selected-result p{margin:4px 0}.qs-stat-categories small{overflow-wrap:anywhere}
@media(max-width:900px){.qs-dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Refined participant diploma builder: premium card styling, clearer hierarchy and accessible focus states. */
.qs-diploma-layout{gap:clamp(16px,2.5vw,28px);margin:28px auto;align-items:stretch}
.qs-diploma-layout>.qs-box{padding:clamp(18px,2.5vw,30px);border:1px solid #e2e8f0;border-radius:20px;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);box-shadow:0 14px 36px rgba(15,23,42,.07)}
.qs-diploma-layout>.qs-box>h3{display:flex;align-items:center;gap:10px;margin:0 0 20px;padding:0 0 16px;border-bottom:1px solid #e8eef6;color:#172554;font-size:clamp(19px,2vw,24px);font-weight:750;line-height:1.25;letter-spacing:-.02em}
.qs-diploma-form-panel>.qs-form{gap:16px}
.qs-diploma-form-panel .qs-form label{color:#334155;font-size:14px;font-weight:650;letter-spacing:.005em}
.qs-diploma-form-panel .qs-form input:not([type=radio]):not([type=checkbox]),.qs-diploma-form-panel .qs-form select{min-height:48px;margin-top:7px;padding:12px 14px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;box-shadow:0 1px 2px rgba(15,23,42,.025);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.qs-diploma-form-panel .qs-form input:not([type=radio]):not([type=checkbox]):hover,.qs-diploma-form-panel .qs-form select:hover{border-color:#94a3b8}
.qs-diploma-form-panel .qs-form input:not([type=radio]):not([type=checkbox]):focus,.qs-diploma-form-panel .qs-form select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.13);background:#fff}
.qs-diploma-selected-result{padding:16px 18px;margin:0 0 4px;border:1px solid #c7dfff;border-radius:14px;background:linear-gradient(135deg,#eff6ff 0%,#f5f3ff 100%);box-shadow:inset 3px 0 0 #3b82f6}
.qs-diploma-selected-result p{display:flex;flex-wrap:wrap;gap:5px;margin:7px 0;color:#334155;font-size:14px;line-height:1.5}
.qs-diploma-selected-result p strong{color:#1e3a8a}
.qs-diploma-form-panel .qs-form button[type=submit]{display:inline-flex;align-items:center;justify-content:center;align-self:stretch;min-height:50px;margin-top:6px;padding:13px 20px;border-radius:12px;background:linear-gradient(115deg,#1d4ed8 0%,#4338ca 100%);box-shadow:0 8px 18px rgba(37,99,235,.22);font-size:15px;font-weight:750;letter-spacing:.01em;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.qs-diploma-form-panel .qs-form button[type=submit]:hover{filter:brightness(1.06);box-shadow:0 11px 24px rgba(37,99,235,.28);transform:translateY(-1px)}
.qs-diploma-form-panel .qs-form button[type=submit]:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}
.qs-diploma-preview .qs-diploma-live-preview{overflow:hidden;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;box-shadow:inset 0 1px 4px rgba(15,23,42,.04)}
.qs-diploma-preview .qs-diploma-render{display:block;overflow:hidden;border-radius:8px}
.qs-diploma-preview .description{margin:12px 2px 0;color:#64748b;font-size:13px;line-height:1.55}
@media(max-width:760px){.qs-diploma-layout{gap:16px;margin:18px auto}.qs-diploma-layout>.qs-box{padding:18px;border-radius:16px}.qs-diploma-layout>.qs-box>h3{margin-bottom:16px;padding-bottom:13px}.qs-diploma-form-panel .qs-form button[type=submit]{width:100%}}
@media(prefers-reduced-motion:reduce){.qs-diploma-form-panel .qs-form input,.qs-diploma-form-panel .qs-form select,.qs-diploma-form-panel .qs-form button[type=submit]{transition:none}}

/* Quiz experience refresh */
.qs-test-container{max-width:900px!important;margin:28px auto!important;padding:clamp(20px,4vw,36px)!important;border:1px solid #dce5f2!important;border-radius:22px!important;background:linear-gradient(145deg,#fff 0%,#f6f9ff 100%)!important;box-shadow:0 16px 42px rgba(29,58,112,.09)!important}
.qs-test-container>h3{font-size:clamp(24px,3vw,32px);line-height:1.2;margin:0 0 12px;color:#19345d}
.qs-test-progress{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:18px 0;padding:11px 14px;border-radius:12px;background:#eaf1ff;color:#254b87;font-weight:600}
.qs-test-timer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;margin:18px 0;border:1px solid #f0c7a5;border-radius:14px;background:linear-gradient(110deg,#fff5e9,#fffaf4);color:#854b13}
.qs-test-timer strong{font-size:24px;font-variant-numeric:tabular-nums;letter-spacing:.04em}
.qs-test-container .qs-form{max-width:none;padding:0;margin:0;border:0;background:transparent}
.qs-test-container fieldset{min-width:0;margin:20px 0;padding:0;border:0}
.qs-test-container fieldset legend{display:block;width:100%;margin:0 0 16px;font-size:clamp(18px,2vw,22px);line-height:1.5;font-weight:700;color:#182b49}
.qs-test-container .qs-option{display:flex;align-items:flex-start;gap:12px;margin:10px 0;padding:15px 16px;border:1px solid #dce4f0;border-radius:13px;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}
.qs-test-container .qs-option:hover{border-color:#7698df;box-shadow:0 5px 16px rgba(43,83,153,.09);transform:translateY(-1px)}
.qs-test-container .qs-option input{margin:4px 0 0;flex:0 0 auto;accent-color:#315fd0}
.qs-test-container .qs-test-next,.qs-test-result .qs-stats-button{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:48px;padding:12px 22px;border:0;border-radius:12px;background:linear-gradient(110deg,#2857c5,#6a4bd8);color:#fff;font-weight:700;text-decoration:none;box-shadow:0 8px 18px rgba(57,75,183,.2);cursor:pointer}
.qs-test-container .qs-test-next:hover,.qs-test-result .qs-stats-button:hover{filter:brightness(1.06);color:#fff}
.qs-test-result{max-width:800px;padding:30px;border-radius:20px;background:linear-gradient(135deg,#f2f7ff,#fff)!important;border-color:#d9e5fb}
.qs-test-result h3{font-size:26px;color:#19345d}.qs-result-score{font-size:22px;font-weight:700}.qs-result-percent{font-size:34px;font-weight:800;color:#315fd0}
.qs-attempt-stats{max-width:800px;margin:18px auto;padding:24px;border-radius:18px}.qs-attempt-stats li{padding:14px;margin:10px 0;border-radius:10px;background:#f6f8fc}.qs-attempt-stats li strong{display:block;margin-top:6px}.qs-answer-correct-result{border-left:4px solid #2b9b69}.qs-answer-wrong-result{border-left:4px solid #d97757}
@media(max-width:600px){.qs-test-container{padding:18px!important;border-radius:16px!important}.qs-test-container .qs-test-next,.qs-test-result .qs-stats-button{width:100%;box-sizing:border-box}.qs-test-timer strong{font-size:21px}}

/* Completion panel: polished summary and matching primary actions. */
.qs-test-result{position:relative;max-width:820px;margin:clamp(22px,4vw,42px) auto;padding:clamp(24px,4.5vw,42px);overflow:hidden;border:1px solid #dbe7fb;border-radius:24px;background:radial-gradient(circle at 100% 0%,rgba(99,102,241,.10),transparent 34%),linear-gradient(145deg,#f7faff 0%,#fff 56%,#f8fbff 100%)!important;box-shadow:0 20px 55px rgba(30,64,175,.10);text-align:center;box-sizing:border-box}
.qs-test-result:before{content:"";position:absolute;top:0;left:0;right:0;height:5px;background:linear-gradient(90deg,#2563eb,#6d5ce8,#0891b2)}
.qs-test-result .qs-result-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 14px;border-radius:50%;background:linear-gradient(145deg,#dcfce7,#bbf7d0);color:#15803d;font-size:30px;font-weight:800;box-shadow:0 5px 14px rgba(22,163,74,.12)}
.qs-test-result h3{margin:0 0 8px;color:#172554;font-size:clamp(25px,4vw,34px);font-weight:800;line-height:1.2;letter-spacing:-.025em}
.qs-test-result .qs-result-intro{margin:0 auto 22px;color:#64748b;font-size:15px;line-height:1.6}
.qs-test-result .qs-result-summary{display:flex;align-items:center;justify-content:center;gap:clamp(20px,5vw,44px);max-width:500px;margin:0 auto 26px;padding:20px 22px;border:1px solid #e0e9f8;border-radius:18px;background:rgba(255,255,255,.88)}
.qs-test-result .qs-result-score{margin:0;color:#334155;font-size:clamp(18px,2.8vw,22px);font-weight:700}
.qs-test-result .qs-result-percent{margin:0;color:#315fd0;font-size:clamp(30px,5vw,40px);font-weight:850;line-height:1;letter-spacing:-.04em}
.qs-test-result .qs-result-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px}
.qs-test-result .qs-result-actions form{margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.qs-test-result .qs-result-actions .qs-stats-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;min-width:210px;box-sizing:border-box;padding:13px 22px;border:1px solid transparent;border-radius:12px;background:linear-gradient(115deg,#2857c5 0%,#5847d6 100%);color:#fff!important;font-size:15px;font-weight:750;line-height:1.25;text-align:center;text-decoration:none!important;box-shadow:0 8px 18px rgba(57,75,183,.20);transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.qs-test-result .qs-result-actions .qs-stats-button:hover{filter:brightness(1.07);color:#fff!important;transform:translateY(-2px);box-shadow:0 12px 24px rgba(57,75,183,.25)}
.qs-test-result .qs-result-actions .qs-stats-button:focus-visible{outline:3px solid #93c5fd;outline-offset:3px}
.qs-test-result .qs-diploma-threshold-note{flex-basis:100%;margin:0;color:#64748b;font-size:14px}
.qs-attempt-stats{max-width:820px;margin:18px auto 34px;padding:clamp(18px,3vw,28px);border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.06);box-sizing:border-box}
.qs-attempt-stats h3{margin:0 0 12px;color:#172554;font-size:23px}
.qs-attempt-stats>p{padding:12px 14px;border-radius:10px;background:#eff6ff;color:#1e40af;font-weight:650}
.qs-attempt-stats ol{padding-left:28px;margin:18px 0 0}
.qs-attempt-stats li{padding:15px 16px;margin:10px 0;border:1px solid #e5eaf2;border-left:4px solid #94a3b8;border-radius:12px;background:#f8fafc;line-height:1.55}
.qs-attempt-stats li.qs-answer-correct-result{border-left-color:#16a34a;background:#f0fdf4}
.qs-attempt-stats li.qs-answer-wrong-result{border-left-color:#ea580c;background:#fff7ed}
.qs-attempt-stats li span{display:block;color:#1e293b}
.qs-attempt-stats li strong{display:inline-block;margin-top:8px;font-size:13px;color:#166534}
.qs-attempt-stats li.qs-answer-wrong-result strong{color:#9a3412}
@media(max-width:600px){.qs-test-result{margin:18px auto;padding:24px 16px;border-radius:18px}.qs-test-result .qs-result-summary{flex-direction:column;gap:12px;padding:17px}.qs-test-result .qs-result-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%}.qs-test-result .qs-result-actions .qs-stats-button{width:100%;min-width:0}.qs-attempt-stats{padding:16px;border-radius:14px}.qs-attempt-stats li{padding:13px}}
@media(prefers-reduced-motion:reduce){.qs-test-result .qs-result-actions .qs-stats-button{transition:none}}

/* Public top-30 leaderboard shown with the completed attempt statistics. */
.qs-leaderboard{max-width:1000px;margin:18px auto 36px;padding:clamp(18px,3vw,28px);border:1px solid #dbe7fb;border-radius:18px;background:linear-gradient(145deg,#fff 0%,#f8fbff 100%);box-shadow:0 10px 28px rgba(15,23,42,.06);box-sizing:border-box}
.qs-leaderboard h3{margin:0 0 8px;color:#172554;font-size:clamp(20px,3vw,25px)}
.qs-leaderboard-intro{margin:0 0 16px;color:#64748b;line-height:1.5}
.qs-leaderboard-table-wrap{width:100%;overflow-x:auto;border:1px solid #e2e8f0;border-radius:12px}
.qs-leaderboard-table{width:100%;border-collapse:collapse;background:#fff;font-size:14px;text-align:left}
.qs-leaderboard-table th{padding:12px 14px;background:#eff4ff;color:#334155;font-weight:750;white-space:nowrap}
.qs-leaderboard-table td{padding:12px 14px;border-top:1px solid #edf1f7;color:#334155;vertical-align:middle}
.qs-leaderboard-table tbody tr:nth-child(even){background:#f8fafc}
.qs-leaderboard-table tbody tr.qs-leaderboard-current{background:#eefbf3}
.qs-leaderboard-table td:first-child{font-weight:800;color:#315fd0}
.qs-leaderboard-table td strong{color:#166534}
.qs-leaderboard-you{display:inline-block;margin-left:5px;padding:2px 7px;border-radius:999px;background:#dcfce7;color:#166534;font-size:11px;font-weight:800;white-space:nowrap}
@media(max-width:600px){.qs-leaderboard{padding:15px;border-radius:14px}.qs-leaderboard-table{font-size:13px}.qs-leaderboard-table th,.qs-leaderboard-table td{padding:10px 11px}}

/* Test landing page, activity counter, category and time-limited NEW badge. */
.qs-test-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 16px}
.qs-test-category,.qs-test-new{display:inline-flex;align-items:center;min-height:28px;padding:5px 11px;border-radius:999px;font-size:12px;font-weight:800;line-height:1.2}
.qs-test-category{background:#eaf1ff;color:#254b87;border:1px solid #d7e4ff}
.qs-test-new{background:#dcfce7;color:#166534;border:1px solid #bbf7d0;text-transform:uppercase;letter-spacing:.04em}
.qs-test-landing{max-width:900px;margin:28px auto;padding:clamp(22px,4vw,38px);border:1px solid #dce5f2;border-radius:22px;background:linear-gradient(145deg,#fff 0%,#f6f9ff 100%);box-shadow:0 16px 42px rgba(29,58,112,.09);box-sizing:border-box}
.qs-test-landing>h2{margin:0 0 14px;color:#19345d;font-size:clamp(26px,3.5vw,36px);line-height:1.2;letter-spacing:-.025em}
.qs-test-landing .qs-test-description{margin:0 0 20px;color:#475569;font-size:16px;line-height:1.7}
.qs-test-instructions{margin:20px 0;padding:18px 20px;border:1px solid #e2e8f0;border-radius:14px;background:rgba(255,255,255,.8);color:#334155;line-height:1.65}
.qs-test-instructions h3{margin:0 0 8px;color:#19345d;font-size:17px}
.qs-test-instructions p:last-child{margin-bottom:0}
.qs-test-activity{display:flex;align-items:center;gap:13px;margin:22px 0;padding:17px 19px;border:1px solid #dbeafe;border-radius:15px;background:linear-gradient(110deg,#eff6ff,#f8faff);color:#1e3a8a}
.qs-test-activity-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#dbeafe;color:#1d4ed8;font-size:24px;font-weight:800}
.qs-test-activity>div{display:flex;flex-direction:column;gap:4px}.qs-test-activity strong{font-size:15px}.qs-test-activity span:not(.qs-test-activity-icon){font-size:14px;color:#475569}
.qs-start-test-button{display:inline-flex!important;align-items:center;justify-content:center;min-height:50px;padding:13px 26px!important;border-radius:12px!important;background:linear-gradient(115deg,#2857c5,#5847d6)!important;color:#fff!important;font-weight:800!important;text-decoration:none!important;box-shadow:0 8px 18px rgba(57,75,183,.2);transition:transform .18s ease,box-shadow .18s ease}
.qs-start-test-button:hover{color:#fff!important;transform:translateY(-2px);box-shadow:0 12px 24px rgba(57,75,183,.25)}
.qs-test-login-note{padding:13px 16px;border-radius:12px;background:#fff7ed;color:#9a3412}
.qs-test-container .qs-test-meta{margin-bottom:14px}
.qs-catalog-card .qs-test-meta{margin-bottom:12px}
@media(max-width:600px){.qs-test-landing{margin:18px auto;padding:20px 16px;border-radius:16px}.qs-test-instructions{padding:15px}.qs-start-test-button{width:100%;box-sizing:border-box}.qs-test-activity{padding:14px}}
@media(prefers-reduced-motion:reduce){.qs-start-test-button{transition:none}}

/* Account profile editor: clean participant-facing form styling. */
.qs-account-profile-edit{max-width:900px;margin:24px auto;padding:clamp(20px,3vw,30px);border:1px solid #e0e7f2;border-radius:20px;background:linear-gradient(145deg,#fff 0%,#f8faff 100%);box-shadow:0 12px 32px rgba(28,50,90,.07);box-sizing:border-box}
.qs-account-profile-edit h3{margin:0 0 8px;color:#1e3155;font-size:clamp(21px,3vw,27px);font-weight:800}
.qs-account-profile-hint{margin:0 0 20px;color:#64748b;line-height:1.6}
.qs-account-profile-edit .qs-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.qs-account-profile-edit .qs-form h3,.qs-account-profile-edit .qs-form>p,.qs-account-profile-edit .qs-form button{grid-column:1/-1}
.qs-account-profile-edit .qs-form label{display:flex;flex-direction:column;gap:7px;margin:0;color:#334155;font-size:14px;font-weight:700}
.qs-account-profile-edit .qs-form input:not([type=checkbox]):not([type=radio]){width:100%;min-height:48px;padding:12px 14px;border:1px solid #cbd5e1;border-radius:11px;background:#fff;color:#172033;box-sizing:border-box;font:inherit;font-weight:400;transition:border-color .15s,box-shadow .15s}
.qs-account-profile-edit .qs-form input:focus{outline:none;border-color:#5577d7;box-shadow:0 0 0 3px rgba(85,119,215,.15)}
.qs-account-profile-edit .qs-form button{justify-self:start;min-height:48px;padding:13px 24px;border:0;border-radius:12px;background:linear-gradient(115deg,#2857c5,#5847d6);color:#fff;font-weight:800;cursor:pointer;box-shadow:0 8px 18px rgba(57,75,183,.2)}
.qs-account-profile-edit .qs-form button:hover{filter:brightness(1.06)}
.qs-account-optional{font-size:12px;font-weight:500;color:#64748b}
@media(max-width:620px){.qs-account-profile-edit{padding:18px 14px;border-radius:16px}.qs-account-profile-edit .qs-form{grid-template-columns:minmax(0,1fr)}.qs-account-profile-edit .qs-form button{width:100%}}

/* Unified participant-facing form theme inspired by the requested registration page. */
:where(.qs-form,.qs-account-profile-edit .qs-form,.qs-diploma-form-panel .qs-form){
  color:#18243a;font-family:inherit;box-sizing:border-box;
}
.qs-form:not(.qs-test-container .qs-form){
  max-width:680px;margin:24px auto;padding:clamp(22px,4vw,34px);border:1px solid #e2e8f0;border-radius:18px;
  background:linear-gradient(145deg,#fff 0%,#f8faff 100%);box-shadow:0 12px 32px rgba(28,50,90,.07);
}
.qs-form h2,.qs-form h3{color:#172554;font-weight:800;line-height:1.25;margin:0 0 22px;}
.qs-form label{display:block;margin:0 0 16px;color:#334155;font-size:14px;font-weight:650;line-height:1.45;}
.qs-form input:not([type=radio]):not([type=checkbox]):not([type=submit]),
.qs-form select,.qs-form textarea{
 display:block;width:100%;max-width:none;min-height:48px;box-sizing:border-box;margin-top:7px;padding:12px 14px;
 border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#172033;font:inherit;font-weight:400;
 box-shadow:0 1px 2px rgba(15,23,42,.025);transition:border-color .18s ease,box-shadow .18s ease;
}
.qs-form textarea{min-height:110px;resize:vertical;}
.qs-form input:not([type=radio]):not([type=checkbox]):focus,.qs-form select:focus,.qs-form textarea:focus{
 outline:none;border-color:#5577d7;box-shadow:0 0 0 4px rgba(85,119,215,.14);
}
.qs-form input::placeholder,.qs-form textarea::placeholder{color:#94a3b8;opacity:1;}
.qs-form button[type=submit],.qs-form input[type=submit],.qs-form .qs-button{
 display:inline-flex;align-items:center;justify-content:center;min-height:49px;padding:13px 22px;border:0;border-radius:11px;
 background:linear-gradient(115deg,#2857c5,#5847d6);color:#fff;font:inherit;font-weight:750;text-decoration:none;cursor:pointer;
 box-shadow:0 8px 18px rgba(57,75,183,.2);transition:transform .18s ease,filter .18s ease,box-shadow .18s ease;
}
.qs-form button[type=submit]:hover,.qs-form input[type=submit]:hover,.qs-form .qs-button:hover{color:#fff;filter:brightness(1.06);transform:translateY(-1px);box-shadow:0 11px 24px rgba(57,75,183,.24);}
.qs-form button:focus-visible,.qs-form input[type=submit]:focus-visible,.qs-form a:focus-visible{outline:3px solid #93c5fd;outline-offset:3px;}
.qs-form .qs-error,.qs-error{border-radius:10px;border-left-width:4px;}
.qs-form .description,.qs-form small{color:#64748b;line-height:1.55;}
.qs-box{border-radius:14px;}
@media(max-width:600px){.qs-form:not(.qs-test-container .qs-form){padding:20px 16px;margin:18px auto;border-radius:15px}.qs-form button[type=submit],.qs-form input[type=submit]{width:100%;}}
@media(prefers-reduced-motion:reduce){.qs-form input,.qs-form select,.qs-form textarea,.qs-form button{transition:none!important;}}

/* Participation history: calm, polished table styling */
.qs-history-panel{margin:24px 0;padding:clamp(16px,2.5vw,26px);border:1px solid #e2e8f0;border-radius:18px;background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);box-shadow:0 8px 26px rgba(15,23,42,.055);box-sizing:border-box;max-width:100%}
.qs-history-heading{display:flex;align-items:center;gap:14px;margin:0 0 18px}
.qs-history-mark{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:13px;background:#eff6ff;color:#2563eb;font-size:22px}
.qs-history-heading h3{margin:0 0 5px;font-size:clamp(19px,2.2vw,24px);line-height:1.25;color:#172554}
.qs-history-heading p{margin:0;color:#64748b;font-size:14px;line-height:1.5}
.qs-history-panel .qs-history-table{border:1px solid #e2e8f0;border-collapse:separate;border-spacing:0;border-radius:12px;overflow:hidden;background:#fff;margin:0}
.qs-history-panel .qs-history-table thead th{background:#f1f5f9;color:#475569;font-size:12px;font-weight:700;letter-spacing:.035em;text-transform:uppercase;border:0;border-bottom:1px solid #e2e8f0;padding:14px 12px;white-space:nowrap}
.qs-history-panel .qs-history-table tbody td{padding:14px 12px;border:0;border-bottom:1px solid #edf2f7;color:#334155;vertical-align:middle;font-size:14px}
.qs-history-panel .qs-history-table tbody tr:nth-child(even) td{background:#fbfdff}
.qs-history-panel .qs-history-table tbody tr:hover td{background:#f5f9ff}
.qs-history-panel .qs-history-table tbody tr:last-child td{border-bottom:0}
.qs-history-panel .qs-history-table td:nth-child(4){font-weight:700;color:#1d4ed8;white-space:nowrap}
.qs-history-panel .qs-history-table td:nth-child(5){font-weight:600;white-space:nowrap}
.qs-history-panel .qs-download-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#d9f4df;color:#205c35;border:1px solid #b9e8c4;border-radius:9px;padding:9px 13px;font-size:13px;font-weight:700;line-height:1.2;box-shadow:0 1px 2px rgba(22,101,52,.06);transition:background .15s ease,border-color .15s ease,transform .15s ease}
.qs-history-panel .qs-download-button:hover,.qs-history-panel .qs-download-button:focus{background:#c5ebcf;color:#174b2a;border-color:#9fdbad;transform:translateY(-1px)}
.qs-history-empty{display:flex;flex-direction:column;align-items:center;gap:5px;padding:24px 12px;text-align:center;color:#64748b}
.qs-history-empty strong{color:#334155;font-size:15px}
.qs-history-empty span{font-size:13px}
@media(max-width:700px){.qs-history-panel{padding:14px;border-radius:14px}.qs-history-heading{align-items:flex-start}.qs-history-mark{flex-basis:38px;width:38px;height:38px}.qs-history-panel .qs-history-table{display:block;max-width:100%;overflow-x:auto;white-space:normal}.qs-history-panel .qs-history-table th,.qs-history-panel .qs-history-table td{min-width:95px;overflow-wrap:anywhere}.qs-history-panel .qs-history-table td .qs-button{white-space:normal}}

/* Logged-in registration page navigation */
.qs-authenticated-actions{max-width:760px;margin:24px auto;padding:clamp(20px,3vw,30px);border:1px solid #dbe5f0;border-radius:16px;background:linear-gradient(135deg,#f8fbff 0%,#fff 100%);box-shadow:0 8px 24px rgba(15,23,42,.06)}.qs-authenticated-actions h3{margin:0 0 8px;color:#172554;font-size:clamp(20px,2.5vw,25px)}.qs-authenticated-actions>p{margin:0 0 18px;color:#64748b}.qs-authenticated-actions-buttons{display:flex;flex-wrap:wrap;gap:10px}.qs-authenticated-actions-buttons .qs-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 18px;border-radius:10px;font-weight:700;transition:transform .15s ease,filter .15s ease}.qs-authenticated-actions-buttons .qs-button:hover{filter:brightness(1.06);transform:translateY(-1px);color:#fff}.qs-authenticated-actions-buttons .qs-button-secondary{background:#e8efff;color:#2447a8}.qs-authenticated-actions-buttons .qs-button-secondary:hover{color:#2447a8}.qs-authenticated-actions-buttons .qs-button-logout{background:#f1f5f9;color:#475569;border:1px solid #dbe3ec}.qs-authenticated-actions-buttons .qs-button-logout:hover{color:#334155}@media(max-width:520px){.qs-authenticated-actions-buttons{flex-direction:column}.qs-authenticated-actions-buttons .qs-button{width:100%;box-sizing:border-box}}


/* Polished diploma checkout card. */
.qs-payment-checkout{max-width:680px!important;margin:clamp(22px,4vw,42px) auto!important;padding:0!important;overflow:hidden;border:1px solid #dbe5f4!important;border-radius:24px!important;background:#fff!important;box-shadow:0 22px 60px rgba(30,58,138,.12)!important;color:#172033}
.qs-payment-hero{display:flex;align-items:center;gap:17px;padding:clamp(22px,4vw,32px);background:radial-gradient(circle at 100% 0%,rgba(125,211,252,.24),transparent 36%),linear-gradient(125deg,#172554 0%,#1d4ed8 62%,#4338ca 100%);color:#fff}
.qs-payment-icon{display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;border:1px solid rgba(255,255,255,.3);border-radius:17px;background:rgba(255,255,255,.13);color:#fff;font-size:36px;line-height:1;box-shadow:inset 0 1px rgba(255,255,255,.15)}
.qs-payment-eyebrow{display:block;margin:0 0 7px;color:#bfdbfe;font-size:10px;font-weight:850;letter-spacing:.16em}
.qs-payment-hero h3{margin:0 0 6px!important;color:#fff!important;font-size:clamp(23px,3vw,30px)!important;font-weight:850!important;line-height:1.2!important;letter-spacing:-.035em}
.qs-payment-hero p{margin:0;color:rgba(255,255,255,.83);font-size:14px;line-height:1.5}
.qs-payment-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;padding:24px clamp(22px,4vw,32px);border-bottom:1px solid #edf2f8}
.qs-payment-document{display:flex;align-items:center;gap:12px;min-width:0}
.qs-payment-summary-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;background:#eff6ff;color:#315bd6;font-size:23px}
.qs-payment-document>div,.qs-payment-price{display:flex;flex-direction:column;gap:5px;min-width:0}
.qs-payment-label{color:#64748b;font-size:12px;font-weight:700;letter-spacing:.025em}
.qs-payment-document strong{color:#1e293b;font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.qs-payment-price{text-align:right;white-space:nowrap}
.qs-payment-price>strong{color:#1d4ed8;font-size:clamp(25px,4vw,32px);font-weight:850;line-height:1.15;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.qs-payment-price small{font-size:.6em;font-weight:750}
.qs-payment-note{display:flex;align-items:flex-start;gap:11px;margin:20px clamp(22px,4vw,32px) 0;padding:14px 15px;border:1px solid #d9f2e3;border-radius:13px;background:linear-gradient(110deg,#f0fdf4,#f8fffb)}
.qs-payment-check{display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;border-radius:50%;background:#dcfce7;color:#15803d;font-size:14px;font-weight:900}
.qs-payment-note p{margin:1px 0 0;color:#35624a;font-size:13px;line-height:1.6}
.qs-payment-form{padding:22px clamp(22px,4vw,32px) 24px}
.qs-payment-submit{display:flex!important;align-items:center;justify-content:center;gap:14px;width:100%;min-height:58px;padding:16px 22px!important;border:0!important;border-radius:14px!important;background:linear-gradient(110deg,#2563eb 0%,#4f46e5 100%)!important;color:#fff!important;font-size:16px!important;font-weight:800!important;text-decoration:none!important;box-shadow:0 10px 22px rgba(59,80,210,.25)!important;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.qs-payment-submit:hover{color:#fff!important;filter:brightness(1.06);transform:translateY(-2px);box-shadow:0 15px 28px rgba(59,80,210,.3)!important}
.qs-payment-arrow{display:inline-grid;place-items:center;width:27px;height:27px;border-radius:50%;background:rgba(255,255,255,.17);font-size:20px;line-height:1;transition:transform .18s ease}
.qs-payment-submit:hover .qs-payment-arrow{transform:translateX(3px)}
.qs-payment-submit:focus-visible{outline:3px solid #93c5fd!important;outline-offset:4px}
.qs-payment-secure{display:flex;align-items:center;justify-content:center;gap:7px;margin:13px 0 0;color:#7c8ba1;font-size:11px;line-height:1.5;text-align:center}
.qs-payment-secure span{color:#64748b;font-size:13px}
@media(max-width:520px){.qs-payment-checkout{margin:18px auto!important;border-radius:18px!important}.qs-payment-hero{gap:13px;padding:22px 18px}.qs-payment-icon{flex-basis:46px;width:46px;height:46px;border-radius:14px;font-size:30px}.qs-payment-summary{grid-template-columns:minmax(0,1fr);gap:17px;padding:20px 18px}.qs-payment-price{text-align:left;padding-top:13px;border-top:1px dashed #dbe5f4}.qs-payment-price>strong{font-size:29px}.qs-payment-note{margin:16px 18px 0;padding:12px}.qs-payment-form{padding:18px 18px 20px}.qs-payment-submit{min-height:55px;font-size:15px!important}.qs-payment-secure{font-size:10px}}
@media(prefers-reduced-motion:reduce){.qs-payment-submit,.qs-payment-arrow{transition:none!important}}
/* Payment success state uses the same visual language as checkout. */
.qs-payment-result{max-width:680px!important;margin:clamp(22px,4vw,42px) auto!important;padding:0!important;overflow:hidden;border:1px solid #dbe5f4!important;border-radius:24px!important;background:#fff!important;box-shadow:0 22px 60px rgba(30,58,138,.12)!important;color:#172033}
.qs-payment-success-hero{background:radial-gradient(circle at 100% 0%,rgba(167,243,208,.22),transparent 36%),linear-gradient(125deg,#172554 0%,#1d4ed8 62%,#4338ca 100%)}
.qs-payment-success-icon{display:grid;place-items:center;background:rgba(255,255,255,.16);font-size:31px;font-weight:800}
.qs-payment-success-body{padding-bottom:4px}
.qs-payment-success-note{margin-top:24px}
.qs-payment-success-actions{padding-top:22px;padding-bottom:24px}
.qs-payment-dashboard-button{box-sizing:border-box;display:flex!important;align-items:center;justify-content:center;gap:14px;width:100%;min-height:58px;padding:16px 22px!important;border:0!important;border-radius:14px!important;background:linear-gradient(110deg,#2563eb 0%,#4f46e5 100%)!important;color:#fff!important;font-size:16px!important;font-weight:800!important;text-decoration:none!important;box-shadow:0 10px 22px rgba(59,80,210,.25)!important;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.qs-payment-dashboard-button:hover{color:#fff!important;filter:brightness(1.06);transform:translateY(-2px);box-shadow:0 15px 28px rgba(59,80,210,.3)!important}
.qs-payment-dashboard-button:focus-visible{outline:3px solid #93c5fd!important;outline-offset:4px}
@media(max-width:520px){.qs-payment-result{margin:18px auto!important;border-radius:18px!important}.qs-payment-success-hero{gap:13px;padding:22px 18px}.qs-payment-success-icon{flex-basis:46px;width:46px;height:46px;border-radius:14px;font-size:27px}.qs-payment-success-note{margin:16px 18px 0;padding:12px}.qs-payment-success-actions{padding:18px 18px 20px}.qs-payment-dashboard-button{min-height:55px;font-size:15px!important}}
@media(prefers-reduced-motion:reduce){.qs-payment-dashboard-button{transition:none!important}}



/* Background chooser and three-column diploma application layout. */
.qs-diploma-layout{grid-template-columns:minmax(112px,.38fr) minmax(0,1.15fr) minmax(280px,.85fr);gap:clamp(12px,2vw,24px)}
.qs-diploma-layout>.qs-diploma-background-picker{padding:16px 12px;background:linear-gradient(180deg,#fff,#f8fbff)}
.qs-diploma-background-picker>h3{font-size:18px!important;margin-bottom:8px!important;padding-bottom:10px!important}
.qs-diploma-background-picker>p{margin:0 0 14px;color:#64748b;font-size:13px;line-height:1.45}
.qs-diploma-background-thumbnails{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.qs-diploma-background-choice{display:block;width:100%;padding:5px;border:2px solid #e2e8f0;border-radius:11px;background:#fff;color:#475569;text-align:left;font:inherit;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}
.qs-diploma-background-choice img{display:block;width:100%;height:auto;max-height:240px;aspect-ratio:auto;object-fit:contain;object-position:center;border-radius:6px;background:#f1f5f9}
.qs-diploma-background-choice span{display:block;padding:6px 3px 2px;font-size:12px;font-weight:650;line-height:1.3}
.qs-diploma-background-choice:hover{border-color:#93c5fd;transform:translateY(-1px)}
.qs-diploma-background-choice.is-selected{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.14);background:#eff6ff;color:#1d4ed8}
.qs-diploma-background-choice:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
@media(max-width:1050px){.qs-diploma-layout{grid-template-columns:120px minmax(0,1fr)}.qs-diploma-layout>.qs-diploma-form-panel{grid-column:2}.qs-diploma-background-thumbnails{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.qs-diploma-layout{grid-template-columns:minmax(0,1fr)}.qs-diploma-layout>.qs-diploma-background-picker{grid-column:1;grid-row:auto}.qs-diploma-background-thumbnails{grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px}.qs-diploma-background-choice{padding:4px}.qs-diploma-background-choice span{font-size:11px}.qs-diploma-layout>.qs-diploma-preview,.qs-diploma-layout>.qs-diploma-form-panel{grid-column:1}}

/* Diploma background picker: modern floating scroll controls. */
.qs-diploma-background-picker{position:relative;align-self:start;overflow:hidden;border:1px solid #e5eaf3!important;background:linear-gradient(160deg,#ffffff 0%,#f4f8ff 100%)!important;box-shadow:0 14px 34px rgba(15,23,42,.07)!important}
.qs-diploma-background-thumbnails{max-height:min(62vh,680px);overflow-y:auto;overscroll-behavior:contain;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:#a5b4fc transparent;padding:5px 4px;mask-image:linear-gradient(to bottom,transparent 0,#000 14px,#000 calc(100% - 14px),transparent 100%)}
.qs-thumb-scroll{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;width:44px;height:38px;margin:9px auto;border:1px solid rgba(148,163,184,.42);border-radius:14px;background:linear-gradient(145deg,#fff 0%,#eef4ff 100%);color:#3157c8;font-size:24px;font-weight:800;line-height:1;box-shadow:0 5px 14px rgba(37,55,100,.10),inset 0 1px 0 rgba(255,255,255,.9);cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease}
.qs-thumb-scroll:hover:not(:disabled){transform:translateY(-2px);border-color:#93a9f8;background:linear-gradient(145deg,#f4f7ff,#dfe9ff);box-shadow:0 9px 20px rgba(37,99,235,.2)}
.qs-thumb-scroll:active:not(:disabled){transform:translateY(0) scale(.96)}
.qs-thumb-scroll:disabled{opacity:.28;cursor:default;box-shadow:none;filter:grayscale(.35)}
.qs-thumb-scroll:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.qs-test-login-action{margin-top:16px}
.qs-test-login-button{display:inline-flex;align-items:center;justify-content:center;padding:12px 22px;border-radius:10px;background:linear-gradient(135deg,#1677d2,#075db7);color:#fff!important;font-weight:700;text-decoration:none;box-shadow:0 6px 16px rgba(7,93,183,.2)}
.qs-password-reset-link{margin:10px 0 0;text-align:right}
.qs-password-reset-link a{font-size:.94em;text-decoration:none}

/* Admin appearance settings tabs and previews. */
.qs-appearance-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 14px;padding:8px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:14px;max-width:1100px}
.qs-appearance-tabs button{border:1px solid transparent;border-radius:9px;padding:10px 15px;background:transparent;color:#334155;font-weight:650;cursor:pointer;transition:all .18s}
.qs-appearance-tabs button:hover{background:#fff}
.qs-appearance-tabs button[aria-selected=true]{background:#fff;color:#1d4ed8;border-color:#dbeafe;box-shadow:0 3px 10px rgba(15,23,42,.07)}
.qs-appearance-panel{max-width:1100px;padding:18px 20px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 8px 24px rgba(15,23,42,.035);margin-bottom:18px}
.qs-appearance-live-preview{padding:20px;border-radius:12px;border:1px solid #dbe3ef;background:#f8fafc;margin:12px 0 20px}
.qs-appearance-live-preview input{max-width:100%;padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px}
.qs-appearance-live-preview button{padding:10px 16px;border:0;border-radius:9px;background:#2271b1;color:#fff;font-weight:650}
@media(max-width:600px){.qs-appearance-tabs{display:grid;grid-template-columns:1fr 1fr}.qs-appearance-tabs button{padding:9px 8px}}

/* Animated login/registration scene inspired by the supplied CodePen. */
.qs-auth-scene{position:relative;isolation:isolate;overflow:hidden;box-sizing:border-box;max-width:760px;margin:24px auto;padding:clamp(22px,4vw,36px);border:0;border-radius:18px;background:linear-gradient(115deg,#50c9b7 0%,#38bda8 35%,#20a99f 68%,#159a91 100%);box-shadow:0 18px 48px rgba(13,112,103,.2);color:#fff;}
.qs-auth-scene-content{position:relative;z-index:2;min-width:0;}
.qs-auth-bubbles{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;}
.qs-auth-bubbles span{position:absolute;bottom:-150px;display:block;width:34px;height:34px;list-style:none;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.1);border-radius:2px;animation:qs-auth-float 22s linear infinite;}
.qs-auth-bubbles span:nth-child(1){left:7%;width:42px;height:42px;animation-duration:18s;animation-delay:0s}
.qs-auth-bubbles span:nth-child(2){left:18%;width:18px;height:18px;animation-duration:24s;animation-delay:2s}
.qs-auth-bubbles span:nth-child(3){left:31%;width:56px;height:56px;animation-duration:21s;animation-delay:5s}
.qs-auth-bubbles span:nth-child(4){left:44%;width:26px;height:26px;animation-duration:17s;animation-delay:1s}
.qs-auth-bubbles span:nth-child(5){left:57%;width:72px;height:72px;animation-duration:27s;animation-delay:4s}
.qs-auth-bubbles span:nth-child(6){left:69%;width:22px;height:22px;animation-duration:19s;animation-delay:7s}
.qs-auth-bubbles span:nth-child(7){left:79%;width:48px;height:48px;animation-duration:23s;animation-delay:3s}
.qs-auth-bubbles span:nth-child(8){left:91%;width:30px;height:30px;animation-duration:20s;animation-delay:6s}
.qs-auth-bubbles span:nth-child(9){left:37%;width:14px;height:14px;animation-duration:16s;animation-delay:8s}
.qs-auth-bubbles span:nth-child(10){left:84%;width:64px;height:64px;animation-duration:29s;animation-delay:9s}
@keyframes qs-auth-float{0%{transform:translateY(0) rotate(0deg);opacity:0}10%{opacity:.8}85%{opacity:.55}100%{transform:translateY(-850px) rotate(600deg);opacity:0}}
.qs-auth-scene .qs-form:not(.qs-test-container .qs-form){position:relative;max-width:560px;margin:0 auto;padding:clamp(20px,3.5vw,32px)!important;border:1px solid rgba(255,255,255,.32)!important;border-radius:14px!important;background:rgba(255,255,255,.105)!important;box-shadow:0 10px 30px rgba(0,76,73,.1)!important;backdrop-filter:blur(4px);}
.qs-auth-scene .qs-form h2,.qs-auth-scene .qs-form h3{color:#fff;margin-bottom:22px;text-shadow:0 1px 1px rgba(0,70,70,.08)}
.qs-auth-scene .qs-form label{color:rgba(255,255,255,.96);font-weight:600}
.qs-auth-scene .qs-form input:not([type=radio]):not([type=checkbox]):not([type=submit]),.qs-auth-scene .qs-form select,.qs-auth-scene .qs-form textarea{border:1px solid rgba(255,255,255,.46);border-radius:8px;background:rgba(255,255,255,.16);color:#fff;box-shadow:none;transition:background .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.qs-auth-scene .qs-form input:not([type=radio]):not([type=checkbox]):not([type=submit]):focus,.qs-auth-scene .qs-form select:focus,.qs-auth-scene .qs-form textarea:focus{border-color:#fff;background:rgba(255,255,255,.23);box-shadow:0 0 0 3px rgba(255,255,255,.16);outline:none}
.qs-auth-scene .qs-form input::placeholder,.qs-auth-scene .qs-form textarea::placeholder{color:rgba(255,255,255,.72)}
.qs-auth-scene .qs-form button[type=submit],.qs-auth-scene .qs-form input[type=submit]{background:#fff;color:#159b91;border:1px solid rgba(255,255,255,.9);border-radius:8px;box-shadow:0 7px 18px rgba(0,75,71,.12);transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.qs-auth-scene .qs-form button[type=submit]:hover,.qs-auth-scene .qs-form input[type=submit]:hover{background:#f0fffc;color:#087e78;transform:translateY(-2px);box-shadow:0 10px 22px rgba(0,75,71,.2)}
.qs-auth-scene .qs-password-reset-link{position:relative;z-index:2;max-width:560px;margin:12px auto 0;text-align:right}
.qs-auth-scene .qs-password-reset-link a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.qs-auth-scene .qs-password-reset-link a:hover{color:#e4fffb}
.qs-auth-scene .qs-error,.qs-auth-scene .qs-notice{position:relative;z-index:2;max-width:560px;margin:0 auto 14px;background:rgba(255,255,255,.94);color:#25434a;border-radius:9px}
.qs-auth-register-scene{max-width:680px}
.qs-auth-register-scene .qs-form{max-width:none}
.qs-auth-scene .qs-remember{display:flex;align-items:center;gap:8px}
.qs-auth-scene .qs-remember input{accent-color:#fff}
@media(max-width:600px){.qs-auth-scene{padding:14px;border-radius:14px;margin:16px auto}.qs-auth-scene .qs-form:not(.qs-test-container .qs-form){padding:20px 16px!important}.qs-auth-scene .qs-form button[type=submit],.qs-auth-scene .qs-form input[type=submit]{width:100%}.qs-auth-tabbar{gap:6px}.qs-auth-tab{padding:11px 8px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.qs-auth-bubbles span{animation:none!important;opacity:.12;bottom:10%}.qs-auth-scene .qs-form input,.qs-auth-scene .qs-form button,.qs-auth-tab{transition:none!important}}

/* Extend the animated teal login/registration visual language to member pages, password reset and menu. */
.qs-animated-page{position:relative;isolation:isolate;overflow:hidden;box-sizing:border-box;padding:clamp(14px,2.5vw,28px);margin:24px auto 36px;border-radius:22px;background:linear-gradient(115deg,#50c9b7 0%,#38bda8 35%,#20a99f 68%,#159a91 100%);box-shadow:0 18px 48px rgba(13,112,103,.18);color:#fff}
.qs-animated-page>.qs-dashboard,.qs-animated-page>.qs-history-panel,.qs-animated-page>.qs-box,.qs-animated-page>.qs-history-heading{position:relative;z-index:1}
.qs-animated-page .qs-dashboard{max-width:1100px;margin:0 auto 20px;color:#173b43}
.qs-page-bubbles{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.qs-page-bubbles span{position:absolute;bottom:-100px;display:block;width:30px;height:30px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.13);border-radius:2px;animation:qs-auth-float 22s linear infinite}
.qs-page-bubbles span:nth-child(1){left:7%;width:44px;height:44px;animation-duration:19s}
.qs-page-bubbles span:nth-child(2){left:21%;width:20px;height:20px;animation-duration:25s;animation-delay:3s}
.qs-page-bubbles span:nth-child(3){left:38%;width:58px;height:58px;animation-duration:23s;animation-delay:6s}
.qs-page-bubbles span:nth-child(4){left:54%;width:26px;height:26px;animation-duration:17s;animation-delay:1s}
.qs-page-bubbles span:nth-child(5){left:73%;width:70px;height:70px;animation-duration:28s;animation-delay:4s}
.qs-page-bubbles span:nth-child(6){left:89%;width:34px;height:34px;animation-duration:21s;animation-delay:7s}
.qs-animated-page .qs-dashboard-hero{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.35);box-shadow:0 10px 28px rgba(0,76,73,.1);backdrop-filter:blur(5px)}
.qs-animated-page .qs-dashboard-hero h2,.qs-animated-page .qs-dashboard-hero p,.qs-animated-page .qs-dashboard-eyebrow{color:#fff}
.qs-animated-page .qs-dashboard-avatar{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.42)}
.qs-animated-page .qs-stat-card,.qs-animated-page .qs-account-details,.qs-animated-page .qs-account-profile-edit,.qs-animated-page .qs-history-panel,.qs-animated-page .qs-history-heading{background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.72);border-radius:16px;box-shadow:0 9px 24px rgba(0,76,73,.1);backdrop-filter:blur(5px)}
.qs-animated-page .qs-stat-card strong{color:#159b91}
.qs-animated-page .qs-account-details h3,.qs-animated-page .qs-account-profile-edit h3{color:#087e78}
.qs-animated-page .qs-account-profile-edit .qs-form button,.qs-animated-page .qs-button{background:#fff!important;color:#128f86!important;border:1px solid rgba(255,255,255,.9)!important;box-shadow:0 7px 18px rgba(0,75,71,.12);transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.qs-animated-page .qs-account-profile-edit .qs-form button:hover,.qs-animated-page .qs-button:hover{background:#effffb!important;color:#087e78!important;transform:translateY(-2px);box-shadow:0 10px 22px rgba(0,75,71,.2)}
.qs-animated-page .qs-account-profile-edit .qs-form input:not([type=checkbox]):not([type=radio]){border-color:#b9e4dc;border-radius:9px;background:rgba(255,255,255,.9)}
.qs-animated-page .qs-account-profile-edit .qs-form input:focus{border-color:#159b91;box-shadow:0 0 0 3px rgba(21,155,145,.16)}
.qs-animated-page .qs-table th{background:#e2f8f3!important;color:#17635e!important}
.qs-animated-page .qs-table td{background:rgba(255,255,255,.92)!important}
.qs-auth-reset-scene{max-width:760px}
.qs-auth-reset-scene .qs-form{max-width:560px}
.qs-menu-animated{z-index:100;}
.qs-menu-animated .qs-user-menu-button{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.55)!important;background:linear-gradient(115deg,#50c9b7 0%,#20a99f 68%,#159a91 100%)!important;color:#fff!important;border-radius:12px!important;box-shadow:0 8px 20px rgba(13,112,103,.22);font-weight:700;transition:transform .2s ease,box-shadow .2s ease,filter .2s ease}
.qs-menu-animated .qs-user-menu-button:before{content:"";position:absolute;inset:-40% auto -40% -30%;width:22%;background:rgba(255,255,255,.2);transform:rotate(18deg) translateX(-220%);transition:transform .55s ease;pointer-events:none}
.qs-menu-animated .qs-user-menu-button:hover,.qs-menu-animated .qs-user-menu-button:focus-visible{filter:brightness(1.05);transform:translateY(-2px);box-shadow:0 12px 26px rgba(13,112,103,.28);outline:2px solid rgba(32,169,159,.35);outline-offset:3px}
.qs-menu-animated .qs-user-menu-button:hover:before{transform:rotate(18deg) translateX(700%)}
.qs-menu-animated .qs-user-menu-dropdown{overflow:hidden;padding:7px;border:1px solid rgba(255,255,255,.7)!important;border-radius:14px!important;background:rgba(245,255,252,.96)!important;color:#15524f!important;box-shadow:0 16px 38px rgba(0,76,73,.22)!important;backdrop-filter:blur(12px);animation:qs-menu-pop .18s ease-out both}
.qs-menu-animated .qs-user-menu-dropdown a{border-radius:9px;transition:background .16s ease,color .16s ease,transform .16s ease}
.qs-menu-animated .qs-user-menu-dropdown a:hover,.qs-menu-animated .qs-user-menu-dropdown a:focus-visible{background:rgba(32,169,159,.13)!important;color:#087e78!important;transform:translateX(2px);outline:none}
@keyframes qs-menu-pop{from{opacity:0;transform:translateY(-5px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:700px){.qs-animated-page{padding:12px;margin:16px auto 24px;border-radius:16px}.qs-animated-page .qs-dashboard-stats{grid-template-columns:1fr}.qs-menu-animated .qs-user-menu-dropdown{max-width:min(86vw,300px);min-width:190px}}
@media(prefers-reduced-motion:reduce){.qs-page-bubbles span{animation:none!important;opacity:.12;bottom:10%}.qs-menu-animated .qs-user-menu-button,.qs-menu-animated .qs-user-menu-dropdown,.qs-menu-animated .qs-user-menu-dropdown a{animation:none!important;transition:none!important}}

/* Test introduction mirrors the animated login scene. */
.qs-test-landing>.qs-auth-bubbles{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.qs-test-landing>.qs-auth-bubbles span{position:absolute;bottom:-150px;display:block;width:34px;height:34px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.1);border-radius:2px;animation:qs-auth-float 22s linear infinite}
.qs-test-landing>.qs-auth-bubbles span:nth-child(1){left:7%;width:42px;height:42px;animation-duration:18s}
.qs-test-landing>.qs-auth-bubbles span:nth-child(2){left:18%;width:18px;height:18px;animation-duration:24s;animation-delay:2s}
.qs-test-landing>.qs-auth-bubbles span:nth-child(3){left:31%;width:56px;height:56px;animation-duration:21s;animation-delay:5s}
.qs-test-landing>.qs-auth-bubbles span:nth-child(4){left:44%;width:26px;height:26px;animation-duration:17s;animation-delay:1s}
.qs-test-landing>.qs-auth-bubbles span:nth-child(5){left:57%;width:72px;height:72px;animation-duration:27s;animation-delay:4s}
.qs-test-landing>.qs-auth-bubbles span:nth-child(6){left:69%;width:22px;height:22px;animation-duration:19s;animation-delay:7s}
.qs-test-landing>.qs-auth-bubbles span:nth-child(7){left:79%;width:48px;height:48px;animation-duration:23s;animation-delay:3s}
.qs-test-landing>.qs-auth-bubbles span:nth-child(8){left:91%;width:30px;height:30px;animation-duration:20s;animation-delay:6s}
.qs-test-landing>.qs-auth-bubbles span:nth-child(9){left:37%;width:14px;height:14px;animation-duration:16s;animation-delay:8s}
.qs-test-landing>.qs-auth-bubbles span:nth-child(10){left:84%;width:64px;height:64px;animation-duration:29s;animation-delay:9s}
.qs-test-landing .qs-test-instructions{background:rgba(255,255,255,.30)!important;border:0!important;box-shadow:none!important}
@media(prefers-reduced-motion:reduce){.qs-test-landing>.qs-auth-bubbles span{animation:none!important;opacity:.12;bottom:10%}}

/* Test description scene uses the same animated floating squares as login. */
.qs-test-landing{position:relative!important;isolation:isolate!important;overflow:hidden!important;background:linear-gradient(115deg,#50c9b7 0%,#38bda8 35%,#20a99f 68%,#159a91 100%)!important;border:0!important;box-shadow:0 18px 48px rgba(13,112,103,.2)!important;color:#fff!important}
.qs-test-landing-content{position:relative;z-index:2;min-width:0}
.qs-test-landing>.qs-auth-bubbles{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.qs-test-landing>.qs-auth-bubbles span{position:absolute;bottom:-150px;display:block;width:34px;height:34px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.1);border-radius:2px;animation:qs-auth-float 22s linear infinite}
.qs-test-landing>.qs-auth-bubbles span:nth-child(1){left:7%;width:42px;height:42px;animation-duration:18s}
.qs-test-landing>.qs-auth-bubbles span:nth-child(2){left:18%;width:18px;height:18px;animation-duration:24s;animation-delay:2s}
.qs-test-landing>.qs-auth-bubbles span:nth-child(3){left:31%;width:56px;height:56px;animation-duration:21s;animation-delay:5s}
.qs-test-landing>.qs-auth-bubbles span:nth-child(4){left:44%;width:26px;height:26px;animation-duration:17s;animation-delay:1s}
.qs-test-landing>.qs-auth-bubbles span:nth-child(5){left:57%;width:72px;height:72px;animation-duration:27s;animation-delay:4s}
.qs-test-landing>.qs-auth-bubbles span:nth-child(6){left:69%;width:22px;height:22px;animation-duration:19s;animation-delay:7s}
.qs-test-landing>.qs-auth-bubbles span:nth-child(7){left:79%;width:48px;height:48px;animation-duration:23s;animation-delay:3s}
.qs-test-landing>.qs-auth-bubbles span:nth-child(8){left:91%;width:30px;height:30px;animation-duration:20s;animation-delay:6s}
.qs-test-landing>.qs-auth-bubbles span:nth-child(9){left:37%;width:14px;height:14px;animation-duration:16s;animation-delay:8s}
.qs-test-landing>.qs-auth-bubbles span:nth-child(10){left:84%;width:64px;height:64px;animation-duration:29s;animation-delay:9s}
.qs-test-landing .qs-test-description{position:relative;z-index:2;color:rgba(255,255,255,.96)!important}
.qs-test-landing .qs-test-instructions{position:relative;z-index:2;background:rgba(255,255,255,.30)!important;border:0!important;box-shadow:none!important;backdrop-filter:blur(4px)}
.qs-test-landing .qs-test-instructions h3{color:inherit!important}
@media(prefers-reduced-motion:reduce){.qs-test-landing>.qs-auth-bubbles span{animation:none!important;opacity:.12;bottom:10%}}

/* v0.5.73: unify quiz action buttons with the animated user-menu button */
.qs-test-container .qs-test-next,
.qs-test-result .qs-result-actions .qs-stats-button,
.qs-test-result .qs-result-actions .qs-diploma-button,
.qs-test-result .qs-result-actions .qs-button {
  position:relative!important;overflow:hidden!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  min-height:48px!important;min-width:210px;box-sizing:border-box!important;padding:13px 22px!important;
  border:1px solid rgba(255,255,255,.55)!important;border-radius:12px!important;
  background:linear-gradient(115deg,#50c9b7 0%,#20a99f 68%,#159a91 100%)!important;
  color:#fff!important;font-weight:700!important;text-decoration:none!important;
  box-shadow:0 8px 20px rgba(13,112,103,.22)!important;cursor:pointer!important;
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease!important;
}
.qs-test-container .qs-test-next:before,
.qs-test-result .qs-result-actions .qs-stats-button:before,
.qs-test-result .qs-result-actions .qs-diploma-button:before,
.qs-test-result .qs-result-actions .qs-button:before {
  content:"";position:absolute;inset:-40% auto -40% -30%;width:22%;background:rgba(255,255,255,.2);
  transform:rotate(18deg) translateX(-220%);transition:transform .55s ease;pointer-events:none;
}
.qs-test-container .qs-test-next:hover,.qs-test-container .qs-test-next:focus-visible,
.qs-test-result .qs-result-actions .qs-stats-button:hover,.qs-test-result .qs-result-actions .qs-stats-button:focus-visible,
.qs-test-result .qs-result-actions .qs-diploma-button:hover,.qs-test-result .qs-result-actions .qs-diploma-button:focus-visible,
.qs-test-result .qs-result-actions .qs-button:hover,.qs-test-result .qs-result-actions .qs-button:focus-visible {
  filter:brightness(1.05)!important;transform:translateY(-2px)!important;box-shadow:0 12px 26px rgba(13,112,103,.28)!important;
  outline:2px solid rgba(32,169,159,.35)!important;outline-offset:3px!important;color:#fff!important;
}
.qs-test-container .qs-test-next:hover:before,.qs-test-container .qs-test-next:focus-visible:before,
.qs-test-result .qs-result-actions .qs-stats-button:hover:before,.qs-test-result .qs-result-actions .qs-stats-button:focus-visible:before,
.qs-test-result .qs-result-actions .qs-diploma-button:hover:before,.qs-test-result .qs-result-actions .qs-diploma-button:focus-visible:before,
.qs-test-result .qs-result-actions .qs-button:hover:before,.qs-test-result .qs-result-actions .qs-button:focus-visible:before {transform:rotate(18deg) translateX(700%)}

/* Completed-test panel styled like the glassy .qs-auth-tabs surface */
.qs-test-result {
  position:relative!important;isolation:isolate;overflow:hidden!important;box-sizing:border-box!important;
  border:1px solid rgba(255,255,255,.58)!important;border-radius:20px!important;
  background:linear-gradient(125deg,rgba(32,169,159,.30),rgba(80,201,183,.22),rgba(105,238,198,.28))!important;
  color:#fff!important;box-shadow:0 16px 42px rgba(0,90,86,.16)!important;
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
}
.qs-test-result:before {height:3px!important;background:linear-gradient(90deg,rgba(255,255,255,.3),rgba(255,255,255,.85),rgba(255,255,255,.3))!important}
.qs-test-result h1,.qs-test-result h2,.qs-test-result h3,.qs-test-result h4,
.qs-test-result p,.qs-test-result span,.qs-test-result strong,.qs-test-result small,
.qs-test-result label,.qs-test-result li,.qs-test-result dt,.qs-test-result dd {color:#19a096!important}
.qs-test-result .qs-result-summary {border:1px solid rgba(25,160,150,.24)!important;border-radius:16px!important;background:rgba(255,255,255,.16)!important;backdrop-filter:blur(8px)}
.qs-test-result .qs-result-icon {background:rgba(25,160,150,.12)!important;color:#19a096!important;border:1px solid rgba(25,160,150,.3);box-shadow:none!important}
@media(max-width:600px){.qs-test-container .qs-test-next,.qs-test-result .qs-result-actions .qs-stats-button,.qs-test-result .qs-result-actions .qs-diploma-button,.qs-test-result .qs-result-actions .qs-button{width:100%;min-width:0}}
@media(prefers-reduced-motion:reduce){.qs-test-container .qs-test-next,.qs-test-result .qs-result-actions .qs-stats-button,.qs-test-result .qs-result-actions .qs-diploma-button,.qs-test-result .qs-result-actions .qs-button{transition:none!important}}

/* Diploma application panels and controls styled to match the personal-account menu. */
.qs-diploma-layout>.qs-diploma-background-picker,
.qs-diploma-layout>.qs-diploma-form-panel{border:1px solid rgba(255,255,255,.78)!important;border-radius:18px!important;background:linear-gradient(155deg,rgba(248,255,253,.98) 0%,rgba(235,250,247,.96) 100%)!important;box-shadow:0 14px 34px rgba(13,112,103,.12),inset 0 1px 0 rgba(255,255,255,.92)!important;backdrop-filter:blur(10px)}
.qs-diploma-layout>.qs-diploma-background-picker>h3,
.qs-diploma-layout>.qs-diploma-form-panel>h3{color:#15524f!important;border-color:rgba(32,169,159,.2)!important}
.qs-diploma-form-panel .qs-form input:not([type=radio]):not([type=checkbox]):not([type=hidden]),
.qs-diploma-form-panel .qs-form select,
.qs-diploma-form-panel .qs-form textarea{border:1px solid rgba(32,169,159,.3)!important;border-radius:11px!important;background:rgba(255,255,255,.94)!important;color:#164e4a!important;box-shadow:0 2px 6px rgba(13,112,103,.04)!important;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease!important}
.qs-diploma-form-panel .qs-form input:not([type=radio]):not([type=checkbox]):not([type=hidden]):hover,
.qs-diploma-form-panel .qs-form select:hover,
.qs-diploma-form-panel .qs-form textarea:hover{border-color:#62c9bd!important}
.qs-diploma-form-panel .qs-form input:not([type=radio]):not([type=checkbox]):not([type=hidden]):focus,
.qs-diploma-form-panel .qs-form select:focus,
.qs-diploma-form-panel .qs-form textarea:focus{outline:none!important;border-color:#20a99f!important;box-shadow:0 0 0 4px rgba(32,169,159,.15)!important;background:#fff!important}
.qs-diploma-form-panel .qs-form button,
.qs-diploma-form-panel .qs-form input[type=submit],
.qs-diploma-form-panel .qs-form .qs-button,
.qs-diploma-background-picker .qs-thumb-scroll{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.55)!important;border-radius:12px!important;background:linear-gradient(115deg,#50c9b7 0%,#20a99f 68%,#159a91 100%)!important;color:#fff!important;font-weight:750!important;box-shadow:0 8px 20px rgba(13,112,103,.22)!important;transition:transform .2s ease,box-shadow .2s ease,filter .2s ease!important}
.qs-diploma-form-panel .qs-form button:hover,
.qs-diploma-form-panel .qs-form input[type=submit]:hover,
.qs-diploma-form-panel .qs-form .qs-button:hover,
.qs-diploma-background-picker .qs-thumb-scroll:hover:not(:disabled){filter:brightness(1.05)!important;transform:translateY(-2px);box-shadow:0 12px 26px rgba(13,112,103,.28)!important}
.qs-diploma-form-panel .qs-form button:focus-visible,
.qs-diploma-form-panel .qs-form input[type=submit]:focus-visible,
.qs-diploma-form-panel .qs-form .qs-button:focus-visible,
.qs-diploma-background-picker .qs-thumb-scroll:focus-visible{outline:3px solid rgba(32,169,159,.35)!important;outline-offset:3px}
.qs-diploma-background-picker .qs-diploma-background-choice{border:1px solid rgba(32,169,159,.22)!important;border-radius:12px!important;background:rgba(255,255,255,.88)!important;color:#15524f!important;box-shadow:0 4px 12px rgba(13,112,103,.06);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease!important}
.qs-diploma-background-picker .qs-diploma-background-choice:hover{border-color:#62c9bd!important;box-shadow:0 8px 18px rgba(13,112,103,.12)!important;transform:translateY(-2px)}
.qs-diploma-background-picker .qs-diploma-background-choice.is-selected{border:2px solid #20a99f!important;background:linear-gradient(145deg,#f0fffc,#dcf8f2)!important;color:#087e78!important;box-shadow:0 0 0 3px rgba(32,169,159,.14)!important}
.qs-diploma-background-picker .qs-diploma-background-choice:focus-visible{outline:3px solid rgba(32,169,159,.35)!important;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.qs-diploma-form-panel .qs-form input,.qs-diploma-form-panel .qs-form select,.qs-diploma-form-panel .qs-form textarea,.qs-diploma-form-panel .qs-form button,.qs-diploma-background-picker .qs-thumb-scroll,.qs-diploma-background-picker .qs-diploma-background-choice{transition:none!important}}


/* Ensure all personal-account fields and their labels remain fully visible on narrow screens. */
.qs-account-page,.qs-account-page *{box-sizing:border-box;min-width:0}
.qs-account-page .qs-account-details,.qs-account-page .qs-account-profile-edit,.qs-account-page .qs-account-profile-edit .qs-form{width:100%;max-width:100%;min-width:0}
.qs-account-page .qs-account-profile-edit .qs-form label{display:block;width:100%;max-width:100%;overflow-wrap:anywhere;word-break:normal}
.qs-account-page .qs-account-profile-edit .qs-form input:not([type=checkbox]):not([type=radio]):not([type=submit]),.qs-account-page .qs-account-profile-edit .qs-form select,.qs-account-page .qs-account-profile-edit .qs-form textarea{display:block;width:100%;max-width:100%;min-width:0;margin-inline:0;box-sizing:border-box}
.qs-account-page .qs-account-details p,.qs-account-page .qs-account-details b,.qs-account-page .qs-account-profile-hint{overflow-wrap:anywhere;word-break:normal}
@media(max-width:600px){.qs-account-page{width:100%;max-width:100%;padding:12px}.qs-account-page .qs-account-profile-edit,.qs-account-page .qs-account-details{padding:14px}.qs-account-page .qs-account-profile-edit .qs-form{padding:0;margin:12px 0}.qs-account-page .qs-account-profile-edit .qs-form input,.qs-account-page .qs-account-profile-edit .qs-form select,.qs-account-page .qs-account-profile-edit .qs-form textarea{font-size:16px;line-height:1.4}.qs-account-page .qs-account-profile-edit .qs-form button{width:100%;max-width:100%;white-space:normal;overflow-wrap:anywhere}}


/* Mobile readability: keep account history cells on one line and scroll the table area. */
.qs-history-table-wrap{width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.qs-history-table-wrap .qs-history-table{width:max-content;min-width:100%;table-layout:auto}
.qs-history-table-wrap .qs-history-table th,.qs-history-table-wrap .qs-history-table td{white-space:nowrap;overflow-wrap:normal;word-break:normal}
.qs-history-table-wrap .qs-history-table .qs-button,.qs-history-table-wrap .qs-history-table a.qs-button{display:inline-flex;width:max-content;min-width:max-content;max-width:none;flex:0 0 auto;white-space:nowrap;overflow-wrap:normal}
@media(max-width:700px){
 .qs-history-table-wrap{display:block;overflow-x:auto;max-width:100%;}
 .qs-history-table-wrap .qs-history-table{display:table;white-space:nowrap;max-width:none;margin:0}
 .qs-history-table-wrap .qs-history-table th,.qs-history-table-wrap .qs-history-table td{min-width:0;white-space:nowrap;overflow-wrap:normal;word-break:normal}
 .qs-history-table-wrap .qs-history-table td .qs-button{width:max-content;min-width:max-content;max-width:none;white-space:nowrap}
}

/* Diploma checkout: match the visual theme of the registration and login forms without changing its markup or layout. */
.qs-payment-checkout{
  box-sizing:border-box!important;max-width:760px!important;margin:24px auto!important;padding:clamp(22px,4vw,36px)!important;
  border:0!important;border-radius:18px!important;
  background:linear-gradient(115deg,#50c9b7 0%,#38bda8 35%,#20a99f 68%,#159a91 100%)!important;
  box-shadow:0 18px 48px rgba(13,112,103,.2)!important;color:#fff!important;overflow:hidden;
}
.qs-payment-checkout .qs-payment-hero{
  align-items:center;padding:0 0 22px!important;gap:16px;background:transparent!important;color:#fff!important;
}
.qs-payment-checkout .qs-payment-icon{
  flex:0 0 56px;width:56px;height:56px;border:1px solid rgba(255,255,255,.3);border-radius:15px;
  background:rgba(255,255,255,.13);color:#fff;box-shadow:inset 0 1px rgba(255,255,255,.15);
}
.qs-payment-checkout .qs-payment-eyebrow{color:rgba(255,255,255,.8);letter-spacing:.12em}
.qs-payment-checkout .qs-payment-hero h3{color:#fff!important;text-shadow:0 1px 1px rgba(0,70,70,.08);letter-spacing:0}
.qs-payment-checkout .qs-payment-hero p{color:rgba(255,255,255,.92)}
.qs-payment-checkout .qs-payment-summary{
  grid-template-columns:minmax(0,1fr) auto;padding:20px 0!important;border-top:1px solid rgba(255,255,255,.24);
  border-bottom:1px solid rgba(255,255,255,.24);gap:18px;
}
.qs-payment-checkout .qs-payment-document strong{color:#fff;overflow-wrap:anywhere}
.qs-payment-checkout .qs-payment-label{color:rgba(255,255,255,.78)}
.qs-payment-checkout .qs-payment-summary-icon{background:rgba(255,255,255,.16);color:#fff}
.qs-payment-checkout .qs-payment-price>strong{color:#fff}
.qs-payment-checkout .qs-payment-note{
  margin:18px 0 0;padding:13px 15px;border:1px solid rgba(255,255,255,.3);border-radius:10px;
  background:rgba(255,255,255,.12);box-shadow:none;
}
.qs-payment-checkout .qs-payment-check{background:rgba(255,255,255,.92);color:#159a91}
.qs-payment-checkout .qs-payment-note p{color:#fff}
.qs-payment-checkout .qs-payment-form{padding:20px 0 0!important}
.qs-payment-checkout .qs-payment-submit{
  box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;align-self:flex-start;
  width:auto!important;min-height:49px;padding:13px 22px!important;gap:12px;border:1px solid rgba(255,255,255,.9)!important;
  border-radius:8px!important;background:#fff!important;color:#159b91!important;font:inherit!important;font-weight:750!important;
  box-shadow:0 7px 18px rgba(0,75,71,.12)!important;transform:none;transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}
.qs-payment-checkout .qs-payment-submit:hover{background:#f0fffc!important;color:#087e78!important;transform:translateY(-2px);box-shadow:0 10px 22px rgba(0,75,71,.2)!important;filter:none}
.qs-payment-checkout .qs-payment-arrow{background:rgba(21,155,145,.1);color:#159b91}
.qs-payment-checkout .qs-payment-submit:hover .qs-payment-arrow{transform:translateX(3px)}
.qs-payment-checkout .qs-payment-submit:focus-visible{outline:3px solid #fff!important;outline-offset:4px}
.qs-payment-checkout .qs-payment-secure{justify-content:flex-start;margin:13px 0 0;color:rgba(255,255,255,.84);text-align:left}
.qs-payment-checkout .qs-payment-secure span{color:#fff}
@media(max-width:600px){
  .qs-payment-checkout{width:100%;margin:16px auto!important;padding:18px 14px!important;border-radius:14px!important}
  .qs-payment-checkout .qs-payment-hero{padding-bottom:18px!important;gap:13px}
  .qs-payment-checkout .qs-payment-icon{flex-basis:46px;width:46px;height:46px}
  .qs-payment-checkout .qs-payment-summary{grid-template-columns:minmax(0,1fr) auto;padding:16px 0!important;gap:12px}
  .qs-payment-checkout .qs-payment-price{text-align:right;padding-top:0;border-top:0}
  .qs-payment-checkout .qs-payment-form{padding-top:18px!important}
  .qs-payment-checkout .qs-payment-submit{width:auto!important;max-width:100%;white-space:normal;text-align:center}
}
@media(max-width:390px){.qs-payment-checkout .qs-payment-summary{grid-template-columns:minmax(0,1fr)}.qs-payment-checkout .qs-payment-price{text-align:left;padding-top:10px;border-top:1px dashed rgba(255,255,255,.3)}}
@media(prefers-reduced-motion:reduce){.qs-payment-checkout .qs-payment-submit,.qs-payment-checkout .qs-payment-arrow{transition:none!important}}


/* Force diploma checkout to use the same teal auth-scene surface as [edutest_login],
   even when the active theme or an animated page wrapper styles generic .qs-box elements. */
.qs-payment-checkout.qs-auth-scene,
.qs-animated-page>.qs-payment-checkout.qs-auth-scene,
body .qs-payment-checkout.qs-auth-scene{
  background:linear-gradient(115deg,#50c9b7 0%,#38bda8 35%,#20a99f 68%,#159a91 100%)!important;
  border:0!important;border-radius:18px!important;box-shadow:0 18px 48px rgba(13,112,103,.2)!important;color:#fff!important;
}
.qs-payment-checkout.qs-auth-scene .qs-payment-hero,
body .qs-payment-checkout.qs-auth-scene .qs-payment-hero{background:transparent!important;color:#fff!important}
.qs-payment-checkout.qs-auth-scene .qs-payment-hero h3,
.qs-payment-checkout.qs-auth-scene .qs-payment-hero p,
.qs-payment-checkout.qs-auth-scene .qs-payment-document strong,
.qs-payment-checkout.qs-auth-scene .qs-payment-price>strong,
.qs-payment-checkout.qs-auth-scene .qs-payment-note p{color:#fff!important}
.qs-payment-checkout.qs-auth-scene .qs-payment-summary{border-top:1px solid rgba(255,255,255,.24)!important;border-bottom:1px solid rgba(255,255,255,.24)!important}
.qs-payment-checkout.qs-auth-scene .qs-payment-note{background:rgba(255,255,255,.12)!important;border-color:rgba(255,255,255,.3)!important}
.qs-payment-checkout.qs-auth-scene .qs-payment-submit{background:#fff!important;color:#159b91!important;border:1px solid rgba(255,255,255,.9)!important}
.qs-payment-checkout.qs-auth-scene .qs-payment-submit:hover{background:#f0fffc!important;color:#087e78!important}
@media(max-width:600px){.qs-payment-checkout.qs-auth-scene{border-radius:14px!important}}
