/* Approved Duo and iPad portrait composition. No traditional phone selectors. */
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .home-body{overflow-y:auto!important;padding-bottom:100px!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .liquid-home-grid{display:grid!important;direction:ltr;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)!important;grid-template-rows:auto auto!important;gap:20px!important;height:auto!important;overflow:visible!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .liquid-home-grid>.liquid-primary{grid-column:2;grid-row:1;height:auto!important;max-height:none!important;overflow:visible!important;min-width:0;padding-bottom:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .ap-home-intro{grid-column:1;grid-row:1;min-width:0;align-self:center}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .ap-home-intro .home-greeting{display:flex;flex-direction:column;align-items:flex-start;gap:20px;margin:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .ap-home-intro .home-greeting h1{font-size:32px;line-height:1.18;margin-top:14px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .ap-home-intro .home-eyebrow{font-size:9px;letter-spacing:1.3px;line-height:1.7}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .ap-home-intro .home-weather{position:static;align-self:flex-start;text-align:left;margin:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .liquid-home-grid>.liquid-secondary{grid-column:1/-1;grid-row:2;height:auto!important;max-height:none!important;overflow:visible!important;padding-top:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .home-hero-photo{height:300px!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .home-hero-bottom{position:absolute!important;inset-inline:8px;bottom:8px;margin:0!important;padding:9px;border-radius:20px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .home-hero-summary h2{font-size:20px;line-height:1.15}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .home-hero-summary>span{font-size:10px;white-space:nowrap}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .home-hero-thumbnails>a{height:40px;min-width:0;padding:2px;border-radius:13px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .home-hero-controls>.icon-btn{width:40px;height:40px;min-width:40px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .home-look-tools{grid-template-columns:minmax(0,1fr) 40px 40px;gap:6px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .home-look-tools>.btn-primary{grid-column:1/-1}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .ap-home-intro .home-weather{width:auto;max-width:100%;justify-content:flex-start;overflow:visible}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .ap-home-intro .home-weather>span{white-space:normal;overflow:visible;text-overflow:clip}
/* Date and weather share the top edge; welcome sits directly underneath. */
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .ap-home-intro{align-self:start}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .ap-home-intro .home-greeting{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px 10px;align-items:start}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .ap-home-intro .home-greeting>div{display:contents}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .ap-home-intro .home-eyebrow{grid-column:1;grid-row:1;margin:0;font-size:8.5px;letter-spacing:1px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .ap-home-intro .home-weather{grid-column:2;grid-row:1;align-self:start;max-width:88px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .ap-home-intro .home-greeting h1{grid-column:1/-1;grid-row:2;margin:0}
/* Half fold: two independent vertical scroll surfaces, separated by the reserved fold. */
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half="1"] .home-body{display:flex!important;flex-direction:column;min-height:0;overflow:hidden!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half="1"] .liquid-home-grid{flex:1;min-height:0;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,var(--duo-first-pane)) minmax(0,1fr)!important;gap:var(--duo-division-gap,24px)!important;overflow:hidden!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half="1"] .ap-half-top{grid-column:1;grid-row:1;display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:20px;align-content:start;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half="1"] .ap-half-top>.ap-home-intro{grid-column:1;grid-row:1}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half="1"] .ap-half-top>.liquid-primary{grid-column:2;grid-row:1;height:auto!important;max-height:none!important;overflow:visible!important;padding-bottom:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half="1"] .liquid-home-grid>.liquid-secondary{grid-column:1;grid-row:2;min-height:0;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half="1"] .liquid-home-grid{align-items:stretch!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half="1"] :is(.ap-half-top,.liquid-home-grid>.liquid-secondary){height:100%!important;max-height:100%!important}
/* Wardrobe review: three pieces across the open portrait display. */
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .screen[data-path="/wardrobe"] .ref-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait]:not([data-ap-half-wardrobe]) .screen[data-path="/wardrobe"] .ref-collection{display:block!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait]:not([data-ap-half-wardrobe]) .screen[data-path="/wardrobe"] .ref-selected{display:none!important}
/* Half fold keeps search/selection above the hinge and the product grid below. */
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .screen>.vt-body{display:flex!important;flex-direction:column;min-height:0;overflow:hidden!important;padding-bottom:100px!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ref-collection{display:grid!important;flex:1;min-height:0;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,var(--ap-wardrobe-first)) minmax(0,1fr)!important;gap:var(--duo-division-gap,24px);align-items:stretch;overflow:hidden}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] :is(.ap-wardrobe-top,.ap-wardrobe-products){min-height:0;height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ap-wardrobe-top{display:flex;flex-direction:column;gap:10px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ap-wardrobe-controls{flex-shrink:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ap-wardrobe-controls .ref-page-heading{margin:0 0 8px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ap-wardrobe-controls .ref-page-heading h1{font-size:26px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ap-wardrobe-controls .ref-page-heading :is(.ref-eyebrow,p){display:none}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ref-filter-bar{margin:0 0 7px;gap:8px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ref-filter-bar :is(.ref-search,.icon-btn){height:36px;min-height:36px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ref-filter-bar .icon-btn{width:36px;min-width:36px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ref-search input{min-height:32px;font-size:13px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ref-pill-row{margin:0;gap:6px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ref-pill-row .chip{height:30px;min-height:30px;padding:4px 10px;font-size:11px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ref-selected{display:grid;grid-template-columns:132px minmax(0,1fr);grid-template-rows:repeat(5,auto) 34px;gap:4px 14px;position:static;min-width:0;flex-shrink:0;margin:0;padding:12px;border-radius:22px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ref-selected-photo{grid-column:1;grid-row:1/6;width:132px;height:144px;margin:0;border-radius:16px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ref-selected>.ref-eyebrow{grid-column:2;grid-row:1;font-size:9px;margin:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ref-selected>h2{grid-column:2;grid-row:2;font-size:21px;line-height:1.2;margin:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ref-selected>p{grid-column:2;grid-row:3;margin:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ref-selected>.attr{grid-column:2;min-height:24px;font-size:11px;padding:2px 0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ref-selected>.btn{grid-column:1;grid-row:6;min-height:34px;font-size:11px;padding:5px;margin:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ref-selected>.ref-text-button{grid-column:2;grid-row:6;min-height:34px;display:flex;align-items:center;font-size:12px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ref-product-meta{margin:0 0 10px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .screen[data-path="/wardrobe"]>.vt-body{padding-inline:22px!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-wardrobe] .ref-selected{background:var(--home-glass);border:1px solid var(--home-line);box-shadow:0 5px 20px #513a430a;backdrop-filter:blur(20px)}

/* Calendar review: look above, calendar below, title alongside the look. */
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-calendar] .ref-calendar-body{padding-inline:22px!important;padding-bottom:100px!important;overflow-y:auto!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-calendar] .ref-calendar-body>.ref-reading{max-width:none;width:100%}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-calendar] .duo-calendar-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:24px;direction:ltr}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-calendar] .ap-calendar-top{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:20px;align-items:start;min-width:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-calendar] .ap-calendar-top>.ref-page-heading{margin:0;grid-column:1;grid-row:1}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-calendar] .ap-calendar-top>.ref-page-heading h1{font-size:32px;line-height:1.15;margin:0 0 14px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-calendar] .ap-calendar-top>.ref-page-heading p{font-size:14px;line-height:1.6;margin:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-calendar] .duo-calendar-preview{display:block!important;grid-column:2;grid-row:1;min-width:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-calendar] .duo-calendar-preview>.ref-eyebrow{font-size:9px;margin:0 0 8px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-calendar] .duo-saved-look-card{position:relative;height:330px;min-height:0;border:1px solid var(--home-line);border-radius:26px;overflow:hidden;background:var(--home-glass)}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-calendar] .duo-saved-look-avatar{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-calendar] .duo-saved-look-products{position:absolute;bottom:8px;left:8px;right:8px;padding:9px;border:1px solid var(--home-line);border-radius:20px;background:var(--home-glass);backdrop-filter:blur(24px)}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-calendar] .duo-saved-look-products h2{font-family:'Bodoni Moda','Amiri',serif;font-size:20px;line-height:1.2;margin:0 0 8px;font-weight:500}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-calendar] .home-hero-thumbnails>a{height:40px;min-width:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-calendar] .duo-calendar-main{display:block!important;grid-column:1;grid-row:2;min-width:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-calendar] .duo-calendar-main>:is(.row,.col-3){margin-top:16px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-calendar] .ref-calendar-body{display:flex!important;flex-direction:column;min-height:0;overflow:hidden!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-calendar] .ref-calendar-body>.ref-reading{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-calendar] .duo-calendar-grid{flex:1;min-height:0;grid-template-rows:minmax(0,var(--ap-calendar-first)) minmax(0,1fr)!important;align-items:stretch;overflow:hidden}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-calendar] :is(.ap-calendar-top,.duo-calendar-main){height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}

/* Stylist portrait stays a single conversation; half-fold dedicates lower pane to input. */
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-chat] .screen[data-path="/stylist"]>.vt-body{padding-inline:22px!important;padding-bottom:100px!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-chat] .ref-chat-grid{display:block!important;height:auto!important;overflow:visible!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-chat] .ref-chat-look{display:none!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-chat] .ref-chat-primary{height:auto!important;max-height:none!important;overflow:visible!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-chat] .ref-chat-composer{position:sticky;bottom:0;margin:14px 0 0!important;flex-shrink:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-chat] .screen[data-path="/stylist"]>.vt-body{display:flex!important;flex-direction:column;min-height:0;overflow:hidden!important;padding-bottom:12px!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-chat] .screen[data-path="/stylist"]>.vt-body>.ref-reading{display:flex;flex-direction:column;flex:1;min-height:0;max-width:none;width:100%;overflow:hidden}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-chat] .ref-chat-grid{display:grid!important;flex:1;min-height:0;height:auto!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,var(--ap-chat-first)) minmax(0,1fr)!important;gap:var(--duo-division-gap,24px)!important;overflow:hidden!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-chat] .ap-chat-top{grid-row:1;min-height:0;height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-chat] .ap-chat-bottom{grid-row:2;display:flex;flex-direction:column;gap:10px;height:100%;min-height:0;overflow:hidden}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-chat] .ap-chat-bottom>.ref-chat-composer{position:static;margin:0!important;min-height:56px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-chat] .ap-chat-bottom>.ref-tag-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;flex-shrink:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-chat] .ref-tag-grid button{padding:8px;font-size:12px;justify-content:center;min-height:44px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-chat]>.vt-nav{display:none!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-chat] .ref-specialist-current{margin-top:0;margin-bottom:12px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-chat] .ref-page-heading{margin-bottom:12px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-chat] .ref-page-heading h1{font-size:30px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-chat] .ref-chat-welcome{display:none}

/* Half-fold settings: selected details above, persistent section list below. */
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-settings]>.screen>.vt-body{display:flex!important;flex-direction:column;min-height:0;overflow:hidden!important;padding:0 22px 100px!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-settings] .duo-settings-grid{display:grid!important;flex:1;min-height:0;height:auto!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,var(--ap-settings-first)) minmax(0,1fr)!important;gap:var(--duo-division-gap,24px);overflow:hidden;direction:ltr}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-settings] :is(.duo-settings-menu,.duo-settings-detail){min-height:0;min-width:0;height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;padding-bottom:0;-webkit-overflow-scrolling:touch}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-settings] .duo-settings-detail{grid-column:1;grid-row:1}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-settings] .duo-settings-menu{grid-column:1;grid-row:2}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-settings] .duo-settings-grid .ref-reading{max-width:none!important;width:100%;margin:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-settings] .duo-settings-placeholder{padding:24px;border-radius:24px;border:1px solid var(--home-line);background:var(--home-glass);color:var(--text-secondary)}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-settings] .duo-setting-selected{background:var(--brand-soft,#e6d8e4);border-inline-start:3px solid var(--brand)}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-settings] .duo-settings-detail .ref-specialist-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-settings] .duo-settings-menu .ref-profile-hero{margin:0 0 12px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-settings] .duo-settings-menu .ref-profile-hero h1{font-size:28px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-settings] .duo-settings-menu .ref-stats{margin-bottom:14px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-settings] .duo-settings-menu .ref-stats .stat{padding:12px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-ap-half-settings]>.screen>.profile-top{display:none!important}
/* Two stylists per row on both open portrait and half-fold portrait. */
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app[data-approved-pose=portrait] .ref-specialist-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}

html[data-approved-adaptive] #app[data-ap-half-chat] .ap-chat-bottom{justify-content:flex-start}

html[data-approved-adaptive] #app[data-ap-half-calendar] .duo-calendar-grid{gap:var(--duo-division-gap,24px)}
/* Inner Duo portrait: branding shares the clear leading side of the native
   top bar. Reserve the system top region once, instead of placing a second
   title strip below it. The background continues to cover the whole display. */
html[data-approved-adaptive=duo]:has(#app.duo-native-surface[data-approved-pose=portrait]>.screen>.home-app-top) #approved-content-viewport{--approved-safe-top:0px}
html[data-approved-adaptive=duo] #app.duo-native-surface[data-approved-pose=portrait]:is(.liquid-home,.fidelity)>.screen>.home-app-top{position:relative;height:max(44px,env(safe-area-inset-top,0px));min-height:max(44px,env(safe-area-inset-top,0px));padding:0 24px;align-items:flex-start}
html[data-approved-adaptive=duo] #app.duo-native-surface[data-approved-pose=portrait]>.screen>.home-app-top :is(.home-wordmark,.ref-duo-wordmark){position:absolute;top:12px;left:24px;right:auto;max-width:calc(50% - 24px);margin:0;padding:0;line-height:1.6;min-height:32px;font-size:20px!important;white-space:nowrap}

/* Shared web/native source for the account shortcut in every approved pose. */
html[data-approved-adaptive] #app .home-duo-tools>.approved-account-tool{width:44px;height:44px;min-width:44px;min-height:44px;display:grid;place-items:center;padding:3px;border-radius:50%;overflow:hidden}
html[data-approved-adaptive] #app .approved-account-tool>img{display:block;width:36px;height:36px;max-width:none;border-radius:50%;object-fit:cover;object-position:center top}

/* Duo portrait: actions stay in the left column; the avatar owns the right. */
html[data-approved-adaptive=duo] #app[data-approved-pose=portrait] .ap-home-intro>#home-look-tools{margin-top:20px}
html[data-approved-adaptive=duo] #app[data-approved-pose=portrait] .home-hero-photo{height:360px!important}
/* Keep the whole card and pager above the real fold instead of clipping them. */
html[data-approved-adaptive=duo] #app[data-ap-half="1"] .home-hero-photo{height:min(360px,max(120px,calc(var(--duo-first-pane) - 44px)))!important}
html[data-approved-adaptive=duo] #app[data-ap-half="1"] .home-hero-photo .cprev-layer img{object-fit:contain!important}

/* Align the portrait action group's bottom with the card, excluding its pager. */
html[data-approved-adaptive=duo] #app[data-approved-pose=portrait] .liquid-home-grid{--home-choice-pager-height:0px}
html[data-approved-adaptive=duo] #app[data-approved-pose=portrait] .liquid-home-grid:has(.home-outfit-carousel){--home-choice-pager-height:39px}
html[data-approved-adaptive=duo] #app[data-approved-pose=portrait] .ap-home-intro{display:flex;flex-direction:column;align-self:stretch}
html[data-approved-adaptive=duo] #app[data-approved-pose=portrait] .ap-home-intro>#home-look-tools{margin-top:auto;margin-bottom:var(--home-choice-pager-height)}
