.json-toolbar { display: flex; flex-wrap: wrap; gap: 10px; }
.json-toolbar .button { min-height: 44px; font-size: 14px; padding: 10px 18px; }
.json-toolbar .button--light { border: 1px solid #cbd5e1; }
.json-upload { position: relative; overflow: hidden; cursor: pointer; }
.json-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.json-upload:focus-within { outline: 3px solid #93c5fd; outline-offset: 3px; }
.json-file-info { font-size: 12px; color: #64748b; overflow-wrap: anywhere; margin: 8px 0 18px; }
.json-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 20px 0; font-size: 13px; color: #334155; }
.json-settings label { display: flex; align-items: center; gap: 8px; }
.json-settings select { padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px; color: #0f172a; background: #fff; font: inherit; }
.json-check input { width: 16px; height: 16px; accent-color: #2563eb; }
.json-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.json-editor { min-width: 0; }
.json-editor-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #eff6ff; padding: 12px 14px; border: 1px solid #cbd5e1; border-bottom: 0; border-radius: 12px 12px 0 0; font-size: 14px; font-weight: 700; color: #1e3a8a; }
.json-editor-heading span { font-size: 11px; color: #64748b; font-weight: 400; }
.json-editor textarea { display: block; width: 100%; min-height: 390px; height: 440px; padding: 16px; border: 1px solid #cbd5e1; border-radius: 0 0 12px 12px; resize: vertical; font: 14px/1.8 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; tab-size: 4; color: #0f172a; background: #fff; white-space: pre; overflow: auto; }
.json-editor textarea:focus { outline: 2px solid #60a5fa; outline-offset: 1px; }
.json-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.json-result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.json-actions .button, .json-result-actions .button { padding: 10px 6px; min-height: 46px; font-size: 13px; line-height: 1.6; text-align: center; min-width: 0; }
.json-result-actions .button:disabled, .json-result-actions .is-disabled { color: #64748b; background: #e2e8f0; cursor: not-allowed; opacity: .7; }
.json-status { padding: 13px 16px; margin: 22px 0 8px; background: #f1f5f9; border-radius: 10px; font-size: 14px; color: #475569; }
.json-status.is-success { background: #ecfdf5; color: #166534; }
.json-status.is-error { background: #fff1f2; color: #b91c1c; }
.json-stats { font-size: 12px; color: #64748b; margin: 0 0 16px; }
.json-error { background: #fff7f7; padding: 16px; border: 1px solid #fecaca; border-radius: 12px; font-size: 14px; color: #991b1b; }
.json-error p { margin: 8px 0 12px; }
.json-error .button { font-size: 13px; padding: 8px 14px; }
.json-warning { padding: 16px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; color: #92400e; font-size: 13px; overflow-wrap: anywhere; }
.json-privacy { font-size: 13px; color: #64748b; border-top: 1px solid #e2e8f0; padding-top: 20px; margin: 22px 0 0; }
.json-error[hidden], .json-warning[hidden] { display: none; }
@media (max-width: 820px) { .json-editor-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; } .json-editor textarea { min-height: 280px; height: 320px; } }
@media (max-width: 620px) { .json-toolbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .json-toolbar .button { padding: 9px 4px; font-size: 12px; text-align: center; } .json-settings { gap: 14px; } .json-editor textarea { padding: 12px; font-size: 16px; } .json-editor-heading { padding: 12px; } .json-actions .button { font-size: 12px; } }
