/* ---------- 도구 화면 ---------- */
.tool { display: grid; gap: 14px; }
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius-l); background: var(--surface);
  padding: 40px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone.over, .dropzone:hover { border-color: var(--blue); background: var(--blue-soft); }
.dropzone.compact { padding: 18px; }
.dropzone.compact .dz-icon, .dropzone.compact .dz-sub { display: none; }
.dropzone.compact .dz-title { margin: 0 0 10px; font-size: 15px; }
.dz-icon { font-size: 44px; line-height: 1; margin-bottom: 12px; }
.dz-title { font-size: 18px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.02em; }
.dz-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.dz-btn { min-width: 160px; }
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { filter: brightness(1.05); }
.btn.full { width: 100%; }
.btn.small { height: 36px; font-size: 14px; padding: 0 14px; }
.btn.busy { opacity: .8; cursor: progress; }
.btn:disabled { opacity: .5; cursor: default; }

.panel { background: var(--surface); border-radius: var(--radius-l); padding: 20px; }
@media (min-width: 560px) { .panel { padding: 24px 28px; } }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 8px; }
.panel-head strong { font-size: 17px; }

.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--fill); min-width: 0; }
.file-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: var(--surface); }
.file-ico { display: grid; place-items: center; font-size: 22px; }
.file-meta { display: grid; min-width: 0; flex: 1; }
.file-meta b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta small { font-size: 12.5px; color: var(--muted); }
.file-actions { display: flex; gap: 4px; flex: none; }
.icon-btn { width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--surface); color: var(--sub); cursor: pointer; font-size: 13px; }
.icon-btn:hover:not(:disabled) { color: var(--blue); }
.icon-btn:disabled { opacity: .35; cursor: default; }

.options { display: grid; gap: 18px; margin-top: 18px; }
.status { padding: 12px 14px; border-radius: var(--radius-s); background: var(--blue-soft); color: var(--blue); font-weight: 600; font-size: 14.5px; }
.status.error { background: var(--red-soft); color: var(--red); }
.result-panel { border: 2px solid var(--blue); }
.done-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.done-head b { display: block; font-size: 17px; }
.done-head small { color: var(--muted); }
.done-check { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: var(--on-blue); display: grid; place-items: center; font-weight: 900; flex: none; }
.result-panel .btn.full { margin-bottom: 12px; }
.compare { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 14.5px; color: var(--sub); }
.compare b { color: var(--blue); font-size: 22px; }
input[type="range"] { width: 100%; accent-color: var(--blue); }

/* 페이지 썸네일 격자 (PDF 페이지 편집) */
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.page-card { background: var(--fill); border-radius: var(--radius-s); padding: 8px; display: grid; gap: 6px; position: relative; }
.page-card.removed { opacity: .35; }
.page-card .pv { aspect-ratio: 3 / 4; display: grid; place-items: center; background: var(--surface); border-radius: 6px; overflow: hidden; }
.page-card img { max-width: 100%; max-height: 100%; transition: transform .2s; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.page-card .no { font-size: 12.5px; font-weight: 700; color: var(--sub); text-align: center; }
.page-card .acts { display: flex; justify-content: center; gap: 4px; }
.page-card .acts .icon-btn { width: 30px; height: 30px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #191f28; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14.5px; z-index: 50; max-width: calc(100% - 32px); }
