.upload-page { width: min(calc(100% - 2rem), 1060px); margin: 0 auto; padding: clamp(2.2rem, 6vw, 5.2rem) 0 4rem; }
.upload-intro { max-width: 690px; margin: 0 auto 2.5rem; text-align: center; }
.upload-intro .eyebrow { margin-bottom: .8rem; }
.upload-intro h1 { font-size: clamp(3.2rem, 8vw, 5rem); line-height: .98; }
.upload-intro h1 em { color: var(--olive); font-weight: 400; }
.upload-intro__copy { max-width: 520px; margin: 1.2rem auto 0; color: var(--muted); }
.table-attribution, .table-link-feedback { max-width: 1060px; margin: 0 auto 1rem; padding: .8rem 1rem; text-align: center; font-size: .82rem; }
.table-attribution { border: 1px solid var(--line); background: #eeeadf; color: var(--olive-dark); }
.table-link-feedback { border: 1px solid #d8aaa2; background: #f6e9e6; color: #803f38; }
.upload-panel { padding: clamp(1.2rem, 4vw, 3rem); border: 1px solid var(--line); background: #fbf9f4; box-shadow: var(--shadow); }
.guest-name-field { max-width: 440px; margin-bottom: 2rem; }
.guest-name-field label { display: block; margin-bottom: .45rem; color: var(--ink); font-size: .78rem; font-weight: 600; }
.guest-name-field label span { color: var(--muted); font-weight: 400; }
.guest-name-field input { width: 100%; min-height: 48px; padding: .7rem .8rem; border: 1px solid #bdb7aa; border-radius: var(--radius); background: white; color: var(--ink); font: inherit; }
.guest-name-field input:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
.guest-name-field p { margin: .35rem 0 0; color: var(--muted); font-size: .75rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.drop-zone { min-height: 250px; padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #a5a391; background: #f3f0e8; text-align: center; transition: border-color .2s ease, background-color .2s ease; }
.drop-zone:focus-visible, .drop-zone.is-dragging { border-color: var(--olive); outline: 3px solid rgb(89 97 76 / 18%); outline-offset: 3px; background: #eeede3; }
.drop-zone__icon { width: 38px; height: 38px; margin-bottom: .55rem; display: grid; place-items: center; border: 1px solid var(--rose); border-radius: 50%; color: var(--rose); font: 1.4rem var(--serif); }
.drop-zone__title { margin: 0; font: 1.45rem var(--serif); }
.drop-zone__copy { margin: .35rem 0 1rem; color: var(--muted); font-size: .82rem; }
.upload-limits { margin: .65rem 0 2.4rem; color: var(--muted); font-size: .72rem; text-align: center; }
.queue-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.queue-heading .eyebrow { margin-bottom: .4rem; }
.queue-heading h2 { margin-bottom: .85rem; font-size: clamp(1.45rem, 3vw, 2rem); }
.queue-count { padding-bottom: .95rem; color: var(--muted); font-size: .73rem; white-space: nowrap; }
.upload-feedback { min-height: 1.5rem; margin: .8rem 0; color: var(--muted); font-size: .82rem; }
.upload-feedback.is-error { color: #8c3730; }
.upload-feedback.is-success { color: var(--olive-dark); }
.upload-queue { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; list-style: none; }
.upload-card { min-width: 0; padding: .7rem; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: .8rem; border: 1px solid var(--line); background: white; }
.upload-card__preview { width: 74px; height: 74px; overflow: hidden; display: grid; place-items: center; background: #eee9dd; color: var(--olive); }
.upload-card__preview img, .upload-card__preview video { width: 100%; height: 100%; object-fit: cover; }
.upload-card__file-icon { font: 1.2rem var(--serif); }
.upload-card__body { min-width: 0; align-self: center; }
.upload-card__name { overflow: hidden; margin: 0; font-size: .78rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.upload-card__size { margin: .1rem 0 .35rem; color: var(--muted); font-size: .68rem; }
.upload-card__status { margin: .2rem 0; color: var(--olive-dark); font-size: .7rem; }
.upload-card__status.is-error { color: #8c3730; }
.upload-card progress { width: 100%; height: 5px; accent-color: var(--olive); }
.upload-card__controls { margin-top: .35rem; display: flex; flex-wrap: wrap; gap: .65rem; }
.upload-card__controls button { min-height: 32px; padding: .25rem .1rem; border: 0; background: transparent; color: var(--olive-dark); font: 600 .68rem var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.upload-card__controls button:hover { color: var(--rose); }
.upload-card__controls button:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
.upload-actions { margin-top: 1.5rem; padding-top: 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); }
.upload-actions p { margin: 0; color: var(--muted); font-size: .72rem; }
.button:disabled { background: #a3a596; color: #f8f6f1; cursor: not-allowed; transform: none; }
.upload-page__return { margin: 1.5rem 0 0; color: var(--olive-dark); font-size: .8rem; text-align: center; }
.upload-page__return a { text-underline-offset: 4px; }

@media (max-width: 620px) {
  .upload-intro { margin-bottom: 1.6rem; }
  .upload-panel { padding: 1rem; }
  .drop-zone { min-height: 220px; }
  .upload-queue { grid-template-columns: 1fr; }
  .upload-actions { align-items: flex-start; flex-direction: column; }
  .upload-actions .button { width: 100%; }
  .queue-heading { align-items: center; }
}
