.library { min-height:0; }
.folder-heading { align-items:center; margin-bottom:8px; }
#folder-list { overflow-y:auto; min-height:0; padding-bottom:16px; }
.folder-row { display:flex; align-items:center; min-width:0; border-radius:4px; }
.folder-row.active { background:#35383d; }
.folder-row > .folder-link { display:flex; gap:8px; align-items:center; flex:1; min-width:0; text-align:left; padding:10px 8px; font-size:11px; }
.folder-link span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; }
.folder-link small { color:#92979e; }
.folder-row .icon-button { width:25px; height:32px; }
.folder-row .icon-button svg { width:13px; }
.library-controls { display:flex; flex-shrink:0; gap:6px; height:42px; padding:0 16px; }
.library-controls label { display:flex; align-items:center; gap:5px; min-width:0; }
.library-controls label > svg { width:14px; height:14px; color:#a9b9c3; }
.library-controls select { color:#d5d9df; background:#24262a; border:1px solid #41454b; border-radius:4px; height:29px; min-width:0; max-width:100%; font-size:11px; padding:0 5px; }
.folder-picker { flex:1; max-width:190px; }
.folder-picker select { width:100%; }
.rating-picker { margin-left:auto; }
.rating-picker > svg { color:#d3b77b!important; }
.library-controls > small { color:#9b9fa6; white-space:nowrap; font-size:10px; }
.library-controls #selection-label { display:none; }
.filmstrip { overscroll-behavior-x:contain; }
.thumb-rating { position:absolute; bottom:5px; right:5px; padding:1px 3px; background:#151719cc; color:#efce87; font-size:9px; border-radius:2px; line-height:1.3; pointer-events:none; }
#library-location { max-width:160px; overflow:hidden; text-overflow:ellipsis; }
#folder-dialog { width:420px; max-height:calc(100dvh - 32px); overflow-y:auto; }
#folder-error { color:#f1aaaa; font-size:12px; min-height:16px; }
.folder-dialog-actions { display:flex; justify-content:flex-end; gap:10px; }
.folder-dialog-note { color:#b0b6bf; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.folder-photo-list { max-height:210px; overflow:auto; border-top:1px solid #454a52; border-bottom:1px solid #454a52; margin:12px 0; }
#folder-form .folder-photo-choice { display:flex; align-items:center; gap:10px; margin:0; padding:8px 0; min-width:0; }
#folder-form input[type=checkbox] { width:17px; height:17px; margin:0; flex-shrink:0; accent-color:#b4d3e8; }
.folder-photo-choice img { width:44px; height:32px; border-radius:2px; }
.folder-photo-choice span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#clear-library-filters { margin:4px auto; }
@media(max-width:600px) {
  .library-controls { display:flex; height:38px; padding:0 10px; gap:4px; }
  .library-controls .icon-button { width:28px; height:32px; }
  .library-controls select { font-size:11px; height:30px; }
  .library-controls label > svg { display:none; }
  .folder-picker { max-width:none; }
  .rating-picker { width:102px; flex-shrink:0; }
  .rating-picker select { width:100%; }
  .library-controls > small { display:none; }
  .thumb-rating { font-size:7px; bottom:3px; right:3px; }
  #folder-dialog { padding:18px; }
}
