/* v149 — Worship-focused Song Management: search, favorites, schedule context, and a compact editor. */
#view-albums .song-library-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  padding:10px;
  background:#fff;
  border-bottom:1px solid #edf1f4;
}
#view-albums .song-library-search{
  min-width:0;
  height:38px;
  display:grid;
  grid-template-columns:18px minmax(0,1fr) auto;
  gap:7px;
  align-items:center;
  padding:0 10px;
  border:1px solid #dbe3ea;
  border-radius:11px;
  background:#f8fafb;
  color:#6f8092;
}
#view-albums .song-library-search:focus-within{
  border-color:#d2b14b;
  background:#fff;
  box-shadow:0 0 0 3px rgba(210,177,75,.13);
}
#view-albums .song-library-search svg{
  width:16px;
  height:16px;
}
#view-albums .song-library-search input{
  width:100%;
  min-width:0;
  height:36px;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:#163150;
  font-size:11px;
  font-weight:700;
}
#view-albums .song-library-search input::placeholder{color:#8a98a8;}
#view-albums .song-library-result-count{
  min-width:20px;
  color:#77879a;
  font-size:9px;
  font-weight:900;
  text-align:right;
}
#view-albums .song-library-filter{
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0 11px;
  border:1px solid #dbe3ea;
  border-radius:11px;
  background:#fff;
  color:#163150;
  font-size:9px;
  font-weight:950;
  letter-spacing:.035em;
  white-space:nowrap;
}
#view-albums .song-library-filter svg{
  width:15px;
  height:15px;
  fill:none;
}
#view-albums .song-library-filter.on{
  border-color:#dfc568;
  background:#fff7d9;
  color:#76570e;
}
#view-albums .song-library-meta{
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:7px 10px;
  border-bottom:1px solid #edf1f4;
  background:#fbfcfd;
}
#view-albums .song-library-meta-copy{
  min-width:0;
  color:#728295;
  font-size:9px;
  line-height:1.3;
}
#view-albums .song-library-meta-copy b{
  display:block;
  color:#163150;
  font-size:10px;
  font-weight:950;
}
#view-albums .song-library-add-trigger{
  min-height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0 10px;
  border:1px solid #dfc568;
  border-radius:9px;
  background:#fff4c9;
  color:#163150;
  font-size:9px;
  font-weight:950;
  letter-spacing:.035em;
  white-space:nowrap;
}
#view-albums .song-library-add-trigger[hidden]{display:none !important;}
#view-albums .song-library-add-trigger span{
  font-size:15px;
  line-height:1;
}
#view-albums .song-library-editor.resource-notes-editor{
  margin:0 !important;
  padding:10px !important;
  border:0 !important;
  border-bottom:1px solid #edf1f4 !important;
  border-radius:0 !important;
  background:#fffdf7 !important;
  box-shadow:none !important;
}
#view-albums .song-library-editor-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:9px;
}
#view-albums .song-library-editor-head b{
  display:block;
  color:#163150;
  font-size:11px;
  line-height:1.2;
  font-weight:950;
}
#view-albums .song-library-editor-head small{
  display:block;
  margin-top:2px;
  color:#7c8798;
  font-size:8.5px;
  line-height:1.25;
}
#view-albums .song-library-close{
  width:28px;
  height:28px;
  flex:0 0 28px;
  display:grid;
  place-items:center;
  border:1px solid #dbe3ea;
  border-radius:9px;
  background:#fff;
  color:#5f7288;
  font-size:16px;
}
#view-albums .song-library-editor .resource-notes-grid{
  display:grid !important;
  grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) 92px !important;
  gap:8px !important;
}
#view-albums .song-library-field{
  min-width:0;
}
#view-albums .song-library-field label{
  display:block;
  margin:0 0 4px 2px;
  color:#64768b;
  font-size:7.5px;
  line-height:1;
  font-weight:950;
  letter-spacing:.065em;
  text-transform:uppercase;
}
#view-albums .song-library-editor .resource-notes-grid input{
  height:38px !important;
  padding:0 10px !important;
  border-radius:10px !important;
  font-size:11px !important;
}
#view-albums .song-library-editor .resource-notes-actions{
  margin-top:9px !important;
}
#view-albums .song-library-editor .resource-notes-btn{
  height:32px !important;
  padding:0 12px !important;
  border-radius:9px !important;
  font-size:9px !important;
}
#view-albums .song-library-list.resource-library-list.resource-library-list-slim{
  max-height:360px !important;
  overflow:auto !important;
  -webkit-overflow-scrolling:touch;
}
#view-albums .song-library-list .resource-note-row{
  min-height:58px !important;
  display:grid !important;
  grid-template-columns:30px minmax(0,1fr) auto auto !important;
  gap:8px !important;
  align-items:center !important;
  padding:8px 10px !important;
}
#view-albums .song-library-list .resource-note-row.song-library-hidden{
  display:none !important;
}
#view-albums .song-library-favorite{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #dfe6ec;
  border-radius:10px;
  background:#f8fafb;
  color:#93a0af;
}
#view-albums .song-library-favorite svg{
  width:15px;
  height:15px;
  fill:none;
}
#view-albums .song-library-favorite.on{
  border-color:#e1c667;
  background:#fff7d9;
  color:#b38700;
}
#view-albums .song-library-favorite.on svg{fill:#f6c945;}
#view-albums .song-library-list .resource-note-copy b{
  font-size:11px !important;
  line-height:1.2 !important;
}
#view-albums .song-library-list .resource-note-copy small{
  margin-top:3px !important;
  font-size:8.5px !important;
  line-height:1.25 !important;
}
#view-albums .song-library-context{
  min-width:78px;
  max-width:104px;
  text-align:right;
}
#view-albums .song-library-key{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:22px;
  padding:0 6px;
  border:1px solid #dfc568;
  border-radius:8px;
  background:#fff7d9;
  color:#163150;
  font-size:8.5px;
  font-weight:950;
}
#view-albums .song-library-use{
  display:block;
  margin-top:3px;
  color:#718397;
  font-size:7.5px;
  line-height:1.2;
  white-space:nowrap;
}
#view-albums .song-library-use.upcoming{
  color:#2c6b4f;
  font-weight:900;
}
#view-albums .song-library-list .resource-note-actions{gap:5px !important;}
#view-albums .song-library-list .resource-note-action{
  width:29px !important;
  height:29px !important;
  border-radius:9px !important;
}
#view-albums .song-library-list .resource-note-action svg{
  width:14px !important;
  height:14px !important;
}
#view-albums .song-library-no-results{
  display:none;
  padding:22px 14px;
  text-align:center;
  color:#77879a;
  font-size:10px;
  line-height:1.4;
}
#view-albums .song-library-no-results.show{display:block;}

[data-theme="dark"] #view-albums .song-library-toolbar,
[data-theme="dark"] #view-albums .song-library-meta,
[data-theme="dark"] #view-albums .song-library-list .resource-note-row{
  background:#102f50 !important;
  border-color:#315777 !important;
}
[data-theme="dark"] #view-albums .song-library-search,
[data-theme="dark"] #view-albums .song-library-filter,
[data-theme="dark"] #view-albums .song-library-add-trigger,
[data-theme="dark"] #view-albums .song-library-favorite,
[data-theme="dark"] #view-albums .song-library-editor.resource-notes-editor{
  background:#0d2744 !important;
  border-color:#315777 !important;
}
[data-theme="dark"] #view-albums .song-library-search input,
[data-theme="dark"] #view-albums .song-library-meta-copy b,
[data-theme="dark"] #view-albums .song-library-editor-head b,
[data-theme="dark"] #view-albums .song-library-list .resource-note-copy b{
  color:#eef6fd !important;
}

@media (max-width:430px){
  #view-albums .song-library-toolbar{
    grid-template-columns:minmax(0,1fr) 38px;
  }
  #view-albums .song-library-filter{
    width:38px;
    padding:0;
  }
  #view-albums .song-library-filter span{display:none;}
  #view-albums .song-library-editor .resource-notes-grid{
    grid-template-columns:minmax(0,1fr) 82px !important;
  }
  #view-albums .song-library-editor .resource-song-title-field{
    grid-column:1 / -1;
  }
  #view-albums .song-library-list .resource-note-row{
    grid-template-columns:28px minmax(0,1fr) auto !important;
    grid-template-areas:
      "favorite copy actions"
      "favorite context actions" !important;
    gap:3px 7px !important;
    padding:8px !important;
  }
  #view-albums .song-library-favorite{grid-area:favorite;width:28px;height:28px;}
  #view-albums .song-library-list .resource-note-copy{grid-area:copy;}
  #view-albums .song-library-context{
    grid-area:context;
    max-width:none;
    display:flex;
    align-items:center;
    gap:6px;
    text-align:left;
  }
  #view-albums .song-library-use{display:inline;margin:0;}
  #view-albums .song-library-list .resource-note-actions{grid-area:actions;}
}
