/* ═══════════ ⚡ Ocorrências Rápidas — registro em lote ═══════════ */

.iq-step {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 14px 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.iq-step:first-child { margin-top: 0; }
.iq-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold3);
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 900;
}

/* ── Tipos ── */
.iq-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 7px;
}
.iq-type {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 10px;
  min-height: 46px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted2);
  transition: background .12s, border-color .12s, color .12s;
  user-select: none;
}
.iq-type:hover { background: var(--bg3); }
.iq-type-ic { font-size: 1.1rem; line-height: 1; flex-shrink: 0; }
.iq-type.active {
  color: var(--text);
  border-width: 2px;
  padding: 9px 9px;
  background: var(--bg3);
}
.iq-type-heart {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 900;
  opacity: 0.75;
}

/* ── Frases prontas ── */
.iq-phrases { display: flex; flex-wrap: wrap; gap: 6px; }
.iq-phrase {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 15px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted2);
  cursor: pointer;
  user-select: none;
}
.iq-phrase:hover { border-color: var(--border2); color: var(--text); }
.iq-phrase.active {
  background: var(--gold3);
  border-color: var(--gold);
  color: var(--gold);
}
.iq-phrase-x {
  font-size: 0.7rem;
  color: var(--red);
  font-weight: 900;
  padding: 0 2px;
}
.iq-phrase-add {
  border-style: dashed;
  color: var(--muted);
}

/* ── Grade de alunos ── */
.iq-stu-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.iq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}
.iq-stu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  min-height: 52px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background .12s, border-color .12s, transform .08s;
}
.iq-stu:active { transform: scale(0.97); }
.iq-stu:hover { background: var(--bg3); }
.iq-stu.sel {
  background: rgba(245,200,66,0.09);
  border-color: var(--gold);
  border-width: 2px;
  padding: 8px 9px;
}
.iq-stu-av {
  width: 30px; height: 30px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.iq-stu-av img, .iq-stu-av canvas, .iq-stu-av svg { max-width: 100%; max-height: 100%; }
.iq-stu-nm {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.iq-stu-today {
  display: flex;
  gap: 1px;
  font-size: 0.62rem;
  margin-top: 2px;
  opacity: 0.9;
}
.iq-stu-check {
  position: absolute;
  top: 4px; right: 5px;
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 900;
}
.iq-stu.flash {
  animation: iqFlash 0.6s ease;
}
@keyframes iqFlash {
  0%   { background: rgba(52,211,153,0.35); border-color: var(--green); }
  100% { background: var(--bg2); border-color: var(--border); }
}

/* ── Bloco de efeito (severidade / matéria / XP / coração) ── */
.iq-effect {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  padding: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.iq-effect .iq-ab-field { min-width: 0; }
.iq-effect input[type="number"] { text-align: center; font-weight: 800; }

/* ── Barra de ação fixa ── */
.iq-actionbar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin-top: 14px;
  padding: 10px;
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  box-shadow: 0 -6px 18px rgba(0,0,0,0.4);
}
.iq-ab-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 116px;
}
.iq-ab-field label {
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.iq-ab-field select { padding: 6px 8px; font-size: 0.74rem; }
.iq-submit {
  flex: 1;
  min-width: 190px;
  min-height: 46px;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  justify-content: center;
}
.iq-instant {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted2);
  cursor: pointer;
  padding: 6px 9px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.iq-instant input { accent-color: var(--gold); width: 15px; height: 15px; }
.iq-instant.on { color: var(--gold); border-color: var(--gold); background: var(--gold3); }

/* ── Feed de hoje ── */
.iq-feed { display: flex; flex-direction: column; gap: 5px; }
.iq-feed-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--muted);
  border-radius: 8px;
  font-size: 0.74rem;
}
.iq-feed-nm { font-weight: 800; color: var(--text); }
.iq-feed-desc { color: var(--muted2); flex: 1; min-width: 90px; }
.iq-feed-time { font-size: 0.64rem; color: var(--muted); }

@media (max-width: 600px) {
  .iq-types { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
  .iq-grid  { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
  .iq-actionbar { padding: 8px; gap: 6px; }
  .iq-submit { min-width: 100%; order: 99; min-height: 44px; }
  .iq-ab-field { flex: 1; min-width: 104px; }
  .iq-ab-field select { padding: 5px 6px; }
}

/* ── Sub-abas (Registrar / Panorama) ── */
.iq-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.iq-tab {
  padding: 8px 14px;
  min-height: 38px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted2);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}
.iq-tab:hover { background: var(--bg3); color: var(--text); }
.iq-tab.active {
  background: var(--gold3);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Panorama ── */
.iq-pan-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.iq-pan-stat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 6px;
  text-align: center;
}
.iq-pan-n { font-size: 1.35rem; font-weight: 900; color: var(--gold); line-height: 1; }
.iq-pan-l { font-size: 0.6rem; color: var(--muted2); margin-top: 3px; font-weight: 700; }

.iq-pan-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  padding: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
}
.iq-pan-bar-wrap {
  flex: 1;
  min-width: 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
}
.iq-pan-bar {
  width: 100%;
  max-width: 34px;
  background: var(--green);
  border-radius: 4px 4px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  min-height: 6px;
}
.iq-pan-bar-neg { width: 100%; background: var(--red); }
.iq-pan-bar-lbl { font-size: 0.55rem; color: var(--muted2); white-space: nowrap; }

.iq-stu-flag { margin-right: 3px; }
