/* pdf-booklet */
.tool-wrapper[data-tool="pdf-booklet"] { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.bkl-app { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.bkl-app > * { width: 100%; max-width: 960px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.bkl-app .action-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 auto; justify-content: center; }
.bkl-app .file-box, .bkl-app .tool-settings { display: block; margin: 0 auto; }
.bkl-app .file-row { display: flex; align-items: center; gap: 12px; }
.bkl-app .file-name { font-weight: 600; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.bkl-app .file-size { color: #64748b; white-space: nowrap; }
.bkl-app .remove-file { background: none; border: 0; color: #dc2626; cursor: pointer; font-size: 1rem; padding: 4px; }
.bkl-app select, .bkl-app input[type="text"], .bkl-app input[type="number"], .bkl-app textarea { padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; background: #fff; color: inherit; box-sizing: border-box; max-width: 100%; }
.bkl-busy { text-align: center; color: #475569; font-weight: 500; }
.bkl-result { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 14px 16px; }
.bkl-result p { margin: 0 0 8px; }
.bkl-done { font-weight: 600; color: #067647; }
.tool-wrapper[data-tool="pdf-booklet"] .info-note { margin-top: 18px; }
html[data-theme="dark"] .bkl-app select, html[data-theme="dark"] .bkl-app input[type="text"], html[data-theme="dark"] .bkl-app input[type="number"], html[data-theme="dark"] .bkl-app textarea,
html[data-theme="dark-contrast"] .bkl-app select, html[data-theme="dark-contrast"] .bkl-app input[type="text"], html[data-theme="dark-contrast"] .bkl-app input[type="number"], html[data-theme="dark-contrast"] .bkl-app textarea { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .bkl-busy, html[data-theme="dark-contrast"] .bkl-busy, html[data-theme="dark"] .bkl-app .file-size, html[data-theme="dark-contrast"] .bkl-app .file-size { color: #cbd5e1; }
html[data-theme="dark"] .bkl-result, html[data-theme="dark-contrast"] .bkl-result { background: #052e16; border-color: #166534; color: #dcfce7; }
html[data-theme="dark"] .bkl-done, html[data-theme="dark-contrast"] .bkl-done { color: #86efac; }
html[data-theme="dark"] .bkl-result a, html[data-theme="dark-contrast"] .bkl-result a { color: #93c5fd; }
.bkl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 20px; }
.bkl-grid label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.bkl-grid select { font-weight: 400; width: 100%; }
.bkl-bind { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 14px; }
.bkl-bind > span { font-weight: 600; }
.bkl-bind label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.bkl-plan { text-align: center; }
.bkl-plan p { margin: 0 0 4px; font-weight: 600; }
.bkl-plan .bkl-order { font-weight: 400; color: #475569; font-size: .92rem; }
html[data-theme="dark"] .bkl-plan .bkl-order, html[data-theme="dark-contrast"] .bkl-plan .bkl-order { color: #cbd5e1; }
