/* FRPPR Studio — quiet editorial space for the collection, with clear controls. */
.merchant-dashboard:has(#view-studio.is-on) #onboard { display: none; }
.studio-workspace { --studio-border: #d9d1c4; --studio-muted: #71685c; display: grid; gap: 36px; max-width: 1400px; margin-inline: auto; }
.studio-workspace button, .studio-workspace input, .studio-workspace select { font: inherit; }
.studio-workspace button { cursor: pointer; }
.studio-workspace button:disabled, .studio-workspace :disabled + span { cursor: not-allowed; opacity: .5; }
.studio-hero { display: grid; grid-template-columns: minmax(0, 1fr) 200px; align-items: end; gap: 28px; padding: 12px 0 32px; border-bottom: 1px solid var(--studio-border); }
.studio-eyebrow { font-family: var(--mono, monospace); font-size: 10px; font-weight: 600; letter-spacing: .13em; line-height: 1.7; }
.studio-hero h2 { font-size: clamp(32px, 3.5vw, 54px); line-height: 1.1; font-weight: 700; letter-spacing: -.045em; white-space: pre-line; margin: 17px 0 18px; max-width: 700px; }
.studio-hero p { max-width: 620px; font-size: 14px; line-height: 1.9; color: var(--studio-muted); }
.studio-hero-note { align-self: stretch; display: flex; flex-direction: column; justify-content: end; align-items: start; border-inline-start: 1px solid var(--studio-border); padding-inline-start: 28px; gap: 9px; }
.studio-hero-note b { font-size: 14px; font-weight: 650; }
.studio-hero-note > span:last-child { font-size: 11px; line-height: 1.8; color: var(--studio-muted); }
.studio-spark { color: #b78600; font-size: 52px; line-height: 1; margin-bottom: 12px; }
.studio-builder { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 36px; }
.studio-steps { min-width: 0; display: grid; gap: 36px; }
.studio-step { min-width: 0; }
.studio-step + .studio-step { padding-top: 30px; border-top: 1px solid var(--studio-border); }
.studio-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.studio-section-head > div { min-width: 0; }
.studio-section-head h3 { font-size: 24px; line-height: 1.4; font-weight: 650; letter-spacing: -.03em; }
.studio-section-head p { font-size: 12px; line-height: 1.9; color: var(--studio-muted); max-width: 580px; margin-top: 7px; }
.studio-step-number { font-family: var(--mono, monospace); display: block; color: #8d7959; font-size: 11px; line-height: 1; margin-bottom: 13px; }
.studio-models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 13px; }
.studio-model { min-width: 0; padding: 5px; border: 1px solid transparent; border-radius: 8px; transition: border-color .15s, background .15s; }
.studio-model.is-selected { border-color: #b08b19; background: #fff6d8; }
.studio-model-pick { width: 100%; padding: 0; background: none; border: 0; color: var(--ink); text-align: start; }
.studio-model-pick:disabled { opacity: 1 !important; }
.studio-portrait { aspect-ratio: 3 / 4; display: block; position: relative; overflow: hidden; background: #e9e3d9; border-radius: 4px; }
.studio-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 24%; transition: transform .25s ease; }
.studio-model-pick:hover:not(:disabled) .studio-portrait img { transform: scale(1.035); }
.studio-model-marker { position: absolute; inset-inline-end: 9px; inset-block-end: 9px; display: grid; place-items: center; width: 29px; height: 29px; background: #fff9; color: var(--ink); border: 1px solid #fff7; border-radius: 50%; font-size: 20px; font-weight: 400; }
.studio-model.is-selected .studio-model-marker { background: var(--tape); border-color: var(--tape); font-size: 15px; }
.studio-no-image { height: 100%; display: grid; place-items: center; padding: 16px; color: var(--studio-muted); font-size: 12px; }
.studio-model-name { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px; padding: 10px 2px 0; font-size: 15px; font-weight: 650; }
.studio-model-name small { font-size: 10px; color: var(--studio-muted); font-weight: 400; }
.studio-sheet-link { min-height: 44px; text-align: start; background: none; border: 0; padding: 7px 2px 0; font-size: 10px !important; color: #766343; text-decoration: underline; text-underline-offset: 4px; }
.studio-fields { min-width: 0; padding: 0; margin: 0; border: 0; }
.studio-title-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.studio-fields > .input { width: 100%; min-height: 46px; margin-bottom: 20px; font-size: 14px; border-color: var(--studio-border); background: #fffaf3; }
.studio-looks { display: grid; gap: 16px; }
.studio-look { padding: 16px; border: 1px solid var(--studio-border); border-radius: 9px; background: #fffdf9; }
.studio-look-heading { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.studio-look-number { width: 24px; height: 24px; display: grid; place-items: center; font-family: var(--mono, monospace); font-size: 11px; background: #eee7db; border-radius: 50%; flex-shrink: 0; }
.studio-look-label { min-width: 0; flex: 1; }
.studio-look-label .input { min-width: 0; width: 100%; padding: 6px; min-height: 38px; background: none; border: 1px solid transparent; font-size: 14px; font-weight: 600; box-shadow: none; }
.studio-look-label .input:hover, .studio-look-label .input:focus { border-color: var(--studio-border); }
.studio-text-button { min-height: 44px; padding: 6px 3px; border: 0; background: none; color: #6b5941; font-size: 11px !important; text-decoration: underline; text-underline-offset: 4px; }
.studio-pieces { display: grid; gap: 13px; }
.studio-piece { display: grid; grid-template-columns: 76px minmax(0, 1fr) 30px; gap: 12px; padding-top: 14px; border-top: 1px solid #eae4d9; align-items: start; }
.studio-piece-preview { aspect-ratio: 3 / 4; display: grid; place-items: center; color: #a69881; background: #f0ece5; border: 1px dashed #d4cbbd; border-radius: 4px; font-size: 26px; overflow: hidden; }
.studio-piece-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.studio-piece-fields { min-width: 0; }
.studio-piece-fields > label:first-child { display: block; margin: 0 0 5px; font-size: 10px; color: var(--studio-muted); }
.studio-piece-fields .input { font-size: 12px; min-height: 36px; padding: 5px 10px; width: 100%; max-width: 250px; }
.studio-upload { position: relative; display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: 38px; margin-top: 5px; color: #594826; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; font-size: 11px; }
.studio-upload input { position: absolute; width: 100%; height: 100%; inset: 0; opacity: 0; cursor: pointer; }
.studio-upload:focus-within { outline: 3px solid #9c7110; outline-offset: 3px; border-radius: 3px; }
.studio-filename { display: block; overflow-wrap: anywhere; color: var(--studio-muted); font-size: 10px; line-height: 1.5; }
.studio-icon-button { display: grid; place-items: center; width: 32px; min-width: 32px; height: 44px; padding: 0; border: 0; background: none; color: #796c58; font-size: 23px !important; }
.studio-add-piece { width: 100%; min-height: 44px; margin-top: 16px; padding: 8px 12px; border: 1px dashed #d4cbbd; border-radius: 4px; background: #faf7f1; font-size: 11px !important; color: #6b5941; }
.studio-collection-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.studio-collection-foot > span { color: var(--studio-muted); font-size: 10px; line-height: 1.8; }
.studio-collection-foot .btn { min-height: 44px; }
.studio-poses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.studio-pose { position: relative; display: flex; align-items: center; min-height: 64px; gap: 12px; padding: 14px 12px; border: 1px solid var(--studio-border); border-radius: 6px; font-size: 12px; cursor: pointer; }
.studio-pose input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.studio-pose:focus-within { outline: 3px solid #9c7110; outline-offset: 3px; }
.studio-pose.is-selected { background: #fff3c8; border-color: #b79323; }
.studio-pose-number { color: #988971; font-family: var(--mono, monospace); font-size: 10px; }
.studio-pose-check { margin-inline-start: auto; font-size: 16px; }
.studio-summary { position: sticky; top: 24px; background: #f0ebe2; border: 1px solid var(--studio-border); border-radius: 10px; padding: 24px 20px; }
.studio-summary-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.studio-summary-top > span { font-size: 13px; font-weight: 600; padding-top: 5px; }
.studio-summary-top strong { display: flex; flex-direction: column; align-items: end; font-size: 46px; letter-spacing: -.06em; line-height: 1; font-weight: 600; }
.studio-summary-top small { font-size: 11px; font-weight: 400; margin-top: 6px; letter-spacing: 0; color: var(--studio-muted); }
.studio-summary-top strong.studio-count-word { font-size: 25px; letter-spacing: 0; line-height: 1.5; }
.studio-calculation { font-size: 11px; color: var(--studio-muted); margin: 15px 0 22px; }
.studio-calculation > span { margin: 0 5px; }
.studio-allowance { border-top: 1px solid #d8cfbf; padding-top: 19px; display: grid; gap: 5px; }
.studio-allowance b { font-family: var(--mono, monospace); font-size: 18px; font-weight: 500; }
.studio-allowance span, .studio-allowance small { font-size: 10px; line-height: 1.7; color: var(--studio-muted); }
.studio-attempts { display: grid; gap: 5px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #d8cfbf; }
.studio-attempts b { font-size: 11px; font-weight: 600; line-height: 1.8; }
.studio-attempts span { font-size: 10px; line-height: 1.8; color: var(--studio-muted); }
.studio-quota-note { margin: 14px 0 20px; font-size: 11px; line-height: 1.9; color: #6f6556; }
.studio-start { width: 100%; min-height: 49px; font-size: 12px; padding-inline: 12px; }
.studio-start:disabled { opacity: .55; }
.studio-start-hint { font-size: 10px; line-height: 1.8; margin-top: 12px; color: var(--studio-muted); }
.studio-billing-link { display: inline-block; min-height: 44px; padding-block: 12px; font-size: 12px; text-underline-offset: 4px; }
.studio-privacy { display: flex; gap: 10px; margin-top: 23px; padding-top: 18px; border-top: 1px solid #d8cfbf; font-size: 10px; line-height: 1.9; color: var(--studio-muted); }
.studio-privacy > span { font-size: 22px; color: #9a7c36; flex-shrink: 0; line-height: 1.3; }
.studio-feedback { padding: 14px 18px; border: 1px solid #c7d8c3; background: #eff4e8; border-radius: 6px; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.studio-feedback[hidden] { display: none; }
.studio-feedback.is-error { border-color: #e1c1b1; background: #f9ece4; color: #85452f; }
.studio-history { border-top: 1px solid var(--studio-border); padding-top: 36px; min-width: 0; }
.studio-history > .studio-section-head h3 { margin-top: 6px; }
.studio-empty { padding: 44px 24px; text-align: center; background: #f4eee4; border: 1px dashed #d6cbb9; border-radius: 8px; color: var(--studio-muted); font-size: 13px; line-height: 1.8; }
.studio-empty > span { display: block; color: #a38e68; font-size: 35px; margin-bottom: 11px; }
.studio-empty h4 { font-size: 18px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.studio-empty p { max-width: 430px; margin: 10px auto 0; font-size: 12px; }
.studio-session { border: 1px solid var(--studio-border); border-radius: 10px; padding: 23px; background: #fffdf9; margin-bottom: 20px; }
.studio-session > header { display: flex; justify-content: space-between; align-items: start; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
.studio-session h4 { font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.studio-session header p { font-size: 11px; color: var(--studio-muted); margin-top: 5px; }
.studio-session-actions { display: flex; align-items: center; gap: 17px; }
.studio-session-actions .btn { min-height: 44px; font-size: 11px; }
.studio-shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.studio-shot { min-width: 0; margin: 0; }
.studio-shot-image { aspect-ratio: 2 / 3; background: #ede7dc; border-radius: 5px; overflow: hidden; }
.studio-shot-image > a { display: block; width: 100%; height: 100%; }
.studio-shot-image img { width: 100%; height: 100%; object-fit: contain; }
.studio-shot-state { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; text-align: center; padding: 15px; color: #7b6c52; font-size: 11px; }
.studio-shot-state > span { font-size: 28px; }
.studio-shot-state b { font-weight: 500; }
.studio-shot-state small { font-size: 9px; line-height: 1.8; }
.studio-shot-state.is-error { color: #98563c; background: #f2e7df; }
.studio-shot figcaption { display: grid; gap: 4px; padding-top: 11px; font-size: 11px; line-height: 1.5; }
.studio-shot figcaption b { font-weight: 600; overflow-wrap: anywhere; }
.studio-shot figcaption span { color: var(--studio-muted); font-size: 10px; }
.studio-shot figcaption a { width: fit-content; min-height: 44px; padding-top: 10px; color: #6d5735; text-underline-offset: 4px; }
.studio-retry-note { font-size: 11px; line-height: 1.9; margin-top: 18px; border-top: 1px solid var(--studio-border); padding-top: 15px; color: var(--studio-muted); }
.studio-sheet-dialog { padding: 25px; width: min(1120px, calc(100% - 36px)); max-height: calc(100dvh - 36px); border: 1px solid #cbbfae; border-radius: 10px; background: var(--paper); color: var(--ink); overflow: auto; }
.studio-sheet-dialog::backdrop { background: #14110ecc; backdrop-filter: blur(5px); }
.studio-sheet-heading { display: flex; gap: 20px; justify-content: space-between; align-items: start; }
.studio-sheet-heading h3 { font-size: 26px; margin-top: 7px; line-height: 1.5; }
.studio-sheet-heading h3 small { font-size: 13px; font-weight: 400; color: #71685c; }
.studio-sheet-dialog > p { font-size: 13px; line-height: 1.9; margin: 16px 0 24px; max-width: 850px; color: #71685c; }
.studio-sheet-dialog > img { display: block; width: 100%; height: auto; border-radius: 4px; background: #e9e3d9; }
.studio-sheet-original { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: 12px; text-underline-offset: 4px; }
[dir="rtl"] .studio-hero h2 { letter-spacing: 0; line-height: 1.5; }
[dir="rtl"] .studio-section-head h3 { letter-spacing: 0; }
[dir="rtl"] .studio-eyebrow { letter-spacing: .04em; }
@media (min-width: 1450px) { .studio-models { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1120px) {
  .studio-builder { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .studio-summary { position: static; display: block; }
  .studio-summary-top { max-width: 500px; }
  .studio-summary-top strong { flex-direction: row; align-items: baseline; gap: 10px; }
  .studio-start { max-width: 420px; }
  .studio-models { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .studio-workspace { gap: 26px; }
  .studio-hero { grid-template-columns: minmax(0, 1fr); padding-top: 4px; gap: 18px; }
  .studio-hero h2 { font-size: 38px; }
  .studio-hero-note { display: none; }
  .studio-models { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 6px; }
  .studio-section-head h3 { font-size: 23px; }
  .studio-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-sheet-dialog { padding: 18px; }
}
@media (max-width: 480px) {
  .studio-models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-model-name { font-size: 16px; }
  .studio-sheet-link { font-size: 11px !important; }
  .studio-hero h2 { font-size: 34px; }
  .studio-look { padding: 12px; }
  .studio-piece { grid-template-columns: 66px minmax(0, 1fr) 25px; gap: 9px; }
  .studio-icon-button { min-width: 25px; width: 25px; }
  .studio-pose { min-height: 60px; gap: 7px; font-size: 11px; padding-inline: 9px; }
  .studio-summary { padding: 22px 18px; }
  .studio-session { padding: 16px; }
  .studio-session-actions { width: 100%; justify-content: space-between; }
  .studio-fields :is(input, select) { font-size: 16px !important; }
  .studio-session h4 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .studio-portrait img, .studio-model { transition: none; } }
