.ms-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
/* Never shown at the same time as .ms-select-bar -- exactly one action row
   at a time instead of both stacking (see enterSelect/exitSelect in my-shots.js). */
.ms-toolbar.hide { display: none; }

.ms-toolbar-msg {
  display: flex; align-items: center; gap: 8px; color: #ffb4a0; font-size: 13.5px; font-weight: 500;
  background: rgba(26,21,18,0.6); padding: 8px 14px; border-radius: 12px; margin: -4px 0 14px;
}

.ms-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px;
  -webkit-user-select: none; user-select: none;
}
@media (min-width: 640px) { .ms-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
/* Loading/empty/error states replace the grid's contents with a single
   .state-block -- without this it lands in the first ~110px grid column
   instead of spanning (and centering within) the full grid width. */
.ms-grid > .state-block { grid-column: 1 / -1; }

.photo-cell {
  position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 1;
  background: var(--surface); cursor: pointer; border: 0; padding: 0; display: block; width: 100%;
}
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-cell .sel-check {
  position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6); background: rgba(0,0,0,0.25); display: none;
  align-items: center; justify-content: center; color: #fff;
}
.ms-grid.selecting .sel-check { display: flex; }
.photo-cell.sel .sel-check { background: var(--accent); border-color: var(--accent); color: #2a1810; }
.photo-cell.sel { outline: 3px solid var(--accent); outline-offset: -3px; }
.photo-cell .cell-label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 8px 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0));
  color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px;
}
.cell-label .ico { width: 14px; height: 14px; }

.ms-select-bar { display: none; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ms-select-bar.show { display: flex; }
