.json-width { width: min(1440px, calc(100% - 2.5rem)); }
.json-explorer .hero { padding-bottom: 2rem; }
.json-section { padding-top: 0; }
.json-input-card, .json-workspace { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.json-input-card { padding: 1.25rem; }
.json-bar, .json-actions, .json-toolbar { display: flex; align-items: center; gap: .75rem; }
.json-bar { justify-content: space-between; flex-wrap: wrap; }
.json-bar label { font-weight: 600; }
.json-private, .json-document-bar { color: var(--muted); font-size: .8rem; }
#json-input { display: block; width: 100%; min-height: 190px; resize: vertical; margin: .8rem 0 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; color: var(--text); font: .87rem/1.7 "IBM Plex Mono", monospace; tab-size: 2; }
.json-actions { flex-wrap: wrap; }
.json-input-actions .utility-hint { max-width: 340px; margin: 0; }
.json-explorer button, .json-explorer input { font-family: inherit; }
.json-explorer button:focus-visible, .json-explorer input:focus-visible, .json-explorer textarea:focus-visible, .json-explorer summary:focus-visible, .json-explorer pre:focus-visible { outline: 2px solid var(--primary-strong); outline-offset: 3px; }
.json-text-button { padding: .5rem .25rem; border: 0; background: transparent; color: var(--muted); font-size: .86rem; text-decoration: underline; text-underline-offset: 4px; }
.json-text-button:hover { color: var(--text); }
.json-input-card.is-dragging { border-color: var(--primary-strong); background: #fff5eb; outline: 3px solid var(--primary); }
.json-error { margin: 1rem 0 0; padding: .75rem; background: #fff0ef; color: #8b2525; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.json-workspace { margin-top: 1.5rem; }
.json-toolbar { flex-wrap: wrap; padding: 1rem; border-bottom: 1px solid var(--line); }
.json-view-switch { display: flex; padding: 3px; border-radius: 8px; background: var(--bg-alt); }
.json-view-switch button { border: 0; padding: .5rem .8rem; border-radius: 6px; background: transparent; color: var(--muted); }
.json-view-switch button[aria-pressed="true"] { background: white; color: var(--text); box-shadow: 0 1px 4px #0001; }
.json-search-label { flex: 1; min-width: 180px; }
#json-search { width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); }
.json-document-bar { padding: .65rem 1rem; background: #f8fafc; border-bottom: 1px solid var(--line); }
#json-source-state { color: #96531f; }
.json-breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.json-breadcrumbs button { max-width: 100%; overflow-wrap: anywhere; background: transparent; border: 0; padding: .2rem .35rem; color: var(--muted); font: .8rem "IBM Plex Mono", monospace; }
.json-breadcrumbs button:last-child { color: #96531f; background: #fff1e4; border-radius: 4px; }
.json-browser { display: flex; min-height: 430px; }
.json-columns { display: flex; flex: 1; overflow-x: auto; min-width: 0; background: #fcfcfd; }
.json-column { flex: 0 0 255px; border-right: 1px solid var(--line); max-height: 600px; overflow-y: auto; padding-bottom: .5rem; }
.json-column-heading { position: sticky; top: 0; margin: 0; padding: .8rem 1rem; background: #f1f3f6; color: var(--muted); font-size: .75rem; font-weight: 500; overflow-wrap: anywhere; z-index: 1; }
.json-row { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .65rem .8rem; text-align: left; border: 0; border-bottom: 1px solid #f1f2f4; background: transparent; color: var(--text); font-size: .83rem; }
.json-row:hover { background: #f1f3f6; }
.json-row.is-selected { background: #fff0e2; box-shadow: inset 3px 0 var(--primary); }
.json-row-key { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: "IBM Plex Mono", monospace; }
.json-row-value { max-width: 95px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .74rem; }
.json-type { display: inline-block; padding: .12rem .35rem; border-radius: 4px; background: #edf0f4; color: #48566c; font: .65rem "IBM Plex Mono", monospace; }
.json-type[data-type="string"] { color: #28704d; background: #eaf5ef; }
.json-type[data-type="number"] { color: #275cb2; background: #eaf1ff; }
.json-type[data-type="boolean"] { color: #80509b; background: #f3ecfa; }
.json-type[data-type="null"] { color: #826341; background: #f4eee5; }
.json-inspector { flex: 0 0 310px; min-width: 0; border-left: 1px solid var(--line); padding: 1rem; background: white; }
.json-inspector h2 { font-size: .9rem; margin: 0; }
.json-path { display: block; overflow-wrap: anywhere; font-size: .74rem; margin: .8rem 0; color: var(--muted); }
.json-small-button { padding: .4rem .6rem; background: white; color: var(--text); border: 1px solid var(--line); border-radius: 5px; font-size: .75rem; }
.json-value { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 330px; overflow: auto; font: .8rem/1.7 "IBM Plex Mono", monospace; }
.json-inspector .utility-hint { font-size: .75rem; }
.json-color { height: 64px; border: 1px solid var(--line); border-radius: 8px; }
#json-preview a { color: #275cb2; text-decoration: underline; overflow-wrap: anywhere; font-size: .8rem; }
.json-tree, .json-code { flex: 1; min-width: 0; margin: 0; padding: 1rem; max-height: 600px; overflow: auto; }
.json-tree details { margin-left: 1rem; }
.json-tree > details { margin-left: 0; }
.json-tree summary { cursor: pointer; padding: .25rem; white-space: nowrap; }
.json-tree summary .json-row { display: inline-flex; width: auto; border: 0; padding: .3rem; vertical-align: middle; }
.json-tree .json-row-value { max-width: 240px; }
.json-code { background: #f8fafc; font: .83rem/1.8 "IBM Plex Mono", monospace; tab-size: 2; }
.json-search-results { max-height: 290px; overflow: auto; border-bottom: 1px solid var(--line); background: #fcfcfd; }
.json-search-results p, .json-empty { padding: .75rem 1rem; margin: 0; font-size: .8rem; color: var(--muted); }
.json-search-results .json-row-key { white-space: normal; overflow-wrap: anywhere; }
.json-message { min-height: 1.5rem; margin: 0; padding: .6rem 1rem; color: var(--muted); border-top: 1px solid var(--line); font-size: .8rem; }
.json-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; color: var(--muted); font-size: .85rem; margin-top: 1.5rem; }
.json-notes strong { display: block; color: var(--text); margin-bottom: .3rem; }
.json-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.json-explorer [hidden] { display: none !important; }
@media (max-width: 900px) { .json-inspector { flex-basis: 260px; } .json-column { flex-basis: 225px; } }
@media (max-width: 650px) { .json-width { width: calc(100% - 1.5rem); } .json-browser { flex-direction: column; } .json-columns { min-height: 280px; } .json-column { max-height: 380px; } .json-inspector { flex-basis: auto; border-left: 0; border-top: 1px solid var(--line); } .json-notes { grid-template-columns: 1fr; gap: 0; } .json-private { font-size: .7rem; } .json-toolbar { gap: .8rem; } .json-search-label { order: 3; flex-basis: 100%; } .json-toolbar > .json-text-button { margin-left: auto; } }
