.tool-tabs{display:flex;gap:6px;margin:0 0 20px;padding:4px;background:#eef0f6;border:1px solid var(--line);border-radius:11px;width:fit-content}
.tool-tabs button{background:transparent;color:#687389;padding:10px 18px;border-radius:8px;font-size:14px;font-weight:600}
.tool-tabs button.active{background:#fff;color:var(--accent);box-shadow:0 2px 5px #26304b0a}
.tool-tabs button span{font-size:10px;background:#e3e0ff;color:#635bc4;padding:2px 5px;border-radius:4px;margin-left:5px}
.tool-tabs button:disabled{opacity:.6}
.pdf-grid{max-height:640px;overflow:auto;scrollbar-width:thin}
.image-preview{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr)}
.image-preview img{width:100%;height:100%;object-fit:contain}
#pdf-add{white-space:nowrap;flex-shrink:0}
.pdf-page-label{display:flex;gap:7px;align-items:center;font-size:13px;color:#4f5970;font-weight:600;margin-bottom:6px;cursor:pointer}
.pdf-page-label input{accent-color:var(--accent);width:16px;height:16px;margin:0;flex-shrink:0}
.pdf-card.unselected .image-preview{opacity:.45}.pdf-card.unselected{border-style:dashed}
.pdf-thumb[data-rotation="90"]{transform:rotate(90deg);max-width:128px;max-height:128px}
.pdf-thumb[data-rotation="180"]{transform:rotate(180deg)}
.pdf-thumb[data-rotation="270"]{transform:rotate(270deg);max-width:128px;max-height:128px}
.range-row{display:flex;gap:8px}.range-row input{min-width:0;width:100%;background:#fff;border:1px solid #dce1ec;border-radius:8px;padding:10px;color:#4d5870;font-size:14px}.range-row .choose-button{padding:9px 13px}
.selection-actions{display:flex;gap:14px;margin-top:5px}
#pdf-workbench .field-note{line-height:1.6}#pdf-workbench .settings select{width:100%}
@media(max-width:700px){.tool-tabs{width:100%}.tool-tabs button{flex:1;padding:10px 8px}.pdf-thumb[data-rotation="90"],.pdf-thumb[data-rotation="270"]{max-width:90px;max-height:90px}.pdf-grid{max-height:510px}#pdf-workbench .canvas-bottom{align-items:flex-start}}
