/* frontend/question-bank/question-bank.css */
.qb-picker {
  position: relative;
  min-width: 0;
  grid-column: 1/-1;
}
.qb-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--pxs-fg-tertiary);
}
.qb-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--pxs-border-default);
  border-radius: 12px;
  background: var(--pxs-bg-surface);
  font-size: 14px;
  text-align: left;
}
.qb-select:disabled {
  opacity: .5;
}
.qb-path {
  display: block;
  margin-top: 6px;
  line-height: 1.6;
  color: var(--pxs-fg-secondary);
  overflow-wrap: anywhere;
}
.qb-picker-panel {
  margin-top: 8px;
  border: 1px solid var(--pxs-border-default);
  border-radius: 12px;
  padding: 10px;
  background: var(--pxs-bg-surface);
}
.qb-picker-panel input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--pxs-border-default);
  border-radius: 8px;
  background: var(--pxs-bg-base);
  font-size: 16px;
}
.qb-picker-count {
  padding: 8px 2px;
  font-size: 12px;
  color: var(--pxs-fg-secondary);
}
.qb-picker-list {
  max-height: 330px;
  overflow: auto;
  overscroll-behavior: contain;
}
.qb-picker-list button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border-radius: 8px;
  border: 1px solid transparent;
  min-height: 44px;
}
.qb-picker-list button:hover,
.qb-picker-list button[aria-pressed=true] {
  background: var(--pxs-accent-dim);
  border-color: var(--pxs-accent);
}
.qb-picker-list small {
  display: block;
  font-size: 11px;
  color: var(--pxs-fg-secondary);
  margin-top: 3px;
  overflow-wrap: anywhere;
}
.qb-picker-list p {
  padding: 16px;
}
.qb-picker button:focus-visible,
.qb-notice button:focus-visible {
  outline: 2px solid var(--pxs-accent);
  outline-offset: 2px;
}
.qb-more {
  color: var(--pxs-accent);
  font-weight: 600;
}
.qb-notice {
  border: 1px solid var(--pxs-border-default);
  background: var(--pxs-bg-overlay);
  padding: 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.qb-notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.qb-notice-actions button {
  color: var(--pxs-accent);
  font-weight: 600;
  padding: 5px 0;
}
.qb-notice details {
  margin-top: 12px;
}
.qb-notice summary {
  cursor: pointer;
  font-weight: 600;
}
.qb-preview {
  padding: 16px 0;
  border-top: 1px solid var(--pxs-border-default);
  margin-top: 12px;
}
.qb-preview > strong,
.qb-preview > small {
  display: block;
  margin: 8px 0;
}
.qb-preview > small {
  color: var(--pxs-fg-secondary);
}
.qb-preview ol {
  list-style: upper-alpha;
  padding-left: 28px;
}
.qb-preview li {
  padding: 6px;
}
.qb-rich {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
  font-weight: inherit;
  line-height: 1.8;
}
.qb-rich img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  object-fit: contain;
}
.qb-rich p {
  margin: 6px 0;
}
.qb-rich table {
  display: block;
  max-width: 100%;
  overflow: auto;
  border-collapse: collapse;
}
.qb-rich td,
.qb-rich th {
  padding: 5px;
  border: 1px solid var(--pxs-border-default);
}
.qb-image-error {
  font-size: 12px;
  color: #9b3b25;
}
.qb-rich sub {
  vertical-align: sub;
}
.qb-rich sup {
  vertical-align: super;
}
.qb-formula {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  vertical-align: middle;
  padding: 0 2px;
}
.qb-formula math {
  font-size: 1.05em;
}
.qb-blank {
  display: inline-block;
  min-width: 2em;
  margin: 0 3px;
}
.qb-multiple {
  font-size: 12px;
  color: var(--pxs-accent);
  margin: 0 0 10px;
}
.qb-rich img {
  max-height: 420px;
}
.qb-rich ol {
  list-style: decimal;
  padding-left: 1.5em;
}
.qb-answer-details {
  width: 100%;
  font-weight: 400;
  margin-top: 8px;
}
.qb-answer-details summary {
  font-weight: 600;
  cursor: pointer;
}
.smart-quiz-question-card .bg-emerald-50 {
  flex-wrap: wrap;
}
