/* Keep the original portrait canvas; the wardrobe can also be a sibling panel. */
.fitting-workspace { position: absolute; top: 168px; left: 36px; width: 1008px; height: 1716px; }
.fitting-workspace .fitting-stage.camera-frame { inset: 0; width: 100%; height: 100%; }
.landscape-fullscreen { display: none; }

/* Wide screens use the same live videos, controls, wardrobe and connection. */
.app[data-layout="landscape"] .home-header,
.app[data-layout="landscape"] .fitting-header { top: 30px; left: 44px; right: 44px; height: 66px; }
.app[data-layout="landscape"] .icon-button { width: 54px; height: 54px; }
.app[data-layout="landscape"] .icon-button svg { width: 27px; height: 27px; }
.app[data-layout="landscape"] .header-actions { gap: 16px; }
.app[data-layout="landscape"] .landscape-fullscreen { display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 20px; color: #c0dce9; background: #112c3d9c; border: 1px solid #9dd9ee36; border-radius: 27px; font-size: 22px; letter-spacing: 1px; }
.app[data-layout="landscape"] .landscape-fullscreen svg { width: 26px; height: 26px; }
.app[data-layout="landscape"] .fitting-brand { font-size: 32px; letter-spacing: 3px; }
.app[data-layout="landscape"] .fitting-brand span { font-size: 18px; }
.app[data-layout="landscape"] .back-button { font-size: 24px; }

.app[data-layout="landscape"] .fitting-workspace { inset: 124px 44px 32px; width: auto; height: auto; display: grid; grid-template-columns: minmax(0, 1fr) 322px; gap: 26px; }
.app[data-layout="landscape"] .fitting-workspace .fitting-stage.camera-frame { position: relative; inset: auto; min-width: 0; min-height: 0; border-radius: 28px; }
.app[data-layout="landscape"] .camera-corners { inset: 13px; }
.app[data-layout="landscape"] .camera-frame .stage-status { top: 24px; left: 24px; max-width: calc(100% - 245px); padding: 12px 18px; font-size: 23px; }
.app[data-layout="landscape"] .recording-indicator svg { width: 30px; height: 30px; }
.app[data-layout="landscape"] .camera-frame .demo-label { top: 24px; right: 24px; padding: 12px 18px; font-size: 23px; }
.app[data-layout="landscape"] .demo-label svg { width: 27px; height: 27px; }
.app[data-layout="landscape"] .live-panel { left: 50%; right: auto; top: 50%; width: min(700px, calc(100% - 100px)); transform: translate(-50%, -50%); gap: 22px; padding: 35px 32px; }
.app[data-layout="landscape"] .live-emblem { width: 86px; height: 86px; border-radius: 25px; }
.app[data-layout="landscape"] .live-emblem svg { width: 46px; height: 46px; }
.app[data-layout="landscape"] .live-panel strong { font-size: 33px; }
.app[data-layout="landscape"] .live-panel p { font-size: 25px; }
.app[data-layout="landscape"] .live-panel small { font-size: 19px; }
.app[data-layout="landscape"] .live-connect { min-height: 72px; font-size: 27px; }
.app[data-layout="landscape"] .live-play { top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); white-space: nowrap; }
#app[data-layout="landscape"] #fitting-stage[data-output="true"] #camera-video { width: 216px; height: 144px; left: 24px; bottom: 104px; border-radius: 15px; }
.app[data-layout="landscape"] .camera-preview-caption { left: 38px; bottom: 114px; font-size: 19px; }
.app[data-layout="landscape"] .camera-footer { left: 24px; right: 24px; bottom: 20px; font-size: 24px; letter-spacing: 1px; }
.app[data-layout="landscape"] .camera-footer > span { gap: 10px; }
.app[data-layout="landscape"] .camera-footer > span svg { width: 30px; height: 30px; }
.app[data-layout="landscape"] .camera-footer button { min-height: 57px; padding: 10px 17px; font-size: 23px; }
.app[data-layout="landscape"] .camera-frame .change-toast { bottom: 110px; font-size: 24px; }
.app[data-layout="landscape"] .garment-change-panel { transform: none; }

.app[data-layout="landscape"] .fitting-workspace .wardrobe { position: relative; inset: auto; width: auto; min-height: 0; gap: 12px; padding: 24px; border: 1px solid #a6d9ec3d; border-radius: 28px; background: linear-gradient(155deg, #123044e8, #101e32ed 80%); box-shadow: 0 18px 50px #0003, inset 0 1px 0 #d5f4ff0a; }
.app[data-layout="landscape"] .wardrobe-heading { flex-shrink: 0; margin-bottom: 4px; font-size: 28px; letter-spacing: 2px; }
.app[data-layout="landscape"] .wardrobe-heading svg { width: 30px; height: 30px; }
.app[data-layout="landscape"] .wardrobe-heading small { width: 31px; height: 31px; font-size: 21px; }
.app[data-layout="landscape"] .wardrobe-tabs { border-radius: 18px; }
.app[data-layout="landscape"] .wardrobe-tabs button { min-height: 49px; font-size: 24px; }
.app[data-layout="landscape"] .wardrobe-scroll { min-height: 30px; border-color: #addef01a; background: #b3e8ff05; }
.app[data-layout="landscape"] .wardrobe-scroll svg { width: 27px; height: 27px; }
.app[data-layout="landscape"] .wardrobe-list { gap: 12px; padding: 2px; }
.app[data-layout="landscape"] .fitting-workspace .wardrobe-list .garment-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: 1fr 1fr; column-gap: 12px; width: 100%; height: 120px; padding: 12px; border-radius: 19px; text-align: left; background: linear-gradient(135deg, #203e5085, #142b3e9c); backdrop-filter: none; }
.app[data-layout="landscape"] .fitting-workspace .wardrobe-list .garment-card[hidden] { display: none; }
.app[data-layout="landscape"] .fitting-workspace .wardrobe-list .garment-card.selected { border-color: #bdefff; background: linear-gradient(125deg, #326178a8, #213e59d4); box-shadow: inset 3px 0 0 #bdefff, 0 0 24px #9ce4ff0c; }
.app[data-layout="landscape"] .garment-card.selected::before { display: none; }
.app[data-layout="landscape"] .fitting-workspace .garment-image { grid-column: 1; grid-row: 1 / 3; width: 96px; height: 96px; background: #b8e4f108; border-radius: 12px; }
.app[data-layout="landscape"] .fitting-workspace .garment-image::before { width: 78px; height: 78px; }
.app[data-layout="landscape"] .fitting-workspace .garment-image img { width: 92px; height: 92px; }
.app[data-layout="landscape"] .fitting-workspace .wardrobe-list .garment-name { grid-column: 2; align-self: end; margin: 0 0 5px; font-size: 24px; letter-spacing: 0; white-space: nowrap; }
.app[data-layout="landscape"] .fitting-workspace .wardrobe-list .garment-tone { grid-column: 2; align-self: start; margin: 5px 0 0; font-size: 19px; letter-spacing: 0; }
.app[data-layout="landscape"] .fitting-workspace .selected-check { top: auto; bottom: 14px; right: 10px; width: 25px; height: 25px; }
.app[data-layout="landscape"] .fitting-workspace .selected-check svg { width: 19px; height: 19px; }
.app[data-layout="landscape"] .fitting-workspace .wardrobe-hint { font-size: 20px; letter-spacing: 1px; }

/* The home page gives the live experience a wide, quiet introduction. */
.app[data-layout="landscape"] .brand-mark { width: 53px; height: 53px; }
.app[data-layout="landscape"] .brand-mark svg { width: 53px; height: 53px; }
.app[data-layout="landscape"] .brand-name { font-size: 35px; letter-spacing: 4px; }
.app[data-layout="landscape"] .brand-name > span { margin-top: 5px; font-size: 15px; letter-spacing: 4px; }
.app[data-layout="landscape"] .home-intro { left: 84px; right: auto; top: 22%; width: min(720px, calc(44% - 132px)); text-align: left; }
.app[data-layout="landscape"] .intro-overline { justify-content: flex-start; gap: 18px; font-size: 23px; letter-spacing: 4px; }
.app[data-layout="landscape"] .intro-overline > span:first-child { display: none; }
.app[data-layout="landscape"] .intro-overline > span { width: 50px; }
.app[data-layout="landscape"] h1 { margin: 30px 0 26px; font-size: clamp(80px, calc(var(--canvas-width) / 19), 108px); line-height: 1.25; letter-spacing: 5px; }
.app[data-layout="landscape"] h1 br { display: block; }
.app[data-layout="landscape"] .home-intro p { margin: 0; max-width: 610px; font-size: 25px; line-height: 1.8; letter-spacing: 1px; }
.app[data-layout="landscape"] .home-mirror.camera-frame { top: 148px; bottom: 50px; left: 44%; right: 52px; height: auto; border-radius: 32px; }
.app[data-layout="landscape"] .camera-frame .home-model { object-position: center 14%; }
.app[data-layout="landscape"] .camera-frame .preview-badge { font-size: 21px; padding: 11px 17px; }
.app[data-layout="landscape"] .camera-frame .home-rail { right: 24px; top: 92px; gap: 16px; }
.app[data-layout="landscape"] .rail-caption { font-size: 21px; }
.app[data-layout="landscape"] .mini-garment { width: 168px; height: 178px; border-radius: 22px; }
.app[data-layout="landscape"] .mini-garment img { width: 115px; height: 115px; }
.app[data-layout="landscape"] .mini-garment span { margin-top: 8px; font-size: 20px; }
.app[data-layout="landscape"] .camera-frame .home-look-caption { left: 30px; bottom: 32px; gap: 9px; font-size: 25px; }
.app[data-layout="landscape"] .camera-frame .home-look-caption small { font-size: 19px; }
.app[data-layout="landscape"] .home-features { left: 84px; right: auto; top: 59%; width: min(720px, calc(44% - 132px)); }
.app[data-layout="landscape"] .home-features > div { width: auto; flex: 1; }
.app[data-layout="landscape"] .home-features > div + div::before { left: 0; top: 18px; height: 58px; }
.app[data-layout="landscape"] .feature-icon { margin-bottom: 15px; }
.app[data-layout="landscape"] .home-features strong { font-size: 24px; }
.app[data-layout="landscape"] .home-features small { font-size: 17px; letter-spacing: 0; }
.app[data-layout="landscape"] .start-button { left: 84px; right: auto; bottom: 150px; width: min(720px, calc(44% - 132px)); height: 91px; font-size: 29px; border-radius: 24px; }
.app[data-layout="landscape"] .home-footer { left: 84px; right: auto; bottom: 81px; width: min(720px, calc(44% - 132px)); font-size: 19px; letter-spacing: 1px; }
.app[data-layout="landscape"] .help-button { font-size: 19px; }

.app[data-layout="landscape"] .dialog { width: 720px; max-height: calc(100% - 80px); overflow-y: auto; padding: 40px 44px; border-radius: 32px; }
.app[data-layout="landscape"] .dialog-close { top: 20px; right: 20px; }
.app[data-layout="landscape"] .dialog-emblem { width: 65px; height: 65px; margin-bottom: 22px; border-radius: 20px; }
.app[data-layout="landscape"] .dialog-emblem svg { width: 35px; height: 35px; }
.app[data-layout="landscape"] .dialog h2 { font-size: 34px; }
.app[data-layout="landscape"] .dialog-lead { margin-bottom: 26px; font-size: 21px; }
.app[data-layout="landscape"] .experience-steps { gap: 22px; }
.app[data-layout="landscape"] .experience-steps strong { font-size: 24px; }
.app[data-layout="landscape"] .experience-steps p { margin-top: 8px; font-size: 18px; }
.app[data-layout="landscape"] .prototype-note { margin: 25px 0; padding: 15px 18px; font-size: 17px; line-height: 1.8; }
.app[data-layout="landscape"] .dialog-primary { height: 69px; font-size: 24px; border-radius: 18px; }

@media (min-width: 960px) and (orientation: landscape) {
  .presentation-fullscreen { display: none; }
}
