.csv-json-tool {
  --cjt-ink: #172d2a;
  --cjt-muted: #74817d;
  --cjt-line: #e4ebe8;
  --cjt-paper: #fbfcfa;
  --cjt-green: #197b67;
  --cjt-green-deep: #126551;
  --cjt-soft: #edf7f2;
  color: var(--cjt-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  isolation: isolate;
  width: 100%;
}

.csv-json-tool *,
.csv-json-tool *::before,
.csv-json-tool *::after {
  box-sizing: border-box;
}

.cjt-shell {
  background:
    radial-gradient(ellipse at 0 0, rgba(218, 239, 229, .42), transparent 30rem),
    var(--cjt-paper);
  border: 1px solid #e7eeea;
  border-radius: 18px;
  margin: 20px auto;
  max-width: 1150px;
  overflow: hidden;
}

.cjt-header {
  align-items: center;
  border-bottom: 1px solid var(--cjt-line);
  display: flex;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 32px;
}

.cjt-brand {
  align-items: center;
  color: var(--cjt-ink);
  display: inline-flex;
  font-size: 15px;
  font-weight: 750;
  gap: 10px;
  letter-spacing: -.035em;
  text-decoration: none;
}

.cjt-brand:hover,
.cjt-brand:focus {
  color: var(--cjt-ink);
  text-decoration: none;
}

.cjt-brand-mark,
.cjt-upload-icon,
.cjt-footnote-icon {
  align-items: center;
  background: var(--cjt-soft);
  border-radius: 10px;
  color: var(--cjt-green);
  display: inline-flex;
  justify-content: center;
}

.cjt-brand-mark {
  height: 32px;
  width: 32px;
}

.cjt-brand-mark svg {
  height: 17px;
  width: 17px;
}

.cjt-brand-arrow {
  color: var(--cjt-green);
  font-weight: 600;
}

.cjt-privacy {
  align-items: center;
  color: var(--cjt-muted);
  display: inline-flex;
  font-size: 12px;
  gap: 8px;
}

.cjt-privacy-dot {
  background: #4ca888;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #e8f4ed;
  height: 7px;
  width: 7px;
}

.cjt-main {
  margin: 0 auto;
  max-width: 1050px;
  padding: 42px 28px 26px;
}

.cjt-intro {
  margin: 0 auto 32px;
  max-width: 660px;
  text-align: center;
}

.cjt-eyebrow {
  color: var(--cjt-green);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .11em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.cjt-intro h1 {
  color: var(--cjt-ink);
  font-size: clamp(30px, 4vw, 45px);
  font-weight: 740;
  letter-spacing: -.055em;
  line-height: 1.1;
  margin: 0;
}

.cjt-intro h1 span {
  color: var(--cjt-green);
}

.cjt-intro p {
  color: var(--cjt-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 14px auto 0;
  max-width: 540px;
}

.cjt-workspace {
  background: #fff;
  border: 1px solid var(--cjt-line);
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(28, 69, 56, .06);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
}

.cjt-pane {
  min-width: 0;
  padding: 23px 24px 21px;
}

.cjt-output-pane {
  background: #fbfcfb;
  border-left: 1px solid var(--cjt-line);
  display: flex;
  flex-direction: column;
}

.cjt-pane-heading,
.cjt-pane-heading > div:first-child {
  align-items: center;
  display: flex;
}

.cjt-pane-heading {
  justify-content: space-between;
  margin-bottom: 18px;
  min-height: 26px;
}

.cjt-pane-heading > div:first-child {
  gap: 9px;
}

.cjt-pane-heading h2 {
  color: var(--cjt-ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 0;
}

.cjt-step {
  color: #98a49f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.cjt-text-button,
.cjt-inline-button {
  background: none;
  border: 0;
  color: var(--cjt-green);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  padding: 3px 0;
  text-decoration: none;
}

.cjt-text-button:hover,
.cjt-inline-button:hover {
  color: var(--cjt-green-deep);
  text-decoration: underline;
}

.cjt-dropzone {
  background: #fbfdfb;
  border: 1px dashed #c6d8d0;
  border-radius: 10px;
  min-height: 126px;
  overflow: hidden;
  position: relative;
  transition: background .15s ease, border-color .15s ease;
}

.cjt-dropzone.is-dragging {
  background: #eff8f3;
  border-color: var(--cjt-green);
}

.cjt-file-input {
  cursor: pointer;
  height: 100%;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.cjt-drop-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 126px;
  pointer-events: none;
  text-align: center;
}

.cjt-upload-icon {
  height: 31px;
  margin-bottom: 8px;
  width: 35px;
}

.cjt-upload-icon svg {
  height: 17px;
  width: 17px;
}

.cjt-drop-content strong {
  color: var(--cjt-ink);
  font-size: 12px;
  font-weight: 650;
}

.cjt-drop-content div > span {
  color: var(--cjt-muted);
  font-size: 11px;
  margin-left: 3px;
}

.cjt-drop-content .cjt-inline-button {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.cjt-file-hint {
  color: #9ba6a2;
  font-size: 10px;
  margin-top: 6px;
}

.cjt-textarea-wrap {
  margin-top: 17px;
}

.cjt-label {
  color: #51615c;
  display: block;
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 7px;
}

.cjt-textarea {
  background: #fff;
  border: 1px solid #e0e8e4;
  border-radius: 8px;
  color: var(--cjt-ink);
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.6;
  min-height: 135px;
  padding: 11px 12px;
  resize: vertical;
  width: 100%;
}

.cjt-textarea:focus,
.cjt-select-label select:focus,
.cjt-indent-label select:focus {
  border-color: #78b8a2;
  box-shadow: 0 0 0 3px rgba(25, 123, 103, .09);
  outline: 0;
}

.cjt-textarea::placeholder {
  color: #a8b1ad;
}

.cjt-input-footer {
  align-items: center;
  color: #96a29d;
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  margin-top: 5px;
  min-height: 20px;
}

.cjt-clear-button {
  color: #86928d;
  font-size: 10px;
}

.cjt-options {
  align-items: center;
  border-top: 1px solid #edf1ef;
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 13px;
}

.cjt-checkbox-label {
  align-items: center;
  color: #51615c;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  gap: 8px;
}

.cjt-checkbox-label input {
  accent-color: var(--cjt-green);
  height: 14px;
  margin: 0;
  width: 14px;
}

.cjt-select-label,
.cjt-indent-label {
  align-items: center;
  color: #718079;
  display: inline-flex;
  font-size: 10px;
  gap: 6px;
}

.cjt-select-label select,
.cjt-indent-label select {
  background: #fff;
  border: 1px solid #e0e8e4;
  border-radius: 6px;
  color: #42544c;
  font: inherit;
  font-size: 10px;
  padding: 5px 7px;
}

.cjt-count {
  color: #95a29c;
  font-size: 10px;
  font-weight: 500;
  margin-left: -3px;
}

.cjt-output-wrap {
  border: 1px solid #e5ece8;
  border-radius: 9px;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 335px;
  overflow: hidden;
}

.cjt-output-toolbar {
  align-items: center;
  background: #f7f9f7;
  border-bottom: 1px solid #e8eeeb;
  display: flex;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 11px;
}

.cjt-output-file {
  align-items: center;
  color: #718079;
  display: inline-flex;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  gap: 6px;
}

.cjt-output-file svg {
  color: #98a7a0;
  height: 13px;
  width: 13px;
}

.cjt-json-badge {
  background: #eaf5ef;
  border-radius: 4px;
  color: var(--cjt-green);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .08em;
  padding: 3px 6px;
}

.cjt-output {
  background: #fff;
  color: #35443e;
  flex: 1;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 1.7;
  margin: 0;
  overflow: auto;
  padding: 13px 14px;
  white-space: pre;
}

.cjt-output-empty {
  align-items: center;
  color: #9aa6a0;
  display: flex;
  flex-direction: column;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  justify-content: center;
  min-height: 275px;
  text-align: center;
}

.cjt-output-empty svg {
  color: #c3d4cc;
  height: 25px;
  margin-bottom: 9px;
  width: 25px;
}

.cjt-output-empty small {
  color: #acb6b1;
  font-size: 10px;
  margin-top: 4px;
}

.cjt-output-error {
  align-items: flex-start;
  color: #9d4d40;
  display: flex;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  gap: 8px;
  white-space: normal;
}

.cjt-output-error svg {
  flex: none;
  height: 16px;
  width: 16px;
}

.cjt-output-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  min-height: 34px;
}

.cjt-live-status {
  color: #87948e;
  font-size: 10px;
}

.cjt-live-status.is-success {
  color: var(--cjt-green);
}

.cjt-live-status.is-error {
  color: #a64e43;
}

.cjt-output-actions {
  display: flex;
  gap: 7px;
}

.cjt-secondary-button,
.cjt-primary-button {
  align-items: center;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 10px;
  font-weight: 650;
  gap: 6px;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.cjt-secondary-button {
  background: #fff;
  border: 1px solid #dce6e1;
  color: #52615b;
}

.cjt-primary-button {
  background: var(--cjt-green);
  border: 1px solid var(--cjt-green);
  color: #fff;
}

.cjt-primary-button:hover:not(:disabled) {
  background: var(--cjt-green-deep);
  border-color: var(--cjt-green-deep);
  transform: translateY(-1px);
}

.cjt-secondary-button:hover:not(:disabled) {
  background: #f4f8f5;
  border-color: #bfd5ca;
}

.cjt-primary-button:disabled,
.cjt-secondary-button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.cjt-secondary-button svg,
.cjt-primary-button svg {
  height: 13px;
  width: 13px;
}

.cjt-footnote {
  align-items: center;
  color: #89968f;
  display: flex;
  font-size: 10px;
  gap: 8px;
  justify-content: center;
  margin-top: 15px;
}

.cjt-footnote-icon {
  border-radius: 50%;
  height: 17px;
  width: 17px;
}

.cjt-footnote-icon svg {
  height: 11px;
  width: 11px;
}

.cjt-footer {
  align-items: center;
  border-top: 1px solid var(--cjt-line);
  color: #99a49f;
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  padding: 15px 32px;
}

.cjt-shell button:focus-visible,
.cjt-shell a:focus-visible,
.cjt-shell input:focus-visible,
.cjt-shell select:focus-visible,
.cjt-shell textarea:focus-visible {
  outline: 3px solid rgba(25, 123, 103, .26);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .cjt-header {
    min-height: 58px;
    padding: 0 18px;
  }

  .cjt-main {
    padding: 32px 14px 20px;
  }

  .cjt-intro {
    margin-bottom: 24px;
  }

  .cjt-intro p {
    font-size: 13px;
  }

  .cjt-workspace {
    grid-template-columns: 1fr;
  }

  .cjt-output-pane {
    border-left: 0;
    border-top: 1px solid var(--cjt-line);
  }

  .cjt-pane {
    padding: 19px 16px;
  }

  .cjt-output-wrap {
    min-height: 280px;
  }

  .cjt-output-empty {
    min-height: 220px;
  }

  .cjt-footer {
    padding: 13px 18px;
  }
}

@media (max-width: 420px) {
  .cjt-privacy {
    font-size: 0;
    gap: 0;
  }

  .cjt-privacy-dot {
    height: 8px;
    width: 8px;
  }

  .cjt-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .cjt-output-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
