.album-page {
  --album-rose: #a9635e;
  --album-ink: #332d29;
  --album-muted: #827970;
  --album-border: #e9e1d8;
  display: grid;
  gap: 18px;
  width: min(100%, 1080px);
  margin: 10px auto 52px;
  color: var(--album-ink);
}

.album-page .panel,
.album-page .album-progress-panel,
.album-page .album-results-section {
  min-width: 0;
}

.album-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid #e8dcd1;
  border-radius: 24px;
  background: linear-gradient(125deg, rgba(255, 254, 251, .98), rgba(249, 239, 232, .92));
  box-shadow: 0 18px 50px rgba(67, 48, 38, .07);
}

.album-hero::after {
  position: absolute;
  right: -54px;
  bottom: -100px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(185, 139, 120, .17);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(185, 139, 120, .035), 0 0 0 48px rgba(185, 139, 120, .025);
  content: "";
  pointer-events: none;
}

.album-hero h1 {
  position: relative;
  z-index: 1;
  margin: 8px 0 9px;
  font: 500 clamp(30px, 4.2vw, 43px)/1.18 var(--serif);
  letter-spacing: -.025em;
}

.album-hero p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0;
  color: #766d65;
  font-size: 13px;
  line-height: 1.8;
}

.album-hero-meta,
.album-maker-hero,
.album-maker-hero-actions,
.album-maker-toolbar,
.album-progress-heading,
.album-results-toolbar,
.album-step-head,
.album-section-head,
.album-person-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.album-hero-meta {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  margin-top: 19px;
  color: #93877d;
  font-size: 11px;
}

.album-hero-meta > span:last-child { overflow-wrap: anywhere; }
.album-maker-hero > div:first-child { min-width: 0; }
.album-maker-hero-actions { flex: 0 0 auto; }

.album-step-panel,
.album-submit-panel,
.album-maker-panel,
.album-progress-panel,
.album-results-section {
  padding: clamp(17px, 3vw, 27px);
  border: 1px solid rgba(228, 219, 210, .9);
  border-radius: 21px;
  background: rgba(255, 254, 251, .96);
  box-shadow: 0 12px 34px rgba(66, 48, 39, .055);
}

.album-step-head {
  justify-content: flex-start;
  margin-bottom: 17px;
}

.album-step-head > div { min-width: 0; }
.album-step-head h2,
.album-progress-heading h2,
.album-results-toolbar h2,
.album-maker-toolbar h2 {
  margin: 0 0 5px;
  font: 500 23px/1.28 var(--serif);
}

.album-step-head p,
.album-progress-heading p,
.album-results-toolbar p,
.album-maker-toolbar p {
  margin: 0;
  color: var(--album-muted);
  font-size: 12px;
  line-height: 1.7;
}

.album-step-number {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #ead9ce;
  border-radius: 50%;
  background: #f8eee8;
  color: var(--album-rose);
  font: 17px var(--serif);
}

.album-project-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 17px;
}

.album-mode-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.album-mode-tabs .creative-mode-option { min-width: 0; }
.album-mode-tabs .creative-mode-option > span { min-height: 75px; }

.album-gender-toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.album-gender-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.album-gender-toggle span {
  display: grid;
  min-height: 46px;
  place-items: center;
  border: 1px solid var(--album-border);
  border-radius: 11px;
  background: #fff;
  color: #726860;
  font-size: 12px;
  cursor: pointer;
}
.album-gender-toggle input:checked + span { border-color: #c48c82; background: #fbf2ee; color: #8d514b; }

.album-people-stack { display: grid; gap: 17px; }
.album-person-panel { min-width: 0; padding: 16px; border: 1px solid #eee7df; border-radius: 16px; background: #fffdfa; }
.album-person-head { align-items: flex-start; margin-bottom: 12px; }
.album-person-head h3,
.album-section-head h3 { margin: 0 0 4px; font: 500 18px var(--serif); }
.album-person-head p,
.album-section-head p { margin: 0; color: var(--album-muted); font-size: 11px; line-height: 1.65; }
.album-person-name { flex: 0 1 220px; }

/* Keep the front / 45-degree / side upload controls on a single row, including phones. */
.photo-angle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(5px, 1.2vw, 11px);
  min-width: 0;
}

.photo-angle-grid .photo-angle-tile {
  min-width: 0;
  min-height: 0;
  align-items: stretch;
  justify-content: flex-start;
  gap: 7px;
  padding: clamp(6px, 1vw, 11px);
  overflow: hidden;
  text-align: left;
}

.photo-angle-tile > .photo-example,
.photo-angle-tile > .album-upload-preview {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 0;
  border-radius: 9px;
  background: #f2ebe5;
}

.album-upload-preview {
  position: relative;
  z-index: 2;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
}

.album-upload-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.album-upload-preview > span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 3px 6px;
  border-radius: 12px;
  background: rgba(40, 34, 31, .72);
  color: white;
  font-size: 8px;
}

.photo-angle-grid .photo-angle-tile > strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.photo-angle-grid .photo-angle-hint { display: -webkit-box; min-height: 28px; overflow: hidden; color: #958a80; font-size: 10px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.photo-angle-grid .photo-example-caption { color: #a29385; font-size: 9px; line-height: 1.35; }
.photo-tile-picker {
  position: relative;
  display: grid;
  min-height: 31px;
  place-items: center;
  margin-top: auto;
  padding: 5px 7px;
  border: 1px solid #e6d8ce;
  border-radius: 9px;
  background: #fff;
  color: #8b5a52;
  font-size: 10px;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
}
.photo-tile-picker:hover { border-color: #c58e84; background: #fff8f5; }
.photo-tile-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.album-upload-status { min-height: 0; color: #85776c !important; font-size: 9px !important; line-height: 1.35; overflow-wrap: anywhere; }
.photo-angle-tile .upload-progress { right: 7px; bottom: 5px; left: 7px; }

.album-dynamic-section { display: grid; gap: 12px; margin-top: 19px; padding-top: 17px; border-top: 1px solid #eee7df; }
.album-section-head { align-items: flex-start; }
.album-dynamic-row { display: grid; gap: 10px; padding: 13px; border: 1px solid #eee7df; border-radius: 14px; background: #fffdfa; }
.album-dynamic-row .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.album-dynamic-row .photo-angle-grid { max-width: 520px; }
.album-inline-upload { position: relative; overflow: hidden; }
.album-inline-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.album-small-preview { width: min(160px, 100%); padding: 0; overflow: hidden; border: 1px solid var(--album-border); border-radius: 12px; background: #f6f1eb; }
.album-small-preview img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.album-empty-inline { display: grid; min-height: 82px; place-items: center; padding: 16px; border: 1px dashed #e7ddd3; border-radius: 14px; color: #998d82; font-size: 12px; text-align: center; }

.album-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.album-grid-card,
.album-add-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
  padding: 9px;
  border: 1px solid #eee6de;
  border-radius: 15px;
  background: #fffdfa;
}
.album-grid-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #f4eee8;
  cursor: pointer;
}
.album-grid-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.album-grid-image:hover img { transform: scale(1.035); }
.album-edit-badge { position: absolute; right: 8px; bottom: 8px; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(48,39,35,.76); color: white; font-size: 16px; opacity: .88; }
.album-grid-image:hover .album-edit-badge { background: var(--album-rose); }
.album-grid-meta { display: grid; min-width: 0; gap: 4px; padding: 0 2px; }
.album-grid-meta strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.album-source-tag { display: inline-flex; width: fit-content; max-width: 100%; padding: 4px 8px; border-radius: 20px; background: #f5eee8; color: #927c6d; font-size: 9px; line-height: 1.3; }
.album-custom-prompt { min-height: 88px; padding: 9px 10px; font-size: 12px; }
.album-item-details { min-height: 55px; padding: 8px 10px; border: 1px solid #eee5dc; border-radius: 9px; background: #fff; color: #81776e; font-size: 10px; line-height: 1.55; text-align: left; }
.album-item-details:hover { border-color: #c58e84; color: #86564f; }
.album-remove { position: absolute; z-index: 3; top: 15px; right: 15px; display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(54,43,39,.76); color: white; font-size: 20px; line-height: 1; box-shadow: 0 3px 10px rgba(0,0,0,.16); }
.album-remove:hover { background: #a75550; }
.album-add-card { align-items: center; justify-content: center; min-height: 260px; padding: 16px; border-style: dashed; border-color: #d9c9bd; color: #766c62; text-align: center; cursor: pointer; transition: .18s; }
.album-add-card:hover { border-color: #b97970; background: #fff8f4; transform: translateY(-2px); }
.album-add-plus { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: #f7eae4; color: var(--album-rose); font-size: 27px; }
.album-add-card strong { font: 500 17px var(--serif); }
.album-add-card small { color: #9b8f84; font-size: 10px; line-height: 1.5; }
.album-add-menu { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.album-add-menu button { padding: 10px 14px; border: 1px solid #eadfd5; border-radius: 24px; background: #fff; color: #76685e; font-size: 11px; }
.album-add-menu button:hover { border-color: #bd8178; background: #fcf3ef; color: #8c514a; }
.album-hidden-file { display: none; }
.album-upload-progress { min-height: 20px; margin-top: 8px; color: #8a7c71; font-size: 11px; line-height: 1.5; }
.album-client-progress-summary { line-height: 1.7; }
.album-inline-upload-status { color: #9a766b; font-weight: 600; }
.album-section-toggle { flex: 0 0 auto; align-items: center; gap: 9px; margin: 0; padding: 7px 10px; border: 1px solid #eadfd5; border-radius: 12px; background: #fff; cursor: pointer; }
.album-section-toggle input { accent-color: #a96860; }
.album-section-toggle > span { display: grid; gap: 1px; }
.album-section-toggle strong { color: #725c50; font-size: 11px; }
.album-section-toggle small { color: #a09286; font-size: 9px; }
.album-section-toggle:has(input:checked) { border-color: #d7b4a7; background: #fff8f4; }
.album-public-consent { margin: 8px 0 16px; padding: 13px 14px; border: 1px solid #e8e1d8; border-radius: 13px; background: #fbf8f3; }
.album-public-consent > span { display: grid; gap: 3px; }
.album-public-consent strong { color: #63564c; font-size: 12px; }
.album-public-consent small { color: #8d8379; font-size: 10px; line-height: 1.6; }
.album-form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.album-form-actions .button-primary { min-width: 200px; }

.album-modal-backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(36, 30, 26, .48);
  backdrop-filter: blur(5px);
}
.album-modal { display: flex; width: min(650px, 100%); max-height: min(90vh, 850px); flex-direction: column; gap: 15px; padding: clamp(17px, 3vw, 25px); overflow: hidden; border: 1px solid #eee5dc; border-radius: 20px; background: #fffefa; box-shadow: 0 25px 80px rgba(22, 17, 14, .25); }
.album-modal-head { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 14px; }
.album-modal-head h2 { margin: 5px 0 5px; font: 500 24px/1.25 var(--serif); }
.album-modal-head p { margin: 0; color: var(--album-muted); font-size: 11px; line-height: 1.65; }
.album-modal-close { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border: 1px solid #ebe3db; border-radius: 50%; background: #fff; color: #796e65; font-size: 23px; }
.album-modal-close:hover { border-color: #c58e84; color: #9c5751; }
.album-modal-actions { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.album-modal-actions .helper { margin-right: auto; }
.album-edit-large { display: block; width: min(100%, 430px); max-height: 46vh; align-self: center; object-fit: contain; border-radius: 12px; background: #f4eee8; }
.album-custom-modal-note { padding: 22px; border: 1px dashed #e6d9ce; border-radius: 12px; background: #faf6f1; color: #83766b; font-size: 12px; line-height: 1.7; }
.album-add-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.album-add-options button { display: grid; min-width: 0; min-height: 155px; place-content: center; justify-items: center; gap: 7px; padding: 14px; border: 1px solid #eee5dc; border-radius: 15px; background: #fffdfa; color: #71665c; text-align: center; }
.album-add-options button:hover { border-color: #c58e84; background: #fff8f4; }
.album-add-options button > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #f6e9e3; color: var(--album-rose); font-size: 20px; }
.album-add-options strong { font: 500 15px var(--serif); }
.album-add-options small { color: #968b81; font-size: 9px; line-height: 1.45; }
.album-catalog-modal { width: min(900px, 100%); }
.album-catalog-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 9px; }
.album-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 10px; min-height: 100px; max-height: 52vh; padding: 2px 3px 5px 0; overflow: auto; overscroll-behavior: contain; }
.album-catalog-card { position: relative; display: grid; min-width: 0; gap: 7px; padding: 7px; border: 1px solid #eee6de; border-radius: 13px; background: #fff; cursor: pointer; }
.album-catalog-card.selected { border-color: #b87870; box-shadow: 0 0 0 2px rgba(183, 110, 105, .12); }
.album-catalog-card > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: #f2ece6; }
.album-catalog-card input { position: absolute; top: 10px; left: 10px; z-index: 2; width: 1px !important; height: 1px !important; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); -webkit-appearance: none; appearance: none; opacity: 0 !important; cursor: pointer; }
.album-catalog-card:has(input:focus-visible) { outline: 3px solid rgba(169, 99, 94, .48); outline-offset: 2px; }
.album-catalog-card-copy { display: grid; gap: 3px; min-width: 0; }
.album-catalog-card-copy strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.album-catalog-card-copy small { color: #998d83; font-size: 8px; }
.album-catalog-check { position: absolute; top: 10px; right: 10px; display: none; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #a9635e; color: white; font-size: 12px; }
.album-catalog-card.selected .album-catalog-check { display: grid; }
.album-catalog-empty { grid-column: 1 / -1; }

.album-progress-panel { display: grid; gap: 12px; }
.album-progress-heading { align-items: flex-start; }
.album-progress-heading > div { min-width: 0; }
.album-progress-panel > small { color: #968a80; font-size: 10px; }
.album-results-section { display: grid; gap: 16px; }
.album-results-toolbar { align-items: flex-end; }
.album-result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 13px; }
.album-result-card,
.album-maker-item { display: grid; min-width: 0; align-content: start; gap: 10px; padding: 12px; border: 1px solid #eee7df; border-radius: 16px; background: #fffdfa; }
.album-result-card-head,
.album-maker-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.album-result-card-head > div,
.album-maker-item-head > div { display: grid; min-width: 0; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 8px; }
.album-result-card-head h3,
.album-maker-item-head h3 { min-width: 0; max-width: 100%; margin: 0; overflow: hidden; font: 500 10.5px/1.35 var(--sans); text-overflow: ellipsis; white-space: nowrap; }
.album-result-number { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #f5e9e3; color: var(--album-rose); font: 15px var(--serif); }
.album-result-image,
.album-maker-output { position: relative; overflow: hidden; border-radius: 11px; background: #f2ece6; }
.album-result-image { aspect-ratio: 4 / 5; }
.album-result-image img,
.album-maker-output img { display: block; width: 100%; height: 100%; object-fit: cover; }
.album-result-image img[data-album-view-image] { cursor: zoom-in; }
.album-result-image.is-watermarked::after { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.35); background: repeating-linear-gradient(-28deg, transparent 0 95px, rgba(255,255,255,.035) 96px 98px); content: ""; pointer-events: none; }
.album-result-watermark { position: absolute; right: 8px; bottom: 8px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.3); border-radius: 20px; background: rgba(37, 31, 28, .68); color: white; font-size: 9px; letter-spacing: .04em; }
.album-result-placeholder { display: grid; min-height: 180px; place-items: center; padding: 16px; color: #94877c; font-size: 12px; text-align: center; }
.album-client-review-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.album-client-review-actions .button { flex: 1 1 auto; }
.album-reviewed-note { align-self: center; color: #628069; font-size: 10px; }
.album-feedback-note,
.album-customer-detail { padding: 10px 12px; border: 1px solid #eee3d9; border-radius: 11px; background: #fbf6f1; color: #7c7065; font-size: 10px; line-height: 1.65; }
.album-feedback-note strong,
.album-customer-detail strong { color: #6d5e52; }
.album-feedback-note p,
.album-customer-detail p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.album-maker-toolbar { align-items: flex-end; padding: 4px 3px; }
.album-maker-setting-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 12px; }
.album-maker-setting-card { display: grid; min-width: 0; grid-template-columns: minmax(95px, .72fr) minmax(0, 1fr); gap: 12px; padding: 11px; border: 1px solid #eee7df; border-radius: 15px; background: #fffdfa; }
.album-maker-setting-image { display: grid; min-width: 0; min-height: 130px; place-items: center; overflow: hidden; border-radius: 10px; background: #f2ece6; color: #968a80; font-size: 10px; text-align: center; }
.album-maker-setting-image img { width: 100%; height: 100%; min-height: 130px; object-fit: cover; cursor: zoom-in; }
.album-maker-setting-copy { display: grid; min-width: 0; align-content: start; gap: 8px; }
.album-maker-setting-copy h3 { margin: 0; font: 500 15px var(--serif); overflow-wrap: anywhere; }
.album-maker-setting-copy details,
.album-analysis,
.album-prompt-display,
.album-maker-inputs { min-width: 0; padding: 9px 10px; border: 1px solid #eee7df; border-radius: 10px; background: #fff; }
.album-maker-setting-copy summary,
.album-analysis summary,
.album-prompt-display summary,
.album-maker-inputs summary { color: #786c62; font-size: 10px; font-weight: 650; cursor: pointer; }
.album-maker-setting-copy pre,
.album-prompt-display pre,
.album-admin-review-copy pre { max-height: 240px; margin: 8px 0 0; overflow: auto; color: #70665d; font: 10px/1.65 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.album-maker-inputs { margin-top: 12px; }
.album-input-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.album-input-photo { min-width: 0; padding: 0; overflow: hidden; border: 1px solid #eee5dc; border-radius: 10px; background: #fff; text-align: left; }
.album-input-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.album-input-photo span { display: block; padding: 6px; color: #85786d; font-size: 8px; overflow-wrap: anywhere; }
.album-maker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 12px; }
.album-maker-item-head { align-items: center; }
.album-maker-item-head > div { flex: 1; }
.album-maker-item-head small { grid-column: 2; color: #9a8e83; font-size: 9px; line-height: 1.45; }
.album-maker-output { aspect-ratio: 4 / 5; }
.album-maker-output img { cursor: zoom-in; }
.album-analysis dl { display: grid; gap: 7px; margin: 9px 0 0; }
.album-analysis dl > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; padding-top: 7px; border-top: 1px solid #f0ebe5; }
.album-analysis dt { color: #927e70; font-size: 9px; }
.album-analysis dd { margin: 0; color: #736960; font-size: 9px; line-height: 1.55; overflow-wrap: anywhere; }
.album-prompt-display pre { max-height: 260px; }
.album-maker-actions { align-items: stretch; }
.album-maker-actions .button { flex: 1 1 auto; }
.album-maker-links { display: grid; gap: 9px; }
.album-link-card { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 11px; border: 1px solid #eee5dc; border-radius: 12px; background: rgba(255,255,255,.82); }
.album-maker-links .album-link-card { margin-top: 0; }
.album-collaboration-setup { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid #e1e8dc; border-radius: 13px; background: linear-gradient(110deg,#f3f6ef,#fffdfa); }
.album-collaboration-setup > div { display: grid; gap: 4px; min-width: 0; }
.album-collaboration-setup strong { color: #425443; font-size: 12px; }
.album-collaboration-setup small { color: #798477; font-size: 10px; line-height: 1.6; }
.album-link-card > div { display: grid; flex: 1; min-width: 0; gap: 4px; }
.album-link-card strong { font-size: 11px; }
.album-link-card small { color: #968a80; font-size: 9px; line-height: 1.5; }
.album-link-card .input { padding: 8px 9px; font-size: 10px; }
.album-pricing-note { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 13px; margin-top: 12px; padding: 10px 12px; border-radius: 11px; background: #f7f1eb; color: #75695f; font-size: 10px; }
.album-pricing-note strong { color: #695648; }
.album-pricing-note small { width: 100%; color: #968a80; font-size: 9px; }
.album-public-review-note { margin-top: 12px; }
.album-upload-progress[aria-live] { color: #81776f; }

.album-prompt-modal { width: min(760px, 100%); overflow-y: auto; }
.album-prompt-image { display: block; width: min(100%, 300px); max-height: 34vh; align-self: center; object-fit: contain; border-radius: 11px; background: #f3ece6; cursor: zoom-in; }
.album-prompt-text { min-height: 150px; font: 11px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; }
.album-prompt-modal > .field > .textarea:not(.album-prompt-text) { min-height: 75px; }
.album-prompt-modal .album-modal-actions { justify-content: flex-start; }
.album-prompt-modal .album-modal-actions .helper { flex: 1 0 100%; }

.album-admin-review-panel { width: 100%; }
.album-admin-review-list { display: grid; gap: 13px; }
.album-admin-review-card { display: grid; grid-template-columns: minmax(150px, .65fr) minmax(0, 1.35fr); gap: 16px; padding: 13px; border: 1px solid #eee7df; border-radius: 16px; background: #fffdfa; }
.album-admin-review-card > img { display: block; width: 100%; max-height: 420px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 11px; background: #f2ece6; }
.album-admin-review-copy { display: grid; min-width: 0; align-content: start; gap: 9px; }
.album-admin-review-copy h3 { margin: 0; font: 500 19px var(--serif); }
.album-admin-review-copy > small { color: #988c81; font-size: 9px; }
.album-admin-review-copy details { padding: 9px 11px; border: 1px solid #eee7df; border-radius: 10px; }
.album-admin-review-copy summary { color: #75685d; font-size: 10px; cursor: pointer; }

.album-lightbox { position: fixed; z-index: 90; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: 10px; padding: 50px 18px 20px; background: rgba(21, 18, 16, .9); }
.album-lightbox img { display: block; max-width: min(100%, 1100px); max-height: calc(100vh - 110px); object-fit: contain; box-shadow: 0 18px 60px rgba(0,0,0,.32); }
.album-lightbox > span { max-width: min(90vw, 850px); color: #f4eee8; font-size: 12px; text-align: center; }
.album-lightbox-close { position: absolute; top: 13px; right: 15px; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.1); color: white; font-size: 25px; }
.album-video-play-button { position: absolute; z-index: 2; right: 11px; bottom: 11px; display: grid; width: 48px; height: 48px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; background: linear-gradient(145deg,rgba(171,92,91,.96),rgba(101,54,58,.96)); color: #fff; box-shadow: 0 5px 18px rgba(34,20,22,.35), inset 0 1px 0 rgba(255,255,255,.25); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.album-video-play-button:hover { transform: scale(1.06); box-shadow: 0 8px 24px rgba(34,20,22,.42), inset 0 1px 0 rgba(255,255,255,.3); }
.album-video-play-button svg { width: 21px; height: 21px; margin-left: 2px; }
.album-video-lightbox { position: fixed; z-index: 95; inset: 0; display: grid; place-items: center; padding: max(58px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom)); background: rgba(15,13,13,.92); }
.album-video-lightbox-content { display: grid; min-width: 0; max-width: 100%; max-height: 100%; justify-items: center; gap: 12px; }
.album-video-lightbox-content video { display: block; width: min(92vw,900px); max-width: 100%; max-height: calc(100vh - 118px); border-radius: 14px; background: #100f10; object-fit: contain; box-shadow: 0 18px 60px rgba(0,0,0,.4); }
.album-video-lightbox-content > span { max-width: min(88vw,800px); color: #f4eee8; font-size: 13px; text-align: center; }
.album-toast { position: fixed; z-index: 100; right: 18px; bottom: 18px; max-width: min(400px, calc(100vw - 36px)); padding: 12px 16px; border: 1px solid rgba(255,255,255,.17); border-radius: 12px; background: #39322e; color: white; box-shadow: 0 12px 35px rgba(0,0,0,.2); font-size: 12px; line-height: 1.5; opacity: 0; pointer-events: none; transform: translateY(7px); transition: .2s; }
.album-toast.visible { opacity: 1; transform: translateY(0); }
.album-toast[data-type="error"] { background: #824e49; }
.album-toast[data-type="success"] { background: #53715b; }

@media (max-width: 760px) {
  .album-page { gap: 13px; margin-top: 5px; }
  .album-maker-hero,
  .album-maker-toolbar,
  .album-progress-heading,
  .album-results-toolbar { align-items: flex-start; flex-direction: column; }
  .album-maker-hero-actions { width: 100%; }
  .album-project-fields { grid-template-columns: 1fr; }
  .album-person-head { flex-direction: column; }
  .album-section-head { align-items: flex-start; }
  .album-person-name { width: 100%; flex-basis: auto; }
  .album-mode-tabs { gap: 7px; }
  .album-mode-tabs .creative-mode-option > span { min-height: 72px; padding: 10px; }
  .album-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .album-add-card { min-height: 220px; }
  .album-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .album-maker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .album-maker-item { padding: 8px; }
  .album-maker-item-head { align-items: flex-start; flex-direction: column; }
  .album-maker-item-head > div { grid-template-columns: 29px minmax(0, 1fr); }
  .album-maker-item-head .status-pill { margin-left: 37px; }
  .album-maker-setting-grid { grid-template-columns: 1fr; }
  .album-admin-review-card { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 10px; padding: 9px; }
  .album-admin-review-copy .button-row { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .album-hero { padding: 20px 17px; border-radius: 18px; }
  .album-step-panel,
  .album-submit-panel,
  .album-maker-panel,
  .album-progress-panel,
  .album-results-section { padding: 14px 12px; border-radius: 16px; }
  .album-step-head { align-items: flex-start; gap: 9px; }
  .album-step-number { flex-basis: 31px; width: 31px; height: 31px; font-size: 14px; }
  .album-step-head h2,
  .album-progress-heading h2,
  .album-results-toolbar h2,
  .album-maker-toolbar h2 { font-size: 20px; }
  .album-person-panel { padding: 10px; }
  .photo-angle-grid { gap: 5px; }
  .photo-angle-grid .photo-angle-tile { gap: 5px; padding: 5px; }
  .photo-angle-grid .photo-angle-tile > strong { font-size: 9px; }
  .photo-angle-grid .photo-angle-hint { min-height: 26px; font-size: 8px; }
  .photo-angle-grid .photo-example-caption { font-size: 7px; }
  .photo-tile-picker { min-height: 27px; padding: 4px; font-size: 8px; }
  .album-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .album-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .album-result-card { gap: 7px; padding: 8px; }
  .album-result-card-head { align-items: flex-start; flex-direction: column; }
  .album-result-card-head .status-pill { margin-left: 40px; }
  .album-result-card-head h3,
  .album-maker-item-head h3 { font-size: 10.5px; }
  .album-add-options { grid-template-columns: 1fr; }
  .album-add-options button { min-height: 85px; grid-template-columns: 38px minmax(0, 1fr); justify-content: start; text-align: left; }
  .album-add-options button > span { grid-row: span 2; }
  .album-add-options small { grid-column: 2; }
  .album-catalog-filters { grid-template-columns: 1fr 1fr; }
  .album-catalog-filters > .button { grid-column: 1 / -1; }
  .album-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .album-modal-actions { justify-content: stretch; }
  .album-modal-actions .helper { flex: 1 0 100%; }
  .album-modal-actions > .button { flex: 1 1 auto; }
  .album-form-actions { display: grid; grid-template-columns: 1fr; }
  .album-form-actions .button-primary { min-width: 0; }
  .album-link-card { align-items: stretch; flex-direction: column; }
  .album-collaboration-setup { align-items: stretch; flex-direction: column; }
  .album-admin-review-card { grid-template-columns: 1fr; }
  .album-admin-review-card > img { max-height: 48vh; }
}

.album-result-image { cursor: zoom-in; }
.album-result-image.protected-image img { pointer-events: none; }
.album-lightbox-image-wrap { position: relative; display: grid; min-width: 0; min-height: 0; max-width: 100%; max-height: calc(100vh - 110px); place-items: center; }
.album-lightbox-protected-frame { position: relative; display: grid; max-width: min(100%, 1100px); max-height: calc(100vh - 110px); overflow: hidden; place-items: center; }
.album-lightbox-protected-frame > img { max-width: 100%; max-height: calc(100vh - 110px); pointer-events: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.album-lightbox-protected-frame .media-watermark { border-radius: 2px; }
@media (max-width: 600px) {
  .album-lightbox { padding: max(48px, env(safe-area-inset-top)) 10px max(16px, env(safe-area-inset-bottom)); }
  .album-lightbox-image-wrap, .album-lightbox-protected-frame { max-height: calc(100dvh - 100px); }
  .album-lightbox-protected-frame > img { max-height: calc(100dvh - 100px); }
}

/* Producer album workspace follows the same compact shell as the main maker dashboard. */
.album-maker-page {
  width: 100%;
  margin: 0 auto 28px;
  gap: 14px;
}
.album-maker-page .album-maker-hero {
  position: relative;
  align-items: center;
  overflow: visible;
  gap: 18px;
  margin: 0;
  padding: 5px 1px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}
.album-maker-page .album-maker-hero::after {
  right: auto;
  bottom: 3px;
  left: 1px;
  width: 54px;
  height: 2px;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #a65f59, rgba(166, 95, 89, .15));
  box-shadow: none;
  animation: none;
}
.album-maker-page .album-maker-hero h1 {
  margin: 6px 0;
  font-size: clamp(27px, 3.4vw, 39px);
}
.album-maker-page .album-maker-hero p { max-width: 690px; font-size: 12px; line-height: 1.65; }
.album-maker-page .album-maker-hero-actions { gap: 8px; }
.album-maker-page .album-maker-panel {
  border-color: #e8e2da;
  border-radius: 17px;
  box-shadow: 0 5px 18px rgba(44, 36, 30, .04);
  /* The order view is refreshed while generation runs; replaying an entrance
     animation on this panel makes completed images disappear and reappear. */
  animation: none;
}

@media (max-width: 760px) {
  .album-maker-page { gap: 11px; margin-bottom: 20px; }
  .album-maker-page .album-maker-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 1px 1px 14px;
  }
  .album-maker-page .album-maker-hero h1 { margin: 5px 0; font-size: clamp(25px, 6.5vw, 34px); }
  .album-maker-page .album-maker-hero p { font-size: 11px; line-height: 1.55; }
  .album-maker-page .album-maker-hero-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .album-maker-page .album-maker-panel { padding: 16px 14px; }
  .album-maker-page .album-maker-toolbar h2 { font-size: 18px; }
  .album-maker-page .album-maker-toolbar p { font-size: 11px; }
}

/* Keep optional extras quiet until the client asks to add them. */
.album-dynamic-section.is-collapsed { gap: 0; margin-top: 12px; padding-top: 12px; }
.album-dynamic-section.is-collapsed .album-section-head { align-items: stretch; justify-content: flex-start; }
.album-dynamic-section.is-collapsed .album-section-toggle {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 9px 12px;
  border-color: #e9e3d9;
  border-radius: 12px;
  background: linear-gradient(110deg, #fffdfa, #f8f6f0);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.album-dynamic-section.is-collapsed .album-section-toggle:hover { border-color: #cbb0a3; background: #fffaf6; }
.album-dynamic-section.is-collapsed .album-section-toggle:has(input:focus-visible) { outline: 3px solid rgba(169, 99, 94, .16); outline-offset: 2px; }
.album-dynamic-section.is-collapsed .album-section-toggle input { width: 17px; height: 17px; margin: 0; }
.album-dynamic-section.is-collapsed .album-section-toggle strong { color: #65594f; font-size: 12px; }
.album-dynamic-section.is-expanded .album-section-head { align-items: center; }
.album-dynamic-section.is-expanded .album-section-head h3 { color: #40352f; }
.album-dynamic-section.is-expanded .album-section-head p { max-width: 640px; }
.album-client-page .album-hero p { max-width: 880px; font-size: 13px; line-height: 1.85; }

/* Producer-only batch generation and private MP4 playback. */
.album-maker-step-actions { display: flex; min-width: 0; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.album-video-selection-toggle { white-space: nowrap; }
.album-video-select { display: flex; min-height: 38px; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid #ead8d1; border-radius: 11px; background: linear-gradient(110deg,#fff9f6,#f8eeea); color: #775a55; font-size: 10px; font-weight: 700; cursor: pointer; }
.album-video-select[hidden],
.album-video-selection-bar[hidden] { display: none !important; }
.album-video-select input { width: 17px; height: 17px; margin: 0; accent-color: #a96863; }
.album-video-select:has(input:disabled) { border-color: #eee8e2; background: #f7f5f2; color: #aaa098; cursor: not-allowed; }
.album-maker-item.is-video-selected { border-color: #bd8278; box-shadow: 0 0 0 2px rgba(183,110,105,.12),0 12px 28px rgba(114,70,69,.08); }
.album-generated-video { display: grid; gap: 8px; padding: 10px; border: 1px solid #e9d9d3; border-radius: 13px; background: linear-gradient(145deg,#fffaf7,#f8f2ed); }
.album-video-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.album-video-result-heading strong { color: #65504d; font-size: 11px; }
.album-generated-video video { display: block; width: 100%; max-height: 420px; aspect-ratio: 3 / 4; border-radius: 9px; background: #211b1a; object-fit: contain; }
.album-generated-video .button { justify-self: start; }
.album-video-status { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 7px; padding: 9px 10px; border: 1px solid #e8e1d8; border-radius: 11px; background: #faf8f4; color: #766b61; font-size: 10px; line-height: 1.5; }
.album-video-status .spinner { width: 13px; height: 13px; flex: 0 0 13px; }
.album-video-status.is-warning { align-items: flex-start; border-color: #ead8ca; background: #fff8f1; color: #806256; }
.album-video-status.is-warning > strong { width: 100%; color: #8a554d; }
.album-video-status.is-warning > span { overflow-wrap: anywhere; }
.album-video-status.is-warning > small { width: 100%; color: #7a856c; font-weight: 700; }
.album-video-selection-bar { position: fixed; z-index: 60; right: max(16px,env(safe-area-inset-right)); bottom: max(16px,env(safe-area-inset-bottom)); left: max(16px,env(safe-area-inset-left)); display: flex; width: min(1040px,calc(100vw - 32px)); align-items: center; justify-content: space-between; gap: 18px; margin: 0 auto; padding: 13px 15px; border: 1px solid rgba(191,151,141,.45); border-radius: 17px; background: rgba(255,253,250,.96); box-shadow: 0 16px 50px rgba(52,37,35,.2); backdrop-filter: blur(16px); }
.album-video-selection-summary { display: grid; min-width: 0; gap: 3px; }
.album-video-selection-summary strong { color: #554448; font: 500 16px var(--serif); }
.album-video-selection-summary span { color: #8b5b58; font-size: 11px; font-weight: 750; }
.album-video-selection-summary small { color: #94877f; font-size: 9px; line-height: 1.4; }
.album-video-selection-actions { display: flex; flex: 0 0 auto; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.album-maker-page:has(.album-video-selection-bar:not([hidden])) { padding-bottom: 88px; }

@media (max-width: 600px) {
  .album-dynamic-section.is-collapsed { margin-top: 10px; padding-top: 10px; }
  .album-dynamic-section.is-collapsed .album-section-toggle { min-height: 44px; padding: 8px 10px; }
  .album-dynamic-section.is-expanded .album-section-head { align-items: flex-start; gap: 9px; }
  .album-client-page .album-hero p { font-size: 11px; line-height: 1.7; }
}

@media (max-width: 680px) {
  .album-maker-step-actions { width: 100%; justify-content: flex-start; margin-left: 39px; }
  .album-video-selection-bar { right: max(8px,env(safe-area-inset-right)); bottom: max(8px,env(safe-area-inset-bottom)); left: max(8px,env(safe-area-inset-left)); width: auto; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; border-radius: 15px; }
  .album-video-selection-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); justify-content: stretch; }
  .album-video-selection-actions .button-primary { grid-column: 1 / -1; }
  .album-video-selection-actions .button { width: 100%; }
  .album-maker-page:has(.album-video-selection-bar:not([hidden])) { padding-bottom: 160px; }
  .album-generated-video video { max-height: 280px; }
}
