:root {
  color-scheme: dark;
  --bg: #0f172a;
  --panel: #111827;
  --panel-2: #020617;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: #334155;
  --accent: #38bdf8;
  --accent-dark: #0284c7;
  --error: #fecaca;
  --error-bg: #7f1d1d;

  --body-gradient: radial-gradient(circle at top left, #1e3a8a 0, var(--bg) 38%);
  --panel-bg: rgba(15, 23, 42, 0.76);
  --panel-title-bg: rgba(2, 6, 23, 0.35);
  --copy-bg: rgba(56, 189, 248, 0.12);
  --copy-text: #bae6fd;
  --shadow: rgba(0, 0, 0, 0.28);
  --code: #bae6fd;

  --toggle-bg: rgba(15, 23, 42, 0.78);
  --toggle-thumb: #38bdf8;
  --toggle-icon-muted: rgba(226, 232, 240, 0.48);

  --primary-button-bg: #0284c7;
  --primary-button-border: #0284c7;
  --primary-button-text: #ffffff;
  --primary-button-hover-bg: #0369a1;
  --primary-button-hover-border: #0369a1;

  --secondary-button-bg: transparent;
  --secondary-button-border: var(--border);
  --secondary-button-text: var(--text);
  --secondary-button-hover-bg: rgba(148, 163, 184, 0.12);
  --secondary-button-hover-border: var(--border);
}


:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #cbd5e1;
  --accent: #0284c7;
  --accent-dark: #0369a1;
  --error: #7f1d1d;
  --error-bg: #fee2e2;

  --body-gradient: radial-gradient(circle at top left, #dbeafe 0, var(--bg) 42%);
  --panel-bg: rgba(255, 255, 255, 0.82);
  --panel-title-bg: rgba(241, 245, 249, 0.82);
  --copy-bg: rgba(2, 132, 199, 0.10);
  --copy-text: #075985;
  --shadow: rgba(15, 23, 42, 0.12);
  --code: #0369a1;

  --toggle-bg: rgba(255, 255, 255, 0.86);
  --toggle-thumb: #f59e0b;
  --toggle-icon-muted: rgba(15, 23, 42, 0.42);

  --primary-button-bg: #e0f2fe;
  --primary-button-border: #7dd3fc;
  --primary-button-text: #075985;
  --primary-button-hover-bg: #bae6fd;
  --primary-button-hover-border: #38bdf8;

  --secondary-button-bg: #ffffff;
  --secondary-button-border: #cbd5e1;
  --secondary-button-text: #0f172a;
  --secondary-button-hover-bg: #f1f5f9;
  --secondary-button-hover-border: #94a3b8;
}


:root[data-theme="dark"] {
  color-scheme: dark;
  --body-gradient: radial-gradient(circle at top left, #1e3a8a 0, var(--bg) 38%);
  --panel-bg: rgba(15, 23, 42, 0.76);
  --panel-title-bg: rgba(2, 6, 23, 0.35);
  --copy-bg: rgba(56, 189, 248, 0.12);
  --copy-text: #bae6fd;
  --shadow: rgba(0, 0, 0, 0.28);
  --code: #bae6fd;

  --toggle-bg: rgba(15, 23, 42, 0.78);
  --toggle-thumb: #38bdf8;
  --toggle-icon-muted: rgba(226, 232, 240, 0.48);

  --primary-button-bg: #0284c7;
  --primary-button-border: #0284c7;
  --primary-button-text: #ffffff;
  --primary-button-hover-bg: #0369a1;
  --primary-button-hover-border: #0369a1;

  --secondary-button-bg: transparent;
  --secondary-button-border: var(--border);
  --secondary-button-text: var(--text);
  --secondary-button-hover-bg: rgba(148, 163, 184, 0.12);
  --secondary-button-hover-border: var(--border);
}


* {
  box-sizing: border-box;
}


html {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}


body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--body-gradient);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100vw 100vh;
  color: var(--text);
}


.topbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px 22px;
}


.topbar-brand {
  min-width: 0;
}


.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}


.language-switcher {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-bg);
  box-shadow: 0 8px 22px var(--shadow);
  backdrop-filter: blur(14px);
}


.language-link {
  width: 34px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}


.language-link:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
}


.language-link.is-active,
.language-link[aria-current="true"] {
  color: var(--copy-text);
  background: var(--copy-bg);
}


.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  line-height: 1;
  letter-spacing: -0.04em;
}


.brand-json-name {
  font-family: Inter, system-ui, sans-serif;
  font-size: 31px;
  font-weight: 800;
  color: var(--text);
}


.brand-tools {
  margin-left: 2px;
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 31px;
  font-weight: 800;
  color: var(--accent);
}


.brand-domain {
  margin-left: 3px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.02em;
}


.main-nav {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-bg);
  box-shadow: 0 8px 22px var(--shadow);
  backdrop-filter: blur(14px);
}


.main-nav-link {
  height: 30px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.main-nav-link:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
}


.main-nav-link.is-active,
.main-nav-link[aria-current="page"] {
  color: var(--copy-text);
  border-color: rgba(56, 189, 248, 0.45);
  background: var(--copy-bg);
}


.main-nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


h1 {
  margin: 0 0 6px;
  font-size: 28px;
}


p {
  margin: 0;
  color: var(--muted);
}


.theme-toggle {
  position: relative;
  width: 62px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--toggle-bg);
  box-shadow: 0 8px 22px var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  overflow: hidden;
  flex: 0 0 auto;
}


.theme-toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--toggle-thumb);
  box-shadow: 0 4px 14px var(--shadow);
  transition: transform 0.2s ease;
}


:root[data-theme="dark"] .theme-toggle::before {
  transform: translateX(30px);
}


.theme-icon {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  filter: grayscale(0.1);
}


:root[data-theme="light"] .theme-icon-moon,
:root[data-theme="dark"] .theme-icon-sun {
  opacity: 0.48;
  filter: grayscale(1);
}


.theme-toggle:hover {
  filter: none;
  border-color: var(--accent);
}


.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


/* SETTINGS PANEL */

.page {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
}


.page.is-active {
  display: flex;
}


.page-converter {
  flex-direction: column;
}


.page-about,
.page-docs,
.page-contacts {
  align-items: flex-start;
  overflow: auto;
  padding: 20px 32px 28px;
}


.about-layout,
.docs-layout,
.contacts-layout {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  align-content: start;
  gap: 16px;
}


.docs-layout {
  max-width: 1260px;
}


.about-hero,
.docs-hero,
.contacts-hero {
  padding: 18px 0 8px;
}


.docs-hero {
  width: 100%;
}


.about-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}


.about-hero h1,
.docs-hero h1,
.contacts-hero h1 {
  max-width: 980px;
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.14;
}


.about-hero p,
.docs-hero p,
.contacts-hero p {
  max-width: 920px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}


.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}


.about-card,
.faq-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-bg);
  box-shadow: 0 10px 28px var(--shadow);
  backdrop-filter: blur(14px);
}


.about-card {
  padding: 16px;
}


.about-card h2,
.faq-list h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.25;
}


.about-card p,
.faq-list p {
  margin: 0;
  line-height: 1.5;
}


.about-section {
  align-content: start;
}


.changelog-list {
  display: grid;
  gap: 0;
  margin-top: 2px;
}


.changelog-list article {
  border-top: 1px solid var(--border);
  padding: 10px 0;
}


.changelog-list article:first-child {
  border-top: 0;
  padding-top: 4px;
}


.changelog-list article:last-child {
  padding-bottom: 0;
}


.changelog-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}


.changelog-list p {
  display: block;
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}


.docs-main-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(520px, 1.35fr);
  gap: 16px;
  align-items: start;
}


.docs-api-section {
  width: 100%;
}


.contacts-layout {
  max-width: 1180px;
}


.contacts-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 16px;
  align-items: stretch;
}


.contact-card {
  align-content: start;
}


.contact-email {
  width: fit-content;
  display: inline-flex;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 8px;
  background: var(--copy-bg);
  color: var(--copy-text);
  font-weight: 850;
  text-decoration: none;
}


.contact-email:hover {
  border-color: var(--accent);
  color: var(--accent);
}


.contact-list {
  display: grid;
  gap: 9px;
  color: var(--muted);
  line-height: 1.45;
}


.contact-list span {
  padding-left: 12px;
  border-left: 2px solid rgba(56, 189, 248, 0.35);
}


.contact-form-section {
  width: 100%;
}


.contact-form {
  display: grid;
  gap: 12px;
}


.contact-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}


.contact-field select,
.contact-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}


.contact-field select {
  height: 38px;
  padding: 0 11px;
}


.contact-field .custom-select-trigger {
  height: 38px;
}


.contact-field textarea {
  grid-row: auto;
  height: auto;
  min-height: 150px;
  padding: 10px 11px;
  line-height: 1.45;
  resize: vertical;
}


.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}


.contact-submit {
  width: fit-content;
  min-width: 170px;
}


.faq-list,
.docs-section {
  display: grid;
  gap: 0;
  padding: 16px;
}


.faq-list details,
.docs-section details {
  border-top: 1px solid var(--border);
  padding: 9px 0;
}


.faq-list details:first-of-type,
.docs-section details:first-of-type {
  border-top: 0;
}


.faq-list summary,
.docs-section summary {
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.3;
}


.faq-list summary:hover,
.docs-section summary:hover {
  color: var(--accent);
}


.faq-list details p,
.docs-section details p {
  margin-top: 7px;
}


.docs-section {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-bg);
  box-shadow: 0 10px 28px var(--shadow);
  backdrop-filter: blur(14px);
}


.docs-section h2 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.25;
}


.docs-section > p {
  margin: 0 0 10px;
  line-height: 1.5;
}


.docs-section code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(148, 163, 184, 0.13);
  color: var(--copy-text);
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 0.92em;
}


.docs-section pre {
  overflow: auto;
  margin: 8px 0 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-2);
}


.docs-section pre code {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
}


.docs-table {
  display: grid;
  overflow: hidden;
  margin: 10px 0 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
}


.docs-table > div {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  padding: 9px 10px;
  border-top: 1px solid var(--border);
}


.docs-table > div:first-child {
  border-top: 0;
}


.docs-table strong {
  color: var(--copy-text);
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 13px;
}

.settings {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 4px 22px 9px;
  padding: 6px 7px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-bg);
  box-shadow: 0 8px 22px var(--shadow);
  backdrop-filter: blur(14px);
}


.settings-label {
  min-width: 0;
  padding: 0 4px 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}


.settings-main {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}


.toolbar-field {
  height: 34px;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}


.toolbar-field-label {
  flex: 0 0 auto;
  min-width: 62px;
  max-width: 92px;
  padding: 0 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.toolbar-field select {
  flex: 1 1 112px;
  width: 112px;
  min-width: 0;
  height: 32px;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0 10px 10px 0;
  background: transparent;
}


.toolbar-field .custom-select-trigger {
  flex: 1 1 112px;
  width: 112px;
  min-width: 0;
  height: 32px;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0 10px 10px 0;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
}


.toolbar-field select:focus {
  box-shadow: none;
}


.toolbar-field .custom-select-trigger:focus-visible {
  outline-offset: -2px;
}


.settings-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex: 0 0 auto;
  min-width: 0;
}


.switch-option.compact {
  height: 34px;
  gap: 8px;
  padding: 0 10px 0 7px;
  font-size: 13px;
}


.switch-option.compact .switch-ui {
  width: 34px;
  height: 20px;
}


.switch-option.compact .switch-ui::before {
  width: 14px;
  height: 14px;
}


.switch-option.compact input:checked + .switch-ui::before {
  transform: translate(14px, -50%);
}


.switch-option.pill {
  height: 34px;
  min-width: 64px;
  max-width: 100%;
  justify-content: center;
  padding: 0 11px;
  border-color: var(--border);
  background: var(--secondary-button-bg);
  color: var(--secondary-button-text);
}


.switch-option.pill input:checked ~ .switch-label {
  color: var(--copy-text);
}


.switch-option.pill:has(input:checked) {
  background: var(--copy-bg);
  border-color: rgba(56, 189, 248, 0.55);
}


.switch-option.pill.strict {
  min-width: 154px;
}


.field {
  display: inline-grid;
  grid-template-rows: 14px 38px;
  gap: 5px;
  min-width: 0;
}


.field-label {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}


.field .custom-select-trigger {
  height: 38px;
}


.switch-option {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 0 11px 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}


.switch-option:hover {
  background: rgba(148, 163, 184, 0.10);
  border-color: var(--border);
}


.switch-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}


.switch-ui {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  border: 1px solid var(--border);
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}


.switch-ui::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--muted);
  transform: translateY(-50%);
  transition:
    transform 0.16s ease,
    background 0.16s ease;
}


.switch-option input:checked + .switch-ui {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--accent);
}


.switch-option input:checked + .switch-ui::before {
  transform: translate(16px, -50%);
  background: var(--accent);
}


.switch-option input:checked ~ .switch-label {
  color: var(--text);
}


.switch-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}


.switch-option input:focus-visible + .switch-ui {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


:root[data-theme="light"] .switch-option:hover {
  background: rgba(2, 132, 199, 0.07);
}


:root[data-theme="light"] .switch-ui {
  background: #e2e8f0;
}


:root[data-theme="light"] .switch-ui::before {
  background: #64748b;
}


:root[data-theme="light"] .switch-option input:checked + .switch-ui {
  background: #dbeafe;
  border-color: #38bdf8;
}


:root[data-theme="light"] .switch-option input:checked + .switch-ui::before {
  background: #0284c7;
}


select,
button {
  height: 34px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 11px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
}


select {
  width: 100%;
  cursor: pointer;
  outline: none;
  background-color: var(--panel);
}


select option {
  background: var(--panel);
  color: var(--text);
}


select:hover {
  border-color: var(--accent);
}


select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}


.select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


.custom-select-trigger {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 34px 0 11px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}


.custom-select-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 13px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.82;
  transform: translateY(-65%) rotate(45deg);
}


.custom-select-trigger:hover,
.custom-select-trigger.is-open {
  background: var(--secondary-button-hover-bg);
  border-color: var(--accent);
  color: var(--text);
}


.custom-select-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


.custom-select-menu {
  position: fixed;
  z-index: 10000;
  overflow: auto;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  box-shadow: 0 18px 38px var(--shadow);
}


.custom-select-option {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}


.custom-select-option:hover,
.custom-select-option.is-selected {
  background: var(--secondary-button-hover-bg);
  color: var(--text);
}


button {
  cursor: pointer;
  border-color: var(--primary-button-border);
  background: var(--primary-button-bg);
  color: var(--primary-button-text);
  font-weight: 800;
}


button > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


button:hover {
  background: var(--primary-button-hover-bg);
  border-color: var(--primary-button-hover-border);
  filter: none;
}


.primary-action {
  min-width: 132px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}


.primary-action kbd {
  height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}


:root[data-theme="light"] .primary-action kbd {
  border-color: rgba(2, 132, 199, 0.22);
  background: rgba(255, 255, 255, 0.55);
}


button.secondary {
  background: var(--secondary-button-bg);
  border-color: var(--secondary-button-border);
  color: var(--secondary-button-text);
}


button.secondary:hover {
  background: var(--secondary-button-hover-bg);
  border-color: var(--secondary-button-hover-border);
  color: var(--secondary-button-text);
}


.workspace {
  display: grid;
  grid-template-columns: minmax(260px, var(--source-panel-width, 1fr)) 4px minmax(260px, 1fr);
  gap: 5px;
  padding: 0 22px 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}


.workspace.is-resizing {
  cursor: col-resize;
  user-select: none;
}


.workspace.is-snapped-center .workspace-divider {
  position: relative;
}


.workspace.is-snapped-center .workspace-divider::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.10);
}


.workspace-divider {
  width: 4px;
  height: 100%;
  align-self: stretch;
  justify-self: stretch;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: col-resize;
}


.workspace-divider span {
  width: 2px;
  height: 48px;
  display: block;
  margin: auto;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
  transition:
    width 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}


.workspace-divider:hover span,
.workspace-divider:focus-visible span,
.workspace.is-resizing .workspace-divider span,
.workspace.is-snapped-center .workspace-divider span {
  width: 3px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}


.panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-bg);
  overflow: hidden;
  box-shadow: 0 14px 46px var(--shadow);
}


.result-panel {
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}


.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 8px 10px 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-title-bg);
}


.panel-title-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}


.panel-title span {
  min-width: 0;
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.panel-title small {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.panel-tools {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


.file-input {
  display: none;
}


.panel-tool {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
  background: var(--copy-bg);
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--copy-text);
}


.panel-tool:hover {
  background: var(--copy-bg);
  border-color: var(--accent);
  color: var(--copy-text);
  filter: brightness(1.18);
}


.panel-tool.is-active {
  background: var(--copy-bg);
  border-color: var(--accent);
  color: var(--copy-text);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}


.panel-tool:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


.panel-tool svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.result-view-toggle {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.22);
}


.result-view-btn {
  width: 28px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}


.result-view-btn:hover {
  background: rgba(148, 163, 184, 0.10);
  border-color: transparent;
  color: var(--text);
}


.result-view-btn.is-active {
  background: var(--copy-bg);
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--copy-text);
}


.result-view-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


.result-view-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.tree-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}


.tree-tools.hidden {
  display: none;
}


.result-search {
  grid-row: 2;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel-title-bg) 72%, var(--panel-2));
}


.result-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}


.result-search input[type="search"] {
  width: 100%;
  height: 36px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}


.result-search input[type="search"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}


.result-search-regex {
  border-color: var(--border);
  background: var(--secondary-button-bg);
}


.result-search-summary {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.result-search-summary.is-error {
  color: var(--error);
}


.result-search-results {
  max-height: 126px;
  overflow: auto;
  display: grid;
  gap: 5px;
  padding-top: 2px;
}


.result-search-result {
  display: grid;
  grid-template-columns: minmax(110px, 0.36fr) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.08);
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 12px;
  line-height: 1.35;
}


.result-search-path,
.result-search-value,
.result-search-more {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.result-search-path {
  color: var(--copy-text);
}


.result-search-value {
  color: var(--text);
}


.result-search-more {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}


.editor-popover {
  position: fixed;
  z-index: 20;
  width: min(320px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 92%, var(--panel-2));
  color: var(--text);
  box-shadow: 0 24px 80px var(--shadow);
  backdrop-filter: blur(16px);
}


.editor-popover::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 24px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: inherit;
  transform: rotate(45deg);
}


.editor-popover-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}


.editor-popover-options {
  display: grid;
  gap: 8px;
}


.editor-popover .field {
  display: grid;
  grid-template-rows: 14px 38px auto;
}


.editor-popover .field.hidden {
  display: none;
}


.field-hint {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}


.editor-popover .switch-option.compact {
  width: 100%;
  justify-content: flex-start;
  border-color: var(--border);
  background: rgba(148, 163, 184, 0.08);
}


:root[data-theme="light"] .editor-popover .switch-option.compact {
  background: rgba(255, 255, 255, 0.72);
}


textarea,
.result,
.tree-view {
  grid-row: 2;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 14px;
  border: 0;
  outline: none;
  resize: none;
  overflow: auto;
  background: var(--panel-2);
  color: var(--text);
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 14px;
  line-height: 1.55;
  tab-size: var(--editor-tab-size, 2);
}


.result-panel textarea,
.result-panel .result,
.result-panel .tree-view {
  grid-row: 3;
}


.tree-view {
  overflow: auto;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
}


.tree-empty {
  padding: 2px;
  color: var(--muted);
}


.tree-node {
  min-width: max-content;
  color: var(--text);
}


.tree-row {
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px 0 4px;
  border-radius: 5px;
  white-space: nowrap;
}


.tree-row:hover {
  background: rgba(148, 163, 184, 0.08);
}


.tree-toggle {
  width: 22px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}


.tree-toggle:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
}


.tree-toggle:focus-visible {
  outline: 1px solid rgba(56, 189, 248, 0.7);
  outline-offset: 1px;
}


.tree-spacer {
  width: 22px;
  height: 20px;
  flex: 0 0 auto;
}


.tree-key {
  color: #7dd3fc;
}


.tree-value-string {
  color: #86efac;
}


.tree-value-number,
.tree-value-boolean {
  color: #fbbf24;
}


.tree-value-null {
  color: #c084fc;
}


.tree-summary {
  color: var(--muted);
}


.tree-children {
  margin-left: 15px;
  padding-left: 11px;
  border-left: 1px solid rgba(148, 163, 184, 0.26);
}


.tree-children.is-collapsed {
  display: none;
}


:root[data-theme="light"] .result-view-toggle {
  background: rgba(255, 255, 255, 0.58);
}


:root[data-theme="light"] .tree-key {
  color: #0369a1;
}


:root[data-theme="light"] .tree-value-string {
  color: #15803d;
}


:root[data-theme="light"] .tree-value-number,
:root[data-theme="light"] .tree-value-boolean {
  color: #b45309;
}


:root[data-theme="light"] .tree-value-null {
  color: #7e22ce;
}


.result {
  overflow: auto;
  white-space: pre;
}


.result-stats {
  grid-row: 4;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 30px;
  padding: 6px 12px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel-2) 88%, var(--panel));
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.result-stats.is-empty {
  display: none;
}


.CodeMirror {
  grid-row: 2;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  background: var(--panel-2);
  color: var(--text);
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  tab-size: var(--editor-tab-size, 2);
}


.result-panel .CodeMirror {
  grid-row: 3;
}


.CodeMirror-scroll {
  min-height: 0;
}


.CodeMirror-gutters {
  background: color-mix(in srgb, var(--panel-2) 88%, var(--border));
  border-right: 1px solid var(--border);
}


.CodeMirror-linenumber {
  color: var(--muted);
}


.CodeMirror-cursor {
  border-left-color: var(--text);
}


.CodeMirror-selected {
  background: rgba(56, 189, 248, 0.22);
}


.CodeMirror-focused .CodeMirror-selected {
  background: rgba(56, 189, 248, 0.28);
}


.CodeMirror-activeline-background {
  background: rgba(56, 189, 248, 0.08);
}


.CodeMirror-matchingbracket {
  background: rgba(34, 211, 238, 0.24);
  border: 1px solid rgba(125, 211, 252, 0.8);
  border-radius: 3px;
  color: var(--text) !important;
}


.CodeMirror-nonmatchingbracket {
  background: rgba(248, 113, 113, 0.22);
  border: 1px solid rgba(248, 113, 113, 0.7);
  border-radius: 3px;
  color: var(--error) !important;
}


.cm-search-match {
  background: rgba(250, 204, 21, 0.32);
  border-bottom: 1px solid rgba(250, 204, 21, 0.82);
}


.cm-search-match-active {
  background: rgba(56, 189, 248, 0.34);
  border-bottom-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.55);
}


.cm-visible-space {
  position: relative;
  color: transparent;
}


.cm-visible-space::before {
  content: "·";
  position: absolute;
  inset: 0;
  color: rgba(148, 163, 184, 0.9);
  text-align: center;
}


.cm-visible-tab {
  color: transparent;
}


.cm-visible-tab::before {
  content: "→";
  color: rgba(148, 163, 184, 0.9);
}


.CodeMirror.show-whitespace .cm-tab {
  position: relative;
}


.CodeMirror.show-whitespace .cm-tab::before {
  content: "→";
  position: absolute;
  left: 0;
  color: rgba(148, 163, 184, 0.9);
}


.cm-s-default .cm-property {
  color: #7dd3fc;
}


.cm-s-default .cm-string {
  color: #86efac;
}


.cm-s-default .cm-number,
.cm-s-default .cm-atom {
  color: #fbbf24;
}


.cm-s-default .cm-keyword {
  color: #c084fc;
}


.cm-s-default .cm-tag {
  color: #60a5fa;
}


.cm-s-default .cm-attribute {
  color: #f9a8d4;
}


:root[data-theme="light"] .cm-s-default .cm-property {
  color: #0369a1;
}


:root[data-theme="light"] .cm-s-default .cm-string {
  color: #15803d;
}


:root[data-theme="light"] .cm-s-default .cm-number,
:root[data-theme="light"] .cm-s-default .cm-atom {
  color: #b45309;
}


:root[data-theme="light"] .cm-s-default .cm-keyword {
  color: #7e22ce;
}


:root[data-theme="light"] .cm-s-default .cm-tag {
  color: #1d4ed8;
}


:root[data-theme="light"] .cm-s-default .cm-attribute {
  color: #be185d;
}


.error {
  grid-row: 5;
  padding: 14px 16px;
  background: var(--error-bg);
  color: var(--error);
  border-top: 1px solid #991b1b;
  font-family: "JetBrains Mono", Consolas, monospace;
  white-space: pre-wrap;
}


.hidden {
  display: none;
}


footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  padding: 0 32px 24px;
  font-size: 13px;
}


code {
  color: var(--code);
}

.footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 32px 0px;
  color: var(--muted);
  font-size: 13px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent);
}

@media (max-width: 1100px) {
  .docs-main-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-section {
    max-width: none;
  }
}


@media (min-width: 901px) and (max-width: 1180px) {
  .topbar {
    padding: 8px 18px 6px;
  }

  .brand-json-name,
  .brand-tools {
    font-size: 29px;
  }

  .brand-domain {
    font-size: 14px;
  }

  .settings {
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 4px 18px 8px;
  }

  .settings-label {
    display: none;
  }

  .settings-main {
    gap: 6px;
  }

  .settings-actions {
    gap: 6px;
  }

  .primary-action kbd {
    display: none;
  }

  .workspace {
    grid-template-columns: minmax(300px, var(--source-panel-width, 1fr)) 4px minmax(300px, 1fr);
    padding: 0 18px 12px;
  }
}


@media (max-width: 900px) {
  html {
    overflow: auto;
  }

  body {
    min-height: 100vh;
    height: auto;
    overflow: auto;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 12px 6px;
  }

  .topbar-brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .topbar-actions {
    grid-column: 2;
    grid-row: 1;
    display: inline-flex;
    justify-self: end;
    gap: 8px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    max-width: 100%;
    overflow-x: auto;
    box-shadow: 0 6px 18px var(--shadow);
  }

  .brand {
    min-width: 0;
  }

  .brand-json-name,
  .brand-tools {
    font-size: 26px;
  }

  .brand-domain {
    font-size: 13px;
  }

  .theme-toggle {
    justify-self: end;
  }

  .settings {
    margin: 6px 12px 8px;
    padding: 6px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 7px;
    border-radius: 12px;
  }

  .settings-label {
    display: none;
  }

  .settings-main {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
  }

  .field {
    grid-template-rows: 15px 38px;
    gap: 6px;
    min-width: 0;
  }

  .toolbar-field {
    grid-column: span 3;
    width: 100%;
    height: 32px;
  }

  .toolbar-field-label {
    min-width: 58px;
    max-width: 74px;
    padding: 0 8px;
  }

  .toolbar-field select,
  .toolbar-field .custom-select-trigger {
    width: 100%;
    min-width: 0;
    flex-basis: 0;
    height: 30px;
  }

  .field-label {
    font-size: 12px;
  }

  select {
    width: 100%;
    min-width: 0;
  }

  .switch-option {
    grid-column: span 2;
    width: 100%;
    height: 32px;
    justify-content: center;
    padding: 0 8px;
    border-color: var(--border);
    background: rgba(148, 163, 184, 0.08);
  }

  .switch-option.pill {
    min-width: 0;
  }

  :root[data-theme="light"] .switch-option {
    background: rgba(255, 255, 255, 0.72);
  }

  .switch-label {
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .settings-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .settings-actions button {
    width: 100%;
    min-width: 0;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }

  .primary-action {
    gap: 6px;
  }

  .primary-action {
    min-width: 0;
  }

  .primary-action kbd {
    display: none;
  }

  .workspace {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 0 12px 12px;
    overflow: visible;
  }

  .workspace-divider {
    display: none;
  }

  .panel {
    height: clamp(320px, 42vh, 430px);
    min-height: 0;
    border-radius: 12px;
  }

  .panel-title {
    padding: 7px 8px 7px 10px;
  }

  .panel-title span {
    font-size: 15px;
  }

  .panel-title small {
    font-size: 12px;
  }

  .panel-tools {
    gap: 5px;
  }

  .panel-tool {
    width: 30px;
    height: 30px;
  }

  .editor-popover {
    width: calc(100vw - 28px);
  }

  .page-about,
  .page-docs,
  .page-contacts {
    padding: 12px 14px 18px;
  }

  .about-hero,
  .docs-hero,
  .contacts-hero {
    padding: 10px 0 4px;
  }

  .about-hero h1,
  .docs-hero h1,
  .contacts-hero h1 {
    font-size: 24px;
  }

  .about-hero p,
  .docs-hero p,
  .contacts-hero p {
    font-size: 14px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .docs-table > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  textarea,
  .result {
    padding: 10px;
    font-size: 13px;
    line-height: 1.45;
  }

  footer {
    display: none;
  }
}


@media (min-width: 700px) and (max-width: 900px) {
  .settings {
    max-width: 760px;
    width: calc(100% - 24px);
    margin-right: auto;
    margin-left: auto;
  }

  .workspace {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
  }

  .panel {
    height: clamp(350px, 40vh, 410px);
  }
}


@media (max-width: 560px) {
  .topbar {
    padding: 9px 10px 5px;
  }

  .brand-json-name,
  .brand-tools {
    font-size: 23px;
  }

  .brand-domain {
    font-size: 12px;
  }

  .theme-toggle {
    width: 54px;
    height: 30px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .language-switcher {
    height: 30px;
    padding: 3px;
  }

  .language-link {
    width: 30px;
    height: 22px;
    font-size: 10px;
  }

  .theme-toggle::before {
    width: 20px;
    height: 20px;
  }

  :root[data-theme="dark"] .theme-toggle::before {
    transform: translateX(26px);
  }

  .theme-icon {
    width: 26px;
    height: 30px;
    font-size: 12px;
  }

  .main-nav {
    width: 100%;
    justify-content: stretch;
  }

  .main-nav-link {
    flex: 1 1 auto;
    height: 29px;
    padding: 0 7px;
    font-size: 12px;
  }

  .settings {
    margin: 5px 10px 7px;
    padding: 5px;
  }

  .settings-main {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
  }

  .settings-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .switch-option {
    height: 30px;
    font-size: 12px;
  }

  .switch-option.pill.strict {
    min-width: 0;
    padding: 0 6px;
  }

  .toolbar-field {
    height: 30px;
    font-size: 12px;
  }

  .toolbar-field-label {
    font-size: 11px;
    min-width: 54px;
    max-width: 66px;
    padding: 0 7px;
  }

  .toolbar-field select,
  .toolbar-field .custom-select-trigger {
    height: 28px;
  }

  .settings-actions button {
    height: 30px;
    font-size: 12px;
  }

  .workspace {
    padding: 0 10px 10px;
  }

  .panel {
    height: clamp(310px, 44vh, 380px);
  }

  .panel-title {
    gap: 6px;
  }

  .panel-title small {
    max-width: 190px;
  }

  .CodeMirror {
    font-size: 12px;
    line-height: 1.4;
  }

  .panel-tool {
    width: 28px;
    height: 28px;
  }

  .panel-tool svg {
    width: 16px;
    height: 16px;
  }
}


@media (max-width: 480px) {
  .brand-json-name,
  .brand-tools {
    font-size: 21px;
  }

  .brand-domain {
    font-size: 11px;
  }

  .panel-title span {
    font-size: 14px;
  }

  .panel-title small {
    max-width: 160px;
  }

  .settings-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar-field {
    grid-column: span 1;
  }

  .switch-option {
    grid-column: span 1;
  }

  .switch-option.pill.strict {
    grid-column: 1 / -1;
  }

  .settings-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-actions button {
    padding: 0 7px;
  }

  .primary-action {
    grid-column: 1 / -1;
  }
}


@media (max-height: 560px) and (min-width: 700px) {
  html {
    overflow: hidden;
  }

  body {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 6px 16px 4px;
  }

  .topbar-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .topbar-actions {
    display: flex;
    grid-column: 3;
    grid-row: 1;
  }

  .brand-json-name,
  .brand-tools {
    font-size: 25px;
  }

  .brand-domain {
    font-size: 12px;
  }

  .main-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: auto;
    max-width: 100%;
  }

  .main-nav-link {
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
  }

  .theme-toggle {
    width: 54px;
    height: 28px;
  }

  .theme-toggle::before {
    width: 18px;
    height: 18px;
  }

  :root[data-theme="dark"] .theme-toggle::before {
    transform: translateX(28px);
  }

  .theme-icon {
    width: 26px;
    height: 28px;
    font-size: 12px;
  }

  .settings {
    grid-template-columns: minmax(0, 1fr) auto;
    width: auto;
    max-width: none;
    margin: 3px 16px 6px;
    padding: 5px;
    gap: 6px;
  }

  .settings-label {
    display: none;
  }

  .settings-main {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .toolbar-field {
    grid-column: auto;
    width: auto;
    height: 30px;
  }

  .toolbar-field-label {
    font-size: 11px;
    min-width: 54px;
    max-width: 68px;
    padding: 0 7px;
  }

  .toolbar-field select,
  .toolbar-field .custom-select-trigger {
    width: auto;
    min-width: 96px;
    flex-basis: 96px;
    height: 28px;
  }

  .switch-option,
  .switch-option.pill {
    grid-column: auto;
    width: auto;
    height: 30px;
    min-width: 54px;
    padding: 0 9px;
    font-size: 12px;
  }

  .switch-option.pill.strict {
    min-width: 132px;
  }

  .settings-actions {
    display: flex;
    gap: 5px;
    width: auto;
  }

  .settings-actions button {
    width: auto;
    height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }

  .primary-action {
    min-width: 116px;
  }

  .primary-action kbd {
    display: none;
  }

  .page-converter {
    min-height: 0;
  }

  .workspace {
    grid-template-columns: minmax(260px, var(--source-panel-width, 1fr)) 4px minmax(260px, 1fr);
    gap: 5px;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0 16px 8px;
    overflow: hidden;
  }

  .workspace-divider {
    display: block;
  }

  .panel {
    height: auto;
    min-height: 0;
    border-radius: 11px;
  }

  .panel-title {
    padding: 6px 7px 6px 9px;
  }

  .panel-title-text {
    gap: 1px;
  }

  .panel-title span {
    font-size: 14px;
  }

  .panel-title small {
    display: none;
  }

  .panel-tools {
    gap: 4px;
  }

  .panel-tool {
    width: 28px;
    height: 28px;
  }

  .panel-tool svg {
    width: 16px;
    height: 16px;
  }

  .result-stats {
    min-height: 26px;
    padding: 4px 10px;
    font-size: 11px;
  }

  .CodeMirror {
    font-size: 12px;
    line-height: 1.38;
  }

  footer,
  .footer {
    display: none;
  }
}
