.tool-json-page .json-workspace {
  display: grid;
  gap: 24px;
}

.tool-json-page .json-step {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--gt-line, #e2d9ce);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(64, 48, 35, 0.06);
}

.tool-json-page .json-step__heading,
.tool-json-page .json-step__heading-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tool-json-page .json-step__heading--split {
  justify-content: space-between;
  gap: 24px;
}

.tool-json-page .json-step__number {
  display: inline-grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 50%;
  background: #fff4e8;
  color: #c65c11;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.tool-json-page .json-step__eyebrow,
.tool-json-page .json-content-kicker {
  margin: 0 0 3px;
  color: #b9550f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.tool-json-page .json-step__heading h3 {
  margin: 0;
  color: var(--gt-ink, #28231f);
  font-size: 21px;
  line-height: 1.4;
}

.tool-json-page .json-utility-actions,
.tool-json-page .json-main-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.tool-json-page button {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.tool-json-page button:not(:disabled):hover {
  transform: translateY(-1px);
}

.tool-json-page button:focus-visible,
.tool-json-page textarea:focus-visible,
.tool-json-page input:focus-visible + span,
.tool-json-page summary:focus-visible {
  outline: 3px solid rgba(217, 119, 36, 0.27);
  outline-offset: 2px;
}

.tool-json-page button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.tool-json-page .json-primary-button {
  border: 1px solid #c96318;
  background: #d97724;
  color: #fff;
  box-shadow: 0 7px 18px rgba(185, 85, 15, 0.16);
}

.tool-json-page .json-primary-button:not(:disabled):hover {
  background: #c5651a;
  box-shadow: 0 9px 22px rgba(185, 85, 15, 0.22);
}

.tool-json-page .json-secondary-button {
  border: 1px solid #d9cfc4;
  background: #fff;
  color: var(--gt-ink, #28231f);
}

.tool-json-page .json-secondary-button:not(:disabled):hover {
  border-color: #d97724;
  background: #fff9f3;
  color: #a84c0a;
}

.tool-json-page .json-text-button {
  padding-right: 8px;
  padding-left: 8px;
  border: 0;
  background: transparent;
  color: #786d64;
}

.tool-json-page .json-text-button:hover {
  color: #a84c0a;
}

body.gt-redesign.gt-tool.tool-json-page .service_wrap button.json-primary-button,
body.gt-redesign.gt-tool.tool-json-page .service_wrap button.json-secondary-button,
body.gt-redesign.gt-tool.tool-json-page .service_wrap button.json-text-button {
  border-radius: 999px;
}

body.gt-redesign.gt-tool.tool-json-page .service_wrap button.json-secondary-button {
  border-color: #d9cfc4;
  background: #fff;
  color: var(--gt-ink, #28231f);
  box-shadow: none;
}

body.gt-redesign.gt-tool.tool-json-page .service_wrap button.json-secondary-button:not(:disabled):hover {
  border-color: #d97724;
  background: #fff9f3;
  color: #a84c0a;
}

body.gt-redesign.gt-tool.tool-json-page .service_wrap button.json-text-button {
  border-color: transparent;
  background: transparent;
  color: #786d64;
  box-shadow: none;
}

body.gt-redesign.gt-tool.tool-json-page .service_wrap button.json-text-button:hover {
  border-color: transparent;
  background: transparent;
  color: #a84c0a;
}

.tool-json-page .json-editor-shell {
  position: relative;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ded5cb;
  border-radius: 12px;
  background: #faf8f5;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.tool-json-page .json-editor-shell:focus-within {
  border-color: #d97724;
  box-shadow: 0 0 0 3px rgba(217, 119, 36, 0.1);
}

.tool-json-page .json-editor-shell.is-dragover {
  border-color: #d97724;
  background: #fff8ef;
  box-shadow: inset 0 0 0 2px rgba(217, 119, 36, 0.13);
}

.tool-json-page .json-editor-label {
  display: block;
  margin: 0 0 9px;
  color: #524a43;
  font-size: 13px;
  font-weight: 700;
}

.tool-json-page .json-editor {
  display: block;
  width: 100%;
  min-height: 330px;
  resize: vertical;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #24201d;
  padding: 18px;
  font-family: Consolas, "SFMono-Regular", "Noto Sans Mono CJK JP", "Yu Gothic UI", monospace;
  font-size: 15px;
  line-height: 1.75;
  tab-size: 2;
}

.tool-json-page .json-editor::placeholder {
  color: #a59b92;
}

.tool-json-page .json-editor[readonly] {
  background: #fcfcfb;
}

.tool-json-page .json-editor-help,
.tool-json-page .json-editor-stats {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: #7c7067;
  font-size: 12px;
  line-height: 1.6;
}

.tool-json-page .json-editor-stats {
  position: absolute;
  right: 15px;
  bottom: 13px;
  margin: 0;
  padding: 2px 5px;
  background: rgba(250, 248, 245, 0.93);
  font-variant-numeric: tabular-nums;
}

.tool-json-page .json-editor-help {
  padding-right: 180px;
}

.tool-json-page .json-settings-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 22px;
}

.tool-json-page .json-indent-options {
  min-width: 355px;
  margin: 0;
  padding: 0;
  border: 0;
}

.tool-json-page .json-indent-options legend {
  margin-bottom: 9px;
  color: #524a43;
  font-size: 13px;
  font-weight: 700;
}

.tool-json-page .json-indent-options > div {
  display: flex;
  overflow: hidden;
  border: 1px solid #d9cfc4;
  border-radius: 10px;
  background: #fff;
}

.tool-json-page .json-indent-options label {
  flex: 1 1 0;
  cursor: pointer;
}

.tool-json-page .json-indent-options label + label {
  border-left: 1px solid #d9cfc4;
}

.tool-json-page .json-indent-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tool-json-page .json-indent-options span {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 8px 12px;
  color: #5f554d;
  font-size: 13px;
  font-weight: 700;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.tool-json-page .json-indent-options input:checked + span {
  background: #fff2e5;
  color: #ad4d0b;
}

.tool-json-page .json-status {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid #ded5cb;
  border-radius: 12px;
  background: #faf8f5;
  color: #514941;
}

.tool-json-page .json-status[hidden] {
  display: none;
}

.tool-json-page .json-status.is-success {
  border-color: #b9dec7;
  background: #f1fbf4;
  color: #235e3b;
}

.tool-json-page .json-status.is-error {
  border-color: #edbeb7;
  background: #fff5f3;
  color: #8f2e20;
}

.tool-json-page .json-status.is-warning {
  border-color: #ecd39d;
  background: #fffaf0;
  color: #785111;
}

.tool-json-page .json-status__icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 50%;
  background: currentColor;
  color: inherit;
}

.tool-json-page .json-status__icon::after {
  color: #fff;
  content: "i";
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.tool-json-page .json-status.is-success .json-status__icon::after {
  content: "✓";
}

.tool-json-page .json-status.is-error .json-status__icon::after {
  content: "!";
}

.tool-json-page .json-status strong {
  display: block;
  margin: 1px 0 3px;
  font-size: 15px;
}

.tool-json-page .json-status p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.tool-json-page .json-status__detail {
  margin-top: 5px !important;
  font-family: Consolas, "SFMono-Regular", monospace;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.tool-json-page .json-content {
  display: grid;
  gap: 60px;
  margin-top: 72px;
  margin-bottom: 24px;
}

.tool-json-page .json-content-section {
  padding: 0 4px;
}

.tool-json-page .json-content-section > h2 {
  margin: 0 0 24px;
  color: var(--gt-ink, #28231f);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.45;
}

.tool-json-page .json-howto-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: json-howto;
}

.tool-json-page .json-howto-list li {
  position: relative;
  min-height: 165px;
  padding: 28px 24px 24px;
  border: 1px solid var(--gt-line, #e2d9ce);
  border-radius: 14px;
  background: #fff;
  counter-increment: json-howto;
}

.tool-json-page .json-howto-list li::before {
  display: block;
  margin-bottom: 16px;
  color: #d97724;
  content: "0" counter(json-howto);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.tool-json-page .json-howto-list strong,
.tool-json-page .json-howto-list span {
  display: block;
}

.tool-json-page .json-howto-list strong {
  margin-bottom: 8px;
  color: var(--gt-ink, #28231f);
  font-size: 18px;
}

.tool-json-page .json-howto-list span,
.tool-json-page .json-function-grid p,
.tool-json-page .json-faq-list p {
  color: var(--gt-ink-soft, #6b625b);
  font-size: 14px;
  line-height: 1.85;
}

.tool-json-page .json-function-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-json-page .json-function-grid article {
  padding: 25px;
  border-top: 3px solid #d97724;
  border-radius: 2px 2px 12px 12px;
  background: #fff8f1;
}

.tool-json-page .json-function-grid article > span {
  color: #b9550f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.tool-json-page .json-function-grid h3 {
  margin: 8px 0 10px;
  color: var(--gt-ink, #28231f);
  font-size: 19px;
}

.tool-json-page .json-function-grid p {
  margin: 0;
}

.tool-json-page .json-faq-list {
  border-top: 1px solid var(--gt-line, #e2d9ce);
}

.tool-json-page .json-faq-list details {
  border-bottom: 1px solid var(--gt-line, #e2d9ce);
}

.tool-json-page .json-faq-list summary {
  position: relative;
  padding: 21px 46px 21px 3px;
  color: var(--gt-ink, #28231f);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  cursor: pointer;
  list-style: none;
}

.tool-json-page .json-faq-list summary::-webkit-details-marker {
  display: none;
}

.tool-json-page .json-faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 10px;
  color: #d97724;
  content: "+";
  font-size: 24px;
  font-weight: 400;
  transform: translateY(-50%);
}

.tool-json-page .json-faq-list details[open] summary::after {
  content: "−";
}

.tool-json-page .json-faq-list p {
  margin: -3px 0 20px;
  padding: 0 46px 0 3px;
}

@media (max-width: 860px) {
  .tool-json-page .json-step__heading--split,
  .tool-json-page .json-settings-row {
    align-items: stretch;
    flex-direction: column;
  }

  .tool-json-page .json-step__heading--split .json-utility-actions,
  .tool-json-page .json-main-actions {
    justify-content: flex-start;
  }

  .tool-json-page .json-indent-options {
    min-width: 0;
  }

  .tool-json-page .json-howto-list,
  .tool-json-page .json-function-grid {
    grid-template-columns: 1fr;
  }

  .tool-json-page .json-howto-list li {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .tool-json-page .json-step {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .tool-json-page .json-step__heading,
  .tool-json-page .json-step__heading-main {
    align-items: flex-start;
  }

  .tool-json-page .json-step__number {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 13px;
  }

  .tool-json-page .json-step__eyebrow,
  .tool-json-page .json-content-kicker,
  .tool-json-page .json-function-grid article > span {
    font-size: 13px;
  }

  .tool-json-page .json-step__heading h3 {
    font-size: 20px;
  }

  .tool-json-page .json-utility-actions,
  .tool-json-page .json-main-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .tool-json-page .json-utility-actions .json-text-button {
    grid-column: 1 / -1;
  }

  .tool-json-page .json-main-actions .json-primary-button {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .tool-json-page button,
  .tool-json-page .json-indent-options span,
  .tool-json-page .json-editor-label,
  .tool-json-page .json-status p {
    font-size: 13px;
  }

  .tool-json-page .json-editor-shell {
    padding: 11px;
  }

  .tool-json-page .json-editor {
    min-height: 285px;
    padding: 14px;
    font-size: 16px;
    line-height: 1.7;
  }

  .tool-json-page .json-editor-help,
  .tool-json-page .json-editor-stats {
    position: static;
    min-height: 0;
    margin-top: 9px;
    padding: 0;
    background: transparent;
    font-size: 13px;
  }

  .tool-json-page .json-editor-help {
    padding-right: 0;
  }

  .tool-json-page .json-indent-options > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tool-json-page .json-indent-options label + label {
    border-left: 1px solid #d9cfc4;
  }

  .tool-json-page .json-indent-options span {
    padding-right: 5px;
    padding-left: 5px;
    text-align: center;
  }

  .tool-json-page .json-status {
    padding: 14px;
  }

  .tool-json-page .json-status strong {
    font-size: 15px;
  }

  .tool-json-page .json-content {
    gap: 46px;
    margin-top: 54px;
  }

  .tool-json-page .json-content-section > h2 {
    font-size: 25px;
  }

  .tool-json-page .json-howto-list span,
  .tool-json-page .json-function-grid p,
  .tool-json-page .json-faq-list p {
    font-size: 16px;
  }

  .tool-json-page .json-faq-list summary {
    font-size: 16px;
  }
}
