.pdfs { display: grid; gap: 24px; }
.res:not([hidden]) { display: grid; gap: 14px; }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 260px; padding: 24px; border: 1.5px dashed var(--ink); border-radius: 24px;
  background: var(--mist); cursor: pointer; transition: background .15s;
}
.drop:hover, .drop.over { background: var(--mint); }
.drop strong { font: 700 clamp(32px, 5vw, 48px)/.95 var(--display); text-transform: uppercase; letter-spacing: -0.03em; }
.drop .link { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.drop small { font: 400 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: -0.03em; color: var(--smoke); }
.drop-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--ink); color: var(--paper); margin-bottom: 8px; }
.pdfs.has .drop { min-height: 120px; }
.pdfs.has .drop-ico { display: none; }
.pdfs.has .drop strong { font-size: 28px; }
.help { margin: 0; color: var(--slate); }
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.pg { position: relative; border: 0; padding: 8px; border-radius: 16px; background: var(--mist); cursor: pointer; display: grid; gap: 6px; justify-items: center; }
.pg canvas { width: 100%; height: auto; border-radius: 6px; background: var(--paper); box-shadow: 0 0 0 1px var(--ash); }
.pg span { font: 400 12px var(--mono); color: var(--slate); }
.pg[aria-pressed="true"] { background: var(--mint); }
.pg[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 600 14px var(--sans); }
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.bar .mono { color: var(--slate); }
.range { display: flex; gap: 8px; align-items: center; }
.range input { width: 160px; min-height: 44px; padding: 0 12px; font: 450 15px var(--sans); background: var(--mist); border: 1.5px solid transparent; border-radius: 8px; }
.range input:focus { outline: none; border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; }
