.tool-page-body--json-diff {
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.10), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fb 38%, #eef3f9 100%);
}

.tool-page-body--json-diff::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 88%);
  pointer-events: none;
  z-index: 0;
}

.tool-page-body--json-diff .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.tool-page-body--json-diff .site-main,
.tool-page-body--json-diff .site-footer {
  position: relative;
  z-index: 1;
}

.site-main--tool {
  width: 100%;
  max-width: none;
}

.tool-page-shell {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

.tool-page-shell--seo {
  padding-bottom: 12px;
}

.tool-page-heading--premium {
  padding: 28px 0 18px;
}

.tool-page-heading--premium .tool-page-heading-inner {
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(224, 231, 255, 0.82);
  border-radius: 36px;
  padding: 34px 34px 30px;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.14), transparent 22%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 250, 255, 0.92) 100%);
  box-shadow:
    0 30px 80px rgba(79, 70, 229, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.tool-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: stretch;
}

.tool-hero-copy {
  min-width: 0;
}

.tool-page-heading--premium .tool-page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tool-page-heading--premium .tool-page-title {
  margin-top: 18px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.tool-page-heading--premium .tool-page-desc {
  margin-top: 14px;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.8;
  color: #475569;
}

.hero-pill-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(207, 214, 225, 0.88);
  box-shadow: 0 8px 24px rgba(26, 29, 36, 0.05);
  color: #586476;
  font-size: 13px;
  font-weight: 500;
}

.hero-action-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
}

.hero-action--primary {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.28);
}

.hero-action--ghost {
  color: #435168;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(207, 214, 225, 0.88);
}

.hero-flow {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-flow-item {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-flow-item strong {
  display: block;
  font-size: 12px;
  color: #4f46e5;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.hero-flow-item span {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

.tool-hero-side {
  display: grid;
  gap: 14px;
}

.hero-side-card {
  padding: 20px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.hero-side-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #728096;
}

.hero-side-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.hero-side-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-side-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.hero-side-item span {
  font-size: 13px;
  line-height: 1.7;
  color: #657287;
}

.hero-side-card--stats {
  background:
    radial-gradient(circle at top right, rgba(79, 70, 229, 0.08), transparent 34%),
    linear-gradient(160deg, rgba(244, 247, 255, 0.94) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.hero-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-stat {
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.hero-stat strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.hero-stat span {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: #718097;
}

.workspace-shell {
  margin-top: 24px;
  padding: 16px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, rgba(245, 249, 255, 0.82) 100%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
}

.workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 6px 18px;
}

.workspace-title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.workspace-desc {
  margin-top: 6px;
  font-size: 13px;
  color: #728096;
}

.workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 380px;
  gap: 16px;
  min-height: 620px;
}

.panel,
.editor-stage,
.output-panel {
  min-width: 0;
  min-height: 0;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.panel {
  overflow: hidden;
}

.panel-scroll {
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.panel-section {
  padding: 20px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
}

.panel-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8799;
}

.section-label-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.12);
  color: #4f46e5;
  font-size: 11px;
  font-weight: 600;
}

.hint-text {
  font-size: 12px;
  color: #7a8799;
  margin-top: 10px;
  line-height: 1.7;
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #8b5cf6 0%, #22d3ee 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
  box-shadow: 0 16px 32px rgba(34, 211, 238, 0.16);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(34, 211, 238, 0.2);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: rgba(148, 163, 184, 0.4);
  color: rgba(255, 255, 255, 0.8);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(207, 214, 225, 0.92);
  background: #fff;
  color: #5d6b7f;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
}

.btn-secondary:hover {
  border-color: rgba(79, 70, 229, 0.24);
  color: #243146;
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.editor-stage {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 14px;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.96) 100%);
  overflow: hidden;
}

.editor-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 6px;
}

.editor-stage-title {
  font-size: 16px;
  font-weight: 700;
}

.editor-stage-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: #7a8799;
}

.editor-stage-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
}

.editor {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.editor-title {
  font-size: 12px;
  color: #7a8799;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.editor-meta {
  font-size: 12px;
  color: #8a96a8;
}

.editor-shell {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  border: 1px solid rgba(207, 214, 225, 0.92);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.editor-shell:focus-within {
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.10);
}

.line-numbers {
  padding: 12px 8px 12px 10px;
  background: #f8fafc;
  border-right: 1px solid rgba(226, 232, 240, 0.92);
  color: #94a3b8;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  overflow: hidden;
  white-space: pre;
}

.editor-input {
  flex: 1;
  min-height: 260px;
  resize: vertical;
  overflow: auto;
  padding: 12px;
  border: none;
  background: #fff;
  outline: none;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  color: #1e293b;
  min-width: 0;
}

.output-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  overflow-y: auto;
}

.diff-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

#diff-summary {
  font-size: 12px;
  color: #8a96a8;
  font-weight: 500;
}

#diff-summary.is-neutral {
  color: #8a96a8;
}

#diff-summary.is-success {
  color: #15803d;
}

#diff-summary.is-danger {
  color: #dc2626;
}

#copy-btn {
  width: auto;
  flex-shrink: 0;
  min-height: 36px;
  padding: 8px 14px;
}

.diff-output {
  flex: 1;
  border: 1px solid rgba(207, 214, 225, 0.92);
  border-radius: 16px;
  background: #fff;
  overflow: auto;
  min-height: 0;
}

.empty-output {
  padding: 16px 14px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6;
}

.diff-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--mono);
  font-size: 12px;
}

.diff-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  padding: 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
  text-align: left;
}

.diff-table tbody td {
  padding: 10px;
  border-bottom: 1px solid rgba(228, 231, 236, 0.75);
  vertical-align: top;
  white-space: pre-wrap;
  word-break: break-word;
}

.diff-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.diff-status--added {
  background: rgba(46, 204, 113, 0.14);
  color: #15803d;
}

.diff-status--removed {
  background: rgba(255, 59, 59, 0.12);
  color: #dc2626;
}

.diff-status--changed {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.diff-path {
  color: #4f46e5;
}

.diff-value {
  color: #1e293b;
}

.value-added {
  background: rgba(46, 204, 113, 0.10);
}

.value-removed {
  background: rgba(255, 59, 59, 0.10);
}

.value-changed {
  background: rgba(245, 158, 11, 0.08);
}

.seo-content-section {
  margin-top: 26px;
  padding: 0 0 36px;
  background: transparent;
}

.detail-insight-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.detail-story-card,
.detail-faq-card {
  border-radius: 30px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.detail-story-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.08);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.detail-story-title {
  margin: 16px 0 10px;
  font-size: 28px;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.detail-story-text {
  margin: 0;
  color: #475569;
  line-height: 1.9;
  font-size: 15px;
}

.detail-benefit-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-benefit {
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-benefit strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.detail-benefit span {
  color: #475569;
  font-size: 13px;
  line-height: 1.8;
}

.detail-faq-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.detail-faq-item {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 18px;
}

.detail-faq-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.detail-faq-item span {
  color: #475569;
  line-height: 1.8;
  font-size: 13px;
}

@media (max-width: 1240px) {
  .tool-hero-grid {
    grid-template-columns: 1fr;
  }

  .detail-insight-grid {
    grid-template-columns: 1fr;
  }

  .workspace {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .output-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .tool-page-heading--premium .tool-page-heading-inner {
    padding: 24px 18px 20px;
    border-radius: 24px;
  }

  .hero-flow,
  .hero-stats,
  .detail-benefit-grid,
  .workspace {
    grid-template-columns: 1fr;
  }

  .workspace-shell {
    padding: 12px;
    border-radius: 24px;
  }

  .workspace-topbar,
  .editor-stage-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-scroll,
  .output-panel {
    overflow: visible;
  }

  .workspace {
    min-height: auto;
  }

  .editor-stage-area {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tool-page-shell {
    padding: 0 14px;
  }

  .tool-page-heading--premium {
    padding: 16px 0 10px;
  }

  .tool-page-heading--premium .tool-page-title {
    font-size: 30px;
  }

  .tool-page-heading--premium .tool-page-desc {
    font-size: 14px;
  }

  .hero-pill-row,
  .hero-action-row {
    gap: 8px;
  }

  .hero-action {
    width: 100%;
  }

  .panel-section,
  .detail-story-card,
  .detail-faq-card {
    padding: 16px;
  }

  .detail-benefit-grid {
    grid-template-columns: 1fr;
  }
}
