:root {
  color-scheme: light;
  --ink: #181513;
  --muted: #80776f;
  --line: rgba(24, 21, 19, 0.1);
  --paper: #fffdf9;
  --cream: #f2eadf;
  --stone: #d9cec2;
  --sage: #b4bda9;
  --clay: #bd856f;
  --charcoal: #24211f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(189, 133, 111, 0.24), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgba(180, 189, 169, 0.28), transparent 24rem),
    linear-gradient(135deg, #f8f3ec 0%, #e6ddd3 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), background 180ms ease, box-shadow 180ms ease, opacity 180ms ease, filter 180ms ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

button:active,
a:active {
  transform: scale(0.97);
}

img {
  display: block;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.phone {
  position: relative;
  width: min(100%, 430px);
  height: min(920px, calc(100vh - 36px));
  min-height: min(720px, calc(100vh - 36px));
  overflow: hidden;
  border: 1px solid rgba(24, 21, 19, 0.08);
  border-radius: 34px;
  background: #fffaf4;
  box-shadow: 0 32px 80px rgba(52, 38, 30, 0.24);
}

.content {
  height: 100%;
  overflow-y: auto;
  padding: 100px 14px 106px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  animation: screenIn 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes softPop {
  0% { opacity: 0; transform: scale(0.88) translateY(10px); }
  55% { opacity: 1; transform: scale(1.04) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -180% 0; }
  100% { background-position: 180% 0; }
}

@keyframes modalRise {
  from { opacity: 0; transform: translateY(26px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes saveBurst {
  0% { opacity: 0; transform: translate(-50%, 18px) scale(0.7); }
  28% { opacity: 1; transform: translate(-50%, 0) scale(1.06); }
  100% { opacity: 0; transform: translate(-50%, -46px) scale(0.92); }
}

@keyframes gentleReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.content::-webkit-scrollbar,
.filter-chips::-webkit-scrollbar,
.trend-row::-webkit-scrollbar,
.collection-strip::-webkit-scrollbar,
.shop-strip::-webkit-scrollbar,
.feature-pills::-webkit-scrollbar,
.suggestions::-webkit-scrollbar,
.filter-row::-webkit-scrollbar {
  display: none;
}

.store-row::-webkit-scrollbar,
.similar-strip::-webkit-scrollbar {
  display: none;
}

.screen-welcome .content,
.screen-quiz .content {
  padding: 22px 18px 28px;
}

.screen-chat .content {
  padding-bottom: 132px;
}

.topbar {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px 12px;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.96), rgba(255, 250, 244, 0.68));
  backdrop-filter: blur(22px);
  animation: gentleReveal 420ms ease both;
}

.loading-overlay {
  position: absolute;
  z-index: 8;
  inset: 86px 14px 94px;
  display: grid;
  align-content: start;
  gap: 14px;
  border-radius: 26px;
  padding: 14px;
  background: rgba(255, 250, 244, 0.82);
  backdrop-filter: blur(18px);
  animation: screenIn 180ms ease both;
  pointer-events: none;
}

.skeleton {
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(100deg, rgba(239, 229, 218, 0.68) 0%, rgba(255, 253, 249, 0.96) 48%, rgba(239, 229, 218, 0.68) 100%);
  background-size: 220% 100%;
  animation: shimmer 950ms linear infinite;
}

.skeleton-pill {
  width: 72%;
  height: 46px;
  border-radius: 999px;
}

.skeleton-hero {
  height: 290px;
  border-radius: 30px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.skeleton-card {
  height: 180px;
}

.save-pulse {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 126px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px;
  color: #fffdf9;
  background: rgba(24, 21, 19, 0.9);
  box-shadow: 0 18px 44px rgba(52, 38, 30, 0.28);
  backdrop-filter: blur(14px);
  animation: saveBurst 900ms ease both;
  pointer-events: none;
}

.save-pulse span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--clay);
  animation: softPop 540ms ease both;
}

.floating-action {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 106px;
  min-width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #fffdf9;
  background: var(--charcoal);
  font-weight: 860;
  box-shadow: 0 18px 44px rgba(52, 38, 30, 0.28);
  animation: floatUp 4.8s ease-in-out infinite;
}

.floating-action:hover {
  box-shadow: 0 22px 54px rgba(52, 38, 30, 0.34);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.topbar h1,
.welcome h1,
.question-card h2,
.feed-hero h2,
.outfit-card h2,
.profile-card h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: 1.32rem;
}

.avatar-btn,
.profile-avatar,
.mark {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--charcoal);
  color: #fffdf9;
  font-weight: 850;
}

.avatar-btn {
  width: 42px;
  height: 42px;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 12px 28px rgba(26, 22, 19, 0.18);
}

.avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.mark {
  width: 34px;
  height: 34px;
}

.hero-stack {
  position: relative;
  height: 348px;
  margin: 28px 0 24px;
}

.hero-img {
  position: absolute;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(43, 35, 29, 0.18);
  animation: gentleReveal 560ms ease both;
}

.hero-img-1 {
  left: 0;
  top: 34px;
  width: 58%;
  height: 258px;
  animation-delay: 60ms;
}

.hero-img-2 {
  right: 0;
  top: 0;
  width: 52%;
  height: 210px;
  animation-delay: 140ms;
}

.hero-img-3 {
  right: 20px;
  bottom: 0;
  width: 54%;
  height: 172px;
  animation-delay: 220ms;
}

.welcome-copy h1 {
  max-width: 12ch;
  font-size: 2.48rem;
  line-height: 0.96;
}

.welcome-copy p:last-child,
.question-card p,
.stylist-card p,
.upload-card p,
.profile-card p,
.shop-panel p,
.concept-card h3 {
  color: var(--muted);
  line-height: 1.5;
}

.button-stack,
.quiz-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.button-stack {
  flex-direction: column;
  padding-top: 20px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.glass-btn {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 780;
}

.primary-btn {
  background: var(--charcoal);
  color: #fffdf9;
}

.secondary-btn,
.ghost-btn {
  color: var(--ink);
  background: #efe5da;
}

.glass-btn {
  width: fit-content;
  min-height: 40px;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(14px);
}

.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.quiz {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.quiz-head,
.section-head,
.closet-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quiz-head span {
  color: var(--muted);
  font-weight: 800;
}

.progress {
  height: 8px;
  margin: 20px 0 28px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee6dc;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--charcoal);
  transition: width 180ms ease;
}

.question-card,
.stylist-card,
.concept-card,
.upload-card,
.outfit-card,
.profile-card,
.pref-row,
.closet-item,
.saved-row,
.shop-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.76);
  animation: gentleReveal 460ms ease both;
}

.question-card {
  padding: 22px;
}

.question-card h2 {
  font-size: 2rem;
  line-height: 1.05;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip,
.filter-row button,
.suggestions button,
.trend-row button {
  flex: 0 0 auto;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
  background: #efe5da;
  font-weight: 740;
  white-space: nowrap;
}

.chip.selected,
.choice.selected,
.filter-row .selected {
  background: var(--charcoal);
  color: #fffdf9;
  box-shadow: 0 10px 24px rgba(52, 38, 30, 0.18);
  animation: softPop 260ms ease both;
}

.choice-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  border-radius: 18px;
  padding: 12px 14px;
  color: var(--ink);
  background: #efe5da;
  text-align: left;
}

.choice span {
  font-weight: 800;
}

.choice small {
  max-width: 14ch;
  color: inherit;
  opacity: 0.75;
}

.palette-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.swatch-wrap {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--muted);
  font-weight: 700;
}

.swatch {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(37, 33, 30, 0.08);
  border-radius: 18px;
}

.swatch-black { background: #252423; }
.swatch-ivory { background: #f4eee6; }
.swatch-sage { background: var(--sage); }
.swatch-denim { background: #6f8395; }
.swatch-clay { background: var(--clay); }

.quiz-summary {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 10px 0 14px;
}

.quiz-summary span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255, 253, 249, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
}

.palette-row.expanded {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.swatch-wrap {
  border: 0;
  padding: 0;
  background: transparent;
}

.swatch-wrap.selected .swatch {
  box-shadow: 0 0 0 3px var(--charcoal), 0 12px 24px rgba(52, 38, 30, 0.16);
  transform: translateY(-2px);
}

.swatch-wrap.selected small {
  color: var(--ink);
  font-weight: 850;
}


.quiz-actions {
  justify-content: flex-end;
  padding-top: 20px;
}

.home,
.chat,
.outfits,
.closet,
.saved,
.profile,
.detail-screen,
.board-detail-screen {
  display: grid;
  gap: 16px;
}

.discovery-controls {
  display: grid;
  gap: 10px;
}

.search-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: rgba(255, 253, 249, 0.86);
  box-shadow: 0 12px 32px rgba(52, 38, 30, 0.08);
}

.search-bar span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-bar input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 720;
}

.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.filter-chips button {
  flex: 0 0 auto;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: #efe5da;
  font-weight: 780;
  white-space: nowrap;
}

.filter-chips button.active {
  color: #fffdf9;
  background: var(--charcoal);
}

.feed-hero {
  position: relative;
  height: 420px;
  min-height: 420px;
  overflow: hidden;
  border-radius: 30px;
  background: #241f1d;
}

.feed-hero img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
}

.feed-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.72) 100%);
}

.feed-hero-copy {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  color: #fffdf9;
}

.feed-hero-copy .eyebrow,
.feed-hero-copy p {
  color: rgba(255, 253, 249, 0.78);
}

.feed-hero-copy h2 {
  max-width: 12ch;
  font-size: 2.25rem;
  line-height: 0.94;
}

.feed-hero-copy p {
  margin: 0;
}

.trend-row,
.collection-strip,
.shop-strip,
.feature-pills,
.suggestions,
.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.trend-row button {
  min-height: 38px;
  color: #fffdf9;
  background: var(--charcoal);
}

.algorithm-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 250, 244, 0.94), rgba(236, 224, 212, 0.92));
}

.algorithm-card h3,
.algorithm-card p {
  margin: 0;
}

.algorithm-card h3 {
  font-size: 1.18rem;
  line-height: 1.14;
}

.algorithm-card p:last-child {
  color: var(--muted);
  line-height: 1.42;
}

.personalization-rail {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
  background: rgba(255, 253, 249, 0.78);
  box-shadow: 0 16px 42px rgba(52, 38, 30, 0.08);
}

.personalization-rail p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.38;
}

.community-section,
.community-detail-screen,
.community-breakdown,
.community-recreate {
  display: grid;
  gap: 14px;
}

.community-hero-card,
.community-detail-hero {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.84);
  animation: modalRise 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.community-hero-card {
  display: grid;
  grid-template-columns: 43% 1fr;
}

.community-hero-card > img,
.community-detail-hero > img {
  width: 100%;
  height: 100%;
  min-height: 238px;
  object-fit: cover;
}

.community-hero-card > div,
.community-detail-hero > div {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 15px;
}

.community-hero-card h3,
.community-hero-card p,
.community-detail-hero h2,
.community-detail-hero p {
  margin: 0;
}

.community-hero-card p:not(.eyebrow),
.community-detail-hero p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.38;
}

.community-actions,
.community-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.community-actions button,
.community-card-actions button,
.community-recreate button,
.breakdown-list button {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  color: #fffdf9;
  background: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 820;
}

.community-actions button:last-child,
.community-card-actions button:last-child,
.community-recreate button {
  color: var(--ink);
  background: #efe5da;
}

.community-strip,
.stylist-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 58%;
  gap: 10px;
  overflow-x: auto;
}

.community-look-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 9px;
  background: rgba(255, 253, 249, 0.82);
  animation: gentleReveal 460ms ease both;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.community-look-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(52, 38, 30, 0.16);
}

.community-look-card > button {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 0;
  background: var(--charcoal);
}

.community-look-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 520ms ease;
}

.community-look-card:hover img {
  transform: scale(1.05);
}

.community-look-card > button span {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 6px 9px;
  color: #fffdf9;
  background: rgba(0, 0, 0, 0.48);
  font-size: 0.72rem;
  font-weight: 850;
}

.community-look-card > div {
  display: grid;
  gap: 6px;
}

.community-look-card small,
.stylist-tile span,
.stylist-tile small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
}

.community-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.community-tags em {
  border-radius: 999px;
  padding: 6px 8px;
  color: var(--muted);
  background: #efe5da;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 820;
}

.community-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.community-panel {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.92), rgba(239, 229, 218, 0.82));
}

.community-panel h3,
.community-panel p {
  margin: 0;
}

.community-panel p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.36;
}

.community-panel button {
  width: fit-content;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 11px;
  color: #fffdf9;
  background: var(--charcoal);
  font-size: 0.76rem;
  font-weight: 820;
}

.stylist-strip {
  grid-auto-columns: 42%;
}

.stylist-tile {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 9px;
  background: rgba(255, 253, 249, 0.82);
}

.stylist-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 17px;
}

.community-detail-hero > img {
  height: 430px;
}

.breakdown-list {
  display: grid;
  gap: 8px;
}

.breakdown-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 253, 249, 0.82);
}

.breakdown-list span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #fffdf9;
  background: var(--charcoal);
  font-weight: 850;
}

.community-recreate {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
  background: rgba(255, 253, 249, 0.82);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.signal-grid button {
  display: grid;
  gap: 4px;
  min-height: 72px;
  border-radius: 18px;
  padding: 12px;
  color: var(--ink);
  background: linear-gradient(135deg, #f5ede4, #fffdf9);
  text-align: left;
}

.signal-grid span {
  font-weight: 860;
}

.signal-grid small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.section-head h3 {
  margin: 0;
  font-size: 1.08rem;
}

.section-head button {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  background: #efe5da;
  color: var(--ink);
  font-weight: 760;
}

.masonry-feed {
  columns: 2;
  column-gap: 10px;
}

.feed-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 10px;
  overflow: hidden;
  border-radius: 22px;
  background: #201c19;
  text-align: left;
  break-inside: avoid;
  animation: gentleReveal 520ms ease both;
  will-change: transform;
}

.feed-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 240ms ease;
}

.feed-card:hover,
.feed-card:focus-visible {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 18px 42px rgba(52, 38, 30, 0.22);
}

.feed-card:hover img,
.feed-card:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1.04) contrast(1.02);
}

.feed-card.short { height: 190px; }
.feed-card.medium { height: 255px; }
.feed-card.tall { height: 330px; }

.feed-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.72) 100%);
}

.feed-card div {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 4px;
  color: #fffdf9;
}

.feed-card small {
  color: rgba(255, 253, 249, 0.75);
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.feed-card strong {
  font-size: 0.95rem;
  line-height: 1.08;
}

.feed-save {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 6px 9px;
  color: #fffdf9;
  background: rgba(0, 0, 0, 0.42);
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, background 180ms ease;
}

.feed-save:hover {
  transform: scale(1.08);
  background: rgba(189, 133, 111, 0.86);
}

.collection-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 74%;
}

.collection-strip.stacked {
  grid-auto-flow: row;
  grid-auto-columns: auto;
}

.collection-tile {
  position: relative;
  display: block;
  width: 100%;
  min-height: 180px;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #211e1b;
  padding: 0;
  text-align: left;
  animation: gentleReveal 560ms ease both;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.collection-tile img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  transition: transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.collection-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(52, 38, 30, 0.2);
}

.collection-tile:hover img {
  transform: scale(1.05);
}

.collection-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
}

.collection-tile div {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 4px;
  color: #fffdf9;
}

.collection-tile small {
  color: rgba(255, 253, 249, 0.72);
}

.shop-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.section-head.inset {
  padding: 0;
}

.shop-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 45%;
}

.shop-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  animation: gentleReveal 500ms ease both;
}

.shop-card,
.outfit-card,
.closet-item,
.board-card,
.feed-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.shop-card:hover,
.outfit-card:hover,
.closet-item:hover,
.board-card:hover,
.feed-card:hover {
  transform: translateY(-1px);
}

.shop-card img {
  width: 100%;
  aspect-ratio: 0.82;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.shop-card:hover img {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 28px rgba(52, 38, 30, 0.18);
}

.shop-card div {
  display: grid;
  gap: 2px;
}

.shop-card small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.shop-card strong {
  line-height: 1.12;
}

.shop-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 740;
}

.shop-card a {
  width: fit-content;
  margin-top: 5px;
  border-radius: 999px;
  padding: 7px 11px;
  color: #fffdf9;
  background: var(--charcoal);
  font-size: 0.72rem;
  font-weight: 820;
  white-space: nowrap;
}

.shop-card-actions {
  display: flex !important;
  align-items: center;
  gap: 6px !important;
  flex-wrap: wrap;
}

.shop-card-actions button {
  width: fit-content;
  margin-top: 5px;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink);
  background: #efe5da;
  font-size: 0.78rem;
  font-weight: 820;
}

.shop-panel p {
  margin: 0;
  font-size: 0.84rem;
}

.stylist-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.premium-stylist {
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.92), rgba(239, 229, 218, 0.88));
}

.ai-dot {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: var(--sage);
  font-weight: 850;
}

.stylist-avatar {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 253, 249, 0.9);
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(52, 38, 30, 0.16);
}

.stylist-card h2 {
  margin: 0 0 3px;
}

.stylist-card p {
  margin: 0;
}

.feature-pills span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--muted);
  background: #efe5da;
  font-size: 0.78rem;
  font-weight: 760;
}

.chat-session-manager {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 10px;
  align-items: stretch;
}

.chat-side-tabs {
  display: grid;
  gap: 8px;
}

.chat-side-tabs button {
  min-height: 58px;
  border-radius: 18px;
  padding: 0 8px;
  color: var(--muted);
  background: #efe5da;
  font-size: 0.78rem;
  font-weight: 850;
}

.chat-side-tabs button.selected {
  color: #fffdf9;
  background: var(--charcoal);
  box-shadow: 0 12px 26px rgba(52, 38, 30, 0.16);
}

.chat-tab-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  background: rgba(255, 253, 249, 0.84);
  animation: gentleReveal 300ms ease both;
}

.chat-tab-panel h3,
.chat-tab-panel p {
  margin: 0;
}

.chat-tab-panel p:not(.eyebrow),
.saved-chat-list small {
  color: var(--muted);
  line-height: 1.32;
}

.chat-manager-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.chat-manager-actions button,
.saved-chat-panel .section-head button {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--charcoal);
  color: #fffdf9;
  font-size: 0.76rem;
  font-weight: 820;
}

.chat-manager-actions button:last-child,
.saved-chat-panel .section-head button {
  color: var(--ink);
  background: #efe5da;
}

.section-head.compact {
  padding: 0;
}

.saved-chat-list {
  display: grid;
  gap: 8px;
  max-height: 214px;
  overflow-y: auto;
  padding-right: 2px;
}

.saved-chat-list button {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(24, 21, 19, 0.08);
  border-radius: 18px;
  padding: 10px;
  background: #fffaf4;
  color: var(--ink);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.saved-chat-list button:hover,
.saved-chat-list button.active {
  transform: translateY(-1px);
  border-color: rgba(189, 133, 111, 0.42);
  box-shadow: 0 12px 24px rgba(52, 38, 30, 0.1);
}

.saved-chat-list span,
.saved-chat-list em {
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 820;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.saved-chat-list strong {
  font-size: 0.9rem;
  line-height: 1.05;
}

.ai-label {
  width: fit-content;
  border: 1px solid rgba(24, 21, 19, 0.08);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--muted);
  background: rgba(255, 253, 249, 0.78);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.messages {
  display: grid;
  gap: 10px;
}

.message-wrap {
  display: grid;
  gap: 8px;
}

.message-wrap.user {
  justify-items: end;
}

.message {
  max-width: 86%;
  border-radius: 20px;
  padding: 13px 15px;
  line-height: 1.4;
  animation: softPop 260ms ease both;
}

.message.ai {
  justify-self: start;
  background: #efe5da;
}

.message.user {
  justify-self: end;
  background: var(--charcoal);
  color: #fffdf9;
}

.stylist-visual-card {
  display: grid;
  gap: 12px;
  max-width: 96%;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 253, 249, 0.88);
  animation: modalRise 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.stylist-visual-card > img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.stylist-visual-card > div {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.stylist-visual-card h3,
.stylist-visual-card p {
  margin: 0;
}

.stylist-visual-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.4;
}

.mini-product-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-product-row .shop-card img {
  border-radius: 12px;
}

.mini-product-row .shop-card strong {
  font-size: 0.72rem;
}

.mini-product-row .shop-card span,
.mini-product-row .shop-card small {
  font-size: 0.64rem;
}

.mini-product-row .shop-card-actions {
  display: none !important;
}

.chat-card-actions {
  display: flex;
  gap: 7px;
  overflow-x: auto;
}

.chat-card-actions button {
  flex: 0 0 auto;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--charcoal);
  color: #fffdf9;
  font-weight: 780;
}

.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.composer input {
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: 0;
  padding: 0 12px;
  background: transparent;
}

.composer button,
.save-btn,
.saved-row button {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--charcoal);
  color: #fffdf9;
  font-weight: 760;
}

.concept-card,
.upload-card {
  padding: 16px;
  background: linear-gradient(135deg, #fffaf4, #ece0d4);
}

.empty-state {
  display: grid;
  gap: 8px;
  border: 1px dashed rgba(24, 21, 19, 0.18);
  border-radius: 24px;
  padding: 12px;
  background: rgba(255, 253, 249, 0.72);
}

.empty-state-image {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 18px;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.42;
}

.empty-state button {
  width: fit-content;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  color: #fffdf9;
  background: var(--charcoal);
  font-weight: 780;
}

.store-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.store-row button {
  flex: 0 0 auto;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  background: #efe5da;
  color: var(--ink);
  font-weight: 780;
}

.store-row button.selected {
  background: var(--charcoal);
  color: #fffdf9;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-grid .shop-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px;
  background: rgba(255, 253, 249, 0.76);
}

.concept-card h3,
.upload-card h3 {
  margin: 0;
  line-height: 1.2;
}

.upload-card {
  display: grid;
  grid-template-columns: minmax(108px, 38%) 1fr;
  gap: 12px;
  align-items: stretch;
  overflow: hidden;
}

.upload-card > img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
  border-radius: 20px;
}

.upload-card > div {
  align-self: center;
}

.upload-card p:last-child {
  margin: 8px 0 0;
}

.look-feed {
  display: grid;
  gap: 18px;
}

.outfit-card {
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.outfit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(52, 38, 30, 0.18);
}

.outfit-image-button {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
}

.outfit-image-button img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 580ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.outfit-card:hover .outfit-image-button img {
  transform: scale(1.035);
}

.outfit-body {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.save-btn {
  position: absolute;
  top: 16px;
  right: 16px;
}

.look-why {
  margin: 0;
  max-width: 29ch;
  color: var(--muted);
  line-height: 1.42;
}

.outfit-body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.outfit-body li {
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
  background: #efe5da;
  font-size: 0.84rem;
  font-weight: 730;
}

.look-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 0 14px 14px;
}

.look-actions .primary-btn,
.look-actions .secondary-btn {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.88rem;
}

.shop-this-look {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px 16px;
}

.shop-this-look h3 {
  grid-column: 1 / -1;
  margin: 0;
}

.shop-this-look .shop-card img {
  border-radius: 14px;
}

.shop-this-look .shop-card strong {
  font-size: 0.82rem;
}

.similar-looks {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 14px;
  background: rgba(255, 253, 249, 0.78);
  animation: modalRise 360ms ease both;
}

.similar-looks .section-head {
  align-items: end;
}

.similar-looks .section-head p,
.similar-looks .section-head h3,
.similar-looks > p {
  margin: 0;
}

.similar-looks > p {
  color: var(--muted);
  line-height: 1.42;
}

.similar-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 44%;
  gap: 10px;
  overflow-x: auto;
}

.similar-strip button {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--charcoal);
  text-align: left;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.similar-strip button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(52, 38, 30, 0.18);
}

.similar-strip img {
  width: 100%;
  height: 178px;
  object-fit: cover;
}

.similar-strip span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  color: #fffdf9;
  font-weight: 820;
  line-height: 1.05;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.closet-studio {
  gap: 18px;
}

.closet-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(36, 33, 31, 0.96), rgba(97, 82, 72, 0.9));
  color: #fffdf9;
  animation: modalRise 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.closet-hero h2,
.closet-hero p {
  margin: 0;
}

.closet-hero h2 {
  max-width: 9ch;
  font-size: 1.75rem;
  line-height: 0.98;
}

.closet-hero p:not(.eyebrow) {
  margin-top: 10px;
  color: rgba(255, 253, 249, 0.76);
  line-height: 1.42;
}

.closet-hero .eyebrow {
  color: rgba(255, 253, 249, 0.66);
}

.closet-hero-stack {
  position: relative;
  min-height: 190px;
}

.closet-hero-stack img {
  position: absolute;
  width: 70%;
  height: 120px;
  object-fit: cover;
  border: 2px solid rgba(255, 253, 249, 0.16);
  border-radius: 20px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  animation: floatUp 5.2s ease-in-out infinite;
}

.closet-hero-stack img:nth-child(1) {
  top: 0;
  right: 0;
}

.closet-hero-stack img:nth-child(2) {
  top: 52px;
  left: 0;
  animation-delay: 340ms;
}

.closet-hero-stack img:nth-child(3) {
  right: 12px;
  bottom: 0;
  animation-delay: 680ms;
}

.outfit-canvas {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(24, 21, 19, 0.12);
  border-radius: 26px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(24, 21, 19, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(24, 21, 19, 0.045) 1px, transparent 1px),
    rgba(255, 253, 249, 0.82);
  background-size: 28px 28px;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 249, 0.4);
  animation: gentleReveal 440ms ease both;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.outfit-canvas:hover {
  border-color: rgba(189, 133, 111, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 249, 0.56), 0 18px 42px rgba(52, 38, 30, 0.12);
  transform: translateY(-2px);
}

.canvas-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  min-height: 116px;
}

.canvas-grid button {
  display: grid;
  gap: 5px;
  padding: 0;
  background: transparent;
  text-align: left;
  animation: softPop 260ms ease both;
}

.canvas-grid img {
  width: 100%;
  aspect-ratio: 0.78;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(52, 38, 30, 0.12);
}

.canvas-grid span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 780;
  line-height: 1.05;
  text-overflow: ellipsis;
}

.canvas-empty {
  display: grid;
  place-items: center;
  min-height: 128px;
  border: 1px dashed rgba(24, 21, 19, 0.24);
  border-radius: 20px;
  color: var(--muted);
  font-weight: 780;
}

.canvas-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.closet-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px, 1fr);
  gap: 8px;
  overflow-x: auto;
}

.closet-tabs button {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 68px;
  border-radius: 18px;
  padding: 9px;
  color: var(--ink);
  background: #efe5da;
  font-weight: 820;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.closet-tabs button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(52, 38, 30, 0.12);
}

.closet-tabs button.selected {
  color: #fffdf9;
  background: var(--charcoal);
}

.closet-tabs span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 13px;
  background: rgba(255, 253, 249, 0.42);
}

.closet-tabs span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closet-tabs small {
  font-size: 0.68rem;
}

.closet-tools {
  justify-content: flex-start;
}

.closet-rail,
.ai-pairings,
.closet-prompts,
.closet-detail {
  display: grid;
  gap: 12px;
}

.closet-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 38%;
  gap: 10px;
  overflow-x: auto;
}

.closet-strip.compact {
  grid-auto-columns: 34%;
}

.closet-strip button {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.8);
  text-align: left;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.closet-strip button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(52, 38, 30, 0.16);
}

.closet-strip img {
  width: 100%;
  aspect-ratio: 0.82;
  object-fit: cover;
  border-radius: 15px;
}

.closet-strip strong {
  font-size: 0.82rem;
  line-height: 1.08;
}

.closet-strip span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
}

.closet-strip small {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 6px 8px;
  color: #fffdf9;
  background: rgba(24, 21, 19, 0.72);
  font-size: 0.68rem;
  font-weight: 840;
}

.closet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.closet-item {
  display: grid;
  gap: 7px;
  padding: 12px;
  cursor: grab;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.closet-item:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(189, 133, 111, 0.28);
  box-shadow: 0 18px 38px rgba(52, 38, 30, 0.16);
}

.closet-item:active {
  cursor: grabbing;
}

.closet-item-open {
  width: 100%;
  padding: 0;
  background: transparent;
}

.closet-item img,
.closet-item-open img {
  width: 100%;
  aspect-ratio: 0.88;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 280ms ease;
}

.closet-item:hover img {
  transform: scale(1.025);
}

.fabric {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 20px;
  box-shadow: inset 0 -42px 70px rgba(0, 0, 0, 0.16);
}

.fabric span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fffdf9;
  background: rgba(0, 0, 0, 0.24);
  font-weight: 850;
}

.closet-item strong {
  min-height: 42px;
}

.closet-item span:last-child {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.closet-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.closet-actions button {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 10px;
  color: #fffdf9;
  background: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 780;
}

.closet-actions button:last-child {
  color: var(--ink);
  background: #efe5da;
}

.pairing-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 12px;
  background: rgba(255, 253, 249, 0.82);
  animation: gentleReveal 500ms ease both;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.pairing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(52, 38, 30, 0.14);
}

.pairing-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.pairing-images img {
  width: 100%;
  aspect-ratio: 0.78;
  object-fit: cover;
  border-radius: 14px;
}

.pairing-card h3,
.pairing-card p {
  margin: 0;
}

.pairing-card p {
  color: var(--muted);
  line-height: 1.42;
}

.pairing-card button,
.closet-prompts button {
  width: fit-content;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 12px;
  color: #fffdf9;
  background: var(--charcoal);
  font-weight: 780;
}

.closet-prompts button {
  display: grid;
  width: 100%;
  gap: 4px;
  min-height: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 13px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.82);
  text-align: left;
}

.closet-prompts span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.closet-detail {
  border: 1px solid rgba(24, 21, 19, 0.12);
  border-radius: 28px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.96), rgba(239, 229, 218, 0.92));
  box-shadow: 0 24px 60px rgba(52, 38, 30, 0.14);
  animation: modalRise 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.closet-detail-head {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 12px;
}

.closet-detail-head > img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  border-radius: 22px;
}

.closet-detail h2,
.closet-detail p {
  margin: 0;
}

.closet-detail p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.42;
}

.closet-detail .detail-actions {
  margin-top: 12px;
}

.mini-look-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-look-grid article {
  display: grid;
  gap: 5px;
}

.mini-look-grid img {
  width: 100%;
  aspect-ratio: 0.72;
  object-fit: cover;
  border-radius: 16px;
}

.mini-look-grid strong {
  font-size: 0.78rem;
  line-height: 1.05;
}

.mini-look-grid span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 740;
}

.scan-screen {
  display: grid;
  gap: 16px;
}

.camera-card,
.scan-results {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 12px;
  background: rgba(255, 253, 249, 0.8);
}

.camera-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--charcoal);
}

.camera-frame img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.camera-frame::before,
.camera-frame::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  border-color: rgba(255, 253, 249, 0.9);
}

.camera-frame::before {
  top: 16px;
  left: 16px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.camera-frame::after {
  right: 16px;
  bottom: 16px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.camera-frame span {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #fffdf9;
  background: rgba(0, 0, 0, 0.5);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.scan-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.scan-actions button:last-child:nth-child(3) {
  grid-column: 1 / -1;
}

.scan-actions .primary-btn,
.scan-actions .secondary-btn {
  min-height: 42px;
  padding: 0 12px;
}

.scan-results h2,
.scan-results p {
  margin: 0;
}

.scan-results p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.42;
}

.detected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detected-list span {
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--ink);
  background: #efe5da;
  font-size: 0.78rem;
  font-weight: 760;
}

.scan-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.scan-result-grid .shop-card strong {
  font-size: 0.72rem;
}

.scan-result-grid .shop-card-actions {
  display: none !important;
}

.toast {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  max-width: calc(100% - 40px);
  border-radius: 999px;
  padding: 12px 16px;
  color: #fffdf9;
  background: rgba(24, 21, 19, 0.88);
  box-shadow: 0 16px 40px rgba(24, 21, 19, 0.24);
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(12px);
  animation: softPop 260ms ease both;
}

.saved-moodboard {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  overflow: hidden;
  border-radius: 28px;
  padding: 8px;
  background: var(--charcoal);
  animation: modalRise 380ms ease both;
}

.saved-moodboard img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 520ms ease;
}

.saved-moodboard:hover img {
  transform: scale(1.035);
}

.saved-moodboard div {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border-radius: 22px;
  padding: 14px;
  color: #fffdf9;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.saved-moodboard h2,
.saved-moodboard p {
  margin: 0;
}

.saved-moodboard p:last-child {
  color: rgba(255, 253, 249, 0.78);
  line-height: 1.4;
}

.saved-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.saved-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(52, 38, 30, 0.12);
}

.boards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.board-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 178px;
  overflow: hidden;
  padding: 0;
  border-radius: 22px;
  background: var(--charcoal);
  text-align: left;
  transition: transform 230ms ease, box-shadow 230ms ease;
}

.board-card img {
  width: 100%;
  height: 178px;
  object-fit: cover;
  transition: transform 520ms ease;
}

.board-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 18px 42px rgba(52, 38, 30, 0.2);
}

.board-card:hover img {
  transform: scale(1.055);
}

.board-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.72));
}

.board-card div {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 3px;
  color: #fffdf9;
}

.board-card small {
  color: rgba(255, 253, 249, 0.78);
}

.detail-hero-card,
.board-detail-hero {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.82);
  animation: modalRise 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.detail-hero-card > img,
.board-detail-hero > img {
  width: 100%;
  height: 410px;
  object-fit: cover;
  transition: transform 620ms ease;
}

.detail-hero-card:hover > img,
.board-detail-hero:hover > img {
  transform: scale(1.025);
}

.detail-hero-card > div,
.board-detail-hero > div {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.detail-hero-card h2,
.detail-hero-card p,
.board-detail-hero h2,
.board-detail-hero p {
  margin: 0;
}

.detail-hero-card p:not(.eyebrow),
.board-detail-hero p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.45;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tags span {
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--ink);
  background: #efe5da;
  font-size: 0.82rem;
  font-weight: 760;
}

.why-card {
  display: grid;
  gap: 6px;
  border-radius: 18px;
  padding: 12px;
  background: #efe5da;
  animation: gentleReveal 420ms ease both;
}

.why-card p {
  margin: 0;
}

.why-card p:not(.eyebrow) {
  color: var(--ink);
  line-height: 1.42;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.detail-actions .primary-btn,
.detail-actions .secondary-btn {
  min-height: 42px;
  padding: 0 12px;
  font-size: 0.86rem;
}

.detail-section {
  display: grid;
  gap: 12px;
}

.board-look-list {
  display: grid;
  gap: 12px;
}

.board-look-card {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px;
  background: rgba(255, 253, 249, 0.78);
  animation: gentleReveal 460ms ease both;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.board-look-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(52, 38, 30, 0.14);
}

.board-look-card > img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  border-radius: 16px;
}

.board-look-card > div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.board-look-card h3,
.board-look-card p {
  margin: 0;
}

.board-look-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.board-actions button {
  min-height: 32px;
  border-radius: 999px;
  padding: 0 10px;
  background: #efe5da;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 780;
}

.board-actions button:first-child,
.board-actions button:nth-child(3) {
  background: var(--charcoal);
  color: #fffdf9;
}

.saved-row img {
  width: 72px;
  height: 84px;
  border-radius: 16px;
  object-fit: cover;
}

.saved-row div {
  display: grid;
  gap: 4px;
}

.profile-card {
  display: grid;
  justify-items: center;
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, #fffaf4, #e9ddd0);
}

.profile-avatar {
  width: 76px;
  height: 76px;
  margin-bottom: 12px;
  border-radius: 24px;
  font-size: 1.6rem;
  object-fit: cover;
  box-shadow: 0 16px 30px rgba(52, 38, 30, 0.18);
}

.profile-card p {
  margin-bottom: 0;
}

.pref-list {
  display: grid;
  gap: 10px;
}

.pref-row {
  display: grid;
  gap: 6px;
  padding: 15px;
}

.pref-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.bottom-nav {
  position: absolute;
  z-index: 4;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(37, 33, 30, 0.08);
  border-radius: 26px;
  background: rgba(255, 250, 244, 0.88);
  box-shadow: 0 18px 34px rgba(45, 35, 29, 0.16);
  backdrop-filter: blur(20px);
  animation: modalRise 320ms ease both;
}

.bottom-nav button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 54px;
  border-radius: 18px;
  color: var(--muted);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 760;
}

.bottom-nav button.active {
  color: var(--ink);
  background: #efe5da;
  animation: softPop 220ms ease both;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(53, 51, 48, 0.1);
  font-size: 0.72rem;
}

.nav-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bottom-nav button.active .nav-icon {
  box-shadow: 0 0 0 2px rgba(255, 253, 249, 0.72);
}

@media (max-width: 480px) {
  .app-shell {
    padding: 0;
  }

  .phone {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .welcome-copy h1 {
    font-size: 2.3rem;
  }

  .hero-stack {
    height: 318px;
  }
}

@media (max-height: 760px) and (min-width: 481px) {
  .content {
    padding-top: 92px;
  }

  .topbar {
    padding-top: 18px;
  }

  .screen-welcome .content {
    padding-top: 18px;
  }

  .hero-stack {
    height: 262px;
    margin: 18px 0 18px;
  }

  .hero-img-1 {
    height: 198px;
  }

  .hero-img-2 {
    height: 168px;
  }

  .hero-img-3 {
    height: 136px;
  }

  .welcome-copy h1 {
    max-width: 13ch;
    font-size: 2.02rem;
    line-height: 1;
  }

  .welcome-copy p:last-child {
    margin: 12px 0 0;
  }

  .button-stack {
    padding-top: 12px;
  }

  .feed-hero,
  .feed-hero img {
    height: 330px;
    min-height: 330px;
  }

  .feed-hero-copy h2 {
    max-width: 14ch;
    font-size: 1.82rem;
    line-height: 0.98;
  }

  .feed-hero-copy {
    gap: 7px;
  }

  .feed-card.short { height: 164px; }
  .feed-card.medium { height: 218px; }
  .feed-card.tall { height: 278px; }

  .outfit-card > img {
    height: 310px;
  }

  .outfit-image-button img {
    height: 310px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
