/* Scoped design-library UI. Fonts load on demand through design-library.js. */
.thb-design-library{color:#10233f;min-width:0}
.thb-library-controls{display:grid;gap:8px}
.thb-library-controls input,.thb-library-controls select{margin:0;min-height:44px;width:100%;font:14px system-ui,sans-serif;background:#fff;border:1px solid #cbd8e9;border-radius:8px;color:#10233f}
.thb-library-color{display:flex;align-items:center;justify-content:space-between;gap:12px;font:600 12px system-ui,sans-serif;margin:0}
.thb-library-color input[type=color]{width:64px;min-height:36px;padding:3px}
.thb-library-count{font:12px/1.5 system-ui,sans-serif;color:#536780;margin:12px 0}
.thb-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:420px;overflow:auto;padding:3px 4px 5px 3px;overscroll-behavior:contain}
.thb-library-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:108px;padding:10px 6px;margin:0;background:#fff;color:#10233f;border:1px solid #d3dfed;border-radius:10px;font:600 11px/1.35 system-ui,sans-serif;cursor:pointer}
.thb-library-card img{display:block;object-fit:contain;width:56px;height:56px;flex:none}
.thb-library-card span{overflow-wrap:anywhere}
.thb-library-card:hover{background:#eff6ff;border-color:#1768dc;transform:none}
.thb-library-card:focus-visible,.thb-library-controls input:focus-visible,.thb-library-controls select:focus-visible{outline:3px solid #1768dc;outline-offset:2px}
.thb-font-picker-note{font:12px/1.5 system-ui,sans-serif;color:#536780;margin:6px 0 12px}
@media(min-width:650px){.thb-design-library.thb-library-wide .thb-library-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.thb-library-card{transition:none}}
