/* Trigger — presentation from Theme App Block settings (block.settings) */
.spotlight-size-chart-root {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  display: flex;
  width: 100%;
  max-width: 100%;
  justify-content: flex-start;
  background: transparent !important;
  border: 0;
  box-shadow: none;
}

.spotlight-size-chart-root.spotlight-size-chart-root--presentation-link,
.spotlight-size-chart-root.spotlight-size-chart-root--presentation-button {
  background: transparent !important;
}

/* Theme editor: Shopify’s block selection ring can obscure the live trigger preview */
.spotlight-size-chart-root--theme-editor.shopify-app-block,
.spotlight-size-chart-root--theme-editor.shopify-block,
.spotlight-size-chart-root--theme-editor[data-shopify-editor-block] {
  outline: none !important;
  box-shadow: none !important;
}

.spotlight-size-chart-root--theme-editor.shopify-app-block::before,
.spotlight-size-chart-root--theme-editor.shopify-app-block::after {
  content: none !important;
  display: none !important;
}

.spotlight-size-chart-root--theme-editor .spotlight-size-chart-trigger:focus,
.spotlight-size-chart-root--theme-editor .spotlight-size-chart-trigger:focus-visible {
  outline: none;
}

.spotlight-size-chart-root--m-center {
  justify-content: center;
}

.spotlight-size-chart-root--m-right {
  justify-content: flex-end;
}

.spotlight-size-chart-root--m-left {
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .spotlight-size-chart-root--d-left {
    justify-content: flex-start;
  }

  .spotlight-size-chart-root--d-center {
    justify-content: center;
  }

  .spotlight-size-chart-root--d-right {
    justify-content: flex-end;
  }
}

.spotlight-size-chart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-weight: inherit;
  font-style: inherit;
  font-size: var(--spotlight-sg-trigger-font-size, 0.9375rem);
  color: inherit;
  cursor: pointer;
  line-height: 1.3;
  text-align: left;
}

.spotlight-size-chart-trigger__label {
  display: inline;
}

.spotlight-size-chart-trigger--with-icon {
  gap: 0.4em;
}

.spotlight-size-chart-trigger__icon {
  flex: 0 0 auto;
  display: block;
  width: 1.1em;
  height: 1.1em;
  opacity: 0.92;
  shape-rendering: geometricPrecision;
}

.spotlight-size-chart-trigger__icon--c-black {
  color: #121315;
}

.spotlight-size-chart-trigger__icon--c-white {
  color: #ffffff;
}

.spotlight-size-chart-trigger__icon--c-grey {
  color: #6b7280;
}

/* Link style — text control; typography inherits the active theme */
.spotlight-size-chart-trigger--link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-link, currentColor);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  opacity: 0.9;
}

.spotlight-size-chart-trigger--link.spotlight-size-chart-trigger--legacy-underline {
  opacity: 0.82;
}

/* Button style — filled control with theme-aware fallbacks */
.spotlight-size-chart-trigger--button {
  padding: 0.5em 1em;
  border: 0;
  border-radius: var(--spotlight-sg-btn-radius, 5px);
  text-decoration: none;
  opacity: 1;
  color: var(--color-button-text, var(--color-foreground, #fafafa));
  background: var(--color-button, var(--color-foreground, #121315));
}

.spotlight-size-chart-trigger--button .spotlight-size-chart-trigger__label {
  color: inherit;
}

.spotlight-size-chart-trigger--button .spotlight-size-chart-trigger__icon:not([class*="--c-"]) {
  color: inherit;
}

/* Legacy saved styles (underline / outline / filled) */
.spotlight-size-chart-trigger--button.spotlight-size-chart-trigger--legacy-outline {
  padding: 0.45em 0.9em;
  background: transparent;
  color: var(--color-foreground, currentColor);
  border: 1px solid currentColor;
}

.spotlight-size-chart-trigger--button.spotlight-size-chart-trigger--legacy-filled {
  color: #fff;
  background: #121315;
}

.spotlight-size-chart-trigger--button.spotlight-size-chart-trigger--legacy-filled
  .spotlight-size-chart-trigger__label {
  color: #fff;
}

.spotlight-size-chart-trigger--button.spotlight-size-chart-trigger--legacy-filled
  .spotlight-size-chart-trigger__icon:not([class*="--c-"]) {
  color: #fff;
}

/* Custom colors from Theme Editor (color_source = custom) */
.spotlight-size-chart-trigger--colors-custom.spotlight-size-chart-trigger--link {
  color: var(--spotlight-sg-btn-color, var(--color-link, currentColor));
  background: none;
  opacity: 1;
}

.spotlight-size-chart-trigger--colors-custom.spotlight-size-chart-trigger--button {
  color: var(--spotlight-sg-btn-color, var(--color-button-text, #fafafa));
  background: var(--spotlight-sg-btn-bg, #121315);
}

.spotlight-size-chart-trigger--colors-custom.spotlight-size-chart-trigger--button
  .spotlight-size-chart-trigger__label {
  color: inherit;
}

.spotlight-size-chart-trigger--colors-custom.spotlight-size-chart-trigger--button
  .spotlight-size-chart-trigger__icon:not([class*="--c-"]) {
  color: inherit;
}

.spotlight-size-chart-trigger--colors-custom.spotlight-size-chart-trigger--button.spotlight-size-chart-trigger--legacy-outline {
  background: transparent;
  color: var(--spotlight-sg-btn-color, currentColor);
  border-color: var(--spotlight-sg-btn-border, currentColor);
}

.spotlight-size-chart-trigger--colors-custom.spotlight-size-chart-trigger--button.spotlight-size-chart-trigger--legacy-filled {
  background: var(--spotlight-sg-btn-bg, #121315);
  color: var(--spotlight-sg-btn-color, #fff);
}

.spotlight-size-chart-trigger:hover,
.spotlight-size-chart-trigger:focus-visible {
  opacity: 1;
}

.spotlight-size-chart-trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Overlay + shell */
.spotlight-size-chart-overlay.is-sizemap-admin-preview .spotlight-sg-close {
  display: none !important;
  pointer-events: none;
}

.spotlight-size-chart-overlay {
  --spotlight-sg-fs-header-title: 1;
  --spotlight-sg-fs-header-category: 1;
  --spotlight-sg-fs-dial-size: 1;
  --spotlight-sg-fs-table-heading: 1;
  --spotlight-sg-fs-table-row-name: 1;
  --spotlight-sg-fs-table-row-value: 1;
  --spotlight-sg-fs-pair-hint: 1;
  --spotlight-sg-fs-pair-title: 1;
  --spotlight-sg-fs-pair-value-name: 1;
  --spotlight-sg-fs-pair-value-amount: 1;
  --spotlight-sg-fs-visual-measure-title: 1;
  --spotlight-sg-fs-visual-measure-value: 1;
  --spotlight-sg-fs-footer-unit: 1;
  --spotlight-sg-fs-footer-actions: 1;
  --spotlight-sg-fs-compare-title: 1;
  --spotlight-sg-fs-compare-table-header: 1;
  --spotlight-sg-fs-compare-table-cell: 1;
  --spotlight-sg-fs-howto-title: 1;
  --spotlight-sg-fs-howto-block-title: 1;
  --spotlight-sg-fs-howto-block-body: 1;
  --spotlight-sg-fs-detail-title: 1;
  --spotlight-sg-fs-detail-value: 1;
  --spotlight-sg-fs-detail-body: 1;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #fff;
  box-sizing: border-box;
  padding: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 200ms ease;
}

.spotlight-size-chart-overlay.is-open {
  opacity: 1;
}

.spotlight-size-chart-overlay.is-closing {
  opacity: 0;
  pointer-events: none;
}

/* In-app webviews: match painted viewport (may be inset from layout viewport). */
.spotlight-size-chart-overlay.is-visual-viewport-fit {
  inset: auto;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--spotlight-sg-visual-viewport-height);
  max-height: var(--spotlight-sg-visual-viewport-height);
  top: var(--spotlight-sg-visual-viewport-offset-top);
}

.spotlight-size-chart-overlay.is-visual-viewport-fit .spotlight-size-chart-modal,
.spotlight-size-chart-overlay.is-storefront-viewport-fit .spotlight-size-chart-modal {
  height: 100%;
  max-height: 100%;
}

/* Mobile storefront (Chrome/Safari): explicit painted height; avoids body fixed + inset gaps. */
.spotlight-size-chart-overlay.is-storefront-viewport-fit {
  inset: auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  width: 100%;
  height: var(--spotlight-sg-storefront-viewport-height);
  max-height: var(--spotlight-sg-storefront-viewport-height);
}

.spotlight-size-chart-modal {
  /* Measurement list: shrink-wrap until ~2.5 rows, then scroll (keeps room for mannequin). */
  --spotlight-sg-measure-summary-row-size: 3.25rem;
  --spotlight-sg-measure-list-max-height: calc(
    var(--spotlight-sg-measure-summary-row-size) * 2.5
  );
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: #faf9f7;
  color: #121315;
  overflow: hidden;
  font-family: inherit;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.spotlight-size-chart-modal.is-open {
  opacity: 1;
  transform: translateY(0);
}

.spotlight-size-chart-loading,
.spotlight-size-chart-empty {
  margin: auto;
  padding: 48px 16px;
  text-align: center;
  font-size: 0.875rem;
  color: #646a73;
}

.spotlight-size-chart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 320px;
}

.spotlight-size-chart-empty strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #121315;
}

.spotlight-size-chart-empty span {
  display: block;
  line-height: 1.5;
}

/* Header */
.spotlight-sg-header {
  flex-shrink: 0;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 2px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto;
  gap: 0 12px;
  align-items: center;
}

.spotlight-sg-header__copy {
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}

.spotlight-sg-header__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.spotlight-sg-header__divider {
  width: 1px;
  height: 20px;
  flex-shrink: 0;
  background: rgba(18, 19, 21, 0.14);
  border-radius: 1px;
}

.spotlight-sg-segment--header {
  margin: 0;
}

.spotlight-sg-title {
  margin: 0;
  font-size: calc(1.375rem * var(--spotlight-sg-fs-header-title, 1));
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  flex-shrink: 0;
}

.spotlight-sg-subtitle {
  margin: 4px 0 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #6b7280;
}

.spotlight-sg-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #121315;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.spotlight-sg-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.spotlight-sg-close:focus-visible {
  outline: 2px solid #121315;
  outline-offset: 2px;
}

/* Segmented controls */
.spotlight-sg-segment {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #e8e8ed;
  gap: 2px;
  flex-shrink: 0;
}

.spotlight-sg-segment--compact {
  padding: 2px;
}

.spotlight-sg-segment--compact .spotlight-sg-segment__btn {
  padding: 5px 10px;
  min-width: 32px;
  min-height: 28px;
}

.spotlight-sg-segment__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  min-width: 44px;
  min-height: 36px;
}

.spotlight-sg-segment__btn.is-active {
  background: #121315;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.spotlight-sg-segment__btn:focus-visible {
  outline: 2px solid #121315;
  outline-offset: 2px;
}

/* Size dial */
.spotlight-sg-size-dial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 8px 16px 12px;
  flex-shrink: 0;
}

.spotlight-sg-size-dial__nav {
  display: none;
}

.spotlight-sg-size-dial__track {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0;
}

.spotlight-sg-size-dial__track::-webkit-scrollbar {
  display: none;
}

.spotlight-sg-size-dial__size {
  appearance: none;
  border: 0;
  background: #ebeae8;
  color: #6b7280;
  font-size: calc(0.8125rem * var(--spotlight-sg-fs-dial-size, 1));
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  scroll-snap-align: center;
  white-space: nowrap;
  min-height: 36px;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.spotlight-sg-size-dial__size.is-adjacent {
  color: #6b7280;
}

.spotlight-sg-size-dial__size.is-active {
  background: #121315;
  color: #fff;
  font-weight: 600;
  font-size: calc(0.8125rem * var(--spotlight-sg-fs-dial-size, 1));
  padding: 8px 14px;
  min-height: 36px;
}

.spotlight-sg-size-dial__size:focus-visible {
  outline: 2px solid #121315;
  outline-offset: 2px;
}

/* Pair-table size + measurements (shared center divider) */
.spotlight-sg-pair-ui {
  position: relative;
  flex-shrink: 0;
  margin: 4px 16px 8px;
  min-height: 0;
}

.spotlight-sg-pair-ui::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-0.5px);
  background: rgba(18, 19, 21, 0.1);
  pointer-events: none;
  z-index: 1;
}

.spotlight-sg-pair-size__col:first-child,
.spotlight-sg-pair-measure__col:first-child {
  padding-right: 14px;
}

.spotlight-sg-pair-size__col:last-child,
.spotlight-sg-pair-measure__col:last-child {
  padding-left: 14px;
}

.spotlight-sg-pair-size {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 6px;
  flex-shrink: 0;
  min-height: 0;
}

.spotlight-sg-pair-size__col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spotlight-sg-pair-size__hint {
  margin: 0;
  font-size: calc(0.75rem * var(--spotlight-sg-fs-pair-hint, 1));
  font-weight: 500;
  line-height: 1.25;
  color: #4b5563;
  letter-spacing: -0.01em;
}

.spotlight-sg-pair-size__track {
  flex-wrap: wrap;
  justify-content: flex-start;
  overflow-x: auto;
  max-height: 76px;
}

.spotlight-size-chart-modal--pair .spotlight-sg-size-dial {
  display: none !important;
}

.spotlight-size-chart-modal--pair.spotlight-size-chart-modal--pair-unified-size .spotlight-sg-size-dial {
  display: flex !important;
}

.spotlight-size-chart-modal--pair .spotlight-sg-pair-ui {
  flex: 0 0 auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.spotlight-size-chart-modal--pair .spotlight-sg-measure-summary.is-pair {
  display: none;
}

.spotlight-sg-pair-measure {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 0 1 auto;
  align-items: start;
  margin: 0;
}

.spotlight-sg-pair-measure__col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.spotlight-sg-pair-measure__title {
  margin: 0 0 4px;
  font-size: calc(0.6875rem * var(--spotlight-sg-fs-pair-title, 1));
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: rgba(18, 19, 21, 0.42);
  flex-shrink: 0;
}

.spotlight-sg-pair-measure__scroll {
  flex: 0 1 auto;
  max-height: var(--spotlight-sg-measure-list-max-height);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-top: 1px solid rgba(18, 19, 21, 0.08);
}

.spotlight-sg-pair-measure__scroll .spotlight-sg-measure-summary__name {
  font-size: calc(0.75rem * var(--spotlight-sg-fs-pair-value-name, 1));
}

.spotlight-sg-pair-measure__scroll .spotlight-sg-measure-summary__value {
  font-size: calc(0.875rem * var(--spotlight-sg-fs-pair-value-amount, 1));
}

.spotlight-sg-pair-measure__scroll .spotlight-sg-measure-summary__list {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  margin-top: 0;
  overflow: visible;
  max-height: none;
}

.spotlight-sg-mannequin-panel.is-pair-garment {
  flex: 1 1 auto;
  min-height: 0;
  background: #eceae6;
}

.spotlight-sg-pair-visual {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #eceae6;
}

.spotlight-sg-pair-visual__block {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.spotlight-sg-pair-visual__wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  border-radius: 0;
  background: #eceae6;
}

.spotlight-sg-pair-visual__wrap .spotlight-sg-stage__viewport {
  max-height: 100%;
}

.spotlight-sg-pair-visual__viewport--stack-top,
.spotlight-sg-pair-visual__viewport--stack-bottom {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

/* Top garment: pin to top — scale grows downward; viewport clips transparent bottom only. */
.spotlight-sg-pair-visual__viewport--stack-top {
  align-items: flex-start;
}

/* Bottom garment: pin to bottom — scale grows upward; viewport clips transparent top only. */
.spotlight-sg-pair-visual__viewport--stack-bottom {
  align-items: flex-end;
}

.spotlight-sg-pair-visual__viewport--stack-top .spotlight-sg-stage__inner,
.spotlight-sg-pair-visual__viewport--stack-bottom .spotlight-sg-stage__inner {
  width: 100%;
  max-height: 100%;
  flex-shrink: 0;
}

.spotlight-sg-compare-pair__title,
.spotlight-sg-howto-pair__title {
  margin: 16px 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #4b5563;
}

.spotlight-sg-compare-pair__title:first-child,
.spotlight-sg-howto-pair__title:first-child {
  margin-top: 0;
}

/* Main content */
.spotlight-sg-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.spotlight-sg-measure-summary {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  padding: 0 20px 8px;
}

.spotlight-sg-measure-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  flex-shrink: 0;
  min-height: 32px;
}

.spotlight-sg-measure-summary__title {
  margin: 0;
  font-size: calc(0.9375rem * var(--spotlight-sg-fs-table-heading, 1));
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #121315;
  min-width: 0;
  flex: 1 1 auto;
}

.spotlight-sg-measure-summary__unit {
  display: none;
}

.spotlight-sg-measure-summary__scroll {
  position: relative;
  flex: 0 1 auto;
  max-height: var(--spotlight-sg-measure-list-max-height);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-top: 1px solid rgba(18, 19, 21, 0.08);
  margin-top: 8px;
  scrollbar-width: thin;
}

.spotlight-sg-measure-summary__list {
  flex: 0 0 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
}

.spotlight-sg-scroll-hint {
  position: absolute;
  inset: auto 0 0 0;
  height: 52px;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 1;
  transition: opacity 180ms ease;
}

.spotlight-sg-scroll-hint.is-hidden {
  opacity: 0;
}

.spotlight-sg-scroll-hint__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.96) 18%, rgba(255, 255, 255, 0));
}

.spotlight-sg-scroll-hint--horizontal .spotlight-sg-scroll-hint__fade {
  background: linear-gradient(to left, rgba(255, 255, 255, 0.96) 22%, rgba(255, 255, 255, 0));
}

.spotlight-sg-scroll-hint__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(18, 19, 21, 0.88);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
}

.spotlight-sg-scroll-hint__chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.spotlight-sg-scroll-hint--horizontal {
  inset: 0 0 0 auto;
  width: 96px;
  height: auto;
  align-items: center;
  justify-content: flex-end;
}

.spotlight-sg-scroll-hint--horizontal .spotlight-sg-scroll-hint__label {
  margin: 0 10px 0 0;
  writing-mode: horizontal-tb;
}

.spotlight-sg-scroll-hint--horizontal .spotlight-sg-scroll-hint__chevron {
  transform: rotate(-45deg);
}

.spotlight-sg-measure-summary__row {
  appearance: none;
  width: 100%;
  min-height: var(--spotlight-sg-measure-summary-row-size, 3.25rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(18, 19, 21, 0.08);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  min-width: 0;
}

.spotlight-sg-measure-summary__row:focus-visible {
  outline: 2px solid #121315;
  outline-offset: 2px;
}

.spotlight-sg-main .spotlight-sg-measure-summary__name {
  font-size: calc(0.75rem * var(--spotlight-sg-fs-table-row-name, 1));
}

.spotlight-sg-measure-summary__name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.spotlight-sg-main .spotlight-sg-measure-summary__value {
  font-size: calc(0.875rem * var(--spotlight-sg-fs-table-row-value, 1));
}

.spotlight-sg-measure-summary__value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #121315;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.spotlight-sg-mannequin-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.spotlight-sg-footer {
  flex-shrink: 0;
  padding: 6px 20px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(18, 19, 21, 0.06);
  background: #faf9f7;
}

.spotlight-sg-footer__row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
  width: 100%;
}

.spotlight-sg-footer__cell {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight-sg-segment--footer {
  flex-shrink: 0;
  padding: 2px;
}

.spotlight-sg-segment--footer .spotlight-sg-segment__btn {
  font-size: calc(0.75rem * var(--spotlight-sg-fs-footer-unit, 1));
  font-weight: 600;
  line-height: 1;
  padding: 5px 11px;
  min-width: 0;
  min-height: 28px;
}

.spotlight-sg-footer__compare span,
.spotlight-sg-footer__howto span {
  font-size: calc(0.8125rem * var(--spotlight-sg-fs-footer-actions, 1));
}

.spotlight-sg-segment--category,
.spotlight-sg-segment--garment {
  display: inline-flex;
  justify-content: center;
  gap: 0;
  margin: 0;
  width: fit-content;
  max-width: 100%;
  flex-shrink: 0;
  padding: 2px;
  border-radius: 999px;
  background: rgba(18, 19, 21, 0.05);
}

.spotlight-sg-header__title-row .spotlight-sg-segment--category {
  margin: 0;
}

.spotlight-sg-segment--category.is-static {
  padding: 0;
  background: transparent;
}

.spotlight-sg-segment__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: calc(0.6875rem * var(--spotlight-sg-fs-header-category, 1));
  font-weight: 600;
  line-height: 1;
  padding: 4px 10px;
  min-height: 26px;
  border-radius: 999px;
  background: rgba(18, 19, 21, 0.06);
  color: #4b5563;
  user-select: none;
  pointer-events: none;
}

.spotlight-sg-segment--garment:not([hidden]) {
  margin: 8px 0 0;
  align-self: flex-start;
}

.spotlight-sg-segment--category .spotlight-sg-segment__btn,
.spotlight-sg-segment--category .spotlight-sg-segment__label,
.spotlight-sg-segment--garment .spotlight-sg-segment__btn,
.spotlight-sg-segment--header .spotlight-sg-segment__btn,
.spotlight-sg-segment--compact.spotlight-sg-segment--category .spotlight-sg-segment__btn,
.spotlight-sg-segment--compact.spotlight-sg-segment--garment .spotlight-sg-segment__btn {
  font-size: calc(0.6875rem * var(--spotlight-sg-fs-header-category, 1));
  font-weight: 600;
  padding: 4px 10px;
  min-width: 0;
  min-height: 26px;
}

.spotlight-sg-footer__divider {
  width: 1px;
  height: 14px;
  background: rgba(18, 19, 21, 0.08);
  flex-shrink: 0;
  margin: 0 4px;
}

.spotlight-sg-footer__compare,
.spotlight-sg-footer__howto {
  appearance: none;
  border: 0;
  background: transparent;
  color: #121315;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0;
  text-align: center;
}

.spotlight-sg-footer__compare span,
.spotlight-sg-footer__howto span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-sg-footer__compare svg,
.spotlight-sg-footer__howto svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #6b7280;
}

.spotlight-sg-footer__chevron {
  color: #9ca3af;
  font-size: 1.125rem;
  line-height: 1;
}

.spotlight-sg-footer__compare:focus-visible,
.spotlight-sg-footer__howto:focus-visible {
  outline: 2px solid #121315;
  outline-offset: 2px;
}

.spotlight-sg-howto-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: #6b7280;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0 0 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.spotlight-sg-howto-back:focus-visible {
  outline: 2px solid #121315;
  outline-offset: 2px;
}

.spotlight-sg-howto-crop {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #eceae6;
  margin: 10px 0 0;
  min-height: 160px;
  max-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight-sg-howto-crop__svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 160px;
  max-height: 240px;
}

.spotlight-sg-howto-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.spotlight-sg-howto-card {
  padding: 14px 14px 16px;
  border: 1px solid rgba(18, 19, 21, 0.08);
  border-radius: 16px;
  background: #fff;
}

.spotlight-sg-howto-card__title {
  margin: 0;
  font-size: calc(0.9375rem * var(--spotlight-sg-fs-howto-block-title, 1));
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #121315;
}

.spotlight-sg-howto-card .spotlight-sg-howto-crop {
  margin-top: 12px;
}

.spotlight-sg-howto-card .spotlight-sg-detail-text {
  margin-top: 10px;
}

.spotlight-sg-howto-list__item {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(18, 19, 21, 0.08);
  background: transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #121315;
  text-align: left;
  cursor: pointer;
}

.spotlight-sg-howto-list__item:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Visual guide */
.spotlight-sg-active-measurement {
  text-align: center;
  padding: 0 16px 8px;
  flex-shrink: 0;
}

.spotlight-sg-active-measurement__name {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
}

.spotlight-sg-active-measurement__value {
  margin: 2px 0 0;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.spotlight-sg-mannequin-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  overflow: visible;
  position: relative;
}

.spotlight-sg-visual-loading {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(250, 249, 247, 0.72);
  pointer-events: none;
}

.spotlight-sg-mannequin-wrap.is-visual-loading .spotlight-sg-visual-loading {
  display: flex;
}

.spotlight-sg-mannequin-wrap.is-visual-loading .mapper-preview-overlay,
.spotlight-sg-mannequin-wrap.is-visual-loading .spotlight-sg-stage__labels {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

.spotlight-sg-mannequin-wrap.is-visual-loading .mapper-preview-image {
  opacity: 0.28;
}

.spotlight-sg-visual-loading__spinner {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(18, 19, 21, 0.12);
  border-top-color: #121315;
  border-radius: 50%;
  animation: spotlight-sg-visual-spin 0.7s linear infinite;
}

@keyframes spotlight-sg-visual-spin {
  to {
    transform: rotate(360deg);
  }
}

.spotlight-sg-zoom-hint {
  position: absolute;
  left: 16px;
  bottom: 14px;
  transform: none;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(18, 19, 21, 0.82);
  color: #faf9f7;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(18, 19, 21, 0.18);
  opacity: 1;
  transition: opacity 280ms ease, transform 280ms ease;
}

.spotlight-sg-zoom-hint.is-hidden {
  opacity: 0;
  transform: translateY(6px);
}

/* One-shot value update flash — driven by a single class on a parent, not JS loops. */
@keyframes spotlight-sg-value-in {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.spotlight-sg-values-flash .spotlight-sg-measure-summary__title,
.spotlight-sg-values-flash .spotlight-sg-measure-summary__value,
.spotlight-sg-values-flash .mapper-label-pill__text--hint {
  animation: spotlight-sg-value-in 160ms ease;
}

.spotlight-sg-zoom-hint__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 30% 40%, #faf9f7 0 2px, transparent 2.5px),
    radial-gradient(circle at 70% 60%, #faf9f7 0 2px, transparent 2.5px),
    linear-gradient(#faf9f7, #faf9f7) center / 8px 1.5px no-repeat;
  border: 1.5px solid rgba(250, 249, 247, 0.9);
  border-radius: 4px;
  box-sizing: border-box;
}

.spotlight-sg-zoom-hint__text {
  white-space: nowrap;
}

.spotlight-sg-stage {
  position: relative;
  height: 100%;
  width: 100%;
  max-width: min(100%, 440px);
  margin: 0 auto;
  aspect-ratio: 2 / 3;
  overflow: visible;
}

.spotlight-sg-stage.spotlight-sg-mannequin-stage {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.spotlight-sg-mannequin-stage {
  background: #eceae6;
  border-radius: 0;
  overflow: hidden;
}

.spotlight-sg-mannequin-stage .spotlight-sg-stage__viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  box-sizing: border-box;
  overflow: hidden;
  pointer-events: auto;
  touch-action: none;
  cursor: default;
}

.spotlight-sg-stage__labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

.spotlight-sg-stage__labels .mapper-mapping--label {
  pointer-events: auto;
}

.spotlight-sg-stage__labels .spotlight-size-chart-label-leader {
  pointer-events: none;
}

.spotlight-sg-mannequin-stage .spotlight-sg-stage__viewport.is-zoomed {
  cursor: grab;
}

.spotlight-sg-mannequin-stage .spotlight-sg-stage__viewport.is-panning {
  cursor: grabbing;
}

.spotlight-sg-mannequin-stage .spotlight-sg-stage__inner.is-user-zooming {
  transition: none;
}

.spotlight-sg-mannequin-stage .spotlight-sg-stage__inner.is-layout-settling,
.spotlight-sg-stage__inner.is-layout-settling {
  transition: none !important;
}

.spotlight-sg-mannequin-stage .spotlight-sg-stage__inner {
  position: relative;
  width: min(100%, 420px);
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  aspect-ratio: 1024 / 1536;
  flex-shrink: 0;
}

.spotlight-sg-mannequin-stage .mapper-preview-image,
.spotlight-sg-mannequin-stage .mapper-preview-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.spotlight-sg-mannequin-stage .mapper-preview-image {
  object-fit: contain;
  object-position: center;
  max-width: 100%;
  max-height: 100%;
  z-index: 1;
  filter: brightness(0.72) contrast(1.08) saturate(0.85);
}

.spotlight-sg-mannequin-stage .mapper-preview-overlay {
  z-index: 2;
  overflow: visible;
  pointer-events: none;
  object-fit: contain;
  object-position: center;
}

.spotlight-sg-mannequin-stage .mapper-mapping {
  pointer-events: visiblePainted;
}

.spotlight-sg-stage__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  pointer-events: none;
  z-index: 0;
}

.spotlight-sg-stage__inner {
  position: absolute;
  inset: 0;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.35s ease;
}

.spotlight-sg-stage__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-sg-stage__inner {
    transition: none;
  }
}

.spotlight-sg-stage__inner img:not(.mapper-preview-image) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 42%;
  transition: object-position 0.35s ease;
  user-select: none;
  pointer-events: none;
  border-radius: 0;
}

@media (prefers-reduced-motion: reduce) {
  .spotlight-sg-stage__inner img {
    transition: none;
  }

  .spotlight-size-chart-overlay,
  .spotlight-size-chart-modal,
  .spotlight-sg-sheet-backdrop,
  .spotlight-sg-sheet,
  .spotlight-sg-size-dial__size,
  .spotlight-sg-zoom-hint,
  .spotlight-sg-scroll-hint {
    transition: none !important;
    animation: none !important;
  }

  .spotlight-size-chart-overlay,
  .spotlight-size-chart-modal,
  .spotlight-sg-sheet-backdrop,
  .spotlight-sg-sheet {
    opacity: 1;
    transform: none;
  }

  .spotlight-sg-values-flash .spotlight-sg-measure-summary__title,
  .spotlight-sg-values-flash .spotlight-sg-measure-summary__value,
  .spotlight-sg-values-flash .mapper-label-pill__text--hint {
    animation: none !important;
  }
}

.spotlight-sg-geometry-layer .spotlight-size-chart-mapping {
  pointer-events: visiblePainted;
  cursor: pointer;
}

.spotlight-size-chart-leaders {
  pointer-events: none;
}


.spotlight-sg-measurement-strip {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 8px 16px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spotlight-sg-measurement-strip__row {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.spotlight-sg-measurement-strip__row.is-active {
  background: #121315;
  color: #fff;
}

.spotlight-sg-measurement-strip__row:focus-visible {
  outline: 2px solid #121315;
  outline-offset: 2px;
}

.spotlight-sg-measurement-strip__label {
  font-size: 0.875rem;
  font-weight: 600;
}

.spotlight-sg-measurement-strip__value {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.85;
}

.spotlight-sg-help-banner {
  position: relative;
  z-index: 2;
  margin: 0 16px calc(12px + env(safe-area-inset-bottom, 0px));
  padding: 12px 14px;
  border: 0;
  width: calc(100% - 32px);
  border-radius: 12px;
  background: #ececf1;
  display: flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 0.8125rem;
  text-align: left;
  color: #4b5563;
  flex-shrink: 0;
  cursor: pointer;
}

.spotlight-sg-help-banner:hover {
  background: #e4e4ea;
}

.spotlight-sg-help-banner:focus-visible {
  outline: 2px solid #121315;
  outline-offset: 2px;
}

.spotlight-sg-help-banner svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.spotlight-sg-help-banner__chevron {
  margin-left: auto;
  color: #9ca3af;
  font-size: 1.125rem;
  line-height: 1;
}

/* Measurements mode list */
.spotlight-sg-measurements-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  -webkit-overflow-scrolling: touch;
}

.spotlight-sg-measurement-card {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: #fff;
  padding: 14px 14px 14px 12px;
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.spotlight-sg-measurement-card:focus-visible {
  outline: 2px solid #121315;
  outline-offset: 2px;
}

.spotlight-sg-measurement-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.spotlight-sg-measurement-card__icon svg {
  width: 20px;
  height: 20px;
}

.spotlight-sg-measurement-card__copy {
  min-width: 0;
}

.spotlight-sg-measurement-card__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #121315;
}

.spotlight-sg-measurement-card__desc {
  margin: 4px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-sg-measurement-card__value {
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}

.spotlight-sg-measurement-card__chevron {
  color: #9ca3af;
  font-size: 1.125rem;
  line-height: 1;
}

.spotlight-sg-compare-btn {
  appearance: none;
  margin: 8px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border: 0;
  background: transparent;
  color: #121315;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  align-self: center;
  min-height: 44px;
}

/* Secondary sheets */
.spotlight-sg-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.35);
  z-index: 2;
  opacity: 0;
  transition: opacity 180ms ease;
}

.spotlight-sg-sheet-backdrop.is-open {
  opacity: 1;
}

.spotlight-sg-sheet-backdrop.is-closing {
  opacity: 0;
  pointer-events: none;
}

.spotlight-sg-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  max-height: 85%;
  background: #fff;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 200ms ease;
}

.spotlight-sg-sheet.is-open {
  opacity: 1;
  transform: translateY(0);
}

.spotlight-sg-sheet.is-closing {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.spotlight-sg-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
  flex-shrink: 0;
}

.spotlight-sg-sheet__title {
  margin: 0;
  font-weight: 600;
}

.spotlight-sg-sheet[data-sg-sheet-kind="compare"] .spotlight-sg-sheet__title {
  font-size: calc(1rem * var(--spotlight-sg-fs-compare-title, 1));
}

.spotlight-sg-sheet[data-sg-sheet-kind="howto"] .spotlight-sg-sheet__title {
  font-size: calc(1rem * var(--spotlight-sg-fs-howto-title, 1));
}

.spotlight-sg-sheet[data-sg-sheet-kind="detail"] .spotlight-sg-sheet__title {
  font-size: calc(1rem * var(--spotlight-sg-fs-detail-title, 1));
}

.spotlight-sg-sheet__body {
  overflow: auto;
  padding: 0 16px 16px;
  -webkit-overflow-scrolling: touch;
}

.spotlight-sg-compare-table-shell {
  position: relative;
}

.spotlight-sg-compare-table-wrap {
  overflow: auto;
  border: 1px solid #ececec;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.spotlight-sg-compare-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: inherit;
  min-width: 320px;
}

.spotlight-sg-compare-table th {
  font-size: calc(0.8125rem * var(--spotlight-sg-fs-compare-table-header, 1));
}

.spotlight-sg-compare-table td {
  font-size: calc(0.8125rem * var(--spotlight-sg-fs-compare-table-cell, 1));
}

.spotlight-sg-compare-table th,
.spotlight-sg-compare-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
}

.spotlight-sg-compare-table th:not(.spotlight-sg-compare-table__measure-col),
.spotlight-sg-compare-table td {
  white-space: nowrap;
}

.spotlight-sg-compare-table th.spotlight-sg-compare-table__measure-col {
  width: 7.25rem;
  min-width: 7.25rem;
  max-width: 7.25rem;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  vertical-align: top;
  position: sticky;
  left: 0;
  z-index: 2;
  border-right: 1px solid #ececec;
  box-shadow: 4px 0 10px -6px rgba(15, 23, 42, 0.12);
}

.spotlight-sg-compare-table thead th {
  background: #fafafa;
  font-weight: 600;
  color: #6b7280;
}

.spotlight-sg-compare-table thead th.spotlight-sg-compare-table__measure-col {
  z-index: 3;
  background: #fafafa;
}

.spotlight-sg-compare-table tbody th.spotlight-sg-compare-table__measure-col {
  font-weight: 500;
  background: #fff;
}

.spotlight-sg-detail-value {
  margin: 4px 0 0;
  font-size: calc(1.5rem * var(--spotlight-sg-fs-detail-value, 1));
  font-weight: 600;
}

.spotlight-sg-sheet[data-sg-sheet-kind="howto"] .spotlight-sg-detail-text {
  font-size: calc(0.875rem * var(--spotlight-sg-fs-howto-block-body, 1));
}

.spotlight-sg-sheet[data-sg-sheet-kind="detail"] .spotlight-sg-detail-text {
  font-size: calc(0.875rem * var(--spotlight-sg-fs-detail-body, 1));
}

.spotlight-sg-detail-text {
  margin: 12px 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #4b5563;
}

.spotlight-sg-detail-text--intro {
  margin-top: 0;
}

.spotlight-sg-detail-text--description {
  font-weight: 500;
  color: #374151;
}

/* Mapper preview geometry — same language as Size Chart admin mapping panel */
.spotlight-sg-mannequin-stage {
  --spotlight-line-halo: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.26))
    drop-shadow(0 0 3px rgba(15, 23, 42, 0.14));
  --spotlight-leader-halo: drop-shadow(0 1px 1.5px rgba(15, 23, 42, 0.24))
    drop-shadow(0 0 2.5px rgba(15, 23, 42, 0.12));
  --spotlight-endpoint-halo: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.28));
}

.spotlight-sg-mannequin-panel.is-garment-category .spotlight-sg-mannequin-stage {
  --spotlight-line-halo: drop-shadow(0 1px 2.5px rgba(15, 23, 42, 0.32))
    drop-shadow(0 0 4px rgba(15, 23, 42, 0.18));
  --spotlight-leader-halo: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.3))
    drop-shadow(0 0 3px rgba(15, 23, 42, 0.16));
}

.spotlight-sg-mannequin-stage .mapper-measurement-line {
  stroke: #e8edf5;
  stroke-width: 4;
  stroke-dasharray: none;
  stroke-linecap: round;
  fill: none;
  pointer-events: none;
  filter: var(--spotlight-line-halo);
}

.spotlight-sg-mannequin-stage .mapper-circumference-arc {
  fill: none;
  stroke-linecap: round;
  pointer-events: none;
}

.spotlight-sg-mannequin-stage .mapper-circumference-arc--front {
  stroke: #f8fafc;
  stroke-width: 5.5;
  stroke-dasharray: none;
  filter: var(--spotlight-line-halo);
}

.spotlight-sg-mannequin-stage .mapper-circumference-arc--back,
.spotlight-sg-mannequin-stage .mapper-measurement-line--dotted {
  stroke: #e2e8f0;
  stroke-width: 4.5;
  stroke-dasharray: 12 11;
  opacity: 0.22;
  filter: drop-shadow(0 0 1px rgba(15, 23, 42, 0.15));
}

.spotlight-sg-mannequin-stage .mapper-measurement-endpoint {
  fill: #ffffff;
  stroke: rgba(15, 23, 42, 0.38);
  stroke-width: 1.5;
  filter: var(--spotlight-endpoint-halo);
  pointer-events: none;
}

.spotlight-sg-mannequin-stage .mapper-measurement-marker {
  fill: #ffffff;
  stroke: #1f2937;
  stroke-width: 1.5;
  pointer-events: none;
}

.spotlight-sg-mannequin-stage .mapper-label-pill__bg {
  fill: #ffffff;
  stroke: none;
  stroke-width: 0;
  filter: drop-shadow(0 4px 14px rgba(15, 23, 42, 0.16));
}

.spotlight-sg-mannequin-stage svg {
  font-family: inherit;
}

.spotlight-sg-mannequin-stage .mapper-label-pill__text {
  font-family: inherit;
  font-weight: 600;
  fill: #3d4658;
  user-select: none;
}

.spotlight-sg-mannequin-stage .mapper-mapping--ghost .mapper-label-pill__bg {
  fill: #ffffff;
  stroke: none;
  opacity: 0.92;
}

.spotlight-sg-mannequin-stage .mapper-mapping--ghost .mapper-label-pill__text {
  fill: #64748b;
}

.spotlight-sg-mannequin-stage .mapper-mapping--ghost .mapper-measurement-line:not(.mapper-measurement-line--dotted) {
  stroke: #94a3b8;
  opacity: 0.55;
}

.spotlight-sg-mannequin-stage .mapper-mapping--ghost .mapper-circumference-arc--front,
.spotlight-sg-mannequin-stage .mapper-circumference-arc--front.mapper-circumference-arc--ghost {
  stroke: #cbd5e1;
  opacity: 0.65;
  filter: var(--spotlight-line-halo);
}

.spotlight-sg-mannequin-stage .mapper-mapping--ghost .mapper-circumference-arc--back,
.spotlight-sg-mannequin-stage .mapper-mapping--ghost .mapper-measurement-line--dotted,
.spotlight-sg-mannequin-stage .mapper-circumference-arc--back.mapper-circumference-arc--ghost {
  stroke: #94a3b8;
  opacity: 0.16;
}

.spotlight-sg-mannequin-stage .mapper-mapping--ghost .mapper-measurement-marker,
.spotlight-sg-mannequin-stage .mapper-mapping--ghost .mapper-measurement-endpoint {
  stroke: #94a3b8;
  fill: #f8fafc;
  opacity: 0.55;
}

/* Active measurement — blue accent from Size Chart mapping panel */
.spotlight-sg-mannequin-stage .mapper-mapping:not(.mapper-mapping--ghost) .mapper-measurement-line {
  stroke: #2c6ecb;
  stroke-width: 4.5;
  filter: drop-shadow(0 0 2px rgba(44, 110, 203, 0.45));
}

.spotlight-sg-mannequin-stage .mapper-mapping:not(.mapper-mapping--ghost) .mapper-circumference-arc--front,
.spotlight-sg-mannequin-stage .mapper-circumference-arc--front:not(.mapper-circumference-arc--ghost) {
  stroke: #2c6ecb;
  filter: drop-shadow(0 0 2px rgba(44, 110, 203, 0.4));
}

.spotlight-sg-mannequin-stage .mapper-mapping:not(.mapper-mapping--ghost) .mapper-circumference-arc--back {
  stroke: #6ba3e8;
  opacity: 0.38;
}

.spotlight-sg-mannequin-stage .mapper-mapping:not(.mapper-mapping--ghost) .mapper-measurement-endpoint,
.spotlight-sg-mannequin-stage .mapper-mapping:not(.mapper-mapping--ghost) .mapper-measurement-marker {
  fill: #ffffff;
  stroke: #2c6ecb;
  stroke-width: 2;
  filter: drop-shadow(0 1px 3px rgba(44, 110, 203, 0.3));
}

.spotlight-sg-mannequin-stage .mapper-label-pill--gutter .mapper-label-pill__bg {
  fill: #ffffff;
  stroke: none;
  filter: drop-shadow(0 6px 18px rgba(15, 23, 42, 0.14));
}

.spotlight-sg-mannequin-stage .mapper-label-pill--gutter .mapper-label-pill__text--title {
  fill: #6b7280;
  font-weight: 500;
}

.spotlight-sg-mannequin-stage .mapper-label-pill--gutter .mapper-label-pill__text--hint {
  fill: #121315;
  font-weight: 700;
}

.spotlight-sg-mannequin-stage .mapper-mapping:not(.mapper-mapping--ghost):not(.mapper-mapping--label) .mapper-measurement-line:not(.mapper-measurement-line--dotted) {
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 3.75;
  filter: var(--spotlight-line-halo);
}

.spotlight-sg-mannequin-stage .mapper-mapping--ghost:not(.mapper-mapping--label) .mapper-measurement-line:not(.mapper-measurement-line--dotted) {
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 3;
  filter: var(--spotlight-line-halo);
}

.spotlight-sg-mannequin-stage .mapper-mapping:not(.mapper-mapping--ghost):not(.mapper-mapping--label) .mapper-circumference-arc--front {
  stroke: rgba(255, 255, 255, 0.9);
  filter: var(--spotlight-line-halo);
}

.spotlight-sg-mannequin-stage .mapper-mapping:not(.mapper-mapping--ghost):not(.mapper-mapping--label) .mapper-circumference-arc--back,
.spotlight-sg-mannequin-stage .mapper-mapping:not(.mapper-mapping--ghost):not(.mapper-mapping--label) .mapper-measurement-line--dotted {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 4.5;
  stroke-dasharray: 12 11;
  opacity: 0.22;
  filter: var(--spotlight-line-halo);
}

.spotlight-sg-mannequin-stage .mapper-mapping--ghost:not(.mapper-mapping--label) .mapper-circumference-arc--front {
  stroke: rgba(255, 255, 255, 0.62);
}

.spotlight-sg-mannequin-stage .mapper-mapping--ghost:not(.mapper-mapping--label) .mapper-circumference-arc--back,
.spotlight-sg-mannequin-stage .mapper-mapping--ghost:not(.mapper-mapping--label) .mapper-measurement-line--dotted {
  stroke: rgba(255, 255, 255, 0.62);
  stroke-width: 4.5;
  stroke-dasharray: 12 11;
  opacity: 0.22;
  filter: none;
}

.spotlight-sg-mannequin-stage .mapper-mapping:not(.mapper-mapping--label) .mapper-measurement-endpoint,
.spotlight-sg-mannequin-stage .mapper-mapping:not(.mapper-mapping--label) .mapper-measurement-marker {
  fill: #ffffff;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 2.5;
  filter: var(--spotlight-endpoint-halo);
}

.spotlight-sg-mannequin-stage .mapper-mapping:not(.mapper-mapping--ghost).mapper-mapping--label .mapper-label-pill__bg {
  stroke: none;
  filter: drop-shadow(0 6px 18px rgba(15, 23, 42, 0.14));
}

.spotlight-size-chart-label-leader {
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: none;
  pointer-events: none;
  filter: var(--spotlight-leader-halo);
}

.spotlight-size-chart-label-leader--active,
.spotlight-size-chart-label-leader--inactive {
  stroke: rgba(255, 255, 255, 0.95);
  opacity: 1;
}

/* Garment flats sit on a light panel; pair mode stacks two half-height stages — compensate stroke size. */
.spotlight-sg-mannequin-panel.is-garment-category .mapper-measurement-line {
  stroke-width: 5.25;
}

.spotlight-sg-mannequin-panel.is-garment-category .mapper-circumference-arc--front {
  stroke-width: 6.75;
}

.spotlight-sg-mannequin-panel.is-garment-category .mapper-circumference-arc--back {
  stroke-width: 5.5;
}

.spotlight-sg-mannequin-panel.is-garment-category .mapper-measurement-line--dotted {
  stroke-width: 5.5;
}

.spotlight-sg-mannequin-panel.is-garment-category
  .mapper-mapping:not(.mapper-mapping--ghost):not(.mapper-mapping--label)
  .mapper-measurement-line {
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 5.25;
}

.spotlight-sg-mannequin-panel.is-garment-category
  .mapper-mapping:not(.mapper-mapping--ghost):not(.mapper-mapping--label)
  .mapper-circumference-arc--front,
.spotlight-sg-mannequin-panel.is-garment-category
  .mapper-mapping:not(.mapper-mapping--ghost):not(.mapper-mapping--label)
  .mapper-circumference-arc--back {
  stroke: rgba(255, 255, 255, 0.9);
}

.spotlight-sg-mannequin-panel.is-garment-category
  .mapper-mapping:not(.mapper-mapping--ghost):not(.mapper-mapping--label)
  .mapper-measurement-line--dotted {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 5.5;
  stroke-dasharray: 12 11;
  opacity: 0.22;
  filter: var(--spotlight-line-halo);
}

.spotlight-sg-mannequin-panel.is-pair-garment .mapper-measurement-line,
.spotlight-sg-pair-visual .mapper-measurement-line {
  stroke-width: 7.5;
}

.spotlight-sg-mannequin-panel.is-pair-garment .mapper-circumference-arc--front,
.spotlight-sg-pair-visual .mapper-circumference-arc--front {
  stroke-width: 9;
}

.spotlight-sg-mannequin-panel.is-pair-garment .mapper-circumference-arc--back,
.spotlight-sg-pair-visual .mapper-circumference-arc--back {
  stroke-width: 7.25;
}

.spotlight-sg-mannequin-panel.is-pair-garment .mapper-measurement-line--dotted,
.spotlight-sg-pair-visual .mapper-measurement-line--dotted {
  stroke-width: 7.25;
}

.spotlight-sg-mannequin-panel.is-pair-garment
  .mapper-mapping:not(.mapper-mapping--ghost):not(.mapper-mapping--label)
  .mapper-measurement-line,
.spotlight-sg-pair-visual
  .mapper-mapping:not(.mapper-mapping--ghost):not(.mapper-mapping--label)
  .mapper-measurement-line {
  stroke-width: 7.5;
}

.spotlight-sg-mannequin-panel.is-pair-garment .spotlight-size-chart-label-leader,
.spotlight-sg-pair-visual .spotlight-size-chart-label-leader {
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 2.25;
}

.spotlight-sg-callout {
  position: absolute;
  box-sizing: border-box;
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fffef9;
  border: 1px solid rgba(18, 19, 21, 0.08);
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.08);
  min-width: 0;
  max-width: 100%;
}

.spotlight-sg-callout--left {
  text-align: right;
  padding-right: 4px;
}

.spotlight-sg-callout--right {
  text-align: left;
  padding-left: 4px;
}

.spotlight-sg-callout.is-active {
  background: #ffffff;
  border-color: rgba(18, 19, 21, 0.12);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.spotlight-sg-callout__name {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  color: #1f2937;
  word-break: normal;
  overflow-wrap: anywhere;
  white-space: normal;
  hyphens: none;
  max-width: 100%;
}

.spotlight-sg-callout__value {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
}

.spotlight-sg-callout:not(.is-active) .spotlight-sg-callout__name,
.spotlight-sg-callout:not(.is-active) .spotlight-sg-callout__value {
  opacity: 0.88;
}

@media (min-width: 768px) {
  .spotlight-sg-callout {
    padding: 7px 10px;
  }

  .spotlight-sg-callout__name {
    font-size: 15px;
  }

  .spotlight-sg-callout__value {
    font-size: 15px;
  }
}

/* Desktop / tablet */
@media (min-width: 768px) {
  .spotlight-size-chart-overlay {
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 15, 15, 0.42);
  }

  .spotlight-size-chart-modal {
    width: min(88vw, 480px);
    height: min(88vh, 900px);
    max-height: min(88vh, 900px);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(15, 15, 15, 0.2);
    background: #faf9f7;
    transform: translateY(8px) scale(0.985);
  }

  .spotlight-size-chart-modal.is-open {
    transform: translateY(0) scale(1);
  }

  .spotlight-sg-header {
    padding: 18px 20px 6px;
  }

  .spotlight-sg-size-dial {
    margin-left: 20px;
    margin-right: 20px;
  }

  .spotlight-sg-measure-summary {
    padding-left: 24px;
    padding-right: 24px;
  }

  .spotlight-sg-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .spotlight-sg-stage {
    max-width: min(100%, 440px);
  }


  .spotlight-sg-measurements-list {
    padding-left: 20px;
    padding-right: 20px;
  }

  .spotlight-sg-measurement-strip {
    padding-left: 20px;
    padding-right: 20px;
  }
}
