.h2r-dialog {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
}

.h2r-dialog__box {
  width: 360px;
  max-width: calc(100% - 32px);
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.h2r-dialog__message {
  margin: 0 0 16px;
  white-space: pre-line;
  color: #111827;
  font-size: 14px;
}

.h2r-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.h2r-dialog__btn {
  padding: 6px 14px;
  cursor: pointer;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
}

.h2r-dialog__btn--primary {
  color: #fff;
  border-color: #111827;
  background: #111827;
}

.h2r-dialog__box--large {
  display: flex;
  flex-direction: column;
  width: 800px;
  max-height: calc(100vh - 64px);
}

.h2r-dialog__title {
  margin: 0 0 12px;
  color: #111827;
  font-size: 16px;
}

.h2r-dialog__code {
  overflow: auto;
  flex: 1;
  margin: 0 0 16px;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
}

.h2r-dialog__tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 8px;
}

.h2r-dialog__tab {
  padding: 5px 12px;
  cursor: pointer;
  color: #6b7280;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  font-size: 13px;
}

.h2r-dialog__tab.is-active {
  color: #111827;
  border-color: #e5e7eb;
  background: #f9fafb;
  font-weight: 600;
}

.h2r-json-tree {
  white-space: normal;
  word-break: normal;
}

.h2r-json-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin: 2px 0;
}

.h2r-json-node {
  margin: 0;
}

.h2r-json-node > .h2r-json-children {
  margin-left: 16px;
  padding-left: 12px;
  border-left: 1px solid #e5e7eb;
}

.h2r-json-summary {
  cursor: pointer;
  color: #111827;
  font-weight: 600;
}

.h2r-json-key {
  flex-shrink: 0;
  color: #1d4ed8;
}

.h2r-json-value {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #111827;
}

.h2r-json-string {
  color: #047857;
}

.h2r-json-number {
  color: #b45309;
}

.h2r-md {
  color: #111827;
}

.h2r-md-heading {
  margin: 8px 0 4px;
  color: #111827;
  font-size: 13px;
}

.h2r-md-p {
  margin: 0 0 6px;
}

.h2r-md-hr {
  margin: 8px 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

.h2r-md-code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #eef2f7;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 11px;
}

.h2r-json-boolean,
.h2r-json-null {
  color: #7c3aed;
}
