/* V11.5 responsive hardening */
.ubspsx-portal,.tbx-exam{max-width:100%;box-sizing:border-box}
.ubspsx-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.tbx-layout{display:grid;grid-template-columns:1fr 300px;gap:16px}
@media(max-width:900px){.tbx-layout{grid-template-columns:1fr}.tbx-sidebar{position:static;width:100%}.tbx-topbar{flex-wrap:wrap}.tbx-actions{position:sticky;bottom:0;background:#fff;z-index:9;display:flex;gap:8px;overflow:auto;padding:10px}.tbx-actions button{white-space:nowrap}}
@media(max-width:520px){.ubspsx-portal{padding:10px}.tbx-card,.ubspsx-card{border-radius:14px}.tbx-q{font-size:15px}.tbx-options label{padding:10px}.tbx-header{gap:8px}.tbx-timer{font-size:14px}}

/* V12.4 result review popup cards */
.ubspsx-review-note{color:#475569;margin:6px 0 16px;font-size:15px}
.ubspsx-review-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin:14px 0 24px}
.ubspsx-review-card{width:100%;border:1px solid rgba(15,23,42,.12);background:linear-gradient(135deg,#fff,#f8fafc);border-radius:18px;padding:16px;text-align:left;cursor:pointer;box-shadow:0 12px 30px rgba(15,23,42,.08);transition:.22s ease;display:flex;flex-direction:column;gap:8px;color:#0f172a}
.ubspsx-review-card:hover{transform:translateY(-3px);box-shadow:0 18px 45px rgba(15,23,42,.14)}
.ubspsx-review-card span{font-weight:900;font-size:18px}
.ubspsx-review-card b{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:5px 11px;font-size:13px}
.ubspsx-review-card small{color:#64748b;font-weight:700}
.ubspsx-review-card.right b{background:#dcfce7;color:#166534}.ubspsx-review-card.wrong b{background:#fee2e2;color:#991b1b}.ubspsx-review-card:not(.right):not(.wrong) b{background:#fef3c7;color:#92400e}
.ubspsx-review-modal{position:fixed;inset:0;background:rgba(2,6,23,.72);backdrop-filter:blur(8px);z-index:9999;display:none;align-items:center;justify-content:center;padding:18px}
.ubspsx-review-modal.show{display:flex}
body.ubspsx-modal-open{overflow:hidden}
.ubspsx-review-popup{position:relative;width:min(760px,96vw);max-height:88vh;overflow:auto;background:linear-gradient(145deg,#ffffff,#f8fafc);border:1px solid rgba(255,255,255,.5);border-radius:24px;padding:24px;box-shadow:0 30px 90px rgba(0,0,0,.35);animation:ubspsPop .18s ease-out}
@keyframes ubspsPop{from{transform:scale(.94);opacity:.4}to{transform:scale(1);opacity:1}}
.ubsps-review-close,.ubspsx-review-close{position:sticky;top:0;float:right;width:42px;height:42px;border:0;border-radius:50%;background:#0f172a;color:#fff;font-size:26px;line-height:1;cursor:pointer;z-index:2}
.ubspsx-popup-status{display:inline-flex;margin-bottom:10px;border-radius:999px;padding:6px 13px;background:#e0f2fe;color:#075985;font-weight:900;font-size:13px}
.ubspsx-popup-question{clear:both;margin:8px 0 18px;font-size:22px;line-height:1.5;color:#0f172a}
.ubspsx-popup-answers{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}
.ubspsx-popup-answers p,.ubspsx-popup-exp{background:#f8fafc;border:1px solid rgba(15,23,42,.1);border-radius:16px;padding:14px;margin:0;color:#0f172a}
.ubspsx-popup-exp{margin-top:14px}.ubspsx-popup-explanation{margin-top:8px;line-height:1.7;color:#334155}
@media(max-width:640px){.ubspsx-review-modal{padding:10px;align-items:flex-end}.ubspsx-review-popup{width:100%;max-height:92vh;border-radius:22px 22px 0 0;padding:18px}.ubspsx-popup-answers{grid-template-columns:1fr}.ubspsx-popup-question{font-size:18px}.ubspsx-review-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ubspsx-review-card{padding:12px;border-radius:14px}}
@media(max-width:380px){.ubspsx-review-grid{grid-template-columns:1fr}}

/* V12.6 center fixed modal override: popup stays centered with page scroll locked */
.ubspsx-review-modal{
  position:fixed!important;
  inset:0!important;
  z-index:99999!important;
  display:none!important;
  align-items:center!important;
  justify-content:center!important;
  padding:clamp(10px,3vw,24px)!important;
  overflow-y:auto!important;
  background:rgba(2,6,23,.76)!important;
  backdrop-filter:blur(8px)!important;
}
.ubspsx-review-modal.show{display:flex!important}
.ubspsx-review-popup{
  position:relative!important;
  margin:auto!important;
  width:min(880px,94vw)!important;
  max-height:min(88vh,760px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  border-radius:24px!important;
  transform:none!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
}
body.ubspsx-modal-open{overflow:hidden!important;touch-action:none!important}
@media(max-width:640px){
  .ubspsx-review-modal{align-items:center!important;justify-content:center!important;padding:12px!important}
  .ubspsx-review-popup{width:calc(100vw - 24px)!important;max-height:86vh!important;border-radius:22px!important;padding:18px!important}
}

/* V12.7 result review circle UI + top 10 ranking polish */
.ubspsx-review-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(86px,1fr))!important;
  gap:18px!important;
  align-items:center!important;
  justify-items:center!important;
  margin:18px 0 28px!important;
}
.ubspsx-review-card{
  width:78px!important;
  height:78px!important;
  min-width:78px!important;
  min-height:78px!important;
  padding:0!important;
  border-radius:999px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  background:#fff!important;
  box-shadow:0 10px 24px rgba(15,23,42,.08)!important;
  transition:.2s ease!important;
  position:relative!important;
  overflow:visible!important;
}
.ubspsx-review-card:hover{transform:translateY(-4px) scale(1.03)!important;box-shadow:0 18px 36px rgba(15,23,42,.16)!important}
.ubspsx-review-card span{
  font-size:22px!important;
  font-weight:900!important;
  color:#0f172a!important;
  line-height:1!important;
}
.ubspsx-review-card b,
.ubspsx-review-card small{display:none!important}
.ubspsx-review-card.wrong{border:3px solid #ef4444!important;background:linear-gradient(135deg,#fff,#fff5f5)!important}
.ubspsx-review-card.right{border:3px solid #16a34a!important;background:linear-gradient(135deg,#fff,#f0fdf4)!important}
.ubspsx-review-card.skipped{border:3px solid #16a34a!important;background:linear-gradient(135deg,#fff,#f0fdf4)!important}
.ubspsx-review-card.wrong::after,
.ubspsx-review-card.right::after,
.ubspsx-review-card.skipped::after{
  content:attr(data-status);
  position:absolute;
  left:50%;
  bottom:-22px;
  transform:translateX(-50%);
  font-size:11px;
  line-height:1;
  font-weight:800;
  white-space:nowrap;
  opacity:.9;
}
.ubspsx-review-card.wrong::after{color:#dc2626}
.ubspsx-review-card.right::after{color:#15803d}
.ubspsx-review-card.skipped::after{color:#15803d}
.ubspsx-review-note::after{
  content:'  🔴 Wrong  🟢 Right  🟢 Skipped';
  display:block;
  margin-top:10px;
  font-weight:800;
  color:#0f172a;
}
.ubspsx-rankbox{overflow:auto!important;border-radius:18px!important;box-shadow:0 14px 35px rgba(15,23,42,.08)!important;background:#fff!important}
.ubspsx-rank-table{min-width:720px!important}
.ubspsx-rank-table thead th{background:linear-gradient(135deg,#4f46e5,#2563eb)!important;color:#fff!important;font-weight:900!important}
.ubspsx-rank-table tbody tr:nth-child(1) td:first-child::before{content:'🥇 ';}
.ubspsx-rank-table tbody tr:nth-child(2) td:first-child::before{content:'🥈 ';}
.ubspsx-rank-table tbody tr:nth-child(3) td:first-child::before{content:'🥉 ';}
@media(max-width:640px){
  .ubspsx-review-grid{grid-template-columns:repeat(4,1fr)!important;gap:22px 12px!important}
  .ubspsx-review-card{width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;border-width:2.5px!important}
  .ubspsx-review-card span{font-size:19px!important}
  .ubspsx-review-card::after{font-size:10px!important;bottom:-19px!important}
}
@media(max-width:380px){
  .ubspsx-review-grid{grid-template-columns:repeat(3,1fr)!important}
}

/* V12.10 popup top fixed override */
.ubspsx-review-modal{
  position:fixed!important;
  inset:0!important;
  display:none!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:18px 12px!important;
  padding-top:max(18px, env(safe-area-inset-top))!important;
  z-index:999999!important;
  overflow:hidden!important;
}
.ubspsx-review-modal.show{display:flex!important;}
.ubspsx-review-popup{
  margin:0 auto!important;
  width:min(860px, calc(100vw - 24px))!important;
  max-height:calc(100vh - 36px)!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  border-radius:22px!important;
  transform:none!important;
}
body.ubspsx-modal-open{overflow:hidden!important;}
@media(max-width:640px){
  .ubspsx-review-modal{
    align-items:flex-start!important;
    justify-content:center!important;
    padding:10px!important;
    padding-top:max(10px, env(safe-area-inset-top))!important;
  }
  .ubspsx-review-popup{
    width:calc(100vw - 20px)!important;
    max-height:calc(100vh - 20px)!important;
    border-radius:18px!important;
    padding:16px!important;
  }
}


/* v12.12 - Full Answer Review internal scroll */
.ubspsx-full-review-v129{
  max-height:70vh!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
  scrollbar-color:#6d5dfc #eef2ff!important;
}
.ubspsx-full-review-v129 h2{
  position:sticky!important;
  top:0!important;
  z-index:8!important;
  background:linear-gradient(135deg,#ffffff,#fbfaff)!important;
  margin-top:0!important;
  padding-top:12px!important;
  box-shadow:0 8px 18px rgba(255,255,255,.92)!important;
}
.ubspsx-full-review-v129::-webkit-scrollbar{width:9px!important;}
.ubspsx-full-review-v129::-webkit-scrollbar-track{background:#eef2ff!important;border-radius:999px!important;}
.ubspsx-full-review-v129::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#6d5dfc,#4f46e5)!important;border-radius:999px!important;border:2px solid #eef2ff!important;}
@media(min-width:1024px){.ubspsx-full-review-v129{max-height:680px!important;}}
@media(max-width:640px){.ubspsx-full-review-v129{max-height:62vh!important;padding:14px 10px!important;}.ubspsx-full-review-v129 h2{padding-top:10px!important;}}

/* V13.1 - Dashboard All Tests internal scroll + premium scrollbar */
.ubspsx-student-dash h2 + .ubspsx-rankbox:last-of-type,
.ubspsx-student-dash .ubspsx-rankbox.ubspsx-all-tests-scroll{
  max-height:62vh!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-width:thin!important;
  scrollbar-color:#6d5dfc #eef2ff!important;
}
.ubspsx-student-dash .ubspsx-rankbox:last-of-type thead th{
  position:sticky!important;
  top:0!important;
  z-index:5!important;
}
.ubspsx-student-dash .ubspsx-rankbox:last-of-type::-webkit-scrollbar{width:9px!important;height:9px!important;}
.ubspsx-student-dash .ubspsx-rankbox:last-of-type::-webkit-scrollbar-track{background:#eef2ff!important;border-radius:999px!important;}
.ubspsx-student-dash .ubspsx-rankbox:last-of-type::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#6d5dfc,#4f46e5)!important;border-radius:999px!important;border:2px solid #eef2ff!important;}
@media(max-width:640px){.ubspsx-student-dash .ubspsx-rankbox:last-of-type{max-height:58vh!important;}}

/* V13.6 Professional Frontend like provided screenshots */
.ubspsx-pro-v136,.ubspsx-pro-exam-v136{--ubs-blue:#0b63f6;--ubs-blue2:#0047b9;--ubs-purple:#7c22ff;--ubs-navy:#071943;--ubs-text:#0d1b4c;--ubs-muted:#64748b;--ubs-soft:#f8fbff;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--ubs-text);max-width:1180px;margin:0 auto;padding:clamp(10px,2vw,20px);box-sizing:border-box}.ubspsx-pro-v136 *,.ubspsx-pro-exam-v136 *{box-sizing:border-box}.ubspsx-main-hero{position:relative;overflow:hidden;min-height:330px;border-radius:22px;padding:58px 22px;text-align:center;color:#fff;background:radial-gradient(circle at 15% 75%,rgba(14,165,233,.55),transparent 27%),radial-gradient(circle at 85% 20%,rgba(168,85,247,.55),transparent 31%),linear-gradient(135deg,#0062f5 0%,#1732b7 52%,#8424f4 100%);box-shadow:0 24px 60px rgba(37,99,235,.24);display:flex;flex-direction:column;align-items:center;justify-content:center}.ubspsx-main-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.12),transparent 28%,rgba(255,255,255,.08));opacity:.95}.ubspsx-main-hero:after{content:"";position:absolute;width:520px;height:220px;left:-80px;bottom:14px;background:repeating-radial-gradient(ellipse at center,rgba(255,255,255,.14) 0 1px,transparent 2px 10px);transform:rotate(-7deg);opacity:.5}.ubspsx-main-hero>*{position:relative;z-index:2}.ubspsx-main-badge,.ubspsx-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);padding:11px 26px;color:#fff;font-weight:900;box-shadow:inset 0 1px 0 rgba(255,255,255,.2);backdrop-filter:blur(8px)}.ubspsx-main-hero h1{margin:22px 0 12px;font-size:clamp(42px,7vw,74px);line-height:1.02;color:#fff;font-weight:950;letter-spacing:-1.8px;text-shadow:0 8px 24px rgba(0,0,0,.22)}.ubspsx-main-hero p{max-width:760px;margin:0 auto 28px;color:rgba(255,255,255,.95);font-size:clamp(16px,2vw,22px);line-height:1.65;font-weight:600}.ubspsx-main-btn{display:inline-flex;gap:10px;align-items:center;justify-content:center;border-radius:17px;padding:18px 34px;background:#fff;color:#5b21ff!important;text-decoration:none!important;font-weight:950;font-size:21px;box-shadow:0 15px 35px rgba(2,6,23,.24);border:1px solid rgba(255,255,255,.9);transition:.22s ease}.ubspsx-main-btn:hover{transform:translateY(-3px);box-shadow:0 22px 42px rgba(2,6,23,.28)}.ubspsx-float{position:absolute;z-index:2;width:72px;height:72px;border-radius:21px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.93);font-style:normal;font-size:31px;box-shadow:0 16px 36px rgba(3,7,18,.22);animation:ubspsFloat 4.8s ease-in-out infinite}.ubspsx-float-1{left:45px;top:68px}.ubspsx-float-2{right:54px;top:72px}.ubspsx-float-3{left:92px;bottom:82px;animation-delay:.9s}.ubspsx-float-4{right:106px;bottom:86px;animation-delay:1.4s}@keyframes ubspsFloat{50%{transform:translateY(-12px) rotate(5deg)}}
.ubspsx-feature-row{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin:26px 0}.ubspsx-feature-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:18px;padding:28px 24px;min-height:150px;box-shadow:0 12px 34px rgba(15,23,42,.09);position:relative;overflow:hidden;transition:.22s ease}.ubspsx-feature-card:hover{transform:translateY(-5px);box-shadow:0 22px 45px rgba(15,23,42,.13)}.ubspsx-feature-card:after{content:"";position:absolute;left:24px;right:70px;bottom:0;height:4px;border-radius:999px;background:var(--line,#2563eb)}.ubspsx-feature-card.green{--line:#22c55e}.ubspsx-feature-card.blue{--line:#0ea5e9}.ubspsx-feature-card.orange{--line:#f59e0b}.ubspsx-feature-card.purple{--line:#7c3aed}.ubspsx-feature-card b{display:block;font-size:18px;margin-bottom:18px;color:#071943}.ubspsx-feature-card p{margin:0;color:#334155;line-height:1.65;font-weight:650}.ubspsx-pro-v136 .ubspsx-hero{border-radius:22px;padding:45px;background:linear-gradient(135deg,#051b55 0%,#061f62 55%,#0f172a 100%);box-shadow:0 18px 50px rgba(2,6,23,.16);overflow:hidden}.ubspsx-pro-v136 .ubspsx-hero:after{content:"📋⏱️";position:absolute;right:65px;top:42px;font-size:92px;opacity:.25}.ubspsx-pro-v136 .ubspsx-hero h1{font-size:clamp(34px,5vw,54px);color:#fff;letter-spacing:-1px}.ubspsx-pro-v136 .ubspsx-hero p{max-width:660px;color:#eaf2ff}.ubspsx-pro-v136 .ubspsx-hero-stats span{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.15);border-radius:999px;padding:12px 18px;color:#fff;font-weight:850}.ubspsx-test-switch{display:flex;gap:14px;flex-wrap:wrap;margin:22px 0 14px}.ubspsx-filter{border:1px solid #dbe5f3;background:#fff;color:#071943;border-radius:999px;padding:12px 28px;font-weight:850;box-shadow:0 7px 18px rgba(15,23,42,.05);cursor:pointer}.ubspsx-filter.active{background:linear-gradient(135deg,#0b63f6,#7c22ff);color:#fff;box-shadow:0 12px 25px rgba(37,99,235,.25)}.ubspsx-toolbar{display:flex;justify-content:space-between;align-items:center;margin:14px 0 18px}.ubspsx-search{display:flex;align-items:center;gap:8px;width:min(360px,100%);background:#fff;border:1px solid #dbe5f3;border-radius:999px;padding:12px 17px;box-shadow:0 12px 26px rgba(15,23,42,.06)}.ubspsx-search input{border:0!important;outline:0!important;width:100%;background:transparent!important;box-shadow:none!important}.ubspsx-section-title{font-size:30px;color:#071943;margin:18px 0}.ubspsx-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:26px!important}.ubspsx-card{position:relative;background:#fff!important;border:1px solid #dbe6f5!important;border-radius:22px!important;padding:22px!important;box-shadow:0 16px 34px rgba(15,23,42,.1)!important;min-height:190px;overflow:hidden}.ubspsx-card:before{content:"";position:absolute;left:0;top:0;width:100%;height:5px;background:linear-gradient(90deg,#0b63f6,#7c22ff,#f59e0b)}.ubspsx-card h2{font-size:22px;color:#071943;margin:18px 0}.ubspsx-card-top{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}.ubspsx-class-chip,.ubspsx-type-chip,.ubspsx-time-chip{border-radius:999px;padding:7px 11px;font-size:12px;font-weight:950}.ubspsx-class-chip{background:#eff6ff;color:#0b63f6}.ubspsx-type-chip{background:#fff7ed;color:#fb6a21;border:1px solid #fed7aa}.ubspsx-time-chip{background:#dcfce7;color:#15803d}.ubspsx-meta{color:#475569;font-weight:650}.ubspsx-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.ubspsx-card-footer span{font-weight:850;color:#1f2b5b}.ubspsx-btn,.ubspsx-card-footer .ubspsx-btn{border:0!important;border-radius:15px!important;padding:13px 19px!important;background:linear-gradient(135deg,#0b63f6,#7c22ff)!important;color:#fff!important;text-decoration:none!important;font-weight:950!important;box-shadow:0 12px 24px rgba(79,70,229,.25)!important}.ubspsx-more-wrap{text-align:center;margin:28px 0}.ubspsx-more-btn{display:inline-flex;align-items:center;gap:9px;border:1px solid #dbe6f5;border-radius:14px;padding:16px 38px;background:#fff;color:#2563eb;text-decoration:none!important;font-weight:900;box-shadow:0 10px 28px rgba(15,23,42,.08)}.ubspsx-faq-pro{background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:28px 34px;box-shadow:0 16px 42px rgba(15,23,42,.08);margin:22px 0}.ubspsx-faq-pro h2{margin:0 0 18px;font-size:30px;color:#071943}.ubspsx-faq-pro details{border:1px solid #e2e8f0;border-radius:14px;margin:10px 0;background:#fff}.ubspsx-faq-pro summary{cursor:pointer;padding:17px 20px;font-weight:900;color:#071943;list-style:none}.ubspsx-faq-pro summary:after{content:'⌄';float:right}.ubspsx-faq-pro details[open] summary:after{content:'⌃'}.ubspsx-faq-pro p{padding:0 20px 16px;margin:0;color:#475569}.ubspsx-pro-footer{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;background:linear-gradient(135deg,#071943,#061f62);color:#fff;border-radius:22px 22px 0 0;padding:28px;margin-top:24px}.ubspsx-pro-footer div{display:flex;flex-direction:column;gap:6px}.ubspsx-pro-footer b{font-size:16px}.ubspsx-pro-footer small{color:#b8c7e8;font-weight:650}
.ubspsx-pro-exam-v136{padding-top:20px}.ubspsx-pro-exam-v136:before{content:"";display:block;min-height:240px;border-radius:22px;margin-bottom:24px;background:radial-gradient(circle at 15% 72%,rgba(14,165,233,.55),transparent 27%),linear-gradient(135deg,#0062f5,#1732b7 55%,#8424f4);box-shadow:0 24px 60px rgba(37,99,235,.24)}.ubspsx-pro-exam-v136 .tbx-instructions{border:1px solid #dbe6f5!important;background:#fff!important;border-radius:22px!important;box-shadow:0 18px 45px rgba(15,23,42,.09)!important;overflow:hidden}.ubspsx-pro-exam-v136 .tbx-topbar{background:linear-gradient(135deg,#0755d8,#7c22ff)!important;color:#fff!important;padding:18px 28px!important;border-radius:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important}.ubspsx-pro-exam-v136 .tbx-brand-name,.ubspsx-pro-exam-v136 .tbx-top-title{color:#fff!important;font-weight:950!important}.ubspsx-pro-exam-v136 .tbx-live-dot{background:#f43f5e!important;color:#fff!important;border-radius:999px!important;padding:8px 14px!important;font-weight:950!important}.ubspsx-pro-exam-v136 .tbx-instruction-body{display:grid!important;grid-template-columns:1fr 230px!important;gap:24px!important;padding:30px!important}.ubspsx-pro-exam-v136 .tbx-main-inst h2{text-align:center;font-size:32px;color:#071943;margin:0 0 18px}.tbx-pro-stats{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin:14px 0 22px}.tbx-pro-stats span{background:#f1f7ff;border:1px solid #e2e8f0;border-radius:12px;padding:12px 18px;color:#31507e;font-weight:900}.ubspsx-pro-exam-v136 .tbx-main-inst h3{color:#071943;margin-top:22px}.ubspsx-pro-exam-v136 .tbx-main-inst ol{line-height:1.85;color:#172554;font-weight:650}.ubspsx-pro-exam-v136 .tbx-language select{border:1px solid #d7e1ef;border-radius:10px;padding:10px 36px 10px 14px}.ubspsx-pro-exam-v136 .tbx-profile{background:linear-gradient(180deg,#f8fbff,#fff)!important;border-left:1px solid #e2e8f0!important;border-radius:18px!important;padding:22px 16px!important;text-align:center!important;box-shadow:inset 0 0 0 1px rgba(226,232,240,.55)}.ubspsx-pro-exam-v136 .tbx-profile .ubspsx-profile-photo{border-radius:50%;object-fit:cover;box-shadow:0 8px 22px rgba(15,23,42,.16)}.tbx-profile-meta{display:grid;gap:10px;margin-top:18px;text-align:left}.tbx-profile-meta span{display:block;border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:10px 12px;color:#64748b;font-size:12px;font-weight:800}.tbx-profile-meta b{display:block;color:#071943;font-size:13px;margin-top:4px}.ubspsx-pro-exam-v136 .tbx-bottom{border-top:1px solid #e2e8f0;padding:18px 30px;display:flex;align-items:center;justify-content:space-between}.ubspsx-pro-exam-v136 .tbx-next{background:linear-gradient(135deg,#16a34a,#22c55e)!important;color:#fff!important;border:0!important;border-radius:999px!important;padding:14px 24px!important;font-weight:950!important;box-shadow:0 14px 24px rgba(34,197,94,.28)}.ubspsx-pro-exam-v136 .tbx-link{font-weight:900;color:#0891b2!important;text-decoration:none!important}.ubspsx-pro-exam-v136 .ubspsx-login-panel{max-width:680px!important;margin:50px auto!important;border:0!important;border-radius:28px!important;background:linear-gradient(135deg,#ffffff,#fbfdff)!important;padding:56px 44px!important;text-align:center!important;box-shadow:0 20px 60px rgba(79,70,229,.15)!important;position:relative}.ubspsx-pro-exam-v136 .ubspsx-login-panel:before{content:'📋';position:absolute;top:-38px;left:50%;transform:translateX(-50%);width:86px;height:86px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-size:38px;box-shadow:0 14px 36px rgba(79,70,229,.17)}.ubspsx-pro-exam-v136 .ubspsx-login-panel h2{font-size:32px;color:#071943}.ubspsx-pro-exam-v136 .ubspsx-login-panel input{width:100%;border:1px solid #d7e1ef!important;border-radius:14px!important;padding:16px 18px!important;margin:8px 0!important;box-shadow:0 5px 18px rgba(15,23,42,.04)!important}.ubspsx-pro-exam-v136 .ubspsx-login-panel .ubspsx-btn{width:100%;margin-top:10px;padding:17px!important;font-size:18px!important}.ubspsx-pro-exam-v136 .tbx-paper{border-radius:22px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 18px 45px rgba(15,23,42,.1)!important}.ubspsx-pro-exam-v136 .tbx-exam-top{background:linear-gradient(135deg,#071943,#0b63f6)!important;color:#fff!important}.ubspsx-pro-exam-v136 .tbx-exam-layout{background:#f8fbff!important}.ubspsx-pro-exam-v136 .tbx-qarea,.ubspsx-pro-exam-v136 .tbx-sidebar{background:#fff!important;border:1px solid #e2e8f0!important;border-radius:18px!important}.ubspsx-pro-exam-v136 .tbx-question label{border:1px solid #dbe6f5!important;border-radius:14px!important;background:#fff!important;transition:.18s ease}.ubspsx-pro-exam-v136 .tbx-question label:hover{border-color:#7c22ff!important;box-shadow:0 8px 22px rgba(124,34,255,.1)}.ubspsx-pro-exam-v136 .tbx-actions button{border-radius:14px!important;font-weight:900!important}.ubspsx-pro-exam-v136 #tbxSaveNext,.ubspsx-pro-exam-v136 #tbxSubmitFinal{background:linear-gradient(135deg,#0b63f6,#7c22ff)!important;color:#fff!important;border:0!important}
@media(max-width:980px){.ubspsx-feature-row,.ubspsx-pro-footer{grid-template-columns:repeat(2,1fr)}.ubspsx-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ubspsx-pro-exam-v136 .tbx-instruction-body{grid-template-columns:1fr!important}.ubspsx-pro-exam-v136 .tbx-profile{max-width:100%}.tbx-profile-meta{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.ubspsx-pro-v136,.ubspsx-pro-exam-v136{padding:10px}.ubspsx-main-hero{min-height:300px;border-radius:18px;padding:38px 18px}.ubspsx-main-hero h1{font-size:38px}.ubspsx-main-hero p{font-size:15px}.ubspsx-main-btn{font-size:16px;padding:14px 20px}.ubspsx-float{width:48px;height:48px;border-radius:15px;font-size:22px}.ubspsx-float-1{left:18px;top:56px}.ubspsx-float-2{right:18px;top:60px}.ubspsx-float-3{left:32px;bottom:62px}.ubspsx-float-4{right:36px;bottom:60px}.ubspsx-feature-row,.ubspsx-grid,.ubspsx-pro-footer{grid-template-columns:1fr!important;gap:14px!important}.ubspsx-pro-v136 .ubspsx-hero{padding:28px 18px}.ubspsx-pro-v136 .ubspsx-hero:after{display:none}.ubspsx-card{min-height:170px}.ubspsx-card-footer{align-items:flex-start;flex-direction:column}.ubspsx-card-footer .ubspsx-btn{width:100%;text-align:center}.ubspsx-faq-pro{padding:20px 14px}.ubspsx-pro-exam-v136:before{min-height:190px}.ubspsx-pro-exam-v136 .tbx-topbar,.ubspsx-pro-exam-v136 .tbx-bottom{padding:14px!important;flex-wrap:wrap;gap:10px}.ubspsx-pro-exam-v136 .tbx-instruction-body{padding:18px!important}.ubspsx-pro-exam-v136 .tbx-main-inst h2{font-size:25px}.tbx-pro-stats{justify-content:flex-start}.tbx-pro-stats span{width:100%;padding:10px 12px}.tbx-profile-meta{grid-template-columns:1fr}.ubspsx-pro-exam-v136 .ubspsx-login-panel{margin:36px 6px!important;padding:46px 18px 24px!important;border-radius:22px!important}.ubspsx-pro-exam-v136 .ubspsx-login-panel h2{font-size:26px}}

/* V13.7 frontend error fix: remove blank exam gap and make both instruction + student form match supplied design */
.ubspsx-pro-exam-v136{max-width:1180px!important;margin:0 auto!important;padding:18px 14px 0!important;background:#f8fbff!important;overflow:hidden!important}
.ubspsx-pro-exam-v136:before{display:none!important;content:none!important}
.ubspsx-pro-exam-v136 .ubspsx-exam-hero{margin:0 0 24px!important;min-height:300px!important;border-radius:22px!important}
.ubspsx-pro-exam-v136 .ubspsx-exam-features{margin:0 0 26px!important;padding:0!important}
.ubspsx-exam-stage{background:linear-gradient(135deg,#f7fbff,#ffffff)!important;border:1px solid #e6eef8!important;border-radius:26px!important;box-shadow:0 18px 60px rgba(15,23,42,.08)!important;padding:14px!important;margin:0 0 24px!important;overflow:hidden!important}
.ubspsx-pro-exam-v136 .tbx-instructions{min-height:auto!important;margin:0!important;border-radius:22px!important;box-shadow:none!important;background:#fff!important}
.ubspsx-pro-exam-v136 .tbx-instruction-body{min-height:auto!important;align-items:start!important}
.ubspsx-pro-exam-v136 .tbx-main-inst{padding-bottom:22px!important}
.ubspsx-pro-exam-v136 .tbx-bottom{position:relative!important;bottom:auto!important;background:#fff!important;margin:0!important;border-radius:0 0 22px 22px!important}
.ubspsx-pro-exam-v136 .tbx-details.ubspsx-login-panel{display:none;margin:38px auto!important;width:min(94vw,680px)!important;max-width:680px!important;padding:58px 46px 40px!important;border-radius:30px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 26px 80px rgba(37,99,235,.16)!important;border:1px solid #dbeafe!important}
.ubspsx-pro-exam-v136 .tbx-details.ubspsx-login-panel:before{content:'📋'!important;position:absolute!important;top:-42px!important;left:50%!important;transform:translateX(-50%)!important;width:88px!important;height:88px!important;border-radius:50%!important;background:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:38px!important;box-shadow:0 14px 36px rgba(79,70,229,.18)!important}
.ubspsx-pro-exam-v136 .tbx-details.ubspsx-login-panel input{height:56px!important;border-radius:16px!important;border:1px solid #c7d2fe!important;background:#fff!important;padding:0 18px!important;margin:12px 0!important}
.ubspsx-pro-exam-v136 .tbx-details.ubspsx-login-panel .ubspsx-btn{height:60px!important;border-radius:16px!important;background:linear-gradient(135deg,#0b63f6,#8b1cf6)!important;color:#fff!important;font-size:17px!important;font-weight:950!important}
.ubspsx-pro-exam-v136 .tbx-paper{margin:0!important;min-height:auto!important;border-radius:22px!important}
.ubspsx-pro-exam-v136 .tbx-exam-layout{min-height:calc(100vh - 120px)!important;height:auto!important}
.ubspsx-pro-exam-v136 .ubspsx-question-scroll{min-height:430px!important}
@media(max-width:760px){.ubspsx-pro-exam-v136{padding:10px 8px!important}.ubspsx-pro-exam-v136 .ubspsx-exam-hero{min-height:270px!important}.ubspsx-exam-stage{padding:8px!important;border-radius:20px!important}.ubspsx-pro-exam-v136 .tbx-details.ubspsx-login-panel{padding:54px 18px 24px!important}.ubspsx-pro-exam-v136 .tbx-instruction-body{display:block!important}.ubspsx-pro-exam-v136 .tbx-profile{border-left:0!important;border-top:1px solid #e2e8f0!important}.ubspsx-pro-exam-v136 .tbx-bottom{display:grid!important;gap:12px!important}.ubspsx-pro-exam-v136 .tbx-next{width:100%!important}.ubspsx-pro-exam-v136 .tbx-link{text-align:center!important}}


/* V13.8 separate professional frontend screens */
.ubspsx-pro-v136,.ubspsx-pro-exam-v136{max-width:1180px;margin:0 auto;padding:10px 12px 0;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:#0b1b45}.ubspsx-main-hero{position:relative;overflow:hidden;border-radius:22px;background:radial-gradient(circle at 12% 10%,#1178ff 0,#0753ce 34%,#2334d8 62%,#8529e8 100%)!important;box-shadow:0 18px 40px rgba(37,99,235,.22);padding:60px 28px!important;text-align:center;color:#fff}.ubspsx-main-hero h1{font-size:clamp(34px,5vw,62px)!important;line-height:1.05!important;margin:16px 0 14px!important;color:#fff!important;font-weight:900!important;letter-spacing:-1px}.ubspsx-main-hero p{max-width:750px;margin:0 auto 28px!important;color:#eef4ff!important;font-size:clamp(15px,2vw,20px)!important;line-height:1.7}.ubspsx-main-badge{display:inline-flex;padding:11px 24px;border-radius:999px;background:rgba(255,255,255,.16);color:#fff;font-weight:800;backdrop-filter:blur(12px)}.ubspsx-main-btn,.ubspsx-btn,.tbx-next{background:linear-gradient(135deg,#0b82ff,#8b00ff)!important;color:#fff!important;border:0!important;border-radius:15px!important;font-weight:900!important;box-shadow:0 14px 28px rgba(79,70,229,.28)!important}.ubspsx-main-btn{display:inline-flex!important;align-items:center;gap:9px;background:#fff!important;color:#5b21e8!important;padding:18px 35px!important;text-decoration:none!important;font-size:20px!important}.ubspsx-feature-row{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:22px!important;margin:26px 0!important}.ubspsx-feature-card{background:#fff!important;border:1px solid #eaf0ff!important;border-radius:18px!important;padding:26px!important;box-shadow:0 12px 30px rgba(15,23,42,.08)!important;min-height:145px}.ubspsx-feature-card b{display:block;font-size:17px;color:#0b1b45;margin-bottom:14px}.ubspsx-feature-card p{color:#26375e;line-height:1.7;margin:0}.ubspsx-feature-card:after{content:"";display:block;width:75%;height:3px;border-radius:9px;margin-top:18px;background:#22c55e}.ubspsx-feature-card.blue:after{background:#0ea5e9}.ubspsx-feature-card.orange:after{background:#f59e0b}.ubspsx-feature-card.purple:after{background:#7c3aed}.ubspsx-hero{border-radius:20px!important;background:#061947!important;box-shadow:0 14px 35px rgba(2,6,23,.12)!important}.ubspsx-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:24px!important}.ubspsx-card{border-radius:18px!important;background:#fff!important;border:1px solid #e8eefc!important;box-shadow:0 14px 35px rgba(15,23,42,.08)!important;padding:24px!important;border-top:4px solid #2563eb!important}.ubspsx-card h2{color:#0b1b45!important}.ubspsx-exam-stage{background:linear-gradient(135deg,#fbfdff,#f4f0ff)!important;border-radius:22px!important;padding:30px!important;margin:24px 0!important;border:1px solid #e8eefc!important;box-shadow:0 12px 35px rgba(15,23,42,.07)!important}.ubspsx-login-panel{max-width:650px!important;margin:50px auto!important;background:#fff!important;border-radius:26px!important;padding:54px 50px!important;text-align:center!important;box-shadow:0 20px 50px rgba(79,70,229,.13)!important;border:1px solid #eef2ff!important}.ubspsx-login-panel:before{content:"▣";display:grid;place-items:center;width:82px;height:82px;margin:-96px auto 18px;background:#fff;border:11px solid rgba(124,58,237,.10);border-radius:50%;color:#4f46e5;font-size:32px;box-shadow:0 12px 30px rgba(79,70,229,.12)}.ubspsx-login-panel h2{font-size:34px!important;color:#101b46!important;margin:0 0 10px!important}.ubspsx-login-panel p{font-weight:700;color:#65708d}.ubspsx-login-panel input{width:100%!important;height:56px!important;border:2px solid #dbe3f5!important;border-radius:14px!important;margin:10px 0!important;padding:0 18px 0 44px!important;font-weight:700!important;box-shadow:none!important}.ubspsx-login-panel button{width:100%!important;height:60px!important;margin-top:12px!important;font-size:17px!important}.tbx-instructions{background:#fff!important;border-radius:22px!important;overflow:hidden!important;box-shadow:0 15px 42px rgba(15,23,42,.08)!important;border:1px solid #e8eefc!important}.tbx-topbar{background:linear-gradient(90deg,#0057d9,#7c22e8)!important;border-radius:0!important;color:#fff!important;padding:18px 24px!important}.tbx-instruction-body{display:grid!important;grid-template-columns:1fr 240px!important;gap:28px!important;padding:34px!important}.tbx-main-inst h2{text-align:center!important;font-size:32px!important;color:#14213f!important}.tbx-pro-stats span{background:#f3f7ff!important;color:#25406f!important;border-radius:12px!important;padding:12px 18px!important}.tbx-profile{border-left:1px solid #e6eefb!important;background:#fbfdff!important;border-radius:18px!important;padding:24px!important;text-align:center!important}.tbx-profile-meta span{display:block!important;background:#fff!important;border:1px solid #edf2ff!important;border-radius:14px!important;margin:10px 0!important;padding:12px!important;text-align:left!important}.tbx-bottom{padding:24px 34px!important;border-top:1px solid #eef2ff!important}.ubspsx-faq-pro,.ubspsx-pro-footer{border-radius:20px!important;background:#fff!important;box-shadow:0 12px 30px rgba(15,23,42,.07)!important;margin:24px 0!important}.ubspsx-pro-footer{background:#061947!important;color:#fff!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:18px!important;padding:24px!important}.ubspsx-pro-footer small{display:block;color:#c7d2fe!important}
@media(max-width:900px){.ubspsx-feature-row,.ubspsx-grid,.ubspsx-pro-footer{grid-template-columns:1fr!important}.tbx-instruction-body{grid-template-columns:1fr!important}.ubspsx-main-hero{padding:45px 18px!important}.ubspsx-exam-stage{padding:16px!important}.ubspsx-login-panel{padding:42px 22px!important;margin:38px auto!important}.tbx-profile{border-left:0!important}.tbx-bottom{display:grid!important;gap:12px!important}}

/* V14.2 UNIVERSAL FRONTEND AUTO-FIT FIX
   Fixes: horizontal cut/scroll, tablet landscape exam cut, small-screen cards/forms, popup stays over exam. */
.ubspsx-portal{max-width:100%;min-width:0}
.ubspsx-portal,.ubspsx-exam,.ubspsx-pro-v136,.ubspsx-pro-exam-v136,.ubspsx-pro-v136 *,.ubspsx-pro-exam-v136 *{box-sizing:border-box!important}
.ubspsx-pro-v136,.ubspsx-pro-exam-v136{width:100%!important;max-width:1180px!important;margin-left:auto!important;margin-right:auto!important;overflow-x:hidden!important;padding-left:clamp(8px,2vw,18px)!important;padding-right:clamp(8px,2vw,18px)!important}
.ubspsx-main-hero,.ubspsx-hero,.ubspsx-exam-stage,.ubspsx-card,.ubspsx-login-panel,.tbx-instructions,.tbx-paper,.tbx-modal-card{max-width:100%!important}
.ubspsx-main-hero{padding:clamp(28px,6vw,60px) clamp(14px,4vw,28px)!important}
.ubspsx-main-hero h1{font-size:clamp(26px,6vw,58px)!important;word-break:break-word!important}
.ubspsx-main-hero p{font-size:clamp(14px,2.3vw,19px)!important}
.ubspsx-feature-row,.ubspsx-grid,.ubspsx-pro-footer{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))!important;gap:clamp(12px,2vw,22px)!important;padding-left:0!important;padding-right:0!important}
.ubspsx-card-top,.ubspsx-card-footer,.ubspsx-hero-stats,.tbx-topbar,.tbx-exam-top,.tbx-qmeta,.tbx-actions,.tbx-bottom{flex-wrap:wrap!important;gap:8px!important;min-width:0!important}
.ubspsx-card h2,.tbx-top-title,.tbx-exam-student small,.tbx-qtext,.ubspsx-question h3{overflow-wrap:anywhere!important;word-break:break-word!important}
.ubspsx-login-panel,.ubspsx-pro-exam-v136 .tbx-details.ubspsx-login-panel{width:min(100%,680px)!important;margin:clamp(22px,5vw,50px) auto!important;padding:clamp(24px,5vw,56px) clamp(14px,4vw,46px)!important}
.ubspsx-login-panel input,.ubspsx-login-panel button,.ubspsx-btn,.tbx-next{max-width:100%!important}
.tbx-instruction-body{grid-template-columns:minmax(0,1fr) minmax(180px,240px)!important;min-width:0!important}
.tbx-main-inst,.tbx-profile,.tbx-qarea,.tbx-sidebar{min-width:0!important;max-width:100%!important}
.tbx-pro-stats{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))!important;width:100%!important}
.tbx-pro-stats span{width:auto!important;min-width:0!important}
.tbx-profile-meta{display:grid!important;grid-template-columns:1fr!important}
.tbx-exam-top{height:auto!important;min-height:58px!important;padding:8px 12px!important;position:sticky!important;top:0!important;z-index:50!important}
.tbx-clock{padding:6px 10px!important;font-size:14px!important;white-space:nowrap!important}
.tbx-clock strong{display:inline-block!important}
.tbx-exit{white-space:nowrap!important;padding:8px 10px!important}
.tbx-paper{width:100%!important;overflow:hidden!important}
.tbx-exam-layout{display:grid!important;grid-template-columns:minmax(0,1fr) clamp(245px,26vw,310px)!important;height:auto!important;min-height:calc(100dvh - 74px)!important;max-width:100%!important;overflow:hidden!important;gap:0!important}
.tbx-qarea{overflow:hidden!important;display:flex!important;flex-direction:column!important}
.ubspsx-question-scroll{overflow:auto!important;-webkit-overflow-scrolling:touch!important;max-height:none!important;min-height:0!important;flex:1 1 auto!important;padding:clamp(10px,2vw,18px)!important}
.tbx-qmeta{height:auto!important;min-height:48px!important;padding:8px 12px!important;align-items:center!important;font-size:clamp(12px,1.6vw,15px)!important}
.tbx-sectionbar{height:auto!important;min-height:42px!important;padding:7px 12px!important;gap:10px!important}
.tbx-sectionbar b{padding:8px clamp(18px,6vw,55px)!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.ubspsx-question label{width:100%!important;min-height:44px!important;align-items:flex-start!important}
.ubspsx-qimage{max-width:100%!important;height:auto!important}
.tbx-actions{height:auto!important;min-height:58px!important;padding:8px!important;position:sticky!important;bottom:0!important;background:#fff!important;z-index:20!important;overflow-x:auto!important}
.tbx-actions button{white-space:nowrap!important;min-height:40px!important}
.tbx-sidebar{overflow:auto!important;-webkit-overflow-scrolling:touch!important;max-height:calc(100dvh - 70px)!important;border-radius:0!important}
.tbx-palette{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(42px,1fr))!important;gap:8px!important}
.tbx-palette button{min-width:0!important;height:36px!important}
.tbx-side-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;position:sticky!important;bottom:0!important;background:#fff!important;padding-top:8px!important}
.tbx-side-actions button{min-width:0!important;white-space:normal!important;line-height:1.2!important}
.tbx-side-actions #tbxSubmitFinal{grid-column:1/-1!important}
.tbx-modal{position:fixed!important;inset:0!important;z-index:2147483647!important;padding:clamp(8px,2vw,18px)!important}
.tbx-modal-card{width:min(960px,96vw)!important;max-height:88dvh!important;overflow:auto!important}

@media (max-width:1024px){
  .ubspsx-pro-v136,.ubspsx-pro-exam-v136{padding-left:8px!important;padding-right:8px!important}
  .ubspsx-feature-card,.ubspsx-card{padding:clamp(14px,3vw,22px)!important}
  .tbx-instruction-body{grid-template-columns:1fr!important;padding:clamp(14px,3vw,28px)!important}
  .tbx-profile{border-left:0!important;border-top:1px solid #e2e8f0!important}
}

@media (min-width:700px) and (max-width:1180px) and (orientation:landscape){
  .ubspsx-pro-exam-v136{max-width:100vw!important;padding:4px!important}
  .ubspsx-pro-exam-v136 .ubspsx-exam-hero,.ubspsx-pro-exam-v136 .ubspsx-exam-features{display:none!important}
  .ubspsx-exam-stage{margin:0!important;padding:0!important;border-radius:0!important;border:0!important;box-shadow:none!important}
  .tbx-paper{border-radius:0!important;min-height:100dvh!important}
  .tbx-exam-layout{grid-template-columns:minmax(0,1fr) clamp(220px,30vw,285px)!important;min-height:calc(100dvh - 58px)!important;height:calc(100dvh - 58px)!important}
  .ubspsx-question-scroll{max-height:calc(100dvh - 205px)!important}
  .tbx-sidebar{max-height:calc(100dvh - 58px)!important;padding:8px!important}
  .tbx-user{gap:8px!important}.tbx-legend{font-size:11px!important;gap:6px!important}
  .tbx-palette{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
  .tbx-palette button{height:30px!important;font-size:12px!important}
  .tbx-side-actions{gap:6px!important}.tbx-side-actions button{padding:8px 6px!important;font-size:11px!important}
}

@media (max-width:699px){
  .ubspsx-main-btn{width:100%!important;justify-content:center!important;font-size:16px!important;padding:14px 16px!important}
  .ubspsx-feature-row,.ubspsx-grid,.ubspsx-pro-footer{grid-template-columns:1fr!important}
  .tbx-exam-layout{display:block!important;min-height:auto!important;height:auto!important;overflow:visible!important}
  .tbx-sidebar{position:fixed!important;right:-92vw!important;top:0!important;width:88vw!important;height:100dvh!important;max-height:100dvh!important;z-index:999999!important;transition:right .25s ease!important;box-shadow:-16px 0 40px rgba(15,23,42,.28)!important;border-radius:0!important}
  .tbx-sidebar.open{right:0!important}
  .tbx-mobile-palette{display:inline-flex!important;position:sticky!important;top:64px!important;z-index:45!important;margin:8px!important}
  .tbx-qmeta label{width:100%!important}.tbx-qmeta select{width:100%!important}
  .tbx-actions{display:grid!important;grid-template-columns:1fr 1fr!important}.tbx-actions button{width:100%!important}
  .tbx-actions #tbxSubmitFinal{grid-column:1/-1!important}
}


/* V14.2 frontend clean + mobile exam responsive fixes */
.ubspsx-pro-exam-v136 .ubspsx-exam-hero,
.ubspsx-pro-exam-v136 .ubspsx-exam-features,
.ubspsx-pro-exam-v136 > .ubspsx-main-hero,
.ubspsx-pro-exam-v136 > .ubspsx-feature-row{display:none!important}
.ubspsx-pro-exam-v136:before{display:none!important;content:none!important}
.ubspsx-exam-stage{background:linear-gradient(135deg,#f8fbff 0%,#f5f3ff 100%)!important;border:1px solid #e8eef8!important;border-radius:24px!important;padding:clamp(12px,3vw,36px)!important;margin-top:10px!important}
.tbx-details{max-width:620px!important;margin:40px auto!important;padding:54px 42px!important;border-radius:28px!important}
.tbx-details:before{display:none!important;content:none!important}
.tbx-details .ubspsx-badge{background:linear-gradient(135deg,#2563eb,#7c3aed)!important;color:#fff!important;border:0!important;margin-bottom:10px!important}
.tbx-details h2{font-size:clamp(28px,4vw,44px)!important;line-height:1.15!important}.tbx-details p{font-size:16px!important;margin-bottom:18px!important}
.tbx-details input[type=text],.tbx-details input:not([type]){height:58px!important;border-radius:18px!important;font-size:17px!important;font-weight:800!important}
.tbx-details input[type=hidden]{display:none!important}
.tbx-instructions{border-radius:24px!important;overflow:hidden!important;box-shadow:0 20px 55px rgba(15,23,42,.08)!important}
@media(max-width:760px){
  .ubspsx-pro-exam-v136{padding:0!important;max-width:100%!important}
  .ubspsx-exam-stage{border-radius:0!important;border-left:0!important;border-right:0!important;padding:10px!important}
  .tbx-details{width:100%!important;max-width:none!important;margin:18px auto!important;padding:34px 18px!important;border-radius:22px!important}
  .tbx-details h2{font-size:30px!important}.tbx-details p{font-size:14px!important}
  .tbx-paper{height:auto!important;min-height:100vh!important;border-radius:0!important;max-width:100vw!important}
  .tbx-exam-top{position:sticky!important;top:0!important;z-index:100!important;display:grid!important;grid-template-columns:1fr auto!important;gap:8px!important;padding:8px 10px!important}
  .tbx-clock{grid-column:1/2!important;grid-row:2!important;width:max-content!important;padding:7px 10px!important;font-size:13px!important}.tbx-clock strong{padding:4px 7px!important;letter-spacing:1px!important}
  .tbx-exit{grid-column:2!important;grid-row:1 / span 2!important;align-self:center!important;padding:8px 10px!important;font-size:12px!important;border-radius:12px!important}
  .tbx-exam-layout{display:block!important;min-height:auto!important;height:auto!important}
  .tbx-qarea{min-height:calc(100vh - 74px)!important}
  .tbx-sectionbar{position:sticky!important;top:74px!important;z-index:60!important;background:#fff!important;height:auto!important;min-height:44px!important;padding:8px 10px!important;gap:8px!important}.tbx-sectionbar b{max-width:58vw!important;padding:8px 18px!important;border-radius:999px!important}
  .tbx-mobile-palette{display:flex!important;position:fixed!important;right:14px!important;bottom:82px!important;top:auto!important;z-index:1000001!important;width:auto!important;border-radius:999px!important;padding:12px 16px!important;box-shadow:0 14px 35px rgba(37,99,235,.32)!important}
  .ubspsx-question-scroll{min-height:calc(100vh - 230px)!important;padding:12px 10px 92px!important}.ubspsx-question h3{font-size:18px!important}.ubspsx-question label{padding:13px 12px!important;border-radius:14px!important}
  .tbx-actions{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:1000000!important;background:#fff!important;border-top:1px solid #dbeafe!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:8px!important;box-shadow:0 -10px 30px rgba(15,23,42,.12)!important}.tbx-actions button{min-height:44px!important;border-radius:14px!important;padding:8px!important;font-size:13px!important}.tbx-actions #tbxSaveNext{grid-column:1/-1!important}
  .tbx-sidebar{position:fixed!important;right:-92vw!important;top:0!important;width:90vw!important;max-width:360px!important;height:100vh!important;z-index:1000002!important;background:#fff!important;border-left:1px solid #dbeafe!important;transition:right .25s ease!important;box-shadow:-18px 0 45px rgba(15,23,42,.24)!important;display:flex!important}.tbx-sidebar.open{right:0!important;transform:none!important}.tbx-palette{grid-template-columns:repeat(5,1fr)!important;gap:10px!important}.tbx-palette button{height:42px!important;border-radius:12px!important;font-weight:900!important}
}
@media(max-width:420px){.tbx-palette{grid-template-columns:repeat(4,1fr)!important}.tbx-qmeta{font-size:12px!important;gap:8px!important}.tbx-actions{grid-template-columns:1fr!important}.tbx-actions #tbxSaveNext{grid-column:auto!important}}

/* V14.3 LIVE TEST MOBILE FINAL FIX */
.tbx-paper,.tbx-exam-layout,.tbx-qarea,.tbx-sidebar{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
.tbx-mobile-palette{display:none!important}
.tbx-exam-student{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important;overflow:hidden!important}
.tbx-exam-student div{min-width:0!important}.tbx-exam-student b,.tbx-exam-student small{display:block!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
@media(max-width:760px){
  .ubspsx-portal{min-width:0}
  .ubspsx-pro-exam-v136{width:100%!important;max-width:100vw!important;padding:0!important;overflow-x:hidden!important}
  .ubspsx-exam-stage{margin:0!important;padding:0!important;border-radius:0!important;border:0!important;box-shadow:none!important;background:#fff!important}
  .tbx-paper{width:100%!important;max-width:100vw!important;min-height:100dvh!important;border-radius:0!important;overflow:visible!important;background:#fff!important}
  .tbx-exam-top{position:sticky!important;top:0!important;z-index:1000!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:6px!important;min-height:58px!important;height:auto!important;padding:7px 8px!important;background:linear-gradient(135deg,#071943,#0b63f6)!important;color:#fff!important}
  .tbx-exam-student .tbx-avatar-img,.tbx-exam-student .ubspsx-default-photo{width:34px!important;height:34px!important;flex:0 0 34px!important}
  .tbx-exam-student b{font-size:14px!important;color:#fff!important}.tbx-exam-student small{font-size:11px!important;color:#dbeafe!important}
  .tbx-clock{grid-column:1/2!important;grid-row:2!important;justify-self:start!important;width:auto!important;max-width:100%!important;padding:6px 9px!important;font-size:12px!important;border-radius:10px!important;background:rgba(255,255,255,.16)!important;color:#fff!important;white-space:nowrap!important}
  .tbx-clock strong{margin-left:4px!important;padding:3px 6px!important;border-radius:8px!important;background:#fff!important;color:#071943!important;letter-spacing:1px!important}
  .tbx-exit{grid-column:2!important;grid-row:1 / span 2!important;align-self:center!important;white-space:nowrap!important;padding:8px 9px!important;font-size:12px!important;border-radius:12px!important;background:#fff!important;color:#0b63f6!important;border:0!important}
  .tbx-exam-layout{display:block!important;width:100%!important;min-height:auto!important;height:auto!important;overflow:visible!important;background:#fff!important}
  .tbx-qarea{display:block!important;width:100%!important;min-height:auto!important;overflow:visible!important;border:0!important;border-radius:0!important;background:#fff!important}
  .tbx-sectionbar{position:sticky!important;top:74px!important;z-index:900!important;display:flex!important;align-items:center!important;gap:8px!important;min-height:42px!important;height:auto!important;padding:7px 8px!important;background:#fff!important;border-bottom:1px solid #e5e7eb!important;overflow:hidden!important}
  .tbx-sectionbar span{font-size:12px!important;flex:0 0 auto!important}.tbx-sectionbar b{min-width:0!important;max-width:62vw!important;padding:8px 18px!important;border-radius:999px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .tbx-qmeta{display:flex!important;flex-wrap:wrap!important;gap:7px 10px!important;align-items:center!important;height:auto!important;min-height:44px!important;padding:8px!important;font-size:12px!important;background:#fff!important;border-bottom:1px solid #e5e7eb!important}
  .tbx-qmeta label{width:auto!important;max-width:100%!important}.tbx-qmeta select{height:34px!important;max-width:110px!important;padding:5px!important}
  .ubspsx-question-scroll{display:block!important;width:100%!important;min-height:auto!important;max-height:none!important;overflow:visible!important;padding:12px 10px 118px!important;background:#fff!important}
  .ubspsx-question h3,.tbx-qtext{font-size:18px!important;line-height:1.55!important;margin:12px 0 18px!important;word-break:break-word!important;overflow-wrap:anywhere!important}
  .ubspsx-question label{display:flex!important;width:100%!important;gap:8px!important;align-items:flex-start!important;margin:10px 0!important;padding:13px 12px!important;border-radius:14px!important;font-size:15px!important;line-height:1.45!important;word-break:break-word!important}
  .tbx-actions{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:1001!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;width:100%!important;padding:8px calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left))!important;background:#fff!important;border-top:1px solid #dbeafe!important;box-shadow:0 -10px 30px rgba(15,23,42,.14)!important;overflow:visible!important}
  .tbx-actions button{width:100%!important;min-width:0!important;min-height:42px!important;padding:8px 7px!important;border-radius:13px!important;font-size:12px!important;line-height:1.2!important;white-space:normal!important}
  .tbx-actions #tbxSaveNext{grid-column:1/-1!important}
  .tbx-mobile-palette{display:flex!important;position:fixed!important;right:12px!important;bottom:calc(104px + env(safe-area-inset-bottom))!important;top:auto!important;z-index:1002!important;width:auto!important;align-items:center!important;justify-content:center!important;padding:11px 14px!important;border:0!important;border-radius:999px!important;background:linear-gradient(135deg,#0b63f6,#7c22ff)!important;color:#fff!important;font-weight:900!important;box-shadow:0 14px 35px rgba(37,99,235,.34)!important}
  .tbx-sidebar{position:fixed!important;right:-94vw!important;top:0!important;width:90vw!important;max-width:370px!important;height:100dvh!important;max-height:100dvh!important;z-index:1003!important;background:#fff!important;border-left:1px solid #dbeafe!important;border-radius:0!important;padding:12px!important;display:flex!important;flex-direction:column!important;gap:10px!important;overflow-y:auto!important;overflow-x:hidden!important;transition:right .25s ease!important;box-shadow:-18px 0 45px rgba(15,23,42,.24)!important}
  .tbx-sidebar.open{right:0!important;transform:none!important}
  .tbx-user{display:flex!important;align-items:center!important;gap:10px!important;flex:0 0 auto!important}.tbx-legend{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;font-size:12px!important;flex:0 0 auto!important}.tbx-legend span{min-width:0!important}
  .tbx-sidebar h3{font-size:13px!important;padding:12px!important;margin:4px 0!important;background:#e0f2fe!important;color:#0f172a!important;flex:0 0 auto!important}
  .tbx-palette{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;flex:0 0 auto!important}.tbx-palette button{height:40px!important;min-width:0!important;border-radius:12px!important;font-weight:900!important}
  .tbx-side-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;position:sticky!important;bottom:0!important;background:#fff!important;padding-top:8px!important;margin-top:auto!important}.tbx-side-actions button{min-width:0!important;white-space:normal!important;line-height:1.2!important;padding:10px 8px!important;border-radius:12px!important}.tbx-side-actions #tbxSubmitFinal{grid-column:1/-1!important}
}
@media(max-width:380px){.tbx-palette{grid-template-columns:repeat(4,minmax(0,1fr))!important}.tbx-actions{grid-template-columns:1fr!important}.tbx-actions #tbxSaveNext{grid-column:auto!important}.tbx-mobile-palette{bottom:calc(156px + env(safe-area-inset-bottom))!important}}

/* UBS v14.4 dashboard cleanup + view-more page + image fallback */
.ubspsx-pro-v136 > .ubspsx-main-hero,
.ubspsx-pro-v136 > .ubspsx-feature-row{display:none!important;}
.ubspsx-pro-v136 .ubspsx-hero{margin-top:0!important;}
.ubspsx-more-btn{min-width:220px;justify-content:center;}
.ubspsx-profile-photo{object-fit:cover;border-radius:50%;background:#f1f5f9;}
.ubspsx-default-photo{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:linear-gradient(135deg,#e2e8f0,#f8fafc);border:3px solid #fff;box-shadow:0 8px 20px rgba(15,23,42,.12);font-size:28px;color:#64748b;}
@media(max-width:768px){
  .ubspsx-pro-v136{padding:10px!important;}
  .ubspsx-pro-v136 .ubspsx-hero{border-radius:18px!important;padding:28px 18px!important;}
  .ubspsx-test-switch{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
  .ubspsx-filter{width:100%!important;}
  .ubspsx-toolbar{padding-left:0!important;padding-right:0!important;}
  .ubspsx-search{width:100%!important;}
  .ubspsx-grid{grid-template-columns:1fr!important;gap:16px!important;}
  .ubspsx-card{width:100%!important;min-height:auto!important;}
  .ubspsx-more-btn{width:100%;}
}

/* v14.5 mobile question drawer close fix */
.tbx-palette-close{display:none!important}
.tbx-palette-overlay{display:none!important}
@media(max-width:760px){
  .tbx-palette-overlay{display:none!important;position:fixed!important;inset:0!important;background:rgba(15,23,42,.45)!important;z-index:1002!important;backdrop-filter:blur(2px)!important}
  .tbx-palette-overlay.open{display:block!important}
  .tbx-sidebar{z-index:1003!important}
  .tbx-palette-close{display:flex!important;position:absolute!important;top:10px!important;right:12px!important;width:38px!important;height:38px!important;border:0!important;border-radius:50%!important;background:#ef4444!important;color:#fff!important;font-size:26px!important;line-height:1!important;align-items:center!important;justify-content:center!important;font-weight:900!important;box-shadow:0 8px 20px rgba(239,68,68,.25)!important;cursor:pointer!important}
  .tbx-sidebar .tbx-user{padding-right:46px!important}
  body.tbx-palette-active{overflow:hidden!important}
}

/* v14.7 live result review image + bilingual explanation */
.ubspsx-popup-image-wrap,.ubspsx-result-qimage{margin:12px 0 16px;text-align:center;background:#f8fafc;border:1px solid rgba(15,23,42,.10);border-radius:18px;padding:10px}
.ubspsx-popup-image,.ubspsx-result-qimage img{max-width:100%;height:auto;border-radius:14px;box-shadow:0 10px 25px rgba(15,23,42,.12)}
.ubspsx-popup-exp-en-wrap{border-top:1px dashed rgba(15,23,42,.18);padding-top:10px}
.ubspsx-rank-pending{border:1px solid rgba(245,158,11,.35)!important;background:linear-gradient(135deg,#fff7ed,#ffffff)!important}

/* V14.11 Separate All Practice Sets Dashboard */
.ubspsx-premium-cats{margin:26px 0!important}
.ubspsx-cat-card.active{outline:3px solid rgba(37,99,235,.28)!important;transform:translateY(-4px)!important}
.ubspsx-all-dashboard{margin:30px 0!important;padding:24px!important;border:1px solid #dbeafe!important;border-radius:28px!important;background:linear-gradient(180deg,#f8fbff,#ffffff)!important;box-shadow:0 18px 48px rgba(15,23,42,.09)!important}
.ubspsx-all-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin-bottom:18px!important}
.ubspsx-all-head h2{margin:10px 0 6px!important;font-size:clamp(24px,3vw,38px)!important;color:#071943!important;letter-spacing:-.5px!important}
.ubspsx-all-head p{margin:0!important;color:#475569!important;font-weight:700!important}
.ubspsx-all-dashboard .ubspsx-grid{margin-top:14px!important}
@media(max-width:700px){.ubspsx-all-head{display:grid!important}.ubspsx-all-dashboard{padding:16px!important;border-radius:22px!important}}


/* v14.12 Separate Shortcode Pages */
.ubspsx-short-nav{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 24px;padding:12px;background:rgba(255,255,255,.82);border:1px solid rgba(15,23,42,.10);border-radius:18px;box-shadow:0 10px 30px rgba(15,23,42,.08)}
.ubspsx-short-nav a{display:inline-flex;align-items:center;gap:6px;text-decoration:none;font-weight:800;color:#0f172a;background:#fff;border:1px solid rgba(15,23,42,.10);padding:10px 13px;border-radius:14px;box-shadow:0 6px 16px rgba(15,23,42,.06)}
.ubspsx-short-nav a:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(15,23,42,.12)}
.ubspsx-split-portal .ubspsx-cat-grid{margin-top:14px}
.ubspsx-table-wrap{overflow:auto;background:#fff;border-radius:18px;border:1px solid rgba(15,23,42,.10);box-shadow:0 10px 30px rgba(15,23,42,.08)}
@media(max-width:700px){.ubspsx-short-nav{gap:8px}.ubspsx-short-nav a{width:100%;justify-content:center}.ubspsx-all-head{gap:12px;align-items:flex-start}}

.ubp-practice-content .ubspsx-short-nav{display:none!important}.ubp-practice-content .ubspsx-btn{color:#fff!important;background:#06439b!important}.ubp-practice-content .ubspsx-btn:focus-visible{outline:3px solid #f4b900;outline-offset:2px}.ubp-practice-content .ubspsx-portal{min-width:0;max-width:100%}
/* 15.9 shared portal visual system, scoped to test UI */
.ubspsx-portal,.ubspsx-exam{--ubs-brand:#073b91;font-family:system-ui,-apple-system,sans-serif;color:#142b50}.ubspsx-portal .ubspsx-hero,.ubspsx-portal .ubspsx-main-hero{background:linear-gradient(120deg,#082d70,#1264bd)!important;color:#fff!important;border-radius:18px!important;box-shadow:0 10px 28px #103d7420}.ubspsx-portal .ubspsx-hero h1,.ubspsx-portal .ubspsx-main-hero h1{color:#fff!important}.ubspsx-portal .ubspsx-card,.ubspsx-portal .ubspsx-cat-card,.ubspsx-portal .ubspsx-rankbox,.ubspsx-portal .ubspsx-feature-card,.ubspsx-portal .ubspsx-empty,.ubspsx-portal .ubspsx-result{border-radius:16px!important;border:1px solid #dbe5f2!important;box-shadow:0 5px 20px #173a6610!important}.ubspsx-portal .ubspsx-btn,.ubspsx-portal .ubspsx-main-btn{border-radius:10px!important;min-height:42px}.ubspsx-portal .ubspsx-section-title{border-left:4px solid #0b55b5;padding-left:12px}.ubspsx-portal .ubspsx-search input,.ubspsx-portal .ubspsx-toolbar select{border-radius:10px!important;border:1px solid #bacbe2!important}.ubspsx-portal .ubspsx-table-wrap{overflow-x:auto;border-radius:12px}.ubspsx-portal .ubspsx-rank-table th{background:#073b91!important;color:white!important}.ubspsx-exam .tbx-topbar,.ubspsx-exam .tbx-exam-top{background:#073b91!important;color:white!important}.ubspsx-exam .tbx-qarea,.ubspsx-exam .tbx-sidebar{border-color:#dbe5f2!important}.ubspsx-exam .tbx-qtext{line-height:1.65}.ubspsx-exam .tbx-next,.ubspsx-exam .tbx-submit-ok{background:#073b91!important;color:white!important;border-radius:8px}.ubspsx-portal a:focus-visible,.ubspsx-portal button:focus-visible,.ubspsx-exam button:focus-visible{outline:3px solid #f4b900!important;outline-offset:2px}.ubspsx-portal img,.ubspsx-exam img{max-width:100%;height:auto}@media(max-width:600px){.ubspsx-portal .ubspsx-hero,.ubspsx-portal .ubspsx-main-hero{border-radius:12px!important}.ubspsx-portal .ubspsx-card,.ubspsx-portal .ubspsx-cat-card{border-radius:12px!important}}
