/* Only the experimental page is affected by these layout additions. */
.prototype-cart-shortcut { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #395a86; border-radius: 8px; background: #101722e8; color: #e4e9f1; }
.prototype-cart-shortcut[hidden] { display: none; }
.prototype-cart-shortcut:disabled { opacity: .55; cursor: wait; }
.prototype-view-plan { position: absolute; left: 12px; bottom: 84px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #395a86; border-radius: 8px; background: #101722e8; color: #e4e9f1; text-decoration: none; }
.prototype-view-plan[hidden] { display: none; }
.prototype-view-plan:focus-visible { outline: 2px solid #98beff; outline-offset: 2px; }
.prototype-browser-draft { top: 60px; bottom: auto; left: 8px; z-index: 7; --browser-draft-shell: #101722; background: var(--browser-draft-shell); }
.prototype-browser-draft:disabled { opacity: .55; cursor: wait; }
.prototype-cart-shortcut:focus-visible { outline: 2px solid #98beff; outline-offset: 2px; }
.prototype-cart-count { position: absolute; right: -16px; top: -16px; box-sizing: border-box; width: 28px; height: 28px; min-width: 28px; min-height: 28px; padding: 0; border-radius: 50%; display: grid; place-items: center; white-space: nowrap; background: #193b69; border: 1px solid #98beff; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; }
.prototype-cart-page { max-width: 960px; --prototype-cart-image-size: 128px; --prototype-cart-product-gap: 16px; }
.prototype-review-heading { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 16px; }
.prototype-review-heading-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.prototype-review-reference { flex: none; width: 160px; margin-left: auto; text-align: center; }
.prototype-review-reference img { display: block; width: 100%; height: 180px; object-fit: contain; border-radius: 8px; }
.prototype-review-reference > p { padding: 16px 8px; border: 1px solid #395a86; border-radius: 8px; }
.prototype-review-reference a:focus-visible { outline: 2px solid #98beff; outline-offset: 2px; }
@media (max-width: 480px) { .prototype-review-heading { gap: 12px; } .prototype-review-reference { width: 100px; } .prototype-review-reference img { height: 128px; } }
.prototype-build-count { display: inline-grid; place-items: center; flex-shrink: 0; box-sizing: border-box; width: 28px; height: 28px; border: 1px solid #98beff; border-radius: 50%; background: #193b69; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; white-space: nowrap; }
.prototype-cart-tabs { display:flex; gap:4px; overflow-x:auto; padding:4px 2px 8px; margin-bottom:16px; }
.prototype-cart-tabs[hidden], .prototype-cart-page [role="tabpanel"][hidden] { display:none; }
.prototype-cart-tabs button { flex:none; max-width:260px; min-height:44px; padding:10px 14px; border:1px solid #395a86; border-radius:8px; background:#101722; color:#e4e9f1; text-align:left; }
.prototype-cart-tabs button { display: inline-flex; align-items: center; gap: 8px; }
.prototype-cart-tabs .prototype-cart-reference-crop { float: none; flex: none; width: 36px; height: 36px; margin: 0; }
.prototype-cart-tab-label { min-width: 0; overflow-wrap: anywhere; }
.prototype-cart-tabs button[aria-selected="true"] { background:#193b69; border-color:#98beff; }
.prototype-cart-tabs button:focus-visible, .prototype-cart-page [role="tabpanel"]:focus-visible { outline:2px solid #98beff; outline-offset:2px; }
.prototype-cart-overview-group { padding:16px 0; border-top:1px solid #395a86; --prototype-cart-image-size: 96px; }
.prototype-cart-overview-group h3 { font-size:1.15rem; }
.prototype-cart-overview-group h4 { font-size:1rem; }
.prototype-cart-overview-group .prototype-cart-product img { flex:none; }
.prototype-cart-page #cartComponents > section { margin-top:0; }
#savedReferenceNotice:not([hidden]) { min-height: 360px; padding: 48px; display: grid; place-items: center; align-content: center; gap: 16px; }
#savedReferenceMessage { margin: 0; }
.prototype-cart-shopping-list { padding: 20px; border: 1px solid #395a86; border-radius: 12px; }
.prototype-cart-list-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }
.prototype-cart-list-heading h2 { margin-bottom: 8px; }
.prototype-cart-list-heading #cartTotal { margin: 0 0 8px; max-width: 100%; overflow-wrap: anywhere; }
.prototype-cart-view-build { margin-bottom: 12px; }
.prototype-cart-component { margin: 24px 0; padding: 20px; border: 1px solid #395a86; border-radius: 12px; }
.prototype-cart-component h2 { font-size: 1.3rem; }
.prototype-cart-component h3, .prototype-cart-component h4 { font-size: 1rem; margin-top: 20px; }
.prototype-cart-overview-group, .prototype-cart-component { display: flow-root; }
.prototype-cart-reference-crop { position: relative; float: left; width: var(--prototype-cart-image-size); height: var(--prototype-cart-image-size); margin: 0 var(--prototype-cart-product-gap) 16px 0; overflow: hidden; border-radius: 8px; background: #101722; }
.prototype-cart-reference-crop[hidden] { display: none; }
.prototype-cart-reference-crop-viewport { position: absolute; width: 100%; height: 100%; overflow: hidden; }
.prototype-cart-reference-crop img { position: absolute; width: 100%; height: 100%; max-width: none; max-height: none; }
.prototype-cart-product { display: flex; gap: var(--prototype-cart-product-gap); align-items: start; margin-bottom: 16px; }
.prototype-cart-product img { width: var(--prototype-cart-image-size); height: var(--prototype-cart-image-size); flex: none; object-fit: contain; background: white; border-radius: 8px; }
.prototype-cart-product > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.prototype-cart-item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.prototype-cart-item-actions .btn { min-height: 44px; }
.prototype-cart-item-price { white-space: nowrap; }
.prototype-cart-item-actions .prototype-cart-remove { display: inline-grid; place-items: center; min-width: 44px; padding: 8px; margin-inline-start: auto; }
.prototype-cart-remove:focus-visible { outline: 2px solid #98beff; outline-offset: 2px; }
.prototype-cart-item-actions .prototype-cart-edit { display: inline-grid; place-items: center; min-width: 44px; padding: 8px; margin-inline-start: auto; }
.prototype-cart-item-actions .prototype-cart-edit + .prototype-cart-remove { margin-inline-start: 0; }
.prototype-cart-edit:focus-visible { outline: 2px solid #98beff; outline-offset: 2px; }
.prototype-cart-item-actions .prototype-cart-purchased { margin-top: 0; }
.prototype-cart-purchased { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; margin-top: 8px; cursor: pointer; }
.prototype-cart-purchased input { width: 18px; height: 18px; accent-color: #2384ff; }
.prototype-cart-purchased-byo { margin-left: calc(var(--prototype-cart-image-size) + var(--prototype-cart-product-gap)); max-width: calc(100% - var(--prototype-cart-image-size) - var(--prototype-cart-product-gap)); }
.prototype-cart-purchased-byo input { flex: none; }
.prototype-cart-purchased-byo span { min-width: 0; overflow-wrap: anywhere; }
.prototype .prototype-product-photo {
  width: min(760px, calc(100vw - 24px)); max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px); padding: 16px; overflow-y: auto;
  border: 1px solid #395a86; border-radius: 16px; background: #151922; color: #e4e9f1;
}
.prototype-product-photo::backdrop { background: #000a; }
.prototype-product-photo-header {
  position: sticky; top: -16px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; background: #151922; z-index: 1;
}
.prototype .prototype-product-photo-header h2 { margin: 0; font-size: 1.25rem; }
.prototype .prototype-product-photo-header .plan-focus-close {
  position: static; flex: 0 0 44px; width: 44px; height: 44px;
}
.prototype #productPhotoTitle { margin: 12px 0; overflow-wrap: anywhere; }
.prototype-product-photo-frame {
  display: grid; place-items: center; min-height: 160px; background: #e7e9ed;
}
.prototype-product-photo-frame img {
  display: block; width: 100%; height: min(52dvh, 460px); object-fit: contain;
}
.prototype-product-photo-frame img[hidden] { display: none; }
.prototype #productPhotoStatus { margin: 8px 0; }
.prototype-product-photo-count { font-size: 13px; text-align: center; }
.prototype-product-photo-footer { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; padding: 12px; }
.prototype-product-photo-footer button { width: 44px; height: 44px; padding: 0; }
.prototype-product-photo-footer .prototype-product-photo-count { grid-column: 2; }
.prototype-product-photo-footer:not(:has(button:not([hidden]))) { grid-template-columns: minmax(0, 1fr); }
.prototype-product-photo-footer:not(:has(button:not([hidden]))) .prototype-product-photo-count { grid-column: 1; }
@media (max-width: 380px) {
  .prototype .prototype-product-photo { padding: 12px; }
  .prototype-product-photo-header { top: -12px; }
}

/* V4 cards: five rows; the approved narrow square is top-aligned, never cropped. */
.prototype #focusDrawer .costume-plan-carousel-shell.costume-plan-single-card-shell {
  --product-row-height: max(44px, 2.75rem);
  --product-info-row-height: max(24px, 1.5rem);
  --product-column-gap: 8px;
  display: grid; position: relative; grid-template-columns: minmax(0, 1fr); gap: 4px 0;
}
.prototype #focusDrawer .costume-plan-carousel.costume-plan-single-card-rail {
  container: product-rail / inline-size;
  grid-area: auto; grid-column: 1 / -1; grid-row: 1;
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  grid-template-columns: none; grid-template-rows: auto; align-items: start;
  gap: 12px; min-width: 0; overflow-x: auto; overflow-y: hidden;
  padding-inline: 0;
  scroll-snap-type: x mandatory; scroll-behavior: auto; overscroll-behavior-inline: contain;
}
.prototype #focusDrawer .costume-plan-carousel.costume-plan-single-card-rail[data-product-window="2"] {
  grid-auto-columns: calc((100% - 12px) / 2);
}
.prototype #focusDrawer .costume-plan-single-card-rail[data-product-window="2"] > .product-card-v4 { scroll-snap-align: start; }
/* CM087: orientation is resolved once by the binder from actual pane placement,
   not guessed independently from a viewport breakpoint. The article is the
   only vertical scroll owner; cards/rail/viewport remain normal-flow content. */
.prototype #focusDrawer .costume-plan-line[data-product-orientation="vertical"] {
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: auto;
  scroll-snap-type: none; overflow-anchor: none;
}
.prototype #focusDrawer .costume-plan-line[data-product-orientation="vertical"] .costume-plan-single-card-shell {
  display: grid; min-width: 0; overflow: visible;
}
.prototype #focusDrawer .costume-plan-line[data-product-orientation="vertical"] .costume-plan-card-viewport {
  margin-inline: 0; overflow: visible; pointer-events: auto;
}
.prototype #focusDrawer .costume-plan-line[data-product-orientation="vertical"] .costume-plan-single-card-rail {
  display: grid; grid-auto-flow: row; grid-template-columns: minmax(0, 1fr);
  grid-auto-columns: auto; grid-auto-rows: auto; gap: 12px;
  width: 100%; overflow: visible; scroll-snap-type: none; overscroll-behavior: auto;
}
.prototype #focusDrawer .costume-plan-line[data-product-orientation="vertical"] .costume-plan-carousel-step {
  display: none;
}
.prototype #focusDrawer .costume-plan-line[data-product-orientation="vertical"] .product-card-v4 {
  width: 100%; scroll-snap-align: none;
}
.prototype #focusDrawer .costume-plan-line[data-product-orientation="vertical"] .costume-plan-rail-notice {
  margin-inline: 0;
}
.prototype #focusDrawer .costume-plan-card-viewport {
  grid-column: 1 / -1; grid-row: 2; position: relative; min-width: 0;
  display: block; margin-inline: 22px; pointer-events: none;
  overflow: visible; overflow-anchor: none;
}
.prototype #focusDrawer .costume-plan-card-viewport > .costume-plan-single-card-rail { pointer-events: auto; }
.prototype #focusDrawer .costume-plan-rail-information {
  grid-column: 1 / -1; grid-row: 1; position: sticky; top: 0; z-index: 3;
  min-width: 0; background: #151922; color: #e4e9f1;
}
.prototype #focusDrawer .costume-plan-rail-information .affiliate-disclosure-note { margin: 0; }
.prototype #focusDrawer .costume-plan-rail-notice { grid-column: 1 / -1; grid-row: 3; min-width: 0; overflow-wrap: anywhere; }
.prototype #focusDrawer .costume-plan-rail-notice > .affiliate-disclosure-note { margin: 0; }
.prototype #focusDrawer .costume-plan-single-card-shell > .costume-plan-rail-notice { margin-inline: 22px; min-width: 0; width: auto; }
.prototype #focusDrawer .costume-plan-single-card-shell > .costume-plan-rail-notice > .affiliate-disclosure-note { margin: 0; font-size: .75rem; line-height: 1.5; font-weight: 400; color: #969fac; opacity: 1; text-align: start; white-space: normal; overflow-wrap: anywhere; }
.prototype #focusDrawer .costume-plan-rail-notice:empty { display: none; }
.prototype #focusDrawer .costume-plan-rail-information:not(:has(> .costume-plan-card-information:not([hidden]) > :not([hidden]))) { display: none; }
.prototype #focusDrawer .costume-plan-single-card-shell:not(:has(> .costume-plan-rail-information > .costume-plan-card-information:not([hidden]) > :not([hidden]))) > .costume-plan-card-viewport { grid-row: 1; }
.prototype #focusDrawer .costume-plan-single-card-shell:not(:has(> .costume-plan-rail-information > .costume-plan-card-information:not([hidden]) > :not([hidden]))) > .costume-plan-rail-notice { grid-row: 2; }
.prototype #focusDrawer .costume-plan-card-information[hidden],
.prototype #focusDrawer .costume-plan-rail-information .affiliate-disclosure-note[hidden] { display: none; }
.prototype #focusDrawer .costume-plan-single-card-shell > .prototype-products-overlay {
  position: relative; inset: auto; grid-column: 1 / -1; grid-row: 2; align-self: start;
}
.prototype #focusDrawer .costume-plan-single-card-shell:not(:has(> .costume-plan-rail-information > .costume-plan-card-information:not([hidden]) > :not([hidden]))) > .prototype-products-overlay { grid-row: 1; }
.prototype #focusDrawer .costume-plan-card-viewport > .costume-plan-carousel-step {
  grid-area: auto; display: grid; place-items: center; position: absolute; inset: auto;
  z-index: 4; transform: translate(-50%, -50%); pointer-events: auto;
  grid-row: 1; width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  padding: 0; border: 0; background: transparent; color: #e4e9f1; font-size: 24px; line-height: 1;
}
.prototype #focusDrawer .costume-plan-card-viewport > .costume-plan-carousel-step.is-previous { left: var(--product-previous-x, 0px); top: var(--product-previous-y, 50%); }
.prototype #focusDrawer .costume-plan-card-viewport > .costume-plan-carousel-step.is-next { left: var(--product-next-x, 100%); top: var(--product-next-y, 50%); }
.prototype #focusDrawer .costume-plan-carousel-step .costume-plan-arrow-visual {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: #10141b;
}
.prototype #focusDrawer .costume-plan-carousel-card.product-card-v4 {
  --product-stack-height: calc(3 * var(--product-row-height) + 2 * var(--product-info-row-height));
  --product-thumbnail-size: 112px;
  --product-card-height: calc(var(--product-stack-height) + 18px);
  display: block; box-sizing: border-box; width: 100%; flex: 0 0 100%; min-width: 0;
  height: var(--product-card-height, 198px); min-height: 0; align-self: start;
  padding: 0; border: 1px solid #395a86; border-radius: 8px;
  background: #151922; color: #e4e9f1; scroll-snap-align: center;
}
.prototype #focusDrawer .product-card-v4.is-selected { border-color: #98beff; box-shadow: inset 0 0 0 2px #98beff; background: #151922; }
.prototype #focusDrawer .product-card-v4 .costume-plan-card-stage {
  position: static; display: grid; box-sizing: border-box; width: 100%; height: 100%;
  grid-template-columns: var(--product-thumbnail-size, 112px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr); align-items: start; gap: var(--product-column-gap, 8px); padding: 8px 8px 8px 30px; min-width: 0;
}
.prototype #focusDrawer .product-card-v4 .costume-plan-card-media {
  grid-area: auto; grid-row: 1; grid-column: 1; align-self: start; position: relative;
  width: var(--product-thumbnail-size, 112px); height: var(--product-thumbnail-size, 112px); min-width: 0;
}
.prototype #focusDrawer .product-card-v4 .costume-plan-carousel-thumbnail {
  grid-area: auto; grid-row: 1; grid-column: 1; order: 0; align-self: start; justify-self: start;
  position: static; inset: auto; display: flex; justify-content: center; align-items: center;
  width: var(--product-thumbnail-size, 112px);
  height: var(--product-thumbnail-size, 112px); max-height: none; margin: 0;
  min-width: 44px; min-height: 44px; max-width: 100%;
  padding: 0; border: 0; border-radius: 4px; background: #151922;
}
.prototype #focusDrawer .product-card-v4 .costume-plan-carousel-thumbnail img {
  display: block; width: 100%; height: 100%; max-width: 100%; max-height: none;
  object-fit: contain; object-position: center; background: transparent;
}
.prototype #focusDrawer .product-card-v4 .prototype-image-unavailable {
  display: grid; place-items: center; width: 100%; min-height: 44px; padding: 4px;
  background: #151922; color: #b7c2d5; font: inherit; white-space: normal; text-decoration: none;
}
.prototype #focusDrawer .product-card-v4 .costume-plan-carousel-copy {
  grid-area: auto; grid-row: 1; grid-column: 2; order: 0; position: static; inset: auto;
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--product-row-height, 44px) var(--product-info-row-height, 24px) var(--product-info-row-height, 24px) var(--product-row-height, 44px) var(--product-row-height, 44px);
  width: 100%; height: var(--product-stack-height, 180px); min-width: 0; min-height: 0; max-height: none;
  gap: 0; margin: 0; padding: 0; overflow: visible; align-self: start; justify-self: stretch; align-content: normal;
}
.prototype #focusDrawer .product-card-v4 .costume-plan-product-link {
  grid-area: auto; grid-row: 1; grid-column: 1; order: 0; align-self: stretch; justify-self: stretch; position: static; inset: auto;
  max-height: none;
  display: block; width: 100%; min-width: 0; min-height: 44px; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset;
  font-size: 1rem; line-height: var(--product-row-height, 44px); font-weight: 700; color: #b8d6ff; text-decoration: underline;
}
.prototype #focusDrawer .product-card-v4 .costume-plan-provenance {
  grid-area: auto; grid-row: 2; grid-column: 1; order: 0; align-self: stretch; justify-self: stretch; position: static; inset: auto;
  width: 100%; min-height: 0; max-height: none;
  display: flex; align-items: center; gap: 4px; min-width: 0; margin: 0;
  font-size: 13px; font-weight: 400; color: #b7c2d5; white-space: nowrap;
}
.prototype #focusDrawer .product-card-v4 .costume-plan-merchant-name {
  min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.prototype #focusDrawer .product-card-v4 .affiliate-merchant-badge {
  display: inline-flex; flex: 0 0 auto; margin: 0; font: inherit; color: inherit;
}
.prototype #focusDrawer .product-card-v4 .costume-plan-affiliate-status {
  grid-area: auto; grid-row: 3; grid-column: 1; order: 0; align-self: stretch; justify-self: stretch; position: static; inset: auto;
  width: 100%; min-height: 0; max-height: none; margin: 0;
  display: flex; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap;
  font-size: 13px; color: #b7c2d5;
}
.prototype #focusDrawer .product-card-v4 .costume-plan-affiliate-status > span {
  min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.prototype #focusDrawer .product-card-v4 .costume-plan-provenance,
.prototype #focusDrawer .product-card-v4 .costume-plan-affiliate-status { box-sizing: border-box; padding-inline-end: 22px; }
.prototype #focusDrawer .product-card-v4 .costume-plan-offers-row {
  grid-area: auto; grid-row: 4; grid-column: 1; order: 0; align-self: stretch; justify-self: stretch;
  position: static; inset: auto; min-width: 0; min-height: 44px; max-height: none; margin: 0;
  display: flex; align-items: center; box-sizing: border-box; padding-inline-end: 22px;
}
.prototype #focusDrawer .product-card-v4 .costume-plan-carousel-footer {
  grid-area: auto; grid-row: 5; grid-column: 1; order: 0; position: static; inset: auto; align-self: stretch; justify-self: stretch;
  display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-rows: minmax(0, 1fr); align-items: center;
  width: 100%;
  min-width: 0; min-height: 44px; max-height: none; gap: 8px; margin: 0; padding: 0; overflow: visible;
}
.prototype #focusDrawer .product-card-v4 .costume-plan-card-price-information { grid-area: auto; grid-row: 1; grid-column: 1; min-width: 0; margin: 0; }
.prototype #focusDrawer .product-card-v4 .costume-plan-price {
  min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.25; font-weight: 700; color: #e4e9f1;
}
.prototype #focusDrawer .product-card-v4 .costume-plan-card-offers {
  min-width: 44px; min-height: 44px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 8px 4px; border: 0; background: transparent;
  color: #b8d6ff; text-decoration: underline;
}
.prototype #focusDrawer .product-card-v4 .prototype-product-info-trigger {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0;
  display: grid; place-items: center; margin: 0; border: 1px solid #395a86; border-radius: 6px;
  color: #e4e9f1; background: #10141bf2; font-size: 20px;
}
.prototype-product-info-popover { max-height: calc(100dvh - 24px); overflow-y: auto; overflow-wrap: anywhere; }
.prototype-search-popover.prototype-product-info-popover { font-size: 1rem; }
.prototype-search-popover.prototype-product-info-popover > strong { padding-right: 52px; min-height: 44px; }
.prototype-product-info-popover > .prototype-product-info-close { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
.prototype #focusDrawer .product-card-v4 .costume-plan-card-choice {
  grid-area: auto; grid-row: 1; grid-column: 2; align-self: end; justify-self: end; margin: 0;
  flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px;
  min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; font-size: 0; color: #fff;
}
.prototype #focusDrawer .product-card-v4 .costume-plan-card-choice::before {
  content: ''; width: 24px; height: 24px; box-sizing: border-box;
  border: 2px solid #294766; border-radius: 5px; background: #fff; box-shadow: 0 0 0 1px #fff;
}
.prototype #focusDrawer .product-card-v4 .costume-plan-card-choice[aria-pressed="true"]::before {
  content: '✓'; background: #294766; color: #fff; font-size: 20px; line-height: 20px; font-weight: 700; text-align: center;
}
.prototype #focusDrawer .product-card-v4 a:focus-visible,
.prototype #focusDrawer .product-card-v4 button:focus-visible,
.prototype #focusDrawer .costume-plan-card-viewport > .costume-plan-carousel-step:focus-visible {
  outline: 2px solid #98beff; outline-offset: -2px;
}
@media (max-width: 700px) {
  /* Reuse the existing .7rem article padding, then reserve the real outside
     half of each arrow. The inset focus ring stays within its 44px target. */
  .prototype #focusDrawer .costume-plan-single-card-shell { width: calc(100% + 1.4rem); margin-inline: -.7rem; }
  .prototype #focusDrawer .costume-plan-card-viewport .costume-plan-arrow-visual { background: rgba(16, 20, 27, .90); }
}
/* Container is the scroller itself, after each real 22px outside half-target. */
@container product-rail (min-width: 340px) {
  .prototype #focusDrawer .costume-plan-single-card-rail:not([data-product-window="2"]) > .costume-plan-carousel-card.product-card-v4 { --product-thumbnail-size: var(--product-stack-height); }
}
@container product-rail (min-width: 398px) {
  .prototype #focusDrawer .costume-plan-single-card-rail:not([data-product-window="2"]) > .costume-plan-carousel-card.product-card-v4 {
    --product-info-row-height: max(44px, 2.75rem);
    --product-column-gap: 12px;
  }
}
@container product-rail (min-width: 692px) {
  .prototype #focusDrawer .costume-plan-single-card-rail[data-product-window="2"] > .costume-plan-carousel-card.product-card-v4 { --product-thumbnail-size: var(--product-stack-height); }
}
@container product-rail (min-width: 808px) {
  .prototype #focusDrawer .costume-plan-single-card-rail[data-product-window="2"] > .costume-plan-carousel-card.product-card-v4 {
    --product-info-row-height: max(44px, 2.75rem); --product-column-gap: 12px;
  }
}
.prototype-page { background: #0e1016; color: #e4e9f1; }
.prototype { color: #e4e9f1; }
.prototype .app-header { position: relative; padding-right: 52px; }
.prototype #referenceControls { max-width: 1200px; }
.prototype .reference-search .input-group { display: flex; flex-wrap: nowrap; gap: 0; }
.prototype .reference-search .input-group > .form-control { width: 1%; min-width: 0; border-radius: .375rem 0 0 .375rem !important; }
.prototype .reference-search .input-group > .btn { width: auto; flex: 0 0 auto; border-radius: 0 .375rem .375rem 0 !important; }
.prototype-navigation { position: absolute; top: 0; right: 0; z-index: 10; }
.prototype-navigation summary { display: grid; place-items: center; width: 44px; height: 44px; list-style: none; cursor: pointer; border: 1px solid #395a86; border-radius: 999px; background: #10141b; }
.prototype-navigation summary::-webkit-details-marker { display: none; }
.prototype-navigation summary:focus-visible { outline: 2px solid #98beff; outline-offset: 3px; }
.prototype-navigation[open] summary { background: #173563; }
.prototype-navigation nav { position: absolute; top: 52px; right: 0; width: min(260px, calc(100vw - 28px)); display: grid; gap: 10px; padding: 14px; border: 1px solid #395a86; border-radius: 12px; background: #151922; box-shadow: 0 8px 24px #0008; }
.prototype-navigation nav .btn { text-align: left; }
.prototype-workspace { position: relative; border: 0; border-radius: 0; background: transparent; }
.prototype #workspace { scroll-margin-top: var(--sticky-header-height, 0px); }
.prototype-workspace[hidden] { display: none; }
.prototype-look-heading { position: absolute; top: 0; left: 0; width: var(--component-rail-width, 30%); padding: 10px; z-index: 2; pointer-events: none; background: #10141b; border: 1px solid #395a86; }
.prototype-workspace[aria-busy="true"] .prototype-look-heading h2 { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.prototype-look-heading h2 { display: block; font-size: 1.1rem; margin: 0; padding: 0; border-radius: 0; background: transparent; overflow-wrap: anywhere; }
.prototype #workspace[aria-busy="true"] #costume,
.prototype .app-header.has-subject-heading #costume { display: flex; align-items: center; justify-content: center; gap: 10px; }
.prototype-look-heading p { color: #b7c2d5; max-width: 70ch; font-size: .75rem; margin: 4px 0 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
.prototype-stage { position: relative; width: 100%; max-width: none; height: auto; margin: 0; background: transparent; border: 0; border-radius: 0; cursor: auto; }
.prototype #referenceViewer #prototypeScan { z-index: 4; inset: 0; }
.prototype-component-placeholder { min-height: 44px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #293447; color: #98beff; }
.prototype-placeholder-bar { height: 8px; width: 65%; border-radius: 4px; background: #293447; }
@keyframes prototype-grow-from-image-left { from { clip-path: inset(0 0 0 100%); opacity: 0; } to { clip-path: inset(0); opacity: 1; } }
@keyframes prototype-grow-from-image-top { from { clip-path: inset(0 0 100% 0); opacity: 0; } to { clip-path: inset(0); opacity: 1; } }
@keyframes prototype-grow-from-image-right { from { clip-path: inset(0 100% 0 0); opacity: 0; } to { clip-path: inset(0); opacity: 1; } }
.prototype .is-entering-analysis .prototype-look-heading,
.prototype .is-entering-analysis #components { animation: prototype-grow-from-image-left 480ms 120ms both; }
.prototype .is-entering-analysis #focusDrawer { animation: prototype-grow-from-image-top 480ms 220ms both; }
.prototype .is-entering-analysis #prototypeAnalysisProgress { animation: prototype-grow-from-image-top 280ms 320ms both; }
@media (min-width: 1100px) { .prototype .is-entering-analysis #focusDrawer { animation-name: prototype-grow-from-image-right; } }
@media (max-width: 700px) {
  .prototype .is-entering-analysis .prototype-look-heading,
  .prototype .is-entering-analysis #components { animation-name: prototype-grow-from-image-top; }
}
@media (prefers-reduced-motion: reduce) {
  .prototype .is-entering-analysis .prototype-look-heading,
  .prototype .is-entering-analysis #components,
  .prototype .is-entering-analysis #focusDrawer,
  .prototype .is-entering-analysis #prototypeAnalysisProgress { animation: none; }
}
.prototype #prototypeAnalysisProgress { z-index: 5; top: 50%; width: auto; grid-template-columns: 1fr; justify-items: center; gap: 16px; padding: 0; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; background: transparent; }
.prototype-loading-magnifier { position: relative; width: 10rem; height: 10rem; color: #98beff; }
.prototype #prototypeAnalysisProgress .analysis-mask { width: 7rem; height: 6.4rem; }
.prototype #prototypeAnalysisProgress .prototype-loading-magnifier .analysis-mask { position: absolute; left: 1rem; top: 1.3rem; }
.prototype-loading-handle { position: absolute; inset: 0; width: 100%; height: 100%; }
.prototype-identification-spinner { width: 2rem; height: 2rem; color: #98beff; }
.prototype-loading-magnifier .prototype-identification-spinner { position: absolute; top: 0; left: 0; width: 9rem; height: 9rem; color: inherit; }
.prototype #prototypeAnalysisPercent { color: #b7c2d5; font-size: .78rem; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .prototype #prototypeAnalysisProgress .analysis-mask-fill { transition: none; } }
@media (prefers-reduced-motion: reduce) { .prototype .scan-line, .prototype .spinner-border { animation: none; } .prototype .scan-line { top: 50%; } }
.prototype #components { position: absolute; top: var(--component-header-height, 48px); bottom: 0; left: 0; width: var(--component-rail-width, 30%); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; background: #10141b; border-left: 1px solid #395a86; border-right: 1px solid #395a86; scrollbar-width: thin; }
.prototype #components button { position: relative; width: 100%; min-height: 44px; max-width: none; border: 0; border-bottom: 1px solid #293447; border-radius: 0; text-align: left; padding: 8px 10px; background: transparent; color: #e4e9f1; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .85rem; }
.prototype #components button[aria-pressed="true"] { outline: none; box-shadow: inset 3px 0 #98beff; background: #173563; }
.prototype #components button:focus-visible { outline: 2px solid #98beff; outline-offset: -2px; }
.prototype-approach-icon { color: #b4c1d6; font-size: .8rem; flex-shrink: 0; }
.prototype-component-name { min-width: 0; flex: 1; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.prototype-reference-frame { position: relative; margin-left: 30%; width: 70%; display: flex; align-items: flex-start; justify-content: flex-end; background: var(--reference-background, #0b111b); }
.prototype #reference { display: block; max-height: min(76vh, 850px); max-width: 100%; width: auto; height: auto; border-radius: 0; clip-path: none; }
.prototype .is-analyzed .prototype-reference-frame { width: min(70%, 76vh, 850px); margin-left: auto; aspect-ratio: 1; overflow: hidden; display: block; background: var(--reference-background, #0b111b); touch-action: none; }
/* Paint one transparent foreground frame without changing viewer geometry. */
.prototype .is-analyzed #referenceViewer { isolation: isolate; }
.prototype .is-analyzed #referenceViewer::after { content: ''; position: absolute; inset: 0; z-index: 2; box-sizing: border-box; border: 1px solid #395a86; pointer-events: none; }
.prototype .is-analyzed #referenceViewer:focus-visible { outline: none; }
.prototype .is-analyzed #referenceViewer:focus-visible::after { border: 2px solid #98beff; }
.prototype .is-analyzed #reference { position: absolute; top: 0; left: 0; max-width: none; max-height: none; transform-origin: 0 0; transition: transform .22s ease; user-select: none; }
.prototype .is-entering-analysis #reference { transition: none; }
.prototype .is-entering-analysis .prototype-stage { isolation: isolate; overflow: visible; }
.prototype #workspace.is-entering-analysis .prototype-reference-frame { isolation: auto; }
.prototype-reference-entrance { position: absolute; z-index: 1; pointer-events: none; transform-origin: 0 0; }
.prototype .is-entering-analysis #componentRegion { z-index: 2; }
.prototype:has(#workspace.is-entering-analysis) .app-header.has-subject-heading { background: transparent; border-color: transparent; }
.prototype:has(#workspace.is-entering-analysis) .app-header.has-subject-heading .prototype-look-heading { opacity: 0; animation: none; }
.prototype .is-analyzed .prototype-reference-frame.is-panning #reference { transition: none; }
.prototype .is-analyzed #componentRegion { transition: left .22s ease, top .22s ease, width .22s ease, height .22s ease; }
.prototype .is-analyzed .is-panning #componentRegion { transition: none; }
.prototype .is-revealing-components #reference,
.prototype .is-revealing-components #componentRegion { transition-duration: .65s; }
.prototype-view-controls { position: absolute; bottom: 8px; right: 8px; z-index: 7; display: flex; flex-direction: column; gap: 4px; }
.prototype-reference-action { position: absolute; top: 8px; z-index: 7; display: grid; place-items: center; width: 44px; height: 44px; padding: 4px; color: #e4e9f1; background: #10141bf2; border: 1px solid #395a86; border-radius: 8px; }
.prototype-reanalyze-action { left: 8px; }
.prototype-replace-action { right: 8px; }
.prototype-reference-warning { top: 56px; right: 8px; }
#referenceWarningDetails > .reference-warning-emoji { display: inline-block; font-size: 1.25rem; line-height: 1.2; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.prototype-reference-controls-toggle { left: 8px; font-size: 26px; }
.prototype-reference-control-label { display: none; }
.reference-browse-actions { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; min-width: 0; }
.reference-browse-actions[hidden], .reference-browse-actions > [hidden] { display: none; }
.reference-browse-actions > button { min-height: 44px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.reference-browse-actions > [role="status"] { min-width: 0; overflow-wrap: anywhere; text-align: center; }
.reference-analysis-actions { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; min-width: 0; }
.reference-analysis-actions > button { min-height: 44px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.reference-candidate-stage > [hidden] { display: none; }
.reference-preview-status { margin: 0; text-align: center; overflow-wrap: anywhere; }
.reference-analysis-actions > [hidden] { display: none; }
.reference-analysis-copy { flex: 0 0 100%; margin: 0; max-width: 70ch; white-space: normal; overflow-wrap: anywhere; }
.reference-analysis-actions .reference-analysis-warning:not([hidden]) { display: flex; flex-basis: 100%; justify-content: center; align-items: flex-start; gap: 8px; text-align: center; max-width: none; }
.reference-analysis-warning > span { min-width: 0; max-width: 70ch; }
.reference-analysis-warning > .reference-warning-emoji { display: inline-block; flex: 0 0 auto; font-size: 1.25rem; line-height: 1.2; align-self: flex-start; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.reference-analysis-actions.has-preview-choice #identifyPiecesIcon { display: none; }
.prototype-reference-control-panel { position: fixed; z-index: 30; width: min(280px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 12px; color: #e4e9f1; background: #151922; border: 1px solid #395a86; border-radius: 12px; box-shadow: 0 8px 24px #0008; }
.prototype-reference-control-panel[hidden] { display: none; }
.prototype-reference-control-panel h3 { margin: 0 0 8px; font-size: 1rem; }
.prototype-reference-control-panel #referenceViewControls:not([hidden]) { position: static; display: grid; gap: 4px; margin-bottom: 4px; }
.prototype-reference-control-panel #referenceViewControls[hidden], .prototype-reference-control-panel :is(button, a)[hidden] { display: none; }
.prototype-reference-control-panel :is(button, a):not([hidden]) { position: static; display: flex; align-items: center; gap: 12px; box-sizing: border-box; width: 100%; min-height: 44px; height: auto; padding: 8px; margin-bottom: 4px; white-space: normal; text-align: left; }
.prototype-reference-control-panel :is(button, a) svg { flex-shrink: 0; }
.prototype-reference-control-panel .prototype-reference-control-label { display: inline; }
.prototype-reference-control-panel :is(button, a):focus-visible { outline-offset: -2px; }
.prototype .has-contained-save-count #prototypeCart { padding: 0; border: 0; box-shadow: inset 0 0 0 1px #395a86; }
.prototype .has-contained-save-count #prototypeCart > svg { position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; }
.prototype .has-contained-save-count .prototype-cart-count { left: 3px; right: 3px; top: auto; bottom: 3px; width: auto; height: 12px; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 10px; font-weight: 700; line-height: 12px; white-space: nowrap; }
.prototype .has-contained-save-count .prototype-save-check { top: 3px; right: 3px; bottom: auto; }
.prototype-reference-action[hidden] { display: none; }
.prototype-reference-action:disabled { opacity: .55; cursor: wait; }
.prototype-reference-action:focus-visible { outline: 2px solid #98beff; outline-offset: 2px; }
.prototype-context-reference { display: block; max-width: 100%; width: 180px; height: 160px; object-fit: contain; margin: 12px auto; }
.prototype-view-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 4px; color: #e4e9f1; background: #10141be6; border: 1px solid #395a86; border-radius: 4px; }
.prototype-view-controls button:focus-visible, .prototype #referenceViewer:focus-visible { outline: 2px solid #98beff; outline-offset: -2px; }
@keyframes prototype-unfold-control {
  from { opacity: 0; transform: perspective(300px) translateX(var(--control-unfold-x, 12px)) rotateY(-65deg) scale(.85); }
  to { opacity: 1; transform: perspective(300px) translateX(0) rotateY(0) scale(1); }
}
.prototype .is-unfolding-controls :is(#referenceViewControls > button, #rerunExtraction, #editReference, #openBrowserDraft, #prototypeCart, #viewSavedPlan) { animation: prototype-unfold-control 430ms cubic-bezier(.22, 1, .36, 1) both; transform-origin: right center; }
.prototype .is-unfolding-controls :is(#rerunExtraction, #openBrowserDraft, #prototypeCart, #viewSavedPlan) { --control-unfold-x: -12px; transform-origin: left center; }
.prototype .is-unfolding-controls #openBrowserDraft { animation-delay: 60ms; }
.prototype .is-unfolding-controls #editReference { animation-delay: 100ms; }
.prototype .is-unfolding-controls #referenceViewControls > button:nth-child(1) { animation-delay: 160ms; }
.prototype .is-unfolding-controls #referenceViewControls > button:nth-child(2) { animation-delay: 220ms; }
.prototype .is-unfolding-controls #referenceViewControls > button:nth-child(3) { animation-delay: 280ms; }
.prototype .is-unfolding-controls #viewSavedPlan { animation-delay: 240ms; }
.prototype .is-unfolding-controls #prototypeCart { animation-delay: 300ms; }
@media (prefers-reduced-motion: reduce) {
  .prototype .is-unfolding-controls :is(#referenceViewControls > button, #rerunExtraction, #editReference, #openBrowserDraft, #prototypeCart, #viewSavedPlan) { animation: none; }
}
@media (prefers-reduced-motion: reduce) { .prototype .is-analyzed #reference, .prototype .is-analyzed #componentRegion { transition: none; } }
.prototype-connections { display: none; }
.prototype #componentRegion { position: absolute; z-index: 1; border: 2px solid #79b5ff; background: #2384ff18; border-radius: 10px; pointer-events: none; }
.prototype .plan-focus-drawer { position: relative; inset: auto; max-height: none; margin-top: 0; overflow: visible; background: #10141b; border-color: #395a86; border-radius: 0; }
.prototype .plan-focus-drawer .costume-plan-line { border-radius: 0; }
.prototype #focusDrawer .costume-plan-line-copy { padding-right: 0; }
.prototype #focusDrawer .costume-plan-line { grid-template-columns: minmax(0, 1fr); }
.prototype #focusDrawer .costume-plan-line-copy { display: block; min-width: 0; grid-column: 1 / -1; }
.prototype #focusDrawer .prototype-material-panel,
.prototype #focusDrawer .costume-plan-carousel-shell { grid-column: 1 / -1; min-width: 0; }
.prototype .costume-plan-line { grid-template-columns: minmax(240px, .65fr) minmax(0, 2fr); align-items: start; color: #e4e9f1; }
.prototype .costume-plan-line:not(.has-product) { grid-template-columns: minmax(0, 1fr); }
.prototype .costume-plan-line-copy { grid-column: 1; }
.prototype .costume-plan-carousel-shell { grid-column: 2; }
.prototype .costume-plan-carousel-card { grid-template-columns: 10rem minmax(0, 1fr); }
.prototype .costume-plan-carousel-thumbnail { width: 10rem; height: 10rem; }
.prototype .costume-plan-product-link { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-weight: 700; }
.prototype .costume-plan-carousel-card a:focus-visible { outline: 2px solid #98beff; }
.prototype-offers-dialog > .btn { margin-bottom: 12px; }
.prototype-offers-dialog > .affiliate-disclosure-group { margin: 4px 0 8px; }
.prototype-similar-offer { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem 0; border-top: 1px solid #293447; }
.prototype-similar-offer a { flex: 1 1 100%; overflow-wrap: anywhere; }
.prototype-similar-offer > span { overflow-wrap: anywhere; }
.costume-plan-provenance > span { display: block; overflow-wrap: anywhere; }
.costume-plan-integration { font-size: .75rem; color: #b6c3d7; overflow-wrap: anywhere; }
.prototype-similar-offer > .costume-plan-integration { flex: 1 1 100%; }
.costume-plan-integration, .costume-plan-integration > span { display: block; overflow-wrap: anywhere; }
.prototype .costume-plan-carousel { grid-auto-columns: minmax(300px, 45%); }
.prototype .costume-plan-carousel-step { min-height: 8rem; }
.prototype-dialog { width: min(760px, calc(100% - 24px)); max-height: 85dvh; overflow-y: auto; padding: 24px; color: #e4e9f1; background: #151922; border: 1px solid #395a86; border-radius: 16px; }
.prototype-dialog::backdrop { background: #0009; }
#referenceWarningDialog { width: min(520px, calc(100% - 24px)); }
#referenceWarningDialog button { min-width: 44px; min-height: 44px; }
#optionsDialog, #guidanceDialog { transform-origin: center; }
#optionsTitle { display: flex; align-items: center; gap: 8px; }
#optionsTitle > svg { width: 20px; height: 20px; flex: none; display: block; }
#optionsTitle > span { min-width: 0; }
#optionsDialog.is-options-opening::backdrop, #guidanceDialog.is-options-opening::backdrop { animation: options-backdrop-in 160ms ease-out; }
#optionsDialog.is-options-closing::backdrop, #guidanceDialog.is-options-closing::backdrop { animation: options-backdrop-out 120ms ease-in forwards; }
@keyframes options-backdrop-in { from { background: #0000; } to { background: #0009; } }
@keyframes options-backdrop-out { from { background: #0009; } to { background: #0000; } }
@media (prefers-reduced-motion: reduce) {
  #optionsDialog::backdrop, #guidanceDialog::backdrop { animation: none !important; }
}
.prototype-guidance-idle .prototype-explore-start { margin-top: 12px; min-height: 44px; }
@media (max-width: 700px) { .prototype-guidance-idle .prototype-explore-start { width: 100%; } }
.prototype-dialog-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.prototype-dialog-actions > .btn { white-space: normal; overflow-wrap: anywhere; }
.prototype-dialog h2 { padding-right: 30px; font-size: 1.3rem; }
.prototype #guidanceDialog { padding: 0; overflow: hidden; }
.prototype #guidanceDialog[open] { display: flex; flex-direction: column; }
.prototype-dialog-header { display: flex; align-items: flex-start; gap: 16px; flex-shrink: 0; padding: 16px 24px; border-bottom: 1px solid #293447; background: #151922; }
.prototype #guidanceDialog .prototype-dialog-header h2 { flex: 1; min-width: 0; margin: 0; padding: 0; overflow-wrap: anywhere; }
.prototype #guidanceTitle { display: flex; align-items: center; gap: 8px; }
.prototype-guidance-heading-icon { font-size: 20px; line-height: 1; flex: none; display: block; color: currentColor; }
#guidanceTitleText { min-width: 0; }
.prototype #guidanceDialog .prototype-dialog-header .plan-focus-close { position: static; flex-shrink: 0; width: 36px; height: 36px; margin: 0; }
.prototype #guidanceContent { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px; container-type: inline-size; }
.prototype [hidden] { display: none !important; }
.prototype #referenceCandidateMeta { white-space: normal; }
.prototype #referenceControls { max-width: none; }
.prototype #referenceControls:not([open]) { display: none; }
.prototype-focus-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: start; gap: 8px; min-width: 0; }
.prototype-component-title { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.prototype-component-title h2 { min-width: 0; overflow-wrap: anywhere; }
.prototype .prototype-component-title .costume-plan-description-toggle { flex-shrink: 0; border: 0; border-radius: 0; background: transparent; }
.prototype-focus-heading h2 { font-size: 1.25rem; margin: 0; min-width: 0; flex: 0 1 auto; overflow-wrap: anywhere; }
.prototype-focus-heading .costume-plan-description-toggle { flex-shrink: 0; }
.prototype-radio-group { display: flex; flex-wrap: wrap; gap: 10px 18px; border: 0; padding: 0; min-inline-size: 0; }
.prototype-radio-group legend { font-size: 1rem; }
.prototype-radio-group label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.prototype-radio-group input { accent-color: #2384ff; }
.prototype-radio-group input:focus-visible { outline: 2px solid #98beff; outline-offset: 3px; }
.prototype-approach-choices { display: flex; align-items: center; width: fit-content; max-width: 100%; font-size: .75rem; margin: 10px 0; gap: 8px; }
.prototype-approach-choices select { width: auto; min-width: 140px; max-width: 100%; }
.prototype .prototype-icon-action { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 8px; flex-shrink: 0; border: 0; background: transparent; color: #b8d6ff; border-radius: 6px; }
.prototype .prototype-icon-action svg { width: 20px; height: 20px; }
.prototype .prototype-material-search-action svg { width: 24px; height: 24px; stroke-linecap: round; stroke-linejoin: round; }
.prototype .prototype-icon-action .prototype-approach-icon { font-size: 20px; line-height: 1; }
.prototype .prototype-icon-action:hover { background: #173563; }
.prototype .prototype-icon-action:focus-visible { outline: 2px solid #98beff; outline-offset: 2px; }
.prototype .prototype-shopping-options-icon:focus, .prototype .prototype-build-guide-icon:focus { outline: 2px solid #98beff; outline-offset: 2px; }
.prototype .prototype-icon-action:disabled { opacity: .5; }
.prototype-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.prototype #focusDrawer .prototype-component-toolbar { display: grid; grid-template-columns: max-content max-content; align-items: center; gap: 8px; margin: 10px 0; }
.prototype .prototype-component-toolbar .prototype-approach-choices { display: flex; gap: 0; margin: 0; }
.prototype .prototype-approach-choices label { position: relative; margin: 0; cursor: pointer; }
.prototype .prototype-approach-choices input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.prototype .prototype-approach-choices span { display: block; padding: 8px; border: 1px solid #344156; font-size: .875rem; }
.prototype .prototype-approach-choices label:first-child span { border-radius: 6px 0 0 6px; }
.prototype .prototype-approach-choices label:last-child span { border-radius: 0 6px 6px 0; }
.prototype .prototype-approach-choices label + label span { border-left: 0; }
.prototype .prototype-approach-choices input:checked + span { background: #193c68; color: #fff; box-shadow: inset 0 -2px #8db9ff; }
.prototype .prototype-approach-choices input:focus-visible + span { outline: 2px solid #8db9ff; outline-offset: 2px; }
.prototype .prototype-component-toolbar .prototype-actions { flex-wrap: nowrap; min-width: 0; width: max-content; max-width: none; margin: 0; align-items: center; }
.prototype #focusDrawer .prototype-component-toolbar .prototype-icon-action { flex: 0 0 40px; }
.prototype-actions button { border-radius: 999px; }
.prototype .costume-plan-line-copy > p { font-size: .7rem; margin: 6px 0 0; }
.prototype .costume-plan-line-copy > button { display: inline-flex; width: max-content; max-width: 100%; margin-top: 6px; border-radius: 999px; font-size: .7rem; }
.prototype .prototype-actions { margin: 8px 0; }
.prototype .prototype-actions button { font-size: .72rem; }
.prototype #focusDrawer .prototype-actions button { flex: 0 1 auto; max-width: 100%; white-space: normal; }
.prototype-image-unavailable { display: grid; place-items: center; height: 100%; background: #171b24; color: #aeb7c8; font-size: .75rem; text-align: center; }
.prototype-guidance { margin-top: 20px; }
.prototype-guidance > h3 { font-size: 1rem; font-weight: 700; margin: 0 0 12px; }
.prototype-approach h3 { font-size: 1.1rem; }
.prototype-approach { padding: 14px 0; border-top: 1px solid #475166; }
.prototype-approach > summary { display: flex; align-items: baseline; gap: 10px; font-weight: 600; cursor: pointer; list-style: none; }
.prototype-approach > summary::-webkit-details-marker { display: none; }
.prototype-approach > summary::after { content: '▸'; margin-left: auto; flex-shrink: 0; }
.prototype-approach[open] > summary::after { content: '▾'; }
.prototype-approach-selection { display: inline-flex; align-items: center; flex-shrink: 0; cursor: pointer; }
.prototype-approach-selection input { accent-color: #2384ff; margin: 0; }
.prototype-approach[open] > summary { margin-bottom: 12px; }
.prototype-build-selection { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.prototype-material-search-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin: 12px 0 0; min-width: 0; }
.prototype-material-tabs { min-width: 0; flex: 1; display: flex; gap: 0; margin: 0; overflow-x: auto; overflow-y: hidden; padding: 0; background: #10141b; border: 1px solid #395a86; scrollbar-width: thin; overscroll-behavior: contain; }
.prototype-material-choice { display: flex; flex: 0 0 clamp(140px, 38vw, 220px); }
.prototype .prototype-material-choice > button[role="tab"] { width: 100%; min-height: 48px; height: auto; max-width: none; display: flex; align-items: center; border: 0; border-right: 1px solid #293447; border-radius: 0; text-align: left; padding: 6px 8px; background: transparent; color: #e4e9f1; font-family: inherit; font-weight: inherit; font-size: .85rem; line-height: 1.3; margin: 0; white-space: normal; overflow-wrap: anywhere; }
.prototype .prototype-material-choice > button[aria-selected="true"] { background: #173563; box-shadow: inset 0 -3px #98beff; }
.prototype .prototype-material-choice > button:focus-visible { outline: 2px solid #98beff; outline-offset: -2px; }
.prototype-panel-controls { container: detail-controls / inline-size; }
.prototype-detail-header { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 0; }
.prototype-detail-header-primary { min-width: 0; }
.prototype .prototype-selected-build { color: #b8d6ff; font-size: .75rem; line-height: 1.4; font-weight: normal; min-width: 0; margin: 8px 0 0; overflow-wrap: anywhere; }
.prototype-selected-build > span { display: block; }
.prototype-selected-build-count { margin-top: 2px; }
@container detail-controls (min-width: 520px) {
  /* Content-sized flex wrapping also handles unusually wide/localized controls. */
  .prototype-detail-header.has-build { display: flex; flex-wrap: wrap; gap: 16px; }
  .prototype-detail-header.has-build .prototype-detail-header-primary { flex: 1 1 max-content; min-width: min(260px, 100%); max-width: 100%; }
  .prototype .prototype-selected-build { flex: .9 1 200px; align-self: flex-start; width: 100%; max-width: 100%; margin: 0; }
}
.prototype-search-notice { margin-top: 6px; font-size: .7rem; color: #e6c780; }
.prototype-search-notice summary { cursor: pointer; width: max-content; max-width: 100%; }
.prototype-search-notice p { margin: 4px 0 0; color: #b7c2d5; }
.prototype-material-panel { grid-column: 2; min-width: 0; }
.prototype-material-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 120px; padding: 16px; color: #b8d6ff; font-size: .85rem; }
.prototype-material-loading .spinner-border { width: 2rem; height: 2rem; flex-shrink: 0; }
.prototype-results-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 160px; padding: 24px; color: #b8d6ff; text-align: center; overflow-wrap: anywhere; }
.prototype-results-loading .spinner-border { width: 2rem; height: 2rem; flex-shrink: 0; }
.prototype-product-loading { grid-column: 1 / -1; min-width: 0; border: 1px solid #293447; border-radius: 8px; background: #10141b; }
.prototype #focusDrawer .costume-plan-carousel-shell { position: relative; }
.prototype-products-overlay { position: absolute; inset: 0; z-index: 1; min-height: 0; max-height: min(300px, 50dvh); border-radius: 8px; background: #0b111bce; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .prototype-material-loading .spinner-border { animation: none; } }
.prototype .costume-plan-line:not(.has-product) .prototype-material-panel { grid-column: 1 / -1; }
.prototype pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 400px; }
.prototype-title-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.prototype-panel-controls { display: block; grid-column: 1 / -1; min-width: 0; container-type: inline-size; }
@container (max-width: 360px) {
  .prototype-component-title { flex-basis: 100%; }
  .prototype #focusDrawer .prototype-component-toolbar .prototype-actions { gap: 4px; }
  .prototype #focusDrawer .prototype-component-toolbar .prototype-icon-action { flex-basis: 32px; width: 32px; }
  .prototype .prototype-approach-choices span { padding: 8px 6px; font-size: .8rem; }
}
.prototype-button-spinner { display: inline-block; vertical-align: middle; margin-right: 6px; flex-shrink: 0; }
.prototype .prototype-title-actions .costume-plan-description-toggle { border: 0; border-radius: 0; background: transparent; }
.prototype .prototype-title-actions .costume-plan-description-toggle:hover { background: transparent; filter: brightness(1.25); }
.prototype .prototype-title-actions .costume-plan-description-toggle:focus-visible { background: transparent; outline: 2px solid #98beff; outline-offset: 2px; }
.prototype .prototype-warning-icon { color: #ffd27c; }
.prototype-search-popover { position: fixed; inset: auto; margin: 0; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 12px; border: 1px solid #395a86; border-radius: 8px; background: #151922; color: #e4e9f1; box-shadow: 0 8px 24px #0008; font-size: .8rem; }
.prototype-search-popover strong { display: block; padding-right: 24px; }
.prototype-search-popover p { margin: 8px 0 0; overflow-wrap: anywhere; }
.prototype-popover-close { position: absolute; right: 6px; top: 6px; border: 0; background: transparent; color: inherit; font-size: 1.1rem; }
@media (min-width: 1100px) {
  .prototype-workspace > .prototype-look-heading { position: relative; width: 100%; grid-column: 1 / -1; grid-row: 1; }
  .prototype-workspace > .prototype-look-heading { min-height: 64px; }
  .prototype-workspace > .prototype-look-heading p { max-width: none; }
  .prototype-workspace:has(> .plan-focus-drawer:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .8fr); align-items: start; background: #10141b; border-bottom: 1px solid #395a86; }
  .prototype-workspace > .prototype-stage { grid-column: 1; grid-row: 2; min-width: 0; }
  .prototype .plan-focus-drawer { grid-column: 2; grid-row: 2; min-width: 0; }
  /* Only the image contributes to the grid row height. The explorer scrolls
     within that row instead of pushing the shared bottom edge downward. */
  .prototype #focusDrawer { display: flex; align-self: stretch; min-height: 0; contain: size; overflow: hidden; border-bottom: 0; }
  .prototype #focusDrawer #detail { display: flex; flex: 1; min-width: 0; min-height: 0; }
  .prototype #focusDrawer .costume-plan-line { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1fr); align-content: start; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-bottom: 0; padding-top: 0; }
  /* Keep the inset inside the sticky surface, not above its scroll boundary. */
  .prototype #focusDrawer .prototype-panel-controls { display: block; grid-column: 1 / -1; position: sticky; top: 0; z-index: 2; align-self: start; background: #0b111b; padding-top: .7rem; padding-bottom: 8px; border-bottom: 1px solid #293447; }
  .prototype #focusDrawer .costume-plan-line-copy,
  .prototype #focusDrawer .prototype-material-panel,
  .prototype #focusDrawer .costume-plan-carousel-shell { grid-column: 1 / -1; }
}
/* Keep full-width titles and disclosure ahead of purchase controls on narrow cards. */
@media (max-width: 1099.98px) {
  .prototype #focusDrawer .costume-plan-carousel-card { grid-template-rows: auto auto auto auto; row-gap: 4px; }
  .prototype #focusDrawer .costume-plan-carousel-copy { display: contents; }
  .prototype #focusDrawer .costume-plan-carousel-thumbnail { grid-column: 1; grid-row: 1; align-self: start; }
  .prototype #focusDrawer .costume-plan-carousel-copy > small { grid-column: 2; grid-row: 1; overflow-wrap: anywhere; }
  .prototype #focusDrawer .costume-plan-product-link { grid-column: 1 / -1; grid-row: 2; align-self: start; min-width: 0; overflow-wrap: anywhere; }
  .prototype #focusDrawer .costume-plan-carousel-copy .affiliate-disclosure-note { grid-column: 1 / -1; grid-row: 3; }
  .prototype #focusDrawer .costume-plan-carousel-footer { grid-column: 1 / -1; grid-row: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; margin-top: 0; padding-top: 0; }
  .prototype #focusDrawer .costume-plan-carousel-footer .costume-plan-price { min-width: 0; overflow-wrap: anywhere; }
  .prototype #focusDrawer .costume-plan-carousel-footer button { max-width: 100%; white-space: nowrap; }
}
/* The prototype menu replaces current's toolbar, so its :has() fallback must
   not restore the wordmark on narrow screens. Reuse the same icon/breakpoint. */
@media (max-width: 575.98px) {
  .prototype:has(#referenceControls[open]) .app-header:has(#prototypeNavigation) .app-brand-copy { display: block; }
  .prototype:has(#referenceControls[open]) .app-header:has(#prototypeNavigation) .app-brand-icon { display: none; }
  .prototype:not(:has(#referenceControls[open])) .app-header:has(#prototypeNavigation) .app-brand-copy { display: none; }
  .prototype:not(:has(#referenceControls[open])) .app-header:has(#prototypeNavigation) .app-brand-icon { display: block; }
}
@media (max-width: 700px) {
  .prototype .app-header.has-subject-heading { position: sticky; top: 0; z-index: 20; display: grid; --header-action-count: 1; grid-template-columns: 44px minmax(0, 1fr) repeat(var(--header-action-count), 44px); align-items: center; gap: 12px; padding: 8px 0; margin-bottom: 8px; background: #0e1016; border-bottom: 1px solid #293447; }
  .prototype .app-header.has-subject-heading .app-brand { grid-column: 1; grid-row: 1; width: 44px; height: 44px; min-width: 0; }
  .prototype .app-header.has-subject-heading .app-brand-copy { display: none !important; }
  .prototype .app-header.has-subject-heading .app-brand-icon { display: block !important; width: 44px; height: 44px; }
  .prototype .app-header.has-subject-heading .prototype-look-heading { grid-column: 2; grid-row: 1; position: static; width: auto; min-width: 0; padding: 0; border: 0; background: transparent; text-align: center; order: 0; }
  .prototype .app-header.has-subject-heading #costume { font-size: 1rem; display: block; min-width: 0; white-space: normal; overflow: visible; overflow-wrap: anywhere; -webkit-line-clamp: unset; }
  .prototype .app-header.has-subject-heading .prototype-navigation { grid-column: -2 / -1; grid-row: 1; width: 44px; position: relative; top: auto; right: auto; justify-self: end; }
  .prototype .app-header.has-subject-heading:has(#accountNavigation) { --header-action-count: 2; grid-template-columns: 44px minmax(0, 1fr) repeat(var(--header-action-count), 44px); padding: 8px 0; }
  .prototype .app-header.has-subject-heading .site-account-navigation { grid-column: -3 / -2; grid-row: 1; width: 44px; position: relative; top: auto; right: auto; }
  .prototype .app-header.has-subject-heading .site-account-navigation nav { right: -56px; }
  .prototype .app-header.has-subject-heading .site-menu summary { box-sizing: border-box; width: 44px; height: 44px; }
  .prototype .app-header.has-subject-heading .site-feedback-shortcut,
  .prototype .app-header.has-subject-heading:has(#accountNavigation) .site-feedback-shortcut { grid-column: 3; grid-row: 1; position: relative; top: auto; right: auto; box-sizing: border-box; }
  .prototype .app-header.has-subject-heading .site-menu nav { max-height: max(44px, calc(100dvh - var(--sticky-header-height, 60px) - 16px)); }
  .prototype .prototype-stage { display: flex; flex-direction: column; }
  .prototype .prototype-look-heading { position: relative; order: -1; width: 100%; }
  .prototype .prototype-reference-frame { align-self: stretch; width: 100%; margin-left: 0; justify-content: center; }
  .prototype .is-analyzed .prototype-reference-frame { width: 100%; margin-left: 0; }
  .prototype #components { position: relative; top: auto; bottom: auto; width: 100%; order: 1; display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; border-top: 1px solid #395a86; scrollbar-width: thin; }
  .prototype #components button { flex: 0 0 clamp(140px, 38vw, 220px); width: auto; min-height: 60px; border-right: 1px solid #293447; }
  .prototype #components button[aria-pressed="true"] { box-shadow: inset 0 -3px #98beff; }
  .prototype #components .prototype-component-placeholder { flex: 0 0 140px; min-height: 60px; border-right: 1px solid #293447; }
  .prototype-look-heading p { display: none; }
  .prototype #components button { padding: 8px 6px; font-size: .75rem; }
  .prototype .prototype-material-choice > button[role="tab"] { font-size: .75rem; }
  .prototype .costume-plan-line, .prototype .costume-plan-line.has-product:not(.is-description-expanded) { grid-template-columns: minmax(0, 1fr); }
  .prototype .costume-plan-line-copy, .prototype .costume-plan-carousel-shell { grid-column: 1 / -1; }
  .prototype-material-panel { grid-column: 1 / -1; }
  .prototype .costume-plan-line.has-product .costume-plan-line-copy { display: block; }
  .prototype .costume-plan-carousel { grid-auto-columns: minmax(240px, 90%); }
  .prototype .costume-plan-carousel-card { grid-template-columns: minmax(0, min(8rem, 50%)) minmax(0, 1fr); }
  .prototype .costume-plan-carousel-thumbnail { width: 8rem; max-width: 100%; height: 8rem; }
  .prototype .prototype-actions { margin: 8px 0; }
}
/* Count visible action slots once, instead of reserving them again as padding. */
@media (min-width: 576px) and (max-width: 700px) {
  .prototype .app-header.has-subject-heading:has(#feedbackShortcut) { --header-action-count: 2; grid-template-columns: 44px minmax(0, 1fr) repeat(var(--header-action-count), 44px); padding: 8px 0; }
  .prototype .app-header.has-subject-heading:has(#feedbackShortcut):has(#accountNavigation) { --header-action-count: 3; grid-template-columns: 44px minmax(0, 1fr) repeat(var(--header-action-count), 44px); padding: 8px 0; }
}
@media (max-width: 400px) {
  .prototype .app-header.has-subject-heading,
  .prototype .app-header.has-subject-heading:has(#accountNavigation) { --header-action-count: 1; grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 8px 0; }
  .prototype .app-header.has-subject-heading .prototype-look-heading { grid-column: 2; grid-row: 1; }
}
/* Save confirmation floats above the workspace without shifting the planner. */
.prototype-save-toast { position: fixed; bottom: max(1rem, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 1080; display: flex; align-items: center; gap: 1rem; width: max-content; max-width: calc(100vw - 2rem); padding: .75rem 1rem; border: 1px solid #395a86; border-radius: .75rem; background: var(--bs-body-bg, #0e1118); color: var(--bs-body-color, #dce2ec); box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .4); }
.prototype-save-toast[hidden] { display: none; }
.prototype-save-toast .btn-close { flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 0; }
.prototype-material-source-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.prototype .prototype-material-shopping-options-icon { min-width: 44px; min-height: 44px; }
.prototype-size-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.prototype-size-fields > label { flex: 1 1 12rem; min-width: 0; overflow-wrap: anywhere; }
.prototype-size-fields input, .prototype-size-fields select { min-height: 44px; width: 100%; }
.prototype-size-fields [hidden], .prototype-size-preference[hidden] { display: none; }
.prototype-size-fields > div { flex: 1 1 100%; }
@media (max-width: 479px) { .prototype-size-fields > label { flex-basis: 100%; } }
.prototype .prototype-material-actions { gap: 0; margin: 0; }
.prototype .prototype-material-actions span { min-height: 44px; }
.prototype .prototype-material-actions input:disabled + span { opacity: .65; cursor: default; }
.prototype-save-check { position: absolute; right: 3px; bottom: 3px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: #91e2b5; color: #092219; font-size: 12px; font-weight: 800; line-height: 1; }
.prototype-save-check[hidden] { display: none; }
.prototype-identify-icon { vertical-align: middle; margin-right: 6px; }
/* Concise path choices stay distinct from validated construction guides. */
.prototype-path-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #293447; }
.prototype-path-summary { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.prototype-path-summary h3 { font-size: 1rem; font-weight: 600; }
.prototype-path-summary p { margin-bottom: 6px; line-height: 1.4; }
.prototype-path-row > .btn, .prototype-concept-actions > .btn, .prototype-explore-start { min-height: 44px; }
.prototype-path-row > .text-warning, .prototype-path-row > .prototype-guidance { flex-basis: 100%; }
.prototype-path-guide { flex: 1 1 100%; min-width: 0; margin-top: 12px; padding-top: 12px; border-top: 1px solid #293447; overflow-wrap: anywhere; }
.prototype-path-guide[hidden] { display: none; }
.prototype-path-kind { color: #b4c1d6; }
.prototype-ready-build .prototype-build-selection { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; }
.prototype-ready-build .prototype-approach-selection { min-height: 44px; gap: 10px; white-space: normal; }
.prototype-ready-build .prototype-build-selection > .btn { min-height: 44px; }
.prototype-build-ready-actions { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; }
.prototype-build-ready-actions .prototype-ready-build { margin-bottom: 12px; }
.prototype-build-ready-actions .prototype-build-selection { justify-content: flex-start; }
.prototype-build-pending { min-height: auto; padding: 0; justify-content: flex-start; text-align: left; gap: 8px; }
.prototype-build-pending .spinner-border { width: 1rem; height: 1rem; flex-shrink: 0; }
.prototype-build-details > summary { min-height: 44px; padding: 10px 0; cursor: pointer; overflow-wrap: anywhere; }
.prototype-build-details > summary:focus-visible { outline: 2px solid #80b7ff; outline-offset: 3px; }
.prototype-other-build-paths { margin-top: 12px; border-top: 1px solid #293447; }
.prototype-other-build-paths > summary { min-height: 44px; padding: 10px 0; cursor: pointer; overflow-wrap: anywhere; }
.prototype-other-build-paths > summary:focus-visible { outline: 2px solid #80b7ff; outline-offset: 3px; }
.prototype-other-path-cautions h3 { font-size: 1rem; margin-top: 12px; }
.prototype-other-path-cautions p { overflow-wrap: anywhere; }
.prototype-other-path-cautions[hidden] { display: none; }
.prototype-draft-callout { position: fixed; z-index: 1040; pointer-events: none; background: #151922; border: 1px solid #395a86; color: #e4e9f1; border-radius: 8px; padding: 8px 10px; font-size: .8rem; font-weight: normal; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; transform-origin: left center; }
.prototype-draft-callout[hidden] { display: none; }
.prototype-draft-callout::before { content: ''; position: absolute; left: -6px; top: calc(50% - 6px); border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-right: 6px solid #395a86; }
.prototype-draft-callout[data-below="true"]::before { left: 12px; top: -6px; border: none; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid #395a86; }
.prototype-concept { border-top: 1px solid #293447; margin-top: 16px; padding-top: 16px; }
.prototype-concept textarea { width: 100%; min-height: 88px; resize: vertical; font: inherit; }
.prototype-concept-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
@container (max-width: 479px) {
  .prototype-path-row > .btn, .prototype-concept-actions > .btn { width: 100%; }
}
@media (max-width: 479px) {
  .prototype-dialog-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px; }
  .prototype #guidanceTitle { grid-column: 1; grid-row: 1; align-items: flex-start; }
  .prototype #guidanceDialog .prototype-dialog-header .plan-focus-close { grid-column: 2; grid-row: 1; align-self: start; }
  .prototype #rebuildGuidance { grid-column: 1 / -1; grid-row: 2; justify-self: end; }
}
.prototype-size-preference > label { display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.prototype-size-fields > .prototype-size-choice-context { grid-column: 1 / -1; }
.prototype-size-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; width: 100%; }
.prototype-size-heading > span { min-width: 0; overflow-wrap: anywhere; }
.prototype-size-heading > button { flex: none; min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 8px; }
.prototype-size-heading svg { width: 20px; height: 20px; }
.prototype-size-summary { margin: 3px 0 8px; overflow-wrap: anywhere; font-size: .8rem; line-height: 1.4; }
#sizeOverrides > label { display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.prototype-sizing-dialog { width: min(560px, calc(100% - 24px)); max-height: min(85dvh, calc(100dvh - 24px)); padding: 0; overflow: hidden; }
.prototype-sizing-dialog > form { display: flex; flex-direction: column; max-height: min(85dvh, calc(100dvh - 24px)); min-height: 0; }
.prototype-sizing-header, .prototype-sizing-footer { flex: none; padding: 16px; }
.prototype-sizing-header { display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid #395a86; }
.prototype-sizing-header > div { flex: 1; min-width: 0; }
.prototype-sizing-header h2 { margin: 0; font-size: 1.25rem; overflow-wrap: anywhere; }
.prototype-sizing-header p { margin: 8px 0 0; overflow-wrap: anywhere; }
.prototype .prototype-sizing-header .plan-focus-close { position: static; flex: none; }
.prototype-sizing-body { padding: 16px; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.prototype-sizing-footer { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid #395a86; }
.prototype-sizing-footer > button { min-height: 44px; }
@media (max-width: 479px) {
  .prototype-sizing-header, .prototype-sizing-body, .prototype-sizing-footer { padding: 12px; }
}
.reference-intent { margin-top: .75rem; min-width: 0; }
.reference-intent summary { min-height: 44px; padding-block: .6rem; cursor: pointer; }
.reference-intent label { display: block; margin-top: .75rem; }
.reference-intent input { min-height: 44px; width: 100%; min-width: 0; }
.reference-intent p { margin-block: .75rem; overflow-wrap: anywhere; }
.reference-intent-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.reference-intent-actions button { min-height: 44px; white-space: normal; }
@media (max-width: 400px) {
  .reference-intent-actions { flex-direction: column; align-items: stretch; }
}
.reference-search-modes { display: flex; flex-wrap: wrap; gap: .25rem 1rem; min-width: 0; margin-bottom: .5rem; }
.reference-search-modes legend { float: none; width: 100%; font-size: inherit; margin: 0; }
.reference-search-modes label { display: flex; align-items: center; gap: .5rem; min-height: 44px; max-width: 100%; }
.reference-results-provenance { overflow-wrap: anywhere; margin-top: .5rem; }
@media (max-width: 400px) {
  .reference-search-modes { flex-direction: column; }
}

/* CM133 natural text rows; CM136 shared square frame and intrinsic control dock. */
.prototype .reference-candidates { display: grid; grid-template-columns: minmax(0,1fr); grid-auto-rows: auto; gap: 8px; align-items: stretch; min-width: 0; container: reference-carousel / inline-size; }
.prototype .reference-viewing-row { position: relative; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(min-content,1fr) auto; gap: 8px; inline-size: 100%; box-sizing: border-box; aspect-ratio: 1 / 1; block-size: auto; min-block-size: min-content; min-width: 0; padding: 8px; border-radius: .7rem; background: rgba(0,0,0,.18); }
.prototype .reference-candidate-stage { position: relative; inset: auto; grid-column: 1; grid-row: 1; height: auto; min-height: 0; min-width: 0; width: 100%; box-sizing: border-box; background: transparent; }
.prototype .reference-candidate-stage img { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.prototype .reference-candidate-stage .reference-preview-status { max-height: 100%; overflow-y: auto; padding: 8px; }
.prototype .reference-candidate-nav { position: static; transform: none; pointer-events: auto; flex: 0 0 44px; z-index: 2; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; font-size: 30px; line-height: 1; color: #e4e9f1; background: rgba(10, 14, 23, .52); border-color: #5b667b; }
.prototype .reference-candidate-nav:hover, .prototype .reference-candidate-nav:focus-visible { background: #101723; border-color: #b7ceee; }
.prototype .reference-carousel-frame button:focus-visible { outline: 3px solid #98beff; outline-offset: 2px; }
.prototype #referencePrevBtn { left: 8px; }
.prototype #referenceNextBtn { right: 8px; }
.prototype .reference-candidate-nav[hidden] { display: block !important; visibility: hidden; }
.prototype .reference-text-zone { display: block; height: auto; max-height: none; min-width: 0; min-height: 0; overflow: visible; }
.prototype .reference-scroll-content { height: auto; max-height: none; overflow: visible; scrollbar-gutter: auto; min-width: 0; min-height: 0; overflow-wrap: anywhere; }
.prototype .reference-compatibility-zone:not(:has(.reference-analysis-warning:not([hidden]))) { display: none; }
.prototype .reference-caption-zone:not(:has(#referenceCandidateMeta:not(:empty), #referenceBrowseActions:not([hidden]) #referenceBrowseStatus:not(:empty))) { display: none; }
.prototype .reference-candidate-navigation { grid-column: 1; grid-row: 1; display: flex; align-items: center; justify-content: space-between; pointer-events: none; min-width: 0; z-index: 2; }
.prototype .reference-scroll-content:focus-visible { outline: 2px solid #8cbcff; outline-offset: -2px; }
.prototype .reference-scroll-cue { font-size: .8rem; line-height: 1.25rem; text-align: center; color: #b8c5d8; }
.prototype .reference-candidate-meta { margin: 0; white-space: normal; text-overflow: clip; overflow: visible; }
.prototype .reference-browse-actions { display: block; margin: 0; text-align: center; }
.prototype .reference-compatibility-zone .reference-analysis-copy { margin: 0 auto 8px; text-align: center; }
.prototype .reference-compatibility-zone .reference-analysis-warning:not([hidden]) { display: flex; justify-content: center; align-items: flex-start; gap: 8px; max-width: 70ch; text-align: center; }
.prototype .reference-compatibility-zone .reference-warning-emoji { display: inline-block; flex: 0 0 auto; font-size: 1.25rem; line-height: 1.2; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.prototype .reference-compatibility-zone .reference-analysis-warning > span:not(.reference-warning-emoji) { min-width: 0; }
.prototype .reference-action-dock { position: static; grid-column: 1; grid-row: 2; z-index: 3; display: grid; grid-template-columns: minmax(0,2fr) minmax(0,3fr); grid-auto-rows: auto; gap: 8px; align-items: stretch; background: linear-gradient(transparent,rgba(10,14,23,.85)); }
.prototype .reference-action-dock > button { width: fit-content; max-width: 100%; min-width: 0; min-height: 44px; height: auto; box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.2; padding: 8px; }
.prototype #loadMoreReferences { grid-column: 1; grid-row: auto; justify-self: start; padding-inline: 4px; display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 4px; }
.prototype #loadMoreReferencesLabel { white-space: normal; overflow-wrap: normal; word-break: normal; }
.prototype .reference-candidates #useReferenceBtn { grid-column: 2; grid-row: auto; justify-self: end; display: grid; grid-template-columns: 24px minmax(0,1fr) 18px; align-items: center; gap: 4px; text-align: center; }
.prototype .reference-action-dock .reference-action-arrow { margin: 0; }
.reference-action-arrow { display: inline-block; vertical-align: middle; margin-left: 8px; }
.prototype .reference-action-dock #identifyPiecesIcon { display: inline-block; vertical-align: middle; margin: 0; width: 24px; height: 24px; }
.prototype .reference-action-dock #useReferenceLabel { display: inline; overflow-wrap: normal; word-break: normal; }
.prototype .reference-viewing-row[data-reference-layout="checking"] .reference-candidate-stage { align-items: flex-start; justify-content: flex-start; min-block-size: min-content; padding: 12px 56px; }
.prototype .reference-viewing-row[data-reference-layout="message"] .reference-candidate-stage { position: static; inset: auto; grid-column: 1; grid-row: 1; display: block; height: auto; min-block-size: min-content; padding: 4px 56px; overflow: visible; }
.prototype .reference-viewing-row[data-reference-layout="message"] .reference-candidate-stage .reference-analysis-actions { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; max-height: none; overflow: visible; }
.prototype .reference-viewing-row[data-reference-layout="message"] .reference-preview-status { margin: 0; padding: 0; max-height: none; overflow: visible; text-align: start; line-height: 1.45; }
.prototype .reference-viewing-row[data-reference-layout="message"] .reference-candidate-navigation:not(:has(> button:not([hidden]))) { display: none; }
.prototype .reference-viewing-row[data-reference-layout="message"] .reference-candidate-nav { position: static; transform: none; flex: 0 0 44px; }
.prototype .reference-viewing-row[data-reference-layout="message"] #referenceNextBtn { margin-left: auto; }
.prototype .reference-viewing-row[data-reference-layout="message"] .reference-candidate-nav[hidden] { display: none !important; }
.prototype .reference-viewing-row[data-reference-layout="message"] .reference-action-dock > button { height: auto; min-height: 44px; }
.prototype .reference-viewing-row[data-reference-layout="message"] #loadMoreReferences,
.prototype .reference-viewing-row[data-reference-layout="message"] #useReferenceBtn { grid-row: auto; }
.prototype .reference-action-dock:not(:has(#loadMoreReferences:not([hidden]))) { grid-template-columns: minmax(0,1fr); }
.prototype .reference-action-dock:not(:has(#loadMoreReferences:not([hidden]))) #useReferenceBtn { grid-column: 1; }
@media (max-width: 400px) { .prototype .reference-viewing-row[data-reference-layout="message"] .reference-candidate-stage { padding-block: 0; } }
/* The added search icon needs earlier whole-word stacking in the same dock rows. */
@container reference-carousel (max-width: 22em) {
  .prototype .reference-action-dock { grid-template-columns: minmax(0,1fr); }
  .prototype #loadMoreReferences { grid-column: 1; }
  .prototype .reference-candidates #useReferenceBtn { grid-column: 1; }
}
/* CM144 viewport-capped reference browsing. */
@media (min-width: 701px) {
  .prototype .reference-candidates {
    --reference-browse-height-budget: calc(100vh - var(--sticky-header-height, 0px) - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    inline-size: min(100%, var(--reference-browse-height-budget));
    max-inline-size: 100%;
    margin-inline: auto;
  }
}
@supports (height: 100dvh) {
  @media (min-width: 701px) {
    .prototype .reference-candidates {
      --reference-browse-height-budget: calc(100dvh - var(--sticky-header-height, 0px) - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }
  }
}
.prototype-cart-page .prototype-cart-loading { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 96px; padding: 16px; }
.prototype-cart-page .prototype-cart-refreshing { display: flex; align-items: center; gap: 8px; margin-block: 8px; }
.prototype-cart-page .prototype-cart-loading[hidden], .prototype-cart-page .prototype-cart-refreshing[hidden] { display: none; }
.prototype-cart-page .prototype-cart-loading .spinner-border, .prototype-cart-page .prototype-cart-refreshing .spinner-border { width: 1.25rem; height: 1.25rem; flex: 0 0 1.25rem; }
@media (prefers-reduced-motion: reduce) {
  .prototype-cart-page .prototype-cart-loading .spinner-border, .prototype-cart-page .prototype-cart-refreshing .spinner-border { animation: none; }
}

/* CM118: shared shopping-options and size-editor hierarchy; only bodies scroll. */
.prototype #optionsDialog, .prototype #sizeDialog { width: min(560px,calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; box-sizing: border-box; }
.prototype #optionsDialog[open] { display: flex; flex-direction: column; }
.prototype #sizeDialog > form { width: 100%; max-height: calc(100dvh - 26px); }
.prototype-options-header, .prototype #sizeDialog .prototype-sizing-header { flex: none; display: grid; grid-template-columns: minmax(0,1fr) 44px; gap: 8px; align-items: start; padding: 16px 16px 14px; border: 0; }
.prototype-options-header > div { min-width: 0; }
.prototype #optionsTitle, .prototype #sizeDialogTitle { margin: 9px 0 6px; padding: 0; font-size: 1.25rem; line-height: 1.3; font-weight: 500; overflow-wrap: anywhere; }
.prototype #optionsTitle { align-items: flex-start; }
.prototype #optionsTitle > svg { margin-top: 3px; }
.prototype #shoppingOptionsContext, .prototype #sizeDialogContext { margin: 0; font-size: .875rem; line-height: 1.4; color: #b8c4d6; overflow-wrap: anywhere; }
.prototype .prototype-options-header .plan-focus-close, .prototype #sizeDialog .plan-focus-close { position: static; width: 44px; height: 44px; margin: 0; padding: 0; font-size: 24px; flex: none; }
.prototype-options-body, .prototype #sizeOverrides { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 18px; display: grid; gap: 20px; }
.prototype-options-body > fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.prototype-options-body legend, .prototype-options-price > label { font-size: 1rem; font-weight: 500; line-height: 1.4; margin: 0 0 8px; padding: 0; }
.prototype #department { display: block; }
.prototype-options-audience { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 12px; }
.prototype #department label { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.prototype #department input, .prototype #sizeOverrides input[type="checkbox"] { width: 18px; height: 18px; flex: none; margin: 0; }
.prototype #optionsDialog .prototype-size-heading { display: flex; justify-content: space-between; flex-wrap: nowrap; margin: 0; }
.prototype #sizeOverridesToggle { display: inline-flex; gap: 6px; min-height: 44px; padding: 8px; font-size: .875rem; border-color: transparent; background: transparent; color: #b8d3ff; }
.prototype #sizeOverridesToggle svg { width: 16px; height: 16px; }
.prototype #sizeContextHint { margin: 3px 0 6px; font-size: 1rem; line-height: 1.4; }
.prototype #optionsDialog .small, .prototype #sizeDialog .small { font-size: .8125rem; line-height: 1.45; color: #b8c4d6; margin: 0; overflow-wrap: anywhere; }
.prototype #optionsDialog #sizeContextHint { font-size: 1rem; margin: 3px 0 6px; }
.prototype #optionsDialog #shoppingOptionsContext, .prototype #sizeDialog #sizeDialogContext { font-size: .875rem; line-height: 1.4; }
.prototype-options-price > label { display: block; }
.prototype-options-price .input-group { display: flex; flex-wrap: nowrap; margin-bottom: 6px; }
.prototype-options-price .input-group-text { display: flex; align-items: center; padding: 8px 12px; border: 1px solid #55647b; border-right: 0; border-radius: 7px 0 0 7px; }
.prototype #maxPrice { min-width: 0; width: 100%; min-height: 44px; padding: 8px 12px; font-size: 1rem; border: 1px solid #55647b; border-radius: 0 7px 7px 0; background: #10141d; color: #e4e9f1; }
.prototype-options-footer, .prototype #sizeDialog .prototype-sizing-footer { flex: none; padding: 14px 16px 16px; border-top: 1px solid #303c50; background: #151922; }
.prototype-options-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.prototype-options-actions > button, .prototype #sizeDialog .prototype-sizing-footer > button { min-height: 44px; font-size: 1rem; padding: 8px 12px; }
.prototype-options-actions > button { min-width: 100px; }
.prototype-options-actions .btn-primary, .prototype #sizeDialog .btn-primary { background: #98beff; border-color: #98beff; color: #101722; font-weight: 500; }
.prototype-options-actions .btn-outline-primary { border-color: #55647b; color: #e4e9f1; background: transparent; }
.prototype-options-footer a { color: #a8cbff; text-underline-offset: 3px; }
.prototype #sizeOverrides { gap: 16px; padding-bottom: 16px; }
.prototype #sizeOverrides .prototype-size-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.prototype #sizeOverrides .prototype-size-fields > label { display: grid; gap: 6px; min-width: 0; font-size: 1rem; }
.prototype #sizeOverrides .prototype-size-fields > div { grid-column: 1 / -1; }
.prototype #sizeOverrides input:not([type="checkbox"]), .prototype #sizeOverrides select { font-size: 1rem; min-height: 44px; min-width: 0; width: 100%; padding: 8px; border: 1px solid #55647b; border-radius: 7px; color: #e4e9f1; background: #10141d; }
@media (min-width: 600px) {
  .prototype-options-header, .prototype #sizeDialog .prototype-sizing-header { padding: 20px 24px 16px; }
  .prototype-options-body, .prototype #sizeOverrides { padding-inline: 24px; padding-bottom: 24px; }
  .prototype-options-footer, .prototype #sizeDialog .prototype-sizing-footer { padding: 16px 24px 20px; }
  .prototype-options-audience { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 360px) {
  .prototype-options-header, .prototype #sizeDialog .prototype-sizing-header { padding: 12px 12px 14px; }
  .prototype-options-body, .prototype #sizeOverrides { padding: 0 12px 16px; }
  .prototype-options-footer, .prototype #sizeDialog .prototype-sizing-footer { padding: 12px; }
  .prototype #sizeOverrides .prototype-size-fields { grid-template-columns: minmax(0,1fr); }
}
