/* ../../../../../../Views/Site/JsonModal.css */
:root {
  --json-key: #0550ae;
  --json-string: #0a7c42;
  --json-number: #b45309;
  --json-boolean: #9333ea;
  --json-null: #64748b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --json-key: #7aa2ff;
    --json-string: #6ee7a8;
    --json-number: #f0b26a;
    --json-boolean: #c4a4ff;
    --json-null: #94a3b8;
  }
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 20, 32, 0.55);
}
.modal-backdrop .modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  max-height: 100%;
  padding: 24px;
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}
.modal-close {
  display: inline-flex;
  padding: 8px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.modal-close:hover {
  color: var(--accent);
  background: var(--icon-bg);
}
.modal-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.json {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 16px;
  overflow: auto;
  font-family:
    ui-monospace,
    "Cascadia Code",
    "Consolas",
    monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-muted);
  background: var(--input-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
}
.json .loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.json .loading svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.json .key {
  color: var(--json-key);
}
.json .string {
  color: var(--json-string);
}
.json .number {
  color: var(--json-number);
}
.json .boolean {
  color: var(--json-boolean);
}
.json .null {
  color: var(--json-null);
}
