/* Geometry and colors inherit UI.Theme, shared by all three text layers. */
json-editor.json-editor {
  display: flex; position: relative; width: 100%; min-width: 0;
  height: 100%; min-height: 0; overflow: hidden; box-sizing: border-box;
  border: 1px solid var(--ui-border); border-radius: var(--ui-radius);
  background: var(--json-editor-background); color: var(--json-editor-text);
  font: var(--json-editor-font-size)/var(--json-editor-line-height) monospace;
  text-align: left; tab-size: 2;
}
json-editor:focus-within { outline: var(--ui-focus-width) solid var(--ui-focus); outline-offset: 1px; }
.profile-json-actions > .s.r.wrp { justify-content: flex-end; }
.json-editor-gutter { flex: 0 0 auto; min-width: 3ch; padding: var(--json-editor-padding); overflow: hidden; color: var(--ui-muted); background: var(--ui-surface); text-align: right; user-select: none; }
.json-editor-lines { will-change: transform; }
.json-editor-line-number { height: var(--json-editor-line-height); white-space: pre; }
.json-editor-code { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; }
.json-editor-highlight, .json-editor-code textarea {
  position: absolute; inset: 0; margin: 0; padding: var(--json-editor-padding);
  width: 100%; height: 100%; box-sizing: border-box; border: 0;
  font: inherit; letter-spacing: normal; tab-size: inherit; white-space: pre;
  text-align: left; border-radius: 0;
}
.json-editor-highlight { pointer-events: none; overflow: hidden; color: var(--json-editor-text); }
.json-editor-code textarea { resize: none; overflow: auto; background: transparent; color: transparent; caret-color: var(--json-editor-text); -webkit-text-fill-color: transparent; outline: none; }
.json-editor-code textarea::selection { background: var(--json-editor-selection); }
.json-editor-code textarea:disabled { opacity: 0.6; }
.json-editor-token-string { color: var(--json-editor-string); }
.json-editor-token-number { color: var(--json-editor-number); }
.json-editor-token-literal { color: var(--json-editor-literal); }
@media (forced-colors: active) {
  .json-editor-highlight { visibility: hidden; }
  .json-editor-code textarea { color: CanvasText; -webkit-text-fill-color: CanvasText; caret-color: CanvasText; }
}
