.dm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 20050;
  display: grid;
  place-items: center;
  padding: 12px;
}

.dm-overlay[hidden] {
  display: none !important;
}

.dm-panel {
  width: min(1120px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.24);
  border: 1px solid #dbe3ef;
  display: flex;
  flex-direction: column;
}

.dm-header {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5eaf1;
}

.dm-header h2 {
  margin: 0;
  font-size: 16px;
}

.dm-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 10px;
  border-bottom: 1px solid #eef2f7;
  align-items: center;
  min-height: 56px;
  scrollbar-width: thin;
}

.dm-tab {
  border: 1px solid #c9d6e6;
  background: #f8fafc;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 42px;
  line-height: 1.2;
}

.dm-tab.is-active {
  background: #0ea5e9;
  color: #fff;
  border-color: #0ea5e9;
}

.dm-body {
  padding: 12px;
  overflow: auto;
  display: grid;
  gap: 10px;
}

.dm-tab-panel {
  display: grid;
  gap: 8px;
}

.dm-tab-panel[hidden] {
  display: none !important;
}

.dm-tab-panel label {
  display: grid;
  gap: 4px;
  color: #243447;
  font-size: 13px;
}

.dm-tab-panel input,
.dm-tab-panel select,
.dm-tab-panel textarea {
  border: 1px solid #c8d4e4;
  border-radius: 8px;
  padding: 7px 9px;
  font: inherit;
}

.dm-note {
  margin: 0;
  color: #4b5563;
  font-size: 12px;
}

.dm-error {
  margin: 0;
  min-height: 1em;
  color: #b91c1c;
  font-size: 13px;
}

.dm-review-output {
  margin: 0;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  min-height: 120px;
  overflow: auto;
  font-size: 12px;
}
