.gqmqb-wrap,
.gqmqb-wrap * { box-sizing: border-box; }
.gqmqb-hero,
.gqmqb-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 22px;
  margin: 0 0 18px;
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.gqmqb-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
}
.gqmqb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #4f46e5;
  font-weight: 800;
}
.gqmqb-hero h2,
.gqmqb-card h3 { margin: 6px 0; }
.gqmqb-hero p,
.gqmqb-card p { margin: 0; color: #64748b; }
.gqmqb-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.gqmqb-stats div {
  min-width: 118px;
  padding: 14px 16px;
  border: 1px solid #e0e7ff;
  border-radius: 16px;
  background: rgba(255,255,255,.75);
}
.gqmqb-stats strong { display: block; font-size: 26px; color: #111827; }
.gqmqb-stats span { display: block; color: #64748b; font-size: 12px; }
.gqmqb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr);
  gap: 18px;
  align-items: start;
}
.gqmqb-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.gqmqb-card-head h3 { display: flex; align-items: center; gap: 8px; }
.gqmqb-filters,
.gqmqb-form,
.gqmqb-tool-form { display: grid; gap: 12px; }
.gqmqb-filters { grid-template-columns: repeat(5, minmax(130px, 1fr)) auto; align-items: end; }
.gqmqb-form label,
.gqmqb-filters label,
.gqmqb-tool-form label { display: grid; gap: 6px; color: #334155; font-weight: 700; }
.gqmqb-form label span,
.gqmqb-filters label span,
.gqmqb-tool-form label span { font-size: 12px; color: #64748b; }
.gqmqb-form input,
.gqmqb-form select,
.gqmqb-form textarea,
.gqmqb-filters input,
.gqmqb-filters select,
.gqmqb-tool-form input,
.gqmqb-tool-form select,
.gqmqb-tool-form textarea,
.gqmqb-bulkbar select {
  width: 100%;
  max-width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 9px 11px;
  background: #fff;
}
.gqmqb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gqmqb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 9px 14px;
  background: #fff;
  color: #1e293b;
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.25;
}
.gqmqb-btn:hover { background: #f8fafc; color: #111827; }
.gqmqb-btn-primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.gqmqb-btn-primary:hover { background: #1d4ed8; color: #fff; }
.gqmqb-bulkbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 14px;
}
.gqmqb-bulkbar select { width: auto; min-width: 180px; }
.gqmqb-check,
.gqmqb-correct,
.gqmqb-inline-check {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 0;
  white-space: nowrap;
}
.gqmqb-table-wrap { overflow-x: auto; }
.gqmqb-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.gqmqb-table th,
.gqmqb-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
  text-align: left;
}
.gqmqb-table th { color: #475569; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.gqmqb-col-check { width: 42px; text-align: center !important; }
.gqmqb-question-preview { color: #64748b; margin-top: 4px; }
.gqmqb-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.gqmqb-tags span {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}
.gqmqb-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gqmqb-row-actions a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 800; }
.gqmqb-danger { color: #dc2626 !important; }
.gqmqb-empty {
  text-align: center;
  padding: 34px 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  color: #64748b;
}
.gqmqb-empty .dashicons { font-size: 42px; width: 42px; height: 42px; color: #94a3b8; }
.gqmqb-answer-row {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) minmax(120px, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.gqmqb-choice-fields,
.gqmqb-text-fields {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px;
  background: #f8fafc;
}
.gqmqb-choice-fields h4,
.gqmqb-text-fields h4 { margin: 0 0 10px; }
.gqmqb-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 14px;
  font-weight: 800;
}
.gqmqb-notice.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.gqmqb-js-bulkbar { margin: 12px 0; }
.gqmqb-inline-check {
  padding: 8px;
  margin-right: 4px;
}
.gqmcd-question-item { align-items: center; }
.gqmcd-quizzes-table .gqmqb-col-check { width: 40px; }

@media (max-width: 980px) {
  .gqmqb-grid,
  .gqmqb-filters { grid-template-columns: 1fr; }
  .gqmqb-hero,
  .gqmqb-card-head { flex-direction: column; align-items: stretch; }
  .gqmqb-two,
  .gqmqb-answer-row { grid-template-columns: 1fr; }
  .gqmqb-bulkbar select { width: 100%; }
}

/* v0.2.0: professional full-width bank editor + RTL */
.gqmqb-wrap{max-width:min(1520px,96vw)}
.gqmqb-grid{display:block}.gqmqb-workspace{display:grid;gap:18px}.gqmqb-card{border-radius:22px;padding:clamp(18px,2vw,30px)}
.gqmqb-editor-card{background:linear-gradient(180deg,#fff,#fbfdff)}.gqmqb-editor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.gqmqb-editor-grid-main{align-items:end}.gqmqb-span-2{grid-column:span 2}.gqmqb-full{display:grid;gap:7px}.gqmqb-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gqmqb-form textarea[name="question_text"]{min-height:190px;font-size:16px;line-height:1.65}.gqmqb-form textarea[name="explanation"]{min-height:120px}.gqmqb-form input,.gqmqb-form select,.gqmqb-form textarea,.gqmqb-filters input,.gqmqb-filters select,.gqmqb-tool-form input,.gqmqb-tool-form select{min-height:46px;border-radius:14px}.gqmqb-form label span,.gqmqb-filters label span,.gqmqb-tool-form label span{font-size:12px;text-transform:uppercase;letter-spacing:.06em;font-weight:850}.gqmqb-subhead{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px}.gqmqb-subhead h4{margin:0;font-size:16px}.gqmqb-subhead small{color:#64748b}.gqmqb-answer-row{grid-template-columns:110px minmax(260px,1fr) minmax(200px,320px);gap:12px;padding:12px;border:1px solid #e2e8f0;border-radius:16px;background:#fff}.gqmqb-choice-fields,.gqmqb-text-fields,.gqmqb-truefalse-fields{border-radius:18px;padding:16px}.gqmqb-truefalse-fields{border:1px solid #e5e7eb;background:#f8fafc;display:none}.gqmqb-tf-options{display:flex;gap:12px;flex-wrap:wrap}.gqmqb-tf-options label{display:flex;align-items:center;gap:8px;padding:12px 14px;border:1px solid #cbd5e1;border-radius:14px;background:#fff;font-weight:850}.gqmqb-form[data-gqmqb-current-type="true_false"] .gqmqb-choice-fields{display:none!important}.gqmqb-form[data-gqmqb-current-type="true_false"] .gqmqb-truefalse-fields{display:block!important}.gqmqb-form[data-gqmqb-current-type="short_answer"] .gqmqb-choice-fields,.gqmqb-form[data-gqmqb-current-type="long_answer"] .gqmqb-choice-fields,.gqmqb-form[data-gqmqb-current-type="short_answer"] .gqmqb-truefalse-fields,.gqmqb-form[data-gqmqb-current-type="long_answer"] .gqmqb-truefalse-fields{display:none!important}.gqmqb-form[data-gqmqb-current-type="short_answer"] .gqmqb-text-fields,.gqmqb-form[data-gqmqb-current-type="long_answer"] .gqmqb-text-fields{display:block!important}.gqmqb-form-actions{display:flex;flex-wrap:wrap;gap:10px}.gqmqb-editor-dir-rtl{direction:rtl}.gqmqb-editor-dir-rtl input[type=text],.gqmqb-editor-dir-rtl input[type=search],.gqmqb-editor-dir-rtl textarea{direction:rtl;text-align:right}.gqmqb-editor-dir-ltr input[type=text],.gqmqb-editor-dir-ltr input[type=search],.gqmqb-editor-dir-ltr textarea{direction:ltr;text-align:left}.gqmcd-shell .gqmqb-card{box-shadow:0 14px 35px rgba(15,23,42,.06)}.gqmcd-shell .gqmqb-hero{border-radius:24px}.gqmqb-table th,.gqmqb-table td{text-align:start}.gqmqb-col-check{text-align:center!important}.gqmqb-filters{grid-template-columns:repeat(5,minmax(150px,1fr)) auto}.gqmqb-bulkbar{border-radius:18px}.gqmqb-bulkbar select{min-height:42px}
@media(max-width:1100px){.gqmqb-editor-grid,.gqmqb-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.gqmqb-span-2{grid-column:span 2}.gqmqb-answer-row{grid-template-columns:110px minmax(0,1fr)}}
@media(max-width:720px){.gqmqb-wrap{max-width:100%}.gqmqb-card{padding:16px}.gqmqb-editor-grid,.gqmqb-media-grid,.gqmqb-filters,.gqmqb-answer-row,.gqmqb-two{grid-template-columns:1fr}.gqmqb-span-2{grid-column:auto}.gqmqb-card-head,.gqmqb-subhead{flex-direction:column;align-items:stretch}.gqmqb-bulkbar select,.gqmqb-bulkbar .gqmqb-btn{width:100%}}

/* v0.2.2 import/export additions */
.gqmqb-head-actions,
.gqmqb-tool-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.gqmqb-tool-links {
  justify-content: flex-start;
  margin-top: 12px;
}
.gqmqb-tool-form input[type="file"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
}
.gqmqb-check-inline {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  min-height: 46px;
}
.gqmqb-check-inline input {
  width: auto !important;
}
[dir="rtl"] .gqmqb-head-actions,
.rtl .gqmqb-head-actions {
  justify-content: flex-start;
}
[dir="rtl"] .gqmqb-tool-links,
.rtl .gqmqb-tool-links {
  justify-content: flex-start;
}
@media (max-width: 760px) {
  .gqmqb-head-actions,
  .gqmqb-tool-links {
    justify-content: stretch;
  }
  .gqmqb-head-actions .gqmqb-btn,
  .gqmqb-tool-links .gqmqb-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}


/* GQM Question Bank UI Clean v0.2.3 */
.gqmqb-wrap{max-width:var(--gqm-container,1100px);margin-inline:auto;padding:clamp(12px,2vw,24px);color:var(--gqm-text,#111827);font-family:var(--gqm-font,inherit);box-sizing:border-box}.gqmqb-wrap *{box-sizing:border-box}
.gqmqb-hero,.gqmqb-card,.gqmqb-editor-card,.gqmqb-notice{border-radius:var(--gqm-radius,10px)!important;border:1px solid var(--gqm-border,#e5e7eb)!important;background:var(--gqm-surface,#fff)!important;box-shadow:var(--gqm-shadow,0 8px 24px rgba(15,23,42,.06))!important}.gqmqb-hero,.gqmqb-card{padding:clamp(14px,2vw,22px)!important}.gqmqb-hero{display:flex;gap:16px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap}.gqmqb-hero h2{font-size:clamp(22px,3vw,30px)!important;margin:.25em 0!important}.gqmqb-stats{display:flex;gap:10px;flex-wrap:wrap}.gqmqb-stats>div{border-radius:var(--gqm-radius-sm,6px)!important;padding:10px 12px!important;background:var(--gqm-bg,#f8fafc)!important;border:1px solid var(--gqm-border,#e5e7eb)}
.gqmqb-card-head{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap}.gqmqb-card-head h3{font-size:clamp(18px,2.4vw,22px)!important}.gqmqb-card-head .dashicons,.gqmqb-btn .dashicons,.gqmqb-row-actions .dashicons{font-size:16px!important;width:16px!important;height:16px!important;line-height:16px!important}.gqmqb-btn{border-radius:var(--gqm-radius-sm,6px)!important;min-height:36px!important;padding:8px 12px!important;font-size:14px!important;gap:6px!important}.gqmqb-btn-primary{background:var(--gqm-primary,#2563eb)!important;border-color:var(--gqm-primary,#2563eb)!important}
.gqmqb-workspace{display:grid!important;grid-template-columns:1fr!important;gap:18px!important}.gqmqb-editor-card{width:100%!important}.gqmqb-form,.gqmqb-tool-form{display:block!important}.gqmqb-editor-grid,.gqmqb-filters,.gqmqb-two{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:14px!important}.gqmqb-span-2,.gqmqb-full{grid-column:1/-1!important}.gqmqb-form label,.gqmqb-filters label,.gqmqb-tool-form label{min-width:0}.gqmqb-form input,.gqmqb-form select,.gqmqb-form textarea,.gqmqb-filters input,.gqmqb-filters select,.gqmqb-tool-form input,.gqmqb-tool-form select{width:100%!important;max-width:100%!important;border-radius:var(--gqm-radius-sm,6px)!important}.gqmqb-form textarea[name="question_text"]{min-height:150px}
.gqmqb-answer-row{display:grid!important;grid-template-columns:minmax(90px,120px) 1fr 1fr!important;gap:10px!important;align-items:center;padding:10px!important;border-radius:var(--gqm-radius-sm,6px)!important;border:1px solid var(--gqm-border,#e5e7eb)}.gqmqb-correct,.gqmqb-check,.gqmqb-inline-check{display:inline-flex!important;align-items:center;gap:7px!important}.gqmqb-correct input,.gqmqb-check input,.gqmqb-inline-check input,.gqmqb-tf-options input{width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;transform:none!important}.gqmqb-tf-options{display:flex;gap:12px;flex-wrap:wrap}.gqmqb-tf-options label{border:1px solid var(--gqm-border,#e5e7eb);border-radius:var(--gqm-radius-sm,6px);padding:10px 12px;background:var(--gqm-bg,#f8fafc)}
.gqmqb-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:var(--gqm-radius,10px)!important}.gqmqb-table-wrap table{min-width:820px}.gqmqb-row-actions,.gqmqb-tool-links,.gqmqb-form-actions,.gqmqb-bulkbar{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center}.gqmqb-row-actions a{white-space:nowrap;font-size:13px!important}.gqmqb-pill,.gqmqb-type-badge{border-radius:999px!important;padding:3px 8px!important;font-size:12px!important}.gqmqb-subhead{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.gqmqb-subhead h4{margin:0!important;font-size:15px!important}
@media(max-width:900px){.gqmqb-wrap{padding:12px;max-width:100%}.gqmqb-editor-grid,.gqmqb-filters,.gqmqb-two{grid-template-columns:1fr!important}.gqmqb-answer-row{grid-template-columns:1fr!important}.gqmqb-table-wrap table{min-width:680px}.gqmqb-hero{display:grid}.gqmqb-stats{width:100%}.gqmqb-stats>div{flex:1;min-width:130px}}
@media(max-width:560px){.gqmqb-card,.gqmqb-hero{padding:14px!important}.gqmqb-card-head{display:grid!important;grid-template-columns:1fr}.gqmqb-row-actions,.gqmqb-tool-links,.gqmqb-form-actions,.gqmqb-bulkbar{display:grid!important;grid-template-columns:1fr!important}.gqmqb-btn,.gqmqb-row-actions a{width:100%;justify-content:center;text-align:center}.gqmqb-table-wrap table{font-size:13px;min-width:620px}.gqmqb-tf-options{display:grid;grid-template-columns:1fr}}
[dir=rtl] .gqmqb-wrap,.gqmqb-editor-dir-rtl{text-align:right}.gqmqb-editor-dir-rtl input,.gqmqb-editor-dir-rtl textarea{direction:rtl;text-align:right}
