.json-viewer-page #json-workspace {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "controls" "assessment" "tabs" "panes" "status";
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    height: var(--review-workspace-height, calc(100dvh - 210px));
    min-height: 300px;
}
.json-viewer-page #json-workspace > .workspace-bar { grid-area: controls; }
.json-viewer-page #json-workspace > .json-document-bar { grid-area: assessment; }
.json-viewer-page #json-workspace > .json-workspace-tabs { grid-area: tabs; }
.json-viewer-page #json-workspace > .workspace-grid { grid-area: panes; min-height: 0; }
.json-viewer-page #json-workspace > .status-line { grid-area: status; height: 34px; min-height: 34px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.json-viewer-page #json-workspace [hidden] { display: none !important; }
.json-viewer-page #json-workspace .workspace-pane { height: 100%; min-height: 0; }
.json-viewer-page #json-workspace.is-fullscreen {
    height: 100dvh;
    grid-template-areas: "controls" "assessment" "tabs" "panes" "status";
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}
.json-document-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 38px;
    padding: 5px 11px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 15, 9, .92);
    font-size: 12px;
    line-height: 1.4;
}
.json-document-name { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#json-document-assessment { color: var(--muted); margin-left: auto; flex-shrink: 0; }
.json-document-bar[data-state="success"] #json-document-assessment { color: var(--phosphor-soft); }
.json-document-bar[data-state="warning"] { background: rgba(255, 176, 64, .08); }
.json-document-bar[data-state="warning"] #json-document-assessment { color: #ffe0a3; }
.json-document-bar[data-state="error"] #json-document-assessment { color: #ffd0d0; }
.json-document-bar[data-state="busy"] #json-document-assessment { color: var(--ice); }
#json-assessment-details-button { flex-shrink: 0; min-height: 28px; padding: 4px 7px; font-size: 10px; }
.json-viewer-page .json-assessment-details {
    position: absolute; z-index: 200; right: 10px; width: min(470px, calc(100% - 20px));
    padding: 12px; font-size: 12px; line-height: 1.5; background: #10170f;
    border: 1px solid var(--line); border-radius: 5px; color: #ffe0a3;
    max-height: 380px; overflow: auto; box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
}
.json-assessment-details p { margin: 0; }
.json-viewer-page .json-assessment-details[data-state="error"] { color: #ffd0d0; background: #17120f; }
.json-issue-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.json-viewer-page .json-issue-panel-head h2 { margin: 0; font-size: 12px; }
.json-viewer-page #json-issue-panel-close { min-height: 28px; padding: 3px 7px; font-size: 10px; }
.json-issue-list { margin: 6px 0; padding-left: 20px; }
.json-issue-list:empty { display: none; }
.json-issue-list li::marker { color: #ffb9b9; }
.json-viewer-page .json-issue-list button { display: block; width: 100%; min-height: 28px; padding: 4px 6px; border: 0; background: transparent; color: inherit; font-size: 12px; font-weight: normal; text-transform: none; letter-spacing: 0; text-align: left; white-space: normal; line-height: 1.4; }
.json-viewer-page .json-issue-list button:is(:hover, :focus-visible) { color: var(--ice); background: rgba(126, 215, 255, .06); }
.json-issue-note { color: var(--muted); font-size: 11px; }
.json-repair-support { margin-top: 6px; font-size: 11px; color: var(--muted); }
.json-repair-support > summary { width: fit-content; cursor: pointer; color: var(--ice); }
.json-repair-support p { margin-top: 6px; max-width: 100ch; }
#json-error-highlights { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.json-error-line { position: absolute; left: 0; right: 0; background: rgba(255, 103, 103, .13); border-left: 2px solid #ff9b9b; }
.json-viewer-page #json-format-copy[data-copied="true"] { color: #031006; border-color: var(--phosphor); }
.json-viewer-page #json-format-copy[data-copied="true"]:hover { color: #020602; }
.json-viewer-page .empty-state.review-empty { flex-direction: column; gap: 10px; }
.review-empty p { margin: 0; }
.review-empty button { color: var(--phosphor-soft); font-size: 11px; }
.review-input-sample { display: none; }
.json-viewer-page .tree-node { min-width: 0; }
.json-viewer-page :is(.tree-summary, .tree-leaf, .tree-flat-row) { position: relative; min-width: 0; min-height: 32px; align-items: center; }
.tree-node-content { display: flex; gap: 6px; align-items: baseline; min-width: 0; flex: 1; overflow: hidden; }
.tree-node-content > .tree-key { flex-shrink: 0; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-node-content > .tree-meta { flex-shrink: 0; }
.tree-node-content > :last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.json-viewer-page .tree-node-actions { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); margin: 0; padding: 0; gap: 2px; background: #09150e; border-radius: 3px; opacity: 0; pointer-events: none; }
.json-viewer-page :is(.tree-summary, .tree-leaf, .tree-flat-row):is(:hover, :focus-within) > .tree-node-actions,
.json-viewer-page .source-selected > .tree-leaf > .tree-node-actions,
.json-viewer-page .source-selected > details > .tree-summary > .tree-node-actions,
.json-viewer-page .tree-flat-row.source-selected > .tree-node-actions { opacity: 1; pointer-events: auto; }
.json-viewer-page :is(.tree-summary, .tree-leaf, .tree-flat-row):is(:hover, :focus-within) > .tree-node-content,
.json-viewer-page .source-selected > .tree-leaf > .tree-node-content,
.json-viewer-page .source-selected > details > .tree-summary > .tree-node-content,
.json-viewer-page .tree-flat-row.source-selected > .tree-node-content { padding-right: 98px; }
.json-viewer-page .tree-node-actions button { min-height: 28px; color: var(--muted); }
.json-viewer-page :is(.tree-leaf, .tree-flat-row):focus-visible { outline: 2px solid var(--ice); outline-offset: -2px; }
.json-viewer-page button.tree-preview-toggle {
    display: inline; border: 0; border-radius: 0; background: transparent; min-height: 0; padding: 0;
    font: inherit; text-transform: none; letter-spacing: normal; text-align: left; line-height: inherit;
    text-decoration: underline dotted; text-underline-offset: 4px;
}
.json-viewer-page button.tree-preview-toggle:focus-visible { outline: 2px solid var(--ice); outline-offset: -2px; }
.json-viewer-page button.tree-preview-toggle.tree-string { color: var(--phosphor-soft); }
.json-viewer-page .is-value-expanded { align-items: flex-start; }
.json-viewer-page .is-value-expanded > .tree-node-content { align-items: baseline; flex-wrap: wrap; }
.json-viewer-page .is-value-expanded .tree-preview-toggle { white-space: normal; overflow-wrap: anywhere; flex-basis: 100%; text-overflow: clip; }
@media (min-width: 901px) {
    .json-viewer-page #json-workspace[data-desktop-assessment="true"] {
        grid-template-areas: "controls" "tabs" "panes" "status";
        grid-template-rows: auto auto minmax(0, 1fr) auto;
    }
    .json-viewer-page #json-workspace > .workspace-bar { flex-wrap: nowrap; gap: 12px; }
    .json-viewer-page .json-workspace-heading,
    .json-viewer-page .workspace-actions--inline { flex: 0 0 auto; }
    .json-viewer-page .workspace-bar > .json-document-bar {
        flex: 1 1 0; min-width: 0; min-height: 28px; padding: 0;
        border: 0; background: transparent; gap: 8px; font-size: 11px;
    }
    .json-viewer-page .workspace-bar .json-document-name { flex: 1 1 0; max-width: 200px; }
    .json-viewer-page .workspace-bar #json-document-assessment {
        flex: 0 1 auto; min-width: 0; margin-left: auto;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
}
@media (min-width: 721px) and (max-width: 900px) {
    .json-viewer-page #json-workspace > .workspace-grid { grid-template-rows: minmax(0, .45fr) minmax(0, .55fr); }
}
@media (max-width: 720px) {
    .json-viewer-page #json-issue-panel-close { min-height: 36px; }
    .json-viewer-page .workspace-actions--inline { grid-template-columns: auto minmax(0, 1fr) auto auto 44px; }
    .json-viewer-page .json-issue-list button { min-height: 38px; font-size: 11px; }
    .json-viewer-page .review-input-sample { display: inline-flex; position: absolute; z-index: 3; bottom: 12px; right: 12px; min-height: 40px; color: var(--phosphor-soft); font-size: 11px; }
    .json-document-bar { flex-wrap: wrap; gap: 3px 8px; padding: 6px 8px; font-size: 11px; }
    .json-document-name { max-width: 38%; }
    #json-document-assessment { flex-shrink: 1; }
    #json-assessment-details-button { min-height: 32px; margin-left: auto; }
    .json-viewer-page :is(.tree-summary, .tree-leaf, .tree-flat-row) { min-height: 40px; }
    .json-viewer-page .tree-node-actions button { min-height: 36px; }
    .json-viewer-page #json-workspace > .status-line { font-size: 11px; padding: 6px 8px; }
}
@media (max-width: 360px) {
    .json-viewer-page .workspace-actions--inline { grid-template-columns: 44px minmax(0, 1fr) 44px 44px 44px; gap: 3px; }
    .json-viewer-page .workspace-actions--inline > button,
    .json-viewer-page .workspace-actions--inline .json-workspace-menu > summary { font-size: 10px; padding-inline: 3px; }
    .json-document-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; }
    .json-document-name { max-width: none; grid-column: 1; }
    #json-document-assessment { grid-column: 1; grid-row: 2; margin-left: 0; font-size: 10px; }
    #json-assessment-details-button { grid-column: 2; grid-row: 1 / 3; margin-left: 0; }
}
