/* ------------------------------------------------------------
   QEC EXPLORER - assets/qec-modal.css
   Modal/cheat-sheet styles, layered on top of theme.css.
   ------------------------------------------------------------ */
.qec-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 18, 0.72);
  z-index: var(--z-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
/* Visible state. The keyboard cheat-sheet opens via `.show`; the export
   dialogs (OpenQASM / Qiskit template) open via `.open`. Support both so
   every modal that toggles either class actually renders. */
.qec-modal.show,
.qec-modal.open { display: flex; }
.qec-modal-card {
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-width: 540px;
  width: 100%;
  max-height: 80vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.qec-modal-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}
.qec-modal-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-secondary);
}
.qec-modal-card .row:last-child { border-bottom: none; }
.qec-modal-card kbd {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface-3);
  border: 1px solid var(--border-default);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--text-primary);
  white-space: nowrap;
}
.qec-modal-card .hint {
  margin-top: var(--space-4);
  font-size: 12.5px;
  color: var(--text-hint);
}
