.third-act{position:relative}
.routine-chapter{background:#ebe6d9}
.shade-chapter{background:#edddd4}
.personal-panel{display:grid;align-items:center;grid-template-columns:minmax(0,.83fr) minmax(0,1.17fr);gap:clamp(18px,4vw,82px);padding:calc(var(--header) + 25px) var(--gutter) 34px;min-height:100svh}
.personal-copy{min-width:0}
.personal-copy h2{font-size:clamp(3.2rem,6.6vw,8.9rem);margin-bottom:19px}
.personal-copy h2 em{display:block}
.personal-note{font-size:.72rem;line-height:1.4;margin:8px 0;color:var(--soft)}
[data-routine-status]:empty,[data-shade-status]:empty{display:none}
.routine-filters{display:flex;gap:9px;flex-wrap:wrap;margin:12px 0}
.routine-filters label,.routine-choices label,.shade-select{font-size:.72rem;font-weight:800}
.routine-filters select{margin-left:3px;max-width:132px;padding:4px 6px}
.routine-choices{border-top:1px solid var(--rule)}
.routine-entry{display:grid;grid-template-columns:minmax(112px,.72fr) minmax(0,1.28fr);align-items:center;gap:4px 8px;border-bottom:1px solid var(--rule);padding:6px 0}
.routine-entry select{min-width:0;width:100%;padding:5px;font-size:.73rem}
.routine-entry .entry-tools{grid-column:2;display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.entry-tools input{width:51px;padding:2px 7px;font-size:.72rem}
.entry-tools button,.personal-caption a{font-size:.71rem;font-weight:780}
.entry-tools button{padding:0;background:none;border:0;text-decoration:underline;text-underline-offset:2px}
.routine-price{display:flex;justify-content:space-between;align-items:center;margin-top:11px;font-size:.83rem}
.routine-price strong{font-size:1rem}
.routine-presentation{min-width:0}
.routine-stage{position:relative;min-height:280px;height:min(58svh,660px);isolation:isolate;overflow:hidden;border-radius:50% 50% 3px 3px / 25% 25% 3px 3px;background:radial-gradient(ellipse at 52% 45%,#fcf5e6,#e6d7c3);box-shadow:0 19px 45px #5c42291a}
.routine-stage canvas,.routine-fallback{position:absolute;inset:0;width:100%;height:100%;display:block}
.routine-fallback::before{content:"";position:absolute;inset:67% 9% 13%;border-radius:50%;background:#c2a488;box-shadow:0 15px 30px #69503944}
.fallback-item{position:absolute;bottom:28%;width:21%;height:57%;object-fit:contain;transition:transform .4s,opacity .4s;filter:drop-shadow(3px 7px 6px #67492e55)}
.routine-stage[data-live] .routine-fallback{display:none}
.personal-caption{display:flex;justify-content:space-between;gap:9px;align-items:center;margin-top:9px;font-size:.71rem}
.shade-models{margin:8px 0 14px}
.swatch-row{display:flex;gap:9px;flex-wrap:wrap}
.swatch{width:35px;height:35px;background:var(--shade);border:3px solid #f6ece4;border-radius:50%;box-shadow:0 0 0 1px #76514b75;transition:transform .22s,box-shadow .22s}
.swatch[aria-pressed=true]{box-shadow:0 0 0 2px #392d26;transform:scale(1.09)}
.swatch:hover{transform:translateY(-2px)}
.shade-info{margin:15px 0}
.shade-info h3{margin:0;font:400 clamp(1.75rem,3.8vw,4.2rem)/.95 var(--serif)}
.shade-info p{display:flex;align-items:center;gap:10px;margin:6px 0;font-size:.74rem;color:var(--soft)}
.shade-presentation{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,.51fr);align-items:end;gap:11px;min-width:0}
.shade-portrait{position:relative;aspect-ratio:2/3;max-height:74svh;width:auto;justify-self:end;overflow:hidden;border-radius:48% 48% 2px 2px / 14% 14% 2px 2px;background:#d8bda1;box-shadow:0 19px 43px #60322523}
.shade-portrait img,.shade-portrait canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}
.shade-portrait canvas{opacity:0;transition:opacity .42s ease}
.shade-portrait canvas[data-visible]{opacity:1}
.shade-package{min-width:0;margin:0}
.shade-package-stage{height:clamp(170px,38svh,370px);position:relative;background:#d9c4b354;border-radius:50% 50% 3px 3px / 19% 19% 3px 3px}
.shade-package-stage img,.shade-viewer,.shade-viewer canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.shade-package .action{margin-top:6px;width:100%;font-size:.68rem;padding-inline:5px}
.shade-viewer{touch-action:pan-y;cursor:grab}
.bundle-line{border-bottom:1px solid var(--rule);padding:13px 0}
.bundle-line h3{font:400 1.65rem/1 var(--serif);margin:0 0 6px}
.bundle-line ul{margin:0 0 8px;padding-left:17px;font-size:.76rem}
.bundle-line p{margin:0 0 6px;font-size:.76rem}
.variant-choice{display:block;margin-top:5px;max-width:100%;font-size:.71rem;padding:3px}
.routine-entry .unavailable{opacity:.75}
.collection-follow{display:flex;justify-content:center;margin-top:13px}
@media(min-width:901px) and (prefers-reduced-motion:no-preference){
  .third-act .chapter{min-height:145svh}
  .third-act .personal-panel{position:sticky;top:0}
}
@media(max-width:900px){
  .personal-panel{grid-template-columns:1fr;gap:15px;align-items:start}
  .personal-copy h2 em{display:inline}
  .routine-stage{height:clamp(240px,45svh,465px);min-height:0}
  .shade-presentation{max-width:680px;width:100%;justify-self:center}
  .shade-portrait{max-height:55svh}
}
@media(max-width:520px){
  .personal-panel{padding-top:calc(var(--header) + 15px);padding-bottom:21px;gap:12px}
  .personal-copy h2{font-size:clamp(2.75rem,11vw,4.1rem);margin-bottom:13px}
  .routine-entry{padding:5px 0}
  .routine-filters{margin:8px 0}
  .routine-filters label{font-size:.67rem}
  .routine-filters select{max-width:114px}
  .routine-stage{height:clamp(220px,40svh,330px)}
  .shade-presentation{grid-template-columns:minmax(0,1fr) minmax(79px,.44fr);gap:7px}
  .shade-package-stage{height:clamp(135px,29svh,240px)}
  .shade-portrait{max-height:47svh}
  .shade-package .action{white-space:normal}
  .shade-models{margin:6px 0 9px}
  .shade-info{margin:10px 0}
}
@media(prefers-reduced-motion:reduce){.shade-portrait canvas,.fallback-item,.swatch{transition:none}}

.shade-portrait{width:min(100%,49.33svh)}
@media(max-width:900px){.shade-portrait{width:min(100%,36.66svh)}}
@media(max-width:520px){.shade-portrait{width:min(100%,31.33svh)}}

@media(min-width:901px) and (max-height:710px){
  .personal-panel{padding-top:calc(var(--header) + 12px);padding-bottom:20px}
  .personal-copy h2{font-size:clamp(3.4rem,5vw,5.25rem);margin-bottom:13px}
  .routine-chapter h2 em{display:inline}
  .routine-entry{grid-template-columns:minmax(65px,.39fr) minmax(0,1fr) auto;padding:5px 0}
  .routine-entry .entry-tools{grid-column:3;gap:5px}
  .entry-tools input{width:43px}
  .routine-stage{height:59svh}
}

.fallback-item{object-position:center bottom;bottom:23%}

[data-mode="still"] .third-act .chapter{scroll-margin:0}
@media(min-width:1120px) and (max-height:710px){
  #routine-title{font-size:clamp(2.9rem,4.1vw,4.9rem);white-space:nowrap}
  .routine-chapter .personal-panel{padding-top:calc(var(--header) + 9px)}
}
@media(prefers-reduced-motion:no-preference){
  .shade-presentation{transform:translateY(var(--makeup-scroll,0px))}
}

.edit-product select{min-width:0;max-width:100%;font-size:.75rem}
.bag-remove+.bag-remove{margin-inline-start:5px}

.quantity-label[hidden],.bag-total[hidden]{display:none}
