:root {
  --ice-50: #f0f9ff;
  --ice-100: #e0f2fe;
  --ice-200: #bae6fd;
  --ice-300: #7dd3fc;
  --ice-400: #38bdf8;
  --ice-500: #0ea5e9;
  --ice-600: #0284c7;
  --ice-700: #0369a1;
  --ice-800: #075985;
  --ice-900: #0c4a6e;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --shadow-soft: 0 4px 20px -2px rgba(14, 165, 233, 0.05);
  --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-inner-soft: inset 0 2px 4px 0 rgba(14, 165, 233, 0.03);
  --violet-500: #8b5cf6;
  --violet-700: #6d28d9;
  --orange-400: #fb923c;
}

@keyframes site-orb-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-20px, 14px) scale(1.12);
  }
}

@keyframes site-orb-drift-alt {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(18px, -12px) scale(1.08);
  }
}

@keyframes site-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

* {
  box-sizing: border-box;
}

html,
body,
.app-root {
  margin: 0;
  min-height: 100vh;
}

body {
  font-family:
    'Inter',
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  background:
    radial-gradient(ellipse 70% 50% at 8% -8%, rgba(14, 165, 233, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(139, 92, 246, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 30% at 90% 100%, rgba(249, 115, 22, 0.06), transparent 50%),
    var(--slate-50);
  color: var(--slate-800);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ice-200);
  color: var(--ice-900);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--ice-200);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ice-300);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* ── Content pages (about, blog) ── */

.content-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.content-page__body {
  flex: 1;
  width: min(800px, 100%);
  margin: 0 auto;
  padding: 24px 16px;
}

.content-page__card {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1px solid var(--ice-100);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: var(--shadow-card), 0 20px 40px -28px rgba(14, 165, 233, 0.35);
}

.content-page__card h1 {
  margin-top: 0;
  color: var(--slate-900);
}

.content-page__card h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.125rem;
  color: var(--slate-900);
}

.content-page__card p,
.content-page__card li {
  color: var(--slate-600);
  line-height: 1.65;
}

.content-page__card ul {
  padding-left: 20px;
}

.content-page__card dl {
  margin: 0;
  padding: 0;
}

.content-page__card dt {
  font-weight: 600;
  color: var(--slate-800);
  margin-top: 16px;
  margin-bottom: 2px;
}

.content-page__card dl dt:first-child {
  margin-top: 0;
}

.content-page__card dd {
  margin-left: 0;
  margin-inline-start: 0;
  color: var(--slate-600);
  line-height: 1.65;
}

.content-page__card a {
  color: var(--ice-600);
  text-decoration: none;
}

.content-page__card a:hover {
  color: var(--ice-700);
}

.content-page__back {
  margin-top: 28px;
  margin-bottom: 0;
}

.content-page__body--wide {
  width: min(1024px, 100%);
  padding: 48px 16px;
}

.content-page__wide {
  width: 100%;
}

@media (min-width: 768px) {
  .content-page__body--wide {
    padding: 64px 24px;
  }
}

/* ── Header ── */

.app-header {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ice-100);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow:
    0 1px 2px 0 rgba(0, 0, 0, 0.04),
    0 8px 24px -20px rgba(14, 165, 233, 0.45);
}

.app-header__inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.header-brand__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ice-400), var(--violet-500));
  box-shadow: 0 6px 14px -4px rgba(14, 165, 233, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.header-brand__icon svg {
  width: 20px;
  height: 20px;
}

.header-brand__text {
  min-width: 0;
}

.header-brand__title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.025em;
  color: var(--slate-900);
  line-height: 1.2;
  margin: 0;
}

.header-brand__subtitle {
  font-size: 10px;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin: 0;
}

.header-logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.025em;
  color: var(--slate-900);
  text-decoration: none;
}

.header-logo:hover {
  color: var(--ice-600);
}

.header-nav {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--slate-100);
  border-radius: 8px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  flex-shrink: 1;
  min-width: 0;
}

.header-nav--desktop {
  display: none;
}

@media (min-width: 768px) {
  .header-nav--desktop {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    overflow: visible;
  }
}

.header-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--slate-600);
  cursor: pointer;
  flex-shrink: 0;
}

.header-menu-btn:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.header-menu-btn svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .header-menu-btn {
    display: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Locale switcher ── */

.locale-switcher {
  position: relative;
  flex-shrink: 0;
}

.locale-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: #fff;
  color: var(--slate-600);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.locale-switcher__btn:hover {
  border-color: var(--ice-300);
  color: var(--ice-700);
  background: var(--ice-50);
}

.locale-switcher__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.locale-switcher__code {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.locale-switcher__arrow {
  width: 12px;
  height: 12px;
  color: var(--slate-400);
  transition: transform 0.2s;
}

.locale-switcher__arrow--open {
  transform: rotate(180deg);
}

.locale-switcher__menu {
  position: fixed;
  min-width: 148px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 4px;
  z-index: 200;
}

.locale-switcher__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 13px;
  color: var(--slate-700);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  gap: 8px;
  text-decoration: none;
  box-sizing: border-box;
}

.locale-switcher__item:hover {
  background: var(--ice-50);
  color: var(--ice-700);
}

.locale-switcher__item.active {
  background: var(--ice-100);
  color: var(--ice-700);
  font-weight: 600;
}

.locale-switcher__item-name {
  flex: 1;
}

.locale-switcher__check {
  width: 14px;
  height: 14px;
  color: var(--ice-600);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .locale-switcher__code {
    display: none;
  }

  .locale-switcher__btn {
    padding: 0 8px;
    width: 36px;
    justify-content: center;
  }

  .locale-switcher__arrow {
    display: none;
  }
}

.header-nav-mobile {
  display: block;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--slate-100);
  background: rgba(255, 255, 255, 0.98);
}

@media (min-width: 768px) {
  .header-nav-mobile {
    display: none !important;
  }
}

.header-nav-mobile__group {
  margin-bottom: 12px;
}

.header-nav-mobile__group:last-child {
  margin-bottom: 0;
}

.header-nav-mobile__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-400);
  margin: 0 0 8px;
}

.header-nav-mobile__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tab-btn--mobile {
  justify-content: center;
  padding: 10px 8px;
  font-size: 13px;
  width: 100%;
}

.tab-btn--mobile-full {
  width: 100%;
}

@media (max-width: 380px) {
  .header-nav-mobile__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.header-nav__sep {
  width: 1px;
  height: 20px;
  background: var(--slate-300);
  margin: 0 4px;
  flex-shrink: 0;
}

.tab-btn {
  padding: 6px 16px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.tab-btn:hover {
  color: var(--ice-800);
  background: var(--ice-50);
}

.tab-btn.active {
  background: var(--ice-100);
  color: var(--ice-700);
  font-weight: 600;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.tab-btn__arrow {
  width: 12px;
  height: 12px;
  color: var(--slate-400);
}

.convert-dropdown {
  position: relative;
  flex-shrink: 0;
}

.convert-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 120px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: 4px;
  z-index: 200;
}

.convert-dropdown__menu[hidden] {
  display: none;
}

.convert-dropdown__item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 13px;
  color: var(--slate-700);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.convert-dropdown__item:hover {
  background: var(--ice-50);
  color: var(--ice-700);
}

.convert-dropdown__item.active {
  background: var(--ice-100);
  color: var(--ice-700);
  font-weight: 600;
}

/* ── Hero ── */

.app-hero {
  background: linear-gradient(to bottom, var(--ice-50), #fff);
  padding: 40px 24px 24px;
  text-align: center;
  flex-shrink: 0;
}

.app-hero__inner {
  max-width: 896px;
  margin: 0 auto;
}

.app-hero__title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 16px;
}

.app-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--slate-600);
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
  max-width: 640px;
  margin-inline: auto;
}

/* ── Main ── */

.app-main {
  flex: 1;
  width: min(1800px, 100%);
  margin: 0 auto;
  padding: 16px 24px 24px;
}

.tool-workbench {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Panels ── */

.panel-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.panel-card:hover {
  border-color: var(--ice-200);
  box-shadow: var(--shadow-soft), 0 16px 32px -18px rgba(14, 165, 233, 0.35);
}

.panel-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 48px;
  border-bottom: 1px solid var(--slate-100);
  background: rgba(248, 250, 252, 0.8);
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-700);
}

.panel-card__body {
  min-height: 360px;
}

.editor-textarea {
  display: block;
  width: 100%;
  min-height: 360px;
  height: 360px;
  border: none;
  outline: none;
  resize: none;
  overflow: auto;
  padding: 16px;
  font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  tab-size: 2;
  background: #fafafa;
  color: var(--slate-800);
}

.editor-textarea::placeholder {
  color: var(--slate-400);
}

.editor-textarea--error {
  background: #fef2f2;
}

.output-pre {
  margin: 0;
  padding: 16px;
  min-height: 360px;
  height: 360px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  overflow: auto;
  background: rgba(248, 250, 252, 0.5);
  box-shadow: var(--shadow-inner-soft);
  color: var(--slate-700);
}

.output-pre--highlight {
  white-space: pre;
}

.json-hl-string { color: #059669; }
.json-hl-number { color: #d97706; }
.json-hl-boolean { color: #2563eb; }
.json-hl-null { color: #dc2626; font-weight: bold; }
.json-hl-key { color: var(--slate-900); font-weight: 500; }

.output-empty {
  padding: 24px;
  color: var(--slate-400);
  text-align: center;
  font-size: 14px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.three-column {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* ── Toolbar ── */

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.formatter-toolbar {
  margin-top: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  overflow: hidden;
}

.formatter-toolbar__options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--slate-200);
}

@media (max-width: 640px) {
  .formatter-toolbar__options {
    width: 100%;
    padding-left: 0;
    border-left: none;
    padding-top: 12px;
    border-top: 1px solid var(--slate-200);
  }
}

.indent-select {
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 5px 8px;
  outline: none;
  color: var(--slate-700);
  font-family: inherit;
  cursor: pointer;
}

.indent-select:focus {
  border-color: var(--ice-400);
  box-shadow: 0 0 0 2px var(--ice-100);
}

.toolbar-option-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-left: 4px;
  padding-left: 16px;
  border-left: 1px solid var(--slate-200);
}

.toolbar-option-label {
  color: var(--slate-500);
  font-size: 14px;
  white-space: nowrap;
}

.toolbar-option-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  font-size: 14px;
  color: var(--slate-600);
  cursor: pointer;
  user-select: none;
}

.toolbar-option-checkbox input {
  accent-color: var(--ice-500);
}

/* ── Status ── */

[hidden] {
  display: none !important;
}

.status-success {
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.status-error {
  color: #ef4444;
}

.error-snippet {
  margin-top: 8px;
  padding: 8px 12px;
  background: #fef2f2;
  border-radius: 8px;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 12px;
  white-space: pre-wrap;
}

/* ── Diff / Tree / Convert ── */

.json-diff-output {
  --diff-indent: 16px;
  min-height: 360px;
  overflow: auto;
  font-size: 13px;
}

.diff-toolbar {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.diff-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 10px;
}

.diff-toolbar__filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
  user-select: none;
}

.diff-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.diff-stats {
  flex: 1;
  min-width: 180px;
  font-size: 12px;
  color: #6b7280;
}

.diff-list {
  padding: 12px;
}

.diff-entry {
  margin-bottom: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.diff-entry--added {
  background: #dcfce7;
}

.diff-entry--modified {
  background: #fffbeb;
}

.diff-entry--deleted {
  background: #fee2e2;
}

.diff-entry--unchanged {
  background: #f3f4f6;
}

.diff-entry__header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  font-family: "Fira Code", ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.diff-entry__symbol {
  flex: 0 0 auto;
  width: 1ch;
  font-weight: 700;
}

.diff-entry--added .diff-entry__symbol {
  color: #16a34a;
}

.diff-entry--modified .diff-entry__symbol {
  color: #d97706;
}

.diff-entry--deleted .diff-entry__symbol {
  color: #dc2626;
}

.diff-entry__path {
  word-break: break-all;
}

.diff-entry__body {
  padding: 0 12px 10px 28px;
  font-family: "Fira Code", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.6;
}

.diff-entry__line--old {
  color: #b91c1c;
}

.diff-entry__line--new {
  color: #15803d;
}

.diff-entry__line--same {
  color: #6b7280;
}

.diff-empty-filtered,
.diff-same {
  color: #6b7280;
  text-align: center;
  padding: 24px;
}

.diff-same {
  color: #10b981;
}

.tree-panel {
  padding: 16px;
  min-height: 360px;
  overflow: auto;
}

.jsonpath-results {
  padding: 16px;
  min-height: 200px;
}

.convert-options {
  padding: 12px 16px;
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: rgba(248, 250, 252, 0.5);
}

.size-warning {
  margin-bottom: 8px;
}

/* ── Intro sections ── */

.app-intro {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.app-intro__block {
  margin-bottom: 56px;
}

.app-intro__block--alt {
  background: linear-gradient(to bottom, var(--ice-50), transparent);
  margin-inline: -24px;
  padding: 40px 24px;
  border-radius: 24px;
}

.app-intro__heading {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--slate-900);
  text-align: center;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.app-intro__lead {
  font-size: 15px;
  color: var(--slate-600);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.app-intro__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.app-intro__feature-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.app-intro__feature-card:hover {
  border-color: var(--ice-200);
  box-shadow: var(--shadow-soft), var(--shadow-card);
}

.app-intro__feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ice-50);
  color: var(--ice-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.app-intro__feature-icon svg {
  width: 20px;
  height: 20px;
}

.app-intro__feature-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-900);
  margin: 0 0 8px;
}

.app-intro__feature-desc {
  font-size: 13px;
  color: var(--slate-500);
  line-height: 1.65;
  margin: 0;
}

.app-intro__scenarios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.app-intro__scenario-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}

.app-intro__scenario-role {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ice-700);
  background: var(--ice-50);
  border: 1px solid var(--ice-100);
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.app-intro__scenario-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--slate-600);
  line-height: 1.8;
}

.app-intro__scenario-list li {
  margin-bottom: 2px;
}

.app-intro__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.app-intro__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.app-intro__step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ice-400), var(--ice-600));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  flex-shrink: 0;
}

.app-intro__step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-900);
  margin: 0 0 6px;
}

.app-intro__step-desc {
  font-size: 13px;
  color: var(--slate-500);
  line-height: 1.65;
  margin: 0;
}

.app-intro__privacy {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--ice-200);
  border-radius: 14px;
  padding: 20px 24px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.app-intro__privacy svg {
  width: 28px;
  height: 28px;
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.app-intro__privacy strong {
  display: block;
  font-size: 14px;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.app-intro__privacy span {
  font-size: 13px;
  color: var(--slate-600);
  line-height: 1.65;
}

/* ── SEO content sections ── */

.app-seo {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 24px 48px;
}

.app-seo__block {
  margin-bottom: 48px;
}

.app-seo__block--alt {
  background: linear-gradient(to bottom, var(--ice-50), transparent);
  margin-inline: -24px;
  padding: 32px 24px;
  border-radius: 24px;
}

.app-seo__intro {
  font-size: 15px;
  color: var(--slate-600);
  line-height: 1.75;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.app-seo__heading {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--slate-900);
  text-align: center;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.app-seo__steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-seo__step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--slate-700);
  line-height: 1.6;
}

.app-seo__step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ice-100);
  color: var(--ice-700);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-seo__examples {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

.app-seo__example {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.app-seo__example-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-900);
  margin: 0 0 10px;
}

.app-seo__code {
  margin: 0;
  padding: 12px 14px;
  background: var(--slate-900);
  color: #e2e8f0;
  border-radius: 8px;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.app-seo__list {
  max-width: 720px;
  margin: 0 auto;
  padding-left: 20px;
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.75;
}

@keyframes discover-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes discover-line-grow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.app-seo__discover {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(14, 165, 233, 0.07), transparent 70%),
    var(--slate-50);
  border-top: 1px solid var(--slate-200);
  padding: 52px 24px 56px;
  margin: 0;
}

.app-seo__discover-inner {
  max-width: 960px;
  margin: 0 auto;
}

.app-seo__discover-title {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  color: var(--slate-900);
  text-align: center;
  margin: 0 0 32px;
  letter-spacing: -0.02em;
  animation: discover-rise 0.55s ease both;
}

.app-seo__discover-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ice-400), var(--ice-600));
  transform-origin: center;
  animation: discover-line-grow 0.6s ease 0.15s both;
}

.app-seo__discover-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.app-seo__discover-card {
  position: relative;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
  animation: discover-rise 0.6s ease both;
}

.app-seo__discover-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--ice-400), var(--ice-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-seo__discover-card--tools {
  animation-delay: 0.1s;
}

.app-seo__discover-card--reading::before {
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
}

.app-seo__discover-card--reading {
  animation-delay: 0.2s;
}

.app-seo__discover-card:hover {
  transform: translateY(-4px);
  border-color: var(--ice-200);
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.12);
}

.app-seo__discover-card--reading:hover {
  border-color: #ddd6fe;
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.1);
}

.app-seo__discover-card:hover::before {
  transform: scaleX(1);
}

.app-seo__discover-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-800);
  text-align: left;
  margin: 0 0 16px;
  letter-spacing: 0;
}

.app-seo__discover-heading::before {
  content: '';
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-color: var(--ice-100);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
}

.app-seo__discover-card--tools .app-seo__discover-heading::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230284c7'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E");
}

.app-seo__discover-card--reading .app-seo__discover-heading::before {
  background-color: #ede9fe;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237c3aed'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253'/%3E%3C/svg%3E");
}

.app-seo__discover-card:hover .app-seo__discover-heading::before {
  transform: scale(1.08) rotate(-4deg);
}

.app-seo__discover-card--tools:hover .app-seo__discover-heading::before {
  background-color: var(--ice-200);
}

.app-seo__discover-card--reading:hover .app-seo__discover-heading::before {
  background-color: #ddd6fe;
}

.app-seo__discover-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-seo__discover-links li {
  margin: 0;
}

.app-seo__discover-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  margin-inline: -12px;
  border-radius: 10px;
  color: var(--slate-600);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    padding-left 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-seo__discover-links a::after {
  content: '→';
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 8px;
  color: var(--ice-600);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-seo__discover-card--reading .app-seo__discover-links a::after {
  color: #7c3aed;
}

.app-seo__discover-links a:hover,
.app-seo__discover-links a:focus-visible {
  color: var(--ice-800);
  background: var(--ice-50);
  padding-left: 16px;
  text-decoration: none;
}

.app-seo__discover-card--reading .app-seo__discover-links a:hover,
.app-seo__discover-card--reading .app-seo__discover-links a:focus-visible {
  color: #5b21b6;
  background: #f5f3ff;
}

.app-seo__discover-links a:hover::after,
.app-seo__discover-links a:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.app-seo__discover + .app-footer {
  margin-top: 0;
}

@media (min-width: 768px) {
  .app-seo__discover-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-seo__discover-title,
  .app-seo__discover-card,
  .app-seo__discover-title::after {
    animation: none;
  }

  .app-seo__discover-card,
  .app-seo__discover-card::before,
  .app-seo__discover-heading::before,
  .app-seo__discover-links a,
  .app-seo__discover-links a::after {
    transition: none;
  }

  .app-seo__discover-card:hover {
    transform: none;
  }
}

.app-seo__faq {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-seo__faq-item {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 0 18px;
  box-shadow: var(--shadow-card);
}

.app-seo__faq-item summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-900);
  padding: 16px 0;
  list-style: none;
}

.app-seo__faq-item summary::-webkit-details-marker {
  display: none;
}

.app-seo__faq-item p {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--slate-600);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .app-seo__examples {
    grid-template-columns: 1fr;
  }
}

/* ── Footer ── */

.app-footer {
  background: linear-gradient(180deg, #0f172a 0%, #172554 100%);
  color: var(--slate-300);
  flex-shrink: 0;
  margin-top: 16px;
}

.app-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.app-footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-footer__brand {
  min-width: 0;
}

.app-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.app-footer__logo:hover {
  color: var(--ice-300);
}

.app-footer__logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ice-400), var(--violet-500));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-footer__logo-icon svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.app-footer__tagline {
  font-size: 13px;
  color: var(--slate-400);
  line-height: 1.65;
  margin: 0;
  max-width: 280px;
}

.app-footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.app-footer__link-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-400);
  margin: 0 0 14px;
}

.app-footer__link-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-footer__link-group li {
  margin-bottom: 8px;
}

.app-footer__link-group a {
  font-size: 13px;
  color: var(--slate-300);
  text-decoration: none;
  transition: color 0.15s;
}

.app-footer__link-group a:hover {
  color: var(--ice-300);
}

.app-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
}

.app-footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-400);
  margin: 0;
}

.app-footer__badge svg {
  width: 14px;
  height: 14px;
  color: #10b981;
  flex-shrink: 0;
}

.app-footer__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--slate-500);
}

.app-footer__link {
  color: var(--slate-400);
  text-decoration: none;
  cursor: pointer;
}

.app-footer__link:hover {
  color: var(--ice-300);
  text-decoration: underline;
}

.app-footer__divider {
  color: var(--slate-600);
}

.app-footer__copy {
  color: var(--slate-500);
}

/* ── Shared utilities ── */

.panel-card--spaced {
  margin-top: 12px;
}

.panel-toolbar {
  margin-top: 12px;
}

.convert-hint {
  font-size: 12px;
  color: var(--slate-500);
  line-height: 1.5;
}

.convert-root-input {
  width: 160px;
  max-width: 100%;
}

.jsonpath-input {
  flex: 1;
  min-width: 200px;
}

.jsonpath-select {
  width: 220px;
  max-width: 100%;
}

.convert-options--jsonpath .jsonpath-select {
  flex: 1;
  min-width: 0;
}

/* ── Responsive ── */

/* Tablet intro & footer */
@media (max-width: 960px) {
  .app-intro__features {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .app-footer__links {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet: three-column stacks earlier */
@media (max-width: 1200px) {
  .three-column {
    grid-template-columns: 1fr;
  }
}

/* Tablet / large phone */
@media (max-width: 960px) {
  .two-column,
  .three-column {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .app-header__inner {
    padding: 0 16px;
  }

  .app-main {
    padding: 12px 16px 20px;
  }

  .app-hero {
    padding: 28px 16px 20px;
  }

  .panel-card__header {
    flex-wrap: wrap;
    height: auto;
    min-height: 48px;
    padding: 10px 12px;
    gap: 8px;
  }

  .panel-card__header .toolbar-row {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .app-header__inner {
    height: 56px;
    gap: 12px;
  }

  .header-brand__subtitle {
    display: none;
  }

  .header-brand__title {
    font-size: 16px;
  }

  .header-brand__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .header-brand__icon svg {
    width: 18px;
    height: 18px;
  }

  .app-hero__title {
    font-size: 1.5rem;
  }

  .app-hero__subtitle {
    font-size: 0.9375rem;
  }

  .panel-card {
    border-radius: 12px;
  }

  .panel-card__body,
  .editor-textarea,
  .output-pre,
  .json-diff-output {
    min-height: 280px;
  }

  .editor-textarea {
    min-height: 280px;
    padding: 12px;
    font-size: 13px;
  }

  .output-pre {
    padding: 12px;
    font-size: 13px;
  }

  .formatter-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .formatter-toolbar__options {
    width: 100%;
    padding-left: 0;
    border-left: none;
    padding-top: 12px;
    border-top: 1px solid var(--slate-200);
  }

  .toolbar-row {
    gap: 6px;
  }

  .panel-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-toolbar .toolbar-row {
    width: 100%;
  }

  .convert-options {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .convert-root-input {
    width: 100%;
  }

  .jsonpath-input,
  .jsonpath-select {
    width: 100%;
    min-width: 0;
  }

  .app-footer {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px 20px;
  }

  .app-footer__badge {
    text-align: center;
    line-height: 1.4;
  }

  .app-intro {
    padding: 32px 16px 24px;
  }

  .app-intro__block {
    margin-bottom: 40px;
  }

  .app-intro__block--alt {
    margin-inline: -16px;
    padding: 32px 16px;
    border-radius: 16px;
  }

  .app-intro__features {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .app-intro__scenarios {
    grid-template-columns: 1fr;
  }

  .app-intro__steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .app-intro__step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }

  .app-footer__inner {
    padding: 36px 16px 24px;
  }

  .app-footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 28px;
  }

  .app-footer__links {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .app-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 20px;
  }
}

/* Small phone */
@media (max-width: 480px) {
  .app-main {
    padding: 8px 12px 16px;
  }

  .app-hero {
    padding: 20px 12px 16px;
  }

  .two-column,
  .three-column {
    gap: 12px;
  }

  .panel-card__body,
  .editor-textarea,
  .output-pre,
  .json-diff-output {
    min-height: 220px;
  }

  .editor-textarea {
    min-height: 220px;
  }

  .tab-btn--mobile {
    font-size: 12px;
    padding: 8px 6px;
  }
}

/* ── Native UI components (replaces Element Plus) ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--small {
  font-size: 13px;
  padding: 6px 12px;
}

.btn--default {
  color: var(--slate-600);
  background: #fff;
  border-color: var(--slate-200);
}

.btn--default:hover:not(:disabled) {
  background: var(--ice-50);
  color: var(--ice-800);
  border-color: var(--ice-200);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--ice-500), var(--violet-500));
  border-color: transparent;
  box-shadow: 0 8px 18px -10px rgba(14, 165, 233, 0.75);
}

.btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--ice-600), var(--violet-700));
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px -10px rgba(124, 58, 237, 0.45);
}

.btn--primary.btn--plain {
  color: var(--ice-700);
  background: var(--ice-50);
  border-color: var(--ice-200);
}

.btn--primary.btn--plain:hover:not(:disabled) {
  background: var(--ice-100);
  border-color: var(--ice-300);
}

.btn--success.btn--plain {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.toolbar-row .btn--small,
.panel-toolbar .btn--primary {
  border-radius: 8px;
}

.alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid transparent;
}

.alert--warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.alert--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  min-width: 200px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--slate-900);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--success {
  background: #065f46;
}

.toast--warning {
  background: #92400e;
}

.toast--error {
  background: #991b1b;
}

.radio-group {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.radio-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.radio-btn input {
  accent-color: var(--ice-500);
}

.convert-root-input,
.jsonpath-input {
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 6px 10px;
  outline: none;
  color: var(--slate-700);
  font-family: inherit;
  min-width: 180px;
}

.convert-root-input {
  width: 120px;
}

.jsonpath-input {
  flex: 1;
  min-width: 240px;
}

.jsonpath-select {
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 6px;
  padding: 6px 10px;
  outline: none;
  color: var(--slate-700);
  font-family: inherit;
}

.convert-options--jsonpath {
  padding: 12px 16px;
}

.convert-options--jsonpath .btn {
  flex-shrink: 0;
}

/* ── JSON Tree viewer ── */

.json-tree-root {
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.json-tree-node {
  margin-left: 0;
}

.json-tree-children {
  margin-left: 18px;
  border-left: 1px dashed var(--slate-200);
  padding-left: 8px;
}

.json-tree-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  border-radius: 6px;
  cursor: pointer;
}

.json-tree-row:hover {
  background: var(--ice-50);
}

.json-tree-toggle {
  width: 18px;
  height: 18px;
  border: none;
  background: transparent;
  color: var(--slate-500);
  cursor: pointer;
  font-size: 10px;
  padding: 0;
}

.json-tree-spacer {
  display: inline-block;
  width: 18px;
}

.json-tree-key {
  color: var(--slate-800);
  font-weight: 500;
}

.json-tree-value {
  color: var(--slate-600);
}

.toolbar-row .btn--small,
.panel-card__header .btn--small {
  border-radius: 8px;
}

.panel-toolbar .btn--primary {
  padding: 8px 16px;
}

@media (max-width: 640px) {
  .convert-options--jsonpath .btn {
    width: 100%;
  }
}

/* ── Studio shell (homepage) ── */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

html.scroll-smooth {
  scroll-behavior: smooth;
}

body.studio {
  --paper: #f8fafc;
  --panel: #ffffff;
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0ea5e9;
  --accent-600: #0284c7;
  --accent-soft: #f0f9ff;
  --shadow-card: 0 0 0 1px rgba(14, 165, 233, 0.06), 0 8px 20px -12px rgba(15, 23, 42, 0.12);
  --shadow-window: 0 0 0 1px rgba(14, 165, 233, 0.08), 0 24px 48px -16px rgba(14, 165, 233, 0.22);
  background:
    radial-gradient(ellipse 70% 50% at 8% -8%, rgba(14, 165, 233, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(139, 92, 246, 0.12), transparent 50%),
    radial-gradient(ellipse 40% 30% at 80% 100%, rgba(249, 115, 22, 0.07), transparent 50%),
    #f8fafc;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

body.studio ::selection {
  background: var(--ice-200);
  color: var(--ice-900);
}

body.studio ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

body.studio ::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 4px;
}

body.studio *:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.studio .site-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

body.studio .site-wrap--narrow {
  width: min(768px, calc(100% - 32px));
}

body.studio .site-main {
  background: transparent;
  min-height: 100vh;
}

body.studio .site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

body.studio .site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

body.studio .site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

body.studio .site-logo__mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #18181b;
  color: #fff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.08em;
  transition: background 0.15s ease;
}

body.studio .site-logo:hover .site-logo__mark {
  background: var(--accent);
}

body.studio .site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

body.studio .site-nav a {
  color: #52525b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

body.studio .site-nav a:hover {
  color: var(--text);
}

body.studio .site-header__aside {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.studio .site-header__cta,
body.studio .site-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

body.studio .site-header__cta:hover,
body.studio .site-btn:hover {
  background: var(--accent-600);
}

body.studio .site-hero {
  padding: 48px 0 40px;
  scroll-margin-top: 80px;
}

body.studio .site-hero__intro {
  text-align: center;
  margin-bottom: 40px;
}

body.studio .site-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 500;
}

body.studio .site-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

body.studio .site-badge__count {
  font-weight: 700;
}

body.studio .site-hero h1,
body.studio .site-section h2,
body.studio .site-features__intro h2,
body.studio .site-section--faq h2 {
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

body.studio .site-hero h1 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

body.studio .site-hero__lead {
  max-width: 42rem;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

body.studio .site-search {
  position: relative;
  display: block;
  max-width: 36rem;
  margin: 0 auto;
}

body.studio .site-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: #a1a1aa;
}

body.studio .site-search input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: 16px/1 Inter, system-ui, sans-serif;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.studio .site-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 82, 255, 0.2);
}

body.studio .site-section {
  padding: 24px 0 64px;
  scroll-margin-top: 80px;
}

body.studio .site-section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 0 4px;
}

body.studio .site-section__head h1,
body.studio .site-section__head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

body.studio .site-section__mark {
  width: 8px;
  height: 24px;
  border-radius: 2px;
  background: var(--accent);
  display: inline-block;
}

body.studio .site-chip {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--muted);
  background: #f4f4f5;
  padding: 4px 8px;
  border-radius: 6px;
}

body.studio .site-window {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

body.studio .site-window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid var(--line);
}

body.studio .site-window__dots {
  display: flex;
  gap: 8px;
}

body.studio .site-window__dots span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

body.studio .site-window__dots span:nth-child(1) { background: #f87171; }
body.studio .site-window__dots span:nth-child(2) { background: #fbbf24; }
body.studio .site-window__dots span:nth-child(3) { background: #4ade80; }

body.studio .site-window__title {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: #a1a1aa;
  user-select: none;
}

body.studio .site-window__spacer {
  width: 48px;
}

body.studio .site-window__body {
  flex: 1;
  min-height: 0;
  padding: 16px;
}

body.studio .site-hint {
  margin: 12px 4px 0;
  color: var(--muted);
  font-size: 13px;
}

body.studio .site-hint code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--accent);
}

body.studio .site-catalog__group {
  margin-bottom: 36px;
}

body.studio .site-catalog__group h3 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

body.studio .site-catalog__group--featured h3 {
  color: var(--text);
}

body.studio .site-catalog__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body.studio .site-catalog__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

body.studio .site-catalog__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
}

body.studio .site-catalog__icon svg {
  width: 20px;
  height: 20px;
}

body.studio .site-catalog__card[data-group="view"] .site-catalog__icon { background: #0891b2; }
body.studio .site-catalog__card[data-group="query"] .site-catalog__icon { background: #7c3aed; }
body.studio .site-catalog__card[data-group="merge"] .site-catalog__icon { background: #059669; }
body.studio .site-catalog__card[data-group="jwt"] .site-catalog__icon { background: #d97706; }
body.studio .site-catalog__card[data-group="convert"] .site-catalog__icon { background: #e11d48; }
body.studio .site-catalog__card[data-group="codegen"] .site-catalog__icon { background: #4f46e5; }
body.studio .site-catalog__card[data-group="generate"] .site-catalog__icon { background: #52525b; }
body.studio .site-catalog__card[data-group="related"] .site-catalog__icon { background: #3f3f46; }

body.studio .site-catalog__card strong {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
}

body.studio .site-catalog__card span:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

body.studio .site-catalog__card:hover,
body.studio .site-catalog__card.is-active {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body.studio .site-catalog__card:hover .site-catalog__icon,
body.studio .site-catalog__card.is-active .site-catalog__icon {
  filter: brightness(1.08);
}

body.studio .site-features__intro {
  max-width: 48rem;
  margin-bottom: 40px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

body.studio .site-features__intro h2 {
  font-size: 1.5rem;
}

body.studio .site-features__intro p {
  margin: 0;
  color: #52525b;
  font-size: 14px;
  line-height: 1.75;
}

body.studio .site-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

body.studio .site-features__index {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}

body.studio .site-features__index--blue { background: #dbeafe; color: #2563eb; }
body.studio .site-features__index--purple { background: #f3e8ff; color: #7c3aed; }
body.studio .site-features__index--green { background: #d1fae5; color: #059669; }

body.studio .site-features h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
}

body.studio .site-features p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

body.studio .site-features code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

body.studio .site-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 8px 0 24px;
}

body.studio .site-stats__value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

body.studio .site-stats__label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

body.studio .site-block__head {
  max-width: 48rem;
  margin-bottom: 28px;
}

body.studio .site-block__head h2,
body.studio .site-section h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.studio .site-block__head p {
  margin: 0;
  color: #52525b;
  font-size: 14px;
  line-height: 1.75;
}

body.studio .site-scenarios,
body.studio .site-guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.studio .site-scenarios article,
body.studio .site-guides a,
body.studio .site-note,
body.studio .site-callout {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

body.studio .site-scenarios h3,
body.studio .site-guides h3,
body.studio .site-note h3,
body.studio .site-steps h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

body.studio .site-scenarios p,
body.studio .site-guides p,
body.studio .site-note p,
body.studio .site-steps p,
body.studio .site-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

body.studio .site-scenarios a,
body.studio .site-block__head a {
  color: var(--accent);
  text-decoration: none;
}

body.studio .site-scenarios a:hover {
  text-decoration: underline;
}

body.studio .site-guides a {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.studio .site-guides a:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body.studio .site-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}

body.studio .site-steps__num {
  margin-bottom: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

body.studio .site-callout strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

body.studio .site-callout p code,
body.studio .site-scenarios code,
body.studio .site-steps code,
body.studio .site-block__head code,
body.studio .site-table code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--accent);
}

body.studio .site-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--ice-100);
  border-radius: 12px;
  background: #fff;
}

body.studio .site-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}

body.studio .site-table th,
body.studio .site-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  word-break: break-word;
}

body.studio .site-table th:first-child,
body.studio .site-table td:first-child {
  width: 22%;
  font-weight: 600;
  color: var(--text);
}

body.studio .site-table tbody tr:nth-child(even) td {
  background: rgba(14, 165, 233, 0.04);
}

body.studio .site-table th {
  background: #fafafa;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

body.studio .site-table tr:last-child td {
  border-bottom: 0;
}

body.studio .site-compare__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

body.studio .site-compare__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

body.studio .site-compare__tag--no {
  background: #fee2e2;
  color: #b91c1c;
}

body.studio .site-compare__tag--yes {
  background: #dcfce7;
  color: #166534;
}

body.studio .site-compare__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

body.studio .site-compare__item {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--ice-100);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.studio .site-compare__item:hover {
  transform: translateY(-3px);
  border-color: var(--ice-200);
  box-shadow: 0 16px 28px -18px rgba(14, 165, 233, 0.4);
}

body.studio .site-compare__item h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}

body.studio .site-compare__item--wide {
  grid-column: 1 / -1;
}

body.studio .site-compare__sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

body.studio .site-compare__side {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

body.studio .site-compare__side span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.studio .site-compare__side--no {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

body.studio .site-compare__side--no span {
  color: #b91c1c;
}

body.studio .site-compare__side--yes {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

body.studio .site-compare__side--yes span {
  color: #166534;
}

body.studio .site-compare__side code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--ice-700);
}

body.studio .site-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: stretch;
}

body.studio .site-split--jwt {
  gap: 20px;
}

body.studio .site-jwt__token {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.55);
}

body.studio .site-jwt__seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

body.studio .site-jwt__seg--header {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
}

body.studio .site-jwt__seg--payload {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

body.studio .site-jwt__seg--sig {
  background: linear-gradient(135deg, #fb923c, #ea580c);
}

body.studio .site-jwt__dot {
  color: #94a3b8;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

body.studio .site-claim-panel {
  padding: 20px;
  border: 1px solid var(--ice-100);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: var(--shadow-card);
}

body.studio .site-claim-panel__label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

body.studio .site-claim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body.studio .site-claim {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--ice-100);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body.studio .site-claim:hover {
  transform: translateY(-2px);
  border-color: var(--ice-200);
  box-shadow: 0 10px 18px -14px rgba(14, 165, 233, 0.55);
}

body.studio .site-claim code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--ice-700);
}

body.studio .site-claim span {
  font-size: 13px;
  color: var(--text);
}

body.studio .site-claim--wide {
  grid-column: 1 / -1;
}

body.studio .site-note--jwt {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  background:
    linear-gradient(180deg, rgba(240, 249, 255, 0.95), rgba(237, 233, 254, 0.55));
  border: 1px solid var(--ice-200);
  border-radius: 16px;
  box-shadow: 0 16px 32px -22px rgba(124, 58, 237, 0.45);
}

body.studio .site-note__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice-700);
}

body.studio .site-note--jwt h3 {
  margin-bottom: 14px;
  font-size: 1.15rem;
}

body.studio .site-note__list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

body.studio .site-note__list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 22px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

body.studio .site-note__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ice-400), var(--violet-500));
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

body.studio .site-note__warn {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.65;
}

body.studio .site-note__cta {
  align-self: flex-start;
  height: 40px;
  margin-top: auto;
}

body.studio .site-note p + p {
  margin-top: 12px;
}

body.studio .site-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.studio .site-langs span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: #3f3f46;
}

body.studio #scenarios,
body.studio #workflow,
body.studio #json5,
body.studio #jwt,
body.studio #codegen,
body.studio #guides,
body.studio #stats {
  scroll-margin-top: 80px;
}

body.studio #scenarios,
body.studio #workflow,
body.studio #json5,
body.studio #jwt,
body.studio #codegen,
body.studio #guides {
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

body.studio .site-section--faq {
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

body.studio .site-section--faq h2 {
  margin-bottom: 24px;
  text-align: center;
  font-size: 1.25rem;
}

body.studio .site-faq details {
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

body.studio .site-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  background: #fafafa;
}

body.studio .site-faq summary::-webkit-details-marker {
  display: none;
}

body.studio .site-faq summary span {
  color: #a1a1aa;
  transition: transform 0.15s ease;
}

body.studio .site-faq details[open] summary span {
  transform: rotate(180deg);
}

body.studio .site-faq p {
  margin: 0;
  padding: 16px;
  border-top: 1px solid var(--line);
  color: #52525b;
  font-size: 14px;
  line-height: 1.7;
}

body.studio .site-faq code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

body.studio .site-footer {
  padding: 48px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

body.studio .site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

body.studio .site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.studio .site-footer__brand-row .site-logo__mark {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

body.studio .site-footer__brand {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

body.studio .site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

body.studio .site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
}

body.studio .site-footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

body.studio .site-footer__links a:hover {
  color: var(--text);
}

body.studio .site-footer__copy {
  color: #a1a1aa !important;
}

body.studio .output-empty,
body.studio .toolbar-option-label,
body.studio .toolbar-option-checkbox {
  color: var(--muted);
}

body.studio .status-success {
  color: #059669;
}

body.studio .panel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}

body.studio .panel-card:hover {
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.08);
}

body.studio .panel-card__header {
  background: #fafafa;
  border-bottom-color: var(--line);
  color: var(--text);
  border-radius: 0;
}

body.studio .editor-textarea,
body.studio .output-pre,
body.studio .json-diff-output {
  background: #fff;
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

body.studio .editor-textarea--error {
  background: #fff1f2;
}

body.studio .formatter-toolbar,
body.studio .panel-toolbar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
}

body.studio .indent-select,
body.studio .btn--default,
body.studio .locale-switcher__btn {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

body.studio .btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

body.studio .btn--primary:hover:not(:disabled) {
  background: var(--accent-600);
  border-color: var(--accent-600);
}

body.studio .json-hl-key { color: #1d4ed8; }
body.studio .json-hl-string { color: #059669; }
body.studio .json-hl-number { color: #d97706; }
body.studio .json-hl-boolean { color: #7c3aed; }
body.studio .json-hl-null { color: #e11d48; }

body.studio .locale-switcher__menu {
  background: #fff;
  border-color: var(--line);
}

body.studio .locale-switcher__item {
  color: var(--text);
}

body.studio .locale-switcher__item:hover,
body.studio .locale-switcher__item.active {
  background: var(--accent-soft);
  color: var(--accent);
}

body.studio.studio-workspace .site-section--workspace {
  padding-top: 28px;
  padding-bottom: 16px;
}

body.studio.studio-workspace .site-window {
  min-height: 0;
}

body.studio.studio-workspace .panel-card__body,
body.studio.studio-workspace .editor-textarea,
body.studio.studio-workspace .output-pre {
  min-height: 420px;
  height: 420px;
  resize: none;
}

body.studio .site-tool-docs {
  padding: 8px 0 64px;
}

body.studio .site-tool-docs .site-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

body.studio .site-tool-lead {
  max-width: 48rem;
  margin: 0;
  color: #3f3f46;
  font-size: 15px;
  line-height: 1.8;
}

body.studio .site-tool-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.studio .site-tool-points article,
body.studio .site-example,
body.studio .site-tool-docs .site-faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

body.studio .site-tool-points article {
  padding: 18px;
}

body.studio .site-tool-points h3,
body.studio .site-example h3,
body.studio .site-related h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}

body.studio .site-tool-points p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

body.studio .site-tool-points p + p {
  margin-top: 10px;
}

body.studio .site-tool-usage {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

body.studio .site-tool-usage h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}

body.studio .site-tool-usage ol {
  margin: 0;
  padding-left: 1.25rem;
  color: #3f3f46;
  font-size: 14px;
  line-height: 1.8;
}

body.studio .site-tool-usage li + li {
  margin-top: 8px;
}

body.studio .site-tool-usage__note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

body.studio .site-example {
  padding: 18px;
}

body.studio .site-example__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.studio .site-example figcaption {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

body.studio .site-example pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  border-radius: 8px;
  background: #fafafa;
  border: 1px solid var(--line);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #27272a;
  white-space: pre-wrap;
  word-break: break-word;
}

body.studio .site-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.studio .site-related h3 {
  width: 100%;
  margin-bottom: 4px;
}

body.studio .site-related a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #3f3f46;
  text-decoration: none;
  font-size: 13px;
}

body.studio .site-related a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body.studio.studio--focus .site-tool-docs,
body.studio.studio--focus .site-footer {
  display: none;
}

body.studio.studio--focus #catalog,
body.studio.studio--focus #features,
body.studio.studio--focus #faq,
body.studio.studio--focus .site-footer {
  display: none;
}

@media (max-width: 1024px) {
  body.studio .site-catalog__list,
  body.studio .site-steps,
  body.studio .site-split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  body.studio .site-nav,
  body.studio .site-header__cta {
    display: none;
  }

  body.studio .site-features,
  body.studio .site-catalog__list,
  body.studio .site-stats,
  body.studio .site-scenarios,
  body.studio .site-guides,
  body.studio .site-steps,
  body.studio .site-split,
  body.studio .site-tool-points,
  body.studio .site-example__grid {
    grid-template-columns: 1fr;
  }

  body.studio .site-hero {
    padding: 40px 0 24px;
  }

  body.studio .site-window {
    min-height: 0;
  }

  body.studio .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  body.studio .site-claim-grid {
    grid-template-columns: 1fr;
  }

  body.studio .site-claim--wide {
    grid-column: auto;
  }

  body.studio .site-jwt__token {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  body.studio .site-compare__grid {
    grid-template-columns: 1fr;
  }

  body.studio .site-compare__item--wide {
    grid-column: auto;
  }
}

/* ── Site-wide color & motion (homepage + tools) ── */

body.studio .site-hero {
  position: relative;
  overflow: hidden;
}

body.studio .site-hero::before,
body.studio .site-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

body.studio .site-hero::before {
  top: -80px;
  right: 8%;
  width: 280px;
  height: 280px;
  background: rgba(14, 165, 233, 0.22);
  animation: site-orb-drift 10s ease-in-out infinite;
}

body.studio .site-hero::after {
  top: 40px;
  left: 6%;
  width: 200px;
  height: 200px;
  background: rgba(139, 92, 246, 0.16);
  animation: site-orb-drift-alt 12s ease-in-out infinite;
}

body.studio .site-hero__intro {
  position: relative;
  z-index: 1;
}

body.studio .site-badge {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border-color: var(--ice-200);
  color: var(--ice-700);
  box-shadow: 0 8px 18px -14px rgba(14, 165, 233, 0.8);
}

body.studio .site-hero h1 {
  background: linear-gradient(120deg, var(--text) 12%, var(--ice-600) 52%, var(--violet-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.studio .site-search input {
  border-color: var(--ice-100);
  box-shadow: 0 8px 24px -18px rgba(14, 165, 233, 0.55);
}

body.studio .site-search input:focus {
  border-color: var(--ice-400);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

body.studio .site-catalog {
  position: relative;
  z-index: 1;
}

body.studio .site-catalog__card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  animation: site-fade-up 0.5s ease both;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

body.studio .site-catalog__list .site-catalog__card:nth-child(1) { animation-delay: 0.03s; }
body.studio .site-catalog__list .site-catalog__card:nth-child(2) { animation-delay: 0.07s; }
body.studio .site-catalog__list .site-catalog__card:nth-child(3) { animation-delay: 0.11s; }
body.studio .site-catalog__list .site-catalog__card:nth-child(4) { animation-delay: 0.15s; }

body.studio .site-catalog__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ice-400), var(--violet-500), var(--orange-400));
  opacity: 0.45;
  transition: opacity 0.25s ease;
}

body.studio .site-catalog__icon {
  box-shadow: 0 8px 16px -10px rgba(15, 23, 42, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.studio .site-catalog__card:hover,
body.studio .site-catalog__card.is-active {
  transform: translateY(-5px);
  border-color: var(--ice-200);
  box-shadow: 0 18px 36px -16px rgba(14, 165, 233, 0.35);
}

body.studio .site-catalog__card:hover::before,
body.studio .site-catalog__card.is-active::before {
  opacity: 1;
}

body.studio .site-catalog__card:hover .site-catalog__icon,
body.studio .site-catalog__card.is-active .site-catalog__icon {
  transform: scale(1.08);
}

body.studio .site-catalog__card[data-group="view"]:hover .site-catalog__icon,
body.studio .site-catalog__card[data-group="view"].is-active .site-catalog__icon { background: #0891b2; }
body.studio .site-catalog__card[data-group="query"]:hover .site-catalog__icon,
body.studio .site-catalog__card[data-group="query"].is-active .site-catalog__icon { background: #7c3aed; }
body.studio .site-catalog__card[data-group="merge"]:hover .site-catalog__icon,
body.studio .site-catalog__card[data-group="merge"].is-active .site-catalog__icon { background: #059669; }
body.studio .site-catalog__card[data-group="jwt"]:hover .site-catalog__icon,
body.studio .site-catalog__card[data-group="jwt"].is-active .site-catalog__icon { background: #d97706; }
body.studio .site-catalog__card[data-group="convert"]:hover .site-catalog__icon,
body.studio .site-catalog__card[data-group="convert"].is-active .site-catalog__icon { background: #e11d48; }
body.studio .site-catalog__card[data-group="codegen"]:hover .site-catalog__icon,
body.studio .site-catalog__card[data-group="codegen"].is-active .site-catalog__icon { background: #4f46e5; }
body.studio .site-catalog__card[data-group="generate"]:hover .site-catalog__icon,
body.studio .site-catalog__card[data-group="generate"].is-active .site-catalog__icon { background: #52525b; }
body.studio .site-catalog__card[data-group="related"]:hover .site-catalog__icon,
body.studio .site-catalog__card[data-group="related"].is-active .site-catalog__icon { background: #3f3f46; }

body.studio .site-section__mark {
  background: linear-gradient(180deg, var(--ice-400), var(--violet-500));
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.45);
}

body.studio .site-chip {
  background: var(--ice-50);
  color: var(--ice-700);
  border: 1px solid var(--ice-100);
}

body.studio .site-window {
  border-color: var(--ice-100);
  box-shadow: var(--shadow-window);
}

body.studio .site-window__bar {
  background: linear-gradient(180deg, #f8fbff, #fafafa);
}

body.studio .site-features article {
  padding: 22px;
  border: 1px solid var(--ice-100);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

body.studio .site-features article:hover {
  transform: translateY(-4px);
  border-color: var(--ice-200);
  box-shadow: 0 18px 32px -18px rgba(14, 165, 233, 0.4);
}

body.studio .site-stats > div {
  padding: 18px 16px;
  border: 1px solid var(--ice-100);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

body.studio .site-stats__value {
  background: linear-gradient(120deg, var(--text), var(--ice-600), var(--violet-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.studio .site-scenarios article,
body.studio .site-guides a,
body.studio .site-note,
body.studio .site-callout,
body.studio .site-tool-points article,
body.studio .site-example {
  background: linear-gradient(180deg, #fff, #f8fbff);
  border-color: var(--ice-100);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

body.studio .site-scenarios article:hover,
body.studio .site-guides a:hover,
body.studio .site-tool-points article:hover {
  transform: translateY(-3px);
  border-color: var(--ice-200);
  box-shadow: 0 14px 28px -16px rgba(14, 165, 233, 0.35);
}

body.studio .site-steps article {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--ice-50), #fff 70%);
  border: 1px solid var(--ice-100);
}

body.studio .site-table th {
  background: linear-gradient(180deg, var(--ice-50), #fafafa);
}

body.studio .site-table tbody tr:hover td {
  background: rgba(14, 165, 233, 0.05);
}

body.studio .site-faq details {
  border-color: var(--ice-100);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.studio .site-faq details[open] {
  border-color: var(--ice-200);
  box-shadow: 0 10px 22px -16px rgba(14, 165, 233, 0.5);
}

body.studio .site-faq summary {
  background: linear-gradient(180deg, var(--ice-50), #fafafa);
}

body.studio .site-langs span {
  background: var(--ice-50);
  border-color: var(--ice-100);
  color: var(--ice-800);
}

body.studio .site-related a {
  background: var(--ice-50);
  border-color: var(--ice-100);
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease,
    background 0.15s ease;
}

body.studio .site-related a:hover {
  background: linear-gradient(135deg, var(--ice-500), var(--violet-500));
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
}

body.studio .site-example pre {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  border-left: 3px solid var(--ice-400);
}

body.studio .site-header__cta,
body.studio .site-btn {
  background: linear-gradient(135deg, var(--ice-500), var(--violet-500));
  box-shadow: 0 8px 18px -10px rgba(14, 165, 233, 0.75);
}

body.studio .site-header__cta:hover,
body.studio .site-btn:hover {
  background: linear-gradient(135deg, var(--ice-600), var(--violet-700));
}

body.studio .btn--primary {
  background: linear-gradient(135deg, var(--ice-500), var(--violet-500));
  border-color: transparent;
}

body.studio .btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--ice-600), var(--violet-700));
  border-color: transparent;
}

body.studio .panel-card:hover {
  box-shadow: 0 16px 32px -16px rgba(14, 165, 233, 0.35);
}

body.studio .app-footer {
  background: linear-gradient(180deg, #0f172a, #1e1b4b);
}

.app-intro__feature-card:hover,
.app-intro__scenario-card:hover {
  transform: translateY(-4px);
  border-color: var(--ice-200);
}

.app-intro__feature-card,
.app-intro__scenario-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.app-seo__step:hover {
  border-color: var(--ice-200);
  box-shadow: 0 10px 20px -14px rgba(14, 165, 233, 0.4);
}

.app-hero__title {
  background: linear-gradient(120deg, var(--slate-900) 12%, var(--ice-600) 55%, var(--violet-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  body.studio .site-hero::before,
  body.studio .site-hero::after,
  body.studio .site-catalog__card {
    animation: none;
  }

  .btn--primary:hover:not(:disabled),
  body.studio .site-catalog__card:hover,
  body.studio .site-features article:hover,
  body.studio .site-scenarios article:hover,
  body.studio .site-guides a:hover,
  body.studio .site-tool-points article:hover {
    transform: none;
  }
}
