@media not all and (min-width: 1200px) {
  .color-picker-desktop-only,
  html body main.color-picker-seo-page[data-tool="color-picker"] .color-picker-desktop-only {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
}

@media (min-width: 1200px) {
  .color-picker-legacy-mobile {
    display: none !important;
  }

  html body.flux-tool-body.flux-tool-image-tools.compress-100kb-pro main#main.color-picker-seo-page[data-tool="color-picker"] {
    --c100kb-seo-wide: min(94vw, 1600px);
    --cpk-toolbar-height: 64px;
    --cpk-intent-block: clamp(132px, 17vh, 172px);
  }

  html:has(body.color-picker-editor-active.compress-100kb-pro.compress-100kb-ready),
  body.color-picker-editor-active.compress-100kb-pro.compress-100kb-ready {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    background: #eef2f7 !important;
  }

  body.color-picker-editor-active.compress-100kb-pro.compress-100kb-ready .tool-content-stack {
    display: block !important;
    visibility: visible !important;
  }

  body.color-picker-editor-active.compress-100kb-ready section.color-picker-legacy-mobile,
  body.color-picker-editor-active.compress-100kb-ready #tool-workspace,
  body.color-picker-editor-active.compress-100kb-ready .tool-workspace-note {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.color-picker-editor-active.compress-100kb-ready main#main.color-picker-seo-page {
    visibility: visible !important;
    pointer-events: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.color-picker-editor-active.compress-100kb-ready main#main.color-picker-seo-page > section.tool-layout:not(#color-picker-desktop-shell) {
    display: block !important;
    width: 100% !important;
    max-width: var(--c100kb-seo-wide, min(94vw, 1600px)) !important;
    margin: 0 auto !important;
    padding: 1.25rem 1rem 2.5rem !important;
    box-sizing: border-box !important;
  }

  body.color-picker-editor-active.compress-100kb-ready #color-picker-desktop-shell {
    display: block !important;
    visibility: visible !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background: #eef3fb !important;
  }

  body.color-picker-editor-active.compress-100kb-ready #color-picker-desktop-workspace.cpk-desktop-intent-panel {
    position: relative;
    isolation: isolate;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0.85rem 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #eff9ff, #eef3fb) !important;
    box-shadow: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.color-picker-editor-active.compress-100kb-ready #color-picker-desktop-workspace.cpk-desktop-intent-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(148, 163, 184, 0.14) 1px, transparent 1px),
      linear-gradient(90deg, rgba(148, 163, 184, 0.14) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.32;
    pointer-events: none;
    z-index: 0;
  }

  body.color-picker-editor-active.compress-100kb-ready #color-picker-desktop-workspace.cpk-desktop-intent-panel > * {
    position: relative;
    z-index: 1;
  }

  body.color-picker-editor-active.compress-100kb-ready #color-picker-desktop-shell .c100kb-tool-intent-header {
    display: block !important;
    visibility: visible !important;
    text-align: center !important;
    margin: 0 auto 0.45rem !important;
    padding: 0.2rem 1.25rem 0.35rem !important;
    flex: 0 0 auto !important;
    max-width: min(94vw, 960px) !important;
  }

  body.color-picker-editor-active.compress-100kb-ready #color-picker-desktop-shell .c100kb-tool-intent-header h1 {
    margin: 0 !important;
    font-size: clamp(1.35rem, 2.5vw, 2rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    text-wrap: balance;
  }

  body.color-picker-editor-active.compress-100kb-ready #color-picker-desktop-shell .c100kb-tool-intent-header .c100kb-h1-tail {
    white-space: nowrap;
  }

  body.color-picker-editor-active.compress-100kb-ready #color-picker-desktop-shell .c100kb-tool-intent-header .c100kb-hero-lead {
    max-width: 42rem !important;
    margin: 0.35rem auto 0 !important;
    font-size: clamp(0.875rem, 0.95vw, 0.9375rem) !important;
    line-height: 1.55 !important;
    color: #334155 !important;
    text-transform: none !important;
  }

  body.color-picker-editor-active.compress-100kb-ready #color-picker-desktop-mount {
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 0 !important;
    height: calc(100dvh - var(--cpk-intent-block, 148px)) !important;
    max-height: calc(100dvh - var(--cpk-intent-block, 148px)) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body.color-picker-editor-active.compress-100kb-ready #color-picker-desktop-mount .cpk-editor-host {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
  }

  body.color-picker-editor-active.compress-100kb-ready .c100kb-color-picker-editor[data-c100kb-portaled="true"] {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #eef3fb !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-color-picker-editor .c100kb-editor-header {
    grid-area: unset !important;
    position: relative !important;
    flex: 0 0 var(--cpk-toolbar-height, 64px) !important;
    min-height: var(--cpk-toolbar-height, 64px) !important;
    height: var(--cpk-toolbar-height, 64px) !important;
    padding: 0 18px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
    color: #142033 !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04) !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-color-picker-editor .c100kb-editor-title {
    flex: 1 1 auto !important;
    margin: 0 !important;
    text-align: left !important;
    font-size: 16px !important;
    font-weight: 760 !important;
    color: #142033 !important;
    min-width: 0 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-color-picker-editor .c100kb-editor-back {
    background: #f8fafc !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    color: #1e293b !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-color-picker-editor .c100kb-history-controls {
    display: none !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-selected-swatch-wrap {
    display: grid;
    gap: 0.28rem;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-pick-col .cpk-card {
    gap: 0.42rem;
    padding: 0.65rem 0.75rem;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-selected-swatch {
    width: 100%;
    height: 38px;
    border-radius: 9px;
    border: 1px solid #d7e1ef;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-swatch-btn {
    width: 100%;
    height: 30px;
    min-height: 30px;
    border: 1.5px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    background: #f1f5f9;
    box-sizing: border-box;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-recent-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.28rem;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-center-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-center-tab {
    min-height: 38px;
    border: 1px solid #d7e1ef;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-center-tab.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-center-panel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-center-panel.is-active {
    display: flex;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-image-empty {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 220px;
    padding: 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.86rem;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-image-workspace {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-image-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-zoom-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    flex: 1 1 auto;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-zoom-btn {
    min-height: 34px;
    padding: 0 0.55rem;
    border: 1px solid #d7e1ef;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-zoom-btn.is-active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-image-viewport {
    flex: 1 1 auto;
    min-height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    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%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    cursor: crosshair;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-image-zoom-wrap {
    transform-origin: center center;
    will-change: transform;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-image-display {
    display: block;
    max-width: 100%;
    max-height: 100%;
    image-rendering: pixelated;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-source-canvas {
    display: none !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-magnifier {
    position: fixed;
    z-index: 1200;
    pointer-events: none;
    border: 2px solid #2563eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
    padding: 3px;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-magnifier canvas {
    display: block;
    border-radius: 7px;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-upload-label,
  body.compress-100kb-pro.compress-100kb-ready .cpk-replace-label {
    cursor: pointer;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-color-picker-editor .cpk-editor-main {
    display: grid !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 12px 14px 14px !important;
    overflow: hidden !important;
    align-items: stretch;
    box-sizing: border-box !important;
    background: #e7edf7 !important;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
    grid-template-columns: minmax(260px, 22vw) minmax(0, 1fr) minmax(300px, 24vw) !important;
    gap: 12px !important;
  }

  @media (min-width: 1200px) and (max-width: 1400px) {
    body.compress-100kb-pro.compress-100kb-ready .c100kb-color-picker-editor .cpk-editor-main {
      grid-template-columns: minmax(240px, 21vw) minmax(0, 1fr) minmax(280px, 23vw) !important;
      gap: 10px !important;
      padding: 10px 12px 12px !important;
    }
  }

  @media (min-width: 1600px) {
    body.compress-100kb-pro.compress-100kb-ready .c100kb-color-picker-editor .cpk-editor-main {
      grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) minmax(340px, 380px) !important;
      gap: 14px !important;
      padding: 14px 18px 16px !important;
    }
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-col {
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-card {
    background: #fff;
    border: 1px solid #d7e1ef;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    padding: 0.72rem 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
    flex: 1 1 auto;
    box-sizing: border-box;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-field {
    display: grid;
    gap: 0.28rem;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d7e1ef;
    border-radius: 10px;
    padding: 0.4rem 0.62rem;
    font-size: 0.92rem;
    color: #0f172a;
    background: #fff;
    box-sizing: border-box;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-input-lg {
    min-height: 44px;
    font-size: 0.95rem;
    font-weight: 600;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-helper {
    margin: 0;
    font-size: 0.76rem;
    color: #64748b;
    line-height: 1.4;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-helper-error {
    color: #dc2626;
    font-weight: 600;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-picker-wrap {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 0.45rem;
    align-items: center;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-native-picker {
    width: 60px;
    height: 60px;
    padding: 0;
    border: 2px solid #d7e1ef;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-native-picker::-webkit-color-swatch-wrapper {
    padding: 4px;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-native-picker::-webkit-color-swatch {
    border: 0;
    border-radius: 10px;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-range-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
    align-items: center;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-range {
    width: 100%;
    accent-color: #2563eb;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-range-hue {
    background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
    height: 8px;
    border-radius: 999px;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-range-badge {
    min-width: 44px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.2rem 0.35rem;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-presets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.28rem;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-preset-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.1);
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-preview-card {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.55rem;
    gap: 0.45rem;
    overflow: hidden;
    background: #fff !important;
    border-color: #d7e1ef !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-preview-stage {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: stretch;
    justify-content: center;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-preview-swatch {
    flex: 1 1 auto;
    min-height: 220px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-preview-hex {
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-preview-meta {
    margin: 0;
    text-align: center;
    font-size: 0.78rem;
    color: #64748b;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-contrast-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-contrast-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.86rem;
    font-weight: 700;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-value-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
    align-items: end;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-value-field {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-copy-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #d7e1ef;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-copy-btn.is-copied {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-actions {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.25rem;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid #d7e1ef;
    padding: 0.45rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    background: #fff;
    color: #1e293b;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-btn-primary {
    border-color: #2563eb;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-btn-secondary,
  body.compress-100kb-pro.compress-100kb-ready .cpk-btn-quiet {
    background: #f8fafc;
  }

  body.compress-100kb-pro.compress-100kb-ready .cpk-btn-quiet {
    width: 100%;
    border-color: #e2e8f0;
    font-size: 0.8rem;
  }
}
