.kdb-catalog-head{gap:8px}
.kdb-catalog-head>span{margin-left:auto}
.kdb-bulk-toggle{flex:none;min-height:30px;padding:5px 8px;border:1px solid #bfd5cd;border-radius:6px;background:#fff;color:#245c51;font-size:10px;font-weight:700}
.kdb-bulk-toggle[aria-pressed="true"]{background:#e6f4ee;border-color:#8fc6b4}
.kdb-bulk-bar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:8px 10px;border-bottom:1px solid #dce6e1;background:#eef5f1;font-size:11px}
.kdb-bulk-bar label{display:flex;align-items:center;gap:5px;margin:0;color:#214840;font-weight:700;cursor:pointer;white-space:nowrap}
.kdb-bulk-bar input{width:17px;height:17px;margin:0;accent-color:#185c50}
.kdb-bulk-bar span{color:#59736c;white-space:nowrap}
.kdb-bulk-bar button{min-height:32px;margin-left:auto;padding:5px 9px;border:1px solid #ad4f40;border-radius:6px;background:#fff;color:#a44031;font-size:10px;font-weight:700;white-space:nowrap}
.kdb-bulk-bar button:disabled{opacity:.45;cursor:not-allowed}
.kdb-bulk-item{display:flex;align-items:stretch;gap:2px;margin:3px 0;border:1px solid transparent;border-radius:8px}
.kdb-bulk-item.is-checked{border-color:#8fc6b4;background:#eff8f3}
.kdb-bulk-item .kdb-library-row{flex:1;min-width:0}
.kdb-bulk-check{display:flex;align-items:center;justify-content:center;flex:none;width:44px;margin:0;cursor:pointer}
.kdb-bulk-check input{width:18px;height:18px;margin:0;accent-color:#185c50;cursor:pointer}
.kdb-bulk-check input:disabled{cursor:not-allowed;opacity:.45}
.kdb-library-shell.is-bulk-mode .kdb-reading{display:none}
.kdb-library-shell.is-bulk-mode{display:block;min-height:0}
.kdb-library-shell.is-bulk-mode .kdb-catalog{border-right:0}
.kdb-library-shell.is-bulk-mode .kdb-document-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:5px;max-height:720px;padding:8px}
.kdb-bulk-dialog{width:min(520px,calc(100vw - 28px));max-height:min(78vh,680px);padding:24px;border:1px solid #d5dfda;border-radius:14px;background:#fff;color:#183c39;box-shadow:0 24px 70px #08292155}
.kdb-bulk-dialog::backdrop{background:#06272288}
.kdb-bulk-dialog h2{margin:7px 0 9px;font-size:20px;line-height:1.3}
.kdb-bulk-dialog p{margin:0;color:#526b65;font-size:13px;line-height:1.6}
.kdb-bulk-dialog ul{max-height:220px;overflow:auto;margin:18px 0;padding:0;list-style:none;border:1px solid #e0e8e4;border-radius:8px}
.kdb-bulk-dialog li{display:grid;gap:3px;padding:9px 12px;border-bottom:1px solid #e8eeeb;font-size:12px;overflow-wrap:anywhere}
.kdb-bulk-dialog li:last-child{border-bottom:0}
.kdb-bulk-dialog li strong{font-family:ui-monospace,Consolas,monospace;color:#416e63;font-size:10px}
.kdb-bulk-dialog .kdb-bulk-error{margin:10px 0;color:#a44031;font-weight:700}
.kdb-bulk-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.kdb-bulk-dialog-actions button{min-height:42px;padding:9px 14px;border-radius:7px}
.kdb-bulk-dialog-actions .kdb-bulk-confirm{border-color:#a44031;background:#a44031;color:#fff}
@media(max-width:720px){.kdb-library-shell.is-bulk-mode .kdb-catalog{display:block}.kdb-library-shell.is-bulk-mode .kdb-document-list{grid-template-columns:1fr;max-height:none}.kdb-bulk-item .kdb-library-row{min-height:72px}}
@media(max-width:380px){.kdb-catalog-head{height:auto;min-height:43px;flex-wrap:wrap;padding:6px 10px}.kdb-catalog-head>span{display:none}.kdb-bulk-dialog-actions{display:grid;grid-template-columns:1fr 1fr}}
