#portrait-studio.studio-redesign{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.16fr);
  grid-template-areas:"intro intro" "render render" "upload preview" "customize preview" "review review";
  align-items:start;gap:20px;max-width:1140px;margin:32px auto;padding:0 24px 12px;
  border:0;scroll-margin-top:154px;color:#193a2d
}
#portrait-studio .studio-intro{grid-area:intro;padding:30px 0 6px}
#portrait-studio .studio-intro h2{font:400 clamp(2.55rem,6vw,5rem)/.98 Georgia,serif;letter-spacing:-.055em;margin:12px 0 16px}
#portrait-studio .studio-intro>p{max-width:52ch;margin:0;line-height:1.55;font-size:1.05rem;color:#42584b}
.studio-steps{display:flex;flex-wrap:wrap;gap:8px 22px;margin:21px 0 0;padding:0;list-style:none}
.studio-steps li{display:flex;align-items:center;gap:8px;font-size:.88rem;font-weight:650}
.studio-steps b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e6ecdf}
#portrait-studio .studio-card{min-width:0;padding:clamp(16px,3vw,27px);border:1px solid #c9d4ca;border-radius:18px;background:#fffdf7}
#portrait-studio .studio-card h3{margin:5px 0 14px;font:400 clamp(1.6rem,3vw,2.125rem)/1.1 Georgia,serif}
.studio-step-label{font-size:.76rem;letter-spacing:.12em;font-weight:750;color:#4b6b56}
.studio-upload{grid-area:upload}.studio-live-preview{grid-area:preview}.studio-customize{grid-area:customize}.studio-review{grid-area:review}
.studio-drop{position:relative;border:1.5px dashed #799080;border-radius:12px;background:#eff3ea;text-align:center;padding:15px;display:grid;gap:6px;justify-items:center}
.studio-drop.is-dragging{border-color:#193a2d;background:#dfebd8}.studio-drop:focus-within{outline:3px solid #958141;outline-offset:2px}
#portrait-studio .studio-drop label{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:0 17px;cursor:pointer;background:#193a2d;color:white;border-radius:7px}
#portrait-studio .studio-drop input{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0;margin:0}
.studio-drop small,.studio-drop>span{font-size:.86rem;color:#4b6052}.studio-status{font-size:.9rem;color:#415b4a;line-height:1.45}
#portrait-studio .studio-secondary-actions,#portrait-studio .studio-request-buttons{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}
#portrait-studio .studio-secondary-actions button,#portrait-studio #portrait-copy,#portrait-studio #portrait-download{background:#fffdf7;color:#193a2d}
#portrait-studio button{min-height:44px}
#portrait-studio .studio-preview-header,#portrait-studio .studio-preview-foot,#portrait-studio .studio-review-intro{display:flex;justify-content:space-between;align-items:center;gap:10px 16px;flex-wrap:wrap}
#portrait-studio .studio-compare,#portrait-studio .portrait-consent{display:flex;gap:8px;align-items:baseline;margin:0}
#portrait-studio .studio-compare input,#portrait-studio .portrait-consent input{margin:0;flex:none;accent-color:#193a2d}
#portrait-studio .portrait-canvas-wrap{margin:4px 0 15px;min-height:360px;background:#e8ebdf;padding:18px}
#portrait-studio .portrait-canvas-wrap canvas{display:none;width:auto;max-width:100%;max-height:min(66vh,560px);height:auto;object-fit:contain;box-shadow:0 9px 24px #233b2a30}
#portrait-studio #portrait-empty{text-align:center;display:grid;justify-items:center;gap:8px;color:#526958}
#portrait-studio #portrait-empty svg{stroke:#6d8572;stroke-width:2}
#portrait-studio [hidden]{display:none!important}
#portrait-studio .studio-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#portrait-studio .studio-two>label{min-width:0;margin-top:4px}
#portrait-studio .studio-two select{padding-right:8px}
#portrait-studio .studio-options{border-top:1px solid #dae1d7;margin-top:12px}
#portrait-studio .studio-options summary{min-height:42px;padding:11px 0;cursor:pointer;font-size:.93rem;font-weight:650}
#portrait-studio .studio-options-body{padding:0 0 8px}
#portrait-studio .studio-options-body>label:first-child{margin-top:6px}
#portrait-studio .studio-review{margin:0}
#portrait-studio .studio-review-total{border-radius:99px;padding:8px 14px;margin:0;background:#e6ecdf;font-weight:750;white-space:nowrap}
#portrait-studio .studio-review>p{max-width:68ch;line-height:1.5}
#portrait-studio .studio-request-buttons a{text-underline-offset:3px;font-size:.9rem}
#portrait-studio .portrait-consent{margin-top:14px}
@media(min-width:850px){#portrait-studio .studio-live-preview{position:sticky;top:158px}}
@media(max-width:849px){
  #portrait-studio.studio-redesign{grid-template-columns:minmax(0,1fr);grid-template-areas:"intro" "render" "upload" "preview" "customize" "review";gap:13px;margin:14px auto;padding:0 14px 14px;scroll-margin-top:128px}
  #portrait-studio .studio-intro{padding-top:16px}
  #portrait-studio .portrait-canvas-wrap{min-height:230px}
}
@media(max-width:380px){#portrait-studio .studio-two{grid-template-columns:minmax(0,1fr);gap:1px}}
#portrait-studio .studio-ai{background:#eef3e8;border:1px solid #cad7c9;border-radius:12px;padding:0 13px 12px}
#portrait-studio .studio-ai:not([open]){padding-bottom:0}
#portrait-studio .studio-ai summary small{margin-left:6px;color:#49604f}
#portrait-studio .studio-ai p{font-size:.88rem;line-height:1.45}
#portrait-studio .studio-ai .portrait-consent{margin:12px 0}
#portrait-studio .studio-ai #portrait-ai-result{border-top:1px solid #c6d1c6}
.studio-render{grid-area:render}
#portrait-studio .studio-render>p{max-width:70ch;line-height:1.55}
#portrait-studio .studio-render select{max-width:340px}
#portrait-studio .studio-render-output{display:grid;grid-template-columns:minmax(120px,260px) minmax(0,1fr);gap:20px;align-items:start}
#portrait-studio .studio-render-output img{width:100%;height:auto;border-radius:10px}
#portrait-studio .studio-render-output h4{margin:0;font-size:1.2rem}
@media(max-width:600px){#portrait-studio .studio-render-output{grid-template-columns:1fr}}

/* The print workbench: its primary task is photo, comparison, and export. */
#portrait-studio.relief-studio{display:block;max-width:1320px;margin:22px auto 36px;padding:22px 20px 0;border:0}
.relief-masthead{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:0 0 25px}
.relief-label{margin:0;color:#546757;font-size:.76rem;font-weight:800;letter-spacing:.14em}
.relief-label span{color:#a74c35}
.relief-masthead h2{font:400 clamp(3rem,6.5vw,6.6rem)/.94 Georgia,serif;letter-spacing:-.07em;margin:12px 0;color:#183b2d}
.relief-subtitle{font-size:1.05rem;line-height:1.5;margin:0;color:#475c4e}
.relief-steps{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:0}
.relief-steps li{display:flex;align-items:center;gap:7px;padding:8px 10px;white-space:nowrap;border:1px solid #c1c9bd;color:#40564a;border-radius:7px;font-size:.83rem}
.relief-steps li[aria-current=step]{background:#193b2d;color:#fffdf6;border-color:#193b2d}
.relief-steps b,.relief-compare figcaption>b{font:600 .78rem ui-monospace,monospace}
.relief-workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,330px);border:1px solid #263c31;border-radius:20px;overflow:hidden;background:#fffdf6}
.relief-desk{min-width:0;color:#eef2e6;background:radial-gradient(circle at 52% 42%,#30453a 0,#192b23 49%,#13241c 100%);padding:22px}
.relief-desk-top,.relief-desk-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#portrait-studio .relief-desk h3{font:400 1.65rem Georgia,serif;margin:0}
#portrait-render-stage{border:1px solid #849387;color:#e7efe1;border-radius:6px;padding:6px 8px;font:.72rem ui-monospace,monospace;letter-spacing:.04em}
.relief-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:18px 0 13px}
.relief-compare figure{min-width:0;margin:0;border:1px solid #6a7e6d;border-radius:12px;overflow:hidden;background:#1b2e24}
.relief-compare figcaption{display:flex;gap:8px;align-items:center;padding:11px 10px;background:#20352a;font-weight:700;font-size:.87rem}
.relief-compare figcaption>b{color:#edb798}
.relief-art-well{width:100%;aspect-ratio:3/4;max-height:435px;position:relative;display:grid;place-items:center;border-top:1px solid #6a7e6d;background:radial-gradient(#a8b6a45c 1px,transparent 1px) center/16px 16px,#263a30}
.relief-result .relief-art-well{background:radial-gradient(#a8b6a465 1px,transparent 1px) center/16px 16px,#34463a}
.relief-art-well>img,.relief-art-well>canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#0e2018}
.relief-placeholder{display:grid;justify-items:center;gap:6px;text-align:center;padding:10px;font-size:.89rem;line-height:1.4}
.relief-placeholder svg{stroke:#e5b598;stroke-width:1.5;margin:0 0 5px}
.relief-placeholder span,.relief-desk-bottom{color:#c6d4c7;font-size:.82rem}
.relief-desk-bottom button{border-color:#87998b!important;background:#263c30!important;padding:6px 10px!important}
.relief-settings{min-width:0;padding:23px 20px}
#portrait-studio .relief-settings h3{font:400 1.8rem/1.1 Georgia,serif;margin:6px 0 9px}
.relief-controls-head>p:last-child,.relief-status,.relief-export p{color:#42594b;font-size:.9rem;line-height:1.45}
#portrait-studio .relief-sample{width:100%;display:flex;justify-content:space-between;align-items:center;color:#193a2d;background:#f4eee1;border-color:#b2beb1;margin:8px 0 12px;font-weight:650}
#portrait-studio .relief-primary{display:flex;align-items:center;justify-content:center;min-height:45px;width:100%;padding:8px 10px;margin:9px 0;text-decoration:none;border:1px solid #963c2b;border-radius:7px;background:#a74331;color:#fffef9;font-weight:750;cursor:pointer}
#portrait-studio .relief-primary:hover{background:#873223}
#portrait-studio .relief-file{position:absolute;width:1px!important;height:1px!important;clip-path:inset(50%);padding:0!important;margin:0!important}
#portrait-studio .relief-file-label[aria-disabled=true]{opacity:.52;cursor:not-allowed}
#portrait-render-controls:focus-within .relief-file-label:has(+ .relief-file:focus-visible){outline:3px solid #958141;outline-offset:3px}
#portrait-studio .relief-consent{margin-top:14px;font-size:.85rem;line-height:1.42}
#portrait-studio .relief-settings small{display:block;color:#4c6053;font-size:.79rem}
.relief-status{min-height:32px;margin-bottom:5px}
.relief-export{border-top:1px solid #cbd5c9;margin-top:14px;padding-top:12px}
.relief-export>a{display:block;text-align:center;margin:8px 0;text-underline-offset:3px}
.relief-export summary{cursor:pointer;padding:8px 0;color:#254638;font-weight:650}
.relief-advanced{margin-top:18px;border:1px solid #b5c2b6;border-radius:13px;background:#fcf9ee}
.relief-advanced>summary{padding:15px 20px;cursor:pointer}
.relief-advanced>summary span{display:inline-block;margin-left:10px;color:#526556;font-size:.88rem}
.relief-manual{display:grid;grid-template-columns:1fr 1.16fr;grid-template-areas:"upload preview" "customize preview" "review review";gap:15px;padding:14px}
@media(max-width:900px){
 .relief-workbench{grid-template-columns:1fr}
 .relief-desk{padding:14px}
 .relief-art-well{max-height:350px}
 .relief-masthead{display:block}
 .relief-steps{margin-top:15px}
 .relief-settings{padding:15px 17px}
 .relief-manual{grid-template-columns:1fr;grid-template-areas:"upload" "preview" "customize" "review"}
}
@media(max-width:430px){
 #portrait-studio.relief-studio{padding:14px 12px 0;margin-top:13px}
 .relief-compare{gap:7px}
 .relief-compare figcaption{font-size:.78rem;padding:8px 6px}
 .relief-placeholder{font-size:.8rem;gap:3px}.relief-placeholder span{font-size:.72rem}.relief-placeholder svg{width:32px;height:32px}
}

.relief-progress{margin:14px 0 8px;padding:12px;border:1px solid #b5c4b8;border-radius:9px;background:#edf2e9}
.relief-progress-title,.relief-progress-meta{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap;font-size:.82rem}
.relief-progress-title strong{color:#193a2d}
.relief-progress-title span,.relief-progress-meta{color:#455b4c}
.relief-progress progress{display:block;appearance:none;width:100%;height:9px;margin:9px 0;border:0;border-radius:99px;overflow:hidden;background:#cbd8c8;accent-color:#a74331}
.relief-progress progress::-webkit-progress-bar{background:#cbd8c8;border-radius:99px}
.relief-progress progress::-webkit-progress-value{background:#a74331;border-radius:99px}
.relief-progress progress::-moz-progress-bar{background:#a74331;border-radius:99px}
.relief-progress progress:indeterminate{background:repeating-linear-gradient(120deg,#a74331 0 11px,#b65a48 11px 22px);background-size:32px 100%;animation:relief-wait 1.1s linear infinite}
.relief-progress progress:indeterminate::-webkit-progress-bar{background:transparent}
.relief-progress progress:indeterminate::-webkit-progress-value{background:transparent}
.relief-progress progress:indeterminate::-moz-progress-bar{background:transparent}
.relief-progress[data-stage=failed]{background:#f8eee7;border-color:#d5afa1}
@keyframes relief-wait{to{background-position:32px 0}}
@media(prefers-reduced-motion:reduce){.relief-progress progress:indeterminate{animation:none}}
