.content-images-toolbar {
  display:flex;
  align-items:center;
  margin-bottom:12px;
}
.content-images-toolbar .material-view-switch button,
.image-board-controls .material-view-switch button {
  min-height:30px;
  padding:5px 13px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  font:inherit;
  font-size:13px;
  white-space:nowrap;
}
.content-images-toolbar .material-view-switch button[aria-pressed="true"],
.image-board-controls .material-view-switch button[aria-pressed="true"] {
  background:var(--card1);
  color:var(--blue);
  box-shadow:0 1px 4px rgba(20,45,86,.14);
  font-weight:650;
}
.content-images-note { margin:7px 0 0; color:var(--muted); font-size:12px; }
.content-images-results { scroll-margin-top:64px; }
.image-board-card {
  position:relative;
  min-width:0;
  display:flex;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--card1);
  box-shadow:0 5px 16px rgba(20,45,86,.06);
}
.image-board-card:hover,
.image-board-card.is-selected { border-color:color-mix(in srgb,var(--blue) 55%,var(--line)); }
.image-board-open {
  display:flex;
  flex:1;
  flex-direction:column;
  min-width:0;
  border:0;
  padding:0;
  background:transparent;
  color:var(--text);
  cursor:pointer;
  font:inherit;
  text-align:start;
}
.image-board-open:focus-visible { outline:2px solid var(--blue); outline-offset:-3px; }
.image-board-cover {
  display:grid;
  place-items:center;
  width:100%;
  aspect-ratio:4 / 5;
  overflow:hidden;
  background:var(--input);
}
.image-board-cover img { width:100%; height:100%; min-height:0; object-fit:contain; }
.image-board-copy {
  display:flex;
  flex:1;
  align-self:stretch;
  flex-direction:column;
  gap:6px;
  min-width:0;
  padding:11px 12px;
}
.image-board-copy > strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:15px; }
.image-board-copy .material-card-meta { margin-top:auto; padding-top:7px; flex-wrap:wrap; gap:3px 6px; }
.image-card-actions { top:8px; right:8px; bottom:auto; }
.image-board-card:is(:hover,:focus-within) .image-card-actions,
.image-collection-card:is(:hover,:focus-within) .image-card-actions { opacity:1; pointer-events:auto; transform:none; }
.image-card-actions .material-card-action { min-width:33px; min-height:33px; }
.image-collection-card .material-collection-covers img:first-child { object-fit:contain; }
.picture-detail-layout { padding:0; }
.picture-detail-stage {
  display:grid;
  place-items:center;
  min-width:0;
  min-height:370px;
  overflow:hidden;
  background:var(--input);
}
.picture-detail-enlarge {
  display:grid;
  width:100%;
  height:clamp(360px,60vh,640px);
  place-items:center;
  border:0;
  padding:15px;
  background:transparent;
  cursor:zoom-in;
}
.picture-detail-enlarge img { display:block; width:100%; height:100%; min-height:0; object-fit:contain; }
.picture-detail-layout .material-info-panel { min-width:0; }
.picture-detail-layout .material-detail-heading h2 { overflow-wrap:anywhere; }
.picture-detail-layout .material-detail-actions a svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; }
.picture-collection-list { margin-top:18px; }
.picture-collection-list h2 { margin:0 0 12px; font-size:17px; }
.picture-upload-layout { grid-template-columns:minmax(0,1.38fr) minmax(0,1fr); }
.picture-upload-layout .material-upload-panel { display:flex; flex-direction:column; gap:10px; min-width:0; }
.picture-upload-layout .material-upload-preview { flex:none; min-height:260px; width:100%; }
.picture-upload-layout .material-upload-preview:not(.is-dragging) { cursor:pointer; }
.picture-upload-layout .material-upload-preview.has-file { min-height:160px; }
.picture-upload-layout .material-upload-preview.is-dragging { border-color:var(--blue); }
.picture-upload-layout .material-reference-row select,
.picture-upload-layout .material-reference-row input:not([type="radio"]) {
  width:100%;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--text);
  background:var(--input);
  font:inherit;
}
.picture-upload-layout [hidden] { display:none !important; }
.picture-upload-layout .material-reference-row input[type="datetime-local"] { width:min(100%,245px); }
.picture-append-name { align-self:center; overflow-wrap:anywhere; }
.picture-upload-preview-list { width:100%; display:grid; overflow:auto; max-height:370px; }
.picture-upload-file { display:grid; grid-template-columns:58px minmax(0,1fr) auto; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--line); }
.picture-upload-file > img { width:58px; height:52px; object-fit:contain; background:var(--input); border-radius:5px; }
.picture-upload-file b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.picture-upload-file small,.image-upload-feedback { color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.image-upload-feedback { width:100%; margin:0; }
.image-upload-feedback:empty { display:none; }
@media(hover:none) {
  .image-card-actions { opacity:1; pointer-events:auto; transform:none; }
}
@media(max-width:1150px) {
  .picture-upload-layout { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:650px) {
  .content-images-toolbar { margin-bottom:8px; }
  .image-board-copy { padding:8px; }
  .image-board-copy .material-card-meta { font-size:11px; }
  .image-board-controls { gap:6px; }
  .image-board-controls .material-view-switch button { padding:5px 8px; }
  .picture-detail-stage { min-height:0; }
  .picture-detail-enlarge { height:min(56vh,480px); padding:9px; }
  .picture-upload-layout .material-upload-preview { min-height:180px; }
  .picture-upload-layout .material-upload-preview.has-file { min-height:145px; }
  .picture-upload-layout .picture-upload-actions { margin:20px 0 0; }
}
