.choice-card img,.choice-card .media-empty{width:100%;aspect-ratio:.9;background:var(--soft)}
.brand-logo{display:block;width:94px;max-height:22px;object-fit:contain}.photo-strip{display:flex;gap:9px;overflow:auto;padding:5px 0}.reference-photo{position:relative;flex:0 0 72px;padding:0;border:1px solid var(--line);background:var(--paper);text-align:left}.reference-photo img,.reference-photo .media-empty{width:70px;height:88px;object-fit:cover;background:var(--soft)}.reference-photo span{display:block;padding:5px;font-size:10px;line-height:1.25}.reference-photo.is-primary{border-color:var(--wine)}.cart-list{display:grid;gap:10px;margin-top:24px}.cart-row{display:grid;grid-template-columns:62px 1fr auto;gap:12px;align-items:center;padding:11px;background:var(--paper);border:1px solid var(--line)}.cart-row img,.cart-row .media-empty{width:62px;height:76px;object-fit:cover;background:var(--soft)}.cart-row strong,.cart-row small{display:block}.cart-row small{font-size:12px;color:var(--muted);margin-top:5px}.cart-controls{display:flex;align-items:center;gap:10px}.cart-controls .link-button{font-size:18px}@media(max-width:760px){.brand-logo{width:82px}.cart-row{grid-template-columns:50px 1fr auto}.cart-row img,.cart-row .media-empty{width:50px;height:62px}.photo-strip{margin-bottom:10px}}
.cart-product-link{display:block;margin-top:6px}.history-card div{display:grid;gap:4px}.history-card strong{font-weight:400;line-height:1.35}.history-card small{color:var(--muted);font-size:11px;line-height:1.35}
@media(min-width:761px){.profile-page.wardrobe-page{max-width:1100px;padding:28px 28px 20px}.wardrobe-page .history-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:16px}}

/* The recommendation image is an editorial full portrait: never crop the face. */
.outfit-main{object-fit:contain;background:var(--soft)}
.outfit-card .issue-count{position:absolute;z-index:3;top:14px;right:14px;color:white;text-shadow:0 1px 5px #000}
.issue-peek{display:none}
@media(max-width:760px){
  .issue-stage{position:relative;overflow:hidden;min-height:calc(100svh - 56px)}
  .outfit-card{z-index:2;width:calc(100vw - 56px);height:clamp(340px,calc(100svh - 310px),520px);min-height:0;border:7px solid var(--paper);box-shadow:0 9px 26px rgba(48,24,25,.14)}
  .outfit-card:before{display:none}
  .outfit-card .outfit-main{object-fit:contain}
  .issue-peek{display:block;position:absolute;z-index:1;top:0;width:calc(100vw - 56px);height:clamp(340px,calc(100svh - 310px),520px);overflow:hidden;background:var(--paper);box-shadow:0 7px 20px rgba(48,24,25,.1)}
  .issue-peek.is-empty{display:none}
  .issue-peek img,.issue-peek .media-empty{width:100%;height:100%;object-fit:contain;background:var(--soft)}
  .issue-peek-left{left:calc(-100vw + 70px)}
  .issue-peek-right{right:calc(-100vw + 70px)}
  .issue-side{padding:8px 16px;gap:6px}
  .issue-count{top:66px;right:28px}
  .outfit-actions{bottom:calc(103px + env(safe-area-inset-bottom));gap:12px}
  .round-action{width:62px;height:62px;font-size:13px;letter-spacing:.04em}
  .spu-panel{display:grid;gap:5px;max-height:102px;overflow:auto;padding:7px 2px 0}
  .spu-row,.spu-row:not(:first-of-type){display:grid;min-height:36px;grid-template-columns:32px minmax(0,1fr) auto;gap:7px}
  .spu-row img{width:32px;height:36px;object-fit:contain}
  .spu-row .link-button{padding:6px 8px;font-size:11px}
}
@media(max-width:760px) and (max-height:700px){
  .outfit-card,.issue-peek{height:clamp(300px,calc(100svh - 315px),380px)}
  .spu-panel{max-height:92px}
  .outfit-actions{bottom:calc(96px + env(safe-area-inset-bottom))}
  .round-action{width:56px;height:56px}
  .preference-page{padding:16px 15px 74px}
  .preference-page h1{font-size:24px;line-height:1.2;margin:5px 0 3px}
  .preference-page .section-note{display:-webkit-box;margin:0 0 12px;font-size:13px;line-height:1.35;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .choice-progress{margin:12px 0 14px}
  .choice-grid{gap:8px}
  .choice-card img,.choice-card .media-empty{height:160px;aspect-ratio:auto}
  .choice-card-copy{height:42px;padding:6px 7px;line-height:1.35;overflow:hidden}
  .choice-card-copy small{display:none}
  .preference-footer{margin-top:12px;padding:8px 0}
  .preference-continue{padding:8px 10px;font-size:12px}
}

/* The recommendation page is one viewport: its card never scrolls under the header. */
@media(max-width:760px){
  .customer-frame:has(.issue-stage){height:calc(100svh - 121px - env(safe-area-inset-bottom));min-height:0;padding-bottom:0;overflow:hidden}
  .issue-stage{height:100%;min-height:0;padding:8px 0 0;display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:8px;overflow:hidden}
  .outfit-card{grid-column:1;grid-row:1;align-self:stretch;width:calc(100vw - 56px);height:100%;min-height:0;margin:0 auto;border:7px solid var(--paper)}
  .outfit-card .issue-count{position:absolute;z-index:3;top:12px;right:12px;color:white;text-shadow:0 1px 5px #000}
  .issue-peek{position:relative;top:auto;right:auto;bottom:auto;left:auto;grid-column:1;grid-row:1;align-self:stretch;justify-self:center;width:calc(100vw - 56px);height:100%;min-height:0}
  .issue-peek-left{left:auto;transform:translateX(calc(-100% - 16px))}
  .issue-peek-right{right:auto;transform:translateX(calc(100% + 16px))}
  .issue-side{grid-column:1;grid-row:2;display:flex;flex-direction:column;gap:8px;padding:0 16px 8px}
  .spu-panel{order:1;max-height:102px;min-height:0}
  .outfit-actions{position:static;order:2;display:flex;justify-content:center;gap:12px;padding:0}
  .round-action{width:58px;height:58px}
  .favorite-action{background:var(--wine);border-color:var(--wine);color:white;box-shadow:0 4px 12px rgba(98,35,44,.22)}
}
@media(max-width:760px) and (max-height:700px){
  .customer-frame:has(.issue-stage){height:calc(100svh - 112px - env(safe-area-inset-bottom))}
  .issue-stage{padding-top:8px}
  .round-action{width:54px;height:54px}
  .issue-side{padding-bottom:2px}
}

/* Library workspace: desktop keeps its sidebar; phone uses a task-first shell. */
.staff-mobile-head,.staff-mobile-nav,.staff-mobile-list{display:none}
.staff-section-tabs{display:flex;gap:8px;margin:0 0 16px}.staff-section-tabs button{min-height:38px;border:1px solid var(--line);background:var(--paper);color:var(--muted);padding:8px 12px}.staff-section-tabs button.active{border-color:var(--wine);color:var(--wine)}
.staff-search{min-height:42px;border:1px solid var(--line);background:var(--paper);padding:9px 11px;min-width:220px}.staff-media-grid .staff-card>img,.staff-media-grid .staff-card>.media-empty{width:100%;aspect-ratio:.82;object-fit:contain;background:var(--soft)}
.staff-media-grid .staff-card h3{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.drawer.staff-drawer .drawer-head .icon-button{display:grid;place-items:center;min-width:44px;min-height:44px}
@media(min-width:761px){.staff-media-grid .staff-card>img,.staff-media-grid .staff-card>.media-empty{height:clamp(150px,28svh,220px);aspect-ratio:auto;object-fit:contain}}
.spu-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-height:340px;overflow:auto}.spu-pick{display:grid;gap:6px;min-width:0;padding:7px;border:1px solid var(--line);background:var(--paper);font-size:12px;line-height:1.35}.spu-pick:has(input:checked){border-color:var(--wine);box-shadow:inset 0 0 0 1px var(--wine)}.spu-pick input{accent-color:var(--wine)}.spu-pick-image img,.spu-pick-image .media-empty{width:100%;height:96px;object-fit:contain;background:var(--soft)}.spu-pick small{display:block;color:var(--muted);font-size:10px}.picker-head{display:flex;justify-content:space-between;align-items:center;font-size:13px}.picker-head strong{color:var(--wine);font-weight:400}.staff-advanced{border-top:1px solid var(--line);padding-top:10px}.staff-advanced summary{cursor:pointer;font-size:13px;color:var(--muted);margin-bottom:10px}.review-image-button{display:block;width:100%;padding:0;border:0;background:var(--soft)}.review-image{width:100%;max-height:48svh;object-fit:contain;background:var(--soft)}.review-verdicts{display:grid;grid-template-columns:1fr 1fr;gap:10px}.issue-photo-count{position:sticky;top:0;z-index:1;padding:7px 0;background:var(--paper);font-size:13px;color:var(--wine)}.issue-photo-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.issue-photo-choice{border:1px solid var(--line);background:var(--paper);padding:6px}.issue-photo-choice.is-selected{border-color:var(--wine)}.issue-photo-choice label{display:grid;gap:5px;position:relative;font-size:12px}.issue-photo-choice label>input{position:absolute;top:4px;left:4px;z-index:1;accent-color:var(--wine)}.issue-photo-choice img,.issue-photo-choice .media-empty{width:100%;aspect-ratio:.82;object-fit:contain;background:var(--soft)}.issue-photo-number{position:absolute;top:4px;right:4px;z-index:1;min-width:22px;padding:3px 5px;background:rgba(255,253,250,.94);text-align:center;color:var(--wine)}.issue-photo-move{display:flex;gap:5px;margin-top:6px}.issue-photo-move button{flex:1;min-height:36px;border:1px solid var(--line);background:var(--paper);font-size:12px}.photo-lightbox{position:fixed;z-index:70;inset:0;display:grid;place-items:center;padding:30px;background:rgba(24,16,16,.9)}.photo-lightbox img{max-width:100%;max-height:100%;object-fit:contain}.photo-lightbox .icon-button{position:absolute;top:12px;right:12px;color:white;font-size:30px}.toast{z-index:80}
@media(max-width:760px){
  body:has(.staff-shell){overflow-x:clip}
  .staff-shell{display:block;min-height:100svh;padding-bottom:calc(66px + env(safe-area-inset-bottom));overflow-x:clip}
  .staff-nav{display:none}
  .staff-mobile-head{position:sticky;top:0;z-index:22;height:calc(56px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 14px 0;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:rgba(255,253,250,.97);backdrop-filter:blur(12px)}
  .staff-mobile-head .brand{display:flex;align-items:center;gap:7px;font-size:0}.staff-mobile-head .brand-logo{width:80px}.staff-mobile-head .brand small{font:11px Arial,sans-serif;letter-spacing:.08em;color:var(--muted)}.staff-mobile-head>div:last-child{display:flex;align-items:center;gap:7px;font-size:12px}.staff-mobile-head .text-button{min-height:44px;padding:8px;color:var(--wine)}
  .staff-mobile-nav{position:fixed;z-index:25;bottom:0;left:0;right:0;height:calc(66px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(5,1fr);background:rgba(255,253,250,.98);border-top:1px solid var(--line)}
  .staff-mobile-nav button{min-width:0;border:0;background:transparent;color:var(--muted);font-size:12px}.staff-mobile-nav button.active{color:var(--wine);font-weight:600}
  .staff-main{width:100%;max-width:none;padding:18px 14px 24px;margin:0;overflow:clip}.staff-heading{align-items:center;margin-bottom:16px}.staff-heading h1{font-size:24px;margin:3px 0}.staff-heading p{font-size:12px;line-height:1.45}.staff-heading .button{min-height:44px;padding:9px 11px;white-space:nowrap}
  .staff-section-tabs{position:sticky;top:calc(56px + env(safe-area-inset-top));z-index:20;margin:0 -14px 14px;padding:8px 14px;overflow:auto;background:var(--cream)}.staff-section-tabs button{flex:0 0 auto;min-height:40px}.staff-more-tabs{justify-content:flex-start}
  .staff-main[data-staff-view="catalogue"] .staff-heading{margin-bottom:8px}.staff-main[data-staff-view="catalogue"] .staff-heading .section-eyebrow,.staff-main[data-staff-view="catalogue"] .staff-heading h1{display:none}.staff-main[data-staff-view="catalogue"] .staff-heading p{margin:0}.staff-main[data-staff-view="catalogue"] .toolbar{margin-bottom:8px}
  .staff-desktop-table{display:none}.staff-mobile-list{display:grid;gap:10px}.staff-mobile-card{display:grid;gap:10px;padding:13px;background:var(--paper);border:1px solid var(--line)}.staff-mobile-card h3{margin:0 0 5px;font-size:16px;font-weight:400}.staff-mobile-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.staff-mobile-card small{color:var(--muted)}.staff-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.staff-card-actions button{min-height:44px;border:1px solid var(--line);background:var(--paper);color:var(--wine);font-size:12px}.staff-card-actions button:last-child:nth-child(odd){grid-column:1/-1}
  .staff-grid.staff-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.staff-media-grid .staff-card{min-height:0;height:250px;padding:8px;overflow:hidden;display:flex;flex-direction:column}.staff-media-grid .staff-card>img,.staff-media-grid .staff-card>.media-empty{height:clamp(112px,19svh,130px);aspect-ratio:auto;flex:0 0 auto}.staff-media-grid .staff-card h3{display:-webkit-box;min-height:34px;margin:8px 0 3px;overflow:hidden;font-size:13px;line-height:1.32;-webkit-box-orient:vertical;-webkit-line-clamp:2}.staff-media-grid .staff-card p{display:-webkit-box;margin:0;min-height:16px;overflow:hidden;font-size:11px;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:1}.staff-media-grid .staff-card-footer{margin-top:auto}.staff-media-grid .link-button{min-height:40px;font-size:12px}.toolbar{gap:8px;margin-bottom:12px}.toolbar .form-field{flex:1;min-width:0}.staff-search{width:100%;min-width:0}.staff-card[hidden],.spu-pick[hidden]{display:none}
  .drawer.staff-drawer{z-index:40;inset:0;width:100vw;height:100svh;height:100dvh;padding:calc(14px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));border:0;box-shadow:none;scroll-padding-bottom:90px}.drawer.staff-drawer .drawer-head{position:sticky;top:calc(-14px - env(safe-area-inset-top));z-index:3;margin:calc(-14px - env(safe-area-inset-top)) -14px 14px;padding:calc(14px + env(safe-area-inset-top)) 14px 14px;background:var(--paper)}.drawer.staff-drawer .drawer-form{gap:13px;padding-bottom:8px}.drawer.staff-drawer input,.drawer.staff-drawer select,.drawer.staff-drawer textarea{font-size:16px}.drawer-primary{position:sticky;bottom:0;z-index:2;min-height:48px;margin-top:4px;box-shadow:0 -10px 18px var(--paper)}
  .spu-picker{grid-template-columns:repeat(2,minmax(0,1fr));max-height:270px}.spu-pick{min-height:0}.spu-pick-image img,.spu-pick-image .media-empty{height:100px}.review-image{max-height:37svh}.review-verdicts{gap:8px}.issue-photo-list{gap:8px}.issue-photo-choice{padding:5px}.issue-photo-move button{min-height:40px}.issue-photo-count{top:0}.photo-lightbox{padding:calc(20px + env(safe-area-inset-top)) 20px 20px}.photo-lightbox .icon-button{top:calc(12px + env(safe-area-inset-top))}
  .drawer.staff-drawer .issue-photo-count{top:calc(72px + env(safe-area-inset-top));z-index:2}
}
@media(max-width:380px) and (max-height:680px){.staff-main{padding-top:12px}.staff-heading{margin-bottom:10px}.staff-heading h1{font-size:22px}.staff-heading p{display:none}.staff-media-grid .staff-card>img,.staff-media-grid .staff-card>.media-empty{aspect-ratio:.92}.staff-mobile-nav{height:calc(58px + env(safe-area-inset-bottom))}.staff-shell{padding-bottom:calc(58px + env(safe-area-inset-bottom))}}

/* Sales pick-and-make flow. */
.draft-customer{display:flex;align-items:center;gap:10px;justify-content:flex-end;color:var(--wine);font-size:13px}.catalogue-card{position:relative}.catalogue-card.is-selected{border-color:var(--wine);box-shadow:inset 0 0 0 1px var(--wine)}.catalogue-image-button{display:block;width:100%;padding:0;border:0;background:var(--soft);cursor:pointer}.catalogue-image-button img,.catalogue-image-button .media-empty{display:block;width:100%;height:clamp(150px,28svh,220px);object-fit:contain;background:var(--soft)}.catalogue-image-button:focus-visible{outline:2px solid var(--wine);outline-offset:3px}.catalogue-select{margin-left:12px}.draft-selection-bar{position:sticky;z-index:18;bottom:12px;display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px auto 0;padding:12px 14px;border:1px solid var(--line);box-shadow:0 -7px 20px rgba(48,24,25,.1);background:rgba(255,253,250,.97);backdrop-filter:blur(9px)}.draft-selection-bar strong,.draft-selection-bar small{display:block}.draft-selection-bar small{margin-top:3px;color:var(--muted);font-size:11px}.draft-selection-bar>div:last-child{display:flex;align-items:center;gap:8px}.draft-selection-bar .button{min-height:44px;padding:9px 12px}.suggestion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.suggestion-card{display:grid;gap:6px;position:relative;padding:7px;border:1px solid var(--line);font-size:12px}.suggestion-card:has(input:checked){border-color:var(--wine);box-shadow:inset 0 0 0 1px var(--wine)}.suggestion-card input{position:absolute;top:8px;left:8px;accent-color:var(--wine)}.suggestion-card img,.suggestion-card .media-empty{width:100%;height:130px;object-fit:contain;background:var(--soft)}.suggestion-card small{display:block;color:var(--muted);font-size:10px}.issue-photo-choice.is-rejected{opacity:.58;background:#f6eeee}.issue-photo-choice small{display:block;line-height:1.4;color:var(--muted)}.issue-choice-note{margin:0 0 10px;font-size:12px}.issue-blocked{display:inline-block;color:var(--muted);font-size:12px}.empty-state.compact{min-height:130px;padding:16px;text-align:center}.empty-state.compact p{margin:0}.staff-mobile-card .issue-blocked{grid-column:1/-1}
@media(max-width:760px){.draft-customer{justify-content:space-between;align-items:center;margin:0 0 9px;font-size:12px}.catalogue-image-button img,.catalogue-image-button .media-empty{height:clamp(112px,19svh,130px)}.staff-media-grid .catalogue-card .catalogue-image-button{flex:0 0 auto}.draft-selection-bar{position:fixed;z-index:24;left:10px;right:10px;bottom:calc(66px + env(safe-area-inset-bottom));margin:0;padding:8px 9px}.draft-selection-bar small{display:none}.draft-selection-bar .button{min-height:42px;padding:8px 9px;font-size:12px}.catalogue-grid{padding-bottom:82px}.suggestion-card img,.suggestion-card .media-empty{height:112px}.empty-state.compact{min-height:110px}.issue-photo-choice.is-rejected{opacity:.65}}
@media(max-width:380px) and (max-height:680px){.draft-selection-bar{bottom:calc(58px + env(safe-area-inset-bottom))}.draft-selection-bar .button.ghost{display:none}.catalogue-grid{padding-bottom:72px}}
@media(max-width:760px){.staff-main[data-staff-view="catalogue"]>.staff-heading:has(.draft-customer)>div:first-child{display:none}.staff-main[data-staff-view="catalogue"]>.staff-heading:has(.draft-customer){display:block}.staff-main[data-staff-view="catalogue"]>.staff-heading>.draft-customer{width:100%;margin:0;justify-content:space-between;font-size:13px}.draft-customer span{min-width:0;overflow:visible;text-overflow:clip;white-space:nowrap}.draft-customer strong{white-space:nowrap}.draft-customer .link-button{flex:0 0 auto;white-space:nowrap}}
@media(max-width:760px) and (max-height:700px){.staff-main[data-staff-view="catalogue"]{padding-top:10px}.staff-main[data-staff-view="catalogue"] .staff-heading{margin-bottom:4px}.staff-main[data-staff-view="catalogue"] .staff-heading .section-eyebrow,.staff-main[data-staff-view="catalogue"] .staff-heading h1,.staff-main[data-staff-view="catalogue"] .staff-heading p{display:none}.staff-main[data-staff-view="catalogue"] .toolbar{margin-bottom:6px}.staff-main[data-staff-view="catalogue"] .staff-media-grid .staff-card{height:220px}.staff-main[data-staff-view="catalogue"] .catalogue-image-button img,.staff-main[data-staff-view="catalogue"] .catalogue-image-button .media-empty{height:104px}.staff-main[data-staff-view="catalogue"] .staff-media-grid .staff-card h3{min-height:30px;margin:6px 0 2px;font-size:12px}.staff-main[data-staff-view="catalogue"] .staff-media-grid .staff-card-footer{line-height:1}.staff-main[data-staff-view="catalogue"] .staff-media-grid .link-button{min-height:34px;font-size:11px}.staff-main[data-staff-view="catalogue"] .catalogue-grid{padding-bottom:76px}}
@media(min-width:761px) and (max-height:760px){.staff-main[data-staff-view="catalogue"]{padding-top:26px}.staff-main[data-staff-view="catalogue"] .staff-heading{margin-bottom:14px}.staff-main[data-staff-view="catalogue"] .toolbar{margin-bottom:12px}.staff-main[data-staff-view="catalogue"] .catalogue-image-button img,.staff-main[data-staff-view="catalogue"] .catalogue-image-button .media-empty{height:150px}.staff-main[data-staff-view="catalogue"] .staff-media-grid .catalogue-card{min-height:0;height:308px;display:flex;flex-direction:column;overflow:hidden}.staff-main[data-staff-view="catalogue"] .staff-media-grid .catalogue-card .staff-card-footer{margin-top:auto}}
@media(max-width:760px){.drawer.staff-drawer:has(#issue-form){padding-top:calc(8px + env(safe-area-inset-top));scroll-padding-bottom:70px}.drawer.staff-drawer:has(#issue-form) .drawer-head{top:calc(-8px - env(safe-area-inset-top));margin:calc(-8px - env(safe-area-inset-top)) -14px 8px;padding:calc(8px + env(safe-area-inset-top)) 14px 8px}.drawer.staff-drawer:has(#issue-form) .drawer-head h2{font-size:20px}.drawer.staff-drawer:has(#issue-form)>.notice{display:none}.drawer.staff-drawer:has(#issue-form) .drawer-form{gap:7px}.drawer.staff-drawer:has(#issue-form) .form-field{grid-template-columns:54px minmax(0,1fr);align-items:center;gap:8px}.drawer.staff-drawer:has(#issue-form) .form-field input,.drawer.staff-drawer:has(#issue-form) .form-field select{min-height:40px;padding:8px 10px}.drawer.staff-drawer:has(#issue-form) .issue-photo-count{top:calc(60px + env(safe-area-inset-top));padding:4px 0}.drawer.staff-drawer:has(#issue-form) .issue-choice-note{margin:0 0 5px;font-size:11px;line-height:1.35}.drawer.staff-drawer:has(#issue-form) .issue-photo-list{gap:7px}.drawer.staff-drawer:has(#issue-form) .issue-photo-choice{padding:4px}.drawer.staff-drawer:has(#issue-form) .issue-photo-choice label{gap:3px;font-size:11px}.drawer.staff-drawer:has(#issue-form) .issue-photo-choice img,.drawer.staff-drawer:has(#issue-form) .issue-photo-choice .media-empty{height:118px;aspect-ratio:auto}.drawer.staff-drawer:has(#issue-form) .issue-photo-choice small{font-size:10px}.drawer.staff-drawer:has(#issue-form) .issue-photo-move{margin-top:4px}.drawer.staff-drawer:has(#issue-form) .issue-photo-move button{min-height:36px}.drawer.staff-drawer:has(#issue-form) .drawer-primary{min-height:44px}}

/* Mobile outfit status cards keep the next card visibly in reach. */
@media(max-width:760px){
  .staff-main[data-staff-view="outfits"]{padding-top:10px}
  .staff-main[data-staff-view="outfits"] .staff-section-tabs{margin-bottom:8px}
  .staff-main[data-staff-view="outfits"] .staff-heading{margin-bottom:8px}
  .staff-main[data-staff-view="outfits"] .staff-heading>div:first-child{display:none}
  .staff-main[data-staff-view="outfits"] .staff-mobile-list{gap:8px}
  .staff-main[data-staff-view="outfits"] .staff-mobile-card{gap:7px;padding:10px 12px}
  .staff-main[data-staff-view="outfits"] .staff-mobile-card p{line-height:1.35}
  .staff-main[data-staff-view="outfits"] .outfit-description{margin-top:1px}
  .staff-main[data-staff-view="outfits"] .outfit-description p{display:-webkit-box;margin:0;overflow:hidden;font-size:12px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .staff-main[data-staff-view="outfits"] .outfit-description .link-button{min-height:40px;padding:7px 0;text-align:left}
  .staff-main[data-staff-view="outfits"] .outfit-description.is-expanded p{display:block;overflow:visible}
}

/* Automatic magazine workbench: task cards stay legible on a phone and do not
   borrow the old sales catalogue/table treatment. */
.automation-shell .staff-main{max-width:1180px}.automation-shell .staff-mobile-list{display:grid;gap:12px;max-width:800px}.automation-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 18px}.automation-metrics>div{display:grid;gap:4px;padding:15px 16px;background:var(--paper);border:1px solid var(--line)}.automation-metrics strong{font:400 27px/1 ui-serif,"Noto Serif SC","Songti SC",serif;color:var(--wine)}.automation-metrics span{font-size:12px;color:var(--muted)}.automation-list{max-width:800px}.automation-customer{gap:9px}.automation-customer.is-selected{border-color:var(--wine);box-shadow:inset 0 0 0 1px var(--wine)}.automation-select{display:grid;grid-template-columns:auto 1fr;gap:11px;align-items:start;cursor:pointer}.automation-select input{width:20px;height:20px;margin:1px 0 0;accent-color:var(--wine)}.automation-select h3{margin:0 0 4px}.automation-select p{margin:0}.automation-blockers{display:grid;gap:5px;margin:2px 0 0;padding:9px 11px;list-style:none;border-left:2px solid #b47b49;background:#fbf3e8;color:#6d5135;font-size:12px;line-height:1.45}.automation-blockers strong{font-weight:600}.automation-muted{margin:0;color:var(--muted);font-size:12px}.automation-error{margin:0;color:#982c37!important;font-size:12px!important;line-height:1.45}.automation-drawer .section-note{margin-bottom:14px}.automation-limits{display:grid;grid-template-columns:1fr auto;gap:8px;margin:14px 0 20px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:13px}.automation-limits dt{color:var(--muted)}.automation-limits dd{margin:0}.look-position-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:15px 0}.look-position{display:grid;gap:6px;min-width:0;padding:8px;border:1px solid var(--line);background:var(--paper)}.look-position>strong{font:11px Arial,sans-serif;color:var(--wine);letter-spacing:.1em}.look-position img,.look-placeholder{width:100%;height:155px;object-fit:cover;background:var(--soft)}.look-placeholder{display:grid;place-items:center;color:var(--muted);font-size:12px}.look-position small{display:block;min-height:30px;overflow:hidden;color:var(--muted);font-size:10px;line-height:1.45}.look-position .link-button{text-align:left;line-height:1.35}.automation-run-actions{margin-top:14px}.automation-config-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}.automation-config-line strong{font-weight:400}.automation-settings .drawer-form{max-width:460px;margin-top:20px}.template-preview{min-height:0}.sales-readonly-nav{grid-template-columns:1fr}.automation-shell .staff-card-actions{margin-top:2px}
@media(max-width:760px){.automation-shell .staff-main{padding-top:16px}.automation-shell .staff-section-tabs{margin-bottom:11px}.automation-shell .staff-heading{margin-bottom:13px}.automation-shell .staff-heading h1{font-size:24px}.automation-shell .automation-metrics{position:sticky;z-index:18;top:calc(56px + env(safe-area-inset-top));margin:0 -14px 11px;padding:8px 14px;background:var(--cream)}.automation-metrics>div{padding:10px 9px}.automation-metrics strong{font-size:22px}.automation-metrics span{font-size:10px}.automation-shell .staff-mobile-list{gap:9px}.automation-shell .staff-mobile-card{padding:12px}.automation-shell .staff-card-actions button{min-height:42px}.automation-shell .staff-main[data-staff-view="runs"] .staff-heading,.automation-shell .staff-main[data-staff-view="issues"] .staff-heading{margin-bottom:10px}.automation-shell .staff-main[data-staff-view="runs"] .staff-mobile-card,.automation-shell .staff-main[data-staff-view="issues"] .staff-mobile-card{gap:8px}.automation-drawer .drawer-primary{position:sticky;bottom:0}.look-position-grid{padding-bottom:4px}.automation-config-line{align-items:flex-start;flex-direction:column;gap:6px}.automation-shell .staff-main[data-staff-view="history"] .staff-heading p{max-width:270px}}
@media(max-width:760px) and (max-height:700px){.automation-shell .staff-main{padding-top:10px}.automation-shell .staff-heading h1{font-size:22px}.automation-shell .staff-heading p{font-size:11px;line-height:1.35}.automation-shell .automation-metrics{padding-top:5px;padding-bottom:5px}.automation-metrics>div{padding:8px}.automation-metrics strong{font-size:19px}.automation-shell .staff-mobile-card{padding:10px}.look-position img,.look-placeholder{height:122px}}

.automation-need-list{display:grid;gap:7px;padding:10px;border:1px solid var(--line);background:#fffaf5}.automation-need-list>strong{font-size:12px;font-weight:400;color:var(--wine)}.automation-need-list label{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:start;font-size:12px;line-height:1.45}.automation-need-list input{margin-top:2px;accent-color:var(--wine)}.automation-confirm-needs{display:grid;gap:6px;margin:0 0 14px;padding:11px 13px;border:1px solid var(--line);font-size:12px;line-height:1.45}.automation-confirm-needs strong{font-weight:400;color:var(--wine)}.automation-confirm-needs p{margin:0}.automation-feedback{margin:0;padding:6px 7px;background:#eef3f0;color:#355d48;font-size:10px;line-height:1.4}.automation-invitation{display:grid;gap:8px;margin:0 0 16px;padding:12px;border:1px solid var(--line)}.automation-invitation strong{font-weight:400}.automation-invitation p{margin:0;font-size:12px}.automation-checkboxes{display:grid;gap:8px;margin:0;padding:11px;border:1px solid var(--line)}.automation-checkboxes legend{padding:0 4px;color:var(--muted);font-size:12px}.automation-checkboxes label{font-size:13px}.automation-checkboxes input{accent-color:var(--wine)}.automation-budget-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.automation-filter .staff-search{flex:1}
@media(max-width:760px){.automation-shell .staff-main[data-staff-view="photo-templates"] .staff-section-tabs,.automation-shell .staff-main[data-staff-view="photo-library"] .staff-section-tabs,.automation-shell .staff-main[data-staff-view="outfit-history"] .staff-section-tabs{margin-bottom:8px}.automation-budget-inputs{grid-template-columns:1fr 1fr}.automation-need-list{padding:9px}}

.automation-summary-button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:30px;padding:5px 0;border:0;border-top:1px solid var(--line);background:transparent;color:var(--muted);font-size:12px;text-align:left}.automation-summary-button span{color:var(--wine);white-space:nowrap}.automation-queue-details .automation-blockers{margin-top:0}.automation-need-list{gap:5px;padding:8px 9px}.automation-need-list .is-hidden{display:none}.automation-need-text{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.automation-need-list.is-expanded .automation-need-text{display:block;overflow:visible}.automation-notification-hint{font-size:11px}
@media(max-width:760px){.automation-shell .staff-main[data-staff-view="needs"] .staff-section-tabs{display:none}.automation-shell .staff-main[data-staff-view="needs"] .staff-heading{margin-bottom:8px}.automation-shell .staff-main[data-staff-view="needs"] .staff-heading .section-eyebrow{display:none}.automation-shell .staff-main[data-staff-view="needs"] .staff-heading h1{margin:0;font-size:22px}.automation-shell .staff-main[data-staff-view="needs"] .staff-heading p{margin-top:3px;font-size:11px;line-height:1.3}.automation-shell .staff-main[data-staff-view="needs"] .automation-filter{margin-bottom:7px}.automation-shell .staff-main[data-staff-view="needs"] .automation-filter .staff-search,.automation-shell .staff-main[data-staff-view="needs"] .automation-filter .button{min-height:40px}.automation-shell .staff-main[data-staff-view="needs"] .automation-metrics{margin-bottom:7px}.automation-shell .staff-main[data-staff-view="needs"] .automation-customer{gap:7px;padding:10px 11px}.automation-shell .staff-main[data-staff-view="needs"] .automation-need-list{padding:7px 8px}.automation-shell .staff-main[data-staff-view="needs"] .automation-notification-hint{margin:0}}
@media(max-width:760px) and (max-height:700px){.automation-shell .staff-main[data-staff-view="needs"] .staff-heading p{display:none}.automation-shell .staff-main[data-staff-view="needs"] .automation-metrics{position:static;padding-top:4px;padding-bottom:4px}.automation-shell .staff-main[data-staff-view="needs"] .automation-metrics>div{padding:6px 7px}.automation-shell .staff-main[data-staff-view="needs"] .automation-metrics strong{font-size:17px}.automation-shell .staff-main[data-staff-view="needs"] .automation-customer{padding:8px 10px}}

.automation-template-variables{display:grid;gap:4px;padding:10px 11px;background:var(--soft);border-left:2px solid var(--wine);font-size:12px;line-height:1.45}.automation-template-variables p{margin:0}.automation-template-variables code{font-size:11px;overflow-wrap:anywhere}
.automation-look-trace{display:grid;grid-template-columns:auto 1fr;gap:3px 6px;margin:0;padding:6px 0;border-top:1px solid var(--line);font-size:10px;line-height:1.35}.automation-look-trace dt{color:var(--muted)}.automation-look-trace dd{margin:0;overflow-wrap:anywhere}.automation-look-items{min-height:0!important;overflow:visible!important}.automation-feedback{display:grid;grid-template-columns:auto 1fr;gap:3px 6px}.automation-feedback dt{font-weight:600}.automation-feedback dd{margin:0;overflow-wrap:anywhere}

/* Editorial workflow evidence is compact so a phone can show it without
   turning missing evidence into a visual pass state. */
.demo-notice{position:absolute;left:50%;transform:translateX(-50%);max-width:calc(100% - 220px);padding:4px 8px;background:#f5ece2;color:#71533e;border:1px solid #e2cfae;text-align:center;font-size:11px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.template-readiness{display:flex;flex-wrap:wrap;gap:5px;margin:7px 0}.template-readiness span{padding:3px 5px;font-size:10px;line-height:1.2}.template-readiness .is-ready{background:#e7f2e9;color:#2d674c}.template-readiness .is-missing{background:#f8e7e7;color:#9a2938}.preflight-summary{display:grid;gap:5px;padding:7px;border-top:1px solid var(--line);font-size:10px;line-height:1.35}.preflight-summary strong{font-size:11px;font-weight:500}.preflight-summary small{overflow-wrap:anywhere;color:var(--muted)}.quality-checks{display:grid;gap:4px;margin:0;padding:7px 0;border-top:1px solid var(--line)}.quality-checks>div{display:grid;grid-template-columns:auto 1fr;gap:3px 6px;align-items:start;font-size:10px;line-height:1.35}.quality-checks .status{grid-row:span 2}.quality-checks strong{font-weight:500}.quality-checks small{grid-column:2;overflow-wrap:anywhere;color:var(--muted)}.quality-product-checks{display:grid;gap:5px;margin:0;padding:7px;background:#fffaf5;border-top:1px solid var(--line);font-size:10px}.quality-product-checks>strong{font-size:11px;font-weight:500}.quality-product-checks>div{padding-top:5px;border-top:1px dashed var(--line)}.quality-product-checks>div>small{display:block;min-height:0;color:var(--wine);overflow-wrap:anywhere}.quality-product-checks .quality-checks{padding-bottom:0}.automation-run-actions .button{min-height:44px}
@media(max-width:760px){.demo-notice{max-width:calc(100% - 156px);font-size:10px}.template-readiness{margin:5px 0}.quality-checks>div{font-size:9px}.preflight-summary{padding:6px}.automation-drawer:has(#template-form) .form-field textarea{min-height:100px}.automation-drawer:has(#template-form) .form-field input[type=checkbox]{width:20px;height:20px}}

/* Face evidence stays inspectable on a phone without claiming a crop is valid. */
.demo-notice{display:flex;align-items:center;gap:5px}.demo-notice-copy{min-width:0;overflow:hidden;text-overflow:ellipsis}.demo-notice a{flex:0 0 auto;color:inherit;font-weight:600;text-decoration:underline}.demo-look-style{margin-left:4px;color:inherit;font-size:10px;font-weight:600}.face-evidence-sources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:9px;border:1px solid var(--line)}.face-evidence-sources legend{padding:0 4px;color:var(--muted);font-size:12px}.face-evidence-source{display:grid;gap:5px;min-width:0;font-size:11px;line-height:1.3}.face-evidence-source input{accent-color:var(--wine)}.face-evidence-preview{width:100%;height:112px;object-fit:cover;background:var(--soft)}.face-evidence-source span{overflow-wrap:anywhere}.face-evidence-crop{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.face-evidence-crop .form-field{grid-template-columns:24px minmax(0,1fr)}
@media(max-width:760px){.demo-look-style{font-size:9px}.face-evidence-preview{height:100px}.automation-drawer:has(#face-evidence-form) .drawer-primary{position:sticky;bottom:0}.automation-drawer:has(#face-evidence-form) .form-field textarea{min-height:86px}}

/* Keep the demo disclosure between the logo and customer controls on phones. */
@media(max-width:760px){
  .demo-notice{left:125px;right:74px;transform:none;max-width:none;padding:3px 5px;font-size:9px}
}
@media(max-width:320px){
  .demo-notice{left:115px;right:65px}
}

/* Generated photos remain with their outfit so context is never lost. */
.outfit-panel-list{max-width:800px}.outfit-panel{display:grid;gap:9px}.outfit-panel>div:first-child{min-width:0}.outfit-panel h3{margin:0 0 4px}.outfit-panel p{margin:0 0 4px}.outfit-panel small{display:block;min-height:0;overflow-wrap:anywhere;color:var(--muted);font-size:11px;line-height:1.45}.outfit-photo-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:8px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.outfit-photo-summary .link-button{min-height:38px;flex:0 0 auto;text-align:right}.outfit-photo-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:9px}.outfit-photo-thumb{min-width:0;border:1px solid var(--line);background:var(--paper)}.outfit-photo-thumb>button{display:block;width:100%;padding:0;border:0;background:var(--soft);cursor:zoom-in}.outfit-photo-thumb img,.outfit-photo-thumb .media-empty{display:block;width:100%;height:172px;object-fit:contain;background:var(--soft)}.outfit-photo-thumb>div{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:7px}.outfit-photo-thumb strong{min-width:0;overflow:hidden;font-size:11px;font-weight:500;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.outfit-photo-thumb .status{flex:0 0 auto;font-size:10px}.outfit-photo-empty{display:grid;min-height:88px;place-items:center;padding:12px;border:1px dashed var(--line);color:var(--muted);font-size:12px;line-height:1.45;text-align:center}
.outfit-spu-list{display:grid;gap:4px;margin:8px 0 0;padding:0;list-style:none}.outfit-spu-list li{display:grid;grid-template-columns:minmax(86px,.7fr) minmax(0,1.3fr);gap:8px;padding:5px 7px;background:var(--soft);font-size:11px;line-height:1.35}.outfit-spu-list strong{color:var(--wine);font-weight:500;overflow-wrap:anywhere}.outfit-spu-list span{min-width:0;overflow-wrap:anywhere}.outfit-spu-empty{display:block;margin-top:7px;color:var(--muted);font-size:11px}.demo-lifecycle{display:inline-block;padding:2px 5px;background:#f5ece2;color:#71533e;font-size:10px}.sales-customer-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:12px;max-width:980px}.sales-customer-card{display:grid;gap:9px;padding:13px;background:var(--paper);border:1px solid var(--line)}.sales-customer-card h2{margin:0;font-size:17px;font-weight:400}.sales-customer-card p{margin:4px 0 0;color:var(--muted);font-size:12px}.sales-customer-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.sales-customer-photos button{padding:0;border:0;background:var(--soft);cursor:zoom-in}.sales-customer-photos img{width:100%;height:118px;object-fit:contain;background:var(--soft)}.sales-customer-empty{grid-column:1/-1;display:grid;min-height:78px;place-items:center;border:1px dashed var(--line);color:var(--muted);font-size:12px}.sales-outfit-panel{gap:8px}
@media(max-width:760px){.automation-shell .staff-main[data-staff-view="outfits"],.automation-shell .staff-main[data-staff-view="history"]{padding-top:10px}.automation-shell .staff-main[data-staff-view="outfits"] .staff-heading,.automation-shell .staff-main[data-staff-view="history"] .staff-heading{margin-bottom:8px}.automation-shell .staff-main[data-staff-view="outfits"] .staff-mobile-card,.automation-shell .staff-main[data-staff-view="history"] .staff-mobile-card{gap:8px;padding:11px 12px}.outfit-photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.outfit-photo-thumb img,.outfit-photo-thumb .media-empty{height:132px}.outfit-photo-thumb>div{display:grid;gap:4px;padding:6px}.outfit-photo-thumb strong{white-space:normal}.outfit-photo-summary .link-button{min-height:40px}.outfit-photo-empty{grid-column:1/-1;min-height:76px}.automation-shell .staff-main[data-staff-view="history"] .staff-heading p{max-width:none}}
@media(max-width:760px){.sales-readonly-nav{grid-template-columns:repeat(2,1fr)}.automation-shell .staff-main[data-staff-view="customers"]{padding-top:10px}.sales-customer-list{grid-template-columns:1fr;gap:9px}.sales-customer-card{padding:11px}.sales-customer-photos img{height:106px}.sales-outfit-panel{padding:10px 11px}.sales-outfit-panel .outfit-photo-gallery{gap:7px}.sales-outfit-panel .outfit-photo-thumb img,.sales-outfit-panel .outfit-photo-thumb .media-empty{height:106px}.sales-outfit-panel .outfit-spu-list{margin-top:6px}.sales-outfit-panel .outfit-spu-list li{padding:4px 6px;font-size:10px}}
@media(max-width:760px) and (max-height:700px){.automation-shell .staff-main[data-staff-view="outfits"] .staff-heading h1,.automation-shell .staff-main[data-staff-view="history"] .staff-heading h1{font-size:21px}.automation-shell .staff-main[data-staff-view="outfits"] .staff-heading p,.automation-shell .staff-main[data-staff-view="history"] .staff-heading p{margin-top:3px}.automation-shell .staff-main[data-staff-view="outfits"] .outfit-panel,.automation-shell .staff-main[data-staff-view="history"] .outfit-panel{gap:6px;padding:9px 10px}.outfit-photo-thumb img,.outfit-photo-thumb .media-empty{height:112px}}

/* Demo-only review surface. It is rendered only for explicit local demo data. */
.demo-review-corner{position:absolute;z-index:4;top:14px;left:14px;display:flex;align-items:center;gap:7px}.demo-review-status{display:inline-flex;align-items:center;min-height:24px;padding:4px 7px;background:rgba(255,253,250,.94);border:1px solid currentColor;font-size:11px;line-height:1;color:#56625a}.demo-review-status.is-pass{color:#2d674c}.demo-review-status.is-fail{color:#9a2938;background:#fff3f1}.demo-review-status.is-pending{color:#71533e;background:#fff8e9}.template-compare-button{min-height:30px;border:1px solid rgba(255,253,250,.92);background:rgba(33,23,24,.78);color:#fffdfa;padding:6px 9px;font-size:11px;letter-spacing:.03em;box-shadow:0 2px 9px rgba(0,0,0,.18)}.template-compare-button:hover{background:var(--wine)}.template-compare-overlay{position:fixed;z-index:90;inset:0;display:grid;place-items:center;padding:clamp(18px,4vw,52px);background:rgba(23,16,16,.78);overflow:auto}.template-compare-dialog{width:min(1240px,100%);max-height:calc(100svh - 36px);overflow:auto;background:var(--paper);box-shadow:0 18px 70px rgba(0,0,0,.32)}.template-compare-head{display:flex;justify-content:space-between;gap:18px;padding:22px 24px 16px;border-bottom:1px solid var(--line)}.template-compare-head h2{margin:5px 0 4px;font-weight:400;font-size:clamp(20px,2.1vw,30px)}.template-compare-head p{margin:0;color:var(--muted);font-size:12px}.template-compare-close{display:grid;flex:0 0 auto;place-items:center;width:42px;height:42px;border:1px solid var(--line);font-size:28px}.template-compare-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line)}.template-compare-images figure{display:grid;grid-template-rows:auto minmax(360px,1fr);min-width:0;margin:0;background:var(--soft)}.template-compare-images figcaption{padding:10px 14px;background:var(--paper);color:var(--wine);font:11px Arial,sans-serif;letter-spacing:.14em}.template-compare-image{width:100%;height:min(62svh,760px);object-fit:contain;background:#e6e0d8}.template-compare-review{display:flex;align-items:flex-start;gap:12px;padding:14px 24px 18px;border-top:1px solid var(--line);font-size:12px;line-height:1.5}.template-compare-review>div{min-width:0}.template-compare-review strong{font-weight:500;color:var(--ink)}.template-compare-review ul{margin:5px 0 0;padding-left:17px}.template-compare-review p{margin:3px 0 0;color:var(--muted)}
@media(max-width:760px){.demo-review-corner{top:10px;left:10px;gap:5px}.demo-review-status{min-height:22px;padding:4px 6px;font-size:10px}.template-compare-button{min-height:28px;padding:5px 7px;font-size:10px}.template-compare-overlay{align-items:start;padding:0;background:var(--paper)}.template-compare-dialog{width:100%;max-height:none;min-height:100svh;overflow:visible;box-shadow:none}.template-compare-head{position:sticky;top:0;z-index:2;padding:calc(14px + env(safe-area-inset-top)) 16px 13px;background:var(--paper)}.template-compare-head h2{font-size:20px}.template-compare-images{display:block;background:transparent}.template-compare-images figure{grid-template-rows:auto minmax(0,1fr);margin:0 0 10px}.template-compare-images figcaption{padding:9px 15px}.template-compare-image{height:min(56svh,520px);background:#e6e0d8}.template-compare-review{padding:12px 16px calc(18px + env(safe-area-inset-bottom));gap:9px}.template-compare-close{width:40px;height:40px}}

/* One outfit per row: identity | clickable SPUs | full, uncropped photos. */
.automation-shell .staff-mobile-list.outfit-row-list{display:grid;max-width:none;gap:0;background:var(--paper);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.automation-shell .staff-mobile-card.outfit-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) 190px;align-items:center;gap:24px;padding:16px 20px;border:0;border-bottom:1px solid var(--line);background:transparent}
.outfit-row:last-child{border-bottom:0!important}.outfit-row-identity,.outfit-row-products,.outfit-row-photos{min-width:0}
.outfit-row h3{font-size:16px;line-height:1.5;overflow-wrap:anywhere}.outfit-row-identity p{margin:6px 0;color:var(--muted)}
.outfit-row-status{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.outfit-row-status .status{white-space:normal}.outfit-row-status .demo-lifecycle{border-radius:4px}
.outfit-row .outfit-spu-list{margin:0;gap:5px}.outfit-row .outfit-spu-list li{display:block;padding:0;background:transparent}
.outfit-spu-link{display:grid;width:100%;gap:3px;padding:7px 8px;border:0;border-radius:6px;background:transparent;text-align:left;cursor:pointer;line-height:1.4}
.outfit-spu-link:hover{background:var(--soft)}.outfit-spu-link:focus-visible{outline:2px solid var(--wine);outline-offset:1px}.outfit-spu-link strong{font-size:12px;text-decoration:underline;text-underline-offset:3px}.outfit-spu-link>span{font-size:12px}.outfit-spu-link .spu-detail-hint{font-size:10px;color:var(--muted)}
.outfit-row .outfit-photo-gallery{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;padding:0 0 3px}
.outfit-row .outfit-photo-thumb{flex:0 0 100%;border:0;scroll-snap-align:start;background:transparent}
.outfit-row .outfit-photo-thumb img,.outfit-row .outfit-photo-thumb .media-empty{height:154px;object-fit:contain;border-radius:6px;background:var(--soft)}
.outfit-row .outfit-photo-thumb>div{padding:4px 0;gap:3px;flex-wrap:wrap}.outfit-row .outfit-photo-thumb strong{font-size:10px}.outfit-row .outfit-photo-thumb .status{font-size:9px;padding:2px 4px}
.outfit-row .outfit-photo-empty{width:100%;min-height:130px;padding:6px;border-radius:6px}.outfit-photo-count{margin-top:3px;font-size:10px!important}
body.staff-spu-open{overflow:hidden}.staff-spu-overlay{position:fixed;inset:0;z-index:75;display:grid;place-items:center;background:rgba(30,22,23,.5);padding:24px}
.staff-spu-dialog{width:min(850px,100%);max-height:calc(100dvh - 48px);display:flex;flex-direction:column;background:var(--paper);border-radius:16px;box-shadow:0 18px 70px #21151633;overflow:hidden}
.staff-spu-head{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:22px 24px 16px;border-bottom:1px solid var(--line);flex-shrink:0}.staff-spu-head h2{font-size:22px;margin:7px 0 0;line-height:1.4}.staff-spu-head .icon-button{flex:0 0 44px;width:44px;height:44px;font-size:26px;border-radius:50%;background:var(--soft)}
.staff-spu-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;padding:24px;overflow:auto}.staff-spu-image{display:block;width:100%;height:340px;object-fit:contain;background:var(--soft);border-radius:8px}.staff-spu-no-image{height:240px;display:grid;place-items:center;background:var(--soft);color:var(--muted)}
.staff-spu-information dl{display:grid;grid-template-columns:86px minmax(0,1fr);gap:13px 10px;margin:0;font-size:13px;line-height:1.5}.staff-spu-information dt{color:var(--muted)}.staff-spu-information dd{margin:0;overflow-wrap:anywhere}.staff-spu-variants{margin-top:22px;border-top:1px solid var(--line);padding-top:14px}.staff-spu-variants h3{font-size:14px;margin:0 0 10px}.staff-spu-variants ul{padding:0;list-style:none;display:grid;gap:8px}.staff-spu-variants li{display:grid;gap:3px;font-size:12px}.staff-spu-variants small{color:var(--muted);overflow-wrap:anywhere}
@media(max-width:760px){
 .automation-shell .staff-mobile-card.outfit-row{grid-template-columns:minmax(0,.95fr) minmax(0,1.1fr) 100px;gap:7px;padding:12px 9px}
 .outfit-row h3{font-size:12px;line-height:1.45}.outfit-row-identity p{font-size:11px}.outfit-row-status{gap:4px}.outfit-row-status .status{font-size:10px;padding:3px 5px}.outfit-row-status .demo-lifecycle{font-size:9px;padding:2px 4px}
 .outfit-row .outfit-spu-link{padding:6px 3px;gap:3px;min-height:44px}.outfit-spu-link strong{font-size:10px}.outfit-spu-link>span{font-size:11px}.outfit-spu-link .spu-detail-hint{font-size:9px}
 .outfit-row .outfit-photo-thumb img,.outfit-row .outfit-photo-thumb .media-empty{height:122px}.outfit-row .outfit-photo-empty{min-height:122px;font-size:10px}.outfit-row .outfit-photo-thumb strong{display:none}.outfit-row .outfit-photo-thumb .status{font-size:9px}.outfit-photo-count{font-size:9px!important}
 .staff-spu-overlay{padding:14px}.staff-spu-dialog{max-height:calc(100dvh - 28px);border-radius:12px}.staff-spu-head{padding:15px;gap:8px}.staff-spu-head h2{font-size:18px}.staff-spu-body{grid-template-columns:1fr;gap:18px;padding:16px}.staff-spu-image{height:220px}.staff-spu-information dl{font-size:13px}.staff-spu-head .section-eyebrow{font-size:10px}
}
@media(max-width:360px){.automation-shell .staff-mobile-card.outfit-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 84px;gap:4px;padding:10px 6px}.outfit-row .outfit-photo-thumb img{height:112px}}

/* Sales view: product packshots inline, complete look behind the title action. */
.outfit-row-title{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px}.outfit-row-title h3{margin:0}
.outfit-preview-button{flex:0 0 auto;min-height:34px;padding:5px 8px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--wine);font-size:11px;line-height:1.3}.outfit-preview-button:hover{border-color:var(--wine)}.outfit-preview-button:disabled{color:var(--muted);opacity:.65;cursor:default}
.outfit-spu-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.outfit-spu-gallery.has-one{grid-template-columns:1fr}.outfit-spu-thumb{min-width:0;border:0;padding:0;background:var(--soft);border-radius:6px;overflow:hidden;color:var(--wine);text-align:center}.outfit-spu-thumb img{width:100%;height:118px;object-fit:contain}.outfit-spu-gallery.has-one .outfit-spu-thumb img{height:154px}.outfit-spu-thumb>span{display:block;padding:4px;font-size:10px;overflow-wrap:anywhere}.outfit-spu-thumb:focus-visible,.outfit-preview-button:focus-visible{outline:2px solid var(--wine);outline-offset:2px}.outfit-spu-thumb .spu-thumb-empty{display:grid;height:118px;place-items:center;font-size:11px;color:var(--muted)}
.staff-outfit-dialog{width:min(980px,100%)}.staff-outfit-photo-body{overflow:auto;padding:18px 24px;display:grid;gap:20px}.staff-outfit-photo-body figure{margin:0;min-width:0}.staff-outfit-photo-body img{width:100%;height:min(65dvh,700px);object-fit:contain;background:var(--soft)}.staff-outfit-photo-body figcaption{padding-top:8px;font-size:12px;text-align:center;color:var(--muted)}.staff-outfit-dialog .staff-spu-head p{margin:6px 0 0;color:var(--muted);font-size:12px}
.automation-shell.is-sales .staff-user [data-action="logout"]{display:block;margin-top:10px;border:1px solid var(--wine);border-radius:6px;color:var(--wine);min-height:42px;background:var(--paper)}
@media(min-width:761px){.automation-shell.is-sales>.staff-nav{position:sticky;top:0;height:100svh;align-self:start;overflow-y:auto;flex-shrink:0}.automation-shell.is-sales .staff-user{margin-top:auto;flex-shrink:0}}
@media(max-width:760px){.outfit-row-title{gap:4px}.outfit-preview-button{min-height:36px;padding:5px 6px;font-size:10px}.outfit-spu-thumb img{height:76px}.outfit-spu-gallery.has-one .outfit-spu-thumb img{height:122px}.outfit-spu-thumb>span{font-size:9px;padding:3px}.outfit-spu-thumb .spu-thumb-empty{height:76px;font-size:10px}.staff-outfit-photo-body{padding:12px;gap:15px}.staff-outfit-photo-body img{height:60dvh}.automation-shell.is-sales .staff-mobile-head [data-action="logout"]{border:1px solid var(--line);border-radius:6px;min-height:36px;padding:7px 10px}}

.staff-login-title{font-size:24px;font-weight:400;margin:0}.staff-login-notice{max-width:360px;padding:0 20px;font-size:13px;line-height:1.6;text-align:center;color:var(--wine)}
