.attendee-photos.attendee-photo-upload { --photos-frame-border: var(--photos-border); max-width: none; }
.attendee-photo-upload-content { width: 100%; max-width: 56rem; margin-inline: auto; }
.attendee-photo-upload-composer { display: flex; flex-direction: column; min-height: 100dvh; background: var(--photos-surface); }
.attendee-photo-upload-header { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: .75rem; padding: max(.75rem, env(safe-area-inset-top, 0px)) 1rem .75rem; border-bottom: 1px solid var(--photos-frame-border); background: var(--photos-surface); }
.attendee-photo-upload-review, .attendee-photo-upload-result { display: flex; flex: 1; flex-direction: column; }
.attendee-photo-upload-review > .attendee-photo-upload-panel, .attendee-photo-upload-result > .attendee-photo-upload-panel { flex: 1; }
.attendee-photo-upload-header > a { width: 44px; height: 44px; flex-shrink: 0; box-shadow: none; }
.attendee-photo-upload-heading { flex: 1; min-width: 0; }
.attendee-photo-upload-heading h1 { font-size: 1rem; font-weight: 600; line-height: 1.5; }
.attendee-photo-upload-album-cover { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; overflow: hidden; border-radius: .5rem; background: var(--photos-tint); color: var(--event-app-primary, #1c64f2); }
.attendee-photo-upload-album-cover img { width: 100%; height: 100%; object-fit: cover; }
.attendee-photo-upload-album-name { font-size: .8125rem; line-height: 1.5; color: var(--photos-muted); }
.attendee-photo-upload-panel { display: flex; flex-direction: column; gap: 1rem; padding: 1rem; }
.attendee-photo-upload .attendee-photo-upload-panel h2 { font-size: 1rem; font-weight: 600; }
.attendee-photo-upload h2[tabindex="-1"]:focus { outline: none; }
.attendee-photo-upload-section-heading { display: flex; align-items: center; gap: .75rem; }
.attendee-photo-upload-mark { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: .625rem; background: var(--photos-tint); color: var(--event-app-primary, #1c64f2); }
.attendee-photo-upload-help { font-size: .75rem; line-height: 1.65; color: var(--photos-muted); }
.attendee-photo-upload-guidance { max-width: none; padding: 1rem; border-radius: .75rem; background: var(--photos-soft); color: var(--photos-text); font-size: .875rem; line-height: 1.65; }
.attendee-photo-upload-guidance > * + * { margin-top: .75rem; }
.attendee-photo-upload-guidance img { max-width: 100%; height: auto; border-radius: .5rem; }
.attendee-photo-upload-agreement { display: flex; align-items: flex-start; gap: .625rem; min-height: 44px; padding-block: .625rem; font-size: .875rem; line-height: 1.5; cursor: pointer; }
.attendee-photo-upload-agreement input { width: 18px; height: 18px; flex-shrink: 0; margin-top: .125rem; border-color: var(--photos-border); border-radius: .25rem; }
.attendee-photo-upload-buttons { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: .625rem; }
.attendee-photo-upload .attendee-photos-button, .attendee-photo-upload .attendee-photos-primary { border-radius: .75rem; padding-inline: 1rem; }
.attendee-photo-upload .attendee-photos-button { border-color: var(--photos-frame-border); }
.attendee-photo-upload .attendee-photos-primary { box-shadow: 0 1px 2px rgb(15 23 42 / 8%); }
.attendee-photo-upload-picker { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: .875rem; padding: 2.5rem 1.25rem; text-align: center; }
.attendee-photo-upload-picker-icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: .25rem; border-radius: 1.25rem; background: var(--photos-tint); color: var(--event-app-primary, #1c64f2); }
.attendee-photo-upload .attendee-photo-upload-picker h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.attendee-photo-upload-source-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: .625rem; margin-top: .5rem; }
.attendee-photo-upload-text-button { display: inline-flex; align-items: center; justify-content: center; gap: .375rem; min-height: 44px; padding: .5rem; border: 0; border-radius: .625rem; background: transparent; color: var(--photos-text); font-size: .8125rem; font-weight: 600; line-height: 1.4; }
.attendee-photo-upload-review-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem .75rem; }
.attendee-photo-upload-review-heading .attendee-photo-upload-text-button { background: var(--photos-tint); padding-inline: .75rem; }
.attendee-photo-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 1rem .75rem; }
.attendee-photo-upload-photo { min-width: 0; }
.attendee-photo-upload-preview { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--photos-frame-border); border-radius: .75rem; background: var(--photos-soft); }
.attendee-photo-upload-preview-button { display: grid; place-items: center; width: 100%; height: 100%; min-height: 44px; padding: 0; border: 0; background: transparent; }
.attendee-photo-upload-preview-button:focus-visible { outline-offset: -3px; }
.attendee-photo-upload-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.attendee-photo-upload-placeholder { color: var(--photos-muted); }
.attendee-photo-upload-preview:has(img:not([hidden])) .attendee-photo-upload-placeholder { visibility: hidden; }
.attendee-photo-upload-remove { position: absolute; top: .375rem; right: .375rem; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(15 23 42 / 8%); border-radius: 50%; background: rgb(255 255 255 / 95%); color: #374151; box-shadow: 0 1px 4px rgb(15 23 42 / 12%); }
.attendee-photo-upload-remove:focus-visible { outline-offset: -4px; }
.attendee-photo-upload-photo-body { display: flex; flex-direction: column; gap: .5rem; padding-top: .25rem; }
.attendee-photo-upload-caption-button { display: flex; align-items: center; gap: .375rem; width: 100%; min-height: 44px; padding: .375rem .25rem; border: 0; border-radius: .375rem; background: transparent; color: var(--photos-muted); font-size: .8125rem; line-height: 1.5; text-align: start; }
.attendee-photo-upload-caption-button svg { flex-shrink: 0; }
.attendee-photo-upload-caption-button span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.attendee-photo-upload-caption-button[data-filled="true"] { color: var(--photos-text); }
.attendee-photo-upload-filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; font-weight: 500; line-height: 1.5; }
.attendee-photo-upload-caption > span { display: block; margin-bottom: .375rem; font-size: .8125rem; font-weight: 500; }
.attendee-photo-upload-caption textarea { display: block; width: 100%; min-height: 64px; max-height: 12rem; resize: vertical; padding: .625rem .75rem; border: 1px solid transparent; border-radius: .625rem; background: var(--photos-soft); color: var(--photos-text); line-height: 1.5; }
.attendee-photo-upload-caption textarea::placeholder { color: var(--photos-muted); opacity: 1; }
.attendee-photo-upload-caption textarea:focus { border-color: var(--event-app-primary, #1c64f2); box-shadow: none; }
.attendee-photo-upload-status { display: flex; align-items: center; gap: .375rem; font-size: .75rem; line-height: 1.5; color: var(--photos-muted); }
.attendee-photo-upload-status::before { content: ""; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.attendee-photo-upload-photo[data-state="uploaded"] .attendee-photo-upload-status { color: var(--photos-text); }
.attendee-photo-upload-photo:is([data-state="failed"], [data-state="check"], [data-state="unavailable"]) .attendee-photo-upload-status { font-weight: 600; color: var(--photos-text); }
.attendee-photo-upload-photo:is([data-state="failed"], [data-state="check"], [data-state="unavailable"]) [data-role="message"] { padding: .625rem; border-radius: .5rem; background: var(--photos-soft); }
.attendee-photo-upload-photo progress { width: 100%; height: 4px; border: 0; border-radius: 999px; overflow: hidden; accent-color: var(--event-app-primary, #1c64f2); background: var(--photos-soft); }
.attendee-photo-upload-photo progress::-webkit-progress-bar { background: var(--photos-soft); }
.attendee-photo-upload-photo progress::-webkit-progress-value { background: var(--event-app-primary, #1c64f2); }
.attendee-photo-upload-photo progress::-moz-progress-bar { background: var(--event-app-primary, #1c64f2); }
.attendee-photo-upload-row-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.attendee-photo-upload-row-actions:not(:has(button:not([hidden]))) { display: none; }
.attendee-photo-upload-sharing { color: var(--photos-muted); font-size: .8125rem; }
.attendee-photo-upload-sharing summary { display: flex; align-items: center; gap: .5rem; min-height: 44px; width: fit-content; max-width: 100%; cursor: pointer; list-style: none; }
.attendee-photo-upload-sharing summary::-webkit-details-marker { display: none; }
.attendee-photo-upload-sharing summary > svg { flex-shrink: 0; }
.attendee-photo-upload-sharing[open] .attendee-photo-upload-chevron { transform: rotate(180deg); }
.attendee-photo-upload-sharing .attendee-photo-upload-guidance { max-height: min(25dvh, 12rem); overflow-y: auto; overscroll-behavior: contain; }
.attendee-photo-upload-settings { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1rem; border-radius: .75rem; background: var(--photos-soft); }
.attendee-photo-upload-settings h3 { font-size: .875rem; font-weight: 600; }
.attendee-photo-upload-footer { position: sticky; bottom: 0; z-index: 20; display: flex; flex-direction: column; gap: .5rem; padding: .75rem 1rem max(.75rem, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--photos-frame-border); background: var(--photos-surface); box-shadow: 0 -4px 12px rgb(15 23 42 / 4%); }
.attendee-photo-upload-footer .attendee-photo-upload-buttons { width: 100%; }
.attendee-photo-upload-footer .attendee-photos-primary { flex: 1; }
.attendee-photo-upload-result .attendee-photo-upload-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.attendee-photo-upload-result .attendee-photos-primary { grid-column: 1 / -1; }
.attendee-photo-upload-summary { min-width: 0; }
.attendee-photo-upload-summary:not(:has(> :not([hidden]))) { display: none; }
.attendee-photo-upload-summary > [role="status"] { font-size: .8125rem; font-weight: 600; }
.attendee-photo-upload-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem .75rem; margin: 0; padding: 0; list-style: none; }
.attendee-photo-upload-result-photo { min-width: 0; }
.attendee-photo-upload-result-preview { position: relative; display: grid; place-items: center; aspect-ratio: 1; margin-bottom: .5rem; overflow: hidden; border: 1px solid var(--photos-frame-border); border-radius: .5rem; background: var(--photos-soft); }
.attendee-photo-upload-result-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--photos-soft); }
.attendee-photo-upload-result-photo .attendee-photo-upload-filename { font-size: .75rem; font-weight: 400; }
.attendee-photo-upload-result-status { font-size: .6875rem; line-height: 1.5; color: var(--photos-muted); }
.attendee-photo-upload-result-photo[data-state="unavailable"] { grid-column: 1 / -1; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: .75rem; }
.attendee-photo-upload-result-photo[data-state="unavailable"] .attendee-photo-upload-result-preview { grid-row: span 3; margin: 0; }
.attendee-photo-upload-result-photo[data-state="unavailable"] .attendee-photo-upload-result-status { font-weight: 600; }
.attendee-photo-upload-result[data-outcome="complete"] .attendee-photo-upload-mark { background: #ecfdf5; color: #047857; }
.attendee-photo-upload-result:not([data-outcome="complete"]) .attendee-photo-upload-complete-icon,
.attendee-photo-upload-result[data-outcome="complete"] .attendee-photo-upload-result-icon { display: none; }
.attendee-photo-upload-editor { width: min(44rem, calc(100% - 1rem)); max-height: calc(100dvh - 1rem); margin: auto; padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--photos-frame-border); border-radius: 1rem; background: var(--photos-surface); color: var(--photos-text); box-shadow: 0 24px 64px rgb(0 0 0 / 25%); }
.attendee-photo-upload-editor[open] { display: flex; flex-direction: column; }
.attendee-photo-upload-editor::backdrop { background: rgb(15 23 42 / 65%); }
body:has(.attendee-photo-upload-editor[open]) { overflow: hidden; }
.attendee-photo-upload-editor-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: .25rem; padding: .5rem .75rem; background: var(--photos-surface); }
.attendee-photo-upload .attendee-photo-upload-editor-header h2 { flex: 1; font-size: .875rem; font-weight: 600; }
.attendee-photo-upload-editor-header button { min-width: 44px; flex-shrink: 0; }
.attendee-photo-upload-editor-image { position: relative; display: grid; place-items: center; flex-shrink: 0; height: min(45dvh, 28rem); min-height: 8rem; background: var(--photos-soft); }
.attendee-photo-upload-editor-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.attendee-photo-upload-editor-image:has(img:not([hidden])) .attendee-photo-upload-placeholder { visibility: hidden; }
.attendee-photo-upload-editor-strip { display: flex; flex-shrink: 0; gap: .5rem; overflow-x: auto; padding: .75rem 1rem; }
.attendee-photo-upload-editor-strip button { width: 56px; height: 56px; flex-shrink: 0; padding: 2px; overflow: hidden; border: 2px solid transparent; border-radius: .5rem; background: var(--photos-soft); }
.attendee-photo-upload-editor-strip button[aria-current="true"] { border-color: var(--event-app-primary, #1c64f2); }
.attendee-photo-upload-editor-strip img { width: 100%; height: 100%; object-fit: cover; border-radius: .25rem; }
.attendee-photo-upload-editor-body { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1rem; }
.attendee-photo-upload-editor-body label { width: 100%; }

@media (min-width: 640px) {
  .attendee-photo-upload-header, .attendee-photo-upload-footer { padding-inline: 1.5rem; }
  .attendee-photo-upload-panel { padding: 1.5rem; }
  .attendee-photo-upload-results { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .attendee-photo-upload-picker { padding-block: 3rem; }
  .attendee-photo-upload-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .attendee-photo-upload-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .attendee-photo-upload-composer { border-inline: 1px solid var(--photos-frame-border); }
  .attendee-photo-upload-results { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .attendee-photo-upload-footer .attendee-photos-primary { flex: 1; padding-inline: .75rem; }
}

@media (max-width: 479px) {
  .attendee-photo-upload-review-heading { align-items: flex-start; }
  .attendee-photo-upload-review-heading h2 { flex: 1; align-self: center; }
  .attendee-photo-upload-review-heading .attendee-photo-upload-text-button { font-size: .75rem; }
}

@media (hover: hover) {
  .attendee-photo-upload-text-button:hover, .attendee-photo-upload-caption-button:hover { background: var(--photos-soft); }
  .attendee-photo-upload-remove:hover { background: white; color: #111827; }
}
