/* JSON Formatter / Validator / Viewer — mobile native shell (≤768px) */
@media (max-width: 768px) {
  html.json-mobile-responsive body.flux-tool-developer-tools .utility-studio.json-mobile-ready > :not(.json-mobile-host) {
    display: none !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .utility-studio.json-mobile-ready .tool-form,
  html.json-mobile-responsive body.flux-tool-developer-tools .utility-studio.json-mobile-ready .tool-actions,
  html.json-mobile-responsive body.flux-tool-developer-tools .utility-studio.json-mobile-ready #utilityOutput {
    display: none !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .utility-studio .json-mobile-host {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-editor {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .c100kb-editor-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 12 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 0 0.65rem !important;
    padding: 0.55rem 0.65rem !important;
    border: 1px solid #dbeafe !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.06) !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .c100kb-editor-back {
    display: none !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .c100kb-editor-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-header-toolbar {
    display: flex !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-header-copy,
  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .c100kb-header-download {
    min-height: 36px !important;
    padding: 0 0.55rem !important;
    border-radius: 10px !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-editor-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
    padding: 0 !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-col {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-input-col {
    order: 1 !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-side-col {
    order: 2 !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-output-col,
  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jval-result-col,
  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jview-tree-col {
    order: 3 !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-card {
    border: 1px solid #dbeafe !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%) !important;
    padding: 0.75rem !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 14px rgba(37, 99, 235, 0.05) !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-card-title {
    margin: 0 0 0.45rem !important;
    font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-helper,
  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-status {
    margin: 0 0 0.55rem !important;
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
    color: #475569 !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-input-head,
  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-output-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    margin-bottom: 0.45rem !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-input-actions {
    display: flex !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-btn {
    min-height: 40px !important;
    border-radius: 10px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-btn-sm {
    min-height: 36px !important;
    padding: 0 0.55rem !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-code-panel {
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-code-input {
    min-height: 140px !important;
    max-height: 240px !important;
    padding: 0.65rem 0.75rem !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
    resize: vertical !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-line-gutter {
    display: none !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-select {
    width: 100% !important;
    min-height: 42px !important;
    border-radius: 10px !important;
    font-size: 0.84rem !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-field {
    margin-top: 0.55rem !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-label {
    display: block !important;
    margin-bottom: 0.35rem !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #64748b !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-metrics {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    margin-bottom: 0.65rem !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-metric {
    min-width: 0 !important;
    padding: 0.45rem 0.5rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-metric strong {
    display: block !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-actions .jfmt-btn-primary {
    grid-column: 1 / -1 !important;
    min-height: 46px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28) !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-actions a.jfmt-btn {
    grid-column: 1 / -1 !important;
    text-decoration: none !important;
    justify-content: center !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-output-badges {
    display: flex !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-status-badge,
  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-stale-badge {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 24px !important;
    padding: 0 0.45rem !important;
    border-radius: 999px !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    background: rgba(148, 163, 184, 0.18) !important;
    color: #475569 !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-status-badge.is-success {
    background: rgba(34, 197, 94, 0.16) !important;
    color: #15803d !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-status-badge.is-error {
    background: rgba(239, 68, 68, 0.14) !important;
    color: #b91c1c !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-status-badge.is-pending {
    background: rgba(59, 130, 246, 0.14) !important;
    color: #1d4ed8 !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-stale-badge[hidden],
  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host [data-jfmt-stale][hidden] {
    display: none !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-output-scroll {
    max-height: 220px !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-output-pre {
    margin: 0 !important;
    padding: 0.65rem 0.75rem !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    color: #e2e8f0 !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jfmt-output-panel {
    background: #0f172a !important;
    border-radius: 10px !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jval-result-panel,
  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jview-tree-panel {
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jview-tree-toolbar {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.45rem !important;
    padding: 0.55rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jview-tree-search-row,
  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jview-tree-expand-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    width: 100% !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jview-tree-search {
    flex: 1 1 120px !important;
    min-height: 38px !important;
    border-radius: 8px !important;
    font-size: 0.84rem !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jview-toolbar-btn {
    min-height: 36px !important;
    padding: 0 0.5rem !important;
    border-radius: 8px !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jview-tree-scroll {
    max-height: 280px !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html.json-mobile-responsive body.flux-tool-developer-tools .json-mobile-host .jval-preview-fold {
    margin-top: 0.55rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 0.55rem 0.65rem !important;
  }
}
