/* Task 16, the rest of the upload look (split from upload.css to keep each
   file short): the picker's own input, the clear layer after the sheet
   closes, the line only a screen reader hears, the visitor name prompt's
   field, and the reload hint above the album's photos. Reuses app.css's
   tokens and .btn, .btn-quiet, .field and .form-error. */

/* The picker's own input: never seen, never tabbed to, but in the page
   (an older iOS opens no picker for a display: none one). */
.upload-input {
  position: fixed;
  top: 0;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* For a moment after the sheet closes from its own buttons, this clear
   layer takes the second tap of a double tap (upload-panel.js). */
.upload-shield {
  position: fixed;
  inset: 0;
  z-index: 50;
}

/* Said by a screen reader, never seen: the lines under the bar, spoken only
   when one appears or goes (upload-announce.js). */
.upload-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- the name prompt's field, on the dark sheet ---------- */

.upload-sheet .field input {
  background: var(--night-btn);
  color: var(--moon);
  border-color: var(--moon-quiet);
}

.upload-sheet .field input:focus-visible {
  border-color: var(--marigold);
}

.upload-name-form .form-error {
  margin: -6px 0 0;
}

.upload-name-form .form-error[hidden] {
  display: none;
}

/* ---------- the reload hint, above the album's photos ---------- */

.upload-hint {
  max-width: 720px;
  margin: 14px calc(16px + env(safe-area-inset-right, 0px)) 0 calc(16px + env(safe-area-inset-left, 0px));
  padding: 16px;
  border-radius: 18px;
  background: var(--night-btn);
  box-shadow: inset 0 0 0 1px var(--night-line);
  color: var(--moon);
}

@media (min-width: 752px) {
  .upload-hint {
    margin: 14px auto 0;
    padding: 18px 20px;
  }
}

.upload-hint-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.upload-hint-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.upload-hint-actions .btn {
  flex: 0 1 auto;
  width: auto;
  padding: 0 22px;
  white-space: nowrap;
}

.upload-hint .btn:not(.btn-quiet) {
  background: var(--night);
}
