/* UstozOne user Question Bank — focused workspace,no legacy dashboard chrome. */
.question-bank-page.source-bank-page{
  width:100%;
  max-width:none!important;
  margin:0!important;
  padding:20px 18px 48px;
}
.uqb-shell{display:grid;gap:14px;color:var(--text);font-size:13px}
.uqb-shell *{box-sizing:border-box}.uqb-panel h2,.uqb-editor h3{margin:0;color:var(--text);letter-spacing:-.035em}.uqb-panel-head p,.uqb-bank-head p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.45}
.uqb-eyebrow{display:block;margin-bottom:4px;color:#6b7e99;font-size:9.5px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}

.uqb-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid var(--line);background:var(--surface);border-radius:8px;overflow:hidden}
.uqb-tabs button{min-height:48px;border:0;border-left:1px solid #e3e9f0;background:#fff;color:#61718a;font:inherit;font-size:12px;font-weight:790;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;position:relative}
.uqb-tabs button:first-child{border-left:0}
.uqb-tabs button i{width:16px;color:#8090a6}
.uqb-tabs button:hover{background:#f7f9fc;color:var(--text)}
.uqb-tabs button.active{background:#fff;color:var(--text)}
.uqb-tabs button.active i{color:var(--primary)}
.uqb-tabs button.active:after{content:"";position:absolute;left:20px;right:20px;bottom:0;height:3px;background:var(--primary)}

.uqb-panel{border:1px solid var(--line);border-radius:8px;background:var(--surface);overflow:hidden}
.uqb-panel-head,.uqb-bank-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 18px 15px;border-bottom:1px solid #e4eaf1}
.uqb-panel-head h2,.uqb-bank-head h2{font-size:17px;font-weight:820}
.uqb-bank-head>.btn{flex:0 0 auto;min-width:118px}

.uqb-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #e5ebf2;background:#fbfcfe}
.uqb-stat-grid>div{min-height:72px;padding:13px 16px;border-left:1px solid #e6ebf2;display:flex;flex-direction:column;justify-content:center;gap:3px}
.uqb-stat-grid>div:first-child{border-left:0}
.uqb-stat-grid span{color:#75849a;font-size:10.5px;font-weight:720}
.uqb-stat-grid b{color:var(--text);font-size:22px;line-height:1;font-weight:850;font-variant-numeric:tabular-nums}
.uqb-stat-grid .attention b{color:var(--warning)}

.uqb-filterbar{display:grid;grid-template-columns:minmax(220px,1.7fr) minmax(130px,.85fr) minmax(145px,.9fr) minmax(130px,.85fr) minmax(135px,.85fr) auto;gap:8px;padding:12px 14px;border-bottom:1px solid #e5ebf2;background:#f8fafc}
.uqb-filterbar .input,.uqb-filterbar .search{height:40px;min-width:0}
.uqb-filterbar .input{padding:8px 10px;font-size:11.5px}
.uqb-filterbar .search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:0 10px}
.uqb-filterbar .search:focus-within{border-color:#8ba3ff;box-shadow:0 0 0 3px rgba(18,95,255,.08)}
.uqb-filterbar .search i{color:#8492a7;font-size:11px}
.uqb-filterbar .search input{width:100%;height:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:11.5px}
.uqb-filterbar .search input::placeholder{color:#9aa6b5}
.uqb-filterbar>.btn{min-height:40px;height:40px;padding:0 14px}

.uqb-list-toolbar{min-height:46px;padding:8px 14px;border-bottom:1px solid #e7ecf2;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;color:#78869b;font-size:10.5px}
.uqb-list-toolbar strong{color:var(--text);font-size:12px}
.uqb-list-toolbar>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap}

.uqb-question-list{display:grid}
.uqb-question-card{position:relative;padding:14px 16px 12px;border-top:1px solid #e6ebf1;background:#fff;transition:background .12s ease,border-color .12s ease}
.uqb-question-card:first-child{border-top:0}
.uqb-question-card:hover{background:#fbfcff}
.uqb-question-card.selected{background:#f6f9ff;box-shadow:inset 3px 0 0 var(--primary)}
.uqb-question-card>header{min-height:27px;display:flex;align-items:center;gap:8px;margin-bottom:7px}
.uqb-card-id{margin-right:auto;color:#5c6e88;font-size:10.5px;font-weight:800;letter-spacing:.01em}
.uqb-select{display:grid;place-items:center;width:24px;height:24px;cursor:pointer}
.uqb-select input{position:absolute;opacity:0;pointer-events:none}
.uqb-select span{width:15px;height:15px;border:1.5px solid #9fb0c5;border-radius:4px;background:#fff;display:grid;place-items:center}
.uqb-select input:checked+span{border-color:var(--primary);background:var(--primary)}
.uqb-select input:checked+span:after{content:"";width:6px;height:3px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) translateY(-1px)}
.uqb-status{display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:0 7px;border:1px solid #d8e1eb;border-radius:5px;background:#f8fafc;color:#66768c;font-size:9.5px;font-weight:800;white-space:nowrap}
.uqb-status.ok{border-color:#c9e8d8;background:#effaf4;color:#14744a}
.uqb-status.warn{border-color:#edd8ad;background:#fff8e9;color:#976313}
.uqb-status.muted{background:#f4f6f8;color:#778397}

.uqb-question-meta{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:0 0 10px 32px}
.uqb-question-meta span{display:inline-flex;align-items:center;gap:5px;min-height:24px;padding:0 7px;border:1px solid #dde5ee;border-radius:5px;background:#f8fafc;color:#61718a;font-size:9.5px;font-weight:720;max-width:270px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.uqb-question-meta i{color:#8392a8;font-size:9px}
.uqb-question-body{margin-left:32px;color:#10244c;font-size:13.5px;line-height:1.65;overflow:hidden}
.uqb-question-card footer{display:flex;align-items:center;gap:5px;margin:12px 0 0 32px;padding-top:9px;border-top:1px solid #edf1f5}
.uqb-question-card footer button{min-height:31px;padding:0 8px;border:0;border-radius:5px;background:transparent;color:#5f718a;font:inherit;font-size:10px;font-weight:760;display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.uqb-question-card footer button:hover{background:#f0f4f8;color:var(--text)}
.uqb-question-card footer button.danger:hover{background:var(--danger-soft);color:var(--danger)}

.uqb-shell .source-bank-options{margin:8px 0 0;padding-left:27px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 26px}
.uqb-shell .source-bank-options li{padding-left:3px;min-width:0}
.uqb-shell .source-bank-options li::marker{font-weight:750;color:#536781}

.uqb-builder-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px 18px 18px}
.uqb-builder-form label{display:grid;gap:6px;min-width:0}
.uqb-builder-form label>span,.uqb-editor label>span{color:#566982;font-size:10.5px;font-weight:780}
.uqb-builder-form .wide{grid-column:1/-1}
.uqb-difficulty-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.uqb-check{display:flex!important;align-items:center;gap:8px;padding:9px 11px;border:1px solid #dbe4ee;border-radius:7px;background:#f8fafc}
.uqb-check input{accent-color:var(--primary)}
.uqb-form-actions{display:flex;justify-content:flex-end!important}
.uqb-form-actions .btn{min-width:150px}
.uqb-builder-result{border-top:1px solid #e3e9f0;background:#fff}
.uqb-result-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#f8fafc;border-bottom:1px solid #e5ebf2}
.uqb-result-stats span{padding:11px 14px;border-left:1px solid #e5ebf2;color:#6e7d91;font-size:10px}
.uqb-result-stats span:first-child{border-left:0}
.uqb-result-stats b{color:var(--text);font-size:15px;margin-right:3px}
.uqb-warning{display:flex;align-items:center;gap:8px;margin:12px 14px 0;padding:10px 11px;border:1px solid #edd8ad;border-radius:7px;background:#fff8e9;color:#8c5d14;font-size:11px;font-weight:720}
.uqb-result-head{min-height:51px;padding:8px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e9edf2}
.uqb-result-head>div{display:flex;gap:7px}
.uqb-result-list details{border-top:1px solid #e8edf3}
.uqb-result-list details:first-child{border-top:0}
.uqb-result-list summary{min-height:47px;padding:9px 14px;display:grid;grid-template-columns:26px minmax(0,1fr) auto 14px;align-items:center;gap:8px;cursor:pointer;list-style:none}
.uqb-result-list summary::-webkit-details-marker{display:none}
.uqb-result-list summary b{display:grid;place-items:center;width:24px;height:24px;border:1px solid #d8e2ed;border-radius:5px;background:#f7f9fc;font-size:10px}
.uqb-result-list summary span{font-weight:780}
.uqb-result-list summary small{color:#75849a;font-size:9.5px}
.uqb-result-list details>div{padding:2px 46px 14px;background:#fbfcfe}

.question-editor-page{
  width:100%;
  max-width:none!important;
  margin:0!important;
  padding:18px 24px 48px!important;
  background:#f7f9fc;
}
.uqb-question-editor-screen{
  --uqb-keyboard-inset:0px;
  width:100%;
  min-width:0;
  color:var(--text);
  padding-bottom:var(--uqb-keyboard-inset);
  transition:padding-bottom .16s ease;
}
.uqb-question-editor-shell{width:100%;max-width:none;margin:0;display:grid;gap:12px}
.uqb-question-editor-header{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
}
.uqb-question-editor-title{min-width:0}
.uqb-question-editor-title h1{margin:0;color:var(--text);font-size:24px;line-height:1.12;font-weight:840;letter-spacing:-.035em}
.uqb-question-editor-title p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.4}
.uqb-editor-head-save{min-width:148px;justify-content:center}
.uqb-editor-page-form{display:grid;gap:12px;padding:0!important}
.uqb-editor-section,.uqb-answer-editor{overflow:visible;border:1px solid var(--line);border-radius:6px;background:#fff}
.uqb-editor-section-title,.uqb-answer-editor-title{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px;
  border-bottom:1px solid #e6ebf1;
  background:#fafbfd;
}
.uqb-editor-section-title>div,.uqb-answer-editor-title>div{display:grid;gap:2px}
.uqb-editor-section-title strong,.uqb-answer-editor-title strong{color:var(--text);font-size:12px}
.uqb-editor-section-title span,.uqb-answer-editor-title span{color:var(--muted);font-size:9.5px}
.uqb-editor-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:14px}
.uqb-editor-grid label,.uqb-editor-wide,.uqb-answer-editor label{display:grid;gap:6px;min-width:0}
.uqb-editor-grid label>span,.uqb-open-answer-grid label>span{color:#566982;font-size:10.5px;font-weight:780}
.uqb-editor-writing>.uqb-rich-math-tools{margin:12px 14px 0}
.uqb-editor-writing>.uqb-rich-field{padding:10px 14px 14px}
.uqb-editor-wide .uqb-rich-composer{min-height:210px}
.uqb-code{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:11.5px}
.uqb-answer-editor{display:grid;gap:0;padding:0;overflow:hidden}
.uqb-answer-editor.hidden{display:none!important}
.uqb-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px 14px 14px}
.uqb-option-edit{display:grid!important;grid-template-columns:22px 28px minmax(0,1fr);align-items:start;gap:8px;padding:9px;border:1px solid #e1e7ef;border-radius:5px;background:#fff}
.uqb-option-edit:focus-within{border-color:#9db4f8;background:#fbfcff}
.uqb-option-edit>input[type="radio"]{margin-top:13px;accent-color:var(--primary)}
.uqb-option-edit>span{display:grid;place-items:center;width:28px;height:28px;margin-top:4px;border:1px solid #d5dee9;border-radius:4px;background:#f8fafc;color:#445a75;font-size:10px!important;font-weight:800}
.uqb-open-answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:13px 14px 14px}
.uqb-open-answer-grid textarea{min-height:96px}
.uqb-editor-page-footer{
  display:flex!important;
  align-items:center;
  justify-content:flex-end!important;
  gap:8px!important;
  padding:12px 0 calc(8px + var(--safe-bottom))!important;
  background:transparent!important;
}
.uqb-editor-page-footer .btn{min-width:150px;justify-content:center}

/* Canonical document editor surface. Formula editing lives in shared rich-composer.css. */
.uqb-rich-field{display:grid;gap:6px;min-width:0}
.uqb-rich-field.compact{gap:4px}
.uqb-rich-composer{display:block;width:100%;min-height:116px;max-height:420px;padding:12px 13px!important;border:1px solid var(--line)!important;border-radius:6px!important;background:#fff!important;color:var(--uo-question-color,var(--text));font-family:var(--uo-question-font-family,"Space Grotesk",sans-serif);font-size:var(--uo-question-font-size,16px);font-weight:var(--uo-question-font-weight,600);line-height:var(--uo-question-line-height,1.68);overflow-x:hidden;overflow-y:auto;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;caret-color:var(--primary);cursor:text;box-shadow:none}
.uqb-rich-composer.compact{min-height:58px;max-height:180px;padding:9px 10px!important;font-size:12px;line-height:1.55}
.uqb-question-composer{min-height:210px}
.uqb-rich-composer:focus{outline:0!important;border-color:#7f9cff!important;box-shadow:0 0 0 3px rgba(18,95,255,.08)!important}
.uqb-rich-math-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.uqb-rich-math-tools.global{position:static;z-index:auto;padding:7px 8px;border:1px solid #dce4ee;border-radius:6px;background:#fff}
.uqb-math-target{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:0 8px;border-right:1px solid #e2e8f0;color:#6a7b91;font-size:10px;white-space:nowrap}
.uqb-math-target b{color:#10244c;font-size:10px}
.uqb-math-chip{min-height:32px;padding:0 10px;border:1px solid #d7e1ec;border-radius:5px;background:#fff;color:#435a77;font:inherit;font-size:10px;font-weight:760;cursor:pointer}
.uqb-math-chip:hover{border-color:#9bb6ff;background:#f5f8ff;color:var(--primary)}
.uqb-math-chip.keyboard{margin-left:auto;border-color:#9eb7ff;color:var(--primary);background:#f7f9ff}
.uqb-rich-field.is-active .uqb-rich-composer{border-color:#7f9cff!important;box-shadow:0 0 0 3px rgba(18,95,255,.07)!important}
.uqb-option-edit.rich .uqb-rich-field{min-width:0}
.uqb-question-editor-screen.keyboard-open .uqb-question-editor-shell{padding-bottom:16px}
.uqb-key-math{pointer-events:none;border:0!important;background:transparent!important;padding:0!important;min-width:0!important;font-size:16px}

/* Personal source directory. */
.uqb-source-list{display:grid}
.uqb-source-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border-top:1px solid #e6ebf1;background:#fff}
.uqb-source-row:first-child{border-top:0}
.uqb-source-main{min-width:0;min-height:48px;padding:0;border:0;background:transparent;color:var(--text);display:grid;grid-template-columns:30px minmax(0,1fr) 16px;align-items:center;gap:9px;text-align:left;cursor:pointer}
.uqb-source-main>i:first-child{width:30px;height:30px;border:1px solid #d8e2ed;border-radius:6px;background:#f7f9fc;display:grid;place-items:center;color:#59708c}
.uqb-source-main span{display:grid;gap:3px;min-width:0}
.uqb-source-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px}
.uqb-source-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7a899e;font-size:9.5px}
.uqb-source-main>i:last-child{color:#8695aa}
.uqb-source-actions{display:flex;align-items:center;gap:6px}

.uqb-panel .empty-mini,.uqb-panel .empty-state{margin:22px}
.uqb-panel .spinner{border-color:#d5dfeb;border-top-color:var(--primary)}

@media(max-width:1120px){
  .question-bank-page.source-bank-page{padding:16px 16px 42px}
  .uqb-filterbar{grid-template-columns:repeat(3,minmax(0,1fr))}
  .uqb-filterbar .search{grid-column:span 2}
  .uqb-builder-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .uqb-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .question-bank-page.source-bank-page{padding:10px 10px calc(92px + var(--safe-bottom))}
  .uqb-tabs{display:flex;overflow-x:auto;overscroll-behavior-x:contain}.uqb-tabs button{flex:0 0 auto;min-width:124px;min-height:43px;border-left:1px solid #e5ebf2;border-top:0;padding:0 12px}.uqb-tabs button:first-child{border-left:0}.uqb-tabs button.active:after{left:14px;right:14px;bottom:0;top:auto;width:auto;height:3px}
  .uqb-panel-head,.uqb-bank-head{align-items:flex-start;flex-direction:column;padding:14px}.uqb-bank-head>.btn{width:100%}
  .uqb-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.uqb-stat-grid>div:nth-child(3){border-left:0;border-top:1px solid #e6ebf2}.uqb-stat-grid>div:nth-child(4){border-top:1px solid #e6ebf2}
  .uqb-filterbar{grid-template-columns:1fr;padding:10px}.uqb-filterbar .search{grid-column:auto}.uqb-filterbar>.btn{width:100%}
  .uqb-list-toolbar{align-items:flex-start;flex-direction:column}.uqb-list-toolbar>div,.uqb-list-toolbar .btn{width:100%}.uqb-list-toolbar .btn{justify-content:center}
  .uqb-question-card{padding:12px 10px}.uqb-question-meta,.uqb-question-body,.uqb-question-card footer{margin-left:0}.uqb-question-meta{margin-bottom:8px}.uqb-question-card footer{flex-wrap:wrap}
  .uqb-shell .source-bank-options{grid-template-columns:1fr;gap:4px;margin-top:7px}
  .uqb-builder-form{grid-template-columns:1fr;padding:13px}.uqb-difficulty-grid{grid-template-columns:1fr}.uqb-form-actions .btn{width:100%}
  .uqb-result-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.uqb-result-stats span:nth-child(3){border-left:0;border-top:1px solid #e5ebf2}.uqb-result-stats span:nth-child(4){border-top:1px solid #e5ebf2}
  .uqb-result-head{align-items:stretch;flex-direction:column}.uqb-result-head>div{display:grid;grid-template-columns:1fr 1fr}.uqb-result-list summary{grid-template-columns:25px minmax(0,1fr) 14px}.uqb-result-list summary small{grid-column:2}.uqb-result-list details>div{padding:2px 12px 12px}
  .question-editor-page{padding:10px 10px calc(24px + var(--safe-bottom))!important}
  .uqb-question-editor-header{align-items:flex-start;flex-direction:column;padding:12px}
  .uqb-question-editor-title h1{font-size:21px}
  .uqb-question-editor-title p{font-size:10.5px}
  .uqb-editor-head-save{width:100%;min-width:0}
  .uqb-editor-grid{grid-template-columns:1fr}
  .uqb-option-grid{grid-template-columns:1fr}
  .uqb-open-answer-grid{grid-template-columns:1fr}
  .uqb-answer-editor-title,.uqb-editor-section-title{align-items:flex-start;flex-direction:column;gap:3px}
  .uqb-math-chip.keyboard{width:100%;margin-left:0;justify-content:center}
  .uqb-math-target{width:100%;border-right:0;border-bottom:1px solid #e2e8f0;padding-bottom:5px}
  .uqb-source-row{grid-template-columns:1fr}.uqb-source-actions{padding-left:39px}.uqb-source-actions .btn{flex:1;justify-content:center}
  .uqb-editor-page-footer{display:grid!important;grid-template-columns:1fr!important}
  .uqb-editor-page-footer .btn{width:100%;justify-content:center}
}

/* v20.18.16 Question Bank performance: skip off-screen row layout/paint. */
.source-qb-core-row{
  content-visibility:auto;
  contain-intrinsic-size:auto 240px;
}
.source-qb-core-manage.is-refreshing .source-qb-core-list-head::after{
  content:"Yangilanmoqda…";
  margin-left:auto;
  padding:4px 8px;
  font-size:11px;
  font-weight:700;
  color:var(--muted,#64748b);
  background:#fff;
  border:1px solid var(--line,#dbe3ef);
  border-radius:4px;
}
.source-qb-core-manage.is-refreshing .source-qb-core-list{
  opacity:.92;
}

/* v20.18.16: catalog-first progressive row hydration. */
.source-qb-row-content-loading,.source-qb-row-content-error{
  min-height:54px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:12px;
  border:1px dashed var(--line,#dbe3ef);
  border-radius:4px;
  color:var(--muted,#64748b);
  font-size:12px;
  font-weight:650;
}
.source-qb-row-content-error{border-style:solid;}
.source-qb-core-row.content-loading [data-source-row-use]{opacity:.55;cursor:not-allowed;}

/* v20.18.16 stable question-row recovery */
.source-qb-core-stat>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.source-qb-core-stat>span>small{font-size:10px;font-weight:600;opacity:.68;white-space:nowrap}
.source-qb-row-content-error{display:flex;align-items:center;gap:10px;min-height:54px;padding:10px 12px;border:1px solid #f1c7c7;background:#fffafa}
.source-qb-row-content-error>span{flex:1;min-width:0}
.source-qb-row-content-error>button{border:1px solid #c9d5e6;background:#fff;color:#002050;padding:7px 10px;border-radius:3px;font:inherit;font-weight:700;cursor:pointer}

@media(max-width:760px){
  .uqb-rich-math-tools.global{top:58px;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding:6px}
  .uqb-rich-math-tools.global .uqb-math-target{position:sticky;left:0;z-index:1;background:#fff}
  .uqb-math-chip{flex:0 0 auto}
  .uqb-math-chip.keyboard{margin-left:0;position:sticky;right:0;background:#f7f9ff}
}

/* Teacher import workspace — self-contained user-side styling. */
.uqb-shell .source-import-panel{display:grid;gap:14px;min-width:0}
.uqb-shell .uqb-import-flow{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr) 20px minmax(0,1fr);align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:#fff}
.uqb-shell .uqb-import-flow>div{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:9px;min-width:0}.uqb-shell .uqb-import-flow>div>b{width:30px;height:30px;display:grid;place-items:center;border:1px solid #cdd9e8;border-radius:4px;background:#f7f9fc;color:#10244c;font-size:11px}.uqb-shell .uqb-import-flow span{min-width:0}.uqb-shell .uqb-import-flow strong,.uqb-shell .uqb-import-flow small{display:block}.uqb-shell .uqb-import-flow strong{color:#10244c;font-size:10.5px}.uqb-shell .uqb-import-flow small{margin-top:2px;color:#7a899d;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.uqb-shell .uqb-import-flow>i{color:#a6b2c1;font-size:9px;text-align:center}
.uqb-shell .source-import-card{overflow:visible;border:1px solid var(--line);border-radius:6px;background:#fff}.uqb-shell .source-import-head{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 14px;border-bottom:1px solid #e7ecf2}.uqb-shell .source-import-title{min-width:0;display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:10px}.uqb-shell .source-import-title>i{width:40px;height:40px;display:grid;place-items:center;border:1px solid #cbd9ea;border-radius:5px;background:#f7f9fc;color:#17324f;font-size:15px}.uqb-shell .source-import-title strong{display:block;color:var(--text);font-size:15px}.uqb-shell .source-import-title span{display:none}.uqb-shell .source-import-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.uqb-shell .source-import-file-button{position:relative}.uqb-shell .source-import-file-button input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.uqb-shell .source-import-file-button.disabled{opacity:.48;pointer-events:none}
.uqb-shell .source-import-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px;background:#fff}.uqb-shell .source-import-settings .wide{grid-column:span 2}.uqb-shell .source-import-settings label,.uqb-shell .source-import-settings .source-import-field{display:grid;gap:7px;min-width:0;color:#40566f;font-size:12px;font-weight:800}.uqb-shell .source-import-settings label>span,.uqb-shell .source-import-settings .source-import-field>span{font-size:12px}.uqb-shell .source-import-settings label>small{display:none}.uqb-shell .source-import-settings .input{height:54px;min-width:0;padding:0 14px;border-radius:5px;font-size:15px;font-weight:700;background:#fff;color:#10244c}.uqb-shell .source-import-settings .input:focus{border-color:#8ea7ec;box-shadow:0 0 0 3px rgba(18,95,255,.07);outline:0}
.uqb-shell .import-file-dropzone{margin:0 14px 14px;min-height:82px;border:1px dashed #b8c5d5;border-radius:5px;background:#fbfcfe;display:flex;align-items:center;gap:13px;padding:14px 16px;color:#002050;transition:border-color .15s ease,background .15s ease}.uqb-shell .import-file-dropzone>i{width:40px;height:40px;display:grid;place-items:center;border:1px solid #d6dfeb;border-radius:5px;background:#fff;color:#17324f;font-size:16px;flex:0 0 auto}.uqb-shell .import-file-dropzone span{display:flex;flex-direction:column;gap:3px;min-width:0}.uqb-shell .import-file-dropzone strong{font-size:14px}.uqb-shell .import-file-dropzone small{font-size:11px;color:#6d7d91}.uqb-shell .import-file-dropzone.dragging{border-style:solid;border-color:#f86000;background:#fff7f1}.uqb-shell .import-file-dropzone.busy{border-style:solid;border-color:#9cb0c9;background:#f7f9fc;pointer-events:none}.uqb-shell .import-file-dropzone.busy>i{color:#f86000}

.uqb-shell .import-topic-scope-picker{position:relative;min-width:0;color:var(--text);font-size:11px;font-weight:650}
.uqb-shell .import-topic-scope-picker>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;height:54px;padding:0 14px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--text);cursor:pointer;user-select:none;overflow:hidden}
.uqb-shell .import-topic-scope-picker>summary::-webkit-details-marker{display:none}.uqb-shell .import-topic-scope-picker>summary>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uqb-shell .import-topic-scope-picker>summary>i{flex:0 0 auto;font-size:9px;transition:transform .12s ease}.uqb-shell .import-topic-scope-picker[open]>summary>i{transform:rotate(180deg)}.uqb-shell .import-topic-scope-picker[data-disabled="true"]>summary{cursor:not-allowed;background:#f3f5f8;color:#8a98aa}
.uqb-shell .import-topic-scope-menu{position:absolute;z-index:120;top:calc(100% + 4px);left:0;width:max(100%,430px);max-width:min(560px,calc(100vw - 36px));max-height:min(520px,70vh);overflow:auto;border:1px solid #cbd6e3;border-radius:5px;background:#fff;padding:5px;box-shadow:0 14px 34px rgba(21,43,72,.12)}
.uqb-shell .import-topic-scope-choice{width:100%;min-height:34px;border:0;border-radius:3px;background:#fff;color:#183555;display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:6px;padding:6px 8px;text-align:left;font:inherit;font-size:10px;font-weight:650;cursor:pointer}.uqb-shell .import-topic-scope-choice:hover,.uqb-shell .import-topic-scope-choice.active{background:#eef4ff;color:var(--primary)}.uqb-shell .import-topic-scope-choice>i{width:16px;text-align:center;font-size:9px;color:#7890aa}.uqb-shell .import-topic-scope-choice.active>i{color:var(--primary)}.uqb-shell .import-topic-scope-choice.root{font-weight:780;border-bottom:1px solid #edf1f5;margin-bottom:3px}.uqb-shell .import-topic-scope-choice.leaf{padding-left:25px;font-weight:600}
.uqb-shell .import-topic-scope-group{border-top:1px solid #edf1f5}.uqb-shell .import-topic-scope-group:first-of-type{border-top:0}.uqb-shell .import-topic-scope-group>summary{min-height:34px;display:grid;grid-template-columns:18px minmax(0,1fr) auto 14px;align-items:center;gap:6px;padding:5px 7px;list-style:none;cursor:pointer;color:#17324f;font-size:10px;font-weight:760}.uqb-shell .import-topic-scope-group>summary::-webkit-details-marker{display:none}.uqb-shell .import-topic-scope-group>summary>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uqb-shell .import-topic-scope-group>summary>small{font-size:8px;color:#8493a6}.uqb-shell .import-topic-scope-group>summary>i:last-child{font-size:8px;color:#8290a2;transition:transform .12s ease}.uqb-shell .import-topic-scope-group[open]>summary>i:last-child{transform:rotate(180deg)}.uqb-shell .import-topic-scope-group>div{padding-left:9px;border-left:1px solid #e4eaf2;margin-left:14px}.uqb-shell .import-topic-scope-group.topic>summary{font-weight:700}

.uqb-shell .import-engine-center{overflow:hidden;border:1px solid var(--line);border-radius:6px;background:#fff;margin:0}.uqb-shell .import-engine-center-head{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 14px;border-bottom:1px solid #e5ebf2;background:#fff}.uqb-shell .import-engine-center-head h2{margin:0;color:var(--text);font-size:15px}.uqb-shell .import-engine-kicker{display:none}
.uqb-shell .import-engine-summary{--import-summary-cols:3;display:grid;grid-template-columns:repeat(var(--import-summary-cols),minmax(0,1fr));border-bottom:1px solid #e5ebf2;background:#fafbfd}.uqb-shell .import-engine-summary.import-engine-summary-five{--import-summary-cols:5}.uqb-shell .import-engine-summary>span{min-width:0;padding:12px 10px;border-right:1px solid #e5ebf2;display:grid;gap:2px}.uqb-shell .import-engine-summary>span:last-child{border-right:0}.uqb-shell .import-engine-summary b{color:var(--text);font-size:18px;line-height:1}.uqb-shell .import-engine-summary small{color:#6e7e92;font-size:10px}.uqb-shell .import-engine-summary>small{display:none}.uqb-shell .import-engine-summary>span.is-ready b{color:#126a4b}.uqb-shell .import-engine-summary>span.is-issue b{color:#b5472f}.uqb-shell .import-engine-summary>span.is-banked b{color:#0e6f9d}
.uqb-shell .import-engine-server-error{display:flex;align-items:flex-start;gap:9px;padding:10px 13px;border-bottom:1px solid #f2c7c7;background:#fff8f8;color:#a62f2f}.uqb-shell .import-engine-server-error strong,.uqb-shell .import-engine-server-error span{display:block}.uqb-shell .import-engine-server-error strong{font-size:11px}.uqb-shell .import-engine-server-error span{margin-top:2px;font-size:9px;line-height:1.45}

/* Unified import cards */
.uqb-shell .import-engine-groups{display:grid;gap:14px;padding:14px;background:#f6f8fb}
.uqb-shell .import-engine-group{--group-accent:#1769e0;overflow:hidden;border:1px solid #dbe4ee;border-radius:8px;background:#fff}
.uqb-shell .import-engine-group.issues{--group-accent:#b5472f}.uqb-shell .import-engine-group.clean{--group-accent:#14835e}.uqb-shell .import-engine-group.banked{--group-accent:#0e6f9d}
.uqb-shell .import-engine-group>header{min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid #e8edf3;background:#fff}
.uqb-shell .import-engine-group>header>div{display:flex;align-items:center;gap:9px;min-width:0}.uqb-shell .import-engine-group>header i{width:20px;text-align:center;color:var(--group-accent)}
.uqb-shell .import-engine-group>header strong{font-size:14px;color:#102f57}.uqb-shell .import-engine-group>header span{min-width:26px;height:26px;padding:0 8px;display:grid;place-items:center;border:1px solid #dbe4ee;border-radius:999px;background:#f8fafc;color:#405772;font-size:10px;font-weight:800}
.uqb-shell .import-engine-group>header>small{color:#74849a;font-size:10px}.uqb-shell .import-engine-group-body{display:grid;gap:10px;padding:12px;background:#fbfcfe}
.uqb-shell .import-engine-group-empty{min-height:70px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px dashed #dbe4ee;border-radius:7px;background:#fff;color:#8493a5;font-size:11px}.uqb-shell .import-engine-group-empty i{color:#a7b3c0}

.uqb-shell .import-engine-local-row{position:relative;display:grid;grid-template-columns:minmax(240px,.9fr) minmax(360px,1.25fr) 38px;grid-template-areas:"file fields remove" "state state state";gap:12px 16px;align-items:center;padding:14px;border:1px solid #dce5ef;border-radius:8px;background:#fff}
.uqb-shell .import-engine-local-row.has-error{border-color:#efb9b9;background:#fffdfd}.uqb-shell .import-engine-file-main{grid-area:file;min-width:0;display:grid;grid-template-columns:44px minmax(0,1fr);gap:11px;align-items:center}.uqb-shell .import-engine-file-icon{width:44px;height:44px;display:grid;place-items:center;border:1px solid #d7e1ec;border-radius:8px;background:#f7f9fc;color:#17324f;font-size:17px}
.uqb-shell .import-engine-file-main strong,.uqb-shell .import-engine-file-main span,.uqb-shell .import-engine-file-main small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uqb-shell .import-engine-file-main strong{color:#102f57;font-size:14px}.uqb-shell .import-engine-file-main span{margin-top:3px;color:#75869b;font-size:11px}.uqb-shell .import-engine-file-main small{margin-top:4px;color:#146b52;font-size:10px;font-weight:800}
.uqb-shell .import-engine-queue-fields{grid-area:fields;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}.uqb-shell .import-engine-local-row.is-book .import-engine-queue-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.uqb-shell .import-engine-queue-field{display:grid;gap:6px;min-width:0}.uqb-shell .import-engine-queue-field>span{color:#4d637d;font-size:11px;font-weight:800}.uqb-shell .import-engine-queue-field>.input{height:46px;min-width:0;padding:0 12px;border-radius:7px;font-size:13px;font-weight:700;background:#fff;color:#10244c}.uqb-shell .import-engine-queue-badge{min-height:46px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:0 12px;border:1px solid #dbe4ef;border-radius:7px;background:#f8fafc;color:#405773;font-size:11px}.uqb-shell .import-engine-queue-badge i,.uqb-shell .import-engine-queue-badge b{color:#146b52}.uqb-shell .import-engine-remove{grid-area:remove;justify-self:end;width:36px;height:36px}.uqb-shell .import-engine-local-state{grid-area:state;min-width:0}
.uqb-shell .import-engine-mini-track,.uqb-shell .import-engine-job-track{height:5px;overflow:hidden;border-radius:999px;background:#e9eef4}.uqb-shell .import-engine-mini-track span,.uqb-shell .import-engine-job-track span{display:block;height:100%;border-radius:999px;background:var(--primary);transition:width .25s ease}.uqb-shell .import-engine-local-state small{display:block;margin-top:6px;color:#65768d;font-size:10px;line-height:1.35;overflow-wrap:anywhere}.uqb-shell .import-engine-local-state small.error{color:#b42318;font-weight:700}.uqb-shell .import-engine-row-error{grid-column:1/-1;display:flex;align-items:flex-start;gap:8px;padding:9px 10px;border:1px solid #f0c9c9;border-radius:6px;background:#fff8f8;color:#a93333;font-size:10px}.uqb-shell .import-engine-row-error span{font-weight:760}.uqb-shell .import-engine-row-error small{margin-left:auto;color:#8a4545}

.uqb-shell .import-engine-job{--job-accent:#1769e0;padding:16px;border:1px solid #dde6ef;border-radius:8px;background:#fff}.uqb-shell .import-engine-job.review{--job-accent:#c77b18}.uqb-shell .import-engine-job.banked-card,.uqb-shell .import-engine-job.completed{--job-accent:#14835e}.uqb-shell .import-engine-job.failed,.uqb-shell .import-engine-job.cancelled{--job-accent:#b94343}.uqb-shell .import-engine-job.paused{--job-accent:#b87518}
.uqb-shell .import-engine-job-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.uqb-shell .import-engine-job-source{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:10px;min-width:0}.uqb-shell .import-engine-job-file-icon{width:42px;height:42px;display:grid;place-items:center;border:1px solid #dbe4ee;border-radius:8px;background:#f7f9fc;color:#173a68;font-size:16px}.uqb-shell .import-engine-job-source>div{min-width:0}.uqb-shell .import-engine-job-head strong,.uqb-shell .import-engine-job-head span{display:block}.uqb-shell .import-engine-job-head strong{color:#102f57;font-size:14px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.uqb-shell .import-engine-job-source>div>span{margin-top:3px;color:#718298;font-size:10.5px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.uqb-shell .import-engine-job-state{display:inline-flex!important;align-items:center;gap:6px;min-height:32px;padding:0 11px;border:1px solid #d9e3ee;border-radius:999px;background:#f8fafc;color:#556b83;font-size:10.5px!important;font-weight:800;white-space:nowrap}.uqb-shell .import-engine-job-state.active{border-color:#cadcf7;background:#f5f9ff;color:#245f9c}.uqb-shell .import-engine-job-state.ready{border-color:#b8d8c7;background:#f3fbf7;color:#126a4b}.uqb-shell .import-engine-job-state.issues{border-color:#e7bfb6;background:#fff7f4;color:#a53d28}.uqb-shell .import-engine-job-state.banked{border-color:#c8e0d4;background:#f4fbf7;color:#147554}.uqb-shell .import-engine-job-state.failed,.uqb-shell .import-engine-job-state.cancelled{border-color:#efc8c8;background:#fff8f8;color:#a73737}.uqb-shell .import-engine-job-state.paused{border-color:#ead8bc;background:#fff9f0;color:#8b5a17}
.uqb-shell .import-engine-job-progress{margin-top:12px}.uqb-shell .import-engine-job-progress>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px;color:#6b7d92;font-size:10px}.uqb-shell .import-engine-job-progress b{color:#17324f;font-size:11px}.uqb-shell .import-engine-job-track span{background:var(--job-accent)}
.uqb-shell .import-engine-job-meta{display:grid;grid-template-columns:repeat(5,minmax(90px,1fr));gap:8px;margin-top:12px}.uqb-shell .import-engine-job-meta span{min-width:0;padding:9px 10px;border:1px solid #e3e9f1;border-radius:7px;background:#fafbfd}.uqb-shell .import-engine-job-meta span.is-ready{border-color:#cde3d6;background:#f7fcf9}.uqb-shell .import-engine-job-meta span.is-issue{border-color:#efd0c8;background:#fff8f6}.uqb-shell .import-engine-job-meta span.is-banked{border-color:#cfe0ea;background:#f7fbfd}.uqb-shell .import-engine-job-meta b,.uqb-shell .import-engine-job-meta small{display:block}.uqb-shell .import-engine-job-meta b{color:#17324f;font-size:12px}.uqb-shell .import-engine-job-meta span.is-ready b{color:#126a4b}.uqb-shell .import-engine-job-meta span.is-issue b{color:#a53d28}.uqb-shell .import-engine-job-meta span.is-banked b{color:#0e6f9d}.uqb-shell .import-engine-job-meta small{margin-top:2px;color:#7a8a9d;font-size:9.5px}
.uqb-shell .import-engine-job-message{display:flex;align-items:flex-start;gap:8px;margin-top:11px;padding:9px 10px;border:1px solid #e5ebf2;border-radius:7px;background:#fafbfd;color:#5f7288;font-size:10.5px;line-height:1.45}.uqb-shell .import-engine-job-message i{margin-top:2px;color:#53708e}.uqb-shell .import-engine-job-message.error{border-color:#efc7c7;background:#fff8f8;color:#aa3636}.uqb-shell .import-engine-job-message.error i{color:#b42318}
.uqb-shell .import-engine-job-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:13px;padding-top:12px;border-top:1px solid #edf1f5;}.uqb-shell .import-engine-job-actions .btn{min-height:36px;border-radius:7px}.uqb-shell .import-engine-job.banked-card{border-color:#d9e8e1}.uqb-shell .import-engine-group.issues .import-engine-job{border-color:#ead0ca}.uqb-shell .import-engine-group.clean .import-engine-job{border-color:#d4e6dc}

@media(max-width:900px){.uqb-shell .import-engine-job-meta{grid-template-columns:repeat(3,minmax(90px,1fr))}.uqb-shell .import-engine-local-row{grid-template-columns:minmax(0,1fr) 38px;grid-template-areas:"file remove" "fields fields" "state state"}.uqb-shell .import-engine-queue-fields,.uqb-shell .import-engine-local-row.is-book .import-engine-queue-fields{grid-template-columns:1fr}}
@media(max-width:680px){.uqb-shell .import-engine-groups{padding:8px}.uqb-shell .import-engine-group>header{padding:9px 10px}.uqb-shell .import-engine-group-body{padding:8px}.uqb-shell .import-engine-job{padding:12px}.uqb-shell .import-engine-job-head{flex-direction:column}.uqb-shell .import-engine-job-state{align-self:flex-start}.uqb-shell .import-engine-job-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.uqb-shell .import-engine-job-actions{display:grid;grid-template-columns:1fr}.uqb-shell .import-engine-job-actions .btn{width:100%;justify-content:center}}

.uqb-shell .source-import-locked-note{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;border:1px solid var(--line);border-radius:5px;background:#f8fafc;color:#52657d;font-size:9px}.uqb-shell .source-import-locked-note>span{display:flex;align-items:center;gap:7px;min-width:0}.uqb-shell .source-import-locked-note>span i{color:var(--primary)}.uqb-shell .source-import-locked-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.uqb-shell .source-review-workspace{display:grid;gap:8px}.uqb-shell .source-stage-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border:1px solid var(--line);border-radius:5px;background:#fff}.uqb-shell .source-stage-stats{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#697b91;font-size:9px}.uqb-shell .source-stage-stats>strong{color:var(--text);font-size:11px}.uqb-shell .source-stage-stats b{color:var(--text)}.uqb-shell .source-stage-main-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.uqb-shell .source-review-all{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 9px;border:1px solid var(--line);border-radius:4px;background:#fff;color:#5f7188;font-size:9px;font-weight:700}.uqb-shell .source-review-all input{accent-color:#17865d}.uqb-shell .source-review-all.approved{border-color:#b5d9c8;background:#f2fbf6;color:#146b4d}.uqb-shell .source-stage-pager{display:flex;align-items:center;justify-content:center;gap:8px;padding:7px}.uqb-shell .source-stage-list{display:grid;gap:10px}.uqb-shell .source-stage-card{overflow:visible;border:1px solid #e2b85d;border-radius:6px;background:#fff}.uqb-shell .source-stage-card.success{border-color:#acd8c4}.uqb-shell .source-stage-head{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:9px 11px;border-bottom:1px solid #e9edf2;background:#fff}.uqb-shell .source-stage-head>strong{color:var(--text);font-size:9.5px}.uqb-shell .source-stage-preview{min-width:0;padding:10px}.uqb-shell .source-stage-question-preview{display:block;width:100%;height:auto;max-height:none;overflow:visible}.uqb-shell .source-stage-result-panel,.uqb-shell .source-stage-editor{min-width:0;border:1px solid var(--line);border-radius:5px;background:#fff;overflow:visible}.uqb-shell .source-stage-panel-title{display:flex;align-items:center;gap:6px;padding:8px 10px;border-bottom:1px solid var(--line);background:#f8fafc;color:#4f647c;font-size:9px;font-weight:800}.uqb-shell .source-stage-result-body{display:block;width:100%;min-width:0;min-height:0;height:auto;max-height:none;padding:14px 16px;overflow:visible}.uqb-shell .source-stage-result-body .uo-question-content{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;max-height:none!important;overflow:visible!important;white-space:normal!important;-webkit-line-clamp:unset!important;line-clamp:unset!important}.uqb-shell .source-stage-result-body .uo-question-text{display:inline;white-space:pre-wrap!important;overflow-wrap:anywhere!important;word-break:normal!important}.uqb-shell .source-stage-result-body .uo-question-math.inline{max-width:100%;white-space:normal}.uqb-shell .source-stage-editor{padding:10px}.uqb-shell .source-stage-fields,.uqb-shell .source-stage-fields-simple{display:grid;grid-template-columns:1fr 1fr;gap:9px}.uqb-shell .source-stage-fields label,.uqb-shell .source-stage-fields-simple label{display:grid;gap:4px;min-width:0;color:#6c7c91;font-size:8.5px;font-weight:700}.uqb-shell .source-stage-field-question,.uqb-shell .source-stage-field-options{grid-column:1/-1}.uqb-shell .source-stage-fields textarea,.uqb-shell .source-stage-fields-simple textarea{min-height:76px;resize:none;overflow:hidden}.uqb-shell .source-stage-field-options textarea{min-height:108px}.uqb-shell .source-review-action{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border-top:1px solid var(--line)}.uqb-shell .source-stage-figure-zone{display:grid;gap:8px;margin-top:9px;padding:0 12px 12px}.uqb-shell .source-stage-figure-previews{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px}.uqb-shell .source-stage-figure-previews figure{flex:0 1 720px;width:min(720px,100%);max-width:100%;margin:0;padding:9px;border:1px solid var(--line);border-radius:5px;background:#f8fafc}.uqb-shell .source-stage-figure-preview canvas{display:block;max-width:100%;width:100%;height:auto;margin:0 auto}.uqb-shell .source-stage-figure-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}

.uqb-shell .import-api-usage{margin-top:9px;border:1px solid #dde5ef;background:#fbfdff}.uqb-shell .import-api-usage>summary{list-style:none;display:grid;grid-template-columns:minmax(0,1fr) auto 14px;align-items:center;gap:10px;min-height:36px;padding:7px 10px;cursor:pointer;color:#17324f;font-size:9px}.uqb-shell .import-api-usage>summary::-webkit-details-marker{display:none}.uqb-shell .import-api-usage>summary>span{display:flex;align-items:center;gap:6px;font-weight:800}.uqb-shell .import-api-usage>summary>span i{color:var(--primary)}.uqb-shell .import-api-usage>summary>b{font-size:10px;color:var(--text)}.uqb-shell .import-api-usage>summary>small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6f8095}.uqb-shell .import-api-usage-body{border-top:1px solid #e5ebf2;padding:10px;background:#fff}.uqb-shell .import-api-totals{display:grid;grid-template-columns:repeat(7,minmax(92px,1fr));border:1px solid #e5ebf2}.uqb-shell .import-api-totals>span{min-width:0;padding:8px 9px;border-right:1px solid #e5ebf2}.uqb-shell .import-api-totals>span:last-child{border-right:0}.uqb-shell .import-api-totals small,.uqb-shell .import-api-totals b{display:block}.uqb-shell .import-api-totals small{color:#7c8da2;font-size:8px;text-transform:uppercase}.uqb-shell .import-api-totals b{margin-top:3px;color:#17324f;font-size:10px}.uqb-shell .import-api-section{margin-top:10px}.uqb-shell .import-api-section>strong{display:block;margin-bottom:5px;color:var(--text);font-size:9px}.uqb-shell .import-api-table-wrap{overflow-x:auto;border:1px solid #e5ebf2}.uqb-shell .import-api-table-wrap table{width:100%;min-width:690px;border-collapse:collapse;font-size:8.5px}.uqb-shell .import-api-table-wrap th,.uqb-shell .import-api-table-wrap td{padding:7px 8px;text-align:left;border-right:1px solid #edf1f6;border-bottom:1px solid #edf1f6;vertical-align:top;white-space:nowrap}.uqb-shell .import-api-table-wrap th{background:#f8fafc;color:#63748b;font-size:8px;text-transform:uppercase}.uqb-shell .import-api-table-wrap td{color:#2f4763}.uqb-shell .import-api-live-note,.uqb-shell .import-api-footnote{margin-top:8px;color:#63748b;font-size:8.5px;line-height:1.45}

.import-action-busy-overlay{position:fixed;inset:0;z-index:99990;background:rgba(0,32,80,.18);display:flex;align-items:center;justify-content:center;padding:24px}.import-action-busy-card{width:min(520px,calc(100vw - 32px));background:#fff;border:1px solid #c8d4e4;border-radius:6px;padding:24px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;box-shadow:0 18px 55px rgba(0,32,80,.16)}.import-action-busy-card>i{font-size:28px;color:#002050}.import-action-busy-card>strong{font-size:18px;color:#002050}.import-action-busy-card>span{font-size:13px;color:#51657f;line-height:1.45}.import-action-busy-card>small{font-size:12px;color:#6b7d94}.import-action-busy-track{width:100%;height:7px;background:#e8eef6;border-radius:3px;overflow:hidden;margin-top:4px}.import-action-busy-track>b{display:block;height:100%;background:var(--primary);transition:width .22s ease}

@media(max-width:1100px){
  .uqb-shell .source-import-settings{grid-template-columns:repeat(2,minmax(0,1fr))}
  .uqb-shell .import-engine-local-row{grid-template-columns:minmax(0,1fr) 38px;grid-template-areas:"file remove" "fields fields" "state state"}.uqb-shell .import-engine-queue-fields,.uqb-shell .import-engine-local-row.is-book .import-engine-queue-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .uqb-shell .uqb-import-flow{grid-template-columns:1fr;gap:6px}.uqb-shell .uqb-import-flow>i{display:none}.uqb-shell .source-import-head{align-items:stretch;flex-direction:column}.uqb-shell .source-import-actions{display:grid;grid-template-columns:1fr 1fr}.uqb-shell .source-import-actions .btn{justify-content:center}.uqb-shell .source-import-settings{grid-template-columns:1fr}.uqb-shell .source-import-settings .wide{grid-column:auto}.uqb-shell .import-topic-scope-menu{width:min(520px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:62vh}.uqb-shell .import-engine-center-head{flex-direction:column}.uqb-shell .import-engine-summary{grid-template-columns:repeat(var(--import-summary-cols),minmax(120px,1fr));overflow-x:auto}.uqb-shell .import-engine-group>header{align-items:flex-start;flex-wrap:wrap}.uqb-shell .import-engine-group>header .btn{width:100%;justify-content:center}.uqb-shell .import-engine-summary>small{justify-content:flex-start}.uqb-shell .import-engine-local-row{grid-template-columns:minmax(0,1fr) 38px;grid-template-areas:"file remove" "fields fields" "state state"}.uqb-shell .import-engine-queue-fields,.uqb-shell .import-engine-local-row.is-book .import-engine-queue-fields{grid-template-columns:1fr}.uqb-shell .import-engine-file-main{grid-template-columns:36px minmax(0,1fr)}.uqb-shell .import-engine-file-icon{width:36px;height:36px}.uqb-shell .source-import-locked-note,.uqb-shell .source-stage-toolbar{align-items:flex-start;flex-direction:column}.uqb-shell .source-stage-main-actions{width:100%;justify-content:flex-start}.uqb-shell .source-stage-preview{padding:8px}.uqb-shell .source-stage-fields,.uqb-shell .source-stage-fields-simple{grid-template-columns:1fr}.uqb-shell .source-stage-field-options,.uqb-shell .source-stage-field-question{grid-column:auto}.uqb-shell .import-api-totals{grid-template-columns:repeat(2,minmax(92px,1fr))}
}

/* Admin import: clean PDF/DOCX flow. */
.source-admin-question-bank .import-file-dropzone{margin:0 14px 14px;min-height:82px;border:1px dashed #b8c5d5;border-radius:5px;background:#fbfcfe;display:flex;align-items:center;gap:13px;padding:14px 16px;color:#002050;transition:border-color .15s ease,background .15s ease}
.source-admin-question-bank .import-file-dropzone>i{width:40px;height:40px;display:grid;place-items:center;border:1px solid #d6dfeb;border-radius:5px;background:#fff;color:#002050;font-size:16px;flex:0 0 auto}
.source-admin-question-bank .import-file-dropzone>span{display:flex;min-width:0;flex-direction:column;gap:3px}
.source-admin-question-bank .import-file-dropzone strong{font-size:14px;line-height:1.35;color:#002050}
.source-admin-question-bank .import-file-dropzone small{font-size:11px;line-height:1.4;color:#6d7d91}
.source-admin-question-bank .import-file-dropzone.dragging{border-style:solid;border-color:#f86000;background:#fff7f1}
.source-admin-question-bank .source-import-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.source-admin-question-bank .source-import-actions>.btn,.source-admin-question-bank .source-import-actions>label.btn{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.source-admin-question-bank .badge.multipart,.uqb-shell .badge.multipart{border-color:#cbd7e7;background:#f7f9fc;color:#29496f}
@media(max-width:900px){.source-admin-question-bank .source-import-actions{justify-content:flex-start}.source-admin-question-bank .import-file-dropzone{margin:0 12px 12px;align-items:flex-start}}


.source-admin-question-bank .source-stage-multipart,.uqb-shell .source-stage-multipart{margin:0 10px 10px;border:1px solid #dce5ef;background:#fbfcfe;border-radius:5px;overflow:hidden}
.source-admin-question-bank .source-stage-multipart-head,.uqb-shell .source-stage-multipart-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-bottom:1px solid #e5ebf2;color:#17324f}
.source-admin-question-bank .source-stage-multipart-head strong,.uqb-shell .source-stage-multipart-head strong{font-size:10px}.source-admin-question-bank .source-stage-multipart-head i,.uqb-shell .source-stage-multipart-head i{margin-right:5px;color:#f86000}.source-admin-question-bank .source-stage-multipart-head span,.uqb-shell .source-stage-multipart-head span{font-size:8.5px;color:#74859a}
.source-admin-question-bank .source-stage-multipart-row,.uqb-shell .source-stage-multipart-row{padding:8px 10px;border-top:1px solid #edf1f5}.source-admin-question-bank .source-stage-multipart-row:first-of-type,.uqb-shell .source-stage-multipart-row:first-of-type{border-top:0}
.source-admin-question-bank .source-stage-multipart-copy,.uqb-shell .source-stage-multipart-copy{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:8px;align-items:start}.source-admin-question-bank .source-stage-multipart-copy b,.uqb-shell .source-stage-multipart-copy b{color:#002050;font-size:10px}.source-admin-question-bank .source-stage-multipart-copy span,.uqb-shell .source-stage-multipart-copy span{color:#334b68;font-size:10px;line-height:1.45}.source-admin-question-bank .source-stage-multipart-copy small,.uqb-shell .source-stage-multipart-copy small{color:#7a899b;font-size:8.5px;white-space:nowrap}
.source-admin-question-bank .source-stage-multipart-editor,.uqb-shell .source-stage-multipart-editor{grid-column:1/-1;display:grid;gap:7px;padding-top:3px}.source-admin-question-bank .source-stage-multipart-editor-title,.uqb-shell .source-stage-multipart-editor-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-top:1px solid #e6ebf2}.source-admin-question-bank .source-stage-multipart-editor-title strong,.uqb-shell .source-stage-multipart-editor-title strong{font-size:9.5px;color:#17324f}.source-admin-question-bank .source-stage-multipart-editor-title small,.uqb-shell .source-stage-multipart-editor-title small{font-size:9.5px;color:#7a899b}
.source-admin-question-bank .source-stage-multipart-edit-row,.uqb-shell .source-stage-multipart-edit-row{display:grid;grid-template-columns:70px minmax(220px,1fr) 115px 80px;gap:7px;align-items:start}.source-admin-question-bank .source-stage-multipart-edit-row .input,.uqb-shell .source-stage-multipart-edit-row .input{height:36px}.source-admin-question-bank .source-stage-multipart-edit-row textarea,.uqb-shell .source-stage-multipart-edit-row textarea{min-height:60px;resize:vertical}
@media(max-width:760px){.source-admin-question-bank .source-stage-multipart-copy,.uqb-shell .source-stage-multipart-copy{grid-template-columns:30px 1fr}.source-admin-question-bank .source-stage-multipart-copy small,.uqb-shell .source-stage-multipart-copy small{grid-column:2;white-space:normal}.source-admin-question-bank .source-stage-multipart-edit-row,.uqb-shell .source-stage-multipart-edit-row{grid-template-columns:64px 1fr}.source-admin-question-bank .source-stage-multipart-edit-row select,.source-admin-question-bank .source-stage-multipart-edit-row input[type=number],.uqb-shell .source-stage-multipart-edit-row select,.uqb-shell .source-stage-multipart-edit-row input[type=number]{grid-column:auto}}


.uqb-shell .import-local-zero{margin-top:9px;display:flex;align-items:center;gap:7px;min-height:32px;padding:0 10px;border:1px solid #e2e8f0;border-radius:4px;background:#fafbfd;color:#66798f;font-size:9.5px}.uqb-shell .import-local-zero i{color:#285b92}.uqb-shell .import-local-zero span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uqb-shell .import-local-zero b{margin-left:auto;color:#167255;font-size:9.5px;white-space:nowrap}

/* v20.39.0 — admin import queue: one canonical,compact layout. */
.uqb-admin-shell{display:grid;gap:12px;min-width:0}
.uqb-admin-shell .unified-import-panel{margin:0}
.uqb-admin-shell .import-engine-groups{padding:8px;gap:8px;background:#f7f9fc}
.uqb-admin-shell .import-engine-group{border-radius:4px}
.uqb-admin-shell .import-engine-group>header{min-height:40px;padding:6px 10px}
.uqb-admin-shell .import-engine-group>header span{border-radius:4px}
.uqb-admin-shell .import-engine-group-body{padding:8px;gap:7px;background:#fff}
.uqb-admin-shell .import-engine-job{position:relative;padding:9px 10px 8px;border-radius:4px;border-left:3px solid var(--job-accent);box-shadow:none}
.uqb-admin-shell .import-engine-job-head{gap:10px;align-items:center}
.uqb-admin-shell .import-engine-job-file-icon{width:30px;height:30px;border-radius:4px;font-size:13px}
.uqb-admin-shell .import-engine-job-source{grid-template-columns:30px minmax(0,1fr);gap:8px}
.uqb-admin-shell .import-engine-job-source>div{display:grid;gap:1px}
.uqb-admin-shell .import-engine-job-head strong{font-size:12px;line-height:1.25}
.uqb-admin-shell .import-engine-job-source>div>span{margin-top:0;font-size:9px;line-height:1.3}
.uqb-admin-shell .import-engine-job-state{min-height:24px;padding:0 7px;border-radius:4px;font-size:8.8px!important;gap:5px}
.uqb-admin-shell .import-engine-job-progress{margin-top:7px}
.uqb-admin-shell .import-engine-job-progress>div:first-child{margin-bottom:4px;font-size:8.8px}
.uqb-admin-shell .import-engine-job-progress b{font-size:10px}
.uqb-admin-shell .import-engine-job-track{height:4px;border-radius:999px;overflow:hidden}
.uqb-admin-shell .import-engine-job-meta{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.uqb-admin-shell .import-engine-job-meta span{min-width:0;padding:4px 6px;border-radius:4px;background:#fff}
.uqb-admin-shell .import-engine-job-meta b{font-size:10.5px;line-height:1.1}
.uqb-admin-shell .import-engine-job-meta small{margin-top:1px;font-size:7.8px;line-height:1.1}
.uqb-admin-shell .import-engine-job-message{margin-top:7px;padding:6px 7px;border-radius:4px;font-size:9px;line-height:1.3;gap:6px}
.uqb-admin-shell .import-engine-job-message i{margin-top:1px}
.uqb-admin-shell .import-local-zero{min-height:26px;border-radius:4px;background:#fbfcfe;font-size:8.8px;padding:0 8px;margin-top:7px}
.uqb-admin-shell .import-api-usage{border-radius:4px;overflow:hidden;margin-top:7px}
.uqb-admin-shell .import-engine-job-actions{margin-top:7px;padding-top:7px;gap:5px;border-top:1px dashed #e4eaf2}
.uqb-admin-shell .import-engine-job-actions .btn{min-height:28px;border-radius:4px;padding-inline:8px;font-size:9px}
.uqb-admin-shell .import-engine-job-actions .btn i{font-size:9px}
.uqb-admin-shell .import-engine-group-body{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
@media(max-width:680px){
  .uqb-admin-shell .import-engine-job{padding:8px}
  .uqb-admin-shell .import-engine-job-head{align-items:flex-start;flex-direction:column}
  .uqb-admin-shell .import-engine-job-state{align-self:flex-start}
  .uqb-admin-shell .import-engine-job-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .uqb-admin-shell .import-engine-job-actions .btn{width:100%;justify-content:center}
}


/* v20.63.0 — import command center + fixed review drawer. */
.uqb-admin-shell .import-engine-center-head{position:sticky;top:0;z-index:4}.uqb-admin-shell .import-engine-center-head>div>small{display:block;margin-top:3px;color:#74869a;font-size:9.5px}
.uqb-shell .import-queue-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 180px;gap:9px;padding:10px 12px 7px;background:#fff}
.uqb-shell .import-queue-search{position:relative;display:block}.uqb-shell .import-queue-search>i{position:absolute;left:11px;top:50%;transform:translateY(-50%);z-index:1;color:#8391a3;font-size:10px}.uqb-shell .import-queue-search .input{height:38px;padding-left:32px;background:#fff}
.uqb-shell .import-queue-sort{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px}.uqb-shell .import-queue-sort>span{font-size:9px;color:#748499;font-weight:750}.uqb-shell .import-queue-sort .input{height:38px;background:#fff}
.uqb-shell .import-queue-filters{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:0 12px 10px;border-bottom:1px solid #e5ebf2;background:#fff}
.uqb-shell .import-overview-note{display:flex;align-items:flex-start;gap:9px;padding:9px 12px;border-bottom:1px solid #e5ebf2;background:#fbfcfe;color:#566a80;font-size:9.5px;line-height:1.45}.uqb-shell .import-overview-note>i{margin-top:2px;color:#176cff}.uqb-shell .import-overview-note b{color:#17324f}
.uqb-shell .import-queue-filter{min-height:32px;display:inline-flex;align-items:center;gap:6px;padding:0 9px;border:1px solid #d9e3ed;border-radius:4px;background:#fff;color:#52677f;font:inherit;font-size:9.5px;font-weight:800;cursor:pointer}.uqb-shell .import-queue-filter b{min-width:19px;height:19px;padding:0 4px;display:grid;place-items:center;border-radius:3px;background:#edf2f7;font-size:8.5px}.uqb-shell .import-queue-filter.active,.uqb-shell .import-queue-filter[data-import-queue-view="overview"].active{border-color:#8fb2e4;background:#f1f6ff;color:#0c5dc7}.uqb-shell .import-queue-filter[data-import-queue-view="issues"].active{border-color:#e3afa3;background:#fff5f2;color:#a53d28}.uqb-shell .import-queue-filter[data-import-queue-view="clean"].active{border-color:#afd2bf;background:#f0faf5;color:#126a4b}.uqb-shell .import-queue-filter[data-import-queue-view="banked"].active{border-color:#b8d5e4;background:#f3f9fc;color:#0e6f9d}
.uqb-shell .import-engine-group[hidden]{display:none!important}.uqb-shell .import-engine-groups{padding-top:9px}.uqb-shell .import-engine-group-body{grid-template-columns:repeat(auto-fit,minmax(360px,1fr));align-items:start}.uqb-shell .import-engine-job{min-width:0}.uqb-shell .import-engine-job-actions{justify-content:flex-start}.uqb-shell .import-engine-job-actions .btn{flex:0 0 auto}
.source-review-backdrop{position:fixed;inset:0;z-index:160;background:rgba(9,25,48,.34)}
.uqb-shell .source-review-workspace.source-review-drawer{position:fixed;z-index:161;top:18px;right:18px;bottom:18px;width:min(1180px,calc(100vw - 56px));margin:0;display:grid;grid-template-rows:auto auto auto minmax(0,1fr);overflow:hidden;border:1px solid #c9d5e3;border-radius:8px;background:#fff;box-shadow:0 24px 70px rgba(15,34,61,.24)}
.uqb-shell .source-review-drawer-head{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 14px;border-bottom:1px solid #e2e9f1;background:#fbfcfe}.uqb-shell .source-review-drawer-head>div:first-child{min-width:0}.uqb-shell .source-review-kicker{display:block;color:#176cff;font-size:8.5px;font-weight:900;letter-spacing:.1em}.uqb-shell .source-review-drawer-head strong,.uqb-shell .source-review-drawer-head small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.uqb-shell .source-review-drawer-head strong{margin-top:2px;color:#102f57;font-size:13px}.uqb-shell .source-review-drawer-head small{margin-top:2px;color:#728399;font-size:9px}.uqb-shell .source-review-drawer>.source-stage-toolbar{position:sticky;top:0;z-index:2;margin:0;border-width:0 0 1px;border-radius:0;background:#fff}.uqb-shell .source-review-drawer>.source-stage-pager{margin:0;padding:7px 12px;border-bottom:1px solid #edf1f5;background:#fff}.uqb-shell .source-review-drawer>.source-stage-list{min-height:0;overflow:auto;padding:10px 12px 24px;background:#f7f9fc;align-content:start;grid-auto-rows:max-content}.uqb-shell .source-review-drawer .source-stage-card{height:auto!important;min-height:max-content;max-height:none!important}.uqb-shell .source-review-drawer .source-stage-preview,.uqb-shell .source-review-drawer .source-stage-question-preview,.uqb-shell .source-review-drawer .source-stage-result-body{height:auto!important;max-height:none!important;overflow:visible!important}
@media(max-width:900px){.uqb-shell .import-engine-group-body{grid-template-columns:1fr}.uqb-shell .source-review-workspace.source-review-drawer{inset:8px;width:auto}.uqb-shell .import-queue-toolbar{grid-template-columns:1fr}.uqb-shell .import-queue-sort{grid-template-columns:80px minmax(0,1fr)}}
@media(max-width:680px){.source-review-backdrop{background:rgba(9,25,48,.48)}.uqb-shell .source-review-workspace.source-review-drawer{inset:0;width:100%;border:0;border-radius:0}.uqb-shell .source-review-drawer-head{padding:10px}.uqb-shell .source-review-drawer-head .danger-text{display:none}.uqb-shell .import-queue-filters{overflow-x:auto;flex-wrap:nowrap}.uqb-shell .import-queue-filter{flex:0 0 auto}}

/* DOCX media picker is a true portal modal, never nested behind import review. */
.uo-docx-media-modal-open{overflow:hidden}
.uo-docx-media-modal-backdrop{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:20px;background:rgba(7,20,40,.58)}
.uo-docx-media-modal{width:min(1120px,calc(100vw - 32px));max-height:min(90dvh,900px);display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden;border:1px solid #cbd7e5;border-radius:10px;background:#fff;box-shadow:0 28px 80px rgba(7,20,40,.34)}
.uo-docx-media-modal>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #e3e9f0;background:#fff}
.uo-docx-media-modal>header strong,.uo-docx-media-modal>header small{display:block}.uo-docx-media-modal>header strong{color:#102f57;font-size:13px}.uo-docx-media-modal>header small{margin-top:3px;color:#718096;font-size:9px}
.uo-docx-media-modal .uo-docx-media-status{padding:10px 14px}.uo-docx-media-modal .uo-docx-media-grid{max-height:none;min-height:0;overflow:auto;padding:12px;background:#f7f9fc}
@media(max-width:700px){.uo-docx-media-modal-backdrop{padding:0}.uo-docx-media-modal{width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.uo-docx-media-modal .uo-docx-media-grid{grid-template-columns:1fr 1fr}}
@media(max-width:460px){.uo-docx-media-modal .uo-docx-media-grid{grid-template-columns:1fr}}

/* v20.89.0 — import review uses visual text/math editing; raw LaTeX stays optional. */
.uqb-shell .source-stage-rich-shell{display:grid;gap:7px;min-width:0}
.uqb-shell .source-stage-rich-shell>.uqb-rich-math-tools.global{margin:0;border-color:#d8e2ee;background:#f8fbff}
.uqb-shell .source-stage-rich-composer{min-height:110px;max-height:360px;padding:12px 13px!important;border:1px solid #cfdbe8!important;border-radius:6px!important;background:#fff!important;font-size:14px;line-height:1.65}
.uqb-shell .source-stage-rich-composer:focus{border-color:#7e9ff0!important;box-shadow:0 0 0 3px rgba(23,105,255,.07)!important}
.uqb-shell .source-stage-raw-editor{border:1px solid #e1e8f0;border-radius:5px;background:#fbfcfe;overflow:hidden}
.uqb-shell .source-stage-raw-editor>summary{display:flex;align-items:center;gap:7px;min-height:34px;padding:0 10px;color:#65768b;font-size:9px;font-weight:800;cursor:pointer;list-style:none}
.uqb-shell .source-stage-raw-editor>summary::-webkit-details-marker{display:none}
.uqb-shell .source-stage-raw-editor>summary i{color:#8292a6}
.uqb-shell .source-stage-raw-editor[open]>summary{border-bottom:1px solid #e4eaf1;background:#fff}
.uqb-shell .source-stage-raw-editor textarea{display:block;width:100%;min-height:88px!important;margin:0;border:0!important;border-radius:0!important;background:#fff!important;font:500 10px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace!important;resize:vertical!important;overflow:auto!important}
@media(max-width:720px){.uqb-shell .source-stage-rich-composer{min-height:96px;font-size:13px}.uqb-shell .source-stage-rich-shell>.uqb-rich-math-tools.global{align-items:stretch}}

/* v20.94.0 — import review is one universal live view + editor */
.uqb-shell .source-stage-universal{display:grid;gap:12px;padding:12px;background:#fff}
.uqb-shell .source-stage-universal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #e7edf4}
.uqb-shell .source-stage-universal-head>div{min-width:0}
.uqb-shell .source-stage-universal-head strong{display:block;color:#102f57;font-size:13px}
.uqb-shell .source-stage-universal-head small{display:block;margin-top:3px;color:#75869a;font-size:9.5px;line-height:1.45}
.uqb-shell .source-stage-universal-head>span{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:0 9px;border:1px solid #c9e1d5;border-radius:5px;background:#f3faf6;color:#15704f;font-size:9px;font-weight:800;white-space:nowrap}
.uqb-shell .source-stage-universal-question{display:grid;gap:7px}
.uqb-shell .source-stage-rich-composer.universal-question{min-height:112px;max-height:none;padding:14px 15px!important;font-size:15px;line-height:1.72}
.uqb-shell .source-stage-universal-options{display:grid;gap:8px;padding-top:2px}
.uqb-shell .source-stage-universal-options-title{display:flex;align-items:end;justify-content:space-between;gap:10px}
.uqb-shell .source-stage-universal-options-title strong{color:#17365f;font-size:11px}
.uqb-shell .source-stage-universal-options-title small{color:#8391a3;font-size:8.5px}
.uqb-shell .source-stage-rich-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.uqb-shell .source-stage-rich-option{display:grid;grid-template-columns:30px minmax(0,1fr) 34px;align-items:center;gap:8px;min-width:0;padding:7px;border:1px solid #d8e2ed;border-radius:7px;background:#fbfcfe}
.uqb-shell .source-stage-rich-option:focus-within{border-color:#8daaf1;background:#fff;box-shadow:0 0 0 2px rgba(23,105,255,.06)}
.uqb-shell .source-stage-rich-option-letter{width:30px;height:30px;display:grid;place-items:center;border:1px solid #ccd8e6;border-radius:6px;background:#fff;color:#173a68;font-size:10px;font-weight:900}
.uqb-shell .source-stage-rich-composer.option{min-height:48px;max-height:180px;padding:9px 10px!important;border-color:#dbe4ee!important;background:#fff!important;font-size:14px;line-height:1.55}
.uqb-shell .source-stage-option-formula{width:34px;height:34px;display:grid;place-items:center;border:1px solid #cbd9e9;border-radius:6px;background:#fff;color:#1767e8;cursor:pointer}
.uqb-shell .source-stage-option-formula:hover{border-color:#8eaff0;background:#f2f7ff}
.uqb-shell .source-stage-universal>.source-stage-question-preview{margin:0;border-color:#dde5ee;background:#fbfcfe}
.uqb-shell .source-stage-universal>.source-stage-question-preview .source-stage-result-body:empty{display:none}
.uqb-shell .source-stage-universal .source-stage-multipart{margin:0}
.uqb-shell .source-stage-universal .source-stage-multipart-editor{padding-top:0}
@media(max-width:820px){
  .uqb-shell .source-stage-rich-option-grid{grid-template-columns:1fr}
  .uqb-shell .source-stage-universal-head{align-items:flex-start;flex-direction:column}
  .uqb-shell .source-stage-universal-options-title{align-items:flex-start;flex-direction:column}
}

/* v20.94.0 — empty imported question recovery actions */
.uqb-shell .source-stage-empty-warning{align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:12px 14px}
.uqb-shell .source-stage-empty-warning>span{min-width:260px;flex:1 1 520px;line-height:1.45}
.uqb-shell .source-stage-empty-warning>span b{color:#7b4f00}
.uqb-shell .source-stage-empty-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.uqb-shell .source-stage-empty-actions .btn{min-height:36px}
.uqb-shell .source-stage-rich-composer.universal-question[data-rich-value=""]::before{content:attr(data-placeholder);color:#9aa8b8;font-size:13px;font-weight:600;pointer-events:none}
.uqb-shell .source-stage-empty-badge.success{border-color:#b8dccb;background:#f1faf5;color:#16714f}
@media(max-width:720px){.uqb-shell .source-stage-empty-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.uqb-shell .source-stage-empty-actions .btn{width:100%}}


/* v21.0.7 — compact 3-stage canonical topic cascade in Test tuzuvchi */
.uqb-shell .builder-topic-cascade{display:grid;gap:9px;min-width:0;padding:10px;border:1px solid #d4deea;border-radius:7px;background:#fbfcfe}
.uqb-shell .builder-topic-cascade-grid{display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr) 18px minmax(0,1fr);align-items:end;gap:7px}
.uqb-shell .builder-topic-step{display:grid;gap:5px;min-width:0}
.uqb-shell .builder-topic-step-label{display:flex;align-items:center;gap:6px;color:#5f7188;font-size:9.5px;font-weight:800}
.uqb-shell .builder-topic-step-label b{width:20px;height:20px;display:grid;place-items:center;border:1px solid #c7d4e3;border-radius:50%;background:#fff;color:#65788f;font-size:9px}
.uqb-shell .builder-topic-step-label em{font-style:normal}
.uqb-shell .builder-topic-step.active .builder-topic-step-label b{border-color:#176cff;background:#176cff;color:#fff}
.uqb-shell .builder-topic-step.done .builder-topic-step-label b{border-color:#9bc8b5;background:#edf8f3;color:#16805c}
.uqb-shell .builder-topic-step.disabled{opacity:.62}
.uqb-shell .builder-topic-step select.input{height:44px;padding:0 34px 0 11px;border-radius:6px;background:#fff;font-size:11px;font-weight:700;color:#102b52}
.uqb-shell .builder-topic-step select.input:disabled{background:#f3f6f9;color:#98a4b2;cursor:not-allowed}
.uqb-shell .builder-topic-cascade-arrow{align-self:center;margin-top:18px;color:#9baaba;font-size:9px;text-align:center}
.uqb-shell .builder-topic-cascade-summary{display:flex;align-items:center;gap:8px;min-width:0;padding:8px 9px;border-top:1px solid #e4eaf2}
.uqb-shell .builder-topic-cascade-summary>span{min-width:0;display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:7px;align-items:center;flex:1}
.uqb-shell .builder-topic-cascade-summary>span>i{grid-row:1/3;width:24px;height:24px;display:grid;place-items:center;border:1px solid #d2ddea;border-radius:6px;background:#fff;color:#176cff;font-size:10px}
.uqb-shell .builder-topic-cascade-summary small{color:#8a98aa;font-size:8px;font-weight:700}
.uqb-shell .builder-topic-cascade-summary strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#233f61;font-size:10px}
.uqb-shell .builder-topic-cascade-summary>b{flex:0 0 auto;padding:4px 7px;border:1px solid #d4e1ef;border-radius:999px;background:#fff;color:#536a84;font-size:8.5px;font-weight:800}
.uqb-shell .builder-topic-cascade-summary>button{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:0 8px;border:1px solid #d3deea;border-radius:5px;background:#fff;color:#49627f;font-size:9px;font-weight:800;cursor:pointer}
.uqb-shell .builder-topic-cascade-summary>button:hover{border-color:#a9c2e6;color:#176cff;background:#f7fbff}
.uqb-shell .builder-topic-cascade-empty{min-height:50px;display:flex;align-items:center;gap:8px;padding:0 12px;border:1px dashed #d4deea;border-radius:6px;background:#f6f8fb;color:#8190a2;font-size:10.5px;font-weight:750}
@media(max-width:880px){.uqb-shell .builder-topic-cascade-grid{grid-template-columns:1fr}.uqb-shell .builder-topic-cascade-arrow{display:none}.uqb-shell .builder-topic-cascade-summary{align-items:flex-start;flex-wrap:wrap}.uqb-shell .builder-topic-cascade-summary>span{flex-basis:100%}}

/* v21.0.6 — compact answer visibility and filtering */
.uqb-filterbar{grid-template-columns:minmax(220px,1.65fr) repeat(5,minmax(125px,.82fr)) auto}
.uqb-answer-mini{display:flex;align-items:center;gap:8px;margin:10px 0 0 32px;padding:6px 8px;border:1px solid #dfe7f0;border-radius:5px;background:#f9fbfd;width:max-content;max-width:calc(100% - 32px);font-size:9.5px}
.uqb-answer-mini span{display:inline-flex;align-items:center;gap:5px;color:#6a7b91;font-weight:760;white-space:nowrap}
.uqb-answer-mini b{max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#0f274d;font-size:10px}
.uqb-answer-mini.ready{border-color:#cce6d9;background:#f5fbf8}.uqb-answer-mini.ready span i{color:#16845c}
.uqb-answer-mini.missing{border-color:#ead8b8;background:#fffbf3}.uqb-answer-mini.missing span i,.uqb-answer-mini.missing b{color:#9c6819}
@media(max-width:1120px){.uqb-filterbar{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.uqb-answer-mini{margin-left:0;max-width:100%}.uqb-answer-mini b{max-width:220px}}

/* v21.0.9 compact test builder */
.uqb-builder-form-compact{grid-template-columns:repeat(12,minmax(0,1fr));gap:10px 12px;padding:14px 16px 16px;background:#fff}
.uqb-builder-form-compact .uqb-col-1{grid-column:span 1}
.uqb-builder-form-compact .uqb-col-2{grid-column:span 2}
.uqb-builder-form-compact .uqb-col-3{grid-column:span 3}
.uqb-builder-form-compact .input{height:42px}
.uqb-builder-form-compact .uqb-builder-submit{padding-top:2px}
.uqb-builder-advanced{grid-column:1/-1;border:1px solid #e2e9f1;border-radius:10px;background:#f8fafc;overflow:hidden}
.uqb-builder-advanced summary{list-style:none;display:grid;grid-template-columns:minmax(0,1fr) auto 14px;align-items:center;gap:10px;padding:12px 14px;cursor:pointer}
.uqb-builder-advanced summary::-webkit-details-marker{display:none}
.uqb-builder-advanced-copy{min-width:0;display:grid;gap:2px}
.uqb-builder-advanced-copy strong{color:#0f274f;font-size:12.5px;font-weight:820}
.uqb-builder-advanced-copy small{color:#708097;font-size:10.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.uqb-builder-advanced-badges{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.uqb-builder-advanced-badges span{display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border:1px solid #d9e3ee;border-radius:999px;background:#fff;color:#516884;font-size:9.5px;font-weight:800;white-space:nowrap}
.uqb-builder-advanced>summary>i{color:#8393a7;font-size:11px;transition:transform .16s ease}
.uqb-builder-advanced[open]>summary>i{transform:rotate(180deg)}
.uqb-builder-advanced-body{padding:0 14px 14px;border-top:1px solid #e2e9f1;display:grid;gap:12px;background:#fff}
.uqb-builder-advanced-body>label{padding-top:12px}
.uqb-builder-form-compact .uqb-difficulty-grid{gap:10px}
.uqb-builder-form-compact .uqb-difficulty-grid>label{padding:10px 11px;border:1px solid #e2e9f1;border-radius:8px;background:#fbfcfe}
.uqb-builder-form-compact .uqb-difficulty-grid .input{height:38px}
.uqb-builder-submit .btn{min-width:190px}
.uqb-shell .builder-topic-cascade{padding:12px;border-radius:8px;background:#fbfcfe}
.uqb-shell .builder-topic-cascade-summary{padding:10px 0 0;border-top:1px solid #e8eef5}
.uqb-shell .builder-topic-cascade-summary strong{font-size:10.5px}
.uqb-shell .builder-topic-cascade-summary>b{font-size:9px;padding:4px 8px}
@media(max-width:1100px){
  .uqb-builder-form-compact{grid-template-columns:repeat(6,minmax(0,1fr))}
  .uqb-builder-form-compact .uqb-col-3{grid-column:span 3}
  .uqb-builder-form-compact .uqb-col-2{grid-column:span 2}
  .uqb-builder-form-compact .uqb-col-1{grid-column:span 1}
}
@media(max-width:760px){
  .uqb-builder-form-compact{grid-template-columns:1fr;padding:13px}
  .uqb-builder-form-compact .uqb-col-1,.uqb-builder-form-compact .uqb-col-2,.uqb-builder-form-compact .uqb-col-3{grid-column:1/-1}
  .uqb-builder-advanced summary{grid-template-columns:1fr;align-items:flex-start}
  .uqb-builder-advanced-badges{justify-content:flex-start}
  .uqb-builder-submit .btn{width:100%}
}

/* v21.0.11 — compact all-subject picker, no category headers */
.uqb-builder-subject-field{display:grid;gap:6px;min-width:0}
.uqb-builder-field-label{color:#566982;font-size:10.5px;font-weight:780}
.uqb-builder-subject-picker{min-width:0;position:relative}
.uqb-builder-subject-picker>input{display:none}
.uqb-subject-popover{position:relative}
.uqb-subject-popover>summary{height:42px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 11px;border:1px solid #d8e2ed;border-radius:7px;background:#fff;color:#243e61;cursor:pointer;list-style:none;transition:border-color .12s ease,box-shadow .12s ease}
.uqb-subject-popover>summary::-webkit-details-marker{display:none}
.uqb-subject-popover[open]>summary{border-color:#8cafee;box-shadow:0 0 0 3px rgba(23,108,255,.08)}
.uqb-subject-current{min-width:0;display:flex;align-items:center;gap:8px}
.uqb-subject-current>i{width:24px;height:24px;display:grid;place-items:center;flex:0 0 24px;border:1px solid #e0e7ef;border-radius:5px;background:#f7f9fc;color:#176cff;font-size:10px}
.uqb-subject-current>b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;font-weight:800}
.uqb-subject-popover>summary>i{color:#8796aa;font-size:9px;transition:transform .12s ease}
.uqb-subject-popover[open]>summary>i{transform:rotate(180deg)}
.uqb-subject-menu{position:absolute;z-index:50;top:calc(100% + 6px);left:0;width:min(680px,calc(100vw - 150px));max-height:320px;overflow:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px;border:1px solid #d5e0ec;border-radius:9px;background:#fff;box-shadow:0 12px 30px rgba(16,37,68,.14)}
.uqb-subject-menu button{position:relative;min-width:0;height:38px;display:flex;align-items:center;gap:7px;padding:0 9px;border:1px solid #e1e7ef;border-radius:6px;background:#fff;color:#4d6079;font:inherit;font-size:9.8px;font-weight:760;cursor:pointer;text-align:left}
.uqb-subject-menu button>i:first-child{width:21px;height:21px;display:grid;place-items:center;flex:0 0 21px;border-radius:4px;background:#f5f7fa;color:#72849b;font-size:9px}
.uqb-subject-menu button>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.uqb-subject-menu button:hover{border-color:#aec5e6;background:#f7fbff;color:#173d6c}
.uqb-subject-menu button.active{border-color:#8eb4f1;background:#f1f6ff;color:#0e4fb8}
.uqb-subject-menu button.active>i:first-child{background:#fff;color:#176cff}
.uqb-subject-menu .uqb-subject-check{margin-left:auto;color:#16805c;font-size:8px}
@media(max-width:920px){.uqb-subject-menu{width:min(520px,calc(100vw - 110px));grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.uqb-subject-menu{position:fixed;left:12px;right:12px;top:18vh;width:auto;max-height:64vh;grid-template-columns:1fr}.uqb-subject-popover>summary{height:40px}}


/* v21.0.15 — hardened compact builder / subject popover. Loaded directly from index too. */
.uqb-builder-form-compact{align-items:end}
.uqb-builder-subject-field{position:relative;z-index:20}
.uqb-subject-popover{width:100%}
.uqb-subject-popover>summary{width:100%;min-width:0}
.uqb-subject-menu{z-index:1000}
.uqb-subject-menu button{appearance:none;-webkit-appearance:none}
.uqb-builder-advanced{position:relative;z-index:1}
.uqb-builder-advanced:not([open]) .uqb-builder-advanced-body{display:none}
@media(min-width:1101px){
  .uqb-builder-form-compact{grid-template-columns:minmax(190px,2.1fr) minmax(190px,2.1fr) minmax(150px,1.5fr) minmax(150px,1.5fr) 82px 92px}
  .uqb-builder-form-compact .uqb-col-3,.uqb-builder-form-compact .uqb-col-2,.uqb-builder-form-compact .uqb-col-1{grid-column:auto}
}


/* v21.0.17 — answer-aware builder results + PDF/Word exports */
.uqb-result-stats.answer-aware{grid-template-columns:repeat(6,minmax(0,1fr))}
.uqb-result-stats .answer-ready{background:#f2fbf6;color:#277252}.uqb-result-stats .answer-ready b{color:#14744a}
.uqb-result-stats .answer-missing{background:#fff9ee;color:#916018}.uqb-result-stats .answer-missing b{color:#9a6310}
.uqb-result-head>div:first-child{display:grid;gap:2px}.uqb-result-head>div:first-child small,.source-qb-builder-result-head>div:first-child small{color:#7d8ba0;font-size:9.5px;font-weight:650}
.uqb-builder-row-meta{display:flex!important;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.uqb-builder-row-meta>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.uqb-builder-answer-badge{display:inline-flex;align-items:center;gap:4px;min-height:23px;padding:0 7px;border:1px solid #d8e2ed;border-radius:5px;background:#f7f9fc;font-size:9px;font-weight:820;white-space:nowrap}
.uqb-builder-answer-badge.ready{border-color:#c7e6d5;background:#eff9f3;color:#14744a}.uqb-builder-answer-badge.missing{border-color:#ecd7ae;background:#fff8e9;color:#9a6310}
.uqb-builder-answer-line{display:flex;align-items:center;gap:8px;margin:10px 0 0;padding:8px 10px;border:1px solid #dfe7ef;border-radius:6px;font-size:10.5px;font-weight:680}
.uqb-builder-answer-line.ready{border-color:#c9e8d8;background:#f3faf6;color:#175f43}.uqb-builder-answer-line.missing{border-color:#edd8ad;background:#fff9ed;color:#8b5c13}
.uqb-warning.answer-warning{border-color:#e8c985;background:#fffaf0}
.uqb-result-head .fa-file-pdf{color:#b42318}.uqb-result-head .fa-file-word{color:#1767d5}
.source-qb-builder-summary{grid-template-columns:repeat(6,minmax(0,1fr))}
.source-qb-builder-list .uqb-builder-answer-line{margin:9px 10px 10px}
.source-qb-builder-result-head>div:first-child{display:grid;gap:2px}
@media(max-width:900px){.uqb-result-stats.answer-aware{grid-template-columns:repeat(3,minmax(0,1fr))}.uqb-builder-row-meta{align-items:flex-end;flex-direction:column;gap:4px}.source-qb-builder-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}


/* v21.0.19 — builder result metadata spacing + export-safe polish */
.uqb-builder-row-meta{display:flex!important;align-items:center;justify-content:flex-end;gap:6px!important;min-width:0;white-space:nowrap}
.uqb-builder-meta-chip{display:inline-flex;align-items:center;min-height:22px;padding:0 7px;border:1px solid #e0e7ef;border-radius:5px;background:#f8fafc;color:#687991;font-size:9px;font-weight:760;line-height:1;white-space:nowrap}
.uqb-builder-meta-chip.bank{background:#f7f9fc;color:#6b7b91}
.uqb-builder-meta-chip.difficulty{background:#fff;color:#728096}
.uqb-builder-answer-badge{position:relative;flex:0 0 auto;min-height:22px!important;padding:0 8px 0 18px!important;line-height:1!important}
.uqb-builder-answer-badge::before{content:"";position:absolute;left:7px;top:50%;width:6px;height:6px;border-radius:50%;transform:translateY(-50%);background:currentColor;opacity:.88}
@media(max-width:900px){.uqb-builder-row-meta{align-items:flex-end;flex-direction:row!important;flex-wrap:wrap;justify-content:flex-start;gap:5px!important}.uqb-result-list summary small{grid-column:2}.uqb-builder-meta-chip{max-width:100%;overflow:hidden;text-overflow:ellipsis}}

/* v21.0.25 — Universal question format engine */
.uqb-builder-format-badge{display:inline-flex;align-items:center;gap:4px;min-height:23px;padding:0 7px;border:1px solid #dbe4ef;border-radius:5px;background:#f8fafc;color:#5e718a;font-size:9px;font-weight:820;white-space:nowrap}
.uqb-builder-format-badge i{font-size:8px;color:#7890aa}
.uqb-builder-format-badge.converted{border-color:#bcd4ff;background:#f2f7ff;color:#1455b8}
.uqb-builder-format-badge.converted i{color:#176cff}
.uqb-builder-format-badge.locked{border-color:#edd5a6;background:#fff9ec;color:#8a5a00}
.uqb-builder-format-badge.locked i{color:#a56d00}
.uqb-format-lock-note{display:flex;align-items:flex-start;gap:7px;margin:0 0 10px;padding:8px 10px;border:1px solid #ecd6ad;border-radius:6px;background:#fff9ee;color:#7d5711;font-size:10px;line-height:1.45}
.uqb-format-lock-note i{margin-top:2px;color:#a56d00}
.uqb-warning.format-warning{border-color:#e6d2aa;background:#fffaf0;color:#76500b}
.source-qb-builder-form-universal .uqb-builder-format-badge{font-size:8px}
@media(max-width:760px){.uqb-builder-row-meta .uqb-builder-format-badge{max-width:135px;overflow:hidden;text-overflow:ellipsis}.uqb-format-lock-note{font-size:9.5px}}


/* v21.0.25 — builder meta is one readable line; never glue labels together */
.uqb-builder-row-meta{min-width:0;display:flex!important;align-items:center;justify-content:flex-end}
.uqb-builder-row-meta-text{display:block;max-width:430px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#667790;font-size:9.5px;font-weight:760;letter-spacing:.005em}
.uqb-builder-row-meta-text.answer-ready{color:#39765b}
.uqb-builder-row-meta-text.answer-missing{color:#8b6a2e}
@media(max-width:900px){.uqb-builder-row-meta-text{max-width:100%;white-space:normal;line-height:1.35}.uqb-builder-row-meta{justify-content:flex-start}}


/* v21.0.37 — real answer preview */
.uqb-builder-answer-line{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px!important;padding:9px 11px!important}
.uqb-answer-label{display:inline-flex;align-items:center;gap:6px;font-size:9.5px;font-weight:850;white-space:nowrap}
.uqb-answer-value{min-width:0;display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:#102f57;font-size:12px;font-weight:760}
.uqb-builder-answer-line.ready .uqb-answer-value{color:#174f3b}
.uqb-answer-letter{display:inline-grid;place-items:center;min-width:25px;height:25px;padding:0 7px;border:1px solid #b9ddce;border-radius:5px;background:#fff;color:#176b4d;font-weight:900}
.uqb-answer-text{overflow-wrap:anywhere}
.uqb-answer-value .uo-question-math{margin:0!important;font-size:1em!important}
.uqb-answer-empty{color:#8b6a2e;font-size:10.5px;font-weight:700}
@media(max-width:700px){.uqb-builder-answer-line{grid-template-columns:1fr}.uqb-answer-value{padding-left:0}}

/* v21.0.40 — canonical subject picker for import/admin; native subject select removed. */
.uqb-shell .source-import-subject-field{position:relative;z-index:40}
.uqb-shell .source-import-subject-field .uqb-builder-subject-picker{width:100%}
.uqb-shell .source-import-subject-field .uqb-subject-popover>summary{height:54px;padding:0 14px;border-radius:5px;border-color:#cbd8e8;color:#10244c}
.uqb-shell .source-import-subject-field .uqb-subject-current{gap:9px}
.uqb-shell .source-import-subject-field .uqb-subject-current>i{width:28px;height:28px;flex-basis:28px;border-radius:5px;font-size:11px}
.uqb-shell .source-import-subject-field .uqb-subject-current>b{font-size:15px;font-weight:700}
.uqb-shell .source-import-subject-field .uqb-subject-popover>summary>i{font-size:10px}
.uqb-shell .source-import-subject-field .uqb-subject-menu{top:calc(100% + 7px);width:min(720px,calc(100vw - 48px));max-height:360px;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:9px;border-radius:7px;box-shadow:0 16px 34px rgba(0,32,80,.16)}
.uqb-shell .source-import-subject-field .uqb-subject-menu button{height:42px;border-radius:5px;font-size:11px}
.uqb-shell .source-import-subject-field .uqb-subject-menu button>i:first-child{width:24px;height:24px;flex-basis:24px}
@media(max-width:920px){.uqb-shell .source-import-subject-field .uqb-subject-menu{grid-template-columns:repeat(2,minmax(0,1fr));width:min(560px,calc(100vw - 36px))}}
@media(max-width:620px){.uqb-shell .source-import-subject-field .uqb-subject-menu{position:fixed;left:12px;right:12px;top:16vh;width:auto;max-height:68vh;grid-template-columns:1fr}}

