/* Gradient Generator — mobile editor (max-width 1199px). Desktop untouched. */

@media (max-width: 1199px) {
  html.gg-mobile-boot body.gg-mobile-editor-active .gg-mobile-next-btn {
    width: 100% !important;
    min-height: 48px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--gg-accent) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    opacity: 1 !important;
    filter: none !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32) !important;
    -webkit-text-fill-color: #fff !important;
  }

  main[data-tool="gradient-generator"].gradient-seo-page {
    --gg-font: Inter, "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --gg-heading: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    --gg-text: #172033;
    --gg-label: #334155;
    --gg-accent: #2563eb;
    --gg-border: #dbe3ef;
  }

  html.gg-mobile-boot body.flux-tool-body main[data-tool="gradient-generator"] .gradient-legacy-mobile,
  html.gg-mobile-boot body.flux-tool-body main[data-tool="gradient-generator"] #tool-workspace,
  html.gg-mobile-boot body.flux-tool-body main[data-tool="gradient-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.gg-mobile-editor-active .site-header,
  body.gg-mobile-editor-active .site-footer,
  body.gg-mobile-editor-active main[data-tool="gradient-generator"] .gradient-legacy-mobile,
  body.gg-mobile-editor-active main[data-tool="gradient-generator"] .gradient-desktop-only,
  body.gg-mobile-editor-active main[data-tool="gradient-generator"] #tool-workspace,
  body.gg-mobile-editor-active main[data-tool="gradient-generator"] .tool-workspace-note,
  body.gg-mobile-editor-active main[data-tool="gradient-generator"] .tool-content-stack,
  body.gg-mobile-editor-active .breadcrumb {
    display: none !important;
  }

  html:has(body.gg-mobile-editor-active),
  body.gg-mobile-editor-active {
    overflow: hidden !important;
    height: 100dvh !important;
  }

  body.gg-mobile-editor-active .gg-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;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f3f5f8 !important;
    font-family: var(--gg-font) !important;
    color: var(--gg-text) !important;
    -webkit-text-fill-color: currentColor !important;
  }

  body.gg-mobile-editor-active .gg-mobile-editor *,
  body.gg-mobile-editor-active .gg-mobile-editor *::before,
  body.gg-mobile-editor-active .gg-mobile-editor *::after {
    box-sizing: border-box;
  }

  body.gg-mobile-editor-active .gg-mobile-label,
  body.gg-mobile-editor-active .gg-mobile-helper,
  body.gg-mobile-editor-active .gg-mobile-range-badge,
  body.gg-mobile-editor-active .gg-mobile-stepper-label,
  body.gg-mobile-editor-active .gg-mobile-preview-meta,
  body.gg-mobile-editor-active .gg-mobile-trust li,
  body.gg-mobile-editor-active .gg-mobile-card-title,
  body.gg-mobile-editor-active .gg-mobile-subtitle {
    color: var(--gg-label) !important;
    opacity: 1 !important;
    -webkit-text-fill-color: currentColor !important;
  }

  body.gg-mobile-editor-active .gg-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(--gg-border) !important;
  }

  body.gg-mobile-editor-active .gg-mobile-back {
    width: 40px !important;
    height: 40px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #f1f5f9 !important;
    color: var(--gg-text) !important;
    display: grid !important;
    place-items: center !important;
    cursor: pointer !important;
  }

  body.gg-mobile-editor-active .gg-mobile-title {
    margin: 0 !important;
    font-family: var(--gg-heading) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    text-align: center !important;
    color: var(--gg-text) !important;
  }

  body.gg-mobile-editor-active .gg-mobile-stepper {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    flex: 0 0 auto !important;
    padding: 8px 12px !important;
    background: #fff !important;
    border-bottom: 1px solid var(--gg-border) !important;
  }

  body.gg-mobile-editor-active .gg-mobile-stepper-item {
    display: grid !important;
    gap: 4px !important;
    justify-items: center !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 4px !important;
    cursor: pointer !important;
  }

  body.gg-mobile-editor-active .gg-mobile-stepper-dot {
    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;
  }

  body.gg-mobile-editor-active .gg-mobile-stepper-item.is-active .gg-mobile-stepper-dot {
    background: var(--gg-accent) !important;
    color: #fff !important;
  }

  body.gg-mobile-editor-active .gg-mobile-stepper-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
  }

  body.gg-mobile-editor-active .gg-mobile-stepper-item.is-active .gg-mobile-stepper-label {
    color: var(--gg-accent) !important;
  }

  body.gg-mobile-editor-active .gg-mobile-preview {
    flex: 0 0 auto !important;
    padding: 12px 12px 8px !important;
  }

  body.gg-mobile-editor-active .gg-mobile-preview-stage {
    border-radius: 16px !important;
    border: 1px solid var(--gg-border) !important;
    background: #fff !important;
    padding: 12px !important;
    display: grid !important;
    gap: 8px !important;
  }

  body.gg-mobile-editor-active .gg-mobile-preview-stage-lg .gg-mobile-gradient-preview {
    min-height: 160px !important;
  }

  body.gg-mobile-editor-active .gg-mobile-gradient-preview {
    min-height: 120px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35) !important;
  }

  body.gg-mobile-editor-active .gg-mobile-stop-rail-wrap {
    padding: 0.35rem 0.15rem 0 !important;
  }

  body.gg-mobile-editor-active .gg-mobile-stop-rail {
    position: relative !important;
    height: 42px !important;
  }

  body.gg-mobile-editor-active .gg-mobile-stop-rail-track,
  body.gg-mobile-editor-active .gg-stop-rail-track {
    position: absolute !important;
    left: 10px !important;
    right: 10px !important;
    top: 18px !important;
    height: 8px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1) !important;
    border: 1px solid #d7e1ef !important;
  }

  body.gg-mobile-editor-active .gg-stop-marker {
    position: absolute !important;
    top: 8px !important;
    width: 22px !important;
    height: 28px !important;
    margin-left: -11px !important;
    border: 2px solid #fff !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18) !important;
    cursor: grab !important;
    padding: 0 !important;
    touch-action: none !important;
  }

  body.gg-mobile-editor-active .gg-stop-marker.is-active {
    outline: 2px solid #2563eb !important;
    outline-offset: 2px !important;
    z-index: 2 !important;
  }

  body.gg-mobile-editor-active .gg-mobile-preview-meta {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
  }

  body.gg-mobile-editor-active .gg-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.gg-mobile-editor-active .gg-mobile-card {
    width: 100% !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 auto !important;
    padding: 14px !important;
    border-radius: 18px !important;
    border: 1px solid var(--gg-border) !important;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06) !important;
    display: grid !important;
    gap: 12px !important;
  }

  body.gg-mobile-editor-active .gg-mobile-card-title {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--gg-text) !important;
  }

  body.gg-mobile-editor-active .gg-mobile-subtitle {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }

  body.gg-mobile-editor-active .gg-mobile-field {
    display: grid !important;
    gap: 6px !important;
  }

  body.gg-mobile-editor-active .gg-mobile-range-field {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
  }

  body.gg-mobile-editor-active .gg-mobile-label {
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  body.gg-mobile-editor-active .gg-mobile-input {
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--gg-text) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    -webkit-text-fill-color: currentColor !important;
  }

  body.gg-mobile-editor-active .gg-mobile-input-lg {
    font-size: 16px !important;
    font-weight: 700 !important;
  }

  body.gg-mobile-editor-active .gg-mobile-helper {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
  }

  body.gg-mobile-editor-active .gg-mobile-helper-error {
    color: #dc2626 !important;
    -webkit-text-fill-color: #dc2626 !important;
  }

  body.gg-mobile-editor-active .gg-mobile-type-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.gg-mobile-editor-active .gg-mobile-type-tab {
    min-height: 44px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--gg-label) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
  }

  body.gg-mobile-editor-active .gg-mobile-type-tab.is-active {
    border-color: var(--gg-accent) !important;
    background: #eff6ff !important;
    color: var(--gg-accent) !important;
  }

  body.gg-mobile-editor-active .gg-mobile-shape-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.gg-mobile-editor-active .gg-mobile-shape-btn,
  body.gg-mobile-editor-active .gg-mobile-pos-btn {
    min-height: 44px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--gg-label) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    padding: 8px 6px !important;
  }

  body.gg-mobile-editor-active .gg-mobile-shape-btn.is-active,
  body.gg-mobile-editor-active .gg-mobile-pos-btn.is-active {
    border-color: var(--gg-accent) !important;
    background: #eff6ff !important;
    color: var(--gg-accent) !important;
  }

  body.gg-mobile-editor-active .gg-mobile-pos-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.gg-mobile-editor-active .gg-mobile-color-open-row {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: end !important;
  }

  body.gg-mobile-editor-active .gg-mobile-swatch-wrap {
    position: relative !important;
    width: 52px !important;
    height: 52px !important;
  }

  body.gg-mobile-editor-active .gg-mobile-swatch-trigger {
    width: 52px !important;
    height: 52px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 14px !important;
    padding: 0 !important;
    cursor: pointer !important;
  }

  body.gg-mobile-editor-active .gg-native-picker,
  body.gg-mobile-editor-active .gg-mobile-color-native {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
  }

  body.gg-mobile-editor-active .gg-mobile-range {
    width: 100% !important;
    min-height: 32px !important;
    accent-color: var(--gg-accent) !important;
    grid-column: 1 / -1 !important;
  }

  body.gg-mobile-editor-active .gg-mobile-range-badge {
    justify-self: end !important;
    min-width: 44px !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    background: #eff6ff !important;
    color: var(--gg-accent) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-align: center !important;
  }

  body.gg-mobile-editor-active .gg-mobile-position-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 72px !important;
    gap: 8px !important;
    align-items: center !important;
  }

  body.gg-mobile-editor-active .gg-mobile-position-input {
    min-height: 44px !important;
    text-align: center !important;
  }

  body.gg-mobile-editor-active .gg-mobile-stop-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.gg-mobile-editor-active .gg-mobile-presets {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.gg-mobile-editor-active .gg-mobile-preset-btn {
    min-height: 44px !important;
    aspect-ratio: 1 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 0 !important;
    cursor: pointer !important;
  }

  body.gg-mobile-editor-active .gg-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.gg-mobile-editor-active .gg-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;
  }

  body.gg-mobile-editor-active .gg-mobile-value-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px !important;
    gap: 8px !important;
    align-items: end !important;
  }

  body.gg-mobile-editor-active .gg-mobile-value-field {
    display: grid !important;
    gap: 4px !important;
    min-width: 0 !important;
  }

  body.gg-mobile-editor-active .gg-mobile-copy-btn {
    width: 44px !important;
    height: 44px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--gg-accent) !important;
    display: grid !important;
    place-items: center !important;
    cursor: pointer !important;
  }

  body.gg-mobile-editor-active .gg-mobile-copy-btn.is-copied {
    border-color: #16a34a !important;
    color: #16a34a !important;
  }

  body.gg-mobile-editor-active .gg-mobile-export-sizes {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.gg-mobile-editor-active .gg-mobile-export-size-btn {
    min-height: 44px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--gg-label) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    padding: 8px 10px !important;
  }

  body.gg-mobile-editor-active .gg-mobile-export-size-btn.is-active {
    border-color: var(--gg-accent) !important;
    background: #eff6ff !important;
    color: var(--gg-accent) !important;
  }

  body.gg-mobile-editor-active .gg-mobile-custom-size {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.gg-mobile-editor-active .gg-mobile-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 44px !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    color: var(--gg-label) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    visibility: visible !important;
    opacity: 1 !important;
    appearance: none !important;
  }

  body.gg-mobile-editor-active .gg-mobile-btn span {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
    opacity: 1 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  body.gg-mobile-editor-active .gg-mobile-btn:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
  }

  body.gg-mobile-editor-active .gg-mobile-btn-primary,
  body.gg-mobile-editor-active .gg-mobile-btn-primary span {
    border-color: #2563eb !important;
    background: #2563eb !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  body.gg-mobile-editor-active .gg-mobile-btn-secondary,
  body.gg-mobile-editor-active .gg-mobile-btn-secondary span {
    background: #fff !important;
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
  }

  body.gg-mobile-editor-active .gg-mobile-btn-quiet {
    width: 100% !important;
  }

  body.gg-mobile-editor-active .gg-mobile-actions,
  body.gg-mobile-editor-active .gg-mobile-export-block {
    display: grid !important;
    gap: 8px !important;
  }

  body.gg-mobile-editor-active .gg-mobile-download-btn {
    width: 100% !important;
  }

  body.gg-mobile-editor-active .gg-mobile-footer {
    flex: 0 0 auto !important;
    padding: 10px 12px 14px !important;
    background: #fff !important;
    border-top: 1px solid var(--gg-border) !important;
  }

  body.gg-mobile-editor-active .gg-mobile-next-btn {
    width: 100% !important;
    min-height: 48px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--gg-accent) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    -webkit-text-fill-color: #fff !important;
  }

  body.gg-mobile-editor-active .gg-mobile-next-btn[hidden] {
    display: none !important;
  }
}
