/* Approved 30 October Duo/iPad reference. Every rule is gated by the profile;
   traditional iPhones (including Pro Max in landscape) retain their exact CSS. */
html[data-approved-adaptive] #approved-full-background{position:fixed;inset:0;pointer-events:none}
html[data-approved-adaptive] #approved-content-viewport{--approved-safe-top:max(36px,env(safe-area-inset-top,0px));position:fixed;top:calc(var(--approved-pan,0px) + var(--approved-safe-top));left:0;right:0;height:calc(var(--approved-visible-height,100dvh) - var(--approved-safe-top));overflow:hidden;transform:translateZ(0);isolation:isolate}
html[data-approved-adaptive] #app{width:100%;max-width:none!important;margin:0;top:0!important;bottom:auto;height:var(--view-height)}
html[data-approved-adaptive] #app>.screen{height:100%}
html[data-approved-adaptive] #app .home-wordmark{font-family:'Bodoni Moda',serif!important}
/* The content viewport already owns the top safe area. Do not count it twice. */
html[data-approved-adaptive] #app .screen>.vt-top{padding-top:18px}
html[data-approved-adaptive] #app:is(.liquid-home,.fidelity) .home-app-top{height:70px;min-height:70px;padding-top:12px}
html[data-approved-adaptive] #app:is(.liquid-home,.fidelity).liquid-roomy .home-app-top{height:44px;min-height:44px;padding-top:0}
html[data-approved-adaptive] #app .profile-top,html[data-approved-adaptive] #app .entry-top{padding-top:12px}
html[data-approved-adaptive] #app .entry-safe-area{height:0}
html[data-approved-adaptive] #app.auth-entry[data-ref-page=login] .entry-safe-area{height:24px;min-height:24px}
html[data-approved-adaptive] #app.auth-entry.keyboard-open .entry-safe-area{height:0;min-height:0}
html[data-approved-adaptive] #app.auth-entry.keyboard-open .entry-top{padding-top:2px}
/* Closed Duo: side navigation, with the same physical side in RTL and LTR. */
html[data-approved-adaptive] #app[data-approved-pose=closed]>.screen>.vt-body{padding-right:80px!important;padding-left:20px!important;padding-bottom:24px!important}
html[data-approved-adaptive] #app[data-approved-pose=closed]>.screen>.vt-top{padding-right:80px!important}
html[data-approved-adaptive] #app[data-approved-pose=closed] .home-top-actions{display:none}
html[data-approved-adaptive] #app[data-approved-pose=closed] .home-hero-photo{height:380px}
html[data-approved-adaptive] #app[data-approved-pose=closed]>.vt-nav{position:absolute;right:10px;left:auto;bottom:22px;width:54px;height:auto;display:flex;flex-direction:column;gap:6px;padding:5px;transform:none}
html[data-approved-adaptive] #app[data-approved-pose=closed]>.vt-nav>a{width:44px;height:44px;min-height:44px}
html[data-approved-adaptive] #app.liquid-roomy .liquid-home-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
html[data-approved-adaptive] #app[data-approved-pose=book].liquid-roomy .liquid-home-grid{gap:48px}
html[data-approved-adaptive] #app[data-approved-pose=book] .overlay .sheet{width:calc(50% - 62px);max-width:calc(50% - 62px);margin-left:auto;margin-right:78px}
html[data-approved-adaptive] #app[data-approved-pose=portrait]>.screen>.vt-body{padding-bottom:100px}
html[data-approved-adaptive] #app[data-approved-pose=portrait] .liquid-home-grid{display:block}
html[data-approved-adaptive] #app[data-approved-pose=portrait] .home-hero-photo{height:480px}

/* Duo: system bars occupy the side on the outer display and inner landscape.
   The background stays edge-to-edge; only the live content avoids system UI.
   Read all insets from the system, including inner portrait and Split View. */
html[data-approved-adaptive=duo] #approved-content-viewport{--approved-safe-top:env(safe-area-inset-top,0px);--approved-safe-left:env(safe-area-inset-left,0px);--approved-safe-right:env(safe-area-inset-right,0px);left:var(--approved-safe-left);right:var(--approved-safe-right)}
html[data-approved-adaptive=duo] #app:not([data-approved-pose=portrait]) .screen>.vt-top{padding-top:8px}
html[data-approved-adaptive=duo] #app:is(.liquid-home,.fidelity):not([data-approved-pose=portrait]) .home-app-top{height:52px;min-height:52px;padding-top:4px}
html[data-approved-adaptive=duo] #app:is(.liquid-home,.fidelity).liquid-roomy:not([data-approved-pose=portrait]) .home-app-top{height:44px;min-height:44px;padding-top:0}
html[data-approved-adaptive=duo] #app:is(.liquid-home,.fidelity).liquid-roomy .home-wordmark{top:0}
html[data-approved-adaptive=duo] #app:not([data-approved-pose=portrait]) :is(.profile-top,.entry-top){padding-top:8px}
html[data-approved-adaptive=duo] #app.auth-entry:not([data-approved-pose=portrait]) .entry-safe-area{height:0;min-height:0}
/* App navigation needs its own space, separately from the system safe area.
   Entry/detail pages without the app rail use the full safe content width. */
html[data-approved-adaptive=duo] #app[data-approved-pose=closed]:not(:has(>.vt-nav))>.screen>:is(.vt-top,.vt-body){padding-right:20px!important}
html[data-approved-adaptive=duo] #app.liquid-roomy .home-body{padding-left:23px;padding-right:80px}
html[data-approved-adaptive=duo] #app[data-approved-pose=closed] .home-body{container-type:inline-size;container-name:duo-home}
@container duo-home (max-width:360px){
 html[data-approved-adaptive=duo] #app[data-approved-pose=closed] .home-look-tools{grid-template-columns:minmax(0,1fr) 44px 44px}
 html[data-approved-adaptive=duo] #app[data-approved-pose=closed] .home-look-tools>.btn-primary{grid-column:1 / -1}
}

/* Preserve readable greetings and the complete source image on both displays.
   cover magnifies a portrait character when a stale compact frame becomes wide. */
html[data-approved-adaptive=duo] #app .home-greeting{gap:12px;align-items:flex-start}
html[data-approved-adaptive=duo] #app .home-greeting h1{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
html[data-approved-adaptive=duo] #app[data-approved-pose=closed] .home-greeting h1{font-size:26px}
html[data-approved-adaptive=duo] #app .home-hero-photo .cprev-layer img{object-fit:contain;object-position:center top}
html[data-approved-adaptive=duo] #app[data-approved-pose=closed] .home-hero-photo{height:clamp(280px,calc(var(--view-height) * .56),430px)}

/* System controls and app controls share one physical edge lane on Duo.
   Only the screen content is inset; the live app controls occupy that lane. */
html[data-approved-adaptive=duo][data-approved-axis=side] #approved-content-viewport{left:0;right:0}
html[data-approved-adaptive=duo][data-approved-axis=side] #app{--duo-rail-width:max(76px,var(--approved-safe-right));--duo-content-left:var(--approved-safe-left);--duo-content-right:var(--duo-rail-width)}
html[data-approved-adaptive=duo][data-approved-axis=side] #app[data-duo-rail-side=left]{--duo-rail-width:max(76px,var(--approved-safe-left));--duo-content-left:var(--duo-rail-width);--duo-content-right:var(--approved-safe-right)}
html[data-approved-adaptive=duo][data-approved-axis=side] #app>.screen{position:absolute;top:0;left:var(--duo-content-left);right:var(--duo-content-right);width:auto;margin:0}
html[data-approved-adaptive=duo][data-approved-axis=side] #app>.screen>:is(.vt-top,.vt-body){padding-right:22px!important;padding-left:22px!important}
html[data-approved-adaptive=duo][data-approved-axis=side] #app>.screen>.vt-body{padding-bottom:24px!important}
html[data-approved-adaptive=duo][data-approved-axis=side] #app>.duo-controls-column{position:absolute;z-index:20;right:0;top:var(--duo-system-bottom,128px);bottom:max(16px,env(safe-area-inset-bottom,0px));width:var(--duo-rail-width);display:flex;flex-direction:column;align-items:center;gap:12px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;padding:4px 0;scroll-padding-block:4px}
html[data-approved-adaptive=duo][data-approved-axis=side] #app[data-duo-rail-side=left]>.duo-controls-column{left:0;right:auto}
html[data-approved-adaptive=duo][data-approved-axis=side] #app>.duo-controls-column>.home-duo-tools{position:static;display:flex;flex:none;flex-direction:column;gap:8px;top:auto;right:auto;left:auto}
html[data-approved-adaptive=duo][data-approved-axis=side] #app>.duo-controls-column>.home-duo-tools>.icon-btn{width:44px;height:44px;min-height:44px}
html[data-approved-adaptive=duo][data-approved-axis=side] #app>.duo-controls-column>.vt-nav{position:static;inset:auto;margin: auto 0 0;width:54px;min-height:0;height:auto;max-width:none;padding:5px;display:flex;flex:none;flex-direction:column;gap:6px;transform:none!important}
html[data-approved-adaptive=duo][data-approved-axis=side] #app>.duo-controls-column>.vt-nav>a,html[data-approved-adaptive=duo][data-approved-axis=side] #app>.duo-controls-column>.vt-nav .add{width:44px;height:44px;min-height:44px;max-width:none;flex:none}
html[data-approved-adaptive=duo][data-approved-axis=side] #app.keyboard-open>.duo-controls-column>.vt-nav{display:none}
html[data-approved-adaptive=duo][data-approved-axis=side] #app>.screen>:is(.ref-chat-composer,.composer){margin:8px 22px max(16px,env(safe-area-inset-bottom,0px))}
html[data-approved-adaptive=duo][data-approved-axis=side] #app>.overlay>.sheet{left:var(--duo-content-left);right:var(--duo-content-right);width:calc(100% - var(--duo-content-left) - var(--duo-content-right));margin-inline:auto}

/* Guide, November 2026: UIKit owns the control lane. No second web rail. */
html[data-approved-adaptive=duo] #app.duo-native-controls{--duo-content-left:0px;--duo-content-right:0px}
html[data-approved-adaptive=duo] #app:is(.duo-native-controls,.duo-controls-handoff)>.duo-controls-column,
html[data-approved-adaptive=duo] #app:is(.duo-native-controls,.duo-controls-handoff)>.vt-nav,
html[data-approved-adaptive=duo] #app:is(.duo-native-controls,.duo-controls-handoff) .home-duo-tools{display:none!important}
html[data-approved-adaptive=duo] #app.duo-native-controls>.screen{left:0;right:0;width:100%}
html[data-approved-adaptive=duo] #app.duo-native-controls>.screen>:is(.vt-top,.vt-body){padding-inline:22px!important}
html[data-approved-adaptive=duo] #app.duo-native-controls>.screen>.vt-body{padding-bottom:24px!important}
/* Physical pane ordering stays stable in Arabic and English. Each pane retains
   its own text direction; changing geometry never replaces the application DOM. */
html[data-approved-adaptive=duo] #app[data-duo-split] :is(.liquid-home-grid,.liquid-item-grid,.ref-item-grid,.ref-chat-grid,.liquid-calendar-grid){display:grid!important;direction:ltr;gap:var(--duo-division-gap,24px)!important;align-items:start}
html[data-approved-adaptive=duo] #app[data-duo-split] :is(.liquid-primary,.liquid-secondary,.ref-item-primary,.ref-item-secondary,.ref-chat-primary,.ref-chat-look){display:block;min-width:0;min-height:0;position:static;height:auto;padding-top:0}
html[data-approved-adaptive=duo] #app[dir=rtl][data-duo-split] :is(.liquid-primary,.liquid-secondary,.ref-item-primary,.ref-item-secondary,.ref-chat-primary,.ref-chat-look){direction:rtl}
html[data-approved-adaptive=duo] #app[data-duo-split=columns] :is(.liquid-home-grid,.liquid-item-grid,.ref-item-grid,.ref-chat-grid,.liquid-calendar-grid){grid-template-columns:minmax(0,var(--duo-first-pane)) minmax(0,1fr)!important;grid-template-rows:auto}
html[data-approved-adaptive=duo] #app[data-duo-split=rows] :is(.liquid-home-grid,.liquid-item-grid,.ref-item-grid,.ref-chat-grid,.liquid-calendar-grid){grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,var(--duo-first-pane)) minmax(0,1fr)}
html[data-approved-adaptive=duo] #app[data-duo-split=rows] :is(.liquid-home-grid,.liquid-item-grid,.ref-item-grid,.ref-chat-grid,.liquid-calendar-grid)>*{max-height:var(--duo-first-pane);overflow:auto;overscroll-behavior:contain}
html[data-approved-adaptive=duo] #app[data-duo-split=rows] .home-hero-photo{height:clamp(160px,calc(var(--duo-first-pane) - 120px),360px)!important}
html[data-approved-adaptive=duo] #app[data-duo-split] .home-hero-photo .cprev-layer img{object-fit:contain}
html[data-approved-adaptive=duo]:has(#app.duo-native-surface) #approved-content-viewport{left:env(safe-area-inset-left,0px);right:env(safe-area-inset-right,0px)}
html[data-approved-adaptive=duo] #app.duo-native-surface{--duo-content-left:0px;--duo-content-right:0px}
html[data-approved-adaptive=duo] #app.duo-native-surface>.screen{left:0;right:0;width:100%}
html[data-approved-adaptive=duo] #app.duo-native-surface:not(.duo-native-controls)>.duo-controls-column:empty{display:none}
/* A vertical native bar has no top title strip to reserve. */
html[data-approved-adaptive=duo][data-approved-axis=side]:has(#app.duo-native-surface) #approved-content-viewport{--approved-safe-top:0px}
/* The native Back action also owns the compact header's duplicate button. */
html[data-approved-adaptive=duo] #app.duo-native-controls :is(.ref-phone-heading,.screen>.vt-top,.screen>.entry-top)>[data-back]{display:none!important}
html[data-approved-adaptive=duo] #app.duo-native-controls .screen>.entry-top{height:0;min-height:0;padding:0}
/* Stacked inner panes: keep the complete character above its description.
   The description must not cover the image in the shorter upper pane. */
html[data-approved-adaptive=duo] #app[data-duo-split=rows] :is(.home-look-kicker,.home-look-footnote){display:none}
html[data-approved-adaptive=duo] #app[data-duo-split=rows] .home-hero-photo{height:clamp(160px,calc(var(--duo-first-pane) - 160px),300px)!important}
html[data-approved-adaptive=duo] #app[data-duo-split=rows] .home-hero-bottom{position:relative;inset:auto;margin:8px;border-radius:22px}
html[data-approved-adaptive=duo] #app[data-duo-split=rows] .liquid-primary{padding-bottom:12px}

/* Duo inner landscape revision: all physical pane positions are explicit and
   independent of RTL text. Portrait, outer display and iPad retain their rules. */
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .ref-collection,
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .ref-chat-grid,
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .duo-calendar-grid,
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .duo-settings-grid{display:grid!important;direction:ltr;grid-template-columns:minmax(0,var(--duo-first-pane,50%)) minmax(0,1fr)!important;gap:var(--duo-division-gap,24px)!important;align-items:start}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape :is(.ref-selected,.ref-chat-look,.duo-calendar-preview){grid-column:1;grid-row:1;display:block;min-width:0;position:static}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape :is(.ref-collection-primary,.ref-chat-primary,.duo-calendar-main){grid-column:2;grid-row:1;min-width:0;display:block}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape[dir=rtl] :is(.ref-selected,.ref-collection-primary,.ref-chat-look,.ref-chat-primary,.duo-calendar-preview,.duo-calendar-main,.duo-settings-menu,.duo-settings-detail){direction:rtl}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .ref-calendar-body>.ref-reading{max-width:none;width:100%}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape>.overlay:has([data-duo-add-menu])>.sheet{left:auto;right:calc(var(--duo-content-right,0px) + 22px);width:calc(100% - var(--duo-content-left,0px) - var(--duo-content-right,0px) - var(--duo-first-pane,50%) - var(--duo-division-gap,24px) - 44px);max-width:none;margin:0;max-height:calc(var(--view-height) - 24px);overflow:auto;bottom:12px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape>.overlay:has([data-duo-add-menu])>.sheet>.grid.g2{grid-template-columns:1fr 1fr;gap:8px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape>.overlay:has([data-duo-add-menu]) .opt{padding:12px;min-width:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape[data-duo-settings]>.screen>.vt-body{overflow:hidden}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .duo-settings-grid{height:calc(var(--view-height) - 68px);min-height:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape :is(.duo-settings-menu,.duo-settings-detail){height:100%;overflow:auto;min-width:0;overscroll-behavior:contain;padding-bottom:24px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .duo-settings-menu{grid-column:1;grid-row:1}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .duo-settings-detail{grid-column:2;grid-row:1}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .duo-settings-grid .ref-reading{max-width:none!important;width:100%;margin:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .duo-settings-detail :is(.ref-collection,.ref-chat-grid){display:block!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .duo-settings-detail :is(.ref-selected,.ref-chat-look){display:none}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .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.duo-landscape .duo-settings-placeholder{padding:28px;color:var(--text-secondary);border-radius:24px;border:1px solid var(--home-line);background:var(--home-glass)}
/* Edge-to-edge avatar with the existing floating product strip, as on phone. */
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .home-hero-photo{height:clamp(340px,calc(var(--view-height) - 128px),620px)!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .home-hero-photo .cprev-layer img{object-fit:cover!important;object-position:center}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .home-hero-bottom{position:absolute;bottom:10px;inset-inline:10px;margin:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape :is(.ref-chat-look,.duo-calendar-preview)>.cprev-wrap{position:relative;display:block;min-height:440px;height:calc(var(--view-height) - 110px);border-radius:26px;overflow:hidden;background:var(--home-glass)}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape :is(.ref-chat-look,.duo-calendar-preview)>.cprev-wrap>.cprev{position:absolute;inset:0;height:100%}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape :is(.ref-chat-look,.duo-calendar-preview) .cprev-layer{position:absolute;inset:0;aspect-ratio:auto;border-radius:inherit}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape :is(.ref-chat-look,.duo-calendar-preview) .cprev-layer img{width:100%;height:100%;object-fit:cover;object-position:center}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape :is(.ref-chat-look,.duo-calendar-preview) .cprev-strip{position:absolute;z-index:3;bottom:12px;left:12px;right:12px;display:flex;gap:8px;padding:10px;border:1px solid var(--home-line);border-radius:22px;background:var(--home-glass);backdrop-filter:blur(24px)}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape :is(.ref-chat-look,.duo-calendar-preview) .cprev-strip[hidden]{display:none}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape :is(.ref-chat-look,.duo-calendar-preview) .cprev-strip>a{flex:1;min-width:0;height:48px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape :is(.ref-chat-look,.duo-calendar-preview) .cprev-strip .tile{width:100%;height:100%;background:#ffffffdd}
/* These wrappers have no layout effect outside the Duo horizontal surface. */
.duo-calendar-grid,.duo-calendar-main{display:contents}
.duo-calendar-preview{display:none}
.duo-look-strip{display:none!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .duo-look-strip:not([hidden]){display:flex!important}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .duo-calendar-main>:is(.row,.col-3){margin-top:16px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .duo-saved-look-card{position:relative;min-height:440px;height:calc(var(--view-height) - 108px);overflow:hidden;border:1px solid var(--home-line);border-radius:26px;background:var(--home-glass)}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .duo-saved-look-avatar{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .duo-saved-look-products{position:absolute;z-index:2;bottom:12px;left:12px;right:12px;padding:12px;border:1px solid var(--home-line);border-radius:24px;background:var(--home-glass);backdrop-filter:blur(24px)}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .duo-saved-look-products h2{font-family:'Bodoni Moda','Amiri',serif;font-size:24px;font-weight:500;line-height:1.2;margin:0 0 10px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .duo-look-unavailable{padding:24px;color:var(--text-secondary)}
/* Scroll the conversation independently; its preview stays in the other pane. */
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .screen[data-path="/stylist"]>.vt-body{overflow:hidden}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .ref-chat-grid{height:calc(var(--view-height) - 68px);min-height:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape :is(.ref-chat-primary,.ref-chat-look){height:100%;min-height:0;overflow:auto;overscroll-behavior:contain}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape :is(.home-hero-photo .cprev-layer img,.ref-chat-look .cprev-layer img,.duo-saved-look-avatar){object-position:center top}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape[data-duo-settings]>.screen>.vt-top:not(.home-app-top){display:none}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .ref-chat-grid{height:calc(var(--view-height) - 72px)}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .ref-chat-look>.cprev-wrap:has(.cprev-layer.in)>.cprev-ctl{display:none}
/* The same full-card avatar treatment on saved-look/event/detail cards. The
   compact list thumbnails and the existing phone/portrait layouts are intact. */
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .screen:not([data-path="/stylist"]) .cprev-wrap:not([data-auto]):has(>.duo-look-strip){--duo-avatar-height:clamp(420px,calc(var(--view-height) - 130px),620px);position:relative}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .screen:not([data-path="/stylist"]) .cprev-wrap:not([data-auto]):has(>.duo-look-strip) .cprev{position:relative;height:var(--duo-avatar-height);overflow:hidden;border-radius:24px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .screen:not([data-path="/stylist"]) .cprev-wrap:not([data-auto]):has(>.duo-look-strip) .cprev-layer{position:absolute;inset:0;aspect-ratio:auto;height:100%;border-radius:inherit}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .screen:not([data-path="/stylist"]) .cprev-wrap:not([data-auto]):has(>.duo-look-strip) .cprev-layer img{width:100%;height:100%;object-fit:cover;object-position:center top}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .screen:not([data-path="/stylist"]) .duo-look-strip{position:absolute;top:calc(var(--duo-avatar-height) - 80px);left:12px;right:12px;height:68px;gap:8px;padding:10px;border-radius:22px;border:1px solid var(--home-line);background:var(--home-glass);backdrop-filter:blur(24px);z-index:3}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .screen:not([data-path="/stylist"]) .duo-look-strip>a{flex:1;min-width:0;height:48px}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .screen:not([data-path="/stylist"]) .duo-look-strip .tile{width:100%;height:100%;background:#ffffffdd}
/* Language, appearance and other settings dialogs also belong to the detail
   pane; confirmation and consent actions keep their existing handlers. */
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape[data-duo-settings]>.overlay>.sheet{left:auto;right:calc(var(--duo-content-right,0px) + 22px);width:calc(100% - var(--duo-content-left,0px) - var(--duo-content-right,0px) - var(--duo-first-pane,50%) - var(--duo-division-gap,24px) - 44px);max-width:none;margin:0;max-height:calc(var(--view-height) - 24px);overflow:auto;bottom:12px}

/* Duo: the saved avatar fills its entire card on both displays. */
html[data-approved-adaptive=duo] #app .home-hero-photo .cprev-layer img{object-fit:cover!important;object-position:center top}
/* Profile uses its own header; UIKit owns its Back action as on other pages. */
html[data-approved-adaptive=duo] #app.duo-native-controls .screen>.profile-top{display:none!important}
/* The reference on Try it on must show the whole default character. */
html[data-approved-adaptive=duo] #app .ref-tryon-hero img{object-fit:contain;object-position:center}
/* Inner landscape uses the full available pane height, without a bottom dock reservation. */
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape>.screen>.vt-body{padding-bottom:0!important;scroll-padding-bottom:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape[data-duo-settings]>.screen>.vt-body{display:flex!important;flex-direction:column;flex:1;min-height:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .duo-settings-grid{flex:1;flex-shrink:1;height:auto;min-height:0;grid-template-rows:minmax(0,1fr);align-items:stretch}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape :is(.duo-settings-menu,.duo-settings-detail){height:auto;min-height:0;padding-bottom:0}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .duo-settings-detail .ref-specialist-grid{grid-template-columns:minmax(0,1fr)!important}
/* Duo keeps touch scrolling without visible scroll indicators, including panes and sheets. */
html[data-approved-adaptive=duo] #app,
html[data-approved-adaptive=duo] #app *{scrollbar-width:none}
html[data-approved-adaptive=duo] #app::-webkit-scrollbar,
html[data-approved-adaptive=duo] #app *::-webkit-scrollbar{display:none;width:0;height:0}
/* Each inner-landscape pane owns its scroll, rather than scrolling the whole page. */
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .screen>.vt-body:has(:is(.liquid-home-grid,.ref-collection,.duo-calendar-grid,.ref-item-grid,.liquid-item-grid)){display:flex!important;flex-direction:column;flex:1;min-height:0;overflow:hidden}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape .screen>.vt-body>.ref-reading:has(:is(.ref-collection,.duo-calendar-grid,.ref-item-grid,.liquid-item-grid)){display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape :is(.liquid-home-grid,.ref-collection,.duo-calendar-grid,.ref-item-grid,.liquid-item-grid){flex:1;flex-shrink:1;min-height:0;height:auto!important;grid-template-rows:minmax(0,1fr)!important;align-items:stretch!important;overflow:hidden}
html:is([data-approved-adaptive=duo],[data-approved-adaptive=ipad]) #app.duo-landscape :is(.liquid-home-grid,.ref-collection,.duo-calendar-grid,.ref-item-grid,.liquid-item-grid)>:is(.liquid-primary,.liquid-secondary,.ref-collection-primary,.ref-selected,.duo-calendar-main,.duo-calendar-preview,.ref-item-primary,.ref-item-secondary){position:static;height:auto!important;max-height:none;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}

/* Reserve real space for the carousel pager and outfit actions on Duo landscape. */
html[data-approved-adaptive=duo] #app.duo-landscape .home-hero-photo{height:clamp(240px,calc(var(--view-height) - 236px),544px)!important}
