/* Wearwell v43 — editorial outfit canvas. Scoped to Home only.
   All garment images remain the owner's existing real cutouts. */
body.on-today .hero-card.stage .fit-stack.flatlay.editorial-board {
  isolation: isolate;
  position: relative;
  background: #ded8ce;
  border: 1px solid rgba(255,255,255,.40);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 1px rgba(47,53,45,.11),
    0 15px 30px rgba(0,0,0,.10);
  overflow: hidden;
}
/* A large studio halo and abstract strokes, behind rather than on top of clothing. */
body.on-today .editorial-board::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 94%; aspect-ratio: 1; left: 8%; top: 3%; border-radius: 50%;
  background: radial-gradient(circle at 45% 43%, rgba(252,247,238,.42), rgba(183,167,147,.19) 58%, transparent 75%);
  box-shadow: inset 0 0 0 1px rgba(119,111,99,.08);
}
body.on-today .editorial-board::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  inset: 3% 7%;
  background:
    linear-gradient(132deg, transparent 0 11%, rgba(110,102,87,.21) 11.05% 11.45%, transparent 11.5% 43%, rgba(110,102,87,.14) 43.05% 43.35%, transparent 43.4%),
    repeating-linear-gradient(132deg, transparent 0 8px, rgba(104,97,83,.15) 9px 10px, transparent 11px 23px);
  mask-image: linear-gradient(115deg, transparent 0 70%, #000 80% 87%, transparent 94%);
  opacity: .70;
}
body.on-today .hero-card.stage .editorial-board .flatlay-scene {
  position: absolute; z-index: 2; inset: 1.5% 24px 1%;
  pointer-events: none;
}
body.on-today .hero-card.stage .editorial-board .flatlay-piece {
  pointer-events: auto;
  transition: filter .18s ease;
  -webkit-tap-highlight-color: transparent;
}
body.on-today .hero-card.stage .editorial-board .flatlay-piece:active { filter: brightness(1.04); }
body.on-today .hero-card.stage .editorial-board .flatlay-piece .fit-crop.cut img {
  filter: drop-shadow(1px 12px 12px rgba(33,28,23,.21));
}
body.on-today .hero-card.stage .editorial-board .flatlay-piece .fit-crop.photo img {
  object-fit: contain !important;
  background: #eee7dc;
  box-shadow: 0 5px 15px rgba(38,34,26,.14);
}
/* Both rails sit ON the board and do not consume vertical space below it. */
body.on-today .hero-card.stage .editorial-board .stage-meta {
  position: absolute; inset: 4% 7px 8%; z-index: 6;
  display: flex; justify-content: space-between; align-items: stretch;
  width: auto; height: auto; min-height: 0; margin: 0; padding: 0;
  gap: 0; background: transparent; border: 0;
  pointer-events: none; color: #30392e; opacity: 1;
}
body.on-today .hero-card.stage .editorial-board .stage-meta .stage-weather,
body.on-today .hero-card.stage .editorial-board .stage-meta .stage-tip {
  writing-mode: horizontal-tb !important; text-orientation: mixed;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
  flex: 0 0 clamp(39px, 12.5%, 55px); width: clamp(39px, 12.5%, 55px); min-width: 0;
  max-height: 100%; height: 100%; box-sizing: border-box; overflow: hidden;
  gap: 0; border-radius: 32px; padding: 12px 3px;
  border: 1px solid rgba(255,255,255,.48);
  background: linear-gradient(180deg, rgba(239,231,219,.46), rgba(242,237,229,.19));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.20);
  color: #30392e; white-space: normal; text-align: center;
  filter: none; backdrop-filter: none; text-shadow: none;
}
/* Moving rays are entirely CSS. The center remains still. */
body.on-today .editorial-board .stage-weather-icon {
  position: relative; display: grid; flex: 0 0 46px; width: 46px; height: 46px;
  place-items: center; font-size: 18px; color: #28372d;
}
body.on-today .editorial-board .stage-weather-icon > svg { width: 30px; height: 30px; }
body.on-today .editorial-board .stage-weather-icon.is-sunny .sun-rotor {
  position: absolute; width: 42px; height: 42px; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #2b392e 0deg 7deg, transparent 8deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 0 49%, black 51% 69%, transparent 71%);
  mask: radial-gradient(circle, transparent 0 49%, black 51% 69%, transparent 71%);
  animation: wearwell-sun-turn 24s linear infinite;
  will-change: transform;
}
body.on-today .editorial-board .sun-core {
  width: 20px; height: 20px; border-radius: 50%; background: #2b392e;
  box-shadow: 0 0 0 2px rgba(43,57,46,.05);
}
@keyframes wearwell-sun-turn { to { transform: rotate(360deg); } }
body.on-today .editorial-board .weather-rule,
body.on-today .editorial-board .style-rule {
  flex: 0 0 auto; width: 1px; height: clamp(14px, 4%, 32px);
  background: rgba(45,54,45,.54); margin: 8px 0 14px;
}
body.on-today .editorial-board .weather-temperatures { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1px; }
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-temperatures b {
  color: #253229; font-size: clamp(18px, 5.3vw, 27px); line-height: 1.1;
  font-weight: 800; font-variant-numeric: tabular-nums;
}
body.on-today .editorial-board .weather-low { font-size: 11px; font-weight: 550; line-height: 1.35; white-space: nowrap; }
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-city {
  color: #2b372e; font-size: clamp(10px, 2.8vw, 13px); font-weight: 750;
  max-width: 100%; writing-mode: horizontal-tb; transform: none !important;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-height: 22px; margin-top: 1px;
}
body.on-today .editorial-board .weather-progress {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  flex: 1 1 auto; min-height: 27px; max-height: 74px; width: 1px;
  margin-top: 19px; background: rgba(45,54,45,.29);
}
body.on-today .editorial-board .weather-progress i {
  flex: 0 0 8px; width: 8px; height: 8px;
  border-radius: 50%; background: #c0b9ad; border: 1px solid rgba(255,255,255,.8);
}
body.on-today .editorial-board .weather-progress i:first-child { background: #263329; }
/* The styling note becomes a dark vertical editorial capsule. */
body.on-today .hero-card.stage .editorial-board .stage-tip {
  padding-top: 13px;
  margin-left: auto;
  pointer-events: auto; cursor: pointer; font: inherit; -webkit-appearance: none; appearance: none;
  -webkit-tap-highlight-color: transparent;
}
body.on-today .hero-card.stage .editorial-board .stage-tip:focus-visible {
  outline: 3px solid rgba(40,60,49,.45); outline-offset: 2px;
}
body.on-today .editorial-board .style-spark {
  display: grid; place-items: center; color: #2c392f;
  height: 28px; flex: 0 0 28px; font-size: 22px; line-height: 1;
}
body.on-today .hero-card.stage .editorial-board .stage-tip .style-title {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-size: 10px; font-weight: 750; letter-spacing: .22em;
  color: #63675c; text-transform: uppercase; margin: 10px 0 0;
}
body.on-today .editorial-board .style-rule { height: 20px; margin: 12px 0; }
body.on-today .editorial-board .style-cap {
  flex: 0 1 auto; min-height: 112px; max-height: 46%;
  display: flex; flex-direction: column; gap: 9px; align-items: center; justify-content: center;
  width: calc(100% - 3px); padding: 13px 3px;
  border-radius: 28px; background: #283c31; color: #f3efe7;
  box-shadow: 0 6px 14px rgba(29,43,33,.12);
}
body.on-today .editorial-board .style-cap-star { color: #f4eee6; font-size: 13px; }
body.on-today .hero-card.stage .editorial-board .stage-tip .style-reason {
  writing-mode: vertical-rl; text-orientation: mixed; display: block;
  min-height: 0; max-height: 100%; width: auto; max-width: 100%;
  color: #f5f2ea; font-size: clamp(10px, 2.7vw, 13px); font-weight: 750;
  line-height: 1.1; letter-spacing: .005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body.on-today .editorial-board .style-swatches {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  margin: 5px 0 0;
}
body.on-today .editorial-board .style-swatches i {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.65);
  margin-bottom: -3px;
}
body.on-today .editorial-board .style-swatches:empty { display: none; }
.style-direction-options { display: grid; gap: 9px; margin: 8px 0 2px; }
.style-direction-option {
  display: grid; grid-template-columns: 34px minmax(0,1fr) 22px; align-items: center; gap: 10px;
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); color: var(--ink); text-align: left; font: inherit;
}
.style-direction-option > span:first-child { font-size: 20px; text-align: center; }
.style-direction-option strong, .style-direction-option small { display: block; }
.style-direction-option small { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.style-direction-option .style-direction-check { opacity: 0; color: var(--hero); font-size: 17px; }
.style-direction-option.active { border-color: var(--hero); background: var(--chip-bg); }
.style-direction-option.active .style-direction-check { opacity: 1; }
/* Keep the existing wardrobe categories and all four buttons usable. */
body.on-today .hero-card.stage .stylist-options { margin-top: 8px; }
body.on-today .hero-card.stage .thumb-bar { margin-top: 5px; }
body.on-today .hero-card.stage .thumb-bar .fit-btn { min-height: 55px; }
body.on-today .editorial-board .worn-stamp { z-index: 8; top: 10px; right: 65px; }
@media (max-width: 380px) {
  body.on-today .hero-card.stage .editorial-board .flatlay-scene { inset-inline: 19px; }
  body.on-today .hero-card.stage .editorial-board .stage-meta { inset-inline: 4px; }
  body.on-today .hero-card.stage .editorial-board .stage-meta .stage-weather,
  body.on-today .hero-card.stage .editorial-board .stage-meta .stage-tip {
    flex-basis: 40px; width: 40px; padding-inline: 1px;
  }
  body.on-today .editorial-board .stage-weather-icon { transform: scale(.85); transform-origin: top center; margin-bottom: -4px; }
  body.on-today .editorial-board .style-cap { min-height: 85px; }
}
@media (max-height: 720px) {
  body.on-today .editorial-board .weather-progress,
  body.on-today .editorial-board .style-swatches { display: none; }
  body.on-today .editorial-board .stage-weather-icon { flex-basis: 38px; height: 38px; transform: scale(.85); }
  body.on-today .editorial-board .style-cap { max-height: 44%; }
}
@media (prefers-reduced-motion: reduce) {
  body.on-today .editorial-board .sun-rotor { animation: none !important; will-change: auto; }
  body.on-today .editorial-board .flatlay-piece { transition: none; }
}

/* v41: avoid iOS WebKit's blank compositor layers after Shuffle.
   A garment is never hidden behind a 0→1 opacity transition: a real image
   URL is in the initial markup and any later refinement keeps that node. */
body.on-today .hero-card.stage .editorial-board .flatlay-piece .fit-crop,
body.on-today .hero-card.stage .editorial-board .flatlay-piece .fit-crop.ready {
  opacity: 1 !important;
  transition: none !important;
  visibility: visible !important;
}
body.on-today .hero-card.stage .editorial-board .flatlay-piece img {
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}
@supports (-webkit-touch-callout: none) {
  /* iOS WebKit has reported stale paints with filtered/transformed images.
     Remove this nonessential image filter, but retain the editorial board,
     live weather, styling rails and animated sun. */
  body.on-today .hero-card.stage .editorial-board .flatlay-piece,
  body.on-today .hero-card.stage .editorial-board .flatlay-piece:active {
    filter: none !important;
    -webkit-filter: none !important;
    transition: none !important;
  }
  body.on-today .hero-card.stage .editorial-board .flatlay-piece .fit-crop img,
  body.on-today .hero-card.stage .editorial-board .flatlay-piece .fit-crop.cut img {
    filter: none !important;
    -webkit-filter: none !important;
  }
}

/* Compact, reachable lock controls stay outside the photograph and its zoom targets. */
.piece-locks { order:2; display:flex; flex-wrap:wrap; gap:4px; align-items:center; padding:3px 8px; font-size:11px; color:var(--muted); flex-shrink:0; }
.lock-chip { display:inline-flex; align-items:center; gap:4px; border:1px solid var(--line); border-radius:18px; padding:6px 10px; min-height:36px; background:var(--surface-2); color:var(--ink); font:inherit; cursor:pointer; }
.piece-lock-mark { position:absolute; right:8px; top:8px; border-radius:50%; padding:5px; background:#f5f0e5; color:#493f32; box-shadow:0 1px 5px #0002; pointer-events:none; }
.lock-notice { order:2; margin:2px 10px; font-size:12px; color:var(--ink); }
#pieceGroupOptions { display:flex; flex-direction:column; gap:10px; }

/* No-match results stay within the same outfit canvas and thumb controls. */
body.on-today .hero-card.stage .no-look-board { position: relative; overflow: hidden; }
body.on-today .hero-card.stage .no-look-board .flatlay-scene { inset: 3% 23px 14%; }
body.on-today .hero-card.stage .no-look-board .no-match-preview { pointer-events: auto; }
body.on-today .hero-card.stage .no-look-message { position: absolute; z-index: 7; left: 14%; right: 14%; bottom: 7%; max-height: 31%; overflow: auto; border-radius: 15px; padding: 10px 11px; background: rgba(245,239,230,.93); color: #29372e; font-size: clamp(12px,3.3vw,15px); font-weight: 700; line-height: 1.35; text-align: center; overflow-wrap: anywhere; }
body.on-today .hero-card.stage .no-look-tools { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; align-items: stretch; width: 100%; padding: 0 3px; }
body.on-today .hero-card.stage .no-look-tools .light-button { flex: 1 1 120px; min-width: 0; padding: 9px 8px; font-size: 12px; line-height: 1.25; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; white-space: normal; }
@media (max-width: 350px) { body.on-today .hero-card.stage .no-look-message { left: 12%; right: 12%; padding: 7px; } body.on-today .hero-card.stage .no-look-tools .light-button { font-size: 11px; } }

/* v46: every part of the dynamic palette is visible even on short iPhones. */
body.on-today .hero-card.stage .editorial-board .stage-tip { padding-bottom: 9px; }
body.on-today .editorial-board .stage-tip .style-cap { min-height: 64px; max-height: 38%; flex-shrink: 1; }
body.on-today .editorial-board .stage-tip .style-rule { height: 11px; margin: 6px 0; }
body.on-today .editorial-board .stage-tip .style-swatches {
  flex: 0 0 auto; min-height: 42px; padding: 2px 0 4px; margin-top: auto;
  margin-bottom: 0; overflow: visible;
}
body.on-today .editorial-board .style-swatches i { width: 17px; height: 17px; flex: 0 0 17px; margin-bottom: -2px; }
body.on-today .editorial-board .weather-progress { display: none; }
body.on-today .editorial-board .missing-shoes-link {
  position: absolute; z-index: 7; left: 16%; right: 16%; bottom: 3%;
  padding: 8px 10px; font-size: 11px; line-height: 1.25; text-align: center;
  border: 1px solid #a69b89; background: #f4eee4e8; color: #30392e;
  border-radius: 15px; white-space: normal; pointer-events: auto;
}
@media(max-height:720px){
  body.on-today .editorial-board .style-swatches { display:flex; }
  body.on-today .editorial-board .stage-tip .style-cap { max-height: 33%; }
}

/* v47: pixel-faithful editorial outfit layout.
   Earlier the geometry helper supplied x/y/w/h, but the buttons were still in
   normal flow and their crop spans stayed at 150x190px. Apply the rectangles!
   This is Home-only; no buttons, filters, wardrobe data or cutout sources change. */
body.on-today .hero-card.stage .fit-stack.flatlay.editorial-board {
  background:
    radial-gradient(ellipse at 50% 43%, rgba(255,252,245,.28), transparent 59%),
    linear-gradient(150deg, #dfd7c9 0%, #e7dfd3 54%, #dcd2c3 100%);
}
body.on-today .hero-card.stage .editorial-board .flatlay-scene > .flatlay-piece {
  position: absolute;
  display: block;
  box-sizing: border-box;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.on-today .hero-card.stage .editorial-board .flatlay-scene > .flatlay-piece > .fit-crop {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: none;
}
body.on-today .hero-card.stage .editorial-board .flatlay-scene > .flatlay-piece > .fit-crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* v50: expressive but consistent style symbols; align icon, title and selection state. */
.style-direction-option { grid-template-columns: 38px minmax(0,1fr) 20px; column-gap: 12px; }
.style-direction-symbol { display: grid; place-items: center; height: 34px; width: 34px; color: var(--ink); }
.style-direction-symbol svg { display: block; height: 27px; width: 27px; }
.style-direction-option .style-direction-check { font-size: 17px; }
body.on-today .editorial-board .style-cap { gap: 5px; min-width: 0; padding: 10px 3px; }
body.on-today .editorial-board .style-cap-star {
  flex: 0 0 12px; width: 12px; height: 12px; display: grid; place-items: center;
  line-height: 1; font-size: 12px; margin: 0; padding: 0;
}
body.on-today .editorial-board .style-reason { flex: 0 1 auto; padding: 0; margin: 0; }
/* Fresh, factual feels-like metric; the external rail keeps its dimensions. */
body.on-today .editorial-board .weather-feels {
  display: flex; flex: 0 0 auto; flex-direction: row;
  align-items: center; justify-content: center; gap: 2px;
  width: 100%; min-width: 0; margin-top: 0; padding: 0;
  color: #2d4033; white-space: nowrap;
}
body.on-today .editorial-board .weather-feels-label {
  font: 650 10px/1.2 var(--sans); letter-spacing: .01em;
}
body.on-today .editorial-board .weather-feels-value {
  font: 750 17px/1.1 var(--sans); font-variant-numeric: tabular-nums;
}
.weather-aware-toggle {
  flex: 0 0 auto; align-self: center; border: 1px solid #b8b5a7; border-radius: 20px;
  padding: 6px 9px; background: transparent; color: #4a5447; font: inherit; font-size: 11px;
  white-space: nowrap; min-height: 32px;
}
.weather-aware-toggle b { margin-left: 4px; }
.weather-aware-toggle[aria-pressed="true"] { background: #344c3c; border-color: #344c3c; color: #fff; }
body.on-today .hero-card.stage .stylist-options { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
body.on-today #styleFits { grid-column: 1 / -1; }
body.on-today #styleGroups { flex: 1 1 120px; min-width: 0; }

body.on-today .hero-card.stage .thumb-bar .fit-btn.back {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 6px 2px; min-height: 55px; border-radius: 16px; font-size: 12px;
}
body.on-today .hero-card.stage .thumb-bar .fit-btn.back .fit-ico-svg {
  width: 24px; height: 24px; display: grid; place-items: center;
}
body.on-today .hero-card.stage .thumb-bar .fit-btn.back .fit-ico-svg svg {
  display: block; width: 24px; height: 24px;
}
body.on-today .hero-card.stage .thumb-bar .fit-btn.back:disabled { opacity: .5; }
@media (max-width: 380px) {
  body.on-today .editorial-board .weather-feels-value { font-size: 15px; }
  body.on-today .hero-card.stage .thumb-bar .fit-btn.back { gap: 3px; padding-inline: 2px; }
}



/* v54: the cylinders keep their existing footprint; redistribute their interiors. */
body.on-today .hero-card.stage .editorial-board .stage-meta .stage-weather {
  pointer-events:auto; cursor:pointer; -webkit-appearance:none; appearance:none;
  font:inherit; padding:13px 3px; justify-content:flex-start;
  -webkit-tap-highlight-color:transparent;
}
body.on-today .editorial-board .stage-weather:focus-visible,
body.on-today .editorial-board .stage-tip:focus-visible { outline:2px solid #294337; outline-offset:3px; }
body.on-today .editorial-board .stage-weather-icon {
  flex:0 0 43px; width:43px; height:43px; margin:0 0 3px;
}
body.on-today .editorial-board .weather-city {
  font-size:clamp(9px,2.7vw,12px); line-height:1.25; font-weight:750;
  max-width:100%; min-height:16px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
body.on-today .editorial-board .weather-divider {
  display:block; flex:0 0 1px; width:60%; max-width:30px;
  background:rgba(57,69,56,.34); margin:12px 0;
}
body.on-today .editorial-board .stage-weather .weather-temperatures {
  flex:0 0 auto; gap:3px;
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-temperatures b {
  font-size:clamp(19px,5.2vw,26px); line-height:1.08; letter-spacing:-.03em;
}
body.on-today .editorial-board .stage-weather .weather-low { font-size:11px; }
body.on-today .editorial-board .weather-summary {
  writing-mode:vertical-rl; text-orientation:mixed;
  font:600 10px/1.1 var(--sans); letter-spacing:.07em; color:#586758;
  max-height:86px; overflow:hidden; flex:0 1 auto; margin-top:4px;
}
body.on-today .editorial-board .stage-weather .weather-feels {
  margin-top:0; padding:0; gap:3px;
}
body.on-today .editorial-board .stage-weather .weather-feels-label {
  font-size:10px; line-height:1; letter-spacing:.015em;
}
body.on-today .editorial-board .stage-weather .weather-feels-value {
  font-size:clamp(16px,4.9vw,21px); line-height:1.1; font-weight:800;
}
body.on-today .editorial-board .weather-stale-tag {
  font-size:10px; font-weight:750; margin-top:0; color:#596658;
}
body.on-today .editorial-board .stage-weather-empty { justify-content:center; gap:10px; }
body.on-today .editorial-board .weather-empty-label {
  writing-mode:vertical-rl; font-size:11px; letter-spacing:.07em; font-weight:750;
}
body.on-today .editorial-board .weather-empty-hint {
  writing-mode:vertical-rl; font-size:10px; color:#536154; letter-spacing:.035em;
}
body.on-today .hero-card.stage .editorial-board .stage-tip {
  padding-top:11px; padding-bottom:11px; gap:0; justify-content:flex-start;
}
body.on-today .editorial-board .style-spark {
  height:20px; flex:0 0 20px; font-size:21px;
}
body.on-today .hero-card.stage .editorial-board .stage-tip .style-title {
  display:block; flex:0 0 auto; margin:5px 0 0;
  writing-mode:vertical-rl; text-orientation:mixed;
  white-space:nowrap; word-break:normal; overflow:visible;
  font-size:10px; line-height:1.2; letter-spacing:.18em;
}
body.on-today .editorial-board .stage-tip .style-rule {
  width:1px; height:12px; flex:0 0 12px; margin:8px 0;
}
body.on-today .hero-card.stage .editorial-board .stage-tip .style-cap {
  flex:0 0 auto; min-height:0; max-height:none; width:calc(100% - 3px);
  box-sizing:border-box; gap:5px; padding:9px 3px; overflow:hidden;
  justify-content:center;
}
body.on-today .hero-card.stage .editorial-board .stage-tip .style-reason {
  flex:0 1 auto; height:auto; max-height:none; width:auto;
  font-size:13px; line-height:1.12; white-space:nowrap;
  overflow:hidden; text-overflow:clip; letter-spacing:.012em;
}
body.on-today .editorial-board .style-cap-star {
  flex:0 0 12px; font-size:12px; color:#f4eee6;
}
body.on-today .editorial-board .stage-tip .style-swatches {
  display:flex; min-height:46px; gap:0; margin-top:0; padding:3px 0 0;
}
body.on-today .editorial-board .stage-tip .style-swatches i {
  display:block; flex:0 0 17px; width:17px; height:17px;
}
body.on-today .editorial-board .stage-tip .style-swatches i.style-swatch-empty {
  background:rgba(228,224,217,.55); border-color:rgba(255,255,255,.5);
}
@media(max-width:380px) {
  body.on-today .hero-card.stage .editorial-board .stage-meta .stage-weather,
  body.on-today .hero-card.stage .editorial-board .stage-meta .stage-tip { padding-inline:2px; }
  body.on-today .editorial-board .style-spark { flex-basis:16px; height:16px; font-size:18px; }
  body.on-today .editorial-board .stage-tip .style-rule { margin:5px 0; }
  body.on-today .editorial-board .weather-divider { margin:8px 0; }
  body.on-today .editorial-board .stage-weather-icon { flex-basis:36px; width:36px; height:36px; transform:scale(.82); }
}
@media(max-height:720px) {
  body.on-today .editorial-board .weather-summary { max-height:50px; }
  body.on-today .editorial-board .stage-tip .style-swatches { display:flex; }
  body.on-today .hero-card.stage .editorial-board .stage-tip .style-cap { max-height:none; }
}
/* v55: one measured composition per cylinder. No bottom-pinned information. */
body.on-today .hero-card.stage .editorial-board .stage-meta .stage-weather,
body.on-today .hero-card.stage .editorial-board .stage-meta .stage-tip {
  padding: 10px 3px; justify-content: center;
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-city {
  flex: 0 0 auto; max-height: none; min-height: 0; width: 100%;
  font: 750 10px/1.25 var(--sans); white-space: normal; overflow-wrap: anywhere;
  overflow: hidden; text-overflow: clip; margin: 3px 0 0;
}
body.on-today .editorial-board .stage-weather-icon {
  flex: 0 0 34px; width: 34px; height: 34px; margin: 0;
}
body.on-today .editorial-board .stage-weather-icon.is-sunny .sun-rotor { width:34px; height:34px; }
body.on-today .editorial-board .sun-core { width:17px; height:17px; }
body.on-today .editorial-board .weather-divider { flex:0 0 1px; margin:9px 0; }
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-temperatures { gap:2px; }
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-temperatures b { font-size:22px; }
body.on-today .editorial-board .weather-high-label { font:600 9px/1.2 var(--sans); }
body.on-today .editorial-board .weather-low { font-size:9px; line-height:1.25; }
body.on-today .editorial-board .weather-summary {
  flex:0 0 auto; max-height:none; margin:0; font-size:10px; line-height:1.2;
  letter-spacing:.025em; white-space:nowrap;
}
body.on-today .editorial-board .stage-weather .weather-feels { margin:10px 0 0; padding:0; gap:3px; }
body.on-today .editorial-board .weather-stale-tag { flex:0 0 auto; margin:0; }
body.on-today .hero-card.stage .editorial-board .stage-weather-empty { gap:10px; }
body.on-today .editorial-board .style-spark { flex:0 0 11px; height:11px; font-size:12px; }
body.on-today .hero-card.stage .editorial-board .stage-tip .style-title {
  margin:5px 0 0; font-size:9px; line-height:1.1; letter-spacing:.13em;
}
body.on-today .editorial-board .stage-tip .style-rule { flex:0 0 8px; height:8px; margin:6px 0; }
body.on-today .hero-card.stage .editorial-board .stage-tip .style-cap {
  flex:0 0 auto; min-height:0; max-height:none; padding:9px 3px; gap:7px;
  justify-content:center; overflow:hidden;
}
body.on-today .hero-card.stage .editorial-board .stage-tip .style-reason {
  flex:0 0 auto; font-size:12px; line-height:1.2; letter-spacing:.015em;
  max-height:none; overflow:hidden; text-overflow:clip;
}
body.on-today .editorial-board .style-cap-star { flex:0 0 9px; height:9px; width:9px; font-size:9px; }
body.on-today .editorial-board .stage-tip .style-swatches {
  display:flex; flex:0 0 auto; min-height:0; gap:2px; margin:0; padding:0;
}
body.on-today .editorial-board .stage-tip .style-swatches i {
  box-sizing:border-box; flex:0 0 14px; height:14px; width:14px; margin:0;
}
@media(max-width:380px) {
  body.on-today .hero-card.stage .editorial-board .stage-meta .stage-weather,
  body.on-today .hero-card.stage .editorial-board .stage-meta .stage-tip { padding:8px 2px; }
  body.on-today .editorial-board .stage-weather-icon { transform:none; }
  body.on-today .editorial-board .style-spark { flex-basis:9px; height:9px; }
  body.on-today .hero-card.stage .editorial-board .stage-tip .style-title { font-size:8.5px; margin-top:3px; letter-spacing:.1em; }
  body.on-today .editorial-board .stage-tip .style-rule { margin:3px 0; height:4px; flex-basis:4px; }
  body.on-today .hero-card.stage .editorial-board .stage-tip .style-cap { padding-block:7px; gap:5px; }
  body.on-today .editorial-board .weather-divider { margin:7px 0; }
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-city-long {
  writing-mode:vertical-rl; text-orientation:mixed; width:auto; max-width:100%;
  max-height:70px; font-size:10px; line-height:1.2; white-space:normal;
  overflow-wrap:anywhere; margin-top:5px;
}
body.on-today .editorial-board .stage-weather.weather-compact .weather-divider { margin:5px 0; }
body.on-today .editorial-board .stage-weather.weather-compact .stage-weather-icon { flex-basis:30px; height:30px; }
body.on-today .editorial-board .stage-weather.weather-compact .weather-feels { margin-top:7px; }
body.on-today .editorial-board .stage-weather.weather-compact .weather-summary { font-size:9px; }
/* Short first-generation SE screens need more of the existing board height.
   Expand only the rail inset, preserving all garment rectangles and the board. */
@media(max-height:650px) {
  body.on-today .hero-card.stage .fit-stack.flatlay.editorial-board .stage-meta { inset-block:10%; }
}
/* Reclaim decoration before reducing the readable style label for wider fonts. */
body.on-today .hero-card.stage .editorial-board .stage-meta .stage-tip.style-compact { padding-block:6px; }
body.on-today .editorial-board .stage-tip.style-compact .style-spark { height:7px; flex-basis:7px; }
body.on-today .hero-card.stage .editorial-board .stage-tip.style-compact .style-title { margin-top:2px; letter-spacing:0; }
body.on-today .editorial-board .stage-tip.style-compact .style-rule { height:2px; flex-basis:2px; margin:2px 0; }
body.on-today .hero-card.stage .editorial-board .stage-tip.style-compact .style-cap { padding-block:6px; gap:4px; }
body.on-today .editorial-board .stage-tip.style-compact .style-swatches { gap:1px; }
body.on-today .editorial-board .stage-tip.style-compact .style-swatches i { width:13px; height:13px; flex-basis:13px; }
body.on-today .editorial-board .stage-weather.weather-compact .weather-summary {
  white-space:normal; overflow-wrap:anywhere; max-width:100%;
}

/* Reference weather composition. The existing shared cylinder surface stays intact.
   All internal dimensions use one measured proportion; readable type has a floor. */
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition {
  --weather-scale:1; display:flex; flex:0 0 auto; flex-direction:column;
  align-items:center; width:100%; min-width:0; box-sizing:border-box;
  color:#25392e; font-family:var(--sans); text-align:center;
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition > * {
  flex-shrink:0; box-sizing:border-box; max-width:100%;
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .stage-weather-icon {
  flex:0 0 auto; width:calc(32px * var(--weather-scale));
  height:calc(32px * var(--weather-scale)); margin:0; transform:none;
  border-radius:50%; background:#21392d; color:#f4efdf;
  box-shadow:0 calc(2px * var(--weather-scale)) calc(7px * var(--weather-scale)) rgba(24,43,32,.22);
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .stage-weather-icon > svg {
  width:62%; height:62%; stroke-width:1.8;
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .stage-weather-icon.is-sunny .sun-rotor {
  width:76%; height:76%;
  background:repeating-conic-gradient(from 0deg, #f4efdf 0deg 7deg, transparent 8deg 45deg);
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .sun-core {
  width:29%; height:29%; background:#f4efdf; box-shadow:none;
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .weather-city {
  width:100%; min-height:0; max-height:none; margin:calc(6px * var(--weather-scale)) 0 0;
  writing-mode:horizontal-tb; transform:none; overflow:visible; text-overflow:clip;
  white-space:normal; overflow-wrap:anywhere;
  font:750 max(8px, calc(11px * var(--weather-scale)))/1.2 var(--sans);
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .weather-divider {
  display:block; flex:0 0 auto; width:48%; max-width:none; height:1px;
  margin:calc(7px * var(--weather-scale)) 0; background:rgba(57,69,56,.34);
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .weather-temperatures {
  display:flex; flex:0 0 auto; flex-direction:column; align-items:center; gap:0; width:100%;
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .weather-temperatures b {
  font:800 max(14px, calc(24px * var(--weather-scale)))/1.05 var(--sans);
  color:#21382c; letter-spacing:-.045em; font-variant-numeric:tabular-nums;
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .weather-high-label {
  font:600 max(7px, calc(8px * var(--weather-scale)))/1.2 var(--sans);
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .weather-range {
  display:flex; flex-direction:column; align-items:center;
  gap:calc(3px * var(--weather-scale)); margin-top:calc(5px * var(--weather-scale));
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .weather-low {
  display:block; color:inherit; overflow:visible; text-overflow:clip;
  font:500 max(8px, calc(10px * var(--weather-scale)))/1.25 var(--sans);
  white-space:nowrap; font-variant-numeric:tabular-nums;
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .weather-range-divider {
  display:block; flex:0 0 auto; width:1px; height:calc(6px * var(--weather-scale));
  background:rgba(57,69,56,.4);
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .weather-summary, body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .weather-stale-tag {
  display:block; flex:0 0 auto; width:100%; min-height:0; max-height:none; margin:0;
  padding:calc(4px * var(--weather-scale)) calc(2px * var(--weather-scale));
  border-radius:calc(12px * var(--weather-scale)); background:#e5dccb; color:#344637;
  writing-mode:horizontal-tb; white-space:normal; overflow-wrap:anywhere; overflow:visible;
  font:600 max(8px, calc(10px * var(--weather-scale)))/1.2 var(--sans); letter-spacing:0;
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .weather-feels {
  display:flex; flex-direction:column; align-items:center; gap:calc(4px * var(--weather-scale));
  width:100%; margin:0; padding:0; white-space:normal;
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .weather-feels::before {
  content:none;
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .weather-feels-label {
  order:0; flex:0 0 auto; writing-mode:horizontal-tb; white-space:normal; max-width:100%;
  font:650 max(7px, calc(8px * var(--weather-scale)))/1.2 "Avenir Next Condensed", "Arial Narrow", Arial, sans-serif; letter-spacing:0;
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .weather-feels-value {
  order:0; flex:0 0 auto; writing-mode:horizontal-tb; transform:none;
  font:800 max(12px, calc(18px * var(--weather-scale)))/1.1 var(--sans);
  letter-spacing:-.035em; font-variant-numeric:tabular-nums;
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition > .weather-divider:last-child {
  margin-bottom:0;
}

/* v62: contents mirror the Styled-for rail. JS sets the composition to the
   exact span of that rail's contents (first star to last swatch); groups are
   spread evenly between the rules, as in the owner's reference. */
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition {
  position:relative; justify-content:space-between; flex:0 0 auto;
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition > .weather-divider {
  margin:0; width:44%;
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-group {
  display:flex; flex:0 0 auto; flex-direction:column; align-items:center; width:100%;
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-group-place .weather-city {
  margin-top:calc(7px * var(--weather-scale));
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .weather-range {
  margin-top:calc(6px * var(--weather-scale));
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .weather-summary {
  width:auto; min-width:86%; padding:calc(4px * var(--weather-scale)) calc(4px * var(--weather-scale));
}
/* FEELS LIKE uses the same voice as STYLED FOR: rounded, tracked, muted. */
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .weather-feels-label {
  font:750 max(6px, calc(7.5px * var(--weather-scale)))/1.2 var(--sans);
  letter-spacing:.1em; color:#63675c; text-transform:uppercase; white-space:nowrap;
}
body.on-today .hero-card.stage .editorial-board .stage-weather .weather-composition .weather-feels {
  gap:calc(5px * var(--weather-scale));
}

/* First outfit starter (v68): three pieces to a first look, shown inside the beige board for a new closet. */
body.on-today .hero-card.stage .starter-board { display: flex; align-items: center; justify-content: center; }
body.on-today .hero-card.stage .starter { position: relative; z-index: 6; width: min(100%, 340px); padding: clamp(14px, 4.5vw, 26px) clamp(14px, 5vw, 24px); display: grid; gap: clamp(8px, 1.6vh, 13px); text-align: left; color: #29372e; }
body.on-today .hero-card.stage .starter-eyebrow { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #5f6a5f; }
body.on-today .hero-card.stage .starter-title { margin: -2px 0 2px; font: 500 clamp(25px, 7.4vw, 32px)/1.05 var(--serif); letter-spacing: -.02em; color: #1f2a22; }
body.on-today .hero-card.stage .starter-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
body.on-today .hero-card.stage .starter-steps li { display: grid; grid-template-columns: 40px 1fr 26px; align-items: center; gap: 11px; min-height: 54px; padding: 7px 11px 7px 8px; border-radius: 16px; background: rgba(250,246,239,.78); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 1px 0 rgba(60,50,30,.05); }
body.on-today .hero-card.stage .starter-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(76,92,79,.1); color: #4c5c4f; }
body.on-today .hero-card.stage .starter-text { min-width: 0; display: grid; gap: 1px; }
body.on-today .hero-card.stage .starter-text b { font-size: 15px; }
body.on-today .hero-card.stage .starter-text small { font-size: 12.5px; color: #69705f; overflow-wrap: anywhere; }
body.on-today .hero-card.stage .starter-mark { width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed rgba(76,92,79,.45); display: grid; place-items: center; font-size: 14px; font-weight: 800; }
body.on-today .hero-card.stage .starter-steps li.done .starter-mark { border: 0; background: #34443a; color: #f6f1e7; }
body.on-today .hero-card.stage .starter-steps li.done .starter-ico { background: #34443a; color: #f6f1e7; }
body.on-today .hero-card.stage .starter-check { min-height: 44px; border: 0; border-radius: 13px; padding: 9px 12px; background: rgba(214,170,92,.22); color: #5a4417; font: 600 13px/1.3 inherit; font-family: inherit; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.on-today .hero-card.stage .starter-check b { flex: 0 0 auto; padding: 6px 10px; border-radius: 10px; background: #5a4417; color: #fbf3e3; font-weight: 800; }
body.on-today .hero-card.stage.starter-on > .stylist-options { display: none; }
body.on-today .hero-card.stage .starter-add { min-height: 52px; width: 100%; margin-top: 2px; }
body.on-today .hero-card.stage .starter-note { margin: 0; font-size: 12px; line-height: 1.45; color: #69705f; }
@media (max-height: 640px) { body.on-today .hero-card.stage .starter-note { display: none; } body.on-today .hero-card.stage .starter-steps li { min-height: 46px; padding-block: 4px; } body.on-today .hero-card.stage .starter-ico { width: 34px; height: 34px; } body.on-today .hero-card.stage .starter-steps li { grid-template-columns: 34px 1fr 24px; } }
@media (prefers-reduced-motion: no-preference) { body.on-today .hero-card.stage .starter-steps li.done .starter-mark { animation: starter-pop .32s cubic-bezier(.2,.9,.25,1.3); } }
@keyframes starter-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
body.on-today .hero-card.stage .starter-install { margin: 0; padding: 10px 12px; border-radius: 14px; background: #34443a; color: #f4efe6; font-size: 12.5px; line-height: 1.45; }
body.on-today .hero-card.stage .starter-install b { display: block; font-size: 13.5px; margin-bottom: 1px; }
@media (max-height: 640px) { body.on-today .hero-card.stage .starter-install { font-size: 11.5px; padding: 8px 10px; } }
body.on-today .hero-card.stage .starter { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
@media (max-height: 640px) {
  body.on-today .hero-card.stage .starter { gap: 7px; padding-block: 12px; }
  body.on-today .hero-card.stage .starter-title { font-size: 23px; }
  body.on-today .hero-card.stage .starter-steps { gap: 5px; }
  body.on-today .hero-card.stage .starter-steps li { min-height: 40px; grid-template-columns: 30px 1fr 22px; }
  body.on-today .hero-card.stage .starter-ico { width: 30px; height: 30px; border-radius: 9px; }
  body.on-today .hero-card.stage .starter-ico svg { width: 18px; height: 18px; }
  body.on-today .hero-card.stage .starter-mark { width: 22px; height: 22px; font-size: 12px; }
  body.on-today .hero-card.stage .starter-text small { display: none; }
  body.on-today .hero-card.stage .starter-check { min-height: 40px; padding-block: 6px; }
  body.on-today .hero-card.stage .starter-check b { padding: 5px 9px; }
  body.on-today .hero-card.stage .starter-add { min-height: 46px; }
}
@media (max-height: 640px) {
  body.on-today .hero-card.stage .starter-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  body.on-today .hero-card.stage .starter-steps li { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 0; padding: 7px 4px 6px; text-align: center; }
  body.on-today .hero-card.stage .starter-text b { font-size: 12.5px; }
  body.on-today .hero-card.stage .starter-mark { position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; font-size: 9px; border-width: 1px; }
}
/* v81: the iPhone install note has three step chips; keep it compact so the starter still fits short screens */
body.on-today .hero-card.stage .starter-install .ios-steps { margin: 5px 0 3px; gap: 4px; }
@media (max-height: 700px) {
  body.on-today .hero-card.stage .starter-install .ios-steps li { padding: 2px 7px 2px 2px; font-size: 11px; gap: 4px; }
  body.on-today .hero-card.stage .starter-install .ios-n { width: 15px !important; height: 15px; font-size: 9.5px !important; }
  body.on-today .hero-card.stage .starter-install .ios-steps svg { width: 13px; height: 13px; }
  body.on-today .hero-card.stage .starter-install .ios-steps-why { font-size: 10.5px; line-height: 1.3; }
}
