body[data-site-page="album-design"] .next-detail-mobile { display: none; }
/* Platform-design setup: presentation and photo controls, scoped to this page. */
body[data-site-page="album-design"] { --paper: #fafaf8; --accent: #ac5427; --line: #e9e5df; background: var(--paper); font-size: 14px; }
body[data-site-page="album-design"] > main { width: min(1200px, calc(100% - var(--site-gutter) * 2)); padding-top: 28px; }
body[data-site-page="album-design"] .site-header-inner { display: grid; grid-template-columns: 230px minmax(0, 1fr) auto; min-height: 76px; padding: 0; gap: 24px; }
body[data-site-page="album-design"] .brand { gap: 12px; }
body[data-site-page="album-design"] .brand-mark { width: 40px; height: 40px; border: 0; background: transparent; color: #aa612b; }
body[data-site-page="album-design"] .brand-mark svg { width: 40px; height: 40px; }
body[data-site-page="album-design"] .brand-copy { display: flex; flex-direction: column; gap: 1px; letter-spacing: .04em; }
body[data-site-page="album-design"] .brand-copy strong { font-size: 20px; line-height: 1.3; }
body[data-site-page="album-design"] .brand-copy small { font-size: 12px; font-weight: 400; color: #766d64; }
body[data-site-page="album-design"] .site-nav { justify-content: center; margin: 0; }
body[data-site-page="album-design"] .site-nav__link { position: relative; color: #302c28; white-space: nowrap; }
body[data-site-page="album-design"] .site-nav__link.is-active { color: var(--accent); }
body[data-site-page="album-design"] .site-nav__link.is-active::after { position: absolute; bottom: 15px; left: 0; right: 0; height: 2px; content: ''; background: var(--accent); }
body[data-site-page="album-design"] .header-actions { display: flex; align-items: center; gap: 12px; }
body[data-site-page="album-design"] .header-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 14px; border: 1px solid #e8d1bc; border-radius: 10px; white-space: nowrap; font-size: 14px; }
body[data-site-page="album-design"] .membership-button { color: #9b5427; background: #fffaf5; }
body[data-site-page="album-design"] .membership-button svg { width: 16px; height: 16px; }
body[data-site-page="album-design"] .avatar-button { color: #524b44; background: #f8f7f5; border-color: #e7e3dd; }
body[data-site-page="album-design"] .back-link { font-size: 12px; color: #8a7d6f; }
body[data-site-page="album-design"] .page-heading { display: block; margin: 14px 0 20px; }
body[data-site-page="album-design"] .page-heading h1 { font-size: 28px; line-height: 1.35; letter-spacing: 0; margin-bottom: 8px; }
body[data-site-page="album-design"] .page-heading p { font-size: 14px; line-height: 1.65; }
.design-progress { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.design-steps { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 22px; font-size: 13px; color: #928a82; }
.design-steps li { display: flex; align-items: center; gap: 9px; position: relative; white-space: nowrap; }
.design-steps li + li::before { content: ''; width: 28px; height: 1px; background: #e2ddd6; margin-right: 10px; }
.design-steps li > span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #ded9d2; border-radius: 50%; flex: none; background: #fff; font-size: 12px; }
.design-steps li[aria-current] { color: var(--accent); }
.design-steps li[aria-current] > span { color: #fff; background: var(--accent); border-color: var(--accent); }
body[data-site-page="album-design"] .notice { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; max-width: 460px; min-width: 0; }
body[data-site-page="album-design"] .notice > summary { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 7px 10px; min-height: 28px; list-style: none; font-size: 12px; color: #8e8174; cursor: pointer; }
body[data-site-page="album-design"] .notice > summary::-webkit-details-marker { display: none; }
.retention-rule-link { color: var(--accent); font-weight: 500; white-space: nowrap; }
.retention-rule-link::after { content: ' ›'; }
.retention-details { margin-top: 12px; padding: 14px 16px; border-radius: 8px; background: #f6f1eb; }
body[data-site-page="album-design"] .notice:has([data-level="expired"]) > summary { color: #a33e25; }
body[data-site-page="album-design"] .editor-section { padding: 24px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 3px 16px #49392104; }
body[data-site-page="album-design"] .section-heading { align-items: center; margin-bottom: 20px; gap: 16px; }
body[data-site-page="album-design"] .section-heading h2 { font-size: 21px; gap: 13px; }
body[data-site-page="album-design"] .section-number { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--accent); }
body[data-site-page="album-design"] .section-heading p { margin-top: 5px; padding-left: 35px; font-size: 13px; }
body[data-site-page="album-design"] #photoCount { border: 0; background: none; padding: 0; font-size: 13px; color: #86796c; }
.photo-workspace { border-radius: 10px; }
.photo-workspace.is-dragging { outline: 2px dashed var(--accent); outline-offset: 8px; background: #fff8ef; }
body[data-site-page="album-design"] .photo-import-actions { display: flex; justify-content: flex-end; margin: 0 0 18px; padding: 0; background: none; border: 0; }
.photo-section { position: relative; }
.photo-section:has(.photo-workspace[data-state="populated"]) .section-heading > div { max-width: calc(100% - 450px); }
body[data-site-page="album-design"] .photo-section:has(.photo-workspace[data-state="populated"]) .photo-import-actions { position: absolute; top: 24px; right: 150px; }
body[data-site-page="album-design"] .photo-import-option { min-height: 42px; padding: 10px 16px; border-color: #d7a37d; border-radius: 8px; gap: 8px; }
body[data-site-page="album-design"] .photo-import-option strong { font-size: 14px; font-weight: 550; }
body[data-site-page="album-design"] .photo-import-gallery { border-color: var(--accent); }
.photo-workspace[data-state="empty"] { padding: 24px; border: 1px dashed #ded2c5; background: #fdfbf8; }
body[data-site-page="album-design"] .photo-workspace[data-state="empty"] .photo-import-actions { display: grid; justify-content: stretch; justify-items: center; gap: 18px; margin-bottom: 0; }
.empty-photo-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 120px; padding: 12px; border: 0; background: transparent; color: #56483c; }
.empty-photo-upload svg { width: 38px; height: 38px; margin-bottom: 6px; color: #a05b31; }
.empty-photo-upload strong { font-size: 18px; font-weight: 600; }
.empty-photo-upload > span { font-size: 13px; color: #8b7d6e; }
.photo-workspace[data-state="empty"] #uploadLimit { text-align: center; margin-top: 18px; }
body[data-site-page="album-design"] .photos { display: block; }
.photo-viewport { max-height: var(--photo-viewport-height, none); overflow-y: auto; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #c8b6a4 #f4f1ec; padding: 4px; margin: -4px; border-radius: 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; align-items: start; }
body[data-site-page="album-design"] .photo-note-card { position: relative; border: 0; border-radius: 0; background: transparent; overflow: visible; display: block; }
.photo-thumbnail { display: block; width: 100%; border: 0; padding: 0; border-radius: 8px; background: none; }
.photo-thumbnail img { display: block; width: 100%; aspect-ratio: 1 / 1.12; height: auto; max-height: 190px; border-radius: 8px; object-fit: cover; background: #f5f2ec; }
.photo-thumbnail > span { display: block; margin-top: 6px; font-size: 11px; line-height: 1.5; color: #8d8175; }
.photo-thumbnail[aria-pressed="true"] img { outline: 2px solid #b66b3b; outline-offset: 2px; }
.photo-note-card > input { position: absolute; top: 9px; left: 9px; width: 17px; height: 17px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.photo-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; font-size: 13px; color: #877b6f; }
.photo-tools p { margin: 0; font-size: 12px; color: #a34d3d; }
.photo-tools > div { display: flex; align-items: center; gap: 16px; }
.photo-tools .photo-tools-hints { display: grid; align-self: flex-start; gap: 4px; }
#photoScrollHint { font-size: 12px; line-height: 1.5; font-weight: 400; color: #86796c; }
.photo-tools label { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.photo-tools input { width: 16px; height: 16px; accent-color: var(--accent); }
.photo-tools button { min-height: 36px; padding: 6px 10px; border: 0; border-radius: 6px; background: transparent; font-size: 13px; color: #7a6b5d; white-space: nowrap; }
.photo-tools button:not(:disabled):hover { background: #f6eee5; }
#photoEditorDialog { width: min(700px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; border: 1px solid #e9e5df; border-radius: 14px; background: #fff; color: #3d342d; box-shadow: 0 20px 70px #36291f26; }
#photoEditorDialog[open] { display: flex; flex-direction: column; }
#photoEditorDialog::backdrop { background: #29231e66; }
body:has(#photoEditorDialog[open]) { overflow: hidden; }
.photo-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #f0ece6; }
.photo-dialog-heading h2 { margin: 0; font-size: 20px; line-height: 1.5; }
.photo-dialog-heading p { margin: 5px 0 0; color: #8a7b6e; font-size: 13px; }
#photoEditorDismiss { flex: none; width: 34px; min-height: 34px; padding: 0; border: 0; background: transparent; color: #84776d; font-size: 24px; line-height: 1; }
.photo-editor { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: start; min-height: 0; gap: 24px; padding: 24px; overflow: auto; overscroll-behavior: contain; }
.photo-editor > img { width: 170px; height: 220px; object-fit: contain; background: #f8f5ef; border-radius: 8px; }
.photo-detail-fields { display: grid; grid-template-columns: 1fr; gap: 18px; }
.photo-detail-fields label { display: block; min-width: 0; font-size: 13px; color: #63564b; }
.photo-detail-fields textarea { display: block; width: 100%; min-height: 84px; margin-top: 7px; padding: 9px 11px; border: 1px solid #e1d8ce; border-radius: 7px; resize: vertical; background: #fff; line-height: 1.6; font-size: 14px; }
.photo-detail-fields textarea:focus-visible { outline: 2px solid #b66b3b; outline-offset: 2px; }
.photo-dialog-heading, .photo-dialog-footer { flex: none; }
.photo-dialog-footer { padding: 16px 24px; border-top: 1px solid #f0ece6; background: #fdfcf9; }
.photo-dialog-actions, .photo-dialog-actions > div { display: flex; align-items: center; gap: 10px; }
.photo-dialog-actions { justify-content: space-between; }
.photo-dialog-actions button { min-height: 38px; padding: 8px 13px; border: 1px solid #e4dcd2; border-radius: 7px; background: #fff; color: #66564a; font-size: 13px; }
.photo-dialog-actions #photoEditorDone { min-width: 88px; border-color: var(--accent); background: var(--accent); color: #fff; }
#photoEditorStatus { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: #837569; }
#photoEditorDialog[data-state="error"] #photoEditorStatus { color: #a33e25; }
body[data-site-page="album-design"] #uploadLimit { font-size: 12px; line-height: 1.7; margin-top: 14px; }
.design-group-title { margin: 26px 0 16px; font-size: 18px; line-height: 1.5; font-weight: 600; color: #453b32; }
.required-label { margin-left: 7px; font-size: 11px; font-weight: 400; color: #a34d3d; }
.field-error { display: block; margin-top: 7px; font-size: 12px; line-height: 1.6; font-weight: 400; color: #a33e25; }
body[data-site-page="album-design"] #albumTitle[aria-invalid="true"] { border-color: #b35239; }
body[data-site-page="album-design"] #albumTitle:placeholder-shown { background: #f8f7f4; }
body[data-site-page="album-design"] #albumTitle::placeholder { color: #9a9289; opacity: 1; }
body[data-site-page="album-design"] .fields { gap: 20px 24px; }
body[data-site-page="album-design"] .fields input, body[data-site-page="album-design"] .fields select { min-height: 44px; }
.choice-label { display: block; font-size: 14px; font-weight: 550; color: #64574c; }
.style-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.style-choices button { min-width: 0; border: 1px solid #ece7e1; border-radius: 8px; padding: 9px; background: #f8f7f5; font-size: 13px; line-height: 1.5; color: #6c6054; }
.style-choices img { display: block; width: 100%; height: 66px; object-fit: cover; border-radius: 4px; margin-bottom: 8px; }
.style-choices button[aria-pressed="true"], .order-choices button[aria-pressed="true"] { color: #a14d23; border-color: #bf7950; background: #fff8f1; }
.style-preview-note { display: block; margin-top: 7px; font-size: 11px; color: #9a8b7d; }
.order-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.order-choices button { min-height: 44px; border: 1px solid #e6dfd6; border-radius: 7px; padding: 8px; font-size: 13px; line-height: 1.5; background: #f8f7f5; color: #716458; }
body[data-site-page="album-design"] .order-boundary { font-size: 12px; line-height: 1.8; margin-top: 15px; }
body[data-site-page="album-design"] .design-dock { bottom: 0; left: 0; transform: none; width: 100%; padding: 14px max(var(--site-gutter), calc((100% - 1200px) / 2)) max(14px, env(safe-area-inset-bottom)); border: 0; border-top: 1px solid #e8e2db; border-radius: 0; background: #fffffff5; box-shadow: 0 -3px 18px #4939210a; }
body[data-site-page="album-design"] .dock-main { gap: 16px; }
body[data-site-page="album-design"] .dock-summary { gap: 10px; }
body[data-site-page="album-design"] .dock-line { flex-wrap: wrap; gap: 1px 9px; }
body[data-site-page="album-design"] #dockSaveTitle { width: 100%; font-size: 14px; color: #544b41; }
body[data-site-page="album-design"] #dockPhotoCount, body[data-site-page="album-design"] #summary { font-size: 12px; font-weight: 400; color: #8a7c6f; }
body[data-site-page="album-design"] #saveStatus { font-size: 12px; line-height: 1.6; color: #8a7c6f; margin-top: 2px; white-space: normal; overflow-wrap: anywhere; }
body[data-site-page="album-design"] .dock-cover, body[data-site-page="album-design"] .dock-icon { width: 36px; height: 36px; }
body[data-site-page="album-design"] .design-dock[data-save-confirmed="true"] #dockSaveTitle { color: #486d50; }
body[data-site-page="album-design"] .design-dock[data-state="error"] #saveStatus, body[data-site-page="album-design"] .design-dock[data-state="expired"] #saveStatus { color: #a33e25; }
body[data-site-page="album-design"] .dock-actions { gap: 10px; }
body[data-site-page="album-design"] .dock-actions .edit-toggle { min-height: 38px; padding: 8px; font-size: 12px; }
body[data-site-page="album-design"] .dock-actions .save-button, body[data-site-page="album-design"] .dock-actions .next-button { min-height: 46px; padding: 11px 18px; font-size: 14px; }
#photoRemoveDialog { width: min(420px, calc(100% - 32px)); border: 1px solid #e2d8cb; border-radius: 12px; padding: 24px; background: #fffdf9; }
#photoRemoveDialog::backdrop { background: #241b1255; }
#photoRemoveDialog h2 { font-size: 20px; margin: 0 0 12px; }
#photoRemoveDialog p { font-size: 14px; line-height: 1.7; }
.photo-remove-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.photo-remove-actions button { min-height: 42px; padding: 9px 15px; border: 1px solid #d9c6b5; background: #fff; border-radius: 7px; font-size: 14px; }
.photo-remove-actions #confirmPhotoRemove { border-color: var(--accent); background: var(--accent); color: #fff; }
@media (max-width: 1280px) {
  body[data-site-page="album-design"] .site-header-inner { grid-template-columns: minmax(0, 1fr) auto; padding-block: 14px; gap: 10px 18px; }
  body[data-site-page="album-design"] .site-nav { grid-column: 1 / -1; grid-row: 2; height: auto; gap: 6px 18px; justify-content: flex-start; flex-wrap: wrap; }
  body[data-site-page="album-design"] .site-nav > a { min-height: 32px; }
  body[data-site-page="album-design"] .site-nav__link.is-active::after { bottom: 0; }
}
@media (max-width: 1000px) {
  .design-progress { flex-direction: column; gap: 12px; }
  body[data-site-page="album-design"] .notice { max-width: none; }
  body[data-site-page="album-design"] .notice > summary { justify-content: flex-start; }
  .photo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .photo-section:has(.photo-workspace[data-state="populated"]) .section-heading > div { max-width: none; }
  body[data-site-page="album-design"] .photo-section:has(.photo-workspace[data-state="populated"]) .photo-import-actions { position: static; }
  body[data-site-page="album-design"] .dock-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  body[data-site-page="album-design"] .dock-summary { grid-column: 1; grid-row: 1; }
  body[data-site-page="album-design"] .dock-actions { display: contents; }
  body[data-site-page="album-design"] .dock-actions .edit-toggle { position: static; grid-column: 2; grid-row: 1; }
  body[data-site-page="album-design"] .dock-actions .save-button { grid-column: 1; grid-row: 2; }
  body[data-site-page="album-design"] .dock-actions .next-button { grid-column: 2; grid-row: 2; min-width: 240px; }
}
@media (max-width: 760px) {
  .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  body[data-site-page="album-design"] .basic-fields, body[data-site-page="album-design"] .preference-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-site-page="album-design"] .basic-fields .field-wide { grid-column: auto; }
  body[data-site-page="album-design"] .preference-fields .field-wide { grid-column: 1 / -1; }
  .style-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  body[data-site-page="album-design"] > main { padding-top: 20px; }
  body[data-site-page="album-design"] .page-heading h1 { font-size: 26px; }
  body[data-site-page="album-design"] .brand-copy strong { font-size: 18px; }
  body[data-site-page="album-design"] .brand-mark, body[data-site-page="album-design"] .brand-mark svg { width: 34px; height: 34px; }
  body[data-site-page="album-design"] .header-actions { gap: 6px; }
  body[data-site-page="album-design"] .header-actions a { padding: 7px 9px; font-size: 12px; min-height: 36px; }
  body[data-site-page="album-design"] .site-nav > a { font-size: 14px; }
  body[data-site-page="album-design"] .site-nav { gap: 5px 16px; }
  .design-progress { margin-bottom: 18px; }
  .design-steps { gap: 9px; font-size: 11px; width: 100%; justify-content: space-between; }
  .design-steps li { flex-direction: column; align-items: flex-start; gap: 5px; white-space: normal; }
  .design-steps li + li::before { position: absolute; top: 13px; left: -24px; width: 18px; margin: 0; }
  .design-steps li > span { width: 26px; height: 26px; }
  body[data-site-page="album-design"] .editor-section { padding: 18px; border-radius: 12px; }
  body[data-site-page="album-design"] .section-heading { flex-wrap: wrap; margin-bottom: 16px; gap: 8px; }
  body[data-site-page="album-design"] .section-heading h2 { font-size: 18px; gap: 9px; align-items: baseline; }
  body[data-site-page="album-design"] .section-number { font-size: 15px; }
  .design-group-title { font-size: 16px; margin-block: 24px 14px; }
  body[data-site-page="album-design"] .section-heading p { padding-left: 0; font-size: 12px; }
  body[data-site-page="album-design"] #photoCount { font-size: 12px; }
  .photo-workspace[data-state="empty"] { padding: 18px 12px; }
  body[data-site-page="album-design"] .photo-import-options { width: 100%; flex-direction: column; gap: 9px; }
  body[data-site-page="album-design"] .photo-import-actions { width: 100%; }
  body[data-site-page="album-design"] .photo-import-option { flex: auto; justify-content: center; }
  .empty-photo-upload { padding: 6px; min-height: 110px; }
  .empty-photo-upload strong { font-size: 16px; }
  .empty-photo-upload > span { font-size: 12px; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .photo-tools { flex-direction: column; align-items: flex-start; gap: 8px; margin-block: 14px; }
  .photo-tools > div { align-self: flex-end; }
  .photo-dialog-heading { padding: 16px; gap: 8px; }
  .photo-dialog-heading h2 { font-size: 17px; }
  .photo-dialog-heading p { font-size: 12px; }
  .photo-editor { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .photo-editor > img { width: 100%; height: 155px; }
  .photo-detail-fields { gap: 12px; }
  .photo-dialog-footer { padding: 12px 16px; }
  .photo-dialog-actions, .photo-dialog-actions > div { gap: 6px; }
  .photo-dialog-actions button { padding: 8px; font-size: 12px; }
  .photo-dialog-actions #photoEditorDone { min-width: 64px; }
  body[data-site-page="album-design"] .basic-fields, body[data-site-page="album-design"] .preference-fields { grid-template-columns: 1fr; gap: 18px; }
  body[data-site-page="album-design"] .field-wide, body[data-site-page="album-design"] .field-full { grid-column: auto; }
  .style-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .style-choices img { height: 60px; }
  .style-choices button { font-size: 12px; padding: 8px; }
  .order-choices { gap: 7px; }
  .order-choices button { font-size: 12px; padding: 8px 5px; }
  body[data-site-page="album-design"] .dock-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 10px; }
  body[data-site-page="album-design"] .dock-summary { grid-column: 1 / -1; padding-right: 92px; }
  body[data-site-page="album-design"] .dock-actions .edit-toggle { position: absolute; right: var(--site-gutter); top: 12px; min-height: 32px; padding: 5px; font-size: 11px; }
  body[data-site-page="album-design"] .dock-actions .save-button, body[data-site-page="album-design"] .dock-actions .next-button { min-width: 0; min-height: 44px; padding: 10px 7px; font-size: 13px; gap: 5px; }
  body[data-site-page="album-design"] .next-detail { display: none; }
  body[data-site-page="album-design"] .next-detail-mobile { display: inline; }
  body[data-site-page="album-design"] #dockPhotoCount, body[data-site-page="album-design"] #summary { font-size: 11px; }
}
@media (max-width: 380px) {
  body[data-site-page="album-design"] .site-header-inner { grid-template-columns: 1fr; gap: 10px; }
  body[data-site-page="album-design"] .header-actions { grid-row: 2; }
  body[data-site-page="album-design"] .site-nav { grid-row: 3; }
  body[data-site-page="album-design"] .dock-actions .save-button, body[data-site-page="album-design"] .dock-actions .next-button { font-size: 12px; }
  body[data-site-page="album-design"] .next-button svg { width: 14px; }
}
