/* Compress Image to 100KB — editor layout (mirrors 20KB desktop structure, new code) */

html:has(body.compress-100kb-pro.compress-100kb-ready),
body.compress-100kb-pro.compress-100kb-ready {
  overflow: hidden !important;
  height: 100dvh !important;
  background: #eef2f7 !important;
}

body.compress-100kb-pro.compress-100kb-ready .image-optimizer-100kb-form[aria-hidden="true"] {
  display: none !important;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Beat flux mobile uploader rule: body.flux-tool-body .tool-form.premium-uploader { display:block !important } */
html body.flux-tool-body.compress-100kb-pro.compress-100kb-ready .tool-form.premium-uploader.image-optimizer-100kb-form,
html body.flux-tool-body.compress-100kb-pro.compress-100kb-ready .image-optimizer-100kb-form[aria-hidden="true"],
html body.flux-tool-body.flux-tool-image-tools.compress-100kb-pro.compress-100kb-ready .tool-page #tool-workspace.tool-panel .tool-form.premium-uploader.image-optimizer-100kb-form,
html body.flux-tool-body.flux-tool-image-tools.compress-100kb-pro.compress-100kb-ready .tool-page #tool-workspace.tool-panel .image-optimizer-100kb-form[aria-hidden="true"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Instantly hide upload + page chrome when editor opens (desktop + mobile) */
body.compress-100kb-pro.compress-100kb-ready .site-header,
body.compress-100kb-pro.compress-100kb-ready .site-footer,
body.compress-100kb-pro.compress-100kb-ready .breadcrumb,
body.compress-100kb-pro.compress-100kb-ready .tool-breadcrumb,
body.compress-100kb-pro.compress-100kb-ready .tool-page-hero,
body.compress-100kb-pro.compress-100kb-ready .c100kb-tool-intent-header,
body.compress-100kb-pro.compress-100kb-ready .c100kb-trust-badges,
body.compress-100kb-pro.compress-100kb-ready .c100kb-intro-section,
body.compress-100kb-pro.compress-100kb-ready .tool-content-stack,
body.compress-100kb-pro.compress-100kb-ready .image-optimizer-100kb-form,
body.compress-100kb-pro.compress-100kb-ready .image-optimizer-100kb-actions {
  display: none !important;
}

body.compress-100kb-pro.compress-100kb-ready main.page-shell.tool-page,
body.compress-100kb-pro.compress-100kb-ready .tool-layout,
body.compress-100kb-pro.compress-100kb-ready .tool-main,
body.compress-100kb-pro.compress-100kb-ready #tool-workspace.tool-panel {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Fullscreen loading overlay until editor mounts */
body.compress-100kb-pro.compress-100kb-ready:not(:has(.c100kb-editor-app[data-c100kb-portaled="true"])) .c100kb-result-zone,
body.compress-100kb-pro.compress-100kb-ready:not(:has(.c100kb-editor-app[data-c100kb-portaled="true"])) #imageOutput {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  z-index: 9998 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: #f3f6fb !important;
  overflow: hidden !important;
  transform: none !important;
}

body.compress-100kb-pro.compress-100kb-ready:not(:has(.c100kb-editor-app[data-c100kb-portaled="true"])) .c100kb-processing {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: grid !important;
  place-content: center !important;
  justify-items: center !important;
  gap: 0.85rem !important;
  padding: 1.5rem !important;
  text-align: center !important;
  background: #f3f6fb !important;
}

body.compress-100kb-pro .c100kb-processing-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(25, 118, 210, 0.16);
  border-top-color: #1976d2;
  animation: c100kb-spin 0.55s linear infinite;
}

@keyframes c100kb-spin {
  to {
    transform: rotate(360deg);
  }
}

body.compress-100kb-pro .c100kb-processing strong {
  font-size: 1rem;
  font-weight: 650;
  color: #0f172a;
}

body.compress-100kb-pro .c100kb-processing span {
  font-size: 0.875rem;
  line-height: 1.45;
  color: #64748b;
  max-width: 22rem;
}

body.compress-100kb-pro.compress-100kb-ready #tool-workspace,
body.compress-100kb-pro.compress-100kb-ready .tool-panel,
body.compress-100kb-pro.compress-100kb-ready .c100kb-result,
body.compress-100kb-pro.compress-100kb-ready .premium-result-card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-panels-store,
body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-actions-store,
body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-backdrop[hidden] {
  display: none !important;
}

body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-app[data-c100kb-portaled="true"] {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #f3f6fb !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
}

body.compress-100kb-pro .c100kb-editor-header {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 50px;
  min-height: 50px;
  height: 50px;
  padding: 0 20px !important;
  background: #1976d2 !important;
  color: #fff;
  z-index: 30;
  box-sizing: border-box;
}

body.compress-100kb-pro .c100kb-editor-title {
  flex: 1 1 auto;
  margin: 0;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  color: #fff !important;
  min-width: 0;
}

body.compress-100kb-pro .c100kb-history-controls {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  z-index: 2;
  pointer-events: auto;
}

body.compress-100kb-pro .c100kb-history-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #172033;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

body.compress-100kb-pro .c100kb-history-btn svg,
body.compress-100kb-pro .c100kb-history-btn i {
  width: 21px;
  height: 21px;
}

body.compress-100kb-pro .c100kb-history-btn:not(:disabled):hover {
  background: rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

body.compress-100kb-pro .c100kb-history-btn:disabled {
  color: #a8b0bb;
  cursor: not-allowed;
  opacity: 0.9;
  pointer-events: none;
}

body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-app-root,
body.compress-100kb-pro.compress-100kb-ready .studio-result-grid.c100kb-editor-app-root {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.compress-100kb-pro .c100kb-icon-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #111 !important;
  text-decoration: none !important;
  cursor: pointer;
}

body.compress-100kb-pro .c100kb-header-download.download-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 48px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  border: 1px solid #d1d5db !important;
  background: #f8fafc !important;
  color: #64748b !important;
  text-decoration: none !important;
  cursor: not-allowed;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  touch-action: manipulation;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

body.compress-100kb-pro .c100kb-header-download span,
body.compress-100kb-pro .c100kb-header-download .c100kb-dl-text {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

body.compress-100kb-pro .c100kb-header-download svg,
body.compress-100kb-pro .c100kb-header-download i {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 auto !important;
}

body.compress-100kb-pro .c100kb-header-download.is-disabled {
  opacity: 1 !important;
  pointer-events: none;
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  color: #475569 !important;
}

body.compress-100kb-pro .c100kb-header-download.c100kb-download-ready,
body.compress-100kb-pro .c100kb-header-download:not(.is-disabled)[href],
body.flux-tool-body.compress-100kb-pro .c100kb-header-download.c100kb-download-ready,
body.flux-tool-body.compress-100kb-pro .c100kb-header-download:not(.is-disabled)[href] {
  border-color: #2563eb !important;
  background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
  color: #fff !important;
  -webkit-text-fill-color: #ffffff !important;
  cursor: pointer !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24) !important;
}

body.compress-100kb-pro .c100kb-header-download.c100kb-download-ready:hover,
body.compress-100kb-pro .c100kb-header-download:not(.is-disabled)[href]:hover,
body.flux-tool-body.compress-100kb-pro .c100kb-header-download.c100kb-download-ready:hover,
body.flux-tool-body.compress-100kb-pro .c100kb-header-download:not(.is-disabled)[href]:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32) !important;
}

body.compress-100kb-pro .c100kb-header-download.c100kb-download-ready:focus-visible,
body.compress-100kb-pro .c100kb-header-download:not(.is-disabled)[href]:focus-visible,
body.flux-tool-body.compress-100kb-pro .c100kb-header-download.c100kb-download-ready:focus-visible,
body.flux-tool-body.compress-100kb-pro .c100kb-header-download:not(.is-disabled)[href]:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 3px;
}

body.compress-100kb-pro .c100kb-header-download.c100kb-download-ready span,
body.compress-100kb-pro .c100kb-header-download.c100kb-download-ready svg,
body.compress-100kb-pro .c100kb-header-download.c100kb-download-ready i,
body.compress-100kb-pro .c100kb-header-download:not(.is-disabled)[href] span,
body.compress-100kb-pro .c100kb-header-download:not(.is-disabled)[href] svg,
body.compress-100kb-pro .c100kb-header-download:not(.is-disabled)[href] i {
  color: #fff !important;
  stroke: #fff !important;
}

body.compress-100kb-pro .c100kb-editor-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: 0;
  margin-left: auto;
  z-index: 4;
}

body.compress-100kb-pro .c100kb-download-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

body.compress-100kb-pro .c100kb-download-format-pick {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: #eef2f7;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

body.compress-100kb-pro .c100kb-download-format-pick button {
  min-width: 44px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

body.compress-100kb-pro .c100kb-download-format-pick button.is-active {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

body.compress-100kb-pro .c100kb-download-format-pick button:not(.is-active):hover {
  color: #0f172a;
}

body.compress-100kb-pro .c100kb-download-wrap--expanded .c100kb-download-format-pick,
body.compress-100kb-pro .c100kb-download-wrap--expanded .c100kb-download-format-menu {
  display: none !important;
}

body.compress-100kb-pro .c100kb-output-format-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}

body.compress-100kb-pro .c100kb-output-format-picker summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

body.compress-100kb-pro .c100kb-output-format-picker summary::-webkit-details-marker,
body.compress-100kb-pro .c100kb-output-format-picker summary::marker {
  display: none;
  content: "";
}

body.compress-100kb-pro .c100kb-output-format-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.compress-100kb-pro .c100kb-output-format-picker [data-c100kb-dl-format-label] {
  min-width: 34px;
  text-align: left;
  color: #1e293b;
  font-size: 13px;
  font-weight: 800;
}

body.compress-100kb-pro .c100kb-seo-kw {
  font-weight: 800;
  color: #1e40af;
}

body.compress-100kb-pro .c100kb-output-format-picker[open] summary {
  border-color: rgba(37, 99, 235, 0.35);
  background: #eff6ff;
  color: #1d4ed8;
}

body.compress-100kb-pro .c100kb-output-format-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  width: min(360px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
}

body.compress-100kb-pro .c100kb-output-format-title {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.compress-100kb-pro .c100kb-output-format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body.compress-100kb-pro .c100kb-output-format-grid button {
  display: grid;
  gap: 2px;
  align-content: start;
  min-height: 72px;
  padding: 8px 8px 10px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

body.compress-100kb-pro .c100kb-output-format-grid button strong {
  font-size: 13px;
  line-height: 1.1;
}

body.compress-100kb-pro .c100kb-output-format-grid button small {
  color: #64748b;
  font-size: 10px;
  line-height: 1.25;
}

body.compress-100kb-pro .c100kb-output-format-tag,
body.compress-100kb-pro .c100kb-format-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.compress-100kb-pro .c100kb-output-format-grid button.is-active,
body.compress-100kb-pro .c100kb-format-sheet button.active {
  border-color: #2563eb;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

body.compress-100kb-pro .c100kb-output-format-grid button.is-active .c100kb-output-format-tag,
body.compress-100kb-pro .c100kb-format-sheet button.active .c100kb-format-tag {
  background: #dbeafe;
  color: #1d4ed8;
}

body.compress-100kb-pro .c100kb-format-sheet--expanded {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.compress-100kb-pro .c100kb-format-sheet--expanded button {
  min-height: 78px;
  align-content: start;
}

body.compress-100kb-pro .c100kb-format-sheet--expanded .c100kb-format-tag {
  margin-bottom: 2px;
}

body.compress-100kb-pro .c100kb-download-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

body.compress-100kb-pro .c100kb-header-download .c100kb-download-icon,
body.compress-100kb-pro .c100kb-header-download svg {
  flex: 0 0 auto !important;
}

body.compress-100kb-pro .c100kb-editor-main {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.compress-100kb-pro .c100kb-editor-preview {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  background-color: #eceef2;
  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: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

body.compress-100kb-pro .c100kb-editor-preview img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
}

body.compress-100kb-pro .c100kb-editor-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

body.compress-100kb-pro .c100kb-editor-zoom button {
  min-width: 38px;
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

body.compress-100kb-pro .c100kb-editor-toolbar {
  display: flex;
  flex: 0 0 115px;
  gap: 0;
  overflow-x: auto;
  align-items: center;
  padding: 0 12px env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: 1px solid #e2e8f0;
  min-height: 115px;
  max-height: 115px;
}

body.compress-100kb-pro .c100kb-tool-btn {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 10px 4px 8px;
  border: 0;
  background: transparent;
  color: #334155;
  cursor: pointer;
}

body.compress-100kb-pro .c100kb-tool-btn.is-active {
  color: #2563eb;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.1), transparent);
  border-radius: 10px;
}

body.compress-100kb-pro .c100kb-tool-btn span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.compress-100kb-pro .c100kb-bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(115px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  flex-direction: column;
  max-height: min(52dvh, 460px);
  border-radius: 16px 16px 0 0;
  background: #fff;
  box-shadow: 0 -20px 48px rgba(15, 23, 42, 0.22);
  transform: translateY(calc(100% + 12px));
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.compress-100kb-pro .c100kb-bottom-sheet[aria-hidden="false"] {
  transform: translateY(0);
}

body.compress-100kb-pro .c100kb-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 48px;
  min-height: 48px;
  padding: 0 16px;
  background: #1976d2;
}

body.compress-100kb-pro .c100kb-sheet-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff !important;
  text-align: center;
}

body.compress-100kb-pro .c100kb-sheet-heading {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
}

body.compress-100kb-pro .c100kb-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px 16px 18px;
}

body.compress-100kb-pro .c100kb-sheet-panel {
  display: grid;
  gap: 14px;
}

body.compress-100kb-pro .c100kb-sheet-body label:not(.check-row) {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

body.compress-100kb-pro .c100kb-sheet-body input:not([type="checkbox"]),
body.compress-100kb-pro .c100kb-sheet-body select {
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
}

body.compress-100kb-pro .c100kb-chip-row,
body.compress-100kb-pro .c100kb-action-row,
body.compress-100kb-pro .c100kb-format-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.compress-100kb-pro .c100kb-chip,
body.compress-100kb-pro .c100kb-format-btn {
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

body.compress-100kb-pro .c100kb-format-btn.active,
body.compress-100kb-pro .c100kb-chip.is-active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1d4ed8;
}

body.compress-100kb-pro .c100kb-sheet-help {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

body.compress-100kb-pro .c100kb-crop-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
}

body.compress-100kb-pro .c100kb-crop-stage {
  position: absolute;
  inset: 0;
}

body.compress-100kb-pro .c100kb-crop-frame {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.45);
}

body.compress-100kb-pro .c100kb-crop-frame b {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #2563eb;
  border-radius: 999px;
  background: #fff;
}

body.compress-100kb-pro .c100kb-crop-frame b[data-c100kb-crop-handle="nw"] { top: -7px; left: -7px; }
body.compress-100kb-pro .c100kb-crop-frame b[data-c100kb-crop-handle="ne"] { top: -7px; right: -7px; }
body.compress-100kb-pro .c100kb-crop-frame b[data-c100kb-crop-handle="sw"] { bottom: -7px; left: -7px; }
body.compress-100kb-pro .c100kb-crop-frame b[data-c100kb-crop-handle="se"] { bottom: -7px; right: -7px; }
body.compress-100kb-pro .c100kb-crop-frame b[data-c100kb-crop-handle="n"] { top: -7px; left: calc(50% - 7px); }
body.compress-100kb-pro .c100kb-crop-frame b[data-c100kb-crop-handle="s"] { bottom: -7px; left: calc(50% - 7px); }
body.compress-100kb-pro .c100kb-crop-frame b[data-c100kb-crop-handle="e"] { top: calc(50% - 7px); right: -7px; }
body.compress-100kb-pro .c100kb-crop-frame b[data-c100kb-crop-handle="w"] { top: calc(50% - 7px); left: -7px; }

body.compress-100kb-pro .c100kb-editor-app.c100kb-tool-sheet-open .c100kb-editor-toolbar {
  display: none !important;
}

body.compress-100kb-pro .c100kb-editor-app.c100kb-tool-sheet-open .c100kb-bottom-sheet {
  bottom: 0;
  max-height: none;
  z-index: 50;
}

body.compress-100kb-pro .c100kb-editor-backdrop {
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  background: rgba(15, 23, 42, 0.38);
}

body.compress-100kb-pro .c100kb-processing {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
}

/* Desktop split — preview left, tools right (matches 20KB) */
@media (min-width: 901px) {
  body.compress-100kb-pro .c100kb-download-format-menu {
    display: none !important;
  }

  body.compress-100kb-pro .c100kb-download-wrap--expanded .c100kb-output-format-picker {
    display: inline-flex !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-output-format-picker summary {
    background: rgba(255, 255, 255, 0.16) !important;
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-output-format-picker [data-c100kb-dl-format-label] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-output-format-kicker {
    background: rgba(255, 255, 255, 0.24) !important;
    color: #ffffff !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-output-format-picker .c100kb-format-chevron {
    color: #ffffff !important;
    stroke: #ffffff !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-output-format-picker[open] summary {
    background: rgba(255, 255, 255, 0.24) !important;
    border-color: rgba(255, 255, 255, 0.42) !important;
  }

  body.compress-100kb-pro .c100kb-download-cluster {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-app[data-c100kb-portaled="true"] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 384px !important;
    grid-template-rows: 64px minmax(0, 1fr) !important;
    grid-template-areas: "header header" "preview settings" !important;
    gap: 0 !important;
    background: #f3f6fb !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header {
    grid-area: header !important;
    flex: 0 0 64px !important;
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 18px !important;
    background: #0f172a !important;
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.25) !important;
  }

  body.compress-100kb-pro .c100kb-editor-title {
    font-size: 16px !important;
    font-weight: 760 !important;
    color: #f8fafc !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-main {
    grid-area: preview !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding: 18px !important;
    overflow: hidden !important;
    background: #e8edf5 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-preview {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 1px solid rgba(148, 163, 184, 0.42) !important;
    border-radius: 14px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 18px 44px rgba(15, 23, 42, 0.1) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-preview img {
    max-width: calc(100% - 36px) !important;
    max-height: calc(100% - 36px) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-zoom {
    display: flex !important;
    right: 28px !important;
    bottom: 28px !important;
    gap: 8px !important;
    padding: 6px !important;
    border: 1px solid rgba(148, 163, 184, 0.36) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-toolbar {
    grid-area: settings !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: start !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 84px !important;
    gap: 12px !important;
    width: 100% !important;
    height: 405px !important;
    min-height: 405px !important;
    max-height: 405px !important;
    padding: 18px 18px 14px !important;
    margin: 0 !important;
    overflow: visible !important;
    background: #f8fbff !important;
    border: 0 !important;
    border-left: 1px solid rgba(15, 23, 42, 0.12) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: -12px 0 30px rgba(15, 23, 42, 0.04) !important;
    z-index: 3 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-tool-btn {
    flex: none !important;
    width: 100% !important;
    height: 84px !important;
    min-height: 84px !important;
    max-height: 84px !important;
    padding: 12px 10px !important;
    gap: 8px !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #53627a !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-tool-btn.is-active,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-tool-btn:hover {
    border-color: rgba(37, 99, 235, 0.28) !important;
    background: #eef5ff !important;
    color: #1e40af !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-tool-btn.is-active {
    border-color: #2563eb !important;
    background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14), 0 12px 24px rgba(37, 99, 235, 0.18) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-tool-btn.is-active span {
    color: #ffffff !important;
    font-weight: 850 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-tool-btn span {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    font-weight: 760 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-tool-btn svg,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-tool-btn i {
    width: 26px !important;
    height: 26px !important;
    stroke-width: 2.2 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-bottom-sheet {
    grid-area: settings !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: stretch !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 405px 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 0 !important;
    border-left: 1px solid rgba(15, 23, 42, 0.12) !important;
    background: #f8fbff !important;
    box-shadow: -12px 0 30px rgba(15, 23, 42, 0.04) !important;
    transform: none !important;
    overflow: hidden !important;
    z-index: 2 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-bottom-sheet[aria-hidden="true"] {
    visibility: visible !important;
    pointer-events: none !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-bottom-sheet[aria-hidden="true"] .c100kb-sheet-head,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-bottom-sheet[aria-hidden="true"] .c100kb-sheet-body {
    opacity: 0.42 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-sheet-head {
    flex: 0 0 54px !important;
    min-height: 54px !important;
    padding: 0 18px !important;
    background: #fff !important;
    color: #0f172a !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-sheet-title {
    text-align: left !important;
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 800 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-sheet-heading {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 2px !important;
    align-items: flex-start !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-sheet-head {
    justify-content: flex-start !important;
    gap: 10px !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-sheet-apply {
    margin-left: auto !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-sheet-close,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-sheet-apply {
    width: 34px !important;
    height: 34px !important;
    border: 1px solid #dbe3ef !important;
    background: #f8fafc !important;
    color: #0f172a !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-app.c100kb-tool-sheet-open .c100kb-editor-toolbar {
    display: grid !important;
    visibility: visible !important;
    pointer-events: auto !important;
    height: 405px !important;
    min-height: 405px !important;
    max-height: 405px !important;
    z-index: 3 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-app.c100kb-tool-sheet-open .c100kb-bottom-sheet {
    padding-top: 405px !important;
    margin-top: 0 !important;
    z-index: 2 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-sheet-body,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-app.c100kb-tool-sheet-open .c100kb-sheet-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: auto !important;
    padding: 16px 18px 22px !important;
    background: #fff !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-sheet-panel {
    display: grid !important;
    gap: 14px !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-backdrop {
    display: none !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header {
    position: relative !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-history-controls {
    left: calc(50% - 390px) !important;
    transform: translateY(-50%) !important;
    gap: 18px !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-history-btn {
    width: 46px !important;
    height: 40px !important;
    border: 1px solid #d5dce7 !important;
    border-radius: 12px !important;
    background: #f8fafc !important;
    color: #172033 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-history-btn svg,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-history-btn i {
    width: 24px !important;
    height: 24px !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-history-btn:not(:disabled):hover {
    background: #eef5ff !important;
    border-color: #b8cff7 !important;
    color: #0b66d8 !important;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.14) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-history-btn:disabled {
    background: #f3f5f8 !important;
    border-color: #e2e7ef !important;
    color: #aeb6c2 !important;
    opacity: 1 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-editor-zoom {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-width: 330px !important;
    height: 46px !important;
    padding: 0 12px !important;
    border: 1px solid #d8e0ec !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
    z-index: 2 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-editor-zoom button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 34px !important;
    min-width: 42px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: #eef2f7 !important;
    color: #172033 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-editor-zoom [data-c100kb-zoom="100"] {
    min-width: 112px !important;
    background: transparent !important;
    color: #0b66d8 !important;
    font-weight: 850 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-editor-zoom button:hover {
    background: #e2ebf8 !important;
    color: #0b66d8 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header-actions {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-download-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-download-format-pick button {
    min-height: 32px !important;
    font-size: 11px !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-header-download.download-button,
  body.flux-tool-body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .download-button.c100kb-header-download {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 180px !important;
    max-width: none !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 18px !important;
    gap: 10px !important;
    border-radius: 12px !important;
    border: 1px solid #d1d5db !important;
    background: #f8fafc !important;
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
    cursor: not-allowed !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-header-download span,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-header-download .c100kb-dl-text {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-header-download svg,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-header-download i {
    width: 20px !important;
    height: 20px !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-header-download:not(.is-disabled),
  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-header-download.c100kb-download-ready,
  body.flux-tool-body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .download-button.c100kb-header-download.c100kb-download-ready,
  body.flux-tool-body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .download-button.c100kb-header-download:not(.is-disabled)[href] {
    border-color: #2563eb !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
    color: #fff !important;
    -webkit-text-fill-color: #ffffff !important;
    cursor: pointer !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-header-download.is-disabled {
    opacity: 1 !important;
    background: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
    cursor: not-allowed !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-header-download.is-disabled span,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-header-download.is-disabled svg,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-header-download.is-disabled i {
    color: #475569 !important;
    stroke: #475569 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-header-download:not(.is-disabled) span,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-header-download:not(.is-disabled) svg,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-header-download:not(.is-disabled) i,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-header-download.c100kb-download-ready span,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-header-download.c100kb-download-ready svg,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header .c100kb-header-download.c100kb-download-ready i {
    color: #fff !important;
    stroke: #fff !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-preview {
    cursor: grab;
    user-select: none;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-preview.is-panning {
    cursor: grabbing;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-sheet-apply {
    border-color: #bbf7d0 !important;
    background: #ecfdf5 !important;
    color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-sheet-apply svg,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-sheet-apply i {
    color: #059669 !important;
    stroke: #059669 !important;
  }

  /* Light desktop editor skin — matches 20KB reference */
  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-app[data-c100kb-portaled="true"] {
    background: #eef3fb !important;
    color: #142033 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-header {
    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;
  }

  body.compress-100kb-pro.compress-100kb-ready .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-editor-title {
    color: #142033 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-main {
    background-color: #e7edf7 !important;
    background-image:
      linear-gradient(45deg, #d7dfec 25%, transparent 25%),
      linear-gradient(-45deg, #d7dfec 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, #d7dfec 75%),
      linear-gradient(-45deg, transparent 75%, #d7dfec 75%) !important;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-preview {
    background: rgba(255, 255, 255, 0.38) !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-preview img {
    border: 1px solid rgba(15, 23, 42, 0.14) !important;
    background: #fff !important;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.2) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-toolbar,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-app.c100kb-tool-sheet-open .c100kb-editor-toolbar {
    background: #f8fbff !important;
    border-left: 1px solid rgba(15, 23, 42, 0.12) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: -12px 0 30px rgba(15, 23, 42, 0.04) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-tool-btn {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #53627a !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-tool-btn:hover {
    background: #eef5ff !important;
    border-color: rgba(37, 99, 235, 0.28) !important;
    color: #1e40af !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-tool-btn.is-active {
    border-color: #2563eb !important;
    background: linear-gradient(135deg, #2563eb, #0ea5e9) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14), 0 12px 24px rgba(37, 99, 235, 0.18) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-tool-btn.is-active span {
    color: #ffffff !important;
    font-weight: 850 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-bottom-sheet,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-editor-app.c100kb-tool-sheet-open .c100kb-bottom-sheet {
    background: #f8fbff !important;
    border-left: 1px solid rgba(15, 23, 42, 0.12) !important;
    color: #142033 !important;
    box-shadow: -12px 0 30px rgba(15, 23, 42, 0.04) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-sheet-head {
    background: #ffffff !important;
    color: #142033 !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-sheet-title {
    color: #142033 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-sheet-close {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
    color: #475569 !important;
  }
}

/* Size target navigation (editor pages) */
body.compress-100kb-pro .c100kb-size-nav {
  margin: 1.25rem 0 0;
  padding: 0;
}

body.compress-100kb-pro .c100kb-size-nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

body.compress-100kb-pro .c100kb-size-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 52px;
  padding: 0.45rem 0.85rem;
  border: 2px solid #2563eb;
  border-radius: 12px;
  background: #fff;
  color: #0f3f79 !important;
  -webkit-text-fill-color: #0f3f79 !important;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body.compress-100kb-pro .c100kb-size-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.14);
}

body.compress-100kb-pro .c100kb-size-link.is-active {
  background: linear-gradient(135deg, #2563eb, #6366f1);
  border-color: #2563eb;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.compress-100kb-pro main.compress-target-editor-page .tool-page-hero {
  margin-bottom: 0.35rem;
  padding-bottom: 0.5rem;
}

@media (max-width: 760px) {
  body.compress-100kb-pro .c100kb-size-nav-grid {
    gap: 0.45rem;
  }
  body.compress-100kb-pro .c100kb-size-link {
    min-height: 36px;
    min-width: 48px;
    padding: 0.4rem 0.65rem;
    font-size: 0.84rem;
  }
}

/* Sheet panel controls — identical to Compress (20KB) editor panels */
body.compress-100kb-pro .c100kb-sheet-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.compress-100kb-pro .c100kb-sheet-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.compress-100kb-pro .c100kb-sheet-field span {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

body.compress-100kb-pro .c100kb-sheet-field input,
body.compress-100kb-pro .c100kb-sheet-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 15px;
}

body.compress-100kb-pro .docstream-target-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.compress-100kb-pro .docstream-target-field input {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
}

body.compress-100kb-pro .docstream-target-field span {
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

body.compress-100kb-pro .c100kb-size-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

body.compress-100kb-pro .c100kb-size-readout span {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

body.compress-100kb-pro .c100kb-size-readout strong {
  font-size: 15px;
  color: #0f172a;
}

body.compress-100kb-pro .c100kb-resize-helper {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
}

body.compress-100kb-pro .c100kb-resize-helper.is-hidden {
  display: none;
}

body.compress-100kb-pro .c100kb-dimension-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.compress-100kb-pro .c100kb-dimension-row label.is-disabled {
  opacity: 0.55;
}

body.compress-100kb-pro .c100kb-dimension-row label span,
body.compress-100kb-pro .c100kb-sheet-field span,
body.compress-100kb-pro .check-row span {
  color: #334155 !important;
  font-weight: 700;
}

body.compress-100kb-pro .c100kb-dimension-row label span {
  display: block;
  margin-bottom: 6px;
  text-align: center;
  font-size: 12px;
}

body.compress-100kb-pro .c100kb-dimension-row input {
  width: 100%;
  min-height: 44px;
  text-align: center;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
}

body.compress-100kb-pro .check-row,
body.compress-100kb-pro .c100kb-sheet-body label.check-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

body.compress-100kb-pro .check-row input[type="checkbox"],
body.compress-100kb-pro .c100kb-sheet-body .check-row input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  accent-color: #2563eb;
  flex: 0 0 auto;
}

body.compress-100kb-pro .c100kb-format-sheet {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
}

body.compress-100kb-pro .c100kb-editor-app.c100kb-tool-sheet-open .c100kb-sheet-panel[data-c100kb-tool-panel="effects"] {
  gap: 8px;
}

body.compress-100kb-pro .c100kb-effects-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 2px 2px 4px;
  margin: 0;
}

body.compress-100kb-pro .c100kb-effect-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: 74px;
  min-height: 86px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}

body.compress-100kb-pro .c100kb-effect-card.is-active {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

body.compress-100kb-pro .c100kb-effect-thumb {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  margin: 0;
  border-radius: 6px;
  object-fit: cover;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
  display: block;
}

body.compress-100kb-pro .c100kb-effect-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: inherit;
  max-width: 58px;
  word-break: break-word;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.compress-100kb-pro .c100kb-aspect-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding: 2px 2px 4px;
  margin: 0;
}

body.compress-100kb-pro .c100kb-aspect-btn {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 54px;
  min-height: 68px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}

body.compress-100kb-pro .c100kb-aspect-icon {
  display: block;
  width: 34px;
  height: 22px;
  max-height: 26px;
  border: 2px solid currentColor;
  border-radius: 2px;
  background: transparent;
}

body.compress-100kb-pro .c100kb-aspect-btn[data-c100kb-aspect="free"] .c100kb-aspect-icon {
  width: 30px;
  height: 22px;
  border-style: dashed;
}

body.compress-100kb-pro .c100kb-aspect-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

body.compress-100kb-pro .c100kb-aspect-btn.is-active {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

body.compress-100kb-pro .c100kb-format-sheet button {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  min-height: 68px !important;
  padding: 8px !important;
  border: 1px solid #c1c6d7;
  border-radius: 10px !important;
  background: #fff;
  cursor: pointer;
}

body.compress-100kb-pro .c100kb-format-sheet button strong {
  font-size: 14px;
  color: #0f172a;
}

body.compress-100kb-pro .c100kb-format-sheet button small {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

body.compress-100kb-pro .c100kb-format-sheet button.active {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  box-shadow: inset 0 0 0 1px #2563eb;
}

body.compress-100kb-pro .c100kb-format-hint {
  margin: 0;
  font-size: 13px;
  color: #475569;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

body.compress-100kb-pro .c100kb-sheet-help {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

body.compress-100kb-pro .docstream-control-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 18px !important;
}

body.compress-100kb-pro .docstream-control-row span {
  color: #151515 !important;
  font-family: "JetBrains Mono", ui-monospace, monospace !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

body.compress-100kb-pro .docstream-control-row strong,
body.compress-100kb-pro [data-c100kb-quality-label] {
  min-width: 72px !important;
  padding: 7px 12px !important;
  border-radius: 6px !important;
  background: #dce7f7 !important;
  color: #0058bc !important;
  text-align: center !important;
  font-family: "JetBrains Mono", ui-monospace, monospace !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

body.compress-100kb-pro .docstream-quality-field {
  position: relative !important;
  display: block !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: #c7ccd8 !important;
}

body.compress-100kb-pro .docstream-quality-field span {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: #0058bc !important;
  pointer-events: none !important;
  position: relative !important;
}

body.compress-100kb-pro .docstream-quality-field span::after {
  content: "" !important;
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 999px !important;
  background: #0058bc !important;
  box-shadow: 0 1px 3px rgba(0, 88, 188, 0.28) !important;
  transform: translate(50%, -50%) !important;
}

body.compress-100kb-pro .docstream-quality-field input {
  position: absolute !important;
  inset: -11px 0 !important;
  width: 100% !important;
  height: 28px !important;
  margin: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
}

body.compress-100kb-pro .docstream-scale-row {
  display: flex !important;
  justify-content: space-between !important;
  margin-top: 16px !important;
  color: #0f172a !important;
  font-family: "JetBrains Mono", ui-monospace, monospace !important;
  font-size: 13px !important;
}

body.compress-100kb-pro .c100kb-sheet-apply.is-dirty {
  border-color: #86efac !important;
  background: #dcfce7 !important;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.14) !important;
}

body.compress-100kb-pro .c100kb-icon-btn svg,
body.compress-100kb-pro .c100kb-icon-btn i {
  width: 18px !important;
  height: 18px !important;
}

body.compress-100kb-pro .c100kb-sheet-status {
  min-height: 14px;
  color: #16a34a !important;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.compress-100kb-pro .c100kb-sheet-status:empty {
  display: none;
}

body.compress-100kb-pro .c100kb-sheet-status.is-warning {
  color: #c2410c !important;
}

body.compress-100kb-pro .c100kb-background-note {
  border: 1px solid #fed7aa !important;
  color: #9a3412 !important;
  background: #fff7ed !important;
  border-radius: 10px;
  padding: 10px 12px !important;
  margin: 0 0 12px !important;
  font-weight: 700;
}

body.compress-100kb-pro .c100kb-sheet-panel--background-disabled input,
body.compress-100kb-pro .c100kb-sheet-panel--background-disabled select,
body.compress-100kb-pro .c100kb-sheet-panel--background-disabled textarea {
  cursor: not-allowed !important;
}

/* Desktop panel controls — light skin parity with 20KB */
@media (min-width: 901px) {
  body.compress-100kb-pro.compress-100kb-ready .docstream-label,
  body.compress-100kb-pro.compress-100kb-ready .docstream-control-row span,
  body.compress-100kb-pro.compress-100kb-ready .docstream-scale-row,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-sheet-help,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-resize-helper,
  body.compress-100kb-pro.compress-100kb-ready label,
  body.compress-100kb-pro.compress-100kb-ready small {
    color: #53627a !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .docstream-control-row strong {
    color: #142033 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready input,
  body.compress-100kb-pro.compress-100kb-ready select {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.16) !important;
    color: #142033 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready input:disabled {
    background: #f1f5f9 !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    opacity: 1 !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-dimension-row input:disabled {
    border-color: #dbe3ef !important;
    background: #f8fafc !important;
    color: #64748b !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .docstream-format-grid button,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-format-sheet button,
  body.compress-100kb-pro.compress-100kb-ready [data-c100kb-aspect],
  body.compress-100kb-pro.compress-100kb-ready .c100kb-effect-card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
    color: #53627a !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .docstream-format-grid button.active,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-format-sheet button.active,
  body.compress-100kb-pro.compress-100kb-ready [data-c100kb-aspect].is-active,
  body.compress-100kb-pro.compress-100kb-ready .c100kb-effect-card.is-active {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    color: #1d4ed8 !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-effect-thumb {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-sheet-apply {
    background: #ecfdf5 !important;
    border-color: rgba(5, 150, 105, 0.35) !important;
    color: #047857 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.08) !important;
  }

  body.compress-100kb-pro.compress-100kb-ready .c100kb-sheet-close {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
    color: #475569 !important;
  }
}
