.profile-picture{position:relative;overflow:hidden;flex-shrink:0}
.profile-picture img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.profile-picture [hidden]{display:none!important}
.profile-summary>.profile-picture{display:grid;place-items:center;width:96px;height:108px;margin-bottom:20px}
.profile-picture-editor{padding-bottom:24px;margin-bottom:6px;border-bottom:1px solid var(--line)}
.profile-picture-editor h3{font-size:20px;margin-bottom:18px}
.profile-picture-choice{display:flex;align-items:flex-start;gap:24px}
.profile-picture-editor .profile-picture{display:grid;place-items:center;width:104px;height:116px;font-size:32px}
.profile-picture-controls{min-width:0;flex:1;display:grid;gap:16px}
.profile-picture-controls input[type=file]{width:100%;max-width:100%;padding:8px;font-size:14px}
.profile-picture-controls [role=status]:empty{display:none}
@media(max-width:520px){.profile-picture-choice{flex-direction:column;gap:18px}.profile-picture-controls{width:100%}}

.compact-object-grid>.compact-profile>.compact-profile-name{display:flex;align-items:center;gap:6px;max-width:100%;white-space:normal}
.compact-profile-name .profile-picture{display:grid;place-items:center;width:30px;height:34px;font-size:14px}
.compact-profile-name>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.profile-picture-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.profile-picture-actions [hidden]{display:none!important}
.image-thumbnail{position:relative;display:grid;place-items:center;width:100%;height:100%;min-height:80px;overflow:hidden;border:1px solid var(--line);background:var(--paper2);color:var(--muted);font-size:13px;text-align:center}
.image-thumbnail>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.image-thumbnail [hidden]{display:none!important}
.image-thumbnail>[data-picture-fallback]{padding:12px}
.image-picker{max-width:960px}
.image-picker-tools{padding:18px 26px;display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:18px;flex-shrink:0;border-bottom:1px solid var(--line)}
.image-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:16px}
.image-choice{position:relative;min-width:0;padding:6px;background:var(--paper);color:var(--ink);border:2px solid transparent;border-radius:6px;display:flex;flex-direction:column;gap:7px;text-align:left}
.image-choice:hover{border-color:var(--line)}
.image-choice[aria-pressed=true]{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}
.image-choice .image-thumbnail{height:138px;flex-shrink:0}
.image-choice-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:14px;font-weight:650;line-height:1.4}
.image-selected-label{display:none;position:absolute;top:12px;right:12px;padding:3px 8px;background:var(--blue);color:var(--accent-on);font-size:12px;border-radius:3px}
.image-choice[aria-pressed=true] .image-selected-label{display:block}
.image-picker-pages{display:flex;gap:20px;justify-content:space-between;align-items:center;margin-top:22px;font-size:14px}
.image-picker .document-footer{display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding:16px 26px;border-top:1px solid var(--line);flex-shrink:0}
.image-picker [data-image-selected]{margin-right:auto;flex:1 1 180px;overflow-wrap:anywhere}
.image-picker-empty{padding:24px 0}
body .file-image-open{display:block;flex:0 0 88px;width:88px;height:88px;padding:0;border:0;background:none;box-shadow:none}
/* Image previews need a real thumbnail column, rather than a small file icon. */
body .collection-records>.collection-row:has(>.file-image-open){grid-template-columns:88px minmax(0,1fr) auto}
@media(max-width:1000px){body .collection-records>.collection-row:has(>.file-image-open){grid-template-columns:88px minmax(0,1fr)}}
@media(max-width:359px){body .collection-records>.collection-row:has(>.file-image-open){grid-template-columns:minmax(0,1fr)}}
.file-image-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:18px 0}
body .file-image-grid .collection-row{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:16px;border:1px solid var(--line);min-width:0}
body .file-image-grid .file-image-open{width:100%;height:180px;flex:0 0 180px}
body .file-image-grid .row-content{min-width:0;width:100%}
body .file-image-grid .row-actions{width:100%;justify-content:flex-start;flex-wrap:wrap;gap:12px;margin-top:auto}
.file-image-preview{height:clamp(200px,48dvh,520px);margin-bottom:20px}
@media(max-width:700px){.image-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.file-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.image-picker-tools{padding:16px;grid-template-columns:minmax(0,1fr) 108px;gap:12px}.image-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.image-choice .image-thumbnail{height:120px}.image-picker .document-footer{padding:14px 16px}.image-picker [data-image-selected]{flex-basis:100%}.file-image-grid{grid-template-columns:1fr}}

.file-image-open .image-thumbnail>[data-picture-fallback]{padding:4px;font-size:12px;font-weight:400;text-decoration:none}

.image-picker-upload{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px}
.image-picker-upload .field-help{margin:0;flex:1 1 220px}
.image-picker-upload input[hidden]{display:none!important}
