/* Full-screen variant browser modal. The grid itself is themed by Tabulator's
   midnight stylesheet (loaded from CDN); this only styles the dialog chrome to
   match the app shell. */

.topbar-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.variants-dialog {
  width: 96vw;
  max-width: 1600px;
  height: 90vh;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--bg-1);
  color: var(--text);
  overflow: hidden;
}

.variants-dialog[open] {
  display: flex;
  flex-direction: column;
}

.variants-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.variants-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
}

.variants-head h2 {
  margin: 0;
  font: 500 var(--fs-label-sm) / 1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.variants-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.variants-alias {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 400 var(--fs-mono-sm) / 1 var(--mono);
  color: var(--text-dim);
}

.variants-alias select {
  background: var(--bg-0);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 4px 6px;
  font: 400 var(--fs-mono-sm) / 1 var(--mono);
}

.variants-grid {
  flex: 1;
  min-height: 0;
  padding: 8px 12px 0;
}

.variants-status {
  padding: 8px 18px;
  border-top: 1px solid var(--line-2);
  font: 400 var(--fs-mono-sm) / 1 var(--mono);
  color: var(--text-dim);
}

/* Let the Tabulator midnight theme sit on the app background. */
.variants-grid .tabulator {
  background: transparent;
  border: none;
  font-family: var(--mono);
}
