.rfm-studio {min-width:0;background:#faf8f2;color:#303128}
.rfm-stage {position:relative;isolation:isolate;min-width:0;height:clamp(430px,64svh,710px);overflow:hidden;background:radial-gradient(ellipse at 41% 22%,#f7f4ed,#e5dfd1 75%,#d7cdbb)}
.rfm-backdrop {position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none;filter:blur(7px);transform:scale(1.025)}
.rfm-model-image,.rfm-flat-host {width:100%;height:100%;display:block}
.rfm-model-image {position:relative;object-fit:contain;object-position:center center}
.rfm-view-label {position:absolute;left:clamp(.7rem,2vw,1.35rem);top:clamp(.7rem,2vw,1.35rem);z-index:1;max-width:70%;padding:.36rem .7rem;color:#322e24;background:#faf6e9ec;border:1px solid #ece5d1;border-radius:4px;font-size:.72rem;font-weight:650;line-height:1.3;letter-spacing:.05em}
.rfm-flat-host {background:#e9e6dc}
.rfm-flatlay {height:100%;display:flex;flex-direction:column;gap:clamp(6px,1.1vw,14px);padding:clamp(46px,4vw,62px) clamp(8px,1.35vw,23px) clamp(9px,1.35vw,23px);box-sizing:border-box}
.rfm-clothes,.rfm-extras {display:flex;align-items:stretch;gap:clamp(6px,1.1vw,14px);min-height:0}
.rfm-clothes {flex:2}.rfm-extras {flex:1}
.rfm-flatlay[data-extras="0"] .rfm-clothes,.rfm-flatlay[data-clothes="0"] .rfm-extras,.rfm-flatlay[data-enlarged="true"]>:not([hidden]) {flex:1}
.rfm-piece {position:relative;display:flex;flex-direction:column;align-items:stretch;flex:1 1 0;min-width:0;min-height:0;margin:0;padding:clamp(5px,1vw,16px);overflow:hidden;border:1px solid #d9d5c9;border-radius:7px;background:#fcfbf7;color:#333b30;font:inherit;text-align:left;cursor:zoom-in}
.rfm-piece[aria-pressed=true] {cursor:zoom-out}
.rfm-piece-image {position:relative;display:grid;place-items:center;flex:1;min-width:0;min-height:0;width:100%;overflow:hidden}
.rfm-piece-image img,.rfm-piece-image img.rf-garment-photo {display:block;max-width:100%;min-height:0;width:100%;height:100%;object-fit:contain;background:transparent;filter:none;transform:none}
.rfm-piece-caption {min-height:1em;padding:.32rem .12rem 0;font-size:.76rem;line-height:1.2;font-weight:600;overflow-wrap:anywhere}
.rfm-piece-action {position:absolute;top:6px;right:6px;border:1px solid #d8d5c9;border-radius:5px;background:#fffef9f5;padding:.22rem .39rem;font-size:.69rem;color:#354231;line-height:1.2}
.rfm-piece[aria-pressed=false] .rfm-piece-action {clip-path:inset(50%)}
.rfm-piece[aria-pressed=false]::before {content:'↗';position:absolute;right:6px;top:6px;border-radius:4px;background:#fbfaf2e8;color:#414d3f;font:600 .87rem/1.35 sans-serif;width:1.25rem;text-align:center}
.rfm-piece[aria-pressed=false]:is(:hover,:focus-visible) .rfm-piece-action {clip-path:none}
.rfm-piece[aria-pressed=false]:is(:hover,:focus-visible)::before {display:none}
.rfm-piece:focus-visible {outline-offset:-3px!important}
.rfm-missing {color:#55574c;font-size:.82rem;text-align:center}
.rfm-view-status {margin:0;padding:.65rem 1rem;background:#fff7e5;color:#58452d;font-size:.875rem}
.rfm-view-status:empty {display:none}
.rfm-toolbar {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.6rem;padding:.65rem clamp(12px,1.25vw,22px);background:#fbfaf6;border-top:1px solid #dcd7cb}
.rfm-switch {display:inline-flex;align-self:flex-start;max-width:calc(100% - 1.5rem);margin:.45rem .75rem;padding:2px;border:1px solid #ddd9cf;border-radius:7px;background:#eeeae2}
.rfm-switch button,.rfm-open {appearance:none;min-height:40px;border:0;cursor:pointer;font:inherit;font-weight:600;line-height:1.15;font-size:.87rem}
.rfm-switch button {min-height:44px;border-radius:5px;padding:.47rem .88rem;background:transparent;color:#433f32}
.rfm-switch button[aria-pressed=true] {background:#fffefb;color:#292c23;box-shadow:0 1px 3px #433c2e22}
.rfm-open {margin-left:auto;padding:.55rem 1rem;border:1px solid #35402e;border-radius:7px;color:#fff;background:#35402e}
.rfm-open span,.rfm-open small {display:block;text-align:left}
.rfm-open small {margin-top:.18rem;font-size:.72rem;line-height:1.25;font-weight:450}
.rfm-piece-image:has(img[data-photo-state="preparing"])::after {content:"Preparing photo…";position:absolute;inset:0;display:grid;place-items:center;padding:4px;color:#586353;text-align:center;font-size:.78rem}
.rfm-piece-image:has(img[data-photo-state="original"])::after {content:"Original photo";position:absolute;bottom:4px;left:4px;border-radius:4px;padding:2px 5px;background:#fffef8ee;color:#434a3c;font-size:.67rem}
.rfm-flatlay {position:relative}
.rfm-board-source {position:absolute;inset:.4rem .6rem auto auto;min-height:40px;max-width:48%;padding:.36rem .7rem;border-radius:6px;background:#faf8ef;color:#324337;border:1px solid #bcbbac;font-size:.83rem;font-weight:650;line-height:1.1}
.rfm-piece:has(img[data-photo-state="showroom"]) .rfm-piece-caption::after {content:" · Showroom preview";font-weight:400;color:#545d51}
.rfm-open:disabled {opacity:.55;cursor:progress}
.rfm-options {border-top:1px solid var(--line,#d9d8cf);padding:.9rem 1.05rem 1rem}
.rfm-mode {display:flex;flex-wrap:wrap;gap:.45rem}
.rfm-mode button,.rfm-options .rfm-picker {box-sizing:border-box;min-height:44px;border:1px solid #b9c1b1;border-radius:8px;background:#fff;color:#304033;padding:.55rem .85rem;font:inherit;font-size:.9rem;font-weight:600;cursor:pointer}
.rfm-mode button[aria-pressed=true] {background:#e7ede0;border-color:#526848;box-shadow:inset 0 0 0 1px #526848}
.rfm-mode-help {margin:.65rem 0 .35rem;color:#313e32;font-size:.92rem;line-height:1.45}
.rfm-pickers {display:flex;gap:.5rem;flex-wrap:wrap}
.rfm-options label.rfm-picker {display:inline-flex;align-items:center;position:relative;overflow:hidden}
.rfm-picker input {position:absolute;inset:0;opacity:0;cursor:pointer}
.rfm-picker:focus-within {outline:3px solid #366696;outline-offset:2px}
.rfm-options fieldset {display:grid;gap:.75rem;border:0;margin:.7rem 0 0;padding:0;min-width:0}
.rfm-status,.rfm-consent,.rfm-options label {font:inherit;font-size:.88rem;line-height:1.45}
.rfm-status {margin:0;color:#56604f}
.rfm-options label:not(.rfm-consent) {display:grid;gap:.3rem;color:#394434;font-weight:600}
.rfm-options select,.rfm-options input[type=file] {display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;font:inherit;color:inherit}
.rfm-options select {min-height:44px;padding:.45rem .65rem;border:1px solid #c5c9bc;background:#fff;border-radius:8px}
.rfm-consent {display:flex;align-items:flex-start;gap:.55rem;color:#454c40}
.rfm-consent input {margin:.14rem 0 0;flex:0 0 auto;width:18px;height:18px;accent-color:#3d593e}
.rfm-options .btn {justify-self:start;min-height:44px}
.rfm-retry,.rfm-signin {margin-top:.6rem}
.rfm-local-photo {display:flex;align-items:center;gap:.7rem}
.rfm-photo-tip {color:#555c4e;font-size:.82rem;line-height:1.45;margin:.45rem 0 0}
.rfm-local-photo img {height:84px;max-width:120px;object-fit:contain;margin-top:.5rem;border-radius:6px}
.rfm-studio [hidden] {display:none!important}
.rfm-studio :focus-visible {outline:3px solid #366696;outline-offset:2px}
.rf-detail-look .rfm-stage {height:clamp(270px,50vh,430px)}
.rfm-empty {position:relative;height:100%;display:grid;place-items:center;background:linear-gradient(145deg,#dad9cf,#f4f0e6)}
.rfm-empty span {position:absolute;width:34%;height:42%;border:4px solid #fcfaf5;background:#beb9a8;border-radius:2px;box-shadow:1px 2px 8px #493f2d20;transform:translate(-34%,-8%) rotate(-11deg)}
.rfm-empty span:nth-child(2){background:#b4b9a4;transform:translate(5%,5%) rotate(3deg)}
.rfm-empty span:nth-child(3){width:30%;height:33%;background:#c9b49d;transform:translate(26%,33%) rotate(11deg)}
@media(max-width:720px){.rfm-stage{height:clamp(330px,min(115vw,57svh),510px)}.rfm-toolbar{padding:.58rem .75rem}.rfm-switch button,.rfm-open{min-height:44px}.rfm-options{padding:.8rem}}

/* Keep the photograph and garment list together as a single editorial spread. */
#content:has(> .rf-studio-head) {max-width:1500px;margin-inline:auto}
.rf-studio-head {align-items:center;margin:0 0 clamp(16px,2.2vw,30px)}
.rf-studio-head h1 {font-size:clamp(2.45rem,4.3vw,4.1rem);font-weight:500;letter-spacing:-.058em}
.rf-studio-head p {font-size:clamp(.94rem,1.1vw,1.05rem)}
#rf-selected-look {grid-template-columns:minmax(0,1.12fr) minmax(310px,.88fr);border:1px solid #d9d7c9;border-radius:14px;background:#fffefb}
#rf-selected-look .rf-outfit-info {gap:clamp(9px,.85vw,13px);border-left:1px solid #dedbd0;padding:clamp(22px,2.25vw,46px);background:#fffefb}
@media(min-width:721px){
  #rf-selected-look [data-studio-model]>.rfm-studio {display:flex;flex-direction:column;min-height:100%}
  #rf-selected-look .rfm-stage {flex-grow:1}
  #rf-selected-look .rfm-toolbar,#rf-selected-look .rfm-options {flex-shrink:0}
}
#rf-selected-look > .rf-look-pager {margin:0 0 .18rem}
#rf-selected-look > .rf-look-pager span {font-size:.79rem;letter-spacing:.055em;text-transform:uppercase;color:#655f50}
#rf-selected-look > .rf-look-pager button {background:transparent;border:1px solid #d7d5ca}
#rf-selected-look > .rf-look-pager button:hover {background:#efece2}
.rf-outfit-info .rf-look-meta {color:#52624b;letter-spacing:.015em}
#rf-selected-look h2 {font-size:clamp(2.25rem,3.45vw,3.6rem);letter-spacing:-.058em;line-height:1.01;font-weight:500;text-wrap:balance}
.rf-outfit-info .rf-reasons {font-size:clamp(.91rem,1vw,1rem);line-height:1.5;color:#55594d}
.rf-outfit-info .rf-reasons:has(>li:only-child) {padding:0;list-style:none}
.rf-outfit-info .rf-pieces {width:100%;margin:.4rem 0 .3rem;border-top:1px solid #dbdacc}
.rf-outfit-info .rf-pieces .piece-row {gap:clamp(9px,1vw,15px);min-width:0;padding:7px 0;border-color:#e2e0d6;text-align:left}
.rf-outfit-info .rf-pieces .piece-row strong {font-size:.95rem;font-weight:600}
.rf-outfit-info .rf-pieces .piece-row small {font-size:.8rem;color:#66695c}
.rf-outfit-info .rf-pieces .piece-row img {width:47px;height:49px;padding:3px;flex-shrink:0;object-fit:contain;background:#f1eee6;border-radius:5px}
.rf-outfit-info .rf-outfit-actions {width:100%;margin-top:auto;padding-top:.65rem}
.rf-outfit-actions .btn,.rf-outfit-actions .round {min-height:42px}
@media(min-width:1500px){#rf-selected-look{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}#rf-selected-look .rf-outfit-info{padding-inline:clamp(35px,3.4vw,58px)}}
@media(max-width:970px) and (min-width:721px){#rf-selected-look{grid-template-columns:minmax(0,1fr) minmax(235px,.88fr)}#rf-selected-look .rf-outfit-info{padding:16px}.rf-outfit-info .rf-pieces .piece-row img{width:38px;height:42px}}
@media(max-width:720px){
  #rf-selected-look {grid-template-columns:1fr;border-radius:12px}
  #rf-selected-look .rf-outfit-info {padding:18px;gap:10px;border-left:0;border-top:1px solid #dedbd0}
  .rf-studio-head h1 {font-size:clamp(2.3rem,8vw,3rem)}
  .rf-studio-head>.btn {flex-shrink:0;white-space:nowrap}
  #rf-selected-look h2 {font-size:clamp(2.05rem,7.5vw,3rem)}
  .rf-outfit-info .rf-pieces {column-gap:12px;margin-top:.32rem}
  .rf-outfit-info .rf-pieces .piece-row {gap:7px}
  .rf-outfit-info .rf-pieces .piece-row img {width:39px;height:44px}
  .rf-outfit-info .rf-pieces .piece-row strong {font-size:.86rem}
  .rf-outfit-info .rf-outfit-actions {padding-top:.35rem}
}

#rf-selected-look {scroll-margin-top:5rem}
#rf-selected-look:focus-visible {outline:3px solid #366696;outline-offset:2px}
.rf-pieces .piece-row span {min-width:0;overflow-wrap:anywhere}
.rfm-stage .rfm-view-label {pointer-events:none}
@media(max-width:420px){.rf-studio-head{flex-wrap:wrap}.rfm-piece-caption{font-size:.71rem}}

/* One set of controls comes first in the reading order on every screen. */
#rf-selected-look > .rf-look-pager {box-sizing:border-box;margin:0;background:#fffefb}
@media(min-width:721px){
  #rf-selected-look:has(> .rf-look-pager) {grid-template-rows:auto 1fr}
  #rf-selected-look:has(> .rf-look-pager) > [data-studio-model] {grid-area:1 / 1 / span 2}
  #rf-selected-look > .rf-look-pager {grid-area:1 / 2;border-left:1px solid #dedbd0;padding:clamp(22px,2.25vw,46px) clamp(22px,2.25vw,46px) .6rem}
  #rf-selected-look:has(> .rf-look-pager) > .rf-outfit-info {grid-area:2 / 2;padding-top:0}
}
@media(min-width:721px) and (max-width:970px){#rf-selected-look > .rf-look-pager{padding:16px 16px .6rem}}
@media(min-width:1500px){#rf-selected-look > .rf-look-pager{padding-inline:clamp(35px,3.4vw,58px)}}
@media(max-width:720px){
  #rf-selected-look > .rf-look-pager {padding:5px 12px;border-bottom:1px solid #dedbd0}
  #rf-selected-look > .rf-look-pager button {width:44px;height:44px}
}
