.mirror-page { --rule: #d7c5b5; --cream: #f8f3e6; }
.mirror-shell { width: min(88%, 1290px); margin-inline: auto; }
.mirror-navigation { display: flex; align-items: center; gap: 28px; font-size: .82rem; }
.mirror-navigation a { padding-block: 10px; }
.mirror-navigation [aria-current] { border-bottom: 1px solid #410d1b; }
.mirror-intro {
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  padding: 52px 0 32px; border-bottom: 1px solid var(--rule);
}
.mirror-intro h1 { font-size: clamp(3.6rem, 6.8vw, 7.1rem); }
.mirror-intro > p { max-width: 260px; margin-bottom: 4px; color: #6a514a; }
.mirror-workspace {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: start; gap: clamp(35px, 6vw, 96px); padding-block: 32px 56px;
}
.sculpture-panel {
  margin: 0; position: sticky; top: 104px; overflow: hidden;
  border: 1px solid var(--rule); background: #e5dac7;
}
#sculpture-stage {
  position: relative; width: 100%; aspect-ratio: 896 / 1200; max-height: calc(100svh - 182px);
  min-height: 400px; isolation: isolate;
}
#sculpture-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center; pointer-events: none;
}
.stage-caption {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 13px 18px; border-top: 1px solid var(--rule); background: var(--cream);
  color: #6a514a; font-size: .88rem;
}
#stage-style-name { color: #410d1b; font: 1.45rem/1.1 Muse, Georgia, serif; }
.style-panel { min-width: 0; }
.style-panel fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.style-panel legend { padding: 0; margin: 0 0 17px; font: clamp(2rem, 3.6vw, 3.35rem)/1 Muse, Georgia, serif; letter-spacing: -.04em; }
.hairstyle-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hairstyle-option {
  overflow: hidden; padding: 0; display: grid; grid-template-rows: auto 1fr; width: 100%;
  border: 1px solid var(--rule); background: #f1e9db; transition: border-color .2s;
}
.hairstyle-option:hover, .hairstyle-option[aria-pressed="true"] { border-color: #410d1b; }
.hairstyle-option img { width: 100%; height: auto; aspect-ratio: 1.45; object-fit: cover; object-position: 50% 32%; }
.hairstyle-option span {
  display: grid; align-items: center; min-height: 38px; padding: 6px 4px; font-size: .875rem; line-height: 1.25;
}
.hairstyle-option[aria-pressed="true"] span { background: #410d1b; color: #fff7e8; }
.style-panel .colour-fieldset, .current-look {
  border-top: 1px solid var(--rule); margin-top: 25px; padding-top: 22px;
}
.colour-fieldset legend { float: left; width: 100%; }
.mirror-shades { clear: both; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 4px; }
.mirror-shade {
  display: grid; justify-items: center; align-content: start; gap: 7px; min-height: 68px;
  padding: 4px 2px; font-size: .875rem; line-height: 1.15;
}
.shade-circle {
  display: block; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid #28141544; background: var(--swatch);
}
.mirror-shade:hover:not(:disabled) .shade-circle, .mirror-shade[aria-pressed="true"] .shade-circle {
  outline: 1px solid #410d1b; outline-offset: 3px;
}
.mirror-shade[aria-pressed="true"] { font-weight: 700; }
.mirror-shade:disabled { cursor: default; color: #746860; }
.mirror-shade:disabled .shade-circle {
  background: linear-gradient(135deg, transparent 47%, #77645a 48% 52%, transparent 53%), var(--swatch);
  opacity: .57;
}
.current-look .eyebrow { margin-bottom: 10px; }
.current-look h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1.12; }
.current-look .shade-reference { margin-top: 6px; font-size: .9rem; }
.shade-reference strong { margin-left: 5px; }
.mirror-page .field-note { color: #6b554e; font-size: .875rem; }
.mirror-actions { display: flex; gap: 16px 25px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
#selection-status { margin: 10px 0 0; min-height: 1.4em; }
.mirror-shortlist { border-top: 1px solid var(--rule); padding-block: 38px 68px; }
.shortlist-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.shortlist-heading h2 { font-size: clamp(2.7rem, 5vw, 4rem); margin-bottom: 10px; }
.shortlist-heading p, .empty-shortlist { color: #6b554e; }
.shortlist-items { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.empty-shortlist { grid-column: 1/-1; padding: 18px; border: 1px dashed var(--rule); }
.shortlist-card { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 15px; padding: 12px; border: 1px solid var(--rule); }
.shortlist-card img { width: 100px; aspect-ratio: 1; object-position: center 25%; }
.shortlist-card h3 { line-height: 1.15; }
.shortlist-card .text-link { margin: 7px 12px 0 0; }

@media (min-width: 761px) {
  .sculpture-panel { justify-self: center; width: min(100%, calc(max(400px, 100svh - 182px) * .7467)); }
}
@media (max-width: 760px) {
  .mirror-navigation { display: none; }
  .mirror-shell { width: min(92%, 540px); }
  .mirror-intro { display: block; padding: 28px 0 18px; }
  .mirror-intro h1 { font-size: clamp(3rem, 11vw, 5rem); }
  .mirror-intro > p { max-width: none; margin-top: 10px; }
  .mirror-workspace { display: block; padding-block: 15px 32px; }
  .sculpture-panel { top: 76px; z-index: 2; box-shadow: 0 7px 18px #37121b18; }
  #sculpture-stage { min-height: 0; height: clamp(185px, 36svh, 335px); max-height: none; }
  #sculpture-stage img { object-fit: cover; object-position: center 23%; }
  .stage-caption { padding: 8px 12px; }
  #stage-style-name { font-size: 1.2rem; }
  .style-panel { padding-top: 23px; }
  .style-panel :is(button, a) { scroll-margin-top: calc(clamp(185px, 36svh, 335px) + 48px); }
  .shortlist-items { grid-template-columns: 1fr; }
  .shortlist-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 760px) and (max-height: 560px) {
  .sculpture-panel { position: relative; top: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hairstyle-option { transition: none; }
}

.share-fallback { margin-top: 14px; }
.share-fallback label { display: block; font-size: .875rem; }
.share-fallback input { width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--rule); background: var(--cream); color: #410d1b; }
