/* Banco de Questões v4 — contrato responsivo de exploração, seleção e gestão. */
#view-questoes.bq-v4-ready{
  --bq4-bg:#0d0912;
  --bq4-panel:#17111d;
  --bq4-panel-2:#211728;
  --bq4-line:#3b2945;
  --bq4-text:#f8f4fa;
  --bq4-muted:#aa9bb3;
  --bq4-gold:#e6c13d;
  --bq4-purple:#6f2a91;
  width:100%;
  max-width:1720px;
  margin-inline:auto;
  gap:18px !important;
}

#view-questoes.bq-v4-ready .av-bq-header{
  min-height:76px;
  padding:18px 22px;
  border:1px solid var(--bq4-line);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(111,42,145,.22),rgba(23,17,29,.96) 46%);
  box-shadow:0 18px 45px rgba(0,0,0,.18);
}

#view-questoes.bq-v4-ready .av-bq-header h2{
  font-size:clamp(1.12rem,1.4vw,1.45rem);
  letter-spacing:-.02em;
  text-transform:none;
}

#view-questoes.bq-v4-ready .av-bq-header p{color:var(--bq4-muted) !important;}

#view-questoes.bq-v4-ready #painelExplorarBancoQuestoes{
  padding:18px !important;
  border:1px solid var(--bq4-line) !important;
  background:var(--bq4-panel) !important;
  border-radius:18px !important;
  box-shadow:0 16px 42px rgba(0,0,0,.16);
}

#view-questoes.bq-v4-ready #painelExplorarBancoQuestoes > div:first-child{
  margin-bottom:14px !important;
}

#view-questoes.bq-v4-ready #painelExplorarBancoQuestoes > div:first-child h3{
  color:var(--bq4-text) !important;
  font-size:15px !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}

#view-questoes.bq-v4-ready #filtroQuestaoBusca{
  min-height:52px;
  font-size:15px;
}

#view-questoes.bq-v4-ready .bq-v4-filter-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:52px;
  padding:0 16px;
  border:1px solid rgba(230,193,61,.55);
  border-radius:12px;
  background:rgba(230,193,61,.1);
  color:var(--bq4-gold);
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

#view-questoes.bq-v4-ready .bq-v4-workspace{
  display:grid;
  grid-template-columns:252px minmax(0,1fr);
  align-items:start;
  gap:16px;
}

#view-questoes.bq-v4-ready .bq-v4-filter-rail{
  position:sticky;
  top:86px;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:18px;
  max-height:calc(100vh - 110px);
  overflow:auto;
  border:1px solid var(--bq4-line);
  border-radius:18px;
  background:var(--bq4-panel);
  scrollbar-width:thin;
}

#view-questoes.bq-v4-ready .bq-v4-filter-rail::before{
  content:"Filtros";
  display:block;
  margin-bottom:2px;
  color:var(--bq4-text);
  font-family:Poppins,Inter,sans-serif;
  font-size:17px;
  font-weight:700;
}

#view-questoes.bq-v4-ready .bq-v4-filter-rail > .grid{
  display:flex !important;
  flex-direction:column;
  gap:12px !important;
  margin:0 !important;
}

#view-questoes.bq-v4-ready .bq-v4-filter-rail #bqMaisFiltros{
  display:flex !important;
}

#view-questoes.bq-v4-ready .bq-v4-filter-rail label{
  margin-bottom:5px !important;
  color:var(--bq4-muted) !important;
  font-size:10px !important;
  letter-spacing:.04em;
}

#view-questoes.bq-v4-ready .bq-v4-filter-rail select,
#view-questoes.bq-v4-ready .bq-v4-filter-rail input{
  min-height:42px;
  padding:9px 11px !important;
  border-color:var(--bq4-line) !important;
  background:var(--bq4-panel-2) !important;
  color:var(--bq4-text) !important;
  font-size:12px !important;
}

#view-questoes.bq-v4-ready .bq-v4-filter-rail #bqChipsFiltrosAtivos{
  margin:0 !important;
}

#view-questoes.bq-v4-ready .bq-v4-workspace > .av-explore-grid{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 292px !important;
  align-items:start;
  gap:16px;
  min-width:0;
}

#view-questoes.bq-v4-ready .bqf{gap:14px;}
#view-questoes.bq-v4-ready .bqf-topo{
  min-height:52px;
  padding:4px 2px 10px;
  border-bottom:1px solid var(--bq4-line);
}

#view-questoes.bq-v4-ready .bqf-card{
  padding:18px;
  border-color:var(--bq4-line);
  border-radius:16px;
  background:var(--bq4-panel);
  box-shadow:none;
  transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease;
}

#view-questoes.bq-v4-ready .bqf-card:hover{
  transform:translateY(-1px);
  border-color:rgba(141,66,176,.72);
  box-shadow:0 14px 34px rgba(0,0,0,.18);
}

#view-questoes.bq-v4-ready .bqf-head2{
  margin:-18px -18px 0;
  padding:12px 16px;
  border-radius:16px 16px 0 0;
}

#view-questoes.bq-v4-ready .bqf-enunciado{
  color:var(--bq4-text);
  font-size:14px;
  line-height:1.55;
}

#view-questoes.bq-v4-ready .bqf-add,
#view-questoes.bq-v4-ready .bqf-resolv,
#view-questoes.bq-v4-ready .bqf-acao{
  min-height:38px;
  border-radius:10px;
}

body #view-questoes.bq-v4-ready #bqMiniListaSide{
  display:block !important;
  position:sticky !important;
  inset:auto !important;
  top:86px !important;
  width:auto !important;
  max-height:calc(100vh - 110px) !important;
  overflow:auto !important;
  padding:0 !important;
  z-index:2 !important;
  border:0 !important;
  border-radius:18px !important;
  background:transparent !important;
  box-shadow:none !important;
}

#view-questoes.bq-v4-ready #bqMiniListaSide:empty::before{
  content:"Sua lista aparecerá aqui quando você selecionar uma questão.";
  display:block;
  padding:22px 18px;
  border:1px dashed var(--bq4-line);
  border-radius:18px;
  color:var(--bq4-muted);
  background:var(--bq4-panel);
  font-size:12px;
  line-height:1.55;
}

#view-questoes.bq-v4-ready #painelMiniListaQuestoes{
  margin:0 !important;
  border-color:var(--bq4-line) !important;
  border-radius:18px !important;
  background:var(--bq4-panel) !important;
  box-shadow:none !important;
}

#view-questoes.bq-v4-ready #bqCartPill{display:none !important;}

body.theme-light #view-questoes.bq-v4-ready{
  --bq4-bg:#f7f5f8;
  --bq4-panel:#ffffff;
  --bq4-panel-2:#f6f1f8;
  --bq4-line:#e3d9e8;
  --bq4-text:#251b2b;
  --bq4-muted:#74677d;
}

body.theme-light #view-questoes.bq-v4-ready .av-bq-header{
  background:linear-gradient(135deg,#f5ecf8,#fff 52%);
  box-shadow:0 15px 36px rgba(58,32,71,.07);
}

body.theme-light #view-questoes.bq-v4-ready .bqf-card{background:#fff !important;}

@media (max-width:1360px){
  #view-questoes.bq-v4-ready .bq-v4-workspace{grid-template-columns:230px minmax(0,1fr);}
  #view-questoes.bq-v4-ready .bq-v4-workspace > .av-explore-grid{grid-template-columns:minmax(0,1fr) 260px !important;}
}

@media (max-width:1180px){
  #view-questoes.bq-v4-ready .bq-v4-filter-toggle{display:inline-flex;}
  #view-questoes.bq-v4-ready .bq-v4-workspace{display:block;}
  #view-questoes.bq-v4-ready .bq-v4-filter-rail{display:none;position:static;max-height:none;margin-bottom:14px;}
  #view-questoes.bq-v4-ready .bq-v4-filter-rail.is-open{display:flex;}
  #view-questoes.bq-v4-ready .bq-v4-workspace > .av-explore-grid{display:block !important;}
  body #view-questoes.bq-v4-ready #bqMiniListaSide{
    display:none !important;
    position:fixed !important;
    right:16px !important;
    bottom:82px !important;
    top:auto !important;
    width:min(360px,calc(100vw - 32px)) !important;
    max-height:65vh !important;
    padding:4px !important;
    z-index:1000 !important;
    background:var(--bq4-panel) !important;
    border:1px solid var(--bq4-line) !important;
    box-shadow:0 20px 60px rgba(0,0,0,.5) !important;
  }
  body #view-questoes.bq-v4-ready #bqMiniListaSide.bq-cart-aberto{display:block !important;}
  #view-questoes.bq-v4-ready #bqCartPill{display:inline-flex !important;bottom:88px !important;}
}

@media (max-width:640px){
  #view-questoes.bq-v4-ready{gap:12px !important;}
  #view-questoes.bq-v4-ready .av-bq-header{padding:14px;border-radius:14px;}
  #view-questoes.bq-v4-ready .av-logo-mark{display:none;}
  #view-questoes.bq-v4-ready .av-total-pill{font-size:10px;padding:7px 10px;}
  #view-questoes.bq-v4-ready #painelExplorarBancoQuestoes{padding:12px !important;border-radius:14px !important;}
  #view-questoes.bq-v4-ready #painelExplorarBancoQuestoes > div:first-child{display:none !important;}
  #view-questoes.bq-v4-ready #filtroQuestaoBusca{min-height:46px;font-size:14px;}
  #view-questoes.bq-v4-ready .bq-v4-filter-toggle{min-height:46px;padding-inline:13px;}
  #view-questoes.bq-v4-ready .bq-v4-filter-rail{padding:14px;border-radius:14px;}
  #view-questoes.bq-v4-ready .bqf-card{padding:14px;border-radius:14px;}
  #view-questoes.bq-v4-ready .bqf-head2{margin:-14px -14px 0;padding:10px 12px;border-radius:14px 14px 0 0;}
  #view-questoes.bq-v4-ready .bqf-head-acoes{width:100%;justify-content:stretch;}
  #view-questoes.bq-v4-ready .bqf-head-acoes > button{flex:1;justify-content:center;min-width:0;}
  #view-questoes.bq-v4-ready .bqf-enunciado{font-size:13.5px;line-height:1.5;}
  #view-questoes.bq-v4-ready .bqf-foot2{gap:6px;}
  #view-questoes.bq-v4-ready .bqf-crumbs{width:100%;}
}
