/* merge-odd-even-pages */
.tool-wrapper[data-tool="merge-odd-even-pages"] { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.moe-app { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.moe-app > * { width: 100%; max-width: 960px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.moe-app .action-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 auto; justify-content: center; }
.moe-app .file-box, .moe-app .tool-settings { display: block; margin: 0 auto; }
.moe-app .file-row { display: flex; align-items: center; gap: 12px; }
.moe-app .file-name { font-weight: 600; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.moe-app .file-size { color: #64748b; white-space: nowrap; }
.moe-app .remove-file { background: none; border: 0; color: #dc2626; cursor: pointer; font-size: 1rem; padding: 4px; }
.moe-app select, .moe-app input[type="text"], .moe-app input[type="number"], .moe-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%; }
.moe-busy { text-align: center; color: #475569; font-weight: 500; }
.moe-result { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 14px 16px; }
.moe-result p { margin: 0 0 8px; }
.moe-done { font-weight: 600; color: #067647; }
.tool-wrapper[data-tool="merge-odd-even-pages"] .info-note { margin-top: 18px; }
html[data-theme="dark"] .moe-app select, html[data-theme="dark"] .moe-app input[type="text"], html[data-theme="dark"] .moe-app input[type="number"], html[data-theme="dark"] .moe-app textarea,
html[data-theme="dark-contrast"] .moe-app select, html[data-theme="dark-contrast"] .moe-app input[type="text"], html[data-theme="dark-contrast"] .moe-app input[type="number"], html[data-theme="dark-contrast"] .moe-app textarea { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .moe-busy, html[data-theme="dark-contrast"] .moe-busy, html[data-theme="dark"] .moe-app .file-size, html[data-theme="dark-contrast"] .moe-app .file-size { color: #cbd5e1; }
html[data-theme="dark"] .moe-result, html[data-theme="dark-contrast"] .moe-result { background: #052e16; border-color: #166534; color: #dcfce7; }
html[data-theme="dark"] .moe-done, html[data-theme="dark-contrast"] .moe-done { color: #86efac; }
html[data-theme="dark"] .moe-result a, html[data-theme="dark-contrast"] .moe-result a { color: #93c5fd; }
.moe-files { display: flex; flex-direction: column; gap: 8px; }
.moe-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }
.moe-tag { font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #e0e7ff; color: #3730a3; }
.moe-name { font-weight: 600; flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.moe-pages { color: #64748b; }
.moe-file-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.moe-check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; line-height: 1.4; }
.moe-check input { margin-top: 3px; width: 17px; height: 17px; flex: 0 0 auto; }
.moe-check small { display: block; color: #64748b; }
.moe-plan { margin: 0; text-align: center; font-weight: 600; }
html[data-theme="dark"] .moe-file, html[data-theme="dark-contrast"] .moe-file { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .moe-tag, html[data-theme="dark-contrast"] .moe-tag { background: #312e81; color: #e0e7ff; }
html[data-theme="dark"] .moe-check small, html[data-theme="dark-contrast"] .moe-check small, html[data-theme="dark"] .moe-pages, html[data-theme="dark-contrast"] .moe-pages { color: #94a3b8; }
