@font-face { font-family: Manrope; src: url('./assets/manrope-latin-variable.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
:root { color-scheme: light; --paper: #fafaf8; --ink: #26272b; --muted: #60636b; --accent: #3553d8; --rule: #dcdedc; --soft: #f0f1ee; --green: #16704c; --red: #a72c39; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 450 14px/1.5 Manrope, Arial, sans-serif; letter-spacing: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: 0; }
button, a, input, select, textarea, [tabindex] { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
h1, h2, p { margin: 0; }
.icon { width: 18px; height: 18px; flex-shrink: 0; display: block; }
.skip-link { position: fixed; left: 12px; top: 8px; padding: 10px; background: white; transform: translateY(-160%); z-index: 30; }
.skip-link:focus { transform: none; }
.app-header { height: 66px; padding: 0 28px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--rule); }
.brand { font-size: 24px; font-weight: 750; }
.brand span { color: var(--accent); }
.product { font-weight: 650; padding-left: 20px; border-left: 1px solid var(--rule); font-size: 17px; }
.privacy { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--green); margin-left: auto; }
.status-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.ecosystem { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.app-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: calc(100dvh - 66px); }
.catalog { border-right: 1px solid var(--rule); padding: 24px 16px; }
.search-box { height: 40px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--rule); border-radius: 5px; background: white; padding: 0 9px; }
.search-box input { min-width: 0; width: 100%; border: 0; background: transparent; font-size: 12px; padding: 5px 0; }
#tool-nav { display: grid; gap: 3px; margin-top: 20px; }
.nav-tool { display: flex; align-items: center; gap: 12px; min-height: 42px; text-align: left; border: 0; background: transparent; border-radius: 5px; padding: 9px 10px; font-size: 12px; }
.nav-tool:hover { background: var(--soft); }
.nav-tool[aria-current='page'] { background: #e8ecfc; color: #253ca5; font-weight: 700; }
#catalog-empty { padding-top: 16px; color: var(--muted); }
main { min-width: 0; padding: 27px 30px 32px; }
.workspace-heading { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
h1 { font-size: 24px; line-height: 1.25; font-weight: 720; }
.limit { color: var(--muted); font-size: 11px; text-align: right; }
.controls { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; min-height: 44px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.command, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 5px; background: white; font-size: 12px; font-weight: 600; position: relative; }
.command span { overflow-wrap: anywhere; }
.command:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: var(--soft); border-color: #a6aaa7; }
.command.primary { background: var(--accent); border-color: var(--accent); color: white; }
.command.primary .icon { filter: invert(1); }
.command.primary:hover:not(:disabled) { background: #2943bc; }
.icon-button { width: 38px; height: 38px; flex: 0 0 38px; padding: 8px; }
.tooltip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 5px 8px; border-radius: 3px; font-size: 11px; white-space: nowrap; z-index: 10; pointer-events: none; }
.icon-button:hover .tooltip, .icon-button:focus-visible .tooltip { display: block; }
.field { display: grid; gap: 4px; font-size: 11px; color: var(--muted); min-width: 0; }
input:not([type='checkbox']), select { border: 1px solid var(--rule); border-radius: 5px; background: white; height: 38px; padding: 7px 9px; }
.field input[type='number'] { width: 94px; }
.color-field input { width: 54px; padding: 3px; }
.tool-status { min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.tool-status.error { color: var(--red); }
.tool-status.success { color: var(--green); }
.location-button { border: 0; border-bottom: 1px dotted currentColor; padding: 0; color: inherit; background: transparent; font-size: 12px; }
.editor-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.editor-panel { min-width: 0; background: white; }
.editor-panel + .editor-panel { border-left: 1px solid var(--rule); }
.panel-head { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.panel-head h2, .panel-head label { font-size: 12px; font-weight: 700; }
.panel-actions { display: flex; align-items: center; gap: 4px; }
.panel-actions .icon-button { width: 32px; height: 32px; min-height: 32px; flex-basis: 32px; padding: 6px; }
.editor { display: block; width: 100%; height: max(330px, calc(100dvh - 335px)); max-height: 850px; border: 0; resize: vertical; background: white; padding: 17px 16px; font: 13px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; border-radius: 0; white-space: pre; overflow: auto; }
.editor:focus { outline-offset: -2px; }
.editor[aria-invalid='true'] { box-shadow: inset 3px 0 var(--red); }
.editor[readonly] { background: #fdfdfc; }
.panel-foot { min-height: 28px; padding: 5px 12px; border-top: 1px solid var(--rule); font-size: 10px; color: var(--muted); }
.result-surface { min-height: 330px; height: max(330px, calc(100dvh - 335px)); max-height: 850px; overflow: auto; }
.empty-result { padding: 22px 16px; color: #777b81; font-size: 12px; }
.segmented { display: inline-flex; border-bottom: 1px solid var(--rule); gap: 2px; flex-wrap: wrap; }
.segmented button { background: transparent; border: 0; border-bottom: 2px solid transparent; min-height: 38px; padding: 7px 10px; font-size: 12px; }
.segmented button[aria-pressed='true'] { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.output-tabs { padding: 0 10px; background: var(--paper); }
.tree-toolbar { display: flex; gap: 5px; padding: 10px; align-items: center; flex-wrap: wrap; }
.tree-toolbar input { flex: 1; min-width: 120px; width: 120px; }
.tree-count { display: block; padding: 0 12px 8px; color: var(--muted); font-size: 11px; }
.json-tree { overflow: auto; padding: 4px 8px; font: 12px/1.8 ui-monospace, SFMono-Regular, Consolas, monospace; }
.tree-row { display: flex; align-items: flex-start; min-height: 28px; padding: 3px 5px; cursor: pointer; gap: 5px; }
.tree-row[aria-selected='true'] { background: #e8ecfc; outline-offset: -2px; }
.tree-row.match .tree-key { background: #fbefc8; }
.tree-indent { display: inline-flex; flex-shrink: 0; }
.tree-indent > span { width: 10px; }
.tree-arrow { width: 14px; flex-shrink: 0; color: var(--muted); text-align: center; }
.tree-key { color: #333a52; overflow-wrap: anywhere; min-width: 0; }
.tree-value { color: #60636b; overflow-wrap: anywhere; min-width: 0; }
.type-string { color: #187349; } .type-number { color: #9d5520; } .type-boolean { color: #3553d8; }
.pager { display: flex; align-items: center; justify-content: center; padding: 10px; gap: 14px; font-size: 11px; }
.node-path { display: block; border-top: 1px solid var(--rule); padding: 8px 12px; font: 11px/1.5 monospace; overflow-wrap: anywhere; }
.diff-result { margin-top: 22px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.diff-scroll { overflow: auto; max-height: 520px; }
.diff-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.diff-cell { min-width: 0; display: flex; gap: 10px; font: 12px/1.7 monospace; border-bottom: 1px solid #edf0ec; padding: 3px 10px; }
.diff-cell + .diff-cell { border-left: 1px solid var(--rule); }
.diff-cell pre { margin: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.line-number { min-width: 30px; text-align: right; color: var(--muted); user-select: none; flex-shrink: 0; }
.diff-cell.added { background: #e7f4ec; color: #185b35; } .diff-cell.removed { background: #fcecee; color: #962335; }
.diff-symbol { width: 9px; flex-shrink: 0; }
.pattern-field { flex: 1 1 300px; }
.pattern-field input { width: 100%; font-family: monospace; }
.flag-set { display: flex; flex-wrap: wrap; gap: 8px; min-height: 38px; align-items: center; border: 0; padding: 0; margin: 0; }
.flag-set legend { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.flag-set label { display: flex; align-items: center; gap: 2px; font-family: monospace; font-size: 12px; }
input[type='checkbox'] { accent-color: var(--accent); width: 16px; height: 16px; }
.highlighted { padding: 16px; margin: 0; font: 13px/1.8 monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
mark { background: #dcebdd; color: #155237; padding: 1px 0; }
.zero-match { display: inline-block; width: 2px; height: 1.2em; background: #ad5724; vertical-align: text-bottom; }
.table-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: 11px; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: var(--soft); font-weight: 600; }
td { font-family: monospace; overflow-wrap: anywhere; max-width: 300px; white-space: pre-wrap; }
.qr-result { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 16px; }
.qr-result canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: 500px; image-rendering: pixelated; }
.qr-meta { font-size: 11px; color: var(--muted); }
.notification { position: fixed; bottom: 18px; right: 18px; padding: 10px 16px; border: 1px solid var(--rule); border-radius: 5px; background: var(--ink); color: white; max-width: calc(100% - 36px); font-size: 12px; z-index: 50; }
.noscript { padding: 16px; }
.clipboard-fallback { position: fixed; top: 0; left: -10000px; width: 200px; height: 100px; }
.diff-editor { height: 220px; }
@media (min-width: 1600px) { main { padding: 30px 42px; } }
@media (max-width: 1000px) { .app-layout { grid-template-columns: 196px minmax(0, 1fr); } main { padding: 22px 18px; } .catalog { padding-inline: 12px; } .limit { max-width: 180px; } }
@media (max-width: 760px) {
  .app-header { height: 58px; padding: 0 16px; gap: 12px; } .brand { font-size: 21px; } .product { font-size: 14px; padding-left: 12px; } .ecosystem { display: none; }
  .app-layout { display: block; } .catalog { padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .search-box { height: 34px; } .search-box input { height: 30px; border: 0; }
  #tool-nav { display: flex; overflow-x: auto; gap: 4px; margin-top: 8px; padding-bottom: 4px; }
  .nav-tool { flex: 0 0 auto; min-height: 38px; padding: 8px 10px; gap: 6px; }
  main { padding: 18px 16px 28px; } .workspace-heading { align-items: start; margin-bottom: 14px; } h1 { font-size: 21px; } .limit { font-size: 10px; max-width: 145px; }
  .controls { gap: 8px; } .command { min-height: 38px; padding: 8px 10px; }
  .editor-pair { grid-template-columns: minmax(0, 1fr); } .editor-panel + .editor-panel { border-left: 0; border-top: 1px solid var(--rule); }
  .editor { height: 260px; min-height: 160px; } .result-surface { height: 320px; min-height: 220px; }
  .tooltip { left: auto; right: 0; transform: none; }
  .diff-cell { padding: 4px 5px; gap: 4px; font-size: 11px; } .line-number { min-width: 18px; }
  .pattern-field { flex-basis: 100%; } .tool-status { align-items: start; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
