.product-photography-active { overflow: hidden; }
.pp-flow { position: fixed; inset: 0; z-index: 1600; overflow-y: auto; overscroll-behavior: contain; background: #f5f7fb; color: #141c2c; padding-bottom: env(safe-area-inset-bottom); }
.product-photography-active .image-preview-backdrop { z-index: 1700; }
.product-photography-active .image-preview-sheet { z-index: 1701; }
.product-photography-active #toast { z-index: 1800; }
.pp-shell { max-width: 850px; min-height: 100%; margin: 0 auto; background: #fff; }
.pp-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: #fff; border-bottom: 1px solid #e6eaf2; }
.pp-header > div { flex: 1; min-width: 0; }
.pp-header small { font-size: 11px; color: #6451e9; }
.pp-header h2 { margin: 3px 0 0; font-size: 20px; }
.pp-flow button, .pp-upload { touch-action: manipulation; }
.pp-flow button { cursor: pointer; }
.pp-flow button:disabled, .pp-flow .is-disabled { opacity: .45; cursor: default; }
.pp-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid #e3e7ef; border-radius: 8px; background: #fff; color: #56637a; }
.pp-icon svg, .pp-result-actions svg, .pp-upload svg { width: 18px; height: 18px; flex-shrink: 0; }
.pp-flow main { padding: 0 24px 28px; }
.pp-steps { display: flex; justify-content: space-between; padding: 20px 0; color: #8b94a7; font-size: 12px; border-bottom: 1px solid #edf0f6; }
.pp-steps .active { color: #6451e9; }
.pp-section { padding: 24px 0; border-bottom: 1px solid #e9edf3; }
.pp-section-title { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pp-section h3 { margin: 0; font-size: 17px; }
.pp-section-title > span, .pp-caption { color: #7a8599; font-size: 12px; }
.pp-references { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.pp-reference, .pp-upload { aspect-ratio: 1 / 1; min-width: 0; border: 1px solid #e1e6ee; border-radius: 8px; background: #f6f8fb; }
.pp-reference { position: relative; overflow: hidden; }
.pp-reference img { width: 100%; height: 100%; object-fit: contain; }
.pp-reference > span { position: absolute; bottom: 4px; left: 4px; background: #fff; padding: 2px 5px; font-size: 11px; }
.pp-reference button { position: absolute; top: 0; right: 0; width: 34px; height: 34px; min-width: 0; }
.pp-reference .pp-reference-primary { top: auto; right: auto; bottom: 4px; left: 4px; width: auto; min-height: 28px; height: auto; padding: 4px 7px; border: 1px solid #ddd8fb; border-radius: 6px; background: #fff; color: #5b48dc; font-size: 11px; }
.pp-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 12px; color: #6451e9; cursor: pointer; text-align: center; }
.pp-field { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; font-size: 12px; color: #687389; min-width: 0; }
.pp-flow input:not([type=radio]):not([type=checkbox]):not([type=file]), .pp-flow textarea, .pp-flow select { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #e1e5ee; border-radius: 8px; padding: 11px 12px; font: inherit; font-size: 14px; background: #fff; color: #172132; }
.pp-flow textarea { min-height: 82px; resize: vertical; }
.pp-flow :focus-visible { outline: 2px solid #7663ec; outline-offset: 2px; }
.pp-flow fieldset { padding: 0; margin: 18px 0; border: 0; min-width: 0; }
.pp-flow legend { font-size: 12px; color: #687389; margin-bottom: 10px; }
.pp-segments, .pp-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pp-segments label { position: relative; cursor: pointer; }
.pp-segments input { position: absolute; opacity: 0; }
.pp-segments span { min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid #e2e6ef; border-radius: 8px; font-size: 13px; }
.pp-segments input:checked + span { border-color: #7663ec; color: #5b48dc; background: #f1efff; }
.pp-segments input:focus-visible + span { outline: 2px solid #7663ec; outline-offset: 2px; }
.pp-shots label { display: flex; align-items: center; gap: 7px; min-height: 52px; font-size: 13px; cursor: pointer; }
.pp-shots input { accent-color: #6650e8; width: 17px; height: 17px; }
.pp-shots span { display: flex; flex-direction: column; gap: 4px; }
.pp-shots b { font-size: 11px; font-weight: 500; color: #8390a5; }
.pp-settings { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.pp-total { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 12px; font-size: 13px; }
.pp-total span { color: #6650e8; }
.pp-primary { width: 100%; min-height: 46px; padding: 10px 16px; border: 0; border-radius: 8px; background: #6550e8; color: #fff; font-size: 14px; font-weight: 600; }
.pp-status { margin: 14px 0 0; color: #59677e; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.pp-text { border: 0; padding: 8px 0; color: #6451e9; background: none; font-size: 13px; }
.pp-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pp-result { min-width: 0; overflow: hidden; border: 1px solid #e5e9f0; border-radius: 8px; }
.pp-result-image { display: flex; align-items: center; justify-content: center; aspect-ratio: var(--pp-image-ratio, 1 / 1); background: #f2f5f8; color: #8b94a4; font-size: 13px; }
.pp-result-image img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.pp-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 10px 4px; }
.pp-result h4 { font-size: 14px; margin: 0; }
.pp-result small { font-size: 11px; color: #7a8599; }
.pp-result-actions { display: flex; gap: 3px; padding: 5px; flex-wrap: wrap; }
.pp-result-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: 1; min-height: 44px; border: 0; background: none; color: #647089; font-size: 12px; white-space: nowrap; }
.pp-result > .pp-text { margin-left: 12px; }
.pp-edit { padding: 0 12px 12px; }
.pp-edit button { margin-top: 8px; font-size: 12px; }
.pp-error { padding: 0 10px; color: #ae4141; font-size: 12px; overflow-wrap: anywhere; line-height: 1.6; }
.pp-tasks { margin-top: 14px; min-height: 44px; }
.tool-feature-card.tool-feature-card-photography { background: #246b67; }
.pp-more, .pp-setup-summary { padding: 16px 0; color: #687389; font-size: 13px; }
.pp-info { margin-top: 16px; color: #687389; font-size: 12px; }
.pp-info > summary { cursor: pointer; min-height: 32px; line-height: 32px; }
.pp-more summary, .pp-setup-summary > summary, .pp-history summary { cursor: pointer; min-height: 32px; line-height: 32px; }
.pp-setup-summary { border-bottom: 1px solid #e6eaf2; }
.pp-setup-summary .pp-section { border: 0; }
.pp-preferences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pp-progress { margin: 7px 0 0; color: #657286; font-size: 12px; }
.pp-shot-tabs { display: none; }
.pp-view-tools, .pp-quick-adjust, .pp-compare-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 6px 10px; }
.pp-view-tools button { display: inline-flex; gap: 4px; align-items: center; min-height: 38px; padding: 5px 0; border: 0; background: none; color: #6550e8; font-size: 12px; }
.pp-view-tools svg { width: 16px; height: 16px; }
.pp-quick-adjust { padding: 8px 0; }
.pp-quick-adjust button, .pp-compare-controls button { min-height: 36px; padding: 6px 10px; border: 1px solid #e2e6ee; border-radius: 6px; background: #f8f9fc; color: #526179; font-size: 12px; }
.pp-compare-controls button[aria-pressed=true] { color: #6550e8; border-color: #a99cef; background: #f3f1ff; }
.pp-compare-controls select { width: auto; flex: 1; min-width: 100px; }
.pp-result.is-comparing { grid-column: 1 / -1; }
.pp-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; height: 100%; }
.pp-compare figure { position: relative; min-width: 0; min-height: 0; margin: 0; }
.pp-compare figcaption { position: absolute; left: 8px; bottom: 8px; padding: 4px 6px; background: #fff; color: #56637a; font-size: 11px; border-radius: 4px; }
.pp-history { margin: 0 10px 10px; border-top: 1px solid #edf0f6; color: #69768a; font-size: 12px; }
.pp-history > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pp-history button { display: flex; align-items: center; gap: 5px; min-width: 0; min-height: 44px; padding: 4px; border: 1px solid #e2e6ee; border-radius: 6px; background: #fff; color: #5e6b80; font-size: 11px; text-align: left; }
.pp-history button[aria-pressed=true] { border-color: #8775e9; background: #f4f2ff; }
.pp-history img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.pp-reference-switch { display: flex; gap: 6px; padding: 0 10px 8px; }
.pp-reference-switch button { width: 46px; height: 46px; padding: 2px; border: 1px solid #e1e6ee; border-radius: 6px; background: #fff; }
.pp-reference-switch button[aria-pressed=true] { border-color: #8775e9; }
.pp-reference-switch img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 601px) {
  .pp-result.is-comparing .pp-result-image { aspect-ratio: var(--pp-compare-ratio, 2 / 1); }
}
@media (max-width: 600px) {
  .pp-flow main { padding: 0 18px 24px; }
  .pp-header { padding: 12px 18px; }
  .pp-result-grid { grid-template-columns: 1fr; }
  .pp-settings { grid-template-columns: 1fr; gap: 0; }
  .pp-flow fieldset { margin-block: 14px; }
  .pp-section { padding-block: 20px; }
  .pp-result:not(.is-active) { display: none; }
  .pp-shot-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
  .pp-shot-tabs button { min-width: 0; min-height: 52px; padding: 7px 2px; border: 1px solid #e1e6ee; border-radius: 6px; color: #5e6b80; background: #fff; font-size: 12px; }
  .pp-shot-tabs button[aria-pressed=true] { border-color: #8775e9; background: #f4f2ff; color: #6550e8; }
  .pp-shot-tabs small { display: block; margin-top: 4px; color: #7c8799; font-size: 10px; }
  .pp-compare { grid-template-columns: 1fr; }
  .pp-compare figure:not(.is-visible) { display: none; }
}
