/* Screenshot to PDF — mobile editor (max-width 1199px). Desktop CSS untouched. */

@media (max-width: 1199px) {
  main[data-tool="screenshot-to-pdf"].screenshot-to-pdf-seo-page {
    --pp-font: Inter, "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --pp-text: #172033;
    --pp-label: #334155;
    --pp-accent: #2563eb;
    --pp-border: #dbe3ef;
    --pp-surface: #ffffff;
    --pp-header: #1976d2;
  }

  body.flux-tool-body.compress-100kb-ready.mobile-editor-layout .c100kb-screenshot-pdf-mobile[data-c100kb-portaled="true"] .c100kb-editor-header,
  body.flux-tool-body.compress-100kb-ready.mobile-editor-layout .c100kb-screenshot-pdf-mobile[data-c100kb-portaled="true"] .c100kb-editor-header .c100kb-screenshot-pdf-mobile-session-title,
  body.flux-tool-body.compress-100kb-ready.mobile-editor-layout .c100kb-screenshot-pdf-mobile[data-c100kb-portaled="true"] .c100kb-screenshot-pdf-mobile-header-action {
    -webkit-text-fill-color: currentColor !important;
  }

  body.flux-tool-body.compress-100kb-ready.mobile-editor-layout .c100kb-screenshot-pdf-mobile[data-c100kb-portaled="true"] .c100kb-editor-header *,
  body.flux-tool-body.compress-100kb-ready.mobile-editor-layout .c100kb-screenshot-pdf-mobile[data-c100kb-portaled="true"] .c100kb-sheet-head * {
    -webkit-text-fill-color: currentColor !important;
  }

  body.flux-tool-body.compress-100kb-ready.mobile-editor-layout .c100kb-screenshot-pdf-mobile[data-c100kb-portaled="true"] {
    color: #172033 !important;
  }

  body.flux-tool-body.compress-100kb-ready.mobile-editor-layout .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-field span,
  body.flux-tool-body.compress-100kb-ready.mobile-editor-layout .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-meta,
  body.flux-tool-body.compress-100kb-ready.mobile-editor-layout .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-mobile-hint,
  body.flux-tool-body.compress-100kb-ready.mobile-editor-layout .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-mobile-zoom-bar button,
  body.flux-tool-body.compress-100kb-ready.mobile-editor-layout .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-notice,
  body.flux-tool-body.compress-100kb-ready.mobile-editor-layout .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-empty,
  body.flux-tool-body.compress-100kb-ready.mobile-editor-layout .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-thumb span {
    color: #334155 !important;
    opacity: 1 !important;
  }

  html body.flux-tool-body.compress-100kb-pro.compress-100kb-ready.screenshot-to-pdf-mobile-editor-active main[data-tool="screenshot-to-pdf"],
  html body.flux-tool-body.compress-100kb-pro.compress-100kb-ready.mobile-editor-layout main[data-tool="screenshot-to-pdf"] {
    overflow-x: hidden !important;
  }

  body.compress-100kb-pro.compress-100kb-ready.screenshot-to-pdf-mobile-editor-active .site-header,
  body.compress-100kb-pro.compress-100kb-ready.screenshot-to-pdf-mobile-editor-active .site-footer,
  body.compress-100kb-pro.compress-100kb-ready.screenshot-to-pdf-mobile-editor-active .breadcrumb,
  body.compress-100kb-pro.compress-100kb-ready.screenshot-to-pdf-mobile-editor-active .tool-content-stack,
  body.compress-100kb-pro.compress-100kb-ready.screenshot-to-pdf-mobile-editor-active .sticky-mobile-action {
    display: none !important;
  }

  html:has(body.compress-100kb-pro.compress-100kb-ready.screenshot-to-pdf-mobile-editor-active),
  body.compress-100kb-pro.compress-100kb-ready.screenshot-to-pdf-mobile-editor-active {
    overflow: hidden !important;
    height: 100dvh !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-screenshot-pdf-mobile[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: #eceef2 !important;
    box-sizing: border-box !important;
    font-family: var(--pp-font) !important;
    color: var(--pp-text) !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-editor-header {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 50px !important;
    min-height: 50px !important;
    height: 50px !important;
    padding: 0 10px !important;
    background: #1976d2 !important;
    border-bottom: 0 !important;
    z-index: 30 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-editor-back {
    width: 36px !important;
    height: 36px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-mobile-session-title {
    margin: 0 !important;
    padding: 0 4px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile-header-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #1976d2 !important;
    -webkit-text-fill-color: #1976d2 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile-header-action[data-screenshot-primary-mode="download"] {
    padding: 0 10px !important;
    font-size: 11px !important;
    min-height: 32px !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile-header-action:disabled {
    opacity: 0.55 !important;
    pointer-events: none !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-editor-main.c100kb-screenshot-pdf-main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 6px 8px 4px !important;
    gap: 8px !important;
    background: #eceef2 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile-preview-wrap {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    min-width: 0 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile.c100kb-screenshot-pdf-sheet-open .c100kb-screenshot-pdf-mobile-preview-wrap {
    min-height: min(32dvh, 220px) !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-preview {
    flex: 1 1 auto !important;
    min-height: min(34dvh, 280px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1) !important;
    padding: 10px !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-ocr-preview-stage {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    transform: none !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-preview canvas {
    display: block !important;
    max-width: 100% !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12) !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile-zoom-bar {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    flex: 0 0 auto !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile-zoom-bar button {
    min-height: 36px !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    opacity: 1 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile-thumbs-bar {
    display: flex !important;
    align-items: stretch !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
    min-height: 88px !important;
    max-height: 96px !important;
    overflow: hidden !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-thumbs {
    display: flex !important;
    align-items: stretch !important;
    gap: 8px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 2px !important;
    scrollbar-width: none !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-thumbs::-webkit-scrollbar {
    display: none !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-thumb {
    flex: 0 0 auto !important;
    width: 72px !important;
    min-width: 72px !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 10px !important;
    background: #fff !important;
    overflow: hidden !important;
    position: relative !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-thumb.is-active {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18) !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-thumb-select {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    min-height: 72px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-thumb img {
    width: 100% !important;
    height: 48px !important;
    object-fit: cover !important;
    display: block !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-thumb span {
    display: block !important;
    padding: 2px 4px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    opacity: 1 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-thumb-remove {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    width: 22px !important;
    height: 22px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, 0.72) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-add-btn {
    flex: 0 0 auto !important;
    min-width: 56px !important;
    min-height: 72px !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    border: 1px dashed #93c5fd !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #2563eb !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    opacity: 1 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile-result {
    flex: 0 0 auto !important;
    min-height: 0 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-notice,
  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-empty,
  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-ready-card {
    margin: 0 !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    background: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    opacity: 1 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-notice--warning {
    color: #b45309 !important;
    -webkit-text-fill-color: #b45309 !important;
    border: 1px solid #fcd34d !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-ready-head strong {
    color: #172033 !important;
    font-size: 14px !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-ready-head span,
  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-ready-copy {
    color: #334155 !important;
    opacity: 1 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile-toolbar.c100kb-editor-toolbar {
    display: flex !important;
    flex: 0 0 115px !important;
    min-height: 115px !important;
    max-height: 115px !important;
    gap: 0 !important;
    padding: 0 8px env(safe-area-inset-bottom, 0px) !important;
    background: #fff !important;
    border-top: 1px solid #e2e8f0 !important;
    z-index: 45 !important;
    margin-top: auto !important;
    overflow-x: auto !important;
    align-items: center !important;
    scrollbar-width: none !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile-tab {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: 72px !important;
    min-height: 68px !important;
    padding: 8px 6px 6px !important;
    gap: 4px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    opacity: 1 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile-tab.is-active {
    background: #eff6ff !important;
    color: #2563eb !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile-tab span {
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    opacity: 1 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile.c100kb-screenshot-pdf-sheet-open .c100kb-screenshot-pdf-mobile-toolbar {
    opacity: 0.35 !important;
    pointer-events: none !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-bottom-sheet {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: calc(115px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 40 !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: min(46dvh, 400px) !important;
    background: #fff !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 -20px 48px rgba(15, 23, 42, 0.22) !important;
    transform: translateY(110%) !important;
    transition: transform 0.22s ease !important;
    pointer-events: none !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile.c100kb-screenshot-pdf-sheet-open .c100kb-bottom-sheet {
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-editor-backdrop:not([hidden]) {
    display: none !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile.c100kb-screenshot-pdf-sheet-open .c100kb-sheet-head {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
    grid-template-areas: "close title apply" !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 50px !important;
    min-height: 50px !important;
    padding: 0 12px !important;
    background: #1976d2 !important;
    border-radius: 16px 16px 0 0 !important;
    color: #fff !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile.c100kb-screenshot-pdf-sheet-open .c100kb-sheet-close {
    grid-area: close !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile.c100kb-screenshot-pdf-sheet-open .c100kb-sheet-apply {
    grid-area: apply !important;
    justify-self: end !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile.c100kb-screenshot-pdf-sheet-open .c100kb-sheet-heading {
    grid-area: title !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-sheet-heading {
    display: grid !important;
    gap: 2px !important;
    min-width: 0 !important;
    text-align: center !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-sheet-title {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-sheet-status {
    display: block !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-sheet-close,
  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-sheet-apply {
    width: 32px !important;
    height: 32px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile.c100kb-screenshot-pdf-sheet-open .c100kb-sheet-title,
  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile.c100kb-screenshot-pdf-sheet-open .c100kb-sheet-status {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-sheet-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 12px 14px 18px !important;
    background: #fff !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-tab-panel {
    display: grid !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-tab-panel[hidden],
  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile [hidden] {
    display: none !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-section {
    display: grid !important;
    gap: 10px !important;
    width: 100% !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-field {
    display: grid !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-field span {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    opacity: 1 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-field select,
  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-field input[type="number"] {
    width: 100% !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #172033 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-meta {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #2563eb !important;
    -webkit-text-fill-color: #2563eb !important;
    opacity: 1 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-mobile-hint,
  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-mobile-privacy {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #334155 !important;
    opacity: 1 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile-add-wide {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 44px !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #334155 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    opacity: 1 !important;
  }

  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-screenshot-pdf-sidebar,
  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-editor-zoom,
  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-editor-header-actions,
  body.compress-100kb-pro .c100kb-screenshot-pdf-mobile .c100kb-history-controls {
    display: none !important;
  }
}
