.jg { --jg-bg: #222; --jg-row-alt: #272727; --jg-head: #303030; --jg-line: #393939; --jg-text: #e1e1e1; --jg-muted: #aaa; --jg-selected: #193451; color: var(--jg-text); font: 16px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; padding: 8px; }
.jg *, .jg *::before, .jg *::after { box-sizing: border-box; }
.jg .jg-scroll { overflow: auto; max-width: 100%; }
.jg.jg-panning, .jg.jg-panning * { cursor: grabbing !important; user-select: none; }
.jg .jg-virtual { max-height: 460px; overflow-anchor: none; scrollbar-gutter: stable; }
.jg .jg-virtual-table { table-layout: fixed; }
.jg .jg-virtual-table td { white-space: nowrap; }
.jg .jg-virtual-table thead { position: sticky; top: 0; z-index: 1; }
.jg .jg-spacer > td { padding: 0; border: 0; line-height: 0; }
.jg .jg-collection { min-width: 0; }
.jg table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 0; color: var(--jg-text); font: inherit; background: var(--jg-bg); border: 1px solid color-mix(in srgb, var(--jg-text) 14%, transparent); border-radius: 4px; }
.jg th, .jg td { text-align: left; vertical-align: top; padding: 5px 10px; border: 0; font: inherit; height: auto; max-width: none; overflow: visible; text-overflow: clip; }
.jg :where(tbody > tr:not(.jg-spacer)) > :where(th, td) { background: var(--jg-bg); }
.jg :where(tbody > tr.jg-row-alt) > :where(th, td) { background: var(--jg-row-alt); }
.jg tr:last-child > td, .jg tbody > tr:last-child > th { border-bottom: 0; }
.jg tr > :last-child { border-right: 0; }
.jg tr { background: transparent; }
.jg tbody tr:hover { background: transparent; }
.jg tbody > tr:not(.jg-spacer, .jg-row-selected) > :is(td, th):hover:not(:has(> .jg-collection:hover), .jg-selected, .jg-column-selected, .jg-editing) {
  background: color-mix(in srgb, var(--jg-text) 10%, var(--jg-bg));
}
.jg .jg-key { color: var(--jg-key-text, var(--jg-token-key)); font-weight: 500; width: 1%; white-space: nowrap; font-size: 15px; }
.jg .jg-index { color: var(--jg-muted); padding-left: 4px; padding-right: 2px; }
.jg .jg-row-controls { display: inline-flex; align-items: center; gap: 1px; margin-right: 3px; vertical-align: middle; opacity: 0; pointer-events: none; }
.jg tr:is(:hover, :focus-within):not(:has(.jg-collection:is(:hover, :focus-within))) > th > .jg-row-controls,
.jg .jg-row-controls:has([aria-expanded="true"]) { opacity: 1; pointer-events: auto; }
@media (hover: none) { .jg .jg-row-controls { opacity: 1; pointer-events: auto; } }
.jg .jg-row-controls button { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 22px; padding: 0; color: var(--jg-muted); font: 20px/1 sans-serif; }
.jg .jg-row-drag svg { width: 14px; height: 16px; }
.jg .jg-row-controls .jg-row-drag { cursor: grab; }
.jg .jg-row-controls .jg-row-drag:active { cursor: grabbing; }
.jg .jg-drop-row > :is(th, td) { box-shadow: inset 0 2px var(--jg-token-key, #69bfff); }
.jg .jg-drop-row.jg-drop-after > :is(th, td) { box-shadow: inset 0 -2px var(--jg-token-key, #69bfff); }
.jg .jg-row-menu { position: fixed; inset: auto; margin: 0; padding: 5px; min-width: 150px; border: 1px solid var(--jg-line); border-radius: 6px; background: var(--jg-bg); color: var(--jg-text); box-shadow: 0 6px 24px #0006; }
.jg .jg-row-menu button { display: block; width: 100%; padding: 7px 12px; text-align: left; font: 14px/1.4 sans-serif; }
.jg .jg-properties > tbody > tr > .jg-key { min-width: 110px; }
.jg .jg-table { width: max-content; min-width: 100%; }
.jg .jg-table > tbody > tr > td { min-width: 90px; }
.jg thead th { background: var(--jg-head); color: var(--jg-text); text-align: center; white-space: nowrap; padding: 5px 10px; }
.jg .jg-selectable-header { cursor: pointer; }
.jg th[data-column-key] { position: relative; padding-right: 12px; }
.jg .jg-column-resize { position: absolute; top: 0; bottom: 0; right: 0; width: 8px; cursor: col-resize; touch-action: none; z-index: 2; }
.jg .jg-column-resize::after { content: ''; position: absolute; top: 7px; bottom: 7px; right: 2px; width: 2px; border-radius: 2px; background: var(--jg-muted); opacity: 0; }
.jg th:hover > .jg-column-resize::after { opacity: .4; }
.jg th > .jg-column-resize:hover::after, .jg th > .jg-column-resize:focus-visible::after, .jg .jg-resizing-columns th > .jg-column-resize::after { opacity: 1; background: var(--jg-token-key); }
.jg .jg-resizing-columns, .jg .jg-resizing-columns * { cursor: col-resize !important; user-select: none !important; }
.jg .jg-sized-table { table-layout: fixed; min-width: 0; }
.jg .jg-sized-table > tbody > tr > td { min-width: 0; overflow: hidden; }
.jg .jg-sized-table > thead > tr > th { overflow: hidden; }
.jg .jg-header-content { display: flex; align-items: center; width: max-content; margin-inline: auto; }
.jg .jg-header-content > .jg-column-label { display: block; flex: none; text-align: center; white-space: nowrap; }
.jg .jg-header-controls { display: inline-flex; align-items: center; flex: none; }
.jg .jg-sized-table > tbody > tr > td > .jg-value { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.jg .jg-sized-table > tbody > tr > td > .jg-toggle { max-width: 100%; }
.jg .jg-sized-table > tbody > tr > td > .jg-toggle > .jg-collection-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.jg .jg-selectable-header:active { cursor: grabbing; }
.jg th.jg-dragging { opacity: .45; }
.jg th.jg-drop-before { box-shadow: inset 3px 0 #8bb6e3; }
.jg th.jg-drop-after { box-shadow: inset -3px 0 #8bb6e3; }
.jg button { font: inherit; color: inherit; background: transparent; border: 0; border-radius: 3px; padding: 2px 3px; cursor: pointer; }
.jg button:hover { background: #ffffff0c; }
.jg button:disabled { opacity: .35; cursor: default; }
.jg .jg-toggle, .jg .jg-sort, .jg .jg-column-label { color: var(--jg-key-text, var(--jg-token-key)); font-weight: 500; text-align: left; white-space: nowrap; }
.jg .jg-count { margin-left: -7px; }
.jg .jg-punctuation { color: var(--jg-token-punctuation); }
.jg .jg-toggle > .jg-icon { color: var(--jg-muted); }
.jg .jg-open-records { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; padding: 3px; margin-left: 4px; color: var(--jg-muted); }
.jg .jg-open-records:hover, .jg .jg-open-records:focus-visible { color: var(--jg-token-key); background: var(--jg-selected); }
.jg .jg-sized-table > tbody > tr > td:has(> .jg-open-records) > .jg-toggle { max-width: calc(100% - 24px); }
.jg .jg-toggle, .jg .jg-sort { display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; }
.jg .jg-icon { display: inline-block; width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.jg .jg-toggle[aria-expanded="true"] > .jg-icon { transform: rotate(90deg); }
.jg .jg-sort > .jg-icon { color: var(--jg-muted); width: 12px; height: 12px; }
.jg td > .jg-collection { width: max-content; max-width: none; margin: 4px 0 1px; }
.jg .jg-string { color: var(--jg-token-string); }
.jg .jg-value { white-space: pre; overflow-wrap: normal; }
.jg .jg-truncated { cursor: pointer; }
.jg .jg-truncated:hover { text-decoration: underline dotted; text-underline-offset: 4px; }
.jg .jg-value-tooltip { position: fixed; inset: auto; margin: 0; width: max-content; max-width: min(54ch, 85vw); max-height: 35vh; overflow: hidden; pointer-events: none; white-space: pre-wrap; overflow-wrap: anywhere; padding: 7px 11px; border: 1px solid var(--jg-line); border-radius: 6px; background: var(--jg-head); color: var(--jg-text); font: inherit; box-shadow: 0 4px 16px #0004; }
.jg .jg-value-dialog { width: min(680px, 85vw); max-height: 80vh; padding: 20px; border: 1px solid var(--jg-line); border-radius: 8px; background: var(--jg-bg); color: var(--jg-text); box-shadow: 0 12px 48px #0006; font: inherit; }
.jg .jg-value-dialog::backdrop { background: #0006; }
.jg.jg-records-dialog { position: fixed; box-sizing: border-box; width: calc(96vw / var(--ui-zoom, 1)); max-width: none; height: calc(84dvh / var(--ui-zoom, 1)); max-height: none; padding: 0; overflow: hidden; border: 1px solid var(--jg-line); border-radius: 8px; background: var(--jg-bg); color: var(--jg-text); box-shadow: 0 12px 48px #0006; }
.jg-records-dialog[open] { display: flex; flex-direction: column; }
.jg-records-dialog::backdrop { background: #0007; }
.jg-records-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 14px; background: var(--jg-head); }
.jg-records-heading span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--jg-muted); }
.jg-records-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-left: auto; }
.jg .jg-popup-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 5px; }
.jg .jg-popup-close > .jg-icon { width: 20px; height: 20px; flex-basis: 20px; stroke-width: 1.8; }
.jg-records-dialog > .jg-records-panel { flex: 1; min-height: 0; min-width: 0; padding: 0; }
.jg-records-panel > .jg-collection { height: 100%; display: flex; flex-direction: column; }
.jg-records-panel > .jg-collection > .jg-table-toolbar { flex: none; }
.jg-records-panel > .jg-collection > .jg-scroll { flex: 1; min-height: 0; max-height: 100%; }
.jg .jg-value-dialog[open] { display: flex; flex-direction: column; overflow: hidden; box-sizing: border-box; }
.jg .jg-value-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex: 0 0 auto; }
.jg .jg-value-header .jg-popup-close { flex-shrink: 0; }
.jg .jg-value-heading { color: var(--jg-token-key); overflow-wrap: anywhere; min-width: 0; max-height: 15vh; overflow: auto; }
.jg .jg-full-value { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 55vh; overflow: auto; margin: 0; font: inherit; user-select: text; }
.jg .jg-value-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; flex-shrink: 0; }
.jg .jg-value-actions button { padding: 6px 12px; background: var(--jg-head); }
.jg .jg-number { color: var(--jg-token-number); }
.jg .jg-boolean { color: var(--jg-token-boolean); }
.jg .jg-null { color: var(--jg-token-null); }
.jg td.jg-missing-cell { text-align: center; vertical-align: middle; }
.jg .jg-missing { display: inline-flex; align-items: center; justify-content: center; color: var(--jg-muted); vertical-align: middle; }
.jg .jg-missing > .jg-icon { width: 16px; height: 16px; }
.jg .jg-missing { color: var(--jg-muted); font-style: italic; }
.jg .jg-selected { background: var(--jg-selected); }
.jg .jg-row-selected > :is(th, td) { background: var(--jg-selected); }
.jg th.jg-column-selected, .jg td.jg-column-selected { background: var(--jg-selected); }
.jg th[tabindex] { cursor: pointer; }
.jg :focus-visible { outline: 2px solid #a8c5e9; outline-offset: -2px; }
.jg .jg-input, .jg .jg-filter { display: block; color: var(--jg-text); background: #191919; border: 1px solid #7a94b5; border-radius: 3px; font: inherit; padding: 3px 6px; width: 100%; min-width: 90px; }
.jg .jg-editing { position: relative; }
.jg td.jg-editing, .jg .jg-root.jg-editing { box-shadow: none; }
.jg .jg-edit-placeholder { visibility: hidden; }
.jg .jg-editing > .jg-input { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; margin: 0; padding: inherit; border: 0; border-radius: 0; outline: none; resize: none; box-shadow: var(--jg-edit-shadow, inset 0 2px 6px #0009, inset 0 0 0 1px #8bb6e399, inset 0 -2px 0 #8bb6e3); background: var(--jg-edit-bg, #263448); color: var(--jg-text); caret-color: var(--jg-edit-caret, #bcdcff); }
.jg .jg-editing > .jg-input:focus-visible { outline: none; }
.jg .jg-filter-controls { display: flex; flex-wrap: nowrap; align-items: center; margin-top: 6px; min-width: 56px; border: 1px solid var(--jg-muted); border-radius: 4px; background: var(--jg-bg); overflow: hidden; }
.jg .jg-filter-controls:has(.jg-filter:not([hidden])) { min-width: 146px; }
.jg .jg-filter-controls[hidden] { display: none; }
.jg .jg-filter-controls:focus-within { border-color: var(--jg-token-key); }
.jg .jg-filter { flex: 1 1 90px; min-width: 90px; width: 90px; border: 0; border-radius: 0; padding: 4px 6px; font: inherit; font-size: 13px; color: var(--jg-text); background: transparent; }
.jg .jg-filter-actions { display: flex; flex: 0 0 54px; margin-left: auto; }
.jg .jg-filter-picker { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; height: 28px; margin-left: auto; }
.jg .jg-filter-symbol { font: 14px/1 ui-monospace, monospace; text-decoration: underline; text-underline-offset: 4px; }
.jg .jg-filter-operator { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.jg .jg-filter-picker:focus-within .jg-filter-symbol { color: var(--jg-token-key); text-decoration-thickness: 2px; }
.jg .jg-filter-controls :is(input, select, button):focus-visible { outline: none; box-shadow: none; }
.jg .jg-filter-clear { flex: 0 0 22px; padding: 0; height: 28px; border: 0; background: transparent; color: var(--jg-muted); font: 16px/1 sans-serif; cursor: pointer; }
.jg .jg-filter-clear:hover { color: var(--jg-text); background: var(--jg-head); }
.jg .jg-filter[hidden] { display: none; }
.jg .jg-filter-toggle { color: var(--jg-muted); margin-left: 5px; }
.jg .jg-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px 2px; color: var(--jg-muted); font-size: 14px; }
.jg .jg-page-numbers { display: flex; gap: 3px; flex-wrap: wrap; }
.jg .jg-pager button[aria-current="page"] { background: var(--jg-selected); color: var(--jg-text); font-weight: bold; }
.jg .jg-pager button { background: var(--jg-head); color: var(--jg-token-key); padding: 5px 10px; }
.jg .jg-empty { margin: 0; padding: 12px; color: var(--jg-muted); }
.jg .jg-root { padding: 10px; }
.compact .jg th, .compact .jg td { padding-top: 2px; padding-bottom: 2px; }
@media (max-width: 700px) { .jg { padding: 8px; } .jg .jg-properties > tbody > tr > .jg-key { min-width: 90px; } }

.jg mark.jg-search-match { background: #ffe49a; color: #302000; border-radius: 2px; padding: 0; }
.jg mark.jg-search-active { background: #a64b00; color: #fff; outline: 2px solid #e99a36; outline-offset: 1px; }
.jg .jg-value.jg-search-value { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 70ch; text-overflow: clip; }

/* Compact table actions; unfinished actions remain visual previews. */
.jg .jg-table-toolbar { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 2px 6px; color: var(--jg-muted); background: var(--jg-bg); font-family: var(--app-font-family, 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif); font-size: 12px; }
.jg .jg-table-name { color: var(--jg-token-key); font: 12px ui-monospace, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.jg .jg-table-count { font-size: 11px; white-space: nowrap; }
.jg .jg-table-actions { display: flex; align-items: center; gap: 2px; margin-left: 4px; padding-left: 8px; border-left: 1px solid var(--jg-line); }
.jg .jg-table-action { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; color: var(--jg-muted); }
.jg .jg-table-action:hover { background: var(--jg-head); color: var(--jg-text); }
.jg .jg-table-action:last-child { margin-left: 4px; }

.jg .jg-table-property { display: inline-flex; align-items: center; white-space: nowrap; max-width: none; }
.jg .jg-table-property > .jg-table-actions { display: inline-flex; vertical-align: middle; border-left: 0; padding-left: 2px; margin-left: 4px; }
.jg .jg-table-property > .jg-toggle { flex: 0 0 auto; }

.jg.jg-column-dialog { width: 420px; max-width: calc(100vw / var(--ui-zoom, 1) - 32px); max-height: calc(80dvh / var(--ui-zoom, 1)); padding: 14px; border: 1px solid var(--jg-line); border-radius: 8px; background: var(--jg-bg); color: var(--jg-text); font: 14px/1.4 'DM Sans', 'Segoe UI', sans-serif; box-shadow: 0 12px 48px #0006; }
.jg-column-dialog[open] { display: flex; flex-direction: column; gap: 12px; }
.jg-column-dialog::backdrop { background: #0005; }
.jg .jg-column-heading, .jg .jg-column-bulk { display: flex; align-items: center; gap: 8px; flex: none; }
.jg .jg-column-heading strong { font-size: 16px; }
.jg .jg-column-bulk span { margin-right: auto; color: var(--jg-muted); }
.jg .jg-column-heading button { margin-left: auto; }
.jg .jg-column-bulk { font-size: 12px; }
.jg-column-dialog small { color: var(--jg-muted); }
.jg .jg-column-search { flex: none; width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--jg-line); border-radius: 4px; background: var(--jg-bg); color: var(--jg-text); font: inherit; }
.jg .jg-column-list { overflow: auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.jg .jg-column-option { display: flex; align-items: center; gap: 10px; padding: 3px 8px; border: 1px solid var(--jg-line); border-radius: 4px; min-height: 42px; flex: none; }
.jg .jg-column-option-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jg .jg-column-option[data-hidden="true"] .jg-column-option-name { color: var(--jg-muted); }
.jg .jg-column-moves { display: flex; flex-direction: column; }
.jg .jg-column-moves button { display: flex; align-items: center; justify-content: center; height: 20px; width: 26px; padding: 0; line-height: 1; }
.jg .jg-column-eye { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--jg-token-key); }
.jg .jg-column-option[data-hidden="true"] .jg-column-eye { color: var(--jg-muted); }

.jg .jg-column-moves .jg-icon { width: 18px; height: 18px; flex-basis: 18px; stroke-width: 1.8; }
.jg .jg-column-option-name[draggable] { cursor: grab; }
.jg .jg-column-dragging { opacity: .45; }
.jg .jg-column-drop-before { box-shadow: inset 0 2px 0 var(--jg-token-key); }
.jg .jg-column-drop-after { box-shadow: inset 0 -2px 0 var(--jg-token-key); }

.jg .jg-table-action[aria-pressed="true"] { color: var(--jg-token-key); background: var(--jg-head); }

.jg .jg-delete-item { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 2px; margin-left: 4px; vertical-align: middle; color: var(--jg-muted); opacity: 0; pointer-events: none; }
.jg tr:is(:hover, :focus-within):not(:has(.jg-collection:is(:hover, :focus-within))) > th > .jg-delete-item, .jg .jg-delete-item:focus-visible { opacity: 1; pointer-events: auto; }
@media (hover: none) { .jg .jg-delete-item { opacity: 1; pointer-events: auto; } }
.jg .jg-delete-item:hover { color: #e98080; background: #d0444420; }
.jg th.jg-key:has(> .jg-delete-item) { padding-left: 6px; padding-right: 4px; }
.jg-delete-notice { position: fixed; inset: auto auto 24px 50%; transform: translateX(-50%); margin: 0; padding: 10px 14px; border: 1px solid var(--tone-454545,#454545); border-radius: 7px; background: var(--tone-292929,#292929); color: var(--tone-f2f2f2,#f2f2f2); box-shadow: 0 4px 20px #0004; font: 14px/1.4 'DM Sans',sans-serif; }
.jg-delete-notice:popover-open { display: flex; align-items: center; gap: 14px; }
.jg-delete-notice button { border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; padding: 2px 4px; }
.jg-delete-notice button:first-of-type { text-decoration: underline; text-underline-offset: 3px; }

.jg-message-dialog { box-sizing: border-box; width: 440px; max-width: calc(100vw - 32px); max-height: 85vh; padding: 24px; border: 1px solid #42454c; border-radius: 14px; background: #202226; color: #ededf0; box-shadow: 0 24px 80px #0008; font: 14px/1.6 system-ui, sans-serif; }
.jg-message-dialog::backdrop { background: #0008; backdrop-filter: blur(3px); }
.jg-message-dialog h2 { margin: 0 0 12px; font-size: 19px; line-height: 1.3; }
.jg-message-dialog p { margin: 0 0 24px; white-space: pre-wrap; overflow-wrap: anywhere; }
.jg-message-dialog > div { display: flex; justify-content: flex-end; gap: 10px; }
.jg-message-dialog button { padding: 9px 18px; border: 1px solid #62656c; border-radius: 7px; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.jg-message-dialog button:focus-visible { outline: 2px solid #85baff; outline-offset: 3px; }
.jg-message-dialog .jg-message-danger { background: #a8313c; border-color: #c74b57; color: white; }
.jg-message-dialog .jg-message-primary { background: #285c9c; color: white; }
.jg-message-dialog[data-theme="light"] { background: #fff; color: #202226; border-color: #d4d7dc; }

.jg .jg-cell-menu { max-width: min(440px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow: auto; }
.jg .jg-cell-menu button { overflow-wrap: anywhere; white-space: normal; }
.jg .jg-cell-menu button:disabled { opacity: .45; cursor: default; }
.jg td.jg-value-highlight { background-image: linear-gradient(color-mix(in srgb, var(--jg-value-highlight) 24%, transparent), color-mix(in srgb, var(--jg-value-highlight) 24%, transparent)); box-shadow: inset 3px 0 var(--jg-value-highlight); }
