.json-main {
  padding-top: 48px;
  padding-bottom: 50px;
}
.header nav {
  align-items: center;
}
.tool-badge {
  color: #9cdfca;
  border: 1px solid #53e3bd44;
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.json-intro h1 {
  font-size: clamp(2.3rem, 4.3vw, 3.7rem);
  margin-bottom: 20px;
}
.json-intro .eyebrow {
  margin-bottom: 20px;
}
.json-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 660px;
}
.privacy-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8fcbb8;
  font-size: 0.8rem;
  margin-top: 18px;
}
.privacy-line > span {
  font-size: 1.15rem;
}
.workbench-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 35px 0 18px;
}
.mode-switch {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: #111e32;
  border: 1px solid #2a3a52;
  border-radius: 9px;
}
button,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.mode-switch button {
  border: 0;
  background: transparent;
  color: #a7b5c9;
  padding: 11px 17px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 550;
}
.mode-switch [aria-pressed="true"] {
  color: #091224;
  background: #53e3bd;
}
.utility-actions {
  display: flex;
  gap: 18px;
}
.quiet {
  border: 0;
  padding: 9px 0;
  background: none;
  color: #b5c6d9;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.input-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.comparing .input-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.input-panel {
  border: 1px solid #35465d;
  border-radius: 10px;
  overflow: hidden;
  background: #0b1526;
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #132036;
  border-bottom: 1px solid #2b3c55;
  padding: 14px 18px;
}
.panel-heading label {
  font-size: 0.88rem;
  font-weight: 600;
}
.panel-heading > span {
  font:
    0.72rem ui-monospace,
    monospace;
  color: #8d9fb7;
}
textarea {
  display: block;
  width: 100%;
  resize: vertical;
  color: #d4e4ee;
  background: #0b1526;
  border: 0;
  padding: 20px;
  font:
    0.88rem/1.7 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  tab-size: 2;
  min-height: 200px;
}
textarea::placeholder {
  color: #70849f;
  opacity: 1;
}
textarea[aria-invalid="true"] {
  box-shadow: inset 3px 0 #ee9b97;
}
button:focus-visible,
textarea:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}
textarea:focus-visible {
  outline-offset: -3px;
}
.input-error {
  color: #ffb9b3;
  padding: 12px 18px;
  margin: 0;
  border-top: 1px solid #733c41;
  background: #351f2a;
  font-size: 0.86rem;
  line-height: 1.6;
}
.run-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
.options {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #afbdd0;
  font-size: 0.84rem;
}
.options select {
  color: #d4e4ee;
  background: #132036;
  border: 1px solid #35465d;
  border-radius: 6px;
  padding: 9px 30px 9px 12px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #a7b5c9 50%),
    linear-gradient(135deg, #a7b5c9 50%, transparent 50%);
  background-repeat: no-repeat;
  background-position:
    right 14px center,
    right 9px center;
  background-size: 5px 5px;
}
.check-option {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.check-option input {
  accent-color: #53e3bd;
  width: 17px;
  height: 17px;
}
.run-actions {
  display: flex;
  gap: 10px;
}
.button {
  border: 0;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 7px;
  font-size: 0.87rem;
}
button.secondary {
  color: #d4e4ee;
  border: 1px solid #46536a;
  background: transparent;
}
button.primary {
  color: #091224;
}
.input-help {
  font-size: 0.78rem;
  color: #8f9fb6;
  line-height: 1.65;
  margin-top: 15px;
}
.results {
  margin-top: 35px;
  border: 1px solid #324a5b;
  border-radius: 12px;
  background: #101b2d;
  padding: 26px;
}
.results-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.results h2 {
  font-size: 1.65rem;
  margin-bottom: 10px;
}
h2:focus {
  outline: none;
}
.results .eyebrow {
  font-size: 0.65rem;
  margin-bottom: 10px;
}
#result-summary {
  color: #a7b5c9;
  font-size: 0.86rem;
  margin-bottom: 0;
  line-height: 1.7;
}
.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#json-output {
  border: 1px solid #2d3e56;
  border-radius: 8px;
  max-height: 660px;
}
#filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#filters button {
  background: none;
  color: #b9c9dc;
  border: 1px solid #40516a;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
}
#filters [aria-pressed="true"] {
  color: #a7f5df;
  background: #153a36;
  border-color: #53e3bd;
}
.path-help {
  font-size: 0.75rem;
  color: #91a3bb;
  line-height: 1.7;
  margin: 18px 0;
}
.change {
  border: 1px solid #34465c;
  border-radius: 8px;
  margin-top: 16px;
  overflow: hidden;
}
.change-heading {
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #142238;
}
.change-heading h3 {
  font:
    0.85rem/1.6 ui-monospace,
    monospace;
  margin: 0;
  overflow-wrap: anywhere;
}
.change-kind {
  flex: none;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  background: #1f3e3c;
  color: #93e4ca;
}
.change[data-kind="removed"] .change-kind {
  background: #4d2d38;
  color: #ffc3c1;
}
.change[data-kind="changed"] .change-kind {
  background: #493e2b;
  color: #f5d399;
}
.change[data-kind="type"] .change-kind {
  background: #3e3459;
  color: #d3c2f5;
}
.change-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.change-values > div {
  padding: 14px 16px;
  min-width: 0;
}
.change-values > div + div {
  border-left: 1px solid #2e3f54;
}
.change-values h4 {
  color: #93a7bf;
  font-size: 0.7rem;
  margin: 0 0 8px;
  font-weight: 450;
}
.change-values pre {
  color: #d3dfeb;
  font:
    0.8rem/1.65 ui-monospace,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 300px;
  overflow-y: auto;
  margin: 0;
}
.empty-comparison {
  padding: 28px 0 12px;
  color: #a7f5df;
  font-size: 1rem;
}
.tool-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-top: 1px solid #263248;
  padding-top: 30px;
  margin-top: 44px;
}
.tool-notes h2 {
  font-size: 1rem;
  margin-bottom: 12px;
}
.tool-notes p,
.feedback {
  color: #8fa2bc;
  font-size: 0.84rem;
  line-height: 1.8;
}
.feedback {
  margin-top: 25px;
}
.feedback a {
  color: #87d9c2;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#status {
  position: sticky;
  bottom: 12px;
  background: #132c32;
  border: 1px solid #3b7565;
  border-radius: 8px;
  padding: 12px 16px;
  color: #b9eadb;
  font-size: 0.85rem;
  line-height: 1.6;
}
#status:empty {
  display: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  .json-main {
    padding-top: 30px;
  }
  .header nav {
    width: auto;
    gap: 16px;
  }
  .workbench-top {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }
  .mode-switch {
    width: 100%;
  }
  .mode-switch button {
    flex: 1;
  }
  .utility-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .comparing .input-grid {
    grid-template-columns: 1fr;
  }
  .run-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .run-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .results {
    padding: 20px 16px;
  }
  .results-heading {
    flex-direction: column;
    gap: 16px;
  }
  .tool-notes {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .change-values {
    grid-template-columns: 1fr;
  }
  .change-values > div + div {
    border-left: 0;
    border-top: 1px solid #2e3f54;
  }
  textarea {
    padding: 16px;
    font-size: 0.83rem;
  }
}

@media (max-width: 700px) {
  .input-panel textarea {
    height: 240px;
    min-height: 160px;
  }
}

.source-link {
  font-size: 0.8rem;
  margin-top: 22px;
}
.source-link a {
  color: #8acbb8;
  text-decoration: underline;
  text-underline-offset: 4px;
}
