/* app-outfits.css - split from app-extensions.css (Phase 1). Featured Outfits + outfit-color admin UI. */

/* --- Outfit gallery --- */
[data-page="featured-outfits"] .page-head .vault-counter {
  margin-top: 0.45rem;
  margin-bottom: 0.65rem;
}
.outfit-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.outfit-search {
  /* Column toolbar: do not use flex-basis 400px (that becomes height → circle). */
  width: 100%;
  max-width: 400px;
  flex: 0 0 auto;
  align-self: flex-start;
}
.outfit-filters,
.filter-bar.outfit-filters {
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  min-width: 0;
}
/* Horizontal scroll clips absolute menus; open state must allow overflow. */
.outfit-filters.has-open-menu,
.filter-bar.has-open-menu,
.filter-bar.outfit-filters.has-open-menu {
  overflow: visible;
}
.outfit-filters::-webkit-scrollbar {
  display: none;
}
.outfit-filters .chip,
.outfit-filters .roadmap-dropdown,
.outfit-filters .outfit-filters__divider {
  flex-shrink: 0;
}
.outfit-filters__divider {
  width: 1px;
  height: 1.25rem;
  background: var(--border-hi);
  margin: 0 0.15rem;
}
.page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.outfit-color-admin__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.outfit-color-admin__check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.outfit-color-admin__list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.outfit-color-admin__list[data-loading="true"] {
  min-height: 10rem;
}
.outfit-color-admin__row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.9rem 1rem;
  padding: 0.85rem 1rem;
  align-items: start;
}
.outfit-color-admin__row.is-override {
  box-shadow: inset 3px 0 0 var(--accent);
}
.outfit-color-admin__media {
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--canvas-2);
  aspect-ratio: 3 / 4;
}
.outfit-color-admin__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.outfit-color-admin__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.55rem;
}
.outfit-color-admin__head h2 {
  margin: 0;
  font-size: 1.05rem;
}
.outfit-color-admin__mode {
  font-size: 0.78rem;
}
.outfit-color-admin__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.outfit-color-admin__chip {
  opacity: 0.55;
  border-style: dashed;
}
.outfit-color-admin__chip.is-active {
  opacity: 1;
  border-style: solid;
  border-color: transparent;
  background: var(--grad-accent);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-soft);
}
.outfit-color-admin__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.65rem;
  min-height: 1.75rem;
}
.outfit-color-admin__status {
  font-size: 0.78rem;
}
.outfit-color-admin__status-msg {
  margin: 1rem 0.25rem;
  font-size: 0.92rem;
}
@media (max-width: 640px) {
  .outfit-color-admin__row {
    grid-template-columns: 56px minmax(0, 1fr);
  }
}
.outfit-color-dropdown,
.outfit-style-dropdown {
  flex-shrink: 0;
}
.outfit-color-menu,
.outfit-style-menu {
  max-height: min(22rem, 70vh);
  overflow-y: auto;
}
.outfit-color-admin__style {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.55rem 0 0.15rem;
}
.outfit-color-admin__style-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.outfit-color-admin__style-select {
  min-width: 9.5rem;
  max-width: 100%;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent-soft));
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  padding: 0.35rem 0.85rem;
}
.outfit-color-opt--black { color: #2c2a2b; }
.outfit-color-opt--brown { color: #a0673a; }
.outfit-color-opt--beige { color: #c4a574; }
.outfit-color-opt--grey { color: #8a8488; }
.outfit-color-opt--white {
  color: #9a9296;
  text-shadow: 0 0 0.5px rgba(0, 0, 0, 0.15);
}
.outfit-color-opt--blue { color: #5b9fd4; }
.outfit-color-opt--green { color: #62b56a; }
.outfit-color-opt--orange { color: #e0893a; }
.outfit-color-opt--pink { color: #e87aa8; }
.outfit-color-opt--purple { color: #9b7ad8; }
.outfit-color-opt--red { color: #e05a5a; }
.outfit-color-opt--teal { color: #3fadb0; }
.outfit-color-opt--yellow { color: #d4b03a; }
.outfit-color-opt--metallics { color: #c4a04a; font-weight: 700; }
html[data-scheme="dark"] .outfit-color-opt--black { color: #ece6e9; }
html[data-scheme="dark"] .outfit-color-opt--brown { color: #c4895a; }
html[data-scheme="dark"] .outfit-color-opt--beige { color: #d4b888; }
html[data-scheme="dark"] .outfit-color-opt--grey { color: #b5aeb2; }
html[data-scheme="dark"] .outfit-color-opt--white { color: #f4eef1; text-shadow: none; }
html[data-scheme="dark"] .outfit-color-opt--blue { color: #7eb8e8; }
html[data-scheme="dark"] .outfit-color-opt--green { color: #7dce84; }
html[data-scheme="dark"] .outfit-color-opt--orange { color: #f0a45a; }
html[data-scheme="dark"] .outfit-color-opt--pink { color: #f09cbc; }
html[data-scheme="dark"] .outfit-color-opt--purple { color: #b69aec; }
html[data-scheme="dark"] .outfit-color-opt--red { color: #f07a7a; }
html[data-scheme="dark"] .outfit-color-opt--teal { color: #5ec8cb; }
html[data-scheme="dark"] .outfit-color-opt--yellow { color: #e8c85a; }
html[data-scheme="dark"] .outfit-color-opt--metallics { color: #e0c06a; }
.outfit-access-note {
  font-size: 0.82rem;
  margin: -0.5rem 0 1rem;
}
.outfit-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.15rem;
  min-height: 12rem;
}
@media (max-width: 1100px) {
  .outfit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .outfit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .outfit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }
}
@media (max-width: 400px) {
  .outfit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .outfit-grid .outfit-card__meta {
    padding: 0.45rem 0.5rem 0.55rem;
    font-size: 0.78rem;
  }
}
.outfit-card {
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  cursor: pointer;
}
.outfit-card:hover {
  transform: translateY(-4px);
}
.outfit-card--locked .outfit-card__cover {
  filter: blur(14px) brightness(1.05);
  opacity: 0.34;
}
.outfit-grid .outfit-card__items {
  display: none;
}
.outfit-grid .outfit-card__meta {
  padding-bottom: 0.85rem;
}
.chip--favorites {
  font-size: 0.78rem;
  padding: 0.38rem 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.chip--favorites .outfit-filter-icon,
.chip--favorites [data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  width: 0.95rem;
  height: 0.95rem;
}
.chip--favorites svg {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
}
.outfit-filters .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  height: 2.25rem;
  box-sizing: border-box;
}
/* Icon chips: less left pad so icon↔edge matches text↔edge visually */
.outfit-filters .chip:has(.outfit-filter-icon) {
  padding-left: 0.55rem;
  padding-right: 0.88rem;
}
.outfit-filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  width: 0.95rem;
  height: 0.95rem;
}
.outfit-filter-icon svg {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
  stroke-width: 2.6;
  fill: none;
}
.outfit-filters .roadmap-dropdown__option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.outfit-filters .roadmap-dropdown__value {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.outfit-filters .roadmap-dropdown__value .outfit-filter-icon,
.outfit-filters .roadmap-dropdown__option .outfit-filter-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}
.outfit-filters .roadmap-dropdown__value .outfit-filter-icon svg,
.outfit-filters .roadmap-dropdown__option .outfit-filter-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}
.outfit-filter-icon--female {
  color: #ff5a9a !important;
}
.outfit-filter-icon--female svg {
  stroke: #ff5a9a !important;
}
.outfit-filter-icon--male {
  color: #5eb8e8;
}
.outfit-filter-icon--female-plus {
  color: #9b6bcc;
}
.outfit-filter-icon--tv {
  color: #f5c518;
}
.outfit-filter-icon--tv svg {
  fill: currentColor;
  stroke: none;
  width: 0.95rem;
  height: 0.95rem;
}
.outfit-filter-icon--kids img {
  display: block;
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}
.outfit-filters .chip.is-active .outfit-filter-icon--female,
.outfit-filters .chip.is-active .outfit-filter-icon--male,
.outfit-filters .chip.is-active .outfit-filter-icon--female-plus,
.outfit-filters .chip.is-active .outfit-filter-icon--tv {
  /* Keep badge colors readable on the soft pink selected chip */
  filter: none;
}
.outfit-card--new::after {
  content: "New";
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: var(--r-pill);
  background: var(--badge-new-bg);
  color: var(--badge-new-text);
}
.outfit-card__media {
  position: relative;
  overflow: hidden;
  /* Light twin of dark: quiet cool paper, no theme wash, no dark foot */
  background: linear-gradient(180deg, #f5f4f7 0%, #e3e1e8 100%);
}
html[data-scheme="dark"] .outfit-card__media {
  background: linear-gradient(180deg, #0c0e15 0%, #3f3846 100%);
}
.outfit-card__view {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
}
.outfit-card__gender--female {
  color: #ff5a9a !important;
}
.outfit-card__gender--female svg {
  stroke: #ff5a9a !important;
}
.outfit-card__gender--male {
  color: #5eb8e8;
}
.outfit-card__gender--female-plus {
  color: #9b6bcc;
}
.outfit-card__gender,
.outfit-card__kid,
.outfit-card__tv-star {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 4;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  pointer-events: none;
}
.outfit-card__favorite-wrap {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  right: auto;
  z-index: 5;
  pointer-events: auto;
}
/* Match vault card like control (square heart + corner count badge). */
.outfit-card__favorite {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 1;
  width: 2.15rem;
  height: 2.15rem;
  min-width: 2.15rem;
  padding: 0;
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  background: var(--surface);
  box-shadow: none;
  cursor: pointer;
  color: var(--accent);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  pointer-events: auto;
}
.outfit-card__favorite:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: none;
}
.outfit-card__favorite-count {
  pointer-events: auto;
}
.outfit-card__favorite-count[hidden],
.outfit-card__favorite-count:empty {
  display: none !important;
}
.outfit-card__badges {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
}
.outfit-card__badges .outfit-card__gender,
.outfit-card__badges .outfit-card__kid,
.outfit-card__badges .outfit-card__tv-star,
.outfit-card__badges .outfit-card__bakeoff {
  position: static;
  top: auto;
  right: auto;
}
.outfit-card__gender svg {
  width: 1.2rem;
  height: 1.2rem;
  stroke-width: 2.8;
}
.outfit-card__kid svg {
  width: 1rem;
  height: 1rem;
}
.outfit-card__kid img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
  display: block;
}
.outfit-card__tv-star {
  color: #f5c518;
}
.outfit-card__tv-star svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  stroke: none;
}
.outfit-card__bakeoff {
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--accent);
}
.outfit-card__bakeoff [data-nav-art] {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}
.outfit-card__favorite svg {
  display: block;
  width: 1rem;
  height: 1rem;
  margin: 0;
  transform: none;
  stroke: var(--accent);
  fill: none;
}
.outfit-card__favorite [data-icon] {
  display: contents;
}
.outfit-card__favorite.is-favorited {
  color: var(--text);
  border-color: var(--accent);
  background: var(--surface);
}
.outfit-card__favorite.is-favorited:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--text);
}
.outfit-card__favorite.is-favorited svg {
  fill: var(--accent);
  stroke: var(--accent);
}
.outfit-card__cover {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
  filter: drop-shadow(0 8px 16px rgba(15, 18, 28, 0.1));
}
html[data-scheme="dark"] .outfit-card__cover {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
}
.outfit-card__expand {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 2;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--text-on-accent-soft);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  pointer-events: none;
}
.outfit-card__expand svg {
  width: 1rem;
  height: 1rem;
  display: block;
}
.outfit-card:hover .outfit-card__expand,
.outfit-card:focus-within .outfit-card__expand {
  opacity: 1;
  transform: scale(1);
}
.outfit-card__lock {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(42, 38, 41, 0.86);
  backdrop-filter: blur(6px);
  color: var(--text-on-accent-soft);
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.outfit-card--locked .outfit-card__lock {
  opacity: 1;
}
.outfit-card__lock svg {
  width: 1.25rem;
  height: 1.25rem;
}
.outfit-card__title {
  padding: 0.75rem 1rem 0.15rem;
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
  border-top: 3px solid #ff5a9a;
}
.outfit-grid .outfit-card:not(:has(.outfit-card__byline)) .outfit-card__title {
  padding-bottom: 0.85rem;
}
.outfit-card__byline {
  display: block;
  margin: 0;
  padding: 0 0.75rem 0.75rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.3;
  color: var(--text-muted);
}
.outfit-card__byline strong {
  font-weight: 700;
  font-style: italic;
  color: var(--text);
}
.outfit-grid .outfit-card:has(.outfit-card__byline) .outfit-card__meta {
  padding-bottom: 0.15rem;
}
.outfit-card[data-outfit-type="male"] .outfit-card__title {
  border-top-color: #5eb8e8;
}
.outfit-card[data-outfit-type="female-plus"] .outfit-card__title {
  border-top-color: #9b6bcc;
}
.outfit-card[data-outfit-type="kids"] .outfit-card__title {
  border-top-color: #f8944a;
}
.outfit-card__meta {
  padding: 0 0 0.25rem;
}
.outfit-card__items {
  list-style: none;
  padding: 0.5rem 1rem 1rem;
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.outfit-card__items li {
  padding: 0.15rem 0;
}
.outfit-empty {
  text-align: center;
  padding: 2.5rem 1rem;
}
.outfit-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.outfit-pagination[hidden],
#outfit-first[hidden],
#outfit-prev[hidden],
#outfit-next[hidden],
#outfit-last[hidden],
#assets-first[hidden],
#assets-prev[hidden],
#assets-next[hidden],
#assets-last[hidden] {
  display: none !important;
}
.outfit-pagination__jump {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}
.outfit-pagination__jump label {
  margin: 0;
}
.outfit-pagination__input {
  width: 3.4rem;
  padding: 0.38rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font: inherit;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  background: var(--surface);
  -moz-appearance: textfield;
}
.outfit-pagination__input::-webkit-outer-spin-button,
.outfit-pagination__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.outfit-pagination__input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}
.outfit-pagination__of {
  white-space: nowrap;
}
.outfit-pagination__status {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Outfit lightbox */
body.outfit-lightbox-open {
  overflow: hidden;
}
.outfit-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(69, 53, 60, 0.45);
  backdrop-filter: blur(8px);
}
.outfit-lightbox.is-open {
  display: flex;
}
.outfit-lightbox__frame {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: min(800px, 100%);
  max-height: calc(100vh - 2.5rem);
}
.outfit-lightbox__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-raised);
  padding: 0.7rem 1.15rem 1.15rem;
  max-height: calc(100vh - 2.5rem);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.outfit-lightbox__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  margin: 0 0 0.35rem;
}
.outfit-lightbox__close {
  position: static;
  top: auto;
  right: auto;
  margin: 0;
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  place-content: center;
  line-height: 0;
}
.outfit-lightbox__share {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: auto;
  height: auto;
  min-height: 2.1rem;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.outfit-lightbox__share:hover,
.outfit-lightbox__share:focus-visible {
  background: var(--canvas-2);
  color: var(--accent-deep);
  border-color: var(--border-hi);
  transform: none;
}
.outfit-lightbox__share svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.outfit-lightbox__intro {
  padding: 0.05rem 0.4rem 0.95rem;
  flex-shrink: 0;
}
.outfit-lightbox__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  text-align: center;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.outfit-lightbox__title-badges[hidden] {
  display: none !important;
}
.outfit-lightbox__chip--bakeoff {
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.outfit-lightbox__chip [data-nav-art],
.outfit-lightbox__chip .nav__art {
  width: 0.78rem;
  height: 0.78rem;
  display: block;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.outfit-lightbox__credit {
  margin: 0.2rem 0 0;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  color: var(--text-muted);
}
.outfit-lightbox__credit[hidden] {
  display: none;
}
.outfit-lightbox__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.32rem;
  margin-top: 0.35rem;
}
.outfit-lightbox__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.16rem 0.55rem;
  border-radius: var(--r-pill);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: color-mix(in srgb, var(--accent-soft) 38%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}
.outfit-lightbox__chip svg {
  width: 0.7rem;
  height: 0.7rem;
  stroke: currentColor;
}
.outfit-lightbox__chip [data-icon="star"] svg {
  fill: #f5c518;
  stroke: none;
}
.outfit-lightbox__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 0.95rem;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}
.outfit-lightbox__media {
  border-radius: 0;
  overflow: visible;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.outfit-lightbox__figure {
  display: flex;
  flex-direction: column;
  margin: 0;
  width: auto;
  height: 100%;
  max-height: min(68vh, 620px);
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  padding: 0.55rem 0.55rem 0.35rem;
  background: linear-gradient(180deg, #f5f4f7 0%, #e3e1e8 100%);
}
html[data-scheme="dark"] .outfit-lightbox__figure {
  background: linear-gradient(180deg, #0c0e15 0%, #3f3846 100%);
}
.outfit-lightbox__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-md);
  background: transparent;
  filter: drop-shadow(0 10px 18px rgba(15, 18, 28, 0.1));
}
html[data-scheme="dark"] .outfit-lightbox__img {
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4));
}
.outfit-lightbox__details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0.85rem 0.95rem 0.9rem;
  border-radius: var(--r-md);
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  background: color-mix(in srgb, var(--canvas-2) 82%, var(--surface));
}
.outfit-lightbox__details-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
  flex-shrink: 0;
}
.outfit-lightbox__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.outfit-lightbox__count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-faint);
  white-space: nowrap;
}
.outfit-lightbox__items {
  list-style: none;
  margin: 0 0 0.7rem;
  padding: 0;
  font-size: 0.86rem;
  color: var(--text);
  flex: 0 1 auto;
  min-height: 0;
  overflow: auto;
}
.outfit-lightbox__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.38rem 0.05rem;
  position: relative;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
}
.outfit-lightbox__item:last-child {
  border-bottom: none;
}
.outfit-lightbox__item-num {
  flex-shrink: 0;
  width: 1.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}
.outfit-lightbox__item-name {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}
.outfit-lightbox__item .outfit-lightbox__copied {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  opacity: 1;
  transform: none;
  pointer-events: none;
}
.outfit-lightbox__copied {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--good);
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.outfit-lightbox__item.is-copied .outfit-lightbox__item-name {
  color: var(--good);
}
.outfit-lightbox__item.is-copied .outfit-lightbox__copied {
  opacity: 1;
  transform: translateX(0);
}
.outfit-lightbox__copy {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}
.outfit-lightbox__copy:hover {
  color: var(--accent-deep);
  background: var(--accent-soft);
}
.outfit-lightbox__item.is-copied .outfit-lightbox__copy {
  background: rgba(109, 191, 150, 0.18);
  color: var(--good);
}
.outfit-lightbox__copy svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke: currentColor;
}
.outfit-lightbox__copy-all {
  margin-top: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--border) 90%, var(--accent-soft));
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--accent-deep);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.outfit-lightbox__copy-all:hover {
  background: var(--accent-soft);
  border-color: transparent;
}
.outfit-lightbox__copy-all[hidden] {
  display: none;
}
.outfit-lightbox__copy-all.is-copied {
  color: var(--good);
  border-color: color-mix(in srgb, var(--good) 35%, var(--border));
  background: rgba(109, 191, 150, 0.14);
}
.outfit-lightbox__copy-all svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
}
.outfit-lightbox__nav {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--accent-deep);
  box-shadow: var(--shadow-soft);
}
.product-detail-lightbox__frame > .product-detail-lightbox__nav {
  position: relative;
  z-index: 9;
}
.outfit-lightbox__nav svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  display: block;
}
.outfit-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
html[data-scheme="dark"] .outfit-lightbox__details {
  background: color-mix(in srgb, var(--canvas-2) 55%, var(--surface));
}
