.board-library-overlay{position:fixed;inset:0;z-index:4000;background:#000a;display:grid;place-items:center;padding:16px;color:#edf0f5;font:14px/1.4 system-ui,sans-serif}
.board-library-dialog{width:min(1100px,100%);max-height:94dvh;display:flex;flex-direction:column;background:#10151c;border:1px solid #ffffff20;border-radius:14px;box-shadow:0 18px 80px #0009;overflow:hidden}
.board-library-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #ffffff14}.board-library-close{width:32px;height:32px;border:0;border-radius:8px;background:#ffffff0c;color:inherit;font-size:24px;cursor:pointer}
.board-library-dialog .board-library-close{padding:0;display:grid;place-items:center;line-height:1;flex:0 0 32px;min-width:32px;min-height:32px}
.board-library-body{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:240px;overflow:auto}.board-library-sidebar{padding:12px;border-right:1px solid #ffffff14;overflow:auto;max-height:60dvh}.board-library-sidebar small{display:block;color:#a6b0bf;margin:6px 0}
.board-library-rooms,.board-library-pages{display:grid;gap:5px;margin:8px 0 16px}.board-library-room,.board-library-page{border:1px solid #ffffff14;border-radius:6px;background:#ffffff08;color:inherit;text-align:left;padding:8px;cursor:pointer;overflow-wrap:anywhere}.board-library-room:hover,.board-library-page:hover{background:#ffffff16}
.board-library-preview{padding:16px;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;overflow:auto}.board-library-sheet{position:relative;width:100%;max-height:56dvh;aspect-ratio:16/9;background:#090c11}.board-library-sheet canvas{display:block;width:100%;height:100%}.board-library-sheet .board-library-selection{position:absolute;inset:0;touch-action:none;cursor:crosshair}.board-library-count{color:#a6b0bf;min-height:20px}
.board-library-status{padding:8px 16px;color:#bac4d1;min-height:34px}.board-library-footer{display:flex;gap:8px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid #ffffff14}.board-library-footer button,.board-library-sidebar>button{border:1px solid #ffffff22;border-radius:7px;background:#ffffff0c;color:inherit;padding:8px 12px;cursor:pointer}.board-library-footer .primary{background:#e6b956;color:#17130a;border-color:transparent}.board-library-overlay button:disabled{opacity:.4;cursor:default}
@media(max-width:640px){.board-library-overlay{padding:6px}.board-library-dialog{max-height:98dvh}.board-library-body{grid-template-columns:130px minmax(0,1fr)}.board-library-sidebar{padding:8px}.board-library-preview{padding:8px}.board-library-footer{gap:6px;padding:8px}.board-library-footer button{flex:1;padding:8px;font-size:12px}.board-library-sheet{max-height:none}}
