/* HTACCESS Generator — mobile premium shell (≤768px only) */
@media (max-width: 768px) {
  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools main[data-tool="htaccess-generator"] .utility-studio.htaccess-generator-mobile-ready .tool-form,
  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools main[data-tool="htaccess-generator"] .utility-studio.htaccess-generator-mobile-ready .tool-actions,
  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools main[data-tool="htaccess-generator"] .utility-studio.htaccess-generator-mobile-ready #utilityOutput {
    display: none !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .utility-studio[data-utility-tool="htaccess-generator"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
    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.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .utility-studio[data-utility-tool="htaccess-generator"] .b64-mobile-shell {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-editor {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-control-label {
    display: block !important;
    margin: 0 0 0.35rem !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    line-height: 1.2 !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-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.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-card-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    margin-bottom: 0.45rem !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-card-title {
    margin: 0 !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;
    -webkit-text-fill-color: #0f172a !important;
    line-height: 1.2 !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-helper,
  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-status,
  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-safety-note {
    margin: 0 0 0.55rem !important;
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .htaccess-mobile-safety {
    padding: 0.45rem 0.55rem !important;
    border-radius: 8px !important;
    background: #fff7ed !important;
    border: 1px solid #fed7aa !important;
    color: #9a3412 !important;
    -webkit-text-fill-color: #9a3412 !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .htaccess-mobile-settings-body {
    display: grid !important;
    gap: 0.55rem !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .htaccess-mobile-group {
    display: grid !important;
    gap: 0.4rem !important;
    padding: 0.55rem 0.6rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #fff !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-adv-field {
    display: grid !important;
    gap: 0.25rem !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-adv-field > span {
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .htaccess-mobile-check {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.45rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .htaccess-mobile-check input {
    margin-top: 0.15rem !important;
    flex: 0 0 auto !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .htaccess-mobile-check span {
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
    line-height: 1.35 !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-text-input,
  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-select {
    display: block !important;
    width: 100% !important;
    min-height: 42px !important;
    padding: 0.5rem 0.65rem !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-size: 0.84rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    box-sizing: border-box !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .htaccess-mobile-error-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.4rem !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .htaccess-mobile-custom-rules {
    display: block !important;
    width: 100% !important;
    min-height: 110px !important;
    max-height: 200px !important;
    padding: 0.6rem 0.65rem !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    background: #fff !important;
    resize: vertical !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    box-sizing: border-box !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-advanced {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-advanced-summary {
    padding: 0.7rem 0.8rem !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    cursor: pointer !important;
    list-style: none !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-advanced-summary::-webkit-details-marker {
    display: none !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .htaccess-mobile-advanced-body {
    display: grid !important;
    gap: 0.45rem !important;
    padding: 0 0.8rem 0.8rem !important;
    border-top: 1px solid #e2e8f0 !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-metrics-wrap {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0.7rem !important;
    background: #fff !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-metrics {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    margin-top: 0.45rem !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-metrics .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.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-metrics .jfmt-label {
    display: block !important;
    font-size: 0.64rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    margin-bottom: 0.15rem !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-metrics .jfmt-metric strong {
    display: block !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-output-badges {
    display: flex !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-status-badge,
  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-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;
    -webkit-text-fill-color: #475569 !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-status-badge.is-success {
    background: rgba(34, 197, 94, 0.16) !important;
    color: #15803d !important;
    -webkit-text-fill-color: #15803d !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-status-badge.is-error {
    background: rgba(239, 68, 68, 0.14) !important;
    color: #b91c1c !important;
    -webkit-text-fill-color: #b91c1c !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-status-badge.is-warn {
    background: rgba(245, 158, 11, 0.16) !important;
    color: #b45309 !important;
    -webkit-text-fill-color: #b45309 !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-stale-badge {
    background: rgba(245, 158, 11, 0.16) !important;
    color: #b45309 !important;
    -webkit-text-fill-color: #b45309 !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-stale-badge[hidden],
  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools [data-jfmt-stale][hidden] {
    display: none !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-output-panel {
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    background: #0f172a !important;
    overflow: hidden !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-output-panel.is-stale {
    opacity: 0.55 !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-output-scroll {
    max-height: 220px !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-output-pre {
    margin: 0 !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.8rem !important;
    line-height: 1.45 !important;
    color: #e2e8f0 !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-output-pre .jfmt-hl-comment { color: #64748b !important; }
  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-output-pre .jfmt-hl-key { color: #7dd3fc !important; }
  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-output-pre .jfmt-hl-string { color: #86efac !important; }
  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-output-pre .jfmt-hl-punct { color: #cbd5e1 !important; }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-output-gutter {
    display: none !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.45rem !important;
    width: 100% !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-icon-btn,
  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-quiet-btn,
  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-secondary-btn,
  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-primary-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    min-height: 42px !important;
    border-radius: 10px !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-primary-btn {
    grid-column: 1 / -1 !important;
    min-height: 46px !important;
    border: 0 !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28) !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-secondary-btn {
    padding: 0 0.55rem !important;
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-secondary-btn:disabled,
  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-result-btn:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-quiet-btn {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    padding: 0 0.65rem !important;
    border: 1px dashed #cbd5e1 !important;
    background: #f8fafc !important;
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
  }

  html.htaccess-generator-mobile-responsive body.flux-tool-developer-tools .b64-mobile-actions svg {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 auto !important;
  }
}
