/* Barcode Generator — mobile editor (max-width 1199px). Desktop CSS untouched. */

@media (max-width: 1199px) {

  html.barcode-mobile-boot body.barcode-mobile-editor-active .bcg-mobile-next-btn {
    width: 100% !important;
    min-height: 52px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28) !important;
    -webkit-text-fill-color: #fff !important;
  }

  main[data-tool="barcode-generator"].barcode-generator-seo-page {
    --bcg-font: Inter, "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --bcg-heading: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    --bcg-text: #172033;
    --bcg-label: #334155;
    --bcg-accent: #2563eb;
    --bcg-border: #dbe3ef;
    --bcg-surface: #ffffff;
    --bcg-muted: #64748b;
  }

  html.barcode-mobile-boot body.flux-tool-body main[data-tool="barcode-generator"] .barcode-legacy-mobile,
  html.barcode-mobile-boot body.flux-tool-body main[data-tool="barcode-generator"] #tool-workspace,
  html.barcode-mobile-boot body.flux-tool-body main[data-tool="barcode-generator"] .tool-workspace-note {
    visibility: hidden !important;
    pointer-events: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.barcode-mobile-editor-active .site-header,
  body.barcode-mobile-editor-active .site-footer,
  body.barcode-mobile-editor-active main[data-tool="barcode-generator"] .barcode-legacy-mobile,
  body.barcode-mobile-editor-active main[data-tool="barcode-generator"] .barcode-desktop-only,
  body.barcode-mobile-editor-active main[data-tool="barcode-generator"] #tool-workspace,
  body.barcode-mobile-editor-active main[data-tool="barcode-generator"] .tool-workspace-note,
  body.barcode-mobile-editor-active main[data-tool="barcode-generator"] .tool-content-stack,
  body.barcode-mobile-editor-active .breadcrumb {
    display: none !important;
  }

  html:has(body.barcode-mobile-editor-active),
  body.barcode-mobile-editor-active {
    overflow: hidden !important;
    height: 100dvh !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-editor[data-c100kb-portaled="true"] {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f3f5f8 !important;
    box-sizing: border-box !important;
    font-family: var(--bcg-font) !important;
    color: var(--bcg-text) !important;
    -webkit-text-fill-color: currentColor !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-editor[data-c100kb-portaled="true"] *,
  body.barcode-mobile-editor-active .bcg-mobile-editor[data-c100kb-portaled="true"] *::before,
  body.barcode-mobile-editor-active .bcg-mobile-editor[data-c100kb-portaled="true"] *::after {
    box-sizing: border-box;
  }

  body.barcode-mobile-editor-active .bcg-mobile-editor .bcg-mobile-label,
  body.barcode-mobile-editor-active .bcg-mobile-editor .bcg-mobile-helper,
  body.barcode-mobile-editor-active .bcg-mobile-editor .bcg-mobile-check-row,
  body.barcode-mobile-editor-active .bcg-mobile-editor .bcg-mobile-range-badge,
  body.barcode-mobile-editor-active .bcg-mobile-editor .bcg-mobile-stepper-label,
  body.barcode-mobile-editor-active .bcg-mobile-editor .bcg-mobile-preview-meta,
  body.barcode-mobile-editor-active .bcg-mobile-editor .bcg-mobile-trust li,
  body.barcode-mobile-editor-active .bcg-mobile-editor .bcg-mobile-color-hex,
  body.barcode-mobile-editor-active .bcg-mobile-editor .bcg-mobile-export-btn,
  body.barcode-mobile-editor-active .bcg-mobile-editor .bcg-mobile-btn-secondary {
    color: var(--bcg-label) !important;
    opacity: 1 !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-header {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
    min-height: 56px !important;
    padding: 8px 12px 6px !important;
    background: #fff !important;
    border-bottom: 1px solid var(--bcg-border) !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-back {
    width: 40px !important;
    height: 40px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #f1f5f9 !important;
    color: var(--bcg-accent) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-back svg {
    width: 22px !important;
    height: 22px !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-title {
    margin: 0 !important;
    font-family: var(--bcg-heading) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
    color: var(--bcg-text) !important;
    -webkit-text-fill-color: var(--bcg-text) !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-header-spacer {
    width: 40px !important;
    height: 40px !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-stepper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    flex: 0 0 auto !important;
    padding: 12px 16px 10px !important;
    background: #fff !important;
    border-bottom: 1px solid var(--bcg-border) !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-stepper-item {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 72px !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 8px !important;
    cursor: pointer !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-stepper-item:not(:last-child)::after {
    content: "" !important;
    position: absolute !important;
    top: 14px !important;
    left: calc(50% + 18px) !important;
    width: calc(100% - 12px) !important;
    height: 2px !important;
    background: #e2e8f0 !important;
    z-index: 0 !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-stepper-item.is-done:not(:last-child)::after,
  body.barcode-mobile-editor-active .bcg-mobile-stepper-item.is-active:not(:last-child)::after {
    background: #bfdbfe !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-stepper-dot {
    position: relative !important;
    z-index: 1 !important;
    display: grid !important;
    place-items: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 999px !important;
    background: #e2e8f0 !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-stepper-item.is-active .bcg-mobile-stepper-dot {
    background: var(--bcg-accent) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28) !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-stepper-item.is-done .bcg-mobile-stepper-dot {
    background: #dbeafe !important;
    color: var(--bcg-accent) !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-stepper-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-stepper-item.is-active .bcg-mobile-stepper-label {
    color: var(--bcg-accent) !important;
    -webkit-text-fill-color: var(--bcg-accent) !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-preview {
    flex: 0 0 auto !important;
    padding: 12px 12px 8px !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-preview-stage {
    position: relative !important;
    min-height: 168px !important;
    border-radius: 16px !important;
    border: 1px solid var(--bcg-border) !important;
    background-color: #eceef2 !important;
    background-image:
      linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
      linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
      linear-gradient(-45deg, transparent 75%, #e2e8f0 75%) !important;
    background-size: 16px 16px !important;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 12px 10px !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-preview-zoom {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 120px !important;
    transform-origin: center center !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-preview-output {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 96px !important;
    padding: 8px !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-preview-output.has-image {
    background: #fff !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-preview-img {
    display: block !important;
    max-width: 100% !important;
    max-height: 120px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-preview-empty {
    margin: 0 !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    text-align: center !important;
    color: var(--bcg-muted) !important;
    -webkit-text-fill-color: var(--bcg-muted) !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-preview-meta {
    margin: 8px 0 0 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    text-align: center !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 12px 8px !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-card {
    border: 1px solid var(--bcg-border) !important;
    border-radius: 18px !important;
    background: var(--bcg-surface) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
    padding: 14px !important;
    display: grid !important;
    gap: 12px !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-field {
    display: grid !important;
    gap: 8px !important;
    margin: 0 !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-label {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: var(--bcg-label) !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-select-wrap {
    position: relative !important;
    display: block !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-select,
  body.barcode-mobile-editor-active .bcg-mobile-input,
  body.barcode-mobile-editor-active .bcg-mobile-color-hex {
    width: 100% !important;
    min-height: 48px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 14px !important;
    background: #fff !important;
    padding: 0 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--bcg-text) !important;
    -webkit-text-fill-color: var(--bcg-text) !important;
    appearance: none !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-select-wrap::after {
    content: "" !important;
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    width: 10px !important;
    height: 10px !important;
    border-right: 2px solid #64748b !important;
    border-bottom: 2px solid #64748b !important;
    transform: translateY(-65%) rotate(45deg) !important;
    pointer-events: none !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-select {
    padding-right: 40px !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-helper {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    color: var(--bcg-muted) !important;
    -webkit-text-fill-color: var(--bcg-muted) !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-helper-error {
    color: #dc2626 !important;
    -webkit-text-fill-color: #dc2626 !important;
    font-weight: 600 !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-helper-warning {
    color: #d97706 !important;
    -webkit-text-fill-color: #d97706 !important;
    font-weight: 600 !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-check-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 44px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--bcg-label) !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-check-row input {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    accent-color: var(--bcg-accent) !important;
    flex: 0 0 20px !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-range-field {
    gap: 6px !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-range-badge {
    justify-self: end !important;
    min-width: 44px !important;
    min-height: 28px !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    background: #eff6ff !important;
    color: var(--bcg-accent) !important;
    -webkit-text-fill-color: var(--bcg-accent) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-align: center !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-range-field input[type="range"] {
    width: 100% !important;
    min-height: 32px !important;
    accent-color: var(--bcg-accent) !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-color-control {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    gap: 8px !important;
    align-items: center !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-color-swatch {
    width: 44px !important;
    height: 44px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 0 !important;
    cursor: pointer !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-color-native {
    width: 44px !important;
    height: 44px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 2px !important;
    background: #fff !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-trust {
    list-style: none !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-trust li {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 44px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--bcg-label) !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-trust svg {
    width: 16px !important;
    height: 16px !important;
    color: var(--bcg-accent) !important;
    flex: 0 0 16px !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-export-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-export-btn {
    min-height: 48px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: var(--bcg-label) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-export-btn.is-active {
    border-color: var(--bcg-accent) !important;
    background: #eff6ff !important;
    color: var(--bcg-accent) !important;
    -webkit-text-fill-color: var(--bcg-accent) !important;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12) !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-actions {
    display: grid !important;
    gap: 10px !important;
    margin-top: 4px !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 14px !important;
    border: 0 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    padding: 0 16px !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28) !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-btn-primary.is-applied {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-btn-primary.is-processing {
    opacity: 0.72 !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-btn-download {
    background: #fff !important;
    border: 1px solid #bfdbfe !important;
    color: var(--bcg-accent) !important;
    -webkit-text-fill-color: var(--bcg-accent) !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-btn-download:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-btn-secondary {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: var(--bcg-label) !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-footer {
    flex: 0 0 auto !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    background: #fff !important;
    border-top: 1px solid var(--bcg-border) !important;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06) !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-next-btn {
    width: 100% !important;
    min-height: 52px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28) !important;
    cursor: pointer !important;
  }

  body.barcode-mobile-editor-active .bcg-mobile-next-btn[hidden] {
    display: none !important;
  }

  body.barcode-mobile-editor-active .bcg-field-disabled {
    opacity: 0.45 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 760px) {
  body.flux-tool-image-tools main[data-tool="barcode-generator"] .tool-page-hero.barcode-legacy-mobile {
    display: none !important;
  }
}
