/* ─── Modal (question browser) ─────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 8, 6, 0.7);
  backdrop-filter: blur(6px);
  display: none;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(920px, 100%);
  max-height: 85vh;
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  font-weight: 400;
}
.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 12px;
  line-height: 1;
}
.close-btn:hover { color: var(--accent-bright); }
.filters {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 8px; flex-wrap: wrap;
  background: var(--surface);
}
.chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-bright);
}
.modal-body {
  flex: 1;
  overflow: auto;
  padding: 6px 0;
}
.q-row {
  display: grid;
  grid-template-columns: 40px 80px 90px 1fr 70px;
  gap: 14px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  align-items: center;
  transition: background 0.12s;
}
.q-row:hover { background: var(--surface-1); }
.q-row .num {
  font-family: var(--mono);
  color: var(--text-dim);
  font-size: 12px;
}
.q-row .title {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text);
  font-style: italic;
  font-weight: 400;
}
.q-row .db {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}
.q-row .status {
  text-align: right;
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.q-row .status.done { color: var(--success); }
.q-row .status.done::before { content: "✓ "; font-weight: 700; }
.q-row .status.wip { color: var(--info); }
.q-row .status.wip::before { content: "◆ "; font-size: 9px; }

/* Toast */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  border-left: 3px solid var(--success);
  padding: 14px 18px;
  border-radius: 4px;
  box-shadow: 0 12px 40px -10px rgba(0,0,0,0.5);
  max-width: 340px;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 200;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast .t-title {
  font-family: var(--serif); font-style: italic; font-size: 17px;
  color: var(--success); margin-bottom: 2px; font-weight: 400;
}
