/* Photos tab — Add photos composer (shared Worker/KV) */

.photos-add-compose {
  --photos-add-blush: #c4785a;
  --photos-add-petal: #f7e4dc;
  --photos-add-leaf: #5f7a5a;
  background: linear-gradient(165deg, rgba(247, 228, 220, 0.55), rgba(95, 122, 90, 0.08));
  border: 1px solid rgba(196, 120, 90, 0.28);
  border-radius: 18px;
  padding: 1.15rem 1.1rem 1.25rem;
  margin: 1.25rem 0 1.75rem;
}

.photos-add-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.45rem;
  color: #2c2a28;
  margin: 0 0 0.35rem;
}

.photos-add-hint {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #5a5550;
}

.photos-add-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--photos-add-leaf);
  margin: 0.85rem 0 0.35rem;
}

.photos-add-from {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.photos-add-from > .photos-add-label {
  margin: 0 0.35rem 0 0;
}

.photos-add-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  min-height: 44px;
  border-radius: 999px;
  background: #fffaf6;
  border: 1.5px solid rgba(196, 120, 90, 0.35);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  touch-action: manipulation;
}

.photos-add-chip.is-on,
.photos-add-chip:has(input:checked) {
  background: var(--photos-add-petal);
  border-color: var(--photos-add-blush);
}

.photos-add-chip input {
  accent-color: var(--photos-add-blush);
}

.photos-add-input,
.photos-add-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid rgba(44, 42, 40, 0.14);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font: 400 1.05rem/1.45 "Source Sans 3", system-ui, sans-serif;
  background: #fffaf6;
  color: #2c2a28;
  min-height: 44px;
}

.photos-add-textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.photos-add-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.75;
}

.photos-add-media-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.photos-add-file-btn,
.photos-add-primary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font: 600 0.98rem/1 "Source Sans 3", system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
  border: 1.5px solid rgba(196, 120, 90, 0.4);
  background: #fff8f0;
  color: #2c2a28;
}

.photos-add-primary {
  margin-top: 1rem;
  width: 100%;
  background: var(--photos-add-blush);
  border-color: transparent;
  color: #fffaf6;
}

.photos-add-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.photos-add-preview {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: #5a5550;
}

.photos-add-preview[hidden] {
  display: none !important;
}

.photos-add-preview-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.photos-add-preview-thumbs img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #1a1816;
}

.photos-add-status {
  min-height: 1.25rem;
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  color: var(--photos-add-leaf);
}

.photos-add-status.is-error {
  color: #8a3030;
}

.photos-add-storage-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #6a6560;
  font-style: italic;
}

.photos-add-section .gallery-soft {
  margin-bottom: 1.1rem;
}

.photos-add-empty {
  padding: 1.25rem 1rem;
  text-align: center;
  color: #6a6560;
  font-style: italic;
  background: rgba(95, 122, 90, 0.1);
  border-radius: 16px;
  margin: 0 0 0.5rem;
}

.photos-add-empty[hidden] {
  display: none !important;
}

.photos-add-slot {
  position: relative;
}

.photos-add-meta {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: #6a6560;
}

.photos-add-meta .photos-add-from-line {
  font-weight: 600;
  color: #5a5550;
}

.photos-add-delete {
  appearance: none;
  display: block;
  margin: 0.55rem auto 0;
  border: none;
  background: rgba(44, 42, 40, 0.06);
  color: #6a6560;
  font: 600 0.8rem/1 "Source Sans 3", system-ui, sans-serif;
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
}

.photos-add-delete:hover,
.photos-add-delete:focus-visible {
  background: rgba(138, 48, 48, 0.12);
  color: #8a3030;
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .photos-add-chip,
  .photos-add-file-btn,
  .photos-add-primary,
  .photos-add-delete {
    transition: none;
  }
}

/* Center Our additions empties / grid with the rest of Photos */
.photos-add-section > .eyebrow,
.photos-add-section > .gallery-heading,
.photos-add-section > .gallery-soft {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

