/* Stock sidebar: bounded cards prevent intrinsic image widths expanding the grid. */
body.simple-ui #library{min-width:0;overflow-x:hidden;scrollbar-gutter:stable}
#library .stock-library{width:100%;min-width:0;padding-bottom:22px;margin-bottom:22px}
#library .stock-library h2{font-size:19px;margin-bottom:6px;letter-spacing:-.4px}
#library .stock-library>p.muted{font-size:12px;line-height:1.5;margin-bottom:16px}
#library #stockSearch{height:40px;border-radius:9px;background:#f7f8fa;padding:10px 12px;font-size:13px}
#library .stock-tags{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 16px}
#library .stock-tags button{font-size:11px;font-weight:500;padding:6px 9px;border-radius:16px;line-height:1.3;background:#f5f6f8;border:1px solid transparent}
#library .stock-tags button[aria-pressed=true]{background:#fff0ea;color:#a43d29;border-color:#f8c5b8}
#library #stockCount{font-size:11px;color:#7a8491;margin:0 0 10px}
#library #stockResults{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;min-width:0;margin-bottom:18px}
#library .stock-photo{display:block;width:100%;min-width:0;max-width:100%;padding:0;border:1px solid #e4e7ed;border-radius:9px;overflow:hidden;background:#fff;text-align:left}
#library .stock-photo:hover{border-color:#fa694b;box-shadow:0 2px 8px #23334412}
#library .stock-photo img{display:block;width:100%;max-width:100%;height:108px;object-fit:cover;margin:0;border-radius:0}
#library .stock-photo span{display:block;padding:8px;font-size:11px;line-height:1.4;font-weight:500;white-space:normal;overflow-wrap:anywhere}
#library #stockOnline{display:block;font-size:12px;text-decoration:none;padding:10px 12px;background:#f5f6f8;border-radius:8px;text-align:center;color:#424b5a}
#library #stockOnline:hover{background:#eceff3}
#library .stock-library .fine{font-size:11px;line-height:1.5;margin:9px 0 0}
