
body { min-height: 100vh; display: block; }

.skip-link:focus { position: fixed; top: 0; left: 0; z-index: 2000; background: var(--bs-primary); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 .375rem 0; text-decoration: none; }

.pdftool-shell { margin: 0 auto; padding: 3rem 1.25rem 4rem; }

.pdftool-back-link { font-size: .8rem; text-decoration: none; }

.pdftool-brand { font-size: 1.6rem; font-weight: 800; color: var(--bs-body-color); text-decoration: none; display: inline-flex; align-items: flex-end; line-height: 1; gap: .5rem; }
.pdftool-brand:hover { color: var(--bs-body-color); }
.pdftool-brand .bi { color: var(--bs-primary); font-size: 1.35rem; line-height: 1; width: 1em; height: 1em; display: inline-flex; align-items: center; justify-content: center; }
.pdftool-brand span { color: var(--bs-primary); }

.pdftool-privacy-note { font-size: .8rem; }

.pdftool-dropzone { border: 2px dashed var(--bs-border-color); border-radius: .5rem; padding: 3rem 1rem; text-align: center; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.pdftool-dropzone:hover, .pdftool-dropzone.pdftool-dragover { border-color: var(--bs-primary); background-color: rgba(67, 94, 190, .04); }
.pdftool-dropzone .bi { font-size: 2rem; color: var(--bs-primary); }

.pdftool-file-badge { font-family: monospace; font-size: .85rem; }

.pdftool-progress-wrap { margin-top: 1rem; }
.pdftool-progress-info { display: flex; justify-content: space-between; font-size: .75rem; color: var(--bs-secondary-color); margin-top: .35rem; }

.pdftool-pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; max-width: 150px; }

.pdftool-field-group { margin-bottom: 1rem; }

.pdftool-range-label { display: flex; justify-content: space-between; font-size: .8rem; margin-bottom: .15rem; }

.pdftool-settings-actions { margin-top: 1.25rem; }

.pdftool-preview-wrap { display: flex; align-items: center; justify-content: center; background: var(--bs-tertiary-bg, #f5f5f5); border-radius: .5rem; padding: 1rem; min-height: 320px; }
.pdftool-preview-canvas { max-width: 100%; max-height: 60vh; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.pdftool-page-nav { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .5rem; }

.pdflic-shell { max-width: 1200px; }
.pdflic-shell .pdflic-engine { max-width: 700px; }
.pdflic-engine { border-left: 3px solid var(--bs-primary); padding-left: 1rem; margin-bottom: 1.75rem; }
.pdflic-engine h2 { font-size: 1.05rem; margin-bottom: .35rem; }
.pdflic-tools { font-size: .82rem; }
