/* Developer Tools — final mobile workspace pass (max-width: 768px only) */

/* Anti-FOUC: hide legacy + boot input card until real mobile shell mounts */
@media (max-width: 768px) {
  html[class*="-mobile-responsive"] body.flux-tool-developer-tools #tool-workspace:not(:has(.b64-mobile-shell)) .tool-form,
  html[class*="-mobile-responsive"] body.flux-tool-developer-tools #tool-workspace:not(:has(.b64-mobile-shell)) .tool-actions,
  html[class*="-mobile-responsive"] body.flux-tool-developer-tools #tool-workspace:not(:has(.b64-mobile-shell)) .utility-output,
  html[class*="-mobile-responsive"] body.flux-tool-developer-tools #tool-workspace:not(:has(.b64-mobile-shell)) #utilityOutput {
    display: none !important;
  }

  html[class*="-mobile-responsive"] body.flux-tool-developer-tools #tool-workspace:not(:has(.b64-mobile-shell)) ~ .tool-workspace-note {
    display: none !important;
  }

  html[class*="-mobile-responsive"] body.flux-tool-developer-tools #tool-workspace:not(:has(.b64-mobile-shell)) .utility-studio {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    min-height: 0 !important;
    box-shadow: none !important;
  }

  html[class*="-mobile-responsive"] body.flux-tool-developer-tools #tool-workspace:not(:has(.b64-mobile-shell)) .utility-control-grid,
  html[class*="-mobile-responsive"] body.flux-tool-developer-tools #tool-workspace:not(:has(.b64-mobile-shell)) .utility-control-grid label,
  html[class*="-mobile-responsive"] body.flux-tool-developer-tools #tool-workspace:not(:has(.b64-mobile-shell)) .utility-control-grid textarea {
    display: none !important;
  }

  html[class*="-mobile-responsive"] body.flux-tool-developer-tools .dev-mobile-boot-shell {
    width: 100%;
  }

  html[class*="-mobile-responsive"] body.flux-tool-developer-tools .dev-mobile-boot-editor {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  html[class*="-mobile-responsive"] body.flux-tool-developer-tools .dev-mobile-boot-card {
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    padding: 0.75rem;
  }

  html[class*="-mobile-responsive"] body.flux-tool-developer-tools .dev-mobile-boot-card .b64-mobile-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
  }

  html[class*="-mobile-responsive"] body.flux-tool-developer-tools .dev-mobile-boot-card .b64-mobile-helper {
    margin: 0.35rem 0 0.65rem;
    font-size: 0.82rem;
    color: #64748b;
  }

  html[class*="-mobile-responsive"] body.flux-tool-developer-tools .dev-mobile-boot-panel {
    min-height: 132px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
  }

  @media (prefers-color-scheme: dark) {
    html[class*="-mobile-responsive"] body.flux-tool-developer-tools .dev-mobile-boot-card {
      border-color: #334155;
      background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    }

    html[class*="-mobile-responsive"] body.flux-tool-developer-tools .dev-mobile-boot-card .b64-mobile-card-title {
      color: #e2e8f0;
    }

    html[class*="-mobile-responsive"] body.flux-tool-developer-tools .dev-mobile-boot-card .b64-mobile-helper {
      color: #94a3b8;
    }

    html[class*="-mobile-responsive"] body.flux-tool-developer-tools .dev-mobile-boot-panel {
      border-color: #475569;
      background: #0b1220;
    }
  }
}

@media (max-width: 768px) {
  body.flux-tool-developer-tools {
    --dev-m-bg: #f4f7fb;
    --dev-m-surface: #ffffff;
    --dev-m-border: #dbe4f0;
    --dev-m-text: #0f172a;
    --dev-m-muted: #64748b;
    --dev-m-primary: #2563eb;
    --dev-m-primary-dark: #1d4ed8;
    --dev-m-gutter: 0.875rem;
    --dev-m-radius: 20px;
    --dev-m-editor-h: 220px;
    --dev-m-control-h: 44px;
    --dev-m-toolbar-chip-h: 41px;
    --dev-m-result-code-h: 280px;
    background: var(--dev-m-bg) !important;
    overflow-x: hidden;
  }

  body.flux-tool-developer-tools .page-shell.tool-page {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.2rem var(--dev-m-gutter) 0.75rem !important;
    overflow-x: hidden;
  }

  body.flux-tool-developer-tools .tool-panel:before,
  body.flux-tool-developer-tools .tool-panel:after {
    display: none !important;
    content: none !important;
  }

  body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active):not(.passport-editor-active) .tool-layout,
  body.flux-tool-developer-tools .tool-layout {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.flux-tool-developer-tools [class*="-desktop-only"],
  body.flux-tool-developer-tools #json-formatter-desktop-shell,
  body.flux-tool-developer-tools [id$="-desktop-shell"] {
    display: none !important;
  }

  /* Neutralize legacy mobile drawer for developer tools */
  body.flux-tool-developer-tools.mobile-editor-layout .mobile-editor-drawer,
  body.flux-tool-developer-tools .mobile-editor-drawer {
    display: none !important;
  }

  body.flux-tool-developer-tools.mobile-editor-layout .utility-control-grid {
    display: grid !important;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
  }

  /* Compact breadcrumb row */
  body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active):not(.passport-editor-active) .breadcrumb,
  body.flux-tool-developer-tools .breadcrumb {
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 0 0.12rem !important;
    padding: 0.1rem 0 !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: var(--dev-m-muted) !important;
  }

  body.flux-tool-developer-tools .breadcrumb::-webkit-scrollbar {
    display: none;
  }

  body.flux-tool-developer-tools .breadcrumb a {
    color: var(--dev-m-primary) !important;
    font-weight: 700 !important;
    -webkit-text-fill-color: var(--dev-m-primary) !important;
  }

  body.flux-tool-developer-tools .breadcrumb span:last-child {
    color: var(--dev-m-text) !important;
    font-weight: 700 !important;
    -webkit-text-fill-color: var(--dev-m-text) !important;
  }

  /* Hero — same desktop look, mobile-scaled type */
  body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active):not(.passport-editor-active) .tool-page-hero,
  body.flux-tool-developer-tools .tool-page-hero {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.65rem calc(-1 * var(--dev-m-gutter)) 0.85rem !important;
    padding: 1.35rem var(--dev-m-gutter) 1.45rem !important;
    text-align: center !important;
    background:
      linear-gradient(180deg, #f8fbff, #f1f8ff),
      linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px) !important;
    background-size: 100% 100%, 22px 22px, 22px 22px !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.flux-tool-developer-tools .tool-page-hero:before {
    display: block !important;
    content: "" !important;
    position: absolute !important;
    left: 8% !important;
    right: 8% !important;
    top: 0 !important;
    height: 1px !important;
    background: linear-gradient(to right, transparent, rgba(37, 99, 235, 0.34), rgba(6, 182, 212, 0.24), transparent) !important;
    box-shadow: 0 0 34px rgba(37, 99, 235, 0.12) !important;
  }

  body.flux-tool-developer-tools .tool-hero-copy {
    max-width: 34rem !important;
    margin-inline: auto !important;
  }

  body.flux-tool-developer-tools .tool-page-hero .eyebrow {
    display: inline-flex !important;
    justify-content: center !important;
    margin: 0 auto 0.25rem !important;
    padding: 0 !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--dev-m-primary) !important;
    -webkit-text-fill-color: var(--dev-m-primary) !important;
  }

  html body.flux-tool-developer-tools.flux-tool-body main.page-shell.tool-page section.tool-page-hero h1,
  body.flux-tool-developer-tools .tool-page-hero h1,
  body.flux-tool-developer-tools .tool-hero-copy h1 {
    margin: 0.2rem auto 0 !important;
    max-width: 22ch !important;
    font-size: 28px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    text-align: center !important;
    text-wrap: balance !important;
    color: #172033 !important;
    -webkit-text-fill-color: #172033 !important;
  }

  body.flux-tool-developer-tools .tool-page-hero p,
  body.flux-tool-developer-tools .tool-hero-copy p,
  html body.flux-tool-developer-tools.flux-tool-body main.page-shell.tool-page section.tool-page-hero .tool-hero-copy p {
    display: block !important;
    max-width: 34rem !important;
    margin: 0.55rem auto 0 !important;
    padding: 0 0.15rem !important;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 400;
    text-align: center !important;
    color: #536273 !important;
    -webkit-text-fill-color: #536273 !important;
    text-wrap: balance !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.flux-tool-developer-tools .tool-page-hero .c100kb-h1-tail,
  body.flux-tool-developer-tools .tool-hero-copy .c100kb-h1-tail {
    font-weight: inherit !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
  }

  /* Flatten workspace: one surface */
  body.flux-tool-developer-tools .tool-layout,
  body.flux-tool-developer-tools .tool-main,
  body.flux-tool-developer-tools .tool-panel,
  body.flux-tool-developer-tools .utility-studio {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
  }

  /* Layer cleanup — one outer workspace surface, flat inner pass-through */
  html[data-theme="light"] body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active):not(.passport-editor-active) #tool-workspace.tool-panel,
  html[data-theme="light"] body.flux-tool-developer-tools.flux-tool-body .tool-panel#tool-workspace,
  body.flux-tool-developer-tools.flux-tool-body .tool-panel#tool-workspace,
  body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active):not(.passport-editor-active) .tool-panel {
    padding: 0.8125rem !important;
    margin: 0 0 0.35rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    border: 1px solid var(--dev-m-border) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
  }

  html[data-theme="light"] body.flux-tool-developer-tools.flux-tool-body #tool-workspace .utility-studio,
  html[data-theme="light"] body.flux-tool-developer-tools.flux-tool-body .utility-studio,
  body.flux-tool-developer-tools.flux-tool-body .utility-studio,
  body.flux-tool-developer-tools .utility-studio {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.flux-tool-developer-tools .utility-form,
  body.flux-tool-developer-tools .tool-form.utility-form,
  body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active):not(.passport-editor-active) .tool-form.utility-form,
  body.flux-tool-developer-tools.flux-tool-body .tool-page .utility-form,
  html[data-theme="light"] body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active) .utility-form {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Single editor surface — override nested utility-studio skins from style.css */
  html[data-theme="light"] body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active):not(.passport-editor-active) .utility-studio .utility-control-grid,
  body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active):not(.passport-editor-active) .utility-studio .utility-control-grid,
  body.flux-tool-developer-tools .utility-control-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.45rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.flux-tool-developer-tools .utility-control-grid:has(.dev-mobile-toolbar) {
    gap: 0.6875rem !important;
  }

  /* Compact toolbar — single row */
  body.flux-tool-developer-tools .dev-mobile-toolbar {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.flux-tool-developer-tools .dev-mobile-toolbar::-webkit-scrollbar {
    display: none;
  }

  body.flux-tool-developer-tools .dev-mobile-toolbar-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-height: var(--dev-m-toolbar-chip-h) !important;
    height: var(--dev-m-toolbar-chip-h) !important;
    padding: 0 0.55rem !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 999px !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    -webkit-text-fill-color: #1d4ed8 !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  body.flux-tool-developer-tools .dev-mobile-toolbar-inline {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 1 auto !important;
    flex-wrap: nowrap !important;
    gap: 0.375rem !important;
    margin: 0 !important;
    min-width: 0 !important;
  }

  body.flux-tool-developer-tools .dev-mobile-toolbar-control {
    display: inline-flex !important;
    align-items: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-self: center !important;
    flex: 0 1 auto !important;
    gap: 0.375rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    min-width: 0 !important;
  }

  body.flux-tool-developer-tools .dev-mobile-toolbar-control-label {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: var(--dev-m-muted) !important;
    -webkit-text-fill-color: var(--dev-m-muted) !important;
    white-space: nowrap !important;
  }

  body.flux-tool-developer-tools .dev-mobile-toolbar-control select,
  body.flux-tool-developer-tools .dev-mobile-toolbar-control input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]) {
    box-sizing: border-box !important;
    display: block !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    width: 8.75rem !important;
    min-width: 8.125rem !important;
    max-width: 9.375rem !important;
    min-height: var(--dev-m-control-h) !important;
    height: var(--dev-m-control-h) !important;
    max-height: var(--dev-m-control-h) !important;
    padding: 0 1.65rem 0 0.55rem !important;
    border: 1px solid #d1dbe8 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--dev-m-text) !important;
    -webkit-text-fill-color: var(--dev-m-text) !important;
    font-size: 15px;
    font-weight: 600;
    line-height: normal;
    box-shadow: none !important;
    resize: none !important;
  }

  body.flux-tool-developer-tools .dev-mobile-toolbar-more {
    margin-left: auto !important;
    flex: 0 0 auto !important;
    border: 1px solid var(--dev-m-border) !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    overflow: hidden !important;
  }

  body.flux-tool-developer-tools .dev-mobile-toolbar-more > summary {
    display: flex !important;
    align-items: center !important;
    min-height: 34px !important;
    padding: 0.25rem 0.62rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: var(--dev-m-text) !important;
    cursor: pointer !important;
    list-style: none !important;
    user-select: none !important;
  }

  body.flux-tool-developer-tools .dev-mobile-toolbar-more > summary::-webkit-details-marker {
    display: none !important;
  }

  body.flux-tool-developer-tools .dev-mobile-toolbar-more > summary::after {
    content: "▾";
    margin-left: 0.25rem;
    color: var(--dev-m-primary);
  }

  body.flux-tool-developer-tools .dev-mobile-toolbar-more[open] > summary::after {
    content: "▴";
  }

  /* Editor label — no nested card */
  html[data-theme="light"] body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active) .utility-control-grid label,
  body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active)[data-theme="light"] .utility-control-grid label,
  body.flux-tool-developer-tools.flux-tool-body .utility-studio .utility-control-grid label,
  body.flux-tool-developer-tools .utility-control-grid label {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--dev-m-text) !important;
    -webkit-text-fill-color: var(--dev-m-text) !important;
    font-size: 0.84rem !important;
    font-weight: 650 !important;
    line-height: 1.3 !important;
  }

  body.flux-tool-developer-tools .utility-control-grid label.dev-mobile-editor-label {
    display: grid !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
  }

  body.flux-tool-developer-tools .utility-control-grid label.dev-mobile-editor-label .dev-mobile-field-label {
    display: block !important;
    margin: 0 !important;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--dev-m-text) !important;
    -webkit-text-fill-color: var(--dev-m-text) !important;
  }

  body.flux-tool-developer-tools .utility-control-grid label.dev-mobile-editor-label::before,
  body.flux-tool-developer-tools .utility-control-grid label.dev-mobile-editor-label::after {
    display: none !important;
    content: none !important;
  }

  body.flux-tool-developer-tools .utility-control-grid label.dev-mobile-editor-label textarea {
    font-size: 14px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  }

  body.flux-tool-developer-tools .utility-studio[data-utility-tool="json-formatter"] .dev-mobile-json-input-actions {
    display: flex;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
    margin: 0.55rem 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    position: relative;
    z-index: 14;
  }

  body.flux-tool-developer-tools .utility-studio[data-utility-tool="json-formatter"] .dev-mobile-json-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    height: 42px;
    padding: 0 0.4rem;
    border: 1px solid #d1dbe8;
    border-radius: 10px;
    background: #fff;
    color: var(--dev-m-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: none;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  body.flux-tool-developer-tools .utility-studio[data-utility-tool="json-formatter"] .dev-mobile-json-action-btn svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--dev-m-text);
    stroke: var(--dev-m-text);
  }

  body.flux-tool-developer-tools .utility-studio[data-utility-tool="json-formatter"] .dev-mobile-json-action-btn:focus-visible {
    outline: 2px solid var(--dev-m-primary);
    outline-offset: 2px;
  }

  body.flux-tool-developer-tools .utility-studio[data-utility-tool="json-formatter"] .dev-mobile-json-more-menu {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
  }

  body.flux-tool-developer-tools .utility-studio[data-utility-tool="json-formatter"] .dev-mobile-json-more-trigger {
    width: 100%;
  }

  body.flux-tool-developer-tools .utility-studio[data-utility-tool="json-formatter"] .dev-mobile-json-more-panel[hidden] {
    display: none !important;
  }

  body.flux-tool-developer-tools .utility-studio[data-utility-tool="json-formatter"] .dev-mobile-json-more-caret {
    font-size: 12px;
    line-height: 1;
    color: #64748b;
  }

  body.flux-tool-developer-tools .utility-studio[data-utility-tool="json-formatter"] .utility-form,
  body.flux-tool-developer-tools .utility-studio[data-utility-tool="json-formatter"] .utility-control-grid {
    overflow: visible !important;
  }

  body.flux-tool-developer-tools .utility-studio[data-utility-tool="json-formatter"] .dev-mobile-json-more-panel {
    position: absolute;
    top: auto;
    bottom: calc(100% + 0.35rem);
    right: 0;
    left: 0;
    z-index: 20;
    display: grid;
    gap: 0.2rem;
    padding: 0.35rem;
    border: 1px solid #d1dbe8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  }

  body.flux-tool-developer-tools .utility-studio[data-utility-tool="json-formatter"] .dev-mobile-json-more-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0 0.65rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--dev-m-text);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }

  body.flux-tool-developer-tools .utility-studio[data-utility-tool="json-formatter"] .dev-mobile-json-more-item:hover,
  body.flux-tool-developer-tools .utility-studio[data-utility-tool="json-formatter"] .dev-mobile-json-more-item:focus-visible {
    background: #f1f5f9;
    outline: none;
  }

  body.flux-tool-developer-tools .utility-studio.has-result[data-utility-tool="json-formatter"] > .utility-form .dev-mobile-json-input-actions {
    order: 0;
  }

  body.flux-tool-developer-tools .utility-studio[data-utility-tool="json-formatter"].dev-mobile-json-more-open > .tool-actions,
  body.flux-tool-developer-tools .utility-studio[data-utility-tool="json-formatter"]:has(.dev-mobile-json-more-menu.is-open) > .tool-actions {
    z-index: 1 !important;
    pointer-events: none !important;
  }

  body.flux-tool-developer-tools .utility-studio[data-utility-tool="json-formatter"] .dev-mobile-json-more-menu.is-open {
    z-index: 21;
  }

  body.flux-tool-developer-tools .utility-control-grid:has(.dev-mobile-toolbar) > label:not(.dev-mobile-editor-label):not(.check-row) {
    display: none !important;
  }

  body.flux-tool-developer-tools .utility-control-grid label:not(.dev-mobile-editor-label):not(.check-row) {
    display: grid !important;
    gap: 0.3rem !important;
    padding: 0.35rem 0 !important;
  }

  /* Editor controls only — never apply to select/input */
  html[data-theme="light"] body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active):not(.passport-editor-active) .utility-studio .utility-control-grid textarea,
  body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active):not(.passport-editor-active) .utility-studio .utility-control-grid textarea,
  body.flux-tool-developer-tools .utility-control-grid textarea {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 220px !important;
    height: 220px !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    resize: none !important;
    margin: 0 !important;
    padding: 0.75rem !important;
    border: 1px solid #d1dbe8 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--dev-m-text) !important;
    -webkit-text-fill-color: var(--dev-m-text) !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
  }

  body.flux-tool-developer-tools .utility-control-grid:has(textarea + textarea) textarea {
    min-height: 170px !important;
    max-height: 220px !important;
    height: 185px !important;
  }

  /* Normal form controls — fixed touch height, no editor stretch */
  body.flux-tool-developer-tools .utility-control-grid input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  body.flux-tool-developer-tools .utility-control-grid select {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: var(--dev-m-control-h) !important;
    height: var(--dev-m-control-h) !important;
    max-height: var(--dev-m-control-h) !important;
    padding: 0 0.62rem !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: var(--dev-m-text) !important;
    -webkit-text-fill-color: var(--dev-m-text) !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    resize: none !important;
  }

  /* Toolbar indent select — must beat grid-wide select stretch above */
  body.flux-tool-developer-tools .utility-control-grid .dev-mobile-toolbar-control select {
    display: inline-block !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    width: 8.75rem !important;
    min-width: 8.125rem !important;
    max-width: 9.375rem !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 0 1.65rem 0 0.55rem !important;
  }

  body.flux-tool-developer-tools .utility-control-grid input:focus,
  body.flux-tool-developer-tools .utility-control-grid select:focus,
  body.flux-tool-developer-tools .utility-control-grid textarea:focus,
  body.flux-tool-developer-tools .dev-mobile-toolbar-control select:focus,
  body.flux-tool-developer-tools .dev-mobile-toolbar-control input:focus {
    outline: none !important;
    border-color: var(--dev-m-primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
    background: #fff !important;
  }

  body.flux-tool-developer-tools .utility-control-grid .check-row,
  body.flux-tool-developer-tools .utility-control-grid label.check-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.45rem !important;
    min-height: 44px !important;
    font-size: 0.88rem !important;
  }

  body.flux-tool-developer-tools .dev-mobile-options-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.4rem !important;
    padding: 0.35rem 0.45rem 0.45rem !important;
  }

  body.flux-tool-developer-tools .dev-mobile-options-grid label {
    padding: 0.35rem 0 !important;
  }

  html[data-theme="light"] body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active) .utility-studio > .tool-actions,
  body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active)[data-theme="light"] .utility-studio > .tool-actions,
  body.flux-tool-developer-tools .utility-studio > .tool-actions.sticky-mobile-action,
  body.flux-tool-developer-tools .utility-studio > .tool-actions {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 12 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.3rem !important;
    width: 100% !important;
    margin: 0.5rem 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-top: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }

  body.flux-tool-developer-tools.flux-tool-body .utility-studio > .tool-actions.sticky-mobile-action .btn,
  body.flux-tool-developer-tools.flux-tool-body .utility-studio > .tool-actions .btn,
  body.flux-tool-developer-tools .utility-studio > .tool-actions .btn {
    width: 100% !important;
    min-height: 50px !important;
    height: 50px !important;
    border-radius: 15px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    box-shadow: none !important;
  }

  body.flux-tool-developer-tools .utility-studio > .tool-actions .btn.primary,
  body.flux-tool-developer-tools .utility-studio > .tool-actions #utilityRun {
    order: 0 !important;
    border: 0 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: linear-gradient(135deg, var(--dev-m-primary) 0%, var(--dev-m-primary-dark) 100%) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
  }

  body.flux-tool-developer-tools .utility-studio > .tool-actions .btn.primary svg,
  body.flux-tool-developer-tools .utility-studio > .tool-actions #utilityRun svg {
    color: #fff !important;
    stroke: #fff !important;
  }

  body.flux-tool-developer-tools .utility-studio:not(.has-result) > .tool-actions .btn.secondary {
    display: none !important;
  }

  body.flux-tool-developer-tools .utility-studio > .tool-actions #utilityPrint,
  body.flux-tool-developer-tools .utility-studio > .tool-actions #utilityShare {
    display: none !important;
  }

  body.flux-tool-developer-tools .utility-studio.has-result {
    display: flex !important;
    flex-direction: column !important;
  }

  body.flux-tool-developer-tools .utility-studio.has-result > .utility-form,
  body.flux-tool-developer-tools .utility-studio.has-result > form.tool-form {
    order: 1 !important;
  }

  body.flux-tool-developer-tools .utility-studio.has-result > #utilityOutput,
  body.flux-tool-developer-tools .utility-studio.has-result > .utility-output {
    order: 2 !important;
  }

  html[data-theme="light"] body.flux-tool-developer-tools.flux-tool-body .utility-studio.has-result > .tool-actions.sticky-mobile-action.dev-mobile-actions-docked,
  body.flux-tool-developer-tools.flux-tool-body .utility-studio.has-result > .tool-actions.sticky-mobile-action.dev-mobile-actions-docked,
  body.flux-tool-developer-tools .utility-studio.has-result > .tool-actions.dev-mobile-actions-docked {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }

  body.flux-tool-developer-tools .utility-studio.has-result > .tool-actions {
    order: 3 !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.45rem !important;
  }

  body.flux-tool-developer-tools .utility-studio.has-result > .tool-actions.sticky-mobile-action #utilityCopy,
  body.flux-tool-developer-tools .utility-studio.has-result > .tool-actions.sticky-mobile-action #utilityDownload,
  body.flux-tool-developer-tools .utility-studio.has-result > .tool-actions.sticky-mobile-action #utilityReset,
  body.flux-tool-developer-tools .utility-studio.has-result > .tool-actions #utilityCopy,
  body.flux-tool-developer-tools .utility-studio.has-result > .tool-actions #utilityDownload,
  body.flux-tool-developer-tools .utility-studio.has-result > .tool-actions #utilityReset,
  body.flux-tool-body.flux-tool-developer-tools .utility-studio.has-result > .tool-actions.sticky-mobile-action .btn.secondary#utilityCopy,
  body.flux-tool-body.flux-tool-developer-tools .utility-studio.has-result > .tool-actions.sticky-mobile-action .btn.secondary#utilityDownload,
  body.flux-tool-body.flux-tool-developer-tools .utility-studio.has-result > .tool-actions.sticky-mobile-action .btn.secondary#utilityReset {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.flux-tool-developer-tools .utility-studio.has-result > .tool-actions #utilityRun,
  body.flux-tool-body.flux-tool-developer-tools .utility-studio.has-result > .tool-actions.sticky-mobile-action #utilityRun {
    display: none !important;
  }

  body.flux-tool-developer-tools .utility-studio.has-result > .tool-actions #utilityCopy,
  body.flux-tool-body.flux-tool-developer-tools .utility-studio.has-result > .tool-actions.sticky-mobile-action #utilityCopy {
    order: 1 !important;
    grid-column: auto !important;
    border: 0 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: linear-gradient(135deg, var(--dev-m-primary) 0%, var(--dev-m-primary-dark) 100%) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
  }

  body.flux-tool-developer-tools .utility-studio.has-result > .tool-actions #utilityCopy svg {
    color: #fff !important;
    stroke: #fff !important;
  }

  body.flux-tool-developer-tools .utility-studio.has-result > .tool-actions #utilityDownload {
    order: 2 !important;
    background: linear-gradient(135deg, #0ea5e9, var(--dev-m-primary)) !important;
    border-color: transparent !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  body.flux-tool-developer-tools .utility-studio.has-result > .tool-actions #utilityReset {
    order: 3 !important;
    grid-column: 1 / -1 !important;
    min-height: 42px !important;
    height: 42px !important;
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    color: var(--dev-m-muted) !important;
    -webkit-text-fill-color: var(--dev-m-muted) !important;
    font-size: 0.875rem !important;
    font-weight: 650 !important;
    box-shadow: none !important;
  }

  body.flux-tool-developer-tools .utility-studio.has-result > .tool-actions .btn.secondary:not(#utilityCopy):not(#utilityDownload):not(#utilityReset) {
    display: none !important;
  }

  /* Result workspace — single-column mobile flow */
  body.flux-tool-developer-tools #utilityOutput,
  body.flux-tool-developer-tools .utility-output {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0.75rem 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--dev-m-text) !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
  }

  body.flux-tool-developer-tools #utilityOutput:empty {
    display: none !important;
  }

  body.flux-tool-developer-tools #utilityOutput.result-ready,
  body.flux-tool-developer-tools .utility-output.result-ready {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  html[data-theme="light"] body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active):not(.passport-editor-active) #utilityOutput.utility-output.result-ready,
  html[data-theme="light"] body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active):not(.passport-editor-active) .utility-output.result-panel.result-ready,
  body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active):not(.passport-editor-active) #utilityOutput.utility-output.result-ready,
  body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active):not(.passport-editor-active) .utility-output.result-panel.result-ready {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.flux-tool-developer-tools #utilityOutput .utility-split-output > div:first-child:not(.dev-mobile-result-code-wrap):not(.dev-mobile-result-actions-primary),
  body.flux-tool-developer-tools #utilityOutput .utility-pro-result > .utility-insight-grid,
  body.flux-tool-developer-tools #utilityOutput .utility-pro-result > .utility-result-code-shell,
  body.flux-tool-developer-tools #utilityOutput .seo-preview-studio > div:first-child {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.flux-tool-developer-tools #utilityOutput .utility-result-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.flux-tool-developer-tools #utilityOutput .utility-result-status,
  body.flux-tool-developer-tools #utilityOutput .success-state {
    display: flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    min-height: 0 !important;
    margin: 0 0 0.875rem !important;
    padding: 0.6rem 0.7rem !important;
    border: 1px solid #bbf7d0 !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #f0fdf4, #ecfdf5) !important;
    box-shadow: none !important;
    animation: none !important;
  }

  body.flux-tool-developer-tools #utilityOutput .success-state.warning {
    border-color: #fde68a !important;
    background: linear-gradient(180deg, #fffbeb, #fef3c7) !important;
  }

  body.flux-tool-developer-tools #utilityOutput .success-checkmark {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 28px !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }

  body.flux-tool-developer-tools #utilityOutput .success-state-copy {
    display: grid !important;
    gap: 0.1rem !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  body.flux-tool-developer-tools #utilityOutput .success-state-copy strong {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25 !important;
    color: #14532d !important;
    -webkit-text-fill-color: #14532d !important;
  }

  body.flux-tool-developer-tools #utilityOutput .success-state.warning .success-state-copy strong {
    color: #92400e !important;
    -webkit-text-fill-color: #92400e !important;
  }

  body.flux-tool-developer-tools #utilityOutput .success-state-copy p {
    margin: 0 !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #166534 !important;
    -webkit-text-fill-color: #166534 !important;
  }

  body.flux-tool-developer-tools #utilityOutput .success-state.warning .success-state-copy p {
    color: #a16207 !important;
    -webkit-text-fill-color: #a16207 !important;
  }

  body.flux-tool-developer-tools #utilityOutput .utility-result-copy,
  body.flux-tool-developer-tools #utilityOutput .utility-result-actions,
  body.flux-tool-developer-tools #utilityOutput button[data-result-copy] {
    display: none !important;
  }

  body.flux-tool-developer-tools #utilityOutput .utility-result-content {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.flux-tool-developer-tools #utilityOutput .utility-split-output,
  body.flux-tool-developer-tools #utilityOutput .utility-pro-result,
  body.flux-tool-developer-tools #utilityOutput .seo-preview-studio {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-template-columns: none !important;
    align-items: stretch !important;
  }

  body.flux-tool-developer-tools #utilityOutput .utility-split-output > .dev-mobile-result-code-wrap,
  body.flux-tool-developer-tools #utilityOutput .utility-split-output > pre.utility-code-output,
  body.flux-tool-developer-tools #utilityOutput .utility-split-output > .utility-code-output,
  body.flux-tool-developer-tools #utilityOutput .utility-pro-result > .utility-result-code-shell,
  body.flux-tool-developer-tools #utilityOutput .seo-preview-studio > .utility-code-output,
  body.flux-tool-developer-tools #utilityOutput .seo-preview-studio > pre {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.flux-tool-developer-tools #utilityOutput .utility-split-output > div:first-child:not(.dev-mobile-result-code-wrap):not(.dev-mobile-result-actions-primary) {
    order: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 1.125rem 0 0 !important;
  }

  body.flux-tool-developer-tools #utilityOutput .utility-split-output > div:first-child .dev-mobile-result-stats-wrap {
    order: 1 !important;
  }

  body.flux-tool-developer-tools #utilityOutput .utility-split-output > div:first-child .dev-mobile-json-tree-panel {
    order: 2 !important;
  }

  body.flux-tool-developer-tools #utilityOutput .utility-split-output > div:first-child .dev-mobile-result-actions-reset {
    order: 3 !important;
  }

  body.flux-tool-developer-tools #utilityOutput .utility-pro-result > .utility-insight-grid,
  body.flux-tool-developer-tools #utilityOutput .seo-preview-studio > div:first-child {
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.flux-tool-developer-tools #utilityOutput .dev-mobile-result-code-wrap {
    order: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body.flux-tool-developer-tools #utilityOutput .dev-mobile-result-code-wrap > .dev-mobile-result-heading,
  body.flux-tool-developer-tools #utilityOutput .dev-mobile-result-stats-wrap > .dev-mobile-result-heading,
  body.flux-tool-developer-tools #utilityOutput .dev-mobile-json-tree-panel > summary .dev-mobile-tree-title {
    margin: 0 !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.2px;
    color: var(--dev-m-text) !important;
    -webkit-text-fill-color: var(--dev-m-text) !important;
  }

  body.flux-tool-developer-tools #utilityOutput .dev-mobile-result-actions-primary {
    order: 2 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.45rem !important;
    width: 100% !important;
    margin: 0.6875rem 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.flux-tool-developer-tools #utilityOutput .dev-mobile-result-actions-primary .btn {
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em !important;
    box-shadow: none !important;
  }

  body.flux-tool-developer-tools #utilityOutput .dev-mobile-result-actions-primary #utilityCopy {
    border: 0 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: linear-gradient(135deg, var(--dev-m-primary) 0%, var(--dev-m-primary-dark) 100%) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
  }

  body.flux-tool-developer-tools #utilityOutput .dev-mobile-result-actions-primary #utilityCopy svg {
    color: #fff !important;
    stroke: #fff !important;
  }

  body.flux-tool-developer-tools #utilityOutput .dev-mobile-result-actions-primary #utilityDownload {
    background: linear-gradient(135deg, #0ea5e9, var(--dev-m-primary)) !important;
    border-color: transparent !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  body.flux-tool-developer-tools #utilityOutput .dev-mobile-result-actions-reset {
    order: 3 !important;
    width: 100% !important;
    margin: 0.75rem 0 0 !important;
    padding: 0 !important;
  }

  body.flux-tool-developer-tools #utilityOutput .dev-mobile-result-actions-reset .btn {
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--dev-m-muted) !important;
    -webkit-text-fill-color: var(--dev-m-muted) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
  }

  body.flux-tool-developer-tools #utilityOutput .dev-mobile-result-actions-primary #utilityCopy,
  body.flux-tool-developer-tools #utilityOutput .dev-mobile-result-actions-primary #utilityDownload,
  body.flux-tool-developer-tools #utilityOutput .dev-mobile-result-actions-reset #utilityReset {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.flux-tool-developer-tools #utilityOutput .dev-mobile-result-stats-wrap {
    order: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body.flux-tool-developer-tools #utilityOutput .utility-code-output,
  body.flux-tool-developer-tools #utilityOutput pre.utility-code-output {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 120px !important;
    max-height: var(--dev-m-result-code-h) !important;
    margin: 0 !important;
    padding: 0.75rem !important;
    overflow: auto !important;
    overflow-x: auto !important;
    white-space: pre !important;
    word-break: normal !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #122036 !important;
    -webkit-text-fill-color: #122036 !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
  }

  body.flux-tool-developer-tools #utilityOutput .utility-insight-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.35rem !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.flux-tool-developer-tools #utilityOutput .utility-insight-card {
    display: grid !important;
    gap: 0.12rem !important;
    align-content: center !important;
    min-height: 60px !important;
    max-height: 64px !important;
    padding: 0.4rem 0.48rem !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  body.flux-tool-developer-tools #utilityOutput .utility-insight-card span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase !important;
    color: var(--dev-m-primary) !important;
    -webkit-text-fill-color: var(--dev-m-primary) !important;
  }

  body.flux-tool-developer-tools #utilityOutput .utility-insight-card strong {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dev-m-text) !important;
    -webkit-text-fill-color: var(--dev-m-text) !important;
  }

  body.flux-tool-developer-tools #utilityOutput .dev-mobile-json-tree-panel {
    order: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 1.125rem 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.flux-tool-developer-tools #utilityOutput .dev-mobile-json-tree-panel > summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0.45rem 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: var(--dev-m-text) !important;
    -webkit-text-fill-color: var(--dev-m-text) !important;
    cursor: pointer !important;
    list-style: none !important;
    user-select: none !important;
  }

  body.flux-tool-developer-tools #utilityOutput .dev-mobile-json-tree-panel > summary::-webkit-details-marker {
    display: none !important;
  }

  body.flux-tool-developer-tools #utilityOutput .dev-mobile-json-tree-panel > summary::after {
    display: none !important;
    content: none !important;
  }

  body.flux-tool-developer-tools #utilityOutput .dev-mobile-json-tree-panel > summary .dev-mobile-tree-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 0.65rem !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 8px !important;
    background: #fff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: var(--dev-m-primary) !important;
    -webkit-text-fill-color: var(--dev-m-primary) !important;
    white-space: nowrap !important;
  }

  body.flux-tool-developer-tools #utilityOutput .dev-mobile-json-tree-panel[open] > summary::after {
    content: none !important;
  }

  body.flux-tool-developer-tools #utilityOutput .json-tree-output {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    max-height: 280px !important;
    margin: 0.35rem 0 0 !important;
    padding: 0.75rem !important;
    overflow: auto !important;
    overflow-x: auto !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 12px !important;
    background: #0f172a !important;
    color: #dbeafe !important;
    -webkit-text-fill-color: #dbeafe !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
    box-shadow: none !important;
  }

  body.flux-tool-developer-tools #utilityOutput .json-tree-output summary {
    color: #bfdbfe !important;
    -webkit-text-fill-color: #bfdbfe !important;
  }

  body.flux-tool-developer-tools #utilityOutput .json-tree-key {
    color: #93c5fd !important;
    -webkit-text-fill-color: #93c5fd !important;
  }

  body.flux-tool-developer-tools #utilityOutput .json-tree-type {
    color: #c4b5fd !important;
    -webkit-text-fill-color: #c4b5fd !important;
  }

  body.flux-tool-developer-tools #utilityOutput .json-tree-value {
    color: #86efac !important;
    -webkit-text-fill-color: #86efac !important;
  }

  body.flux-tool-developer-tools #utilityOutput .utility-processing-status,
  body.flux-tool-developer-tools #utilityOutput .utility-ocr-processing {
    width: 100% !important;
    padding: 0.75rem !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  /* Trust pills — compact horizontal row */
  body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active):not(.passport-editor-active) .tool-workspace-note,
  body.flux-tool-developer-tools .tool-workspace-note {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.3rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.3rem 0 0 !important;
    padding: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.flux-tool-developer-tools .tool-workspace-note::-webkit-scrollbar {
    display: none;
  }

  body.flux-tool-developer-tools.flux-tool-body:not(.generic-tool-studio-active):not(.passport-editor-active) .tool-workspace-note span,
  body.flux-tool-developer-tools .tool-workspace-note span {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    gap: 0.22rem !important;
    min-height: 26px !important;
    padding: 0.15rem 0.45rem !important;
    border: 1px solid var(--dev-m-border) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--dev-m-muted) !important;
    -webkit-text-fill-color: var(--dev-m-muted) !important;
    font-size: 0.64rem !important;
    font-weight: 650 !important;
    line-height: 1.15 !important;
    box-shadow: none !important;
    white-space: nowrap !important;
  }

  body.flux-tool-developer-tools .tool-workspace-note svg,
  body.flux-tool-developer-tools .tool-workspace-note i {
    width: 13px !important;
    height: 13px !important;
    flex: 0 0 13px !important;
    color: var(--dev-m-primary) !important;
    stroke: var(--dev-m-primary) !important;
  }

  /* Below-fold defer render without hiding SEO */
  body.flux-tool-developer-tools .tool-content-stack {
    margin-top: 0.65rem !important;
    content-visibility: auto;
    contain-intrinsic-size: 1px 2400px;
  }

  body.flux-tool-developer-tools .tool-content-stack img {
    loading: lazy;
  }

  body.flux-tool-developer-tools .tool-content-stack .premium-content-section {
    padding: 0.75rem 0 !important;
    margin: 0 !important;
  }

  body.flux-tool-developer-tools .tool-content-stack .section-kicker {
    font-size: 0.64rem !important;
    letter-spacing: 0.08em !important;
  }

  body.flux-tool-developer-tools .tool-content-stack h2 {
    font-size: 1.15rem !important;
    line-height: 1.25 !important;
    margin: 0.2rem 0 0.4rem !important;
  }

  body.flux-tool-developer-tools .tool-content-stack p,
  body.flux-tool-developer-tools .tool-content-stack li {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    color: #475569 !important;
  }

  body.flux-tool-developer-tools .feature-grid.compact-chip-grid span {
    font-size: 0.76rem !important;
    padding: 0.35rem 0.55rem !important;
  }

  @media (max-width: 430px) {
    body.flux-tool-developer-tools {
      --dev-m-gutter: 0.8rem;
    }

    body.flux-tool-developer-tools #utilityOutput .utility-insight-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }

  @media (max-width: 360px) {
    body.flux-tool-developer-tools {
      --dev-m-gutter: 0.75rem;
      --dev-m-result-code-h: 260px;
    }

    body.flux-tool-developer-tools.flux-tool-body .tool-panel,
    body.flux-tool-developer-tools .tool-panel {
      padding: 0.45rem !important;
    }
  }
}

@media (max-width: 768px) {
  html[data-theme="dark"] body.flux-tool-developer-tools,
  body.dark-mode.flux-tool-developer-tools {
    --dev-m-bg: #0b1220;
    --dev-m-surface: #111827;
    --dev-m-border: #334155;
    --dev-m-text: #e2e8f0;
    --dev-m-muted: #94a3b8;
    background: var(--dev-m-bg) !important;
  }

  html[data-theme="dark"] body.flux-tool-developer-tools .tool-panel,
  body.dark-mode.flux-tool-developer-tools .tool-panel {
    background: var(--dev-m-surface) !important;
    border-color: var(--dev-m-border) !important;
  }

  html[data-theme="dark"] body.flux-tool-developer-tools .utility-control-grid textarea,
  body.dark-mode.flux-tool-developer-tools .utility-control-grid textarea {
    background: #0b1220 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
  }

  html[data-theme="dark"] body.flux-tool-developer-tools .utility-control-grid input,
  html[data-theme="dark"] body.flux-tool-developer-tools .utility-control-grid select,
  html[data-theme="dark"] body.flux-tool-developer-tools .dev-mobile-toolbar-control select,
  html[data-theme="dark"] body.flux-tool-developer-tools .dev-mobile-toolbar-control input,
  body.dark-mode.flux-tool-developer-tools .utility-control-grid input,
  body.dark-mode.flux-tool-developer-tools .utility-control-grid select,
  body.dark-mode.flux-tool-developer-tools .dev-mobile-toolbar-control select,
  body.dark-mode.flux-tool-developer-tools .dev-mobile-toolbar-control input {
    background: #0b1220 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
  }

  html[data-theme="dark"] body.flux-tool-developer-tools .dev-mobile-toolbar-chip,
  body.dark-mode.flux-tool-developer-tools .dev-mobile-toolbar-chip {
    background: #172554 !important;
    border-color: #1e40af !important;
    color: #bfdbfe !important;
    -webkit-text-fill-color: #bfdbfe !important;
  }

  html[data-theme="dark"] body.flux-tool-developer-tools .tool-workspace-note span,
  body.dark-mode.flux-tool-developer-tools .tool-workspace-note span {
    background: #0f172a !important;
    border-color: var(--dev-m-border) !important;
  }

  html[data-theme="dark"] body.flux-tool-developer-tools .utility-studio > .tool-actions,
  body.dark-mode.flux-tool-developer-tools .utility-studio > .tool-actions {
    background: rgba(17, 24, 39, 0.94) !important;
    border-top-color: var(--dev-m-border) !important;
  }

  html[data-theme="dark"] body.flux-tool-developer-tools .dev-mobile-toolbar-more,
  body.dark-mode.flux-tool-developer-tools .dev-mobile-toolbar-more {
    background: #0f172a !important;
    border-color: var(--dev-m-border) !important;
  }

  /* Premium mobile shells — collapsible option panels */
  body.flux-tool-developer-tools details.b64-advanced:not([open]) .b64-advanced-body {
    display: none !important;
  }

  body.flux-tool-developer-tools details.b64-advanced[open] .b64-advanced-body {
    display: grid !important;
  }

  body.flux-tool-developer-tools .b64-advanced-summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
  }

  body.flux-tool-developer-tools .b64-advanced-summary::after {
    content: "+" !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.35rem !important;
    height: 1.35rem !important;
    flex: 0 0 1.35rem !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    color: #334155 !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  body.flux-tool-developer-tools details.b64-advanced[open] > .b64-advanced-summary::after {
    content: "−" !important;
  }
}
