/* Compress PDF. Only theme variables from style.css are used here. */
.cz-file { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.cz-thumb { flex: none; width: 64px; cursor: default; }
.cz-thumb canvas { width: 100% !important; height: auto; }
.cz-file-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cz-file-txt .fname { margin-top: 0; font-size: 15px; }
.cz-file-txt .fmeta { font-size: 13px; }

.cz-options { margin-top: 18px; display: grid; gap: 12px; }
.cz-levels { border: 0; margin: 0; padding: 0; min-width: 0; }
.cz-levels legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.cz-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cz-opt, .cz-keep { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.cz-opt:hover, .cz-keep:hover { background: var(--soft); }
.cz-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.cz-keep:has(input:checked) { border-color: var(--accent); }
.cz-opt input, .cz-keep input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.cz-opt-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cz-opt-txt span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.cz-levels.off .cz-opt { opacity: .5; cursor: not-allowed; }
.cz-levels.off .cz-opt:has(input:checked) { border-color: var(--line); background: var(--card); }
.cz-warn { padding: 10px 14px; border-radius: 12px; background: var(--soft); border-left: 3px solid var(--accent); font-size: 14px; }
.cz-note { margin: 0; }

.cz-status { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 200px; }
.cz-progress { height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.cz-fill { height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .2s; }
.go-row .btns { display: flex; gap: 8px; flex-wrap: wrap; }

.cz-result { margin-top: 14px; }
.cz-result-txt { display: flex; flex-direction: column; gap: 4px; }
.cz-result.cz-nogain { background: var(--soft); border-color: var(--line); }
.cz-result.cz-nogain p { color: var(--ink); font-weight: 400; }

@media (max-width: 720px) {
  .cz-opts { grid-template-columns: 1fr; }
  .cz-file { flex-wrap: wrap; }
  .cz-file .btn { width: 100%; }
  .go-row .btns { width: 100%; }
  .go-row .btns .btn { flex: 1; }
  .cz-result .btns { width: 100%; }
  .cz-result .btns .btn { flex: 1; }
}
