/* Shared developer / JS tools UI */
.jt-hero {
  padding: 48px 0 20px;
  background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}
.jt-hero-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.jt-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: #10172f;
  letter-spacing: -0.02em;
}
.jt-hero p {
  margin: 0 auto;
  max-width: 700px;
  color: #5c6478;
  font-size: 17px;
  line-height: 1.7;
}
.jt-wrap { padding: 24px 0 64px; background: #f7f8fc; }
.jt-card {
  background: #fff;
  border: 1px solid #e8ebf5;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(17, 24, 47, 0.06);
  box-sizing: border-box;
}
.jt-privacy {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #1b5e20;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}
.jt-privacy strong { font-weight: 800; }
.jt-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #10172f;
  margin-bottom: 8px;
}
.jt-textarea {
  display: block;
  width: 100%;
  min-height: 180px;
  height: 200px;
  resize: vertical;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #18213a;
  border: 2px solid #d8deea;
  border-radius: 12px;
  outline: none;
  background: #fafbff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-sizing: border-box;
}
.jt-textarea:focus {
  border-color: #E53935;
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.12);
  background: #fff;
}
.jt-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.jt-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 16px;
  color: #fff !important;
  line-height: 1.2;
  transition: opacity .2s, transform .2s;
}
.jt-btn:hover { opacity: .92; transform: translateY(-1px); }
.jt-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.jt-btn-primary { background: linear-gradient(135deg, #ef5350, #c62828); box-shadow: 0 8px 18px rgba(229,57,53,.22); }
.jt-btn-green { background: #2e7d32; }
.jt-btn-blue { background: #1565c0; }
.jt-btn-gray { background: #455a64; }
.jt-btn-dark { background: #10172f; }
.jt-btn-outline {
  background: #fff;
  color: #10172f !important;
  border: 1.5px solid #cfd5e6;
}
.jt-section { margin-top: 20px; }
.jt-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #10172f;
}
.jt-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.jt-stat {
  background: #f7f8fc;
  border: 1px solid #e8ebf5;
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 100px;
}
.jt-stat b { display: block; font-size: 18px; color: #E53935; line-height: 1.2; }
.jt-stat span { font-size: 12px; color: #5c6478; font-weight: 600; }
.jt-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.jt-field { margin-bottom: 12px; }
.jt-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #384057;
  margin-bottom: 6px;
}
.jt-field select,
.jt-field input[type="text"],
.jt-field input[type="number"],
.jt-field input[type="search"],
.jt-field input[type="password"] {
  width: 100%;
  border: 1.5px solid #d8deea;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #18213a;
  background: #fff;
  box-sizing: border-box;
}
.jt-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 8px;
}
.jt-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #18213a;
  cursor: pointer;
}
.jt-results {
  margin-top: 12px;
  border: 1px solid #e8ebf5;
  border-radius: 12px;
  background: #fafbff;
  max-height: 520px;
  overflow: auto;
}
.jt-results.is-dark {
  background: #10172f;
  border-color: #2a334d;
  color: #e8ebf5;
}
.jt-results.is-dark .jt-result-text { color: #e8ebf5; }
.jt-result-text {
  margin: 0;
  padding: 14px;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #18213a;
}
.jt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.jt-table th,
.jt-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f8;
  vertical-align: top;
  word-break: break-word;
}
.jt-table th { background: #fff; color: #5c6478; font-weight: 700; position: sticky; top: 0; }
.jt-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #10172f;
  min-height: 22px;
}
.jt-status b { color: #E53935; }
.jt-drop-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #5c6478;
  font-weight: 600;
}
.jt-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}
.jt-badge.ok { background: #e8f5e9; color: #2e7d32; }
.jt-badge.bad { background: #ffebee; color: #c62828; }
.jt-badge.warn { background: #fff8e1; color: #f57f17; }
.jt-tree { padding: 12px 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.jt-tree details { margin-left: 12px; }
.jt-tree summary { cursor: pointer; font-weight: 700; }
.jt-tree .k { color: #1565c0; }
.jt-tree .s { color: #2e7d32; }
.jt-tree .n { color: #E53935; }
.jt-tree .b { color: #6a1b9a; }
.jt-diff-added { background: #e8f5e9; }
.jt-diff-removed { background: #ffebee; }
.jt-diff-changed { background: #fff8e1; }
.jt-match { background: #fff59d; }
.jt-errline { background: #ffebee; }
.jt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.jt-preview-img {
  max-width: 100%;
  max-height: 240px;
  border-radius: 8px;
  border: 1px solid #e8ebf5;
}
@media (max-width: 991px) {
  .jt-options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jt-split { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .jt-card { padding: 16px; }
  .jt-options-grid { grid-template-columns: 1fr; }
  .jt-btn { width: 100%; }
}
