/* The fitting room in the same glass as Discover: the last scene, blurred, sits behind everything. */
body:has(.glass-page), body:has(.glass-page) #app { background: #101820; --stage-surround: #101820; }
.fit-backdrop { position: fixed; inset: -40px; z-index: 0; background: #101820 center / cover no-repeat; filter: blur(30px) brightness(.5) saturate(.9); pointer-events: none; }
.life-main.closet-page.fitting-page { position: relative; background: none; color: white; max-width: none; padding-bottom: calc(var(--journey-nav) + 24px); }
.fitting-page > :not(.fit-backdrop) { position: relative; z-index: 1; }
.fitting-page {
  --fit-edge: 1px solid rgb(255 255 255 / .5);
  --fit-face: linear-gradient(125deg, #ffffff33, #ffffff0d 52%, #ffffff21), #1e20254d;
  --fit-shadow: inset 0 1px 0 #ffffff4d, 0 8px 24px #00000047;
}
body:has(.glass-page) .life-header { background: none; border-bottom: 0; position: relative; z-index: 2; }
body:has(.glass-page) .life-header .brand { color: white; text-shadow: 0 1px 4px #0009; }
body:has(.glass-page) .life-header .icon-btn { color: white; background: var(--fit-face, #ffffff24); border: 1px solid #ffffff80; border-radius: 50%; box-shadow: inset 0 1px 0 #ffffff4d; }
body:has(.glass-page) nav.life-nav.digo-stage-nav {
  left: 50%; right: auto; transform: translateX(-50%); width: auto; height: auto; min-height: 0; gap: 2px; padding: 5px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); border: 1px solid #ffffff80; border-radius: 999px;
  background: linear-gradient(125deg, #ffffff33, #ffffff0d 52%, #ffffff21), #1e20254d; box-shadow: inset 0 1px 0 #ffffff4d, 0 8px 24px #00000047;
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
body:has(.glass-page) nav.life-nav.digo-stage-nav > a { position: relative; flex: none; width: 84px; max-width: none; padding: 7px 4px 6px; gap: 2px; border: 0; border-radius: 999px; background: none; box-shadow: none; color: #ffffffc4; font-size: 10px; }
body:has(.glass-page) nav.life-nav.digo-stage-nav > a svg { width: 19px; height: 19px; }
body:has(.glass-page) nav.life-nav.digo-stage-nav > a[aria-current=page] { background: #ffffff2e; color: white; }
body:has(.glass-page) nav.life-nav.digo-stage-nav > a[aria-current=page]::after { display: none; }
body:has(.glass-page) .nav-count { background: white; color: #1b2a36; }

.fitting-page .closet-top { border-bottom: 0; padding: 4px 0 6px; }
.fitting-page .closet-top h1 { color: white; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.01em; text-shadow: 0 1px 6px #0009; }
.fitting-page .fitting-tabs { gap: 4px; padding: 4px; border: var(--fit-edge); border-radius: 999px; background: var(--fit-face); box-shadow: var(--fit-shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.fitting-page .fitting-tabs a { min-height: 36px; padding: 0 14px; border-radius: 999px; color: #ffffffd1; font-size: 12.5px; box-shadow: none; }
.fitting-page .fitting-tabs a[aria-current=page] { background: white; color: #1b2a36; box-shadow: none; }
.fitting-page :is(button, a, [tabindex="0"]):focus-visible { outline: 2px solid white; outline-offset: 2px; }

/* The mannequin stays on a clean light card, so the colour of a piece is never tinted by the scene. */
.fitting-page .fitting-figure { --fit-model: min(100%, clamp(146px, calc((100dvh - 520px) * .4258), 290px)); padding-top: calc(var(--fit-model) * .46 + 6px); }
.fitting-page .fitting-carousel { --model-width: var(--fit-model); }
.fitting-page .fitting-carousel::before {
  content: ""; position: absolute; z-index: 0; left: calc(50% - var(--model-width) / 2 - 18px); width: calc(var(--model-width) + 36px);
  top: calc(var(--model-width) * -.46); bottom: -14px; border-radius: 30px; background: #fefefe;
  border: 1px solid #ffffffb3; box-shadow: 0 0 0 6px #ffffff24, 0 18px 46px #00000059;
}
.fitting-page .fitting-stage { z-index: 1; background: #fefefe; touch-action: pan-y pinch-zoom; -webkit-touch-callout: none; }
.fitting-warp { position: absolute; inset: 0; width: 100%; height: 100%; display: none; pointer-events: none; }
.fitting-stage.is-warped .fitting-warp { display: block; }
.fitting-stage.is-warped .fitting-model { visibility: hidden; }
.fitting-page .fitting-caption { color: white; text-shadow: 0 1px 5px #000a; margin-top: 12px; }
.fitting-page #fitting-hint { color: #ffffffd1; text-shadow: 0 1px 4px #000a; }
.fitting-page .fitting-rail h2 { color: white; text-shadow: 0 1px 5px #000a; }
.fitting-page .fitting-options button { background: #ffffffeb; border: 1px solid #ffffff99; border-radius: 12px; color: #3a4047; box-shadow: 0 6px 18px #0000003d; overflow: hidden; }
.fitting-page .fitting-options button[aria-pressed=true] { border-color: white; box-shadow: 0 0 0 3px #ffffff80, 0 6px 18px #0000003d; color: #1b2a36; }
.fitting-page .fitting-peek { width: 44px; height: 44px; justify-content: center; border-radius: 50%; color: white; border: var(--fit-edge); background: var(--fit-face); box-shadow: var(--fit-shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); --inset: max(0px, calc((100% - var(--model-width)) / 2 - 74px)); }
.fitting-page .fitting-peek-edge { display: none; }
.fitting-page .fitting-peek::after { flex: none; width: 8px; }

/* Your face, above the neck. */
.fit-face { position: absolute; z-index: 2; left: 50%; top: 0; width: calc(var(--model-width) * .36); aspect-ratio: 1 / 1.14; transform: translate(-50%, -93%); }
.fit-face-pick { width: 100%; height: 100%; padding: 0; display: grid; place-content: center; justify-items: center; gap: 2px; overflow: hidden; border-radius: 50% 50% 46% 46%; border: 1.5px dashed #1b2a3680; background: #1b2a360d; color: #3a4650; cursor: pointer; }
.fit-face-pick svg { width: 16px; height: 16px; }
.fit-face-pick span { font: 9px/1.1 Arial, sans-serif; letter-spacing: .04em; }
.fit-face.has-photo .fit-face-pick { border: 0; background: none; box-shadow: 0 2px 10px #00000026; }
.fit-face-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fit-face-clear { position: absolute; right: -10px; top: -6px; width: 26px; height: 26px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid #1b2a3640; background: white; color: #1b2a36; cursor: pointer; }
.fit-face-clear svg { width: 11px; height: 11px; }
.fitting-page .fit-face :is(button):focus-visible { outline-color: #1b2a36; }

/* The first-visit cue: a ring around the body and a round ghost to press. */
.fit-hint { position: absolute; z-index: 3; pointer-events: none; }
.fit-hint-ring { left: calc(50% - var(--model-width) / 2 - 6px); width: calc(var(--model-width) + 12px); top: 1%; bottom: 1%; border-radius: 999px; border: 2px dashed #1b2a3699; animation: fit-ring 2.4s ease-in-out infinite; }
.fit-hint-press { left: 50%; top: 24%; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%; border: 2px solid #1b2a36; background: radial-gradient(circle, #1b2a3661, #1b2a361a 70%); animation: fit-press 2s ease-out infinite; }
.fit-hint-text { left: 50%; top: 40%; transform: translateX(-50%); margin: 0; width: max-content; max-width: calc(var(--model-width) + 24px); box-sizing: border-box; padding: 9px 14px; border-radius: 999px; text-align: center; font: 12px/1.3 Arial, sans-serif; color: white; background: #1b2a36eb; box-shadow: 0 8px 22px #00000052; }
@keyframes fit-ring { 50% { opacity: .45; transform: scale(1.015); } }
@keyframes fit-press { 0% { box-shadow: 0 0 0 0 #1b2a3680; } 100% { box-shadow: 0 0 0 20px #1b2a3600; } }

/* Setting your shape: everything but the figure steps back. */
body.fit-shaping .fitting-page :is(.fitting-rail, .fitting-peek, .closet-top, .fit-buy, figcaption, .fit-face) { opacity: .0; pointer-events: none; transition: opacity .2s; }
body.fit-shaping .fit-backdrop { filter: blur(30px) brightness(.3) saturate(.8); }
body.fit-shaping :is(.life-header, .life-nav) { visibility: hidden; }
body.fit-shaping .fitting-zone { pointer-events: none; }
.fit-guides { position: absolute; inset: 0; z-index: 3; }
.fit-guide { position: absolute; left: 14%; right: 14%; height: 0; border-top: 1.5px dashed #1b2a3680; }
.fit-guide.is-active { border-top: 2px solid #1b2a36; }
.fit-guide i { position: absolute; top: -13px; width: 26px; height: 26px; border-radius: 50%; background: white; border: 2px solid #1b2a36; box-sizing: border-box; box-shadow: 0 2px 8px #0000004d; cursor: ew-resize; touch-action: none; }
.fit-guide i::after { content: ""; position: absolute; inset: -10px; }
.fit-guide i[data-side="-1"] { left: -13px; } .fit-guide i[data-side="1"] { right: -13px; }
.fit-guide.is-active i { background: #1b2a36; }
.fit-guide span { position: absolute; left: 50%; top: -9px; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: #ffffffe6; font: 9px/1.3 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #3a4650; white-space: nowrap; }
.fit-guide.is-active span { background: #1b2a36; color: white; font-weight: 700; }
.fit-panel {
  position: fixed; z-index: 6; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); width: min(calc(100vw - 28px), 440px);
  box-sizing: border-box; padding: 14px; display: grid; gap: 12px; border-radius: 24px; color: white;
  border: 1px solid #ffffff80; background: linear-gradient(125deg, #ffffff33, #ffffff0d 52%, #ffffff21), #1e20256b; box-shadow: inset 0 1px 0 #ffffff4d, 0 12px 34px #00000066;
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.fit-parts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.fit-parts button { flex: none; height: 40px; padding: 0 13px; border-radius: 999px; font: 13px/1 Arial, sans-serif; color: white; background: #ffffff1f; border: 1px solid #ffffff80; cursor: pointer; }
.fit-parts button[aria-pressed=true] { background: white; color: #1b2a36; border-color: white; font-weight: 700; }
.fit-slider { display: grid; gap: 6px; }
.fit-slider span { display: flex; justify-content: space-between; align-items: baseline; font: 12px/1.2 Arial, sans-serif; }
.fit-slider small { color: #ffffffd1; font-size: 11px; }
.fit-slider input { width: 100%; height: 30px; margin: 0; accent-color: white; }
.fit-panel-foot { display: flex; gap: 8px; }
.fit-panel-foot button { flex: 1; height: 44px; border-radius: 16px; font: 600 13px/1 Arial, sans-serif; color: white; background: #ffffff1f; border: 1px solid #ffffff80; cursor: pointer; }
.fit-panel-foot .is-primary { background: white; color: #1b2a36; border-color: white; }
.fit-panel p { margin: 0; font: 11px/1.4 Arial, sans-serif; color: #ffffffd1; text-align: center; }
.fit-panel [hidden] { display: none !important; }
.fit-sliders { display: grid; gap: 12px; }
/* Describing yourself in words instead of moving the sliders. The log stays short so the figure,
   which changes as the shopper talks, remains in view above the panel. */
.fit-talk { display: grid; gap: 10px; }
.fit-talk-log { display: grid; gap: 6px; max-height: min(22dvh, 170px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.fit-panel .fit-say { max-width: 88%; padding: 8px 12px; border-radius: 16px; font: 13px/1.4 Arial, sans-serif; text-align: left; color: white; background: #ffffff1f; border: 1px solid #ffffff40; justify-self: start; overflow-wrap: anywhere; }
.fit-panel .fit-say-you { justify-self: end; background: white; color: #1b2a36; border-color: white; }
.fit-panel .fit-say-wait { opacity: .75; font-style: italic; }
.fit-panel .fit-say-error { max-width: 100%; background: #7a1f1fb3; border-color: #ffb4b4; }
.fit-panel .fit-talk-note { font-size: 12px; text-align: left; color: white; }
.fit-talk-row { display: flex; gap: 8px; }
/* The box takes the page's own glass look; 16px keeps phones from zooming in when it is tapped. */
.fit-panel .fit-talk-row input { flex: 1; min-width: 0; height: 44px; box-sizing: border-box; padding: 0 14px; border-radius: 16px; font: 16px/1 Arial, sans-serif; }
.fit-panel .fit-talk-row input::placeholder { color: #ffffffa6; }
.fit-panel .fit-talk-row input:disabled { opacity: .6; }
.fit-panel :is(.fit-talk-row button, .fit-talk-open) { flex: 1; height: 44px; padding: 0 16px; border-radius: 16px; font: 600 13px/1 Arial, sans-serif; color: white; background: #ffffff1f; border: 1px solid #ffffff80; cursor: pointer; }
.fit-panel .fit-talk-row input + button { flex: none; }
.fit-panel .fit-talk-row button.is-primary { background: white; color: #1b2a36; border-color: white; }
.fit-panel .fit-talk-row button:disabled { opacity: .6; cursor: default; }
.fit-panel :is(.fit-talk-row :is(button, input), .fit-talk-open):focus-visible { outline: 2px solid white; outline-offset: 2px; }

/* Your picks from Discover, with their total, stay within reach above the navigation. */
.fit-picks {
  position: fixed !important; z-index: 4 !important; left: 50%; transform: translateX(-50%); bottom: calc(var(--journey-nav) + env(safe-area-inset-bottom, 0px) + 8px);
  width: min(calc(100vw - 28px), 560px); box-sizing: border-box; padding: 9px 9px 9px 16px; display: flex; align-items: center; gap: 12px; border-radius: 22px; color: white;
  border: var(--fit-edge); background: var(--fit-face); box-shadow: var(--fit-shadow); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.fit-picks-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.fit-picks-copy small { font: 10px/1.2 Arial, sans-serif; letter-spacing: .09em; text-transform: uppercase; color: #ffffffd1; }
.fit-picks-copy strong { font: 400 16px/1.2 Georgia, serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fit-picks-row { display: flex; gap: 5px; align-items: center; }
.fit-picks-row button { width: 38px; height: 44px; padding: 2px; border-radius: 9px; overflow: hidden; background: #ffffffe6; border: 1px solid #ffffff99; cursor: pointer; }
.fit-picks-row button :is(img, .product-photo) { width: 100%; height: 100%; object-fit: contain; display: block; }
.fit-picks-row span { font: 11px/1 Arial, sans-serif; color: #ffffffd1; }
.fit-picks-go { flex: none; display: grid; place-items: center; height: 44px; padding: 0 16px; border-radius: 16px; background: white; color: #1b2a36; font: 600 13px/1 Arial, sans-serif; text-decoration: none; }
@media (max-width: 640px) {
  .fit-picks-row button:nth-child(n+3) { display: none; }
  .fitting-page .fitting-figure { --fit-model: min(100%, clamp(120px, calc((100dvh - 560px) * .4258), 230px)); }
  .fitting-page .closet-top { justify-content: center; padding: 0 0 4px; }
  .fitting-page .closet-top h1, .fitting-page #fitting-hint { display: none; }
  .fitting-page .fitting-room { padding-block: 8px; }
  .fitting-page .fitting-peek { --inset: 0px; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .fit-hint { animation: none !important; } }

/* What a piece is made of and its colour reference, shown with every piece. */
.piece-light { display: flex; width: max-content; margin: 10px auto 0; padding: 3px; border-radius: 999px; background: #1b2a3614; border: 1px solid #1b2a3629; }
.piece-light button { height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: #1b2a36; font: 13px/1 Arial, sans-serif; cursor: pointer; }
.piece-light button[aria-pressed=true] { background: #1b2a36; color: white; font-weight: 600; }
.piece-scene-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.piece-facts { margin: 14px 0; padding: 12px 14px; border: 1px solid #1b2a3624; border-radius: 16px; }
.piece-facts h3 { margin: 0 0 6px; font: 11px/1.2 Arial, sans-serif; letter-spacing: .09em; text-transform: uppercase; color: #55616b; }
.piece-facts dl { margin: 0; display: grid; gap: 0; }
.piece-facts dl div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid #1b2a3617; }
.piece-facts dl div:first-child { border-top: 0; }
.piece-facts dt { color: #55616b; font-size: 12px; } .piece-facts dd { margin: 0; text-align: right; font-size: 13px; color: #1b2a36; }
.piece-facts p { margin: 6px 0 0; font-size: 11px; color: #55616b; }

/* Under the pictures of a piece: its brand, a few of the brand's other pieces, and the way to all. */
.piece-brand { margin: 14px 0; border-radius: 18px; background: #1b2a36; color: white; overflow: hidden; }
.piece-brand-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; color: white; text-decoration: none; }
.piece-brand-link span { display: grid; gap: 2px; min-width: 0; }
.piece-brand small { font: 10px/1.2 Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #ffffffc7; }
.piece-brand strong { font: 400 19px/1.15 Georgia, serif; }
.piece-brand em { flex: none; display: flex; align-items: center; gap: 6px; font: normal 600 12.5px/1 Arial, sans-serif; }
.piece-brand em svg { width: 15px; height: 15px; }
.piece-brand-row { display: flex; gap: 8px; padding: 0 14px 14px; overflow-x: auto; scrollbar-width: none; }
.piece-brand-row button { flex: none; width: 84px; padding: 0; border: 0; background: none; color: white; cursor: pointer; display: grid; gap: 5px; text-align: left; }
.piece-brand-row :is(img, .product-photo, .life-product-placeholder) { display: block; width: 84px; height: 104px; object-fit: contain; border-radius: 10px; background-color: #ffffffeb; }
.piece-brand-row span { font: 11px/1.25 Arial, sans-serif; color: #ffffffd9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.piece-brand :is(a, button):focus-visible { outline: 2px solid white; outline-offset: -2px; }

/* A brand's page: all of its pieces on glass, over the scene you came from. */
.life-main.brand-page { position: relative; max-width: none; background: none; color: white; padding: 4px 4vw calc(var(--journey-nav) + 40px); }
.brand-page > :not(.fit-backdrop) { position: relative; z-index: 1; }
.brand-head { display: grid; justify-items: start; gap: 4px; padding: 0 0 18px; text-shadow: 0 1px 6px #0009; }
.brand-back { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px; margin-bottom: 10px; border-radius: 999px; color: white; font: 13px/1 Arial, sans-serif; text-decoration: none; text-shadow: none;
  border: 1px solid #ffffff80; background: linear-gradient(125deg, #ffffff33, #ffffff0d 52%, #ffffff21), #1e20254d; box-shadow: inset 0 1px 0 #ffffff4d; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand-back svg { width: 15px; height: 15px; }
.brand-head p { margin: 0; font: 11px/1.2 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #ffffffd1; }
.brand-head h1 { margin: 0; color: white; font: 400 clamp(32px, 4vw, 54px)/1.05 Georgia, serif; letter-spacing: -.02em; }
.brand-head span { font: 13px/1.3 Arial, sans-serif; color: #ffffffd1; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.brand-piece { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; border: 1px solid #ffffff80;
  background: linear-gradient(125deg, #ffffff33, #ffffff0d 52%, #ffffff21), #1e20254d; box-shadow: inset 0 1px 0 #ffffff4d, 0 8px 24px #00000047; backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.brand-piece-open { display: block; padding: 6px 6px 0; border: 0; background: none; cursor: pointer; }
.brand-piece-open :is(img, .product-photo, .life-product-placeholder) { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; border-radius: 13px; background-color: #ffffffe0; }
.brand-piece-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 9px 10px 12px; }
.brand-piece-meta div { min-width: 0; }
.brand-piece-meta h2 { margin: 0; letter-spacing: 0; color: white; font: 400 14px/1.2 Georgia, serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 3px #000a; }
.brand-piece-meta p { margin: 2px 0 0; font: 11px/1.2 Arial, sans-serif; color: #ffffffd1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-piece-like { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid #ffffffb0; background: #ffffff24; color: white; cursor: pointer; }
.brand-piece-like svg { width: 14px; height: 14px; stroke-width: 2.2; }
.brand-piece-like[aria-pressed=true] { background: white; color: #1b2a36; border-color: white; }
.brand-page :is(a, button):focus-visible { outline: 2px solid white; outline-offset: 2px; }
@media (max-width: 640px) { .life-main.brand-page { padding-inline: 14px; } .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* The piece sheet in the same glass: frosted and dark over the scene, pictures on a clean light panel. */
#overlay-root .overlay:has(.modal.product-sheet) { background: #0a111873; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#overlay-root .modal.product-sheet {
  color: white; border: 1px solid #ffffff80; border-radius: 28px;
  background: linear-gradient(125deg, #ffffff2e, #ffffff0a 52%, #ffffff1c), #141c24cc;
  box-shadow: inset 0 1px 0 #ffffff4d, 0 24px 60px #00000080;
  backdrop-filter: blur(26px) saturate(1.2); -webkit-backdrop-filter: blur(26px) saturate(1.2);
}
.modal.product-sheet :is(h2, h3, p, dd, summary, label, strong, li) { color: white; }
.modal.product-sheet :is(.eyebrow, dt, small, .life-small, .reference-disclosure, .detail-totals small, .piece-facts p, .piece-facts h3, .piece-facts dt) { color: #ffffffd1; }
.modal.product-sheet h2 { text-shadow: 0 1px 6px #0006; }
.modal.product-sheet .product-detail-art { background: #f6f6f4; border-radius: 20px; overflow: hidden; border: 1px solid #ffffffb3; box-shadow: 0 10px 30px #00000059; }
.modal.product-sheet .product-detail-art :is(img, .product-photo) { background-color: #f6f6f4; }
.modal.product-sheet :is(dl > div, .product-more, .detail-totals) { border-color: #ffffff3d; }
.modal.product-sheet .reference-mini-label, .modal.product-sheet .demo-label { color: white; border-color: #ffffff99; background: #ffffff1f; }
.modal.product-sheet :is(.life-btn, .text-btn, select, .reference-thumbnails button) {
  color: white; border: 1px solid #ffffff80; background: linear-gradient(125deg, #ffffff33, #ffffff0d 52%, #ffffff21), #1e20254d; box-shadow: inset 0 1px 0 #ffffff4d; text-shadow: none;
}
.modal.product-sheet .text-btn { padding: 10px 14px; border-radius: 999px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.modal.product-sheet .life-btn { border-radius: 16px; }
.modal.product-sheet .life-btn:not(.subtle, .quiet), .modal.product-sheet .life-btn.reference-source { background: white; color: #1b2a36; border-color: white; }
.modal.product-sheet .life-btn[disabled] { opacity: .5; }
.modal.product-sheet select option { color: #1b2a36; }
.modal.product-sheet .life-notice { color: white; background: #ffffff1f; border: 1px solid #ffffff4d; }
.modal.product-sheet :is(.close, [data-action="close"], .modal-close) { color: white; }
.modal.product-sheet :is(a, button, select, summary):focus-visible { outline: 2px solid white; outline-offset: 2px; }
.modal.product-sheet .piece-light { background: #ffffff1f; border-color: #ffffff80; box-shadow: inset 0 1px 0 #ffffff4d; }
.modal.product-sheet .piece-light button { color: white; }
.modal.product-sheet .piece-light button[aria-pressed=true] { background: white; color: #1b2a36; }
.modal.product-sheet :is(.piece-brand, .piece-facts) {
  border: 1px solid #ffffff80; background: linear-gradient(125deg, #ffffff2e, #ffffff0a 52%, #ffffff1c), #1e202547; box-shadow: inset 0 1px 0 #ffffff40;
}
.modal.product-sheet .piece-facts dl div { border-top-color: #ffffff33; }
.modal.product-sheet .piece-facts dd { color: white; }
.modal.product-sheet .piece-brand-row :is(img, .product-photo) { border: 1px solid #ffffff99; }

.piece-media { min-width: 0; display: grid; align-content: start; }
.piece-media .piece-brand { margin-bottom: 0; }

/* The same glass on every other page: wardrobe pieces, plans, account, combinations. */
.life-main.glass-page { position: relative; background: none; color: white; }
.life-main.closet-page.glass-page { background: none; color: white; max-width: none; }
.glass-page > :not(.fit-backdrop) { position: relative; z-index: 1; }
.glass-page :is(h1, h2, h3, h4, p, li, dd, label, strong, summary, figcaption, legend) { color: white; }
.glass-page :is(h1, h2) { text-shadow: 0 1px 6px #0009; }
.glass-page :is(.eyebrow, small, dt, .life-small, .status-dot, .closet-grid-status, .editor-breadcrumb, .editor-breadcrumb a) { color: #ffffffd1; }
.glass-page .closet-top { border-bottom: 0; }
.glass-page .closet-top h1 { color: white; }
.glass-page .fitting-tabs { gap: 4px; padding: 4px; border: 1px solid #ffffff80; border-radius: 999px; background: linear-gradient(125deg, #ffffff33, #ffffff0d 52%, #ffffff21), #1e20254d; box-shadow: inset 0 1px 0 #ffffff4d; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.glass-page .fitting-tabs a { min-height: 36px; padding: 0 14px; border-radius: 999px; color: #ffffffd1; font-size: 12.5px; box-shadow: none; }
.glass-page .fitting-tabs a[aria-current=page] { background: white; color: #1b2a36; box-shadow: none; }
.glass-page :is(.saved-card, .life-empty, .closet-empty, .life-product-card, .board-item, .life-source, .board-summary, .board-preferences, .version-section, .version-grid article, .account-grid section, .life-section, .resume-card, .share-record, .plan-card, .life-notice, .life-page-head + section) {
  color: white; border: 1px solid #ffffff66; border-radius: 20px; background: linear-gradient(125deg, #ffffff2e, #ffffff0a 52%, #ffffff1c), #1e202547;
  box-shadow: inset 0 1px 0 #ffffff40, 0 8px 24px #0000003d; backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.glass-page :is(.saved-card, .life-product-card, .board-item, .version-grid article, .account-grid section, .life-section, .life-empty, .closet-empty, .life-source, .board-summary, .board-preferences, .version-section) { padding: 12px; }
.glass-page :is(.life-art, .board-art, .saved-cover, .mini-board > div, .inspiration-preview, .own-art, .closet-missing, .life-source img) { background-color: #f6f6f4; border-radius: 14px; overflow: hidden; color: #1b2a36; }
.glass-page :is(.life-art, .board-art) :is(span, small, strong) { color: #3a4650; }
.glass-page :is(.life-btn, .text-btn, select, input, textarea, .closet-status button, .closet-categories button, .closet-views button, .closet-add, .closet-collection button, .closet-collection select, .saved-tools select, .saved-tools button) {
  color: white; border: 1px solid #ffffff80; background: linear-gradient(125deg, #ffffff33, #ffffff0d 52%, #ffffff21), #1e20254d; box-shadow: inset 0 1px 0 #ffffff4d; text-shadow: none;
}
.glass-page :is(.life-btn, .closet-add) { border-radius: 16px; }
.glass-page .life-btn:not(.subtle, .quiet, .glass), .glass-page :is(.closet-status, .closet-categories, .closet-views) button:is([aria-pressed=true], [aria-current=true]) { background: white; color: #1b2a36; border-color: white; }
.glass-page .life-btn[disabled] { opacity: .5; }
.glass-page :is(input, textarea)::placeholder { color: #ffffffb8; }
.glass-page select option { color: #1b2a36; }
.glass-page .text-btn { padding: 9px 14px; border-radius: 999px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.glass-page .life-empty svg, .glass-page .closet-empty svg { color: white; }
.glass-page .closet-hanger :is(.hanger-wood) { fill: #ffffff59; stroke: #ffffffb3; } .glass-page .closet-hanger :is(.hanger-hook, .hanger-line) { stroke: #ffffffb3; }
.glass-page :is(a, button, select, input, textarea, summary, [tabindex="0"]):focus-visible { outline: 2px solid white; outline-offset: 2px; }
.fitting-page :is(.fitting-options button) { color: #3a4047; }
.fitting-page .fit-face :is(button) { color: #3a4650; }
.fitting-page .fit-face-pick { background: #1b2a360d; border: 1.5px dashed #1b2a3680; box-shadow: none; }
.fitting-page .fit-face-clear { background: white; color: #1b2a36; border: 1px solid #1b2a3640; }

/* Bag, search and every other sheet share the glass. */
#overlay-root .overlay { background: #0a111873; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#overlay-root :is(.modal, .drawer) {
  color: white; border: 1px solid #ffffff80; background: linear-gradient(125deg, #ffffff2e, #ffffff0a 52%, #ffffff1c), #141c24cc;
  box-shadow: inset 0 1px 0 #ffffff4d, 0 24px 60px #00000080; backdrop-filter: blur(26px) saturate(1.2); -webkit-backdrop-filter: blur(26px) saturate(1.2);
}
#overlay-root :is(.modal, .drawer) :is(h2, h3, p, li, dd, label, strong, summary, span) { color: white; }
#overlay-root :is(.modal, .drawer) :is(.eyebrow, dt, small, .life-small) { color: #ffffffd1; }
#overlay-root :is(.modal, .drawer) :is(.life-btn, .text-btn, select, input, textarea, button:not(.modal-close, .piece-light button, .life-art, .piece-brand-row button)) {
  color: white; border: 1px solid #ffffff80; background: linear-gradient(125deg, #ffffff33, #ffffff0d 52%, #ffffff21), #1e20254d; box-shadow: inset 0 1px 0 #ffffff4d;
}
#overlay-root :is(.modal, .drawer) .life-btn:not(.subtle, .quiet) { background: white; color: #1b2a36; border-color: white; }
#overlay-root :is(.modal, .drawer) :is(input, textarea)::placeholder { color: #ffffffb8; }
#overlay-root :is(.modal, .drawer) select option { color: #1b2a36; }
#overlay-root :is(.modal, .drawer) .modal-close { color: white; background: none; border: 0; box-shadow: none; }
#overlay-root :is(.modal, .drawer) :is(.life-art, .product-detail-art, .unavailable-art) { background-color: #f6f6f4; border-radius: 14px; overflow: hidden; }
#overlay-root :is(.modal, .drawer) :is(.life-art, .board-art) :is(span, small, strong) { color: #3a4650; }
#overlay-root :is(.modal, .drawer) svg { color: inherit; }
#overlay-root :is(.modal, .drawer) :is(a, button, select, input, textarea, summary):focus-visible { outline: 2px solid white; outline-offset: 2px; }
.glass-page .life-page-head p:not(.eyebrow), .glass-page :is(.life-section, .account-grid section, .life-empty, .closet-empty) p { color: #ffffffe0; opacity: 1; }
#overlay-root :is(.modal, .drawer) :is(.life-empty, .closet-empty, .life-product-card, .saved-card, .life-notice, article) {
  color: white; border: 1px solid #ffffff59; border-radius: 18px; background: #ffffff14; box-shadow: inset 0 1px 0 #ffffff33;
}
#overlay-root :is(.modal, .drawer) :is(.life-empty, .closet-empty) :is(h2, p) { color: white; opacity: 1; }
#overlay-root :is(.modal, .drawer) :is(header, footer, .drawer-head, .drawer-foot) { background: none; border-color: #ffffff33; color: white; }
.glass-page :is(.demo-label, .board-kind, .reference-mini-label), #overlay-root :is(.modal, .drawer) :is(.demo-label, .reference-mini-label) { color: white; background: #ffffff24; border: 1px solid #ffffff80; }
.glass-page .board-kind { color: #1b2a36; background: #ffffffe6; border-color: transparent; }

/* Size: only the size that fits the saved shape can be ordered. */
.piece-size { margin: 14px 0; padding: 12px 14px; border-radius: 16px; border: 1px solid #ffffff80; background: linear-gradient(125deg, #ffffff2e, #ffffff0a 52%, #ffffff1c), #1e202547; box-shadow: inset 0 1px 0 #ffffff40; }
.piece-size h3 { margin: 0 0 8px; font: 11px/1.2 Arial, sans-serif; letter-spacing: .09em; text-transform: uppercase; color: #ffffffd1; }
.piece-size-row { display: flex; flex-wrap: wrap; gap: 6px; }
#overlay-root .modal .piece-size-row button { min-width: 52px; height: 48px; padding: 0 12px; display: grid; place-content: center; justify-items: center; gap: 1px; border-radius: 14px; font: 600 14px/1 Arial, sans-serif; cursor: pointer; }
#overlay-root .modal .piece-size-row button small { font: 9px/1 Arial, sans-serif; letter-spacing: .04em; color: inherit; opacity: .9; }
#overlay-root .modal .piece-size-row button.is-yours { border-color: white; box-shadow: 0 0 0 2px #ffffff66; }
#overlay-root .modal .piece-size-row button[aria-pressed=true] { background: white; color: #1b2a36; border-color: white; }
.piece-size-note { margin: 10px 0 0; padding: 9px 12px; border-radius: 12px; font: 13px/1.35 Arial, sans-serif; }
#overlay-root .modal .piece-size-note.is-blocked { background: #ffffff; color: #8a1f1f; font-weight: 600; }
#overlay-root .modal .piece-size-note.is-ok { background: #ffffff1f; color: white; }
#overlay-root .modal :is(.piece-size-set, .piece-size-edit) { margin-top: 10px; height: 44px; padding: 0 16px; border-radius: 14px; font: 600 13px/1 Arial, sans-serif; cursor: pointer; }
#overlay-root .modal .piece-size-set { background: white; color: #1b2a36; border-color: white; }
#overlay-root .modal .life-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* One clear way to buy what is on the figure: tap for the whole look, hold for a single piece. */
.fitting-page .fitting-figure { padding-top: 0; }
.fit-buy { position: relative; z-index: 5; display: grid; justify-items: center; gap: 5px; margin-bottom: calc(var(--fit-model) * .46 + 16px); -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.fit-buy-all { height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: white; color: #1b2a36; font: 600 15px/1 Arial, sans-serif; cursor: pointer; box-shadow: 0 8px 24px #00000059; touch-action: manipulation; }
.fit-buy.is-open .fit-buy-all { box-shadow: 0 0 0 4px #ffffff59, 0 8px 24px #00000059; }
.fit-buy small { font: 11px/1.2 Arial, sans-serif; color: #ffffffe0; text-shadow: 0 1px 4px #000a; }
.fit-buy-one { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; width: max-content; max-width: calc(100vw - 28px); animation: map-pop-plain .22s ease-out both; }
.fit-buy-one[hidden] { display: none; }
@keyframes map-pop-plain { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } }
.fit-buy-one button { min-width: 132px; min-height: 56px; padding: 9px 16px; display: grid; gap: 3px; text-align: left; border-radius: 18px; color: white; cursor: pointer;
  border: 1px solid #ffffffa6; background: linear-gradient(125deg, #ffffff40, #ffffff14 52%, #ffffff29), #141c24e0; box-shadow: inset 0 1px 0 #ffffff4d, 0 10px 28px #00000066; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.fit-buy-one b { font: 600 14px/1.1 Arial, sans-serif; } .fit-buy-one span { font: 11px/1.2 Arial, sans-serif; color: #ffffffd9; }
.fit-buy-one button:hover { background: white; color: #1b2a36; } .fit-buy-one button:hover span { color: #3a4650; }
@media (max-width: 640px) { .fitting-page .fitting-figure { --fit-model: min(100%, clamp(130px, calc((100dvh - 500px) * .4258), 230px)); } .fit-buy-one button { min-width: 0; } }

/* My pieces: a plain list. */
.pieces-page .saved-grid { margin-top: 18px; }
.pieces-page .saved-card { display: grid; gap: 6px; align-content: start; }
.pieces-page .saved-card h3 { margin: 6px 0 0; font: 400 17px/1.2 Georgia, serif; }
.pieces-page .saved-card p { margin: 0; font-size: 12px; color: #ffffffd1; min-height: 1em; }
.pieces-page .saved-card .life-btn { justify-self: start; min-height: 40px; padding: 0 14px; border-radius: 999px; }
.pieces-page .pieces-heading { margin: 28px 0 0; font: 400 22px/1.2 Georgia, serif; }
.pieces-page .closet-empty { margin-top: 24px; display: grid; justify-items: center; gap: 14px; text-align: center; padding: 28px 18px; }

/* The bag: tick what to buy now. */
#overlay-root .drawer .bag-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; margin-bottom: 10px; }
#overlay-root .drawer .bag-line h3 { margin: 2px 0; font: 400 17px/1.2 Georgia, serif; }
#overlay-root .drawer .bag-line p { margin: 0; font-size: 12px; }
.bag-tick { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.bag-tick input { width: 24px; height: 24px; margin: 0; accent-color: white; cursor: pointer; }
.bag-hint { margin: 0 0 12px; font: 13px/1.3 Arial, sans-serif; color: #ffffffe0; }
#overlay-root .drawer .drawer-foot .life-btn { width: 100%; min-height: 52px; font-weight: 600; font-size: 15px; }
#overlay-root .drawer .bag-line .life-btn { min-height: 40px; padding: 0 12px; border-radius: 999px; }

/* The bag as a page of the wardrobe. */
.bag-page { max-width: 640px; margin: 18px auto 0; }
.glass-page .bag-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; margin-bottom: 10px; border-radius: 20px; border: 1px solid #ffffff66;
  background: linear-gradient(125deg, #ffffff2e, #ffffff0a 52%, #ffffff1c), #1e202547; box-shadow: inset 0 1px 0 #ffffff40, 0 8px 24px #0000003d; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.glass-page .bag-line h3 { margin: 2px 0; font: 400 17px/1.2 Georgia, serif; }
.glass-page .bag-line p { margin: 0; font-size: 12px; }
.glass-page .bag-line .life-btn { min-height: 40px; padding: 0 12px; border-radius: 999px; }
.bag-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 4px; }
.bag-total span { display: grid; gap: 2px; font: 14px/1.3 Arial, sans-serif; } .bag-total strong { font: 400 24px/1 Georgia, serif; }
.glass-page .bag-buy { width: 100%; min-height: 54px; font-weight: 600; font-size: 15px; }
.tab-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 5px; padding: 0 5px; border-radius: 999px; background: white; color: #1b2a36; font: 700 10px/1 Arial, sans-serif; }
.fitting-tabs a[aria-current=page] .tab-count { background: #1b2a36; color: white; }
@media (max-width: 640px) { .glass-page .fitting-tabs a { padding: 0 11px; } }

/* The cart rows carry a small picture of each piece. */
.glass-page .bag-line { grid-template-columns: auto 64px minmax(0, 1fr) auto; }
.glass-page .bag-line .cart-art { width: 64px; height: 80px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; }
.glass-page .bag-line .cart-art :is(img, .product-photo, .reference-product-photo) { width: 100%; height: 100%; object-fit: cover; display: block; }
.bag-tick input:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 640px) { .glass-page .bag-line { grid-template-columns: auto 52px minmax(0, 1fr) auto; gap: 9px; } .glass-page .bag-line .cart-art { width: 52px; height: 66px; } }
