/* ============================================================
   WUTT — AI Personal Stylist (Myanmar) — Design System v2
   "Your city. Your weather. Your look."

   Product: Gen Z Fashion App
   Aesthetic: Editorial · Minimal · Soft Pastel
   Font: Space Grotesk
   Convention: BEM naming
   ============================================================ */

/* --------------------------------------------------------
   CSS Variables — WUTT Color System
   -------------------------------------------------------- */
:root {
  /* === Brand Colors === */
  --wutt-light:      #FFFFFF;
  --wutt-dark:       #111111;
  --wutt-primary:    #C89B8E;   /* Blush — accent, selected state, tags, badges */
  --wutt-deep:       #1F1F1F;   /* Charcoal — headers, dark sections */
  --wutt-energy:     #8A9A7B;   /* Olive — success, highlights */
  --wutt-sky:        #D9C6A5;   /* Sand — warm tertiary */
  --wutt-lavender:   #AB9DFF;   /* Muted — secondary elements */
  --wutt-night-accent: #C4B5FF;   /* Night mode primary accent — soft lavender */
  --wutt-night-accent-hover: #D4C8FF; /* Lighter variant for hover states */

  /* === Text Colors === */
  --wutt-text:       #1F1F1F;
  --wutt-text-light: #6E6A67;
  --wutt-text-muted: #9B9590;

  /* === Surfaces === */
  --wutt-bg:         #F7F3EE;
  --wutt-bg-subtle:  #EDE8E2;
  --wutt-border:     #E8E1D9;
  --wutt-border-light: #F0EBE5;

  /* === Loading surfaces === */
  --wutt-skeleton-canvas: var(--wutt-light);
  --wutt-skeleton-panel: var(--wutt-bg);
  --wutt-skeleton-surface: var(--wutt-bg-subtle);
  --wutt-skeleton-border: var(--wutt-border-light);
  --wutt-skeleton-highlight: color-mix(in srgb, var(--wutt-light) 72%, transparent);

  /* === Semantic === */
  --wutt-error:      #EF4444;
  --wutt-error-bg:   #FEF2F2;
  --wutt-error-border: #FECACA;
  --wutt-success:    #22C55E;
  --wutt-success-bg: #F0FDF4;
  --wutt-success-border: #BBF7D0;
  --wutt-warning:    #F59E0B;
  --wutt-warning-bg: #FFFBEB;
  --wutt-info:       #3B82F6;
  --wutt-info-bg:    #EFF6FF;

  /* === Spacing Scale (4px base) === */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* === Border Radii === */
  --radius-sm:  0.5rem;
  --radius-md:  0.75rem;
  --radius-lg:  1rem;
  --radius-xl:  1.25rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* === Shadows (warm-tinted to match #F7F3EE background) === */
  --shadow-xs: 0 1px 2px rgba(139, 119, 101, 0.04);
  --shadow-sm: 0 1px 3px rgba(139, 119, 101, 0.06), 0 1px 2px rgba(139, 119, 101, 0.04);
  --shadow-md: 0 4px 12px rgba(139, 119, 101, 0.08);
  --shadow-lg: 0 8px 30px rgba(139, 119, 101, 0.1), 0 2px 8px rgba(139, 119, 101, 0.06);
  --shadow-xl: 0 20px 60px rgba(139, 119, 101, 0.12), 0 4px 16px rgba(139, 119, 101, 0.08);

  /* === Transitions === */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* === Z-Index Scale === */
  --z-dropdown: 10;
  --z-sticky:   20;
  --z-navbar:   30;
  --z-sidebar:  35;
  --z-overlay:  40;
  --z-modal:    50;
  --z-toast:    60;
  --z-tooltip:  70;

  /* === Typography Scale === */
  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 0.9375rem;
  --text-md:   1.0625rem;
  --text-lg:   1.1875rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.875rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --text-5xl:  3.75rem;

  /* === Element heights === */
  --input-height: 48px;
  --btn-height-sm: 36px;
  --btn-height: 48px;
  --btn-height-lg: 56px;
}

[data-wutt-theme="night"] {
  --wutt-skeleton-canvas: var(--wutt-deep);
  --wutt-skeleton-panel: var(--wutt-dark);
  --wutt-skeleton-surface: color-mix(in srgb, var(--wutt-text-light) 30%, var(--wutt-dark));
  --wutt-skeleton-border: color-mix(in srgb, var(--wutt-text-muted) 28%, var(--wutt-dark));
  --wutt-skeleton-highlight: color-mix(in srgb, var(--wutt-text-muted) 12%, transparent);
}

/* --------------------------------------------------------
   Base Reset
   -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--wutt-text);
  background-color: var(--wutt-bg);
  min-height: 100vh;
  min-height: 100dvh;
}

/* Subtle grain texture for depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--wutt-deep); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--wutt-primary); }

ul, ol { list-style: none; }
button { font-family: inherit; }

::selection { background: rgba(200, 155, 142, 0.25); color: var(--wutt-dark); }

/* --------------------------------------------------------
   Typography
   -------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--wutt-dark);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5vw, var(--text-5xl)); letter-spacing: -0.04em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.5rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.125rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; }

p { color: var(--wutt-text-light); max-width: 65ch; text-wrap: pretty; }

.text--center { text-align: center; }
.text--right  { text-align: right; }
.text--gradient {
  background: linear-gradient(135deg, var(--wutt-primary), var(--wutt-lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------------------------------
   Container
   -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --------------------------------------------------------
   Skip Link (Accessibility)
   -------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: var(--z-tooltip);
  padding: var(--space-sm) var(--space-lg);
  background: var(--wutt-deep);
  color: var(--wutt-light) !important;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-md); outline: 3px solid var(--wutt-energy); outline-offset: 2px; }

/* --------------------------------------------------------
   Navbar — Minimal editorial
   -------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-navbar);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--wutt-border-light);
  padding: var(--space-sm) 0;
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--wutt-deep);
  letter-spacing: -0.5px;
  cursor: pointer;
}
.navbar__logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--wutt-primary), var(--wutt-lavender));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wutt-light);
  font-size: 1.25rem;
  font-weight: 700;
}
.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.navbar__link {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--wutt-text);
  cursor: pointer;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  font-family: inherit;
}
.navbar__link:hover { color: #5B7CFF; }

.navbar__toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: var(--space-sm); color: var(--wutt-text);
  min-width: 44px; min-height: 44px; border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.navbar__toggle:hover { background: rgba(200, 155, 142, 0.1); }

/* --------------------------------------------------------
   Buttons — BEM
   -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  line-height: 1;
  touch-action: manipulation;
  min-height: var(--btn-height);
  padding: 0.625rem 1.5rem;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 3px solid var(--wutt-deep); outline-offset: 2px; }

/* Primary — Dark anchor */
.btn--primary {
  background: var(--wutt-dark);
  color: var(--wutt-light);
}
.btn--primary:hover {
  background: #2A2A2A;
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0) scale(0.97); }
.btn--primary .btn__spinner {
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: var(--wutt-light);
}

/* Navy */
.btn--navy {
  background: var(--wutt-deep);
  color: var(--wutt-light);
}
.btn--navy:hover {
  background: #1D2F6A;
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.btn--navy:active { transform: translateY(0) scale(0.97); }

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--wutt-dark);
  border-color: var(--wutt-border);
}
.btn--outline:hover {
  background: var(--wutt-dark);
  color: var(--wutt-light);
  border-color: var(--wutt-dark);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--wutt-text-light);
  border-color: transparent;
}
.btn--ghost:hover {
  background: rgba(37, 58, 130, 0.04);
  color: var(--wutt-dark);
}

/* Sizes */
.btn--lg {
  padding: 0.875rem 2.25rem;
  font-size: var(--text-base);
  min-height: var(--btn-height-lg);
  border-radius: var(--radius-lg);
}
.btn--sm {
  padding: 0.375rem 1rem;
  font-size: var(--text-xs);
  min-height: 36px;
  border-radius: var(--radius-md);
}
.btn--full { width: 100%; }

/* Disabled */
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.45; cursor: not-allowed; pointer-events: none; transform: none;
}

/* Loading state */
.btn--loading { color: transparent !important; pointer-events: none; }
.btn--loading .btn__spinner { display: inline-block; }

.btn__spinner {
  display: none;
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--wutt-light);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.btn--outline .btn__spinner,
.btn--ghost .btn__spinner {
  border-color: rgba(37, 58, 130, 0.15);
  border-top-color: var(--wutt-deep);
}

/* --------------------------------------------------------
   Inputs — BEM
   -------------------------------------------------------- */
.input {
  display: flex; flex-direction: column; gap: var(--space-xs);
}
.input__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--wutt-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.input__required { color: var(--wutt-error); }
.input__wrapper { position: relative; display: flex; align-items: center; }

.input__field {
  width: 100%;
  height: var(--input-height);
  padding: 0.625rem 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-base);
  color: var(--wutt-text);
  background: var(--wutt-bg-subtle);
  border: 1.5px solid var(--wutt-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
  touch-action: manipulation;
}
.input__field::placeholder { color: var(--wutt-text-muted); }
.input__field:focus {
  border-color: var(--wutt-primary);
  background: var(--wutt-light);
  box-shadow: 0 0 0 4px rgba(200, 155, 142, 0.12);
}
.input__field--error {
  border-color: var(--wutt-error);
  background: var(--wutt-error-bg);
}
.input__field:disabled { opacity: 0.5; cursor: not-allowed; }

/* Password visibility toggle */
.input__toggle-password {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  background: none; border: none; cursor: pointer;
  color: var(--wutt-text-muted); border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}
.input__toggle-password:hover { color: var(--wutt-text); }

.input__error {
  font-size: var(--text-xs);
  color: var(--wutt-error);
  font-weight: 500;
  display: flex; align-items: center; gap: 0.25rem;
}

/* Select */
.select {
  width: 100%;
  height: var(--input-height);
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-sm);
  color: var(--wutt-text);
  background: var(--wutt-bg-subtle);
  border: 1.5px solid var(--wutt-border);
  border-radius: var(--radius-md);
  outline: none; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235B6372' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  transition: all var(--transition-fast);
}
.select:focus {
  border-color: var(--wutt-primary);
  background-color: var(--wutt-light);
  box-shadow: 0 0 0 4px rgba(200, 155, 142, 0.12);
}

/* --------------------------------------------------------
   Cards — BEM
   -------------------------------------------------------- */
.card {
  background: var(--wutt-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.card:hover { box-shadow: var(--shadow-sm); }
.card__header { margin-bottom: var(--space-lg); }
.card__title { font-size: 1.125rem; font-weight: 700; color: var(--wutt-dark); margin-bottom: var(--space-xs); }
.card__subtitle { font-size: var(--text-sm); color: var(--wutt-text-light); }
.card__body { color: var(--wutt-text); }
.card__footer { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--wutt-border); }

/* Card variants */
.card--highlight {
  border-left: 4px solid var(--wutt-energy);
  background: linear-gradient(135deg, var(--wutt-light), rgba(227, 252, 135, 0.06));
}
.card--navy {
  background: var(--wutt-deep);
  color: var(--wutt-light);
  border-color: var(--wutt-deep);
}
.card--navy .card__title,
.card--navy .card__subtitle,
.card--navy .card__body { color: var(--wutt-light); }
.card--navy .card__subtitle { color: rgba(255, 255, 255, 0.7); }

/* --------------------------------------------------------
   Tags / Badges — BEM
   -------------------------------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  padding: 0.2rem 0.625rem;
  font-size: var(--text-xs); font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.tag--pink   { background: rgba(255, 178, 247, 0.25); color: #C026B3; }
.tag--green  { background: rgba(227, 252, 135, 0.3);  color: #4D7C0F; }
.tag--purple { background: rgba(171, 157, 255, 0.25); color: #6D28D9; }
.tag--blue   { background: rgba(200, 155, 142, 0.2); color: var(--wutt-deep); }
.tag--navy   { background: rgba(37, 58, 130, 0.08);   color: var(--wutt-deep); }

/* --------------------------------------------------------
   Upload Box
   -------------------------------------------------------- */
.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-xl);
  border: 2px dashed var(--wutt-border);
  border-radius: var(--radius-xl);
  background: var(--wutt-bg-subtle);
  cursor: pointer;
  transition: all var(--transition-base);
  min-height: 160px;
  text-align: center;
  touch-action: manipulation;
}
.upload-box:hover {
  border-color: var(--wutt-primary);
  background: rgba(200, 155, 142, 0.05);
}
.upload-box--active {
  border-color: var(--wutt-energy);
  background: rgba(227, 252, 135, 0.08);
}
.upload-box__icon { font-size: 2rem; color: var(--wutt-primary); }
.upload-box__text { font-size: var(--text-base); font-weight: 500; color: var(--wutt-text); }
.upload-box__hint { font-size: var(--text-xs); color: var(--wutt-text-muted); }
.upload-box input[type="file"] { display: none; }

/* --------------------------------------------------------
   Hero Section — Editorial
   -------------------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--space-4xl) + 60px) var(--space-lg) var(--space-4xl);
  position: relative;
  overflow: hidden;
  background: var(--wutt-bg);
}

/* Soft radial glow — warm */
.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 80%; height: 80%;
  background:
    radial-gradient(ellipse 500px 400px at 60% 40%, rgba(200, 155, 142, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 30% 70%, rgba(217, 198, 165, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: var(--space-3xl);
  max-width: 1200px;
  width: 100%;
  align-items: center;
}
.hero__content {
  max-width: 480px;
}
.hero__overline {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--wutt-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-xl);
}
.hero__headline {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--wutt-dark);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}
.hero__headline em {
  font-style: normal;
  color: var(--wutt-dark);
}
.hero__subtitle {
  font-size: var(--text-md);
  color: var(--wutt-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 420px;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Staggered entrance */
.hero__stagger-1,
.hero__stagger-2,
.hero__stagger-3,
.hero__stagger-4,
.hero__stagger-5 {
  opacity: 0;
  transform: translateY(24px);
  animation: heroEnter 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.hero__stagger-1 { animation-delay: 0.1s; }
.hero__stagger-2 { animation-delay: 0.2s; }
.hero__stagger-3 { animation-delay: 0.3s; }
.hero__stagger-4 { animation-delay: 0.42s; }
.hero__stagger-5 { animation-delay: 0.54s; }

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

/* Right side — product preview */
.hero__visual {
  position: relative;
}

/* --------------------------------------------------------
   Navbar — Landing variant
   -------------------------------------------------------- */
.navbar--landing {
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.navbar--landing .navbar__inner {
  justify-content: space-between;
}
.navbar--landing .navbar__logo {
  color: var(--wutt-light);
}
.navbar--landing .navbar__logo-icon {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.navbar__login-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--wutt-light);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.navbar__login-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

/* --------------------------------------------------------
   Landing Hero — Full-screen fashion bg
   -------------------------------------------------------- */
.landing-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.landing-hero__bg {
  position: absolute;
  inset: 0;
  background: url('assets/wutt-fashion-hero.jpeg') center center / cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s cubic-bezier(0.16, 1, 0.3, 1);
}
.landing-hero:hover .landing-hero__bg {
  transform: scale(1);
}

.landing-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.08) 35%,
      rgba(0, 0, 0, 0.15) 70%,
      rgba(0, 0, 0, 0.4) 100%
    );
  transition: backdrop-filter var(--transition-base), -webkit-backdrop-filter var(--transition-base);
}

.landing-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  max-width: 560px;
  width: 100%;
}

.landing-hero__text {
  margin-bottom: 0;
}

.landing-hero__wordmark {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--wutt-light);
  letter-spacing: -0.04em;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.landing-hero__headline {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--wutt-light);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.landing-hero__subtitle {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

/* Staggered entrance for landing hero */
.landing-hero__stagger-1,
.landing-hero__stagger-2,
.landing-hero__stagger-3 {
  opacity: 0;
  transform: translateY(28px);
  animation: landingEnter 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
.landing-hero__stagger-1 { animation-delay: 0.15s; }
.landing-hero__stagger-2 { animation-delay: 0.3s; }
.landing-hero__stagger-3 { animation-delay: 0.45s; }

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

/* --------------------------------------------------------
   Landing Hero — CTA Buttons
   -------------------------------------------------------- */
.landing-hero__cta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  justify-content: center;
  flex-wrap: wrap;
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: var(--text-base);
  font-weight: 600;
}

.btn--ghost {
  background: transparent;
  color: var(--wutt-light);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------
   Landing Modal Overlay
   -------------------------------------------------------- */
.landing-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}
.landing-modal-overlay[aria-hidden="true"] {
  display: none;
}
.landing-modal-overlay[aria-hidden="false"] {
  display: flex;
}
.landing-modal-overlay--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(2px) saturate(1.05);
  -webkit-backdrop-filter: blur(2px) saturate(1.05);
  background: rgba(18, 16, 15, 0.12);
}

/* Fade hero text when modal is open for clean readability */
.modal-open .landing-hero__content {
  opacity: 0.15;
  transition: opacity var(--transition-base);
}

/* --------------------------------------------------------
   Login Card — Glassmorphism Modal
   -------------------------------------------------------- */
.login-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-2xl);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.08),
    0 2px 12px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
}
.landing-modal-overlay--open .login-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.login-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wutt-light);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  text-align: center;
}
.login-card__subtitle {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.login-card__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.125rem;
  transition: all var(--transition-fast);
}
.login-card__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.login-card__social {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.login-card__divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.login-card__divider::before,
.login-card__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}
.login-card__divider span {
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-card__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.login-card__form .input__label {
  color: rgba(255, 255, 255, 0.7);
}
.login-card__form .input__field {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--wutt-light);
}
.login-card__form .input__field::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.login-card__form .input__field:focus {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), 0 0 12px rgba(255, 255, 255, 0.06);
  outline: none;
}
.login-card__form .input__field--error {
  border-color: #D4756B;
  background: rgba(212, 117, 107, 0.08);
}
.login-card__form .input__toggle-password {
  color: rgba(255, 255, 255, 0.4);
}
.login-card__form .input__toggle-password:hover {
  color: rgba(255, 255, 255, 0.8);
}

.login-card__forgot {
  display: inline-block;
  align-self: flex-end;
  background: none;
  border: none;
  font-family: inherit;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 0;
  margin-top: calc(-1 * var(--space-sm));
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}
.login-card__forgot:hover {
  color: rgba(255, 255, 255, 0.85);
}

.login-card__switch {
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-lg);
}
.login-card__switch button {
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: inherit;
  color: var(--wutt-light);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}
.login-card__switch button:hover {
  opacity: 0.8;
}

.login-card__demo-entry {
  margin-top: var(--space-md);
  color: var(--wutt-dark);
  background: var(--wutt-light);
  border-color: rgba(17, 17, 17, 0.12);
  transition:
    background-color 150ms ease-out,
    border-color 150ms ease-out,
    transform 100ms ease-out;
}
.login-card__demo-entry:hover,
.login-card__demo-entry:focus-visible {
  color: var(--wutt-dark);
  background: #F7F7F5;
  border-color: rgba(17, 17, 17, 0.24);
}
.login-card__demo-entry:focus-visible {
  outline: 2px solid var(--wutt-light);
  outline-offset: 2px;
}
.login-card__demo-entry:active {
  transform: scale(0.97);
}
.modal__footer .login-card__demo-entry {
  margin-top: 0;
}

.demo-access-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 2);
  display: grid;
  padding: var(--space-lg);
  background: rgba(17, 17, 17, 0.48);
  opacity: 0;
  place-items: center;
  transition: opacity 180ms ease-out;
}
.demo-access-overlay.u-hidden {
  display: none;
}
.demo-access-overlay--open {
  opacity: 1;
}
.demo-access-card {
  position: relative;
  width: min(420px, 100%);
  padding: 34px;
  color: var(--wutt-text);
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(31, 26, 23, 0.12);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 180ms ease-out, transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.demo-access-overlay--open .demo-access-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.demo-access-card__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--wutt-text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  place-items: center;
}
.demo-access-card__close:hover {
  color: var(--wutt-text);
  background: var(--wutt-bg-subtle);
}
.demo-access-card__close:focus-visible {
  outline: 2px solid var(--wutt-dark);
  outline-offset: 2px;
}
.demo-access-card__eyebrow {
  margin: 0 0 8px;
  color: var(--wutt-primary);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.demo-access-card__title {
  margin: 0 48px 8px 0;
  color: var(--wutt-dark);
  font-size: 1.5rem;
  letter-spacing: -0.035em;
}
.demo-access-card__intro {
  margin: 0 0 26px;
  color: var(--wutt-text-light);
  font-size: var(--text-sm);
  line-height: 1.55;
}
.demo-access-card__credentials {
  border-top: 1px solid var(--wutt-border-light);
}
.demo-access-card__credential {
  display: flex;
  min-height: 72px;
  padding: 12px 0;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  border-bottom: 1px solid var(--wutt-border-light);
}
.demo-access-card__credential > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}
.demo-access-card__credential span {
  color: var(--wutt-text-muted);
  font-size: 0.625rem;
  font-weight: 600;
}
.demo-access-card__credential strong {
  overflow: hidden;
  color: var(--wutt-text);
  font-size: var(--text-sm);
  font-weight: 600;
  text-overflow: ellipsis;
  user-select: all;
  white-space: nowrap;
}
.demo-access-card__credential button {
  min-width: 92px;
  min-height: 40px;
  padding: 0 10px;
  color: var(--wutt-text-light);
  background: transparent;
  border: 1px solid var(--wutt-border);
  border-radius: var(--radius-md);
  font: 600 0.6875rem/1 inherit;
  cursor: pointer;
  transition: color 150ms ease-out, border-color 150ms ease-out, background-color 150ms ease-out;
}
.demo-access-card__credential button:hover {
  color: var(--wutt-text);
  background: var(--wutt-bg);
  border-color: var(--wutt-text-muted);
}
.demo-access-card__credential button:focus-visible {
  outline: 2px solid var(--wutt-primary);
  outline-offset: 2px;
}
.demo-access-card__status {
  min-height: 18px;
  margin: 10px 0 4px;
  color: var(--wutt-text-light);
  font-size: 0.6875rem;
}
.demo-access-card__continue {
  width: 100%;
  min-height: 48px;
  color: var(--wutt-light);
  background: var(--wutt-dark);
  border: 0;
  border-radius: var(--radius-md);
  font: 650 var(--text-sm)/1 inherit;
  cursor: pointer;
  transition: background-color 150ms ease-out, transform 100ms ease-out;
}
.demo-access-card__continue:hover {
  background: #2a2a2a;
}
.demo-access-card__continue:active {
  transform: scale(0.98);
}
.demo-access-card__continue:focus-visible {
  outline: 2px solid var(--wutt-primary);
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .demo-access-overlay {
    padding: var(--space-md);
    align-items: end;
  }
  .demo-access-card {
    padding: 30px 22px 22px;
    border-radius: var(--radius-xl);
  }
  .demo-access-card__credential {
    min-height: 68px;
  }
}

/* Softer error alert inside login card */
.login-card .alert--error {
  background: rgba(212, 117, 107, 0.1);
  color: #C07060;
  border-color: rgba(212, 117, 107, 0.2);
  font-size: var(--text-xs);
  padding: var(--space-sm) var(--space-md);
}

/* --------------------------------------------------------
   Social Buttons
   -------------------------------------------------------- */
.btn--social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  min-height: var(--btn-height);
  padding: 0.625rem var(--space-lg);
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #1f2937;
  background: var(--wutt-light);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition:
    background-color 180ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 180ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 180ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 180ms cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) and (pointer: fine) {
  .btn--social:hover {
    background: #f3f4f6;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
  }
  .btn--social-apple:hover {
    background: #1a1a1a;
  }
}
.btn--social:active {
  transform: translateY(0) scale(0.98);
}
.btn--social[aria-busy="true"] {
  cursor: wait;
}
.btn--social .btn__spinner {
  border-color: rgba(31, 41, 55, 0.18);
  border-top-color: #1f2937;
}

.btn--social-apple {
  color: var(--wutt-light);
  background: #000000;
  border-color: rgba(255, 255, 255, 0.1);
}

.btn__icon {
  flex-shrink: 0;
}

/* --------------------------------------------------------
   Style Quiz — Onboarding
   -------------------------------------------------------- */
.style-quiz {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--wutt-bg);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.style-quiz__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg) var(--space-3xl);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.style-quiz__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.style-quiz__step {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wutt-text-muted);
  margin-bottom: var(--space-md);
}

.style-quiz__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--wutt-text);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.style-quiz__subtitle {
  font-size: var(--text-sm);
  color: var(--wutt-text-light);
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Style cards grid — 4 columns, centered, perspective parent */
.style-quiz__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  flex: 1;
  max-width: 1080px;
  margin: 0 auto;
  justify-items: center;
  perspective: 1200px;
}

/* ── Style Card — Full-image editorial card ── */
.style-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 24px;
  background: #f3eee8;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  font-family: inherit;
  text-align: left;
  width: 100%;
  max-width: 230px;
  height: 340px;
  aspect-ratio: 3 / 4;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.03);
  transition:
    box-shadow 280ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 280ms cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .style-card:hover {
    transform: translate3d(0, -12px, 0) scale(1.02) rotateX(1.5deg) rotateY(-1deg);
  }
}
.style-card:focus-visible {
  outline: 3px solid var(--wutt-primary);
  outline-offset: 2px;
}
.style-card:active {
  transform: scale(0.98);
  transition-duration: 80ms;
}

/* ── Selected state ── */
.style-card[aria-pressed="true"] {
  box-shadow:
    inset 0 0 0 2px var(--wutt-primary),
    0 2px 10px rgba(0, 0, 0, 0.04),
    0 8px 28px rgba(0, 0, 0, 0.03);
}
@media (hover: hover) and (pointer: fine) {
  .style-card[aria-pressed="true"]:hover {
    box-shadow:
      inset 0 0 0 2px var(--wutt-primary),
      0 22px 50px rgba(0, 0, 0, 0.14);
  }
}
.style-card[aria-pressed="true"] .style-card__check {
  opacity: 1;
  transform: scale(1);
}

/* ── Visual area — fills entire card ── */
.style-card__visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #f3eee8;
  z-index: 0;
}

.style-card__img,
.style-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transform: scale(1.09) translateY(-4px);
  transform-origin: center center;
}

/* Hover must not blur or soften image */
.style-card:hover .style-card__img,
.style-card:hover .style-card__visual img {
  transform: scale(1.09) translateY(-4px);
}

/* Gradient fallbacks — richer, more dimensional */
.style-card__visual--minimal {
  background:
    radial-gradient(ellipse at 30% 40%, #F0EBE5 0%, transparent 60%),
    radial-gradient(ellipse at 70% 70%, #E0D8CE 0%, transparent 50%),
    linear-gradient(160deg, #F5F0EB 0%, #DDD5CB 100%);
}
.style-card__visual--streetwear {
  background:
    radial-gradient(ellipse at 40% 30%, #3a3a3a 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, #252525 0%, transparent 60%),
    linear-gradient(160deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}
.style-card__visual--old-money {
  background:
    radial-gradient(ellipse at 30% 30%, #5D7A52 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, #6B5B43 0%, transparent 60%),
    linear-gradient(160deg, #2C3E50 0%, #4A6741 40%, #5D4E37 100%);
}
.style-card__visual--clean-fit {
  background:
    radial-gradient(ellipse at 50% 30%, #FFFFFF 0%, transparent 60%),
    radial-gradient(ellipse at 40% 80%, #EDE8E2 0%, transparent 50%),
    linear-gradient(160deg, #FAFAF8 0%, #E8E3DB 100%);
}
.style-card__visual--korean-casual {
  background:
    radial-gradient(ellipse at 30% 40%, #F0E6DA 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, #D8C8B5 0%, transparent 60%),
    linear-gradient(160deg, #F8F4F0 0%, #D4C5B5 100%);
}
.style-card__visual--vintage {
  background:
    radial-gradient(ellipse at 40% 30%, #D4A574 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, #7A5C3A 0%, transparent 60%),
    linear-gradient(160deg, #C8956A 0%, #8B6F47 50%, #6B5B3E 100%);
}
.style-card__visual--y2k {
  background:
    radial-gradient(ellipse at 30% 30%, #E8D0F0 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, #A0C8E8 0%, transparent 60%),
    linear-gradient(160deg, #F0D0E8 0%, #C8A0D8 50%, #90C0E0 100%);
}
.style-card__visual--dark-academia {
  background:
    radial-gradient(ellipse at 40% 30%, #4A3C2E 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, #2C2416 0%, transparent 60%),
    linear-gradient(160deg, #3D3225 0%, #5C4A3A 40%, #3A3020 100%);
}

/* ── Bottom text layer — transparent, no background ── */
.style-card__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: auto;
  min-height: 0;
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

/* Neutral smoky gradient overlay */
.style-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(
      to top,
      rgba(8, 9, 10, 0.92) 0%,
      rgba(10, 11, 12, 0.82) 14%,
      rgba(12, 13, 14, 0.64) 28%,
      rgba(18, 19, 20, 0.42) 42%,
      rgba(24, 25, 26, 0.22) 54%,
      rgba(28, 29, 30, 0.08) 64%,
      rgba(28, 29, 30, 0) 72%
    );
}

/* Disable old overlay pseudo-elements */
.style-card__visual::before,
.style-card__visual::after,
.style-card__info::before,
.style-card__info::after {
  content: none;
  display: none;
}

/* Label */
.style-card__label {
  position: relative;
  z-index: 3;
  font-size: var(--text-sm);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.82),
    0 0 1px rgba(0, 0, 0, 0.95);
}

/* Tag microcopy */
.style-card__tag {
  position: relative;
  z-index: 3;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.84);
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-shadow:
    0 1px 10px rgba(0, 0, 0, 0.72),
    0 0 1px rgba(0, 0, 0, 0.85);
}

/* ── Checkmark — only visible when selected ── */
.style-card__check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wutt-primary);
  border-radius: var(--radius-full);
  z-index: 4;
  color: var(--wutt-light);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 180ms ease-out, transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(200, 155, 142, 0.4);
  z-index: 3;
  pointer-events: none;
}

/* Footer */
.style-quiz__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-3xl);
  padding-bottom: var(--space-xl);
}

.btn--quiz-continue {
  width: 100%;
  max-width: 320px;
  min-height: 48px;
  font-size: var(--text-base);
  opacity: 0.4;
  pointer-events: none;
  transition: opacity var(--transition-base), background var(--transition-fast);
}
.btn--quiz-continue:not([disabled]) {
  opacity: 1;
  pointer-events: auto;
}
.btn--quiz-continue:not([disabled]):hover {
  background: #2A2A2A;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.style-quiz__skip {
  background: none;
  border: none;
  font-family: inherit;
  font-size: var(--text-sm);
  color: var(--wutt-text-muted);
  cursor: pointer;
  padding: var(--space-sm) var(--space-md);
  transition: color var(--transition-fast);
}
.style-quiz__skip:hover {
  color: var(--wutt-text-light);
}

/* Style card entrance — disabled for hover stability */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .style-card {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .style-card:hover {
    transform: none;
  }
}

/* Mobile — style quiz */
@media (max-width: 640px) {
  .style-quiz__inner {
    padding: var(--space-xl) var(--space-md) var(--space-2xl);
  }
  .style-quiz__header {
    margin-bottom: var(--space-lg);
  }
  .style-quiz__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .style-card {
    border-radius: 18px;
    max-width: 100%;
    height: 220px;
    aspect-ratio: 3 / 4;
  }
  .style-card::before {
    background:
      linear-gradient(
        to top,
        rgba(8, 9, 10, 0.92) 0%,
        rgba(10, 11, 12, 0.80) 16%,
        rgba(12, 13, 14, 0.60) 32%,
        rgba(18, 19, 20, 0.36) 48%,
        rgba(24, 25, 26, 0.14) 62%,
        rgba(28, 29, 30, 0) 74%
      );
  }
  .style-card__visual {
    border-radius: 18px;
  }
  .style-card__label {
    font-size: var(--text-xs);
    font-weight: 800;
  }
  .style-card__tag {
    font-size: 0.5625rem;
  }
  .style-card__info {
    padding: 0 12px 12px;
  }
  .style-card__check {
    width: 22px;
    height: 22px;
    top: 8px;
    right: 8px;
  }
  .style-card__check svg {
    width: 12px;
    height: 12px;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .style-quiz__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  .style-card {
    max-width: 260px;
    height: 340px;
    aspect-ratio: 3 / 4;
  }
}

/* --------------------------------------------------------
   Product Preview Card
   -------------------------------------------------------- */
.preview {
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 250ms cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 250ms cubic-bezier(0.23, 1, 0.32, 1);
  max-width: 380px;
}
.preview:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--wutt-border-light);
}
.preview__occasion {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--wutt-dark);
}
.preview__meta {
  font-size: var(--text-xs);
  color: var(--wutt-text-muted);
}
.preview__outfit {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}
.preview__item {
  font-size: var(--text-base);
  color: var(--wutt-text);
  padding-left: var(--space-md);
  position: relative;
}
.preview__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--wutt-primary);
  border-radius: 50%;
}
.preview__tip {
  font-size: var(--text-xs);
  color: var(--wutt-text-light);
  line-height: 1.6;
  padding: var(--space-md);
  background: var(--wutt-bg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}
.preview__tip-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wutt-text-muted);
  margin-bottom: var(--space-xs);
}
.preview__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--wutt-border-light);
}
.preview__score {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--wutt-dark);
  letter-spacing: -0.03em;
}
.preview__count {
  font-size: var(--text-xs);
  color: var(--wutt-text-muted);
}

/* --------------------------------------------------------
   How WUTT Styles You
   -------------------------------------------------------- */
.how-it-works {
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
  background: var(--wutt-bg);
}

.how-it-works__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--wutt-dark);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3xl);
}

.how-it-works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 960px;
  margin: 0 auto;
}

.how-it-works__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-xl);
  background: var(--wutt-bg-subtle);
  border: 1px solid var(--wutt-border-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}
.how-it-works__card:hover {
  border-color: var(--wutt-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.how-it-works__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 155, 142, 0.1);
  border-radius: var(--radius-lg);
  color: var(--wutt-primary);
}

.how-it-works__card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--wutt-dark);
  letter-spacing: -0.02em;
}

.how-it-works__card-text {
  font-size: var(--text-sm);
  color: var(--wutt-text-light);
  line-height: 1.6;
  max-width: 260px;
}

/* --------------------------------------------------------
   Modal — Clean premium cards
   -------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}
.modal-overlay--open { opacity: 1; visibility: visible; }

.modal {
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border-light);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  transform: translateY(16px) scale(0.98);
  transition: transform var(--transition-slow), opacity var(--transition-slow);
  opacity: 0;
}
.modal-overlay--open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2xl) var(--space-xl) 0;
}
.modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wutt-dark);
  letter-spacing: -0.02em;
}
.modal__close {
  display: flex;
  align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px;
  width: 40px; height: 40px;
  background: var(--wutt-bg-subtle);
  border: none; border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--wutt-text-muted);
  transition: all var(--transition-fast);
  line-height: 1;
}
.modal__close:hover { background: rgba(10, 10, 10, 0.06); color: var(--wutt-text); }
.modal__close:focus-visible { outline: 3px solid var(--wutt-deep); outline-offset: 2px; }

.modal__body {
  padding: var(--space-xl);
  display: flex; flex-direction: column; gap: var(--space-md);
}

.modal__footer {
  padding: 0 var(--space-xl) var(--space-xl);
  display: flex; flex-direction: column; gap: var(--space-md);
}

.modal__switch {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--wutt-text-light);
}
.modal__switch a, .modal__switch button {
  color: var(--wutt-dark);
  font-weight: 600;
  cursor: pointer;
}
.modal__switch a:hover, .modal__switch button:hover { color: var(--wutt-primary); }

/* --------------------------------------------------------
   Toast Notifications
   -------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: var(--space-lg); right: var(--space-lg);
  z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: var(--space-sm);
  max-width: 380px; width: 100%;
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm); font-weight: 500;
  pointer-events: auto;
  animation: slideInRight 0.3s ease-out, fadeOut 0.3s ease-out forwards;
  animation-delay: 0s, 3.7s;
}
.toast--success { border-left: 4px solid var(--wutt-success); color: #065F46; }
.toast--error   { border-left: 4px solid var(--wutt-error);   color: #991B1B; }
.toast--info    { border-left: 4px solid var(--wutt-info);    color: #1E40AF; }
.toast--warning { border-left: 4px solid var(--wutt-warning); color: #92400E; }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-8px); }
}

/* --------------------------------------------------------
   Skeleton Loading
   -------------------------------------------------------- */
.skeleton {
  position: relative;
  background: var(--wutt-bg-subtle);
  border-radius: var(--radius-sm);
  color: transparent !important;
  user-select: none; pointer-events: none;
  overflow: hidden;
}
.skeleton::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(200, 155, 142, 0.1) 50%, transparent 100%);
  animation: shimmer 1.5s ease-in-out infinite;
  will-change: transform;
}
.skeleton--text { height: 1em; margin-bottom: 0.5em; }
.skeleton--title { height: 1.5em; width: 60%; margin-bottom: 1em; }
.skeleton--avatar { width: 48px; height: 48px; border-radius: var(--radius-full); }
.skeleton--card { height: 200px; border-radius: var(--radius-xl); }
.skeleton--form-field { height: var(--input-height); border-radius: var(--radius-md); margin-bottom: var(--space-md); }
.skeleton--btn { height: var(--btn-height); border-radius: var(--radius-lg); margin-top: var(--space-lg); }

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.wutt-skeleton {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--wutt-skeleton-surface);
  border-radius: var(--radius-sm);
}
.wutt-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--wutt-skeleton-highlight), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.7s ease-in-out infinite;
}

.wutt-auth-pending body {
  overflow: hidden;
}
.wutt-auth-pending body > :not(.app-boot-screen) {
  visibility: hidden;
}
html[data-wutt-boot-surface="landing"] .app-boot-screen {
  display: none;
}
html[data-wutt-boot-surface="landing"].wutt-auth-pending body {
  overflow: auto;
}
html[data-wutt-boot-surface="landing"].wutt-auth-pending body > :not(.app-boot-screen) {
  visibility: visible;
}
/* The public route must never expose a stale authenticated DOM snapshot. */
html[data-wutt-boot-surface="landing"] #welcomeScreen,
html[data-wutt-boot-surface="landing"] #chatApp,
html[data-wutt-boot-surface="landing"] #styleQuiz {
  display: none !important;
}
.app-boot-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  overflow-y: auto;
  background: var(--wutt-skeleton-canvas);
  opacity: 1;
  place-items: stretch;
  transition: opacity 180ms ease-out, visibility 180ms;
}
.app-boot-screen--complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
[data-boot-skeleton] {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--wutt-skeleton-canvas);
}
[data-wutt-boot-surface="profile"] [data-boot-skeleton="profile"],
[data-wutt-boot-surface="wardrobe"] [data-boot-skeleton="wardrobe"],
[data-wutt-boot-surface="stylist"] [data-boot-skeleton="stylist"] {
  display: grid;
}

.boot-app {
  grid-template-columns: 88px 1fr;
  min-height: 100dvh;
  background: var(--wutt-skeleton-canvas);
}
.boot-app__sidebar {
  display: flex;
  padding: 24px 18px;
  align-items: center;
  flex-direction: column;
  gap: 22px;
  background: var(--wutt-skeleton-panel);
  border-right: 1px solid var(--wutt-skeleton-border);
}
.boot-app__mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--wutt-light);
  background: var(--wutt-dark);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  place-items: center;
}
.boot-app__nav-dot {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.boot-page-header {
  display: flex;
  height: 82px;
  padding: 0 clamp(20px, 4vw, 56px);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--wutt-skeleton-border);
}
.boot-page-header > span:first-child {
  width: 116px;
  height: 16px;
}
.boot-page-header__action {
  width: 92px;
  height: 38px;
  border-radius: 8px;
}

.boot-profile__page,
.boot-wardrobe__page,
.boot-stylist__page {
  min-width: 0;
  min-height: 100dvh;
}
.boot-profile__layout {
  display: grid;
  width: min(1100px, calc(100% - 48px));
  margin: 40px auto;
  grid-template-columns: 300px 1fr;
  gap: 32px;
}
.boot-profile__summary,
.boot-profile__cards section {
  padding: 30px 24px;
  background: var(--wutt-skeleton-canvas);
  border: 1px solid var(--wutt-skeleton-border);
  border-radius: var(--radius-xl);
}
.boot-profile__summary {
  display: flex;
  min-height: 390px;
  align-items: center;
  flex-direction: column;
}
.boot-profile__avatar {
  width: 96px;
  height: 96px;
  margin-bottom: 22px;
  border-radius: 50%;
}
.boot-profile__name {
  width: 142px;
  height: 18px;
  margin-bottom: 10px;
}
.boot-profile__email {
  width: 184px;
  height: 11px;
  margin-bottom: 22px;
}
.boot-profile__chips {
  display: flex;
  gap: 8px;
}
.boot-profile__chips > span {
  width: 70px;
  height: 25px;
  border-radius: var(--radius-full);
}
.boot-profile__button {
  width: 100%;
  height: 42px;
  margin-top: 28px;
  border-radius: 8px;
}
.boot-profile__cards {
  display: grid;
  gap: 18px;
}
.boot-profile__cards section {
  display: grid;
  gap: 0;
}
.boot-profile__card-title {
  width: 146px;
  height: 16px;
  margin-bottom: 18px;
}
.boot-profile__row {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--wutt-skeleton-border);
}
.boot-profile__row > span:first-child {
  width: 92px;
  height: 10px;
}
.boot-profile__row > span:last-child {
  width: 128px;
  height: 11px;
}
.boot-profile__section--style .boot-profile__chips {
  min-height: 50px;
  align-items: center;
  border-top: 1px solid var(--wutt-skeleton-border);
}
.boot-profile__row--vibe {
  margin-top: 2px;
}
.boot-profile__sizes {
  display: grid;
  padding-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  border-top: 1px solid var(--wutt-skeleton-border);
}
.boot-profile__sizes span {
  width: 100%;
  height: 32px;
}
.boot-profile__ticket {
  width: 100%;
  height: 62px;
  margin-top: 10px;
  border-radius: var(--radius-md);
}
.boot-profile__stats {
  display: grid;
  padding: 16px 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--wutt-skeleton-border);
}
.boot-profile__stats span {
  width: 100%;
  height: 58px;
}
.boot-profile__hint {
  width: 62%;
  height: 11px;
}
.boot-profile__section--appearance {
  min-height: 112px;
}
.boot-profile__toggle {
  width: 72px;
  height: 28px;
  border-radius: var(--radius-full);
}

.boot-wardrobe__grid {
  display: grid;
  padding: 32px clamp(20px, 4vw, 56px);
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}
.boot-wardrobe__grid article {
  overflow: hidden;
  background: var(--wutt-skeleton-canvas);
  border: 1px solid var(--wutt-skeleton-border);
  border-radius: var(--radius-lg);
}
.boot-wardrobe__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 0;
}
.boot-wardrobe__title {
  width: 66%;
  height: 13px;
  margin: 14px 12px 8px;
}
.boot-wardrobe__meta {
  width: 42%;
  height: 9px;
  margin: 0 12px 10px;
}
.boot-wardrobe__tag {
  width: 56px;
  height: 18px;
  margin: 0 12px 14px;
  border-radius: var(--radius-full);
}

.boot-stylist__page {
  position: relative;
  display: grid;
  min-height: 100dvh;
  grid-template-rows: 82px 1fr auto;
}
.boot-stylist__header {
  display: flex;
  padding: 0 clamp(20px, 4vw, 48px);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--wutt-skeleton-border);
}
.boot-stylist__avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.boot-stylist__header > div {
  display: grid;
  gap: 7px;
}
.boot-stylist__header > div > span:first-child {
  width: 118px;
  height: 13px;
}
.boot-stylist__status {
  width: 82px;
  height: 9px;
}
.boot-stylist__messages {
  width: min(760px, calc(100% - 40px));
  margin: 46px auto;
}
.boot-stylist__message {
  display: grid;
  width: min(360px, 78%);
  padding: 18px;
  gap: 10px;
  background: var(--wutt-skeleton-panel);
  border-radius: 6px 18px 18px 18px;
}
.boot-stylist__message > span {
  width: 100%;
  height: 10px;
}
.boot-stylist__message .boot-stylist__line-short {
  width: 68%;
}
.boot-stylist__message--user {
  width: min(280px, 68%);
  margin: 28px 0 0 auto;
  background: var(--wutt-skeleton-panel);
  border-radius: 18px 6px 18px 18px;
}
.boot-stylist__composer {
  display: flex;
  width: min(760px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto 24px;
  padding: 10px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--wutt-skeleton-border);
  border-radius: 18px;
}
.boot-stylist__composer > span:first-child {
  height: 44px;
  flex: 1;
}
.boot-stylist__send {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.not-found-page {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  min-height: 100vh;
  padding: clamp(24px, 4vw, 56px);
  color: var(--wutt-dark);
  background: #f8f6f3;
  flex-direction: column;
}
.not-found-page.u-hidden {
  display: none;
}
.not-found-page__wordmark {
  align-self: flex-start;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
}
.not-found-page__content {
  width: min(680px, 100%);
  margin: auto;
}
.not-found-page__code {
  margin: 0 0 18px;
  color: var(--wutt-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.not-found-page__title {
  max-width: 620px;
  margin: 0 0 38px;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.not-found-page__back {
  display: inline-flex;
  min-height: 46px;
  padding: 0 20px;
  color: var(--wutt-light);
  background: var(--wutt-dark);
  border-radius: 8px;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease-out, transform 100ms ease-out;
}
.not-found-page__back:hover {
  background: #33302d;
}
.not-found-page__back:active {
  transform: scale(0.97);
}
.not-found-page__back:focus-visible {
  outline: 2px solid var(--wutt-primary);
  outline-offset: 3px;
}
.not-found-page__footer {
  margin: 0;
  color: var(--wutt-text-muted);
  font-size: var(--text-xs);
}
.not-found-active > :not(#notFoundPage):not(#toastContainer) {
  display: none !important;
}

@media (max-width: 640px) {
  .boot-app {
    grid-template-columns: 1fr;
    grid-template-rows: 72px 1fr;
  }
  .boot-app__sidebar {
    padding: 14px 18px;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--wutt-skeleton-border);
  }
  .boot-app__mark {
    width: 40px;
    height: 40px;
    margin: 0 auto 0 0;
  }
  .boot-app__nav-dot {
    width: 36px;
    height: 36px;
  }
  .boot-page-header {
    height: 68px;
    padding: 0 18px;
  }
  .boot-profile__layout {
    width: calc(100% - 32px);
    margin: 20px auto;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .boot-profile__summary {
    min-height: 104px;
    display: grid;
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
  }
  .boot-profile__avatar {
    width: 64px;
    height: 64px;
    margin: 0;
    grid-row: 1 / 3;
  }
  .boot-profile__name,
  .boot-profile__email {
    margin: 0;
  }
  .boot-profile__summary .boot-profile__chips,
  .boot-profile__summary .boot-profile__button {
    display: none;
  }
  .boot-profile__desktop-lower {
    display: none !important;
  }
  .boot-profile__cards .boot-profile__section {
    min-height: 138px;
  }
  .boot-profile__section > :not(.boot-profile__card-title):not(:nth-child(2)) {
    display: none;
  }
  .boot-profile__sizes span:nth-child(n + 3) {
    display: none;
  }
  .boot-wardrobe__grid {
    padding: 18px 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .boot-wardrobe__image {
    aspect-ratio: 4 / 5;
  }
  .boot-stylist__page {
    min-height: calc(100vh - 72px);
    grid-template-rows: 68px 1fr auto;
  }
  .boot-stylist__messages {
    margin-top: 28px;
  }
  .not-found-page {
    padding: 24px;
  }
}
.chat-app--night .wutt-skeleton {
  background: var(--wutt-skeleton-surface);
}

/* --------------------------------------------------------
   Error Card
   -------------------------------------------------------- */
.error-card {
  display: flex; flex-direction: column;
  align-items: center; gap: var(--space-md);
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--wutt-error-bg);
  border: 1px solid var(--wutt-error-border);
  border-radius: var(--radius-xl);
}
.error-card__icon { font-size: 2rem; opacity: 0.7; }
.error-card__text {
  font-size: var(--text-sm);
  color: var(--wutt-error);
  font-weight: 500;
  max-width: 280px;
  line-height: 1.6;
}
.error-card__retry {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-family: inherit; font-size: var(--text-sm); font-weight: 600;
  color: var(--wutt-error);
  background: var(--wutt-light);
  border: 1px solid var(--wutt-error-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.error-card__retry:hover { background: var(--wutt-error); color: white; border-color: var(--wutt-error); }

/* --------------------------------------------------------
   Empty State
   -------------------------------------------------------- */
.empty-state--visual {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--space-md);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  border: 2px dashed var(--wutt-border);
  border-radius: var(--radius-xl);
  background: var(--wutt-bg-subtle);
  min-height: 180px;
}
.empty-state--visual .empty-state__icon { font-size: 2.5rem; opacity: 0.4; margin-bottom: var(--space-sm); }
.empty-state--visual .empty-state__title { font-size: var(--text-base); font-weight: 600; color: var(--wutt-text); }
.empty-state--visual .empty-state__hint { font-size: var(--text-xs); color: var(--wutt-text-muted); max-width: 260px; line-height: 1.6; }

/* --------------------------------------------------------
   Upload Success
   -------------------------------------------------------- */
.upload-success {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--wutt-success-bg);
  border: 1px solid var(--wutt-success-border);
  border-radius: var(--radius-md);
  color: #065F46;
  font-size: var(--text-sm); font-weight: 600;
  animation: slideUp 0.3s ease-out;
  margin-top: var(--space-sm);
}
.upload-success__check {
  width: 20px; height: 20px;
  background: var(--wutt-success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  animation: checkPop 0.4s ease-out;
}
@keyframes checkPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* --------------------------------------------------------
   File Preview Card
   -------------------------------------------------------- */
.preview-card {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md);
  background: var(--wutt-bg-subtle);
  border: 1px solid var(--wutt-border);
  border-radius: var(--radius-md);
  animation: slideUp 0.3s ease-out;
}
.preview-card__img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.preview-card__info { flex: 1; min-width: 0; }
.preview-card__name { font-size: var(--text-sm); font-weight: 600; color: var(--wutt-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-card__size { font-size: var(--text-xs); color: var(--wutt-text-muted); margin-top: 2px; }
.preview-card__remove {
  display: flex; align-items: center; justify-content: center;
  min-width: 32px; min-height: 32px;
  background: none; border: 1px solid var(--wutt-border); border-radius: 50%;
  cursor: pointer; color: var(--wutt-text-muted); font-size: 18px;
  transition: all var(--transition-fast); flex-shrink: 0;
}
.preview-card__remove:hover { background: var(--wutt-error-bg); border-color: var(--wutt-error); color: var(--wutt-error); }

/* --------------------------------------------------------
   Outfit Card — AI recommendation
   -------------------------------------------------------- */
.outfit-card {
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: none;
}
.outfit-card + .outfit-card { margin-top: var(--space-md); }
.outfit-card--context {
  background: linear-gradient(135deg, rgba(136,162,255,0.04), rgba(171,157,255,0.03));
  border: none;
}
.outfit-card__step {
  display: flex; align-items: flex-start; gap: var(--space-md);
  padding: var(--space-md) 0;
}
.outfit-card__step + .outfit-card__step { border-top: 1px solid var(--wutt-border-light); }
.outfit-card__number {
  display: flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px;
  background: var(--wutt-dark);
  color: var(--wutt-light);
  border-radius: 50%;
  font-size: var(--text-xs); font-weight: 700;
  flex-shrink: 0;
}
.outfit-card__label { font-size: var(--text-sm); font-weight: 500; color: var(--wutt-text); line-height: 1.5; }
.outfit-card--tip {
  display: flex; align-items: flex-start; gap: var(--space-sm);
  background: rgba(227,252,135,0.1);
  border: 1px solid rgba(227,252,135,0.25);
}
.outfit-card--tip .tip-icon { font-size: 1.125rem; flex-shrink: 0; margin-top: 1px; }

/* --------------------------------------------------------
   Alert Messages
   -------------------------------------------------------- */
.alert {
  display: flex; align-items: flex-start; gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm); font-weight: 500; line-height: 1.5;
}
.alert--error   { background: var(--wutt-error-bg);   color: var(--wutt-error);   border: 1px solid var(--wutt-error-border); }
.alert--success { background: var(--wutt-success-bg); color: #065F46;            border: 1px solid var(--wutt-success-border); }
.alert--info    { background: var(--wutt-info-bg);    color: var(--wutt-info);    border: 1px solid #BFDBFE; }
.alert--warning { background: var(--wutt-warning-bg); color: #92400E;            border: 1px solid #FDE68A; }

/* --------------------------------------------------------
   Loader / Spinner
   -------------------------------------------------------- */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--wutt-border);
  border-top-color: var(--wutt-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.spinner--sm { width: 14px; height: 14px; border-width: 1.5px; }
.spinner--lg { width: 36px; height: 36px; border-width: 3px; }

/* --------------------------------------------------------
   Footer
   -------------------------------------------------------- */
.site-footer {
  color: var(--wutt-text);
  background: var(--wutt-light);
  border-top: 1px solid var(--wutt-border-light);
}

.site-footer__inner {
  width: min(calc(100% - 2 * var(--space-xl)), 1200px);
  min-height: 112px;
  margin: 0 auto;
  padding: var(--space-xl) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.site-footer__identity {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  min-width: 0;
}

.site-footer__brand {
  flex: 0 0 auto;
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--wutt-dark);
}

.site-footer__tagline,
.site-footer__copy {
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--wutt-text-muted);
}

.site-footer__copy {
  margin: 0;
  text-align: right;
}

.footer {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  color: var(--wutt-text-muted);
  font-size: var(--text-xs);
  border-top: 1px solid var(--wutt-border-light);
}

/* --------------------------------------------------------
   Keyframe Animations
   -------------------------------------------------------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.animate--fade-in  { animation: fadeIn 0.5s ease-out; }
.animate--slide-up { animation: slideUp 0.5s ease-out; }

.stagger > * {
  opacity: 0;
  animation: slideUp 0.5s ease-out forwards;
}
.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }
.stagger > *:nth-child(5) { animation-delay: 0.5s; }
.stagger > *:nth-child(6) { animation-delay: 0.6s; }

/* --------------------------------------------------------
   Accessibility — Reduced Motion
   -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__stagger-1,
  .hero__stagger-2,
  .hero__stagger-3,
  .hero__stagger-4,
  .hero__stagger-5,
  .landing-hero__stagger-1,
  .landing-hero__stagger-2,
  .landing-hero__stagger-3 {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .login-card {
    transform: none;
    opacity: 1;
  }
  .stagger > * { opacity: 1; animation: none; }
  }


/* --------------------------------------------------------
   Utility Classes
   -------------------------------------------------------- */
.u-sr-only {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border-width: 0;
}
.u-hidden { display: none !important; }
.u-flex            { display: flex; }
.u-flex-col        { flex-direction: column; }
.u-items-center    { align-items: center; }
.u-items-start     { align-items: flex-start; }
.u-justify-center  { justify-content: center; }
.u-justify-between { justify-content: space-between; }
.u-text-center     { text-align: center; }
.u-gap-sm          { gap: var(--space-sm); }
.u-gap-md          { gap: var(--space-md); }
.u-gap-lg          { gap: var(--space-lg); }
.u-mt-sm           { margin-top: var(--space-sm); }
.u-mt-md           { margin-top: var(--space-md); }
.u-mt-lg           { margin-top: var(--space-lg); }
.u-mb-md           { margin-bottom: var(--space-md); }
.u-mb-lg           { margin-bottom: var(--space-lg); }
.u-w-full          { width: 100%; }

/* --------------------------------------------------------
   Focus styles
   -------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--wutt-deep);
  outline-offset: 2px;
}

/* --------------------------------------------------------
   Mobile Responsive
   -------------------------------------------------------- */
@media (max-width: 840px) {
  :root {
    --space-lg: 1rem; --space-xl: 1.5rem;
    --space-2xl: 2rem; --space-3xl: 2.5rem; --space-4xl: 3rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }
  .hero__content { max-width: 100%; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: 2; max-width: 480px; margin: 0 auto; }
  .how-it-works__grid { grid-template-columns: 1fr; max-width: 400px; }

  .navbar__nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh; height: 100dvh;
    flex-direction: column;
    background: var(--wutt-light);
    padding: var(--space-3xl) var(--space-xl);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
    gap: var(--space-md);
  }
  .navbar__nav--open { right: 0; }
  .navbar__toggle { display: flex; align-items: center; justify-content: center; }

  .hero { padding: calc(var(--space-2xl) + 60px) var(--space-md) var(--space-3xl); }
  .hero__headline { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }

  .modal { max-width: 100%; margin: var(--space-lg); max-height: calc(100dvh - var(--space-2xl)); }

  .dashboard { padding-top: 70px; }
  .dashboard__grid { grid-template-columns: 1fr; padding: var(--space-md); }

  .toast-container { left: var(--space-md); right: var(--space-md); max-width: 100%; }

  /* Landing hero mobile */
  .landing-hero__bg {
    background-image: url('/assets/wutt-fashion-hero-mobile.png');
    background-position: center 42%;
    background-size: cover;
    transform: none;
  }
  .landing-hero__overlay {
    background:
      linear-gradient(180deg,
        rgba(0, 0, 0, 0.32) 0%,
        rgba(0, 0, 0, 0.2) 38%,
        rgba(0, 0, 0, 0.26) 72%,
        rgba(0, 0, 0, 0.42) 100%
      );
  }
  .landing-hero__content {
    padding: var(--space-2xl) var(--space-md);
  }
  .landing-hero__wordmark {
    font-size: 2.5rem;
  }
  .landing-hero__headline {
    font-size: 1.5rem;
  }
  .login-card {
    padding: var(--space-lg) var(--space-lg) var(--space-md);
  }
  .site-footer__inner {
    width: min(calc(100% - 2 * var(--space-lg)), 1200px);
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-md);
  }
  .site-footer__identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .site-footer__copy {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero { padding: calc(var(--space-xl) + 60px) var(--space-md) var(--space-2xl); }
  .hero__headline { font-size: 1.75rem; }
  .preview { max-width: 100%; }
  .how-it-works { padding: var(--space-2xl) var(--space-md); }

  .navbar__inner { padding: 0 var(--space-md); }
  .card { padding: var(--space-lg); }
  .modal__body, .modal__header, .modal__footer { padding-left: var(--space-lg); padding-right: var(--space-lg); }

  /* Landing hero small mobile */
  .landing-hero__content {
    padding: var(--space-xl) var(--space-md);
  }
  .landing-hero__wordmark {
    font-size: 2rem;
  }
  .landing-hero__headline {
    font-size: 1.35rem;
  }
  .login-card {
    max-width: 100%;
    padding: var(--space-lg) var(--space-md) var(--space-md);
  }
}


/* --------------------------------------------------------
Welcome Loading Screen — Editorial fashion intro
-------------------------------------------------------- */
.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wutt-bg);
}

.welcome-screen__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
}

/* Wordmark — appears first, fades up */
.welcome-screen__wordmark {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--wutt-text-muted);
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: welcomeWordmarkIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: 0.25s;
}

@keyframes welcomeWordmarkIn {
  0%   { opacity: 0; transform: translateY(12px); letter-spacing: 6px; }
  100% { opacity: 0.8; transform: translateY(0); letter-spacing: 3px; }
}

/* Title — appears second, gentle scale+fade */
.welcome-screen__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--wutt-dark);
  letter-spacing: -0.03em;
  opacity: 0;
  animation: welcomeTitleIn 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  animation-delay: 0.8s;
}

@keyframes welcomeTitleIn {
  0%   { opacity: 0; transform: translateY(16px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Subtitle — subtle final step */
.welcome-screen__subtitle {
  font-size: var(--text-xs);
  color: var(--wutt-text-muted);
  max-width: 260px;
  line-height: 1.5;
  opacity: 0;
  animation: welcomeSubIn 0.7s ease-out forwards;
  animation-delay: 1.5s;
}

@keyframes welcomeSubIn {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 0.5; transform: translateY(0); }
}

/* Hide loader dots — not needed with word animations */
.welcome-screen__loader {
  display: none;
}

/* --------------------------------------------------------
Chat App — Main screen (redesign)
-------------------------------------------------------- */
.chat-app {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  background: var(--wutt-bg);
  overflow: hidden;
}

/* ---- Slim left sidebar ---- */
.chat-sidebar {
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-md) 0;
  background: var(--wutt-light);
  border-right: 1px solid var(--wutt-border-light);
  flex-shrink: 0;
  z-index: 1;
}

.chat-sidebar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--wutt-dark);
  margin-bottom: var(--space-md);
  transition: background var(--transition-fast);
}
.chat-sidebar__logo:hover { background: var(--wutt-bg-subtle); }

.chat-sidebar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--wutt-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast);
  position: relative;
}
.chat-sidebar__item:hover {
  color: var(--wutt-text);
  background: var(--wutt-bg-subtle);
}
.chat-sidebar__item--active {
  color: var(--wutt-dark);
  background: rgba(200, 155, 142, 0.12);
}

.chat-sidebar__spacer { flex: 1; }

/* ---- Main chat area ---- */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

/* Chat header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 40px;
  padding: 3px clamp(12px, 2.5vw, 22px) 5px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.34) 0%,
    rgba(255, 255, 255, 0.08) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: blur(14px) saturate(1.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.06);
  border: 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
}

.chat-header__menu-wrap {
  position: relative;
  flex-shrink: 0;
}

.chat-header__menu-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--wutt-text-muted);
  border-radius: 11px;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.chat-header__menu-trigger:hover,
.chat-header__menu-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--wutt-border-light);
  color: var(--wutt-dark);
}

.chat-header__menu-trigger:active {
  transform: scale(0.96);
}

.chat-header__menu-trigger:focus-visible,
.chat-header__menu-item:focus-visible {
  outline: 2px solid rgba(31, 31, 31, 0.28);
  outline-offset: 2px;
}

.chat-header__menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: max-content;
  min-width: 184px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--wutt-border-light);
  border-radius: 13px;
  box-shadow: 0 12px 30px rgba(45, 38, 35, 0.12);
  transform-origin: top right;
}

.chat-header__menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #9b403b;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.chat-header__menu-item:hover {
  background: rgba(155, 64, 59, 0.08);
}

.chat-header__menu-item:active {
  transform: scale(0.985);
}

.chat-header__menu-item:disabled {
  cursor: wait;
  opacity: 0.55;
}

/* Chat body — scrollable area */
.chat-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* ---- Welcome / empty state ---- */
.chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4xl) var(--space-lg);
  min-height: 100%;
}

.chat-welcome__avatar {
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

.chat-welcome__greeting {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  color: var(--wutt-dark);
  letter-spacing: -0.025em;
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.chat-welcome__hint {
  font-size: var(--text-sm);
  color: var(--wutt-text-light);
  margin-bottom: var(--space-2xl);
  line-height: 1.5;
}

/* Action cards grid */
.chat-welcome__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  width: 100%;
  max-width: 420px;
}

/* Action card */
.action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-lg);
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  text-align: left;
  font-family: inherit;
}
.action-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--wutt-primary);
}
.action-card:active { transform: scale(0.98); }

.action-card__icon {
  color: var(--wutt-primary);
  margin-bottom: var(--space-xs);
}

.action-card__label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--wutt-dark);
  letter-spacing: -0.01em;
}

.action-card__desc {
  font-size: 0.6875rem;
  color: var(--wutt-text-muted);
  line-height: 1.4;
}

/* ---- Style chips for chat welcome ---- */
.chat-welcome__cards--chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.style-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--wutt-text);
  transition: all 180ms cubic-bezier(0.23, 1, 0.32, 1);
}
.style-chip:hover {
  border-color: var(--wutt-primary);
  background: rgba(200, 155, 142, 0.06);
}
.style-chip:active {
  transform: scale(0.97);
}
.style-chip--selected {
  background: var(--wutt-primary);
  border-color: var(--wutt-primary);
  color: var(--wutt-light);
}
.style-chip--selected:hover {
  background: var(--wutt-primary);
  border-color: var(--wutt-primary);
}

/* Night mode style chips */
.chat-app--night .style-chip {
  background: var(--_chat-surface);
  border-color: var(--_chat-border);
  color: var(--_chat-text);
}
.chat-app--night .style-chip:hover {
  border-color: var(--wutt-night-accent);
  background: rgba(200, 180, 240, 0.1);
}
.chat-app--night .style-chip--selected {
  background: var(--wutt-night-accent);
  border-color: var(--wutt-night-accent);
  color: #1a1817;
}

/* ---- Messages (hidden until interaction) ---- */
.chat-messages {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.chat-msg {
  display: flex;
  gap: var(--space-sm);
  max-width: 82%;
  animation: chatMsgIn 0.35s ease-out;
}

/* Cap standalone cards/chips to chat-bubble width so they don't stretch full screen */
.chat-chips,
.upload-card,
.describe-form,
.analyzing-card {
  max-width: 82%;
  width: fit-content;
  min-width: 340px;
}

/* Analysis card — align like a bot message, compact */
.analysis-card {
  max-width: 560px;
  width: fit-content;
  min-width: 320px;
}

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

.chat-msg--bot { align-self: flex-start; }

.chat-msg__avatar {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  align-self: flex-end;
}

.chat-msg__bubble {
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border-light);
  border-radius: 20px 20px 20px 6px;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  color: var(--wutt-text);
  line-height: 1.6;
  box-shadow: var(--shadow-xs);
}

/* Chat chips */
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-left: 40px;
}

.chat-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--wutt-text);
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  touch-action: manipulation;
}
.chat-chip:hover {
  background: var(--wutt-dark);
  color: var(--wutt-light);
  border-color: var(--wutt-dark);
  box-shadow: var(--shadow-md);
}
.chat-chip:active { transform: scale(0.97); }

/* ---- Input bar ---- */
.chat-input-bar {
  padding: var(--space-sm) var(--space-lg) var(--space-md);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  justify-content: center;
}

.chat-image-preview {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: min(680px, 100%);
  padding: 8px;
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}
.chat-image-preview__image {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--wutt-bg-subtle);
}
.chat-image-preview__details {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.chat-image-preview__name {
  overflow: hidden;
  color: var(--wutt-text);
  font-size: var(--text-xs);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-image-preview__status {
  color: var(--wutt-text-muted);
  font-size: 0.6875rem;
}
.chat-image-preview__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  color: var(--wutt-text-muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color 150ms ease-out, background-color 150ms ease-out;
}
.chat-image-preview__remove:hover {
  color: var(--wutt-text);
  background: var(--wutt-bg-subtle);
}

.chat-input__wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--wutt-light);
  border: 1.5px solid var(--wutt-border);
  border-radius: var(--radius-2xl);
  padding: 2px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
  max-width: 680px;
  width: 100%;
}
/* Remove default outline on raw input — wrapper handles focus visuals */
.chat-input__field:focus,
.chat-input__field:focus-visible {
  outline: none;
  box-shadow: none;
}
.chat-input__wrapper:focus-within {
  border-color: var(--wutt-primary);
  box-shadow: 0 0 0 3px rgba(200, 155, 142, 0.15);
}

.chat-input__attach {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--wutt-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast), opacity var(--transition-fast);
}
.chat-input__attach:hover:not(:disabled) { color: var(--wutt-text); background: var(--wutt-bg-subtle); }
.chat-input__attach:disabled { opacity: 0.3; cursor: not-allowed; }

.chat-input__field {
  flex: 1;
  height: 40px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: var(--text-sm);
  color: var(--wutt-text);
  outline: none;
  padding: 0 var(--space-xs);
}
.chat-input__field::placeholder { color: var(--wutt-text-muted); }

.chat-input__send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--wutt-dark);
  color: var(--wutt-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.chat-input__send[aria-busy="true"] svg {
  animation: chatSendPulse 900ms ease-in-out infinite alternate;
}
@keyframes chatSendPulse {
  from { opacity: 0.45; transform: translateY(1px); }
  to { opacity: 1; transform: translateY(-1px); }
}

.chat-history-day {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  color: var(--wutt-text-muted);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chat-history-day::before,
.chat-history-day::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--wutt-border-light);
}
.chat-welcome__cards--generating {
  opacity: 0.65;
  pointer-events: none;
}
.chat-msg__attached-image {
  display: block;
  width: min(260px, 62vw);
  max-height: 320px;
  object-fit: cover;
  border-radius: 16px 16px 4px 16px;
}
.chat-msg__image-caption {
  display: block;
  padding: 9px 2px 2px;
}
.chat-msg--user:has(.chat-msg__attached-image) .chat-msg__bubble {
  padding: 5px;
}
.chat-coming-soon {
  display: block;
  max-width: 360px;
}
.chat-coming-soon strong {
  display: block;
  margin-bottom: 3px;
  color: var(--wutt-dark);
}
.chat-input__send:hover {
  background: #2A2A2A;
  transform: scale(1.05);
}
.chat-input__send:active { transform: scale(0.95); }
.chat-input__send:disabled {
  background: var(--wutt-bg-subtle);
  color: var(--wutt-text-muted);
  cursor: not-allowed;
  transform: none;
}

/* ---- User message bubble ---- */
.chat-msg--user {
  align-self: flex-end;
}
.chat-msg--user .chat-msg__bubble {
  background: var(--wutt-dark);
  color: var(--wutt-light);
  border: none;
  border-radius: 20px 20px 6px 20px;
}

/* ---- Error message (API unavailable) ---- */
.chat-msg__error {
  background: #FFF3F3;
  color: #B33A3A;
  border: 1px solid #F5C6C6;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ---- Stylist recommendation ---- */
.stylist-look {
  width: min(520px, 100%);
  color: var(--wutt-text);
}
.stylist-look__header {
  margin-bottom: var(--space-md);
}
.stylist-look__title {
  margin: 0;
  color: var(--wutt-dark);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.stylist-look__section {
  margin-top: var(--space-md);
}
.stylist-look__section + .stylist-look__section {
  margin-top: var(--space-lg);
}
.stylist-look__label {
  margin: 0 0 6px;
  color: var(--wutt-text);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
}
.stylist-look__pieces {
  margin: 0;
  padding-left: 1.25rem;
}
.stylist-look__piece {
  padding-left: 2px;
  font-size: 0.8125rem;
  line-height: 1.65;
}
.stylist-look__copy {
  margin: 0;
  color: var(--wutt-text);
  font-size: 0.8125rem;
  line-height: 1.65;
}
.chat-msg--bot:has(.stylist-look) .chat-msg__bubble {
  max-width: min(520px, calc(100vw - 88px));
}

/* ---- Typing indicator ---- */
.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.chat-msg__bubble--typing {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 48px;
  min-height: 34px;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 16px 16px 16px 5px;
}
.chat-typing__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wutt-text-muted);
  animation: chatTypingBounce 1.2s ease-in-out infinite;
}
.chat-typing__dot:nth-child(2) { animation-delay: 0.15s; }
.chat-typing__dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.chat-app--night .chat-typing__dot { background: var(--_chat-muted); }

/* ---- Upload preview card (in chat) ---- */
.upload-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-top: var(--space-sm);
  box-shadow: var(--shadow-xs);
  animation: chatMsgIn 0.35s ease-out;
}
.upload-card__thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--wutt-bg-subtle);
}
.upload-card__info {
  flex: 1;
  min-width: 0;
}
.upload-card__name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--wutt-text);
  margin-bottom: 2px;
}
.upload-card__meta {
  font-size: 0.625rem;
  color: var(--wutt-text-muted);
}
.upload-card__save {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.375rem 0.875rem;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--wutt-light);
  background: var(--wutt-dark);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.upload-card__save:hover { background: #2A2A2A; }
.upload-card__save:active { transform: scale(0.96); }

/* ---- Describe inline form (in chat) ---- */
.describe-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-top: var(--space-sm);
  max-width: 320px;
  animation: chatMsgIn 0.35s ease-out;
}

.describe-form__fields {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.describe-form__field {
  flex: 1;
  min-width: 80px;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.6875rem;
  color: var(--wutt-text);
  background: var(--wutt-bg-subtle);
  border: 1px solid var(--wutt-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}
.describe-form__field::placeholder { color: var(--wutt-text-muted); }
.describe-form__field:focus { border-color: var(--wutt-primary); }

.describe-form__save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0.45rem 1rem;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--wutt-light);
  background: var(--wutt-dark);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
}
.describe-form__save:hover { background: #2A2A2A; }
.describe-form__save:active { transform: scale(0.97); }

/* ---- Wardrobe cards in sidebar ---- */
.sidebar-wardrobe {
  padding: var(--space-md);
}

.sidebar-wardrobe__title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wutt-text-muted);
  margin-bottom: var(--space-sm);
}

.sidebar-wardrobe__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  max-height: 360px;
  overflow-y: auto;
}

.sidebar-wardrobe__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--wutt-bg-subtle);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}
.sidebar-wardrobe__item:hover { background: var(--wutt-bg); }

.sidebar-wardrobe__thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--wutt-border-light);
  flex-shrink: 0;
}

.sidebar-wardrobe__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wutt-text-muted);
  background: var(--wutt-border-light);
}

.sidebar-wardrobe__item-info {
  flex: 1;
  min-width: 0;
}

.sidebar-wardrobe__item-name {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--wutt-text);
  line-height: 1.3;
}

.sidebar-wardrobe__item-cat {
  font-size: 0.5625rem;
  color: var(--wutt-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-wardrobe__delete {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--wutt-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 150ms ease, color 150ms ease;
}
.sidebar-wardrobe__delete:hover { background: rgba(239,68,68,0.1); color: #EF4444; }

/* ---- Analyzing loader (in chat) ---- */
.analyzing-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--wutt-light);
  border: 2px dashed var(--wutt-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  animation: chatMsgIn 0.35s ease-out;
}
.analyzing-card__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--wutt-border);
  border-top-color: var(--wutt-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
.analyzing-card__text {
  font-size: var(--text-sm);
  color: var(--wutt-text-light);
  font-weight: 500;
}
.analyzing-card__dot {
  display: inline-block;
  animation: analyzingDots 1.4s steps(3, end) infinite;
}

@keyframes analyzingDots {
  0%   { content: ''; }
  33%  { opacity: 0.3; }
  66%  { opacity: 0.6; }
}

/* ---- AI analysis result card ---- */
/* ---- AI analysis draft card — compact fashion-item layout ---- */
.analysis-card {
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: chatMsgIn 0.4s ease-out;
  box-shadow: var(--shadow-sm);
  width: fit-content;
}

.analysis-card__draft-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--wutt-text-muted);
  background: var(--wutt-bg-subtle);
  border-radius: 99px;
  margin-bottom: var(--space-xs);
  width: fit-content;
}
.analysis-card__draft-badge svg { opacity: 0.5; }

.analysis-card__body {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  align-items: center;
}

.analysis-card__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--wutt-bg-subtle);
  flex-shrink: 0;
}

.analysis-card__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wutt-text-muted);
}

.analysis-card__summary {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.analysis-card__category {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--wutt-primary);
}

.analysis-card__item-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--wutt-dark);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Compact inline pill fields — editable by clicking */
.analysis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.analysis-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  font-family: inherit;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--wutt-text);
  background: var(--wutt-bg-subtle);
  border: 1px solid var(--wutt-border);
  border-radius: 99px;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
  min-width: 0;
}
.analysis-tag:hover {
  background: var(--wutt-border-light);
  border-color: var(--wutt-primary);
}
.analysis-tag:focus {
  background: var(--wutt-light);
  border-color: var(--wutt-primary);
  box-shadow: 0 0 0 3px rgba(200, 155, 142, 0.12);
  outline: none;
}

.analysis-tag__label {
  font-size: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--wutt-text-muted);
  margin-right: 1px;
}

.analysis-card__footer {
  display: flex;
  gap: var(--space-sm);
  padding: 0 var(--space-md) var(--space-md);
  flex-wrap: wrap;
}

.analysis-card__save {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.45rem 1rem;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--wutt-light);
  background: var(--wutt-dark);
  border: none;
  border-radius: 99px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.analysis-card__save:hover { background: #2A2A2A; transform: translateY(-1px); }
.analysis-card__save:active { transform: scale(0.97); }
.analysis-card__save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.analysis-card__action-ghost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.45rem 0.75rem;
  font-family: inherit;
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--wutt-text-light);
  background: transparent;
  border: 1px solid var(--wutt-border);
  border-radius: 99px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.analysis-card__action-ghost:hover {
  background: var(--wutt-bg-subtle);
  color: var(--wutt-text);
}

.sidebar-wardrobe__empty {
  font-size: var(--text-xs);
  color: var(--wutt-text-muted);
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  line-height: 1.5;
}
.sidebar-wardrobe__empty p {
  margin-bottom: var(--space-xs);
}
.sidebar-wardrobe__hint {
  font-size: 0.6875rem;
  color: var(--wutt-text-light);
}
.sidebar-coming-soon {
  display: block;
  margin-top: var(--space-md);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--wutt-primary);
  background: rgba(200, 155, 142, 0.08);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  line-height: 1.4;
}

/* ---- Wardrobe drawer ---- */
.wardrobe-drawer {
  width: 240px;
  flex-shrink: 0;
  background: var(--wutt-light);
  border-right: 1px solid var(--wutt-border-light);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ---- Wardrobe Full Page ---- */
.wardrobe-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--wutt-bg, #faf9f7);
}
.wardrobe-view__scroll {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-2xl) var(--space-2xl) var(--space-3xl);
}

/* Header */
.wardrobe-view__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  gap: var(--space-lg);
}
.wardrobe-view__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wutt-dark);
  letter-spacing: -0.02em;
  margin: 0;
}
.wardrobe-view__subtitle {
  font-size: var(--text-sm);
  color: var(--wutt-text-muted);
  margin: 4px 0 0;
}
.wardrobe-view__eyebrow,
.wardrobe-modal__eyebrow,
.wardrobe-modal__section-label,
.wardrobe-tools__eyebrow {
  margin: 0 0 5px;
  color: var(--wutt-text-muted);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Search */
.wardrobe-view__search {
  position: relative;
  flex-shrink: 0;
  width: 260px;
}
.wardrobe-view__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wutt-text-muted);
  pointer-events: none;
}
.wardrobe-view__search-input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 36px;
  font-family: inherit;
  font-size: var(--text-sm);
  color: var(--wutt-text);
  background: var(--wutt-light);
  border: 1.5px solid var(--wutt-border);
  border-radius: var(--radius-full);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.wardrobe-view__search-input::placeholder { color: var(--wutt-text-muted); }
.wardrobe-view__search-input:focus {
  border-color: var(--wutt-primary);
  box-shadow: 0 0 0 3px rgba(200, 155, 142, 0.1);
}

/* Category Filters */
.wardrobe-view__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-xl);
}
.wardrobe-view__filter {
  padding: 6px 16px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wutt-text);
  background: var(--wutt-light);
  border: 1.5px solid var(--wutt-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}
.wardrobe-view__filter:hover { border-color: var(--wutt-primary); }
.wardrobe-view__filter--active {
  background: var(--wutt-dark);
  color: var(--wutt-light);
  border-color: var(--wutt-dark);
}

/* Fashion Closet Grid */
.wardrobe-view__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

/* Empty state */
.wardrobe-view__empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
}
.wardrobe-view__empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--wutt-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wutt-text-muted);
  margin-bottom: var(--space-lg);
}
.wardrobe-view__empty-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--wutt-dark);
  margin: 0 0 var(--space-sm);
}
.wardrobe-view__empty-hint {
  font-size: var(--text-sm);
  color: var(--wutt-text-muted);
  max-width: 320px;
  line-height: 1.5;
  margin: 0;
}
.wardrobe-view__empty-action {
  min-height: 44px;
  margin-top: var(--space-lg);
  padding: 0 20px;
  color: var(--wutt-light);
  background: var(--wutt-dark);
  border: 0;
  border-radius: var(--radius-full);
  font: 600 var(--text-xs)/1 inherit;
  cursor: pointer;
  transition: background-color 160ms ease-out, transform 160ms ease-out;
}
.wardrobe-view__empty-action:hover { background: #2a2a2a; }
.wardrobe-view__empty-action:active { transform: scale(0.97); }

/* Wardrobe Card (grid item) */
.wardrobe-card {
  position: relative;
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: default;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, border-color 160ms ease;
}
.wardrobe-card--selected {
  border-color: var(--wutt-primary);
  box-shadow: 0 0 0 2px var(--wutt-primary);
}
@media (hover: hover) and (pointer: fine) {
  .wardrobe-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139, 119, 101, 0.1);
  }
}
.wardrobe-card__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--wutt-bg-subtle);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: block;
}
.wardrobe-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wutt-text-muted);
}
.wardrobe-card__info {
  padding: 12px;
}
.wardrobe-card__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wutt-dark);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wardrobe-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  color: var(--wutt-text-muted);
}
.wardrobe-card__color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wardrobe-card__tags {
  display: flex;
  gap: 5px;
  margin-top: 9px;
  overflow: hidden;
}
.wardrobe-card__tag {
  max-width: 92px;
  padding: 4px 7px;
  overflow: hidden;
  color: var(--wutt-text-muted);
  background: var(--wutt-bg-subtle);
  border-radius: var(--radius-full);
  font-size: 0.625rem;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wardrobe-card__actions {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
}
.wardrobe-card__menu-trigger {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--wutt-dark);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  place-items: center;
  transform: scale(0.94);
  transition: opacity 150ms ease-out, background-color 150ms ease-out, transform 150ms ease-out, visibility 150ms;
}
.wardrobe-card__menu-trigger svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.wardrobe-card__menu-trigger:hover,
.wardrobe-card__menu-trigger[aria-expanded="true"] {
  background: transparent;
  opacity: 1;
}
.wardrobe-card__menu-trigger:hover { transform: scale(1.06); }
.wardrobe-card__menu-trigger:active { transform: scale(0.9); }
.wardrobe-card__menu-trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  opacity: 1;
}
[data-wutt-theme="night"] .wardrobe-card__menu-trigger {
  color: var(--wutt-light);
}
@media (hover: hover) and (pointer: fine) {
  .wardrobe-card:hover .wardrobe-card__menu-trigger,
  .wardrobe-card:focus-within .wardrobe-card__menu-trigger,
  .wardrobe-card--menu-open .wardrobe-card__menu-trigger {
    opacity: 0.78;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
  }
}
@media (hover: none), (pointer: coarse) {
  .wardrobe-card__menu-trigger,
  .wardrobe-card--menu-open .wardrobe-card__menu-trigger,
  .wardrobe-card:focus-within .wardrobe-card__menu-trigger {
    opacity: 0.52;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
  }
  .wardrobe-card__menu-trigger[aria-expanded="true"],
  .wardrobe-card__menu-trigger:focus-visible {
    opacity: 0.9;
  }
  .wardrobe-card__menu-trigger:active {
    opacity: 1;
    transform: scale(0.9);
  }
}
.wardrobe-card__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 132px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--wutt-border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px rgba(31, 26, 23, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-5px) scale(0.96);
  transform-origin: top right;
  transition: opacity 160ms ease-out, transform 160ms cubic-bezier(0.16, 1, 0.3, 1), visibility 160ms;
}
.wardrobe-card--menu-open {
  z-index: 4;
  overflow: visible;
}
.wardrobe-card--menu-open .wardrobe-card__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.wardrobe-card__menu .wardrobe-card__edit,
.wardrobe-card__menu .wardrobe-card__delete {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--wutt-text);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  transition: color 120ms ease-out, background-color 120ms ease-out;
}
.wardrobe-card__menu .wardrobe-card__edit:hover,
.wardrobe-card__menu .wardrobe-card__edit:focus-visible {
  background: var(--wutt-bg-subtle);
  outline: none;
}
.wardrobe-card__menu .wardrobe-card__delete { color: #9a5952; }
.wardrobe-card__menu .wardrobe-card__delete:hover,
.wardrobe-card__menu .wardrobe-card__delete:focus-visible {
  background: #fdf1ef;
  outline: none;
}

.wardrobe-card--skeleton {
  pointer-events: none;
}
.wardrobe-card--skeleton .wardrobe-card__img {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.wardrobe-skeleton__title {
  width: 68%;
  height: 13px;
  margin-bottom: 8px;
}
.wardrobe-skeleton__meta {
  width: 42%;
  height: 9px;
}
.wardrobe-skeleton__tag {
  width: 56px;
  height: 18px;
  border-radius: var(--radius-full);
}
.wardrobe-skeleton__tag--short {
  width: 42px;
}

/* Card select checkbox */
.wardrobe-card__select {
  display: none;
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 2;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.wardrobe-card__select input[type="checkbox"] {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  transition: background 120ms ease, border-color 120ms ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.wardrobe-card__select input[type="checkbox"]:checked {
  background: var(--wutt-primary);
  border-color: var(--wutt-primary);
}
.wardrobe-card__select input[type="checkbox"]:checked::after {
  content: '';
  display: block;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  margin: 2px auto 0;
}

/* Select mode: show checkboxes, hide delete icons */
.wardrobe-view--select-mode .wardrobe-card__select { display: flex; }
.wardrobe-view--select-mode .wardrobe-card__actions { display: none; }
.wardrobe-view--select-mode .wardrobe-card { cursor: pointer; }

/* AI Clothing Analysis — quiet roadmap note */
.wardrobe-tools {
  display: flex;
  align-items: flex-start;
  max-width: 620px;
  padding: 0;
  background: transparent;
  border: 0;
}
.wardrobe-tools__text { flex: 1; min-width: 0; }
.wardrobe-tools__heading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 4px;
}
.wardrobe-tools__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--wutt-dark);
  margin: 0;
}
.wardrobe-tools__desc {
  font-size: 0.75rem;
  color: var(--wutt-text-muted);
  margin: 0;
  line-height: 1.4;
}
.wardrobe-tools__badge {
  flex-shrink: 0;
  padding: 3px 8px;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--wutt-text-muted);
  background: var(--wutt-bg-subtle);
  border: 1px solid var(--wutt-border-light);
  border-radius: var(--radius-full);
}

/* Header actions row */
.wardrobe-view__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}
.wardrobe-view__add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--wutt-light);
  background: var(--wutt-dark);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 160ms ease-out, background 160ms ease;
  white-space: nowrap;
}
.wardrobe-view__add-btn:hover { background: #2A2A2A; }
.wardrobe-view__add-btn:active { transform: scale(0.97); }

/* Select mode toggle button */
button.wardrobe-view__select-btn,
.wardrobe-view__select-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 9px 20px !important;
  font-family: inherit !important;
  font-size: var(--text-xs) !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: var(--wutt-light) !important;
  background: var(--wutt-dark) !important;
  border: none !important;
  border-radius: var(--radius-full) !important;
  cursor: pointer !important;
  transition: transform 160ms ease-out, background 160ms ease !important;
  white-space: nowrap !important;
  touch-action: manipulation !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}
.wardrobe-view__select-btn:hover { background: #2A2A2A !important; }
.wardrobe-view__select-btn:active { transform: scale(0.97) !important; }
.wardrobe-view--select-mode .wardrobe-view__select-btn {
  background: var(--wutt-primary);
  color: #fff;
}

/* Bulk action bar */
.wardrobe-view__bulk-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding: 10px 16px;
  background: var(--wutt-light);
  border: 1.5px solid var(--wutt-border);
  border-radius: var(--radius-lg);
}
.wardrobe-view__bulk-count {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--wutt-text);
  margin-right: auto;
}
.wardrobe-view__bulk-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  color: #fff;
  background: #d94452;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 160ms ease-out, background 160ms ease;
}
.wardrobe-view__bulk-delete:hover { background: #c53544; }
.wardrobe-view__bulk-delete:active { transform: scale(0.97); }
.wardrobe-view__bulk-delete:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
.wardrobe-view__bulk-cancel {
  padding: 7px 16px;
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--wutt-text-muted);
  background: none;
  border: 1.5px solid var(--wutt-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}
.wardrobe-view__bulk-cancel:hover { border-color: var(--wutt-text-muted); color: var(--wutt-text); }

/* ---- Upload Modal ---- */
.wardrobe-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}
.wardrobe-modal {
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  background: var(--wutt-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.wardrobe-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--wutt-border-light);
  flex-shrink: 0;
}
.wardrobe-modal__title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--wutt-dark);
  margin: 0;
}
.wardrobe-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  color: var(--wutt-text-muted);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.wardrobe-modal__close:hover { background: rgba(0,0,0,0.06); color: var(--wutt-text); }

/* Upload area */
.wardrobe-modal__step {
  padding: var(--space-xl);
  overflow-y: auto;
}
.wardrobe-modal__upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-xl);
  border: 2px dashed var(--wutt-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.wardrobe-modal__upload-area:hover {
  border-color: var(--wutt-primary);
  background: rgba(200, 155, 142, 0.04);
}
.wardrobe-modal__upload-area.dragover {
  border-color: var(--wutt-primary);
  background: rgba(200, 155, 142, 0.08);
}
.wardrobe-modal__upload-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wutt-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wutt-text-muted);
  margin-bottom: var(--space-md);
}
.wardrobe-modal__upload-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--wutt-dark);
  margin: 0 0 4px;
}
.wardrobe-modal__upload-hint {
  font-size: 0.75rem;
  color: var(--wutt-text-muted);
  margin: 0;
}

/* Preview + manual details */
.wardrobe-modal__editor {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(340px, 1.35fr);
  gap: var(--space-xl);
  align-items: start;
}
.wardrobe-modal__preview {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--wutt-bg-subtle);
}
.wardrobe-modal__preview-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--wutt-bg-subtle);
  display: block;
}
.wardrobe-modal__preview-note {
  margin: var(--space-sm) 0 0;
  color: var(--wutt-text-muted);
  font-size: 0.6875rem;
  line-height: 1.5;
}
.wardrobe-modal__detected {
  background: var(--wutt-bg-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.wardrobe-modal__detected-header {
  margin-bottom: var(--space-lg);
}
.wardrobe-modal__details-title {
  margin: 0 0 4px;
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--wutt-dark);
}
.wardrobe-modal__details-hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--wutt-text-muted);
}
.wardrobe-modal__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}
.wardrobe-modal__group-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin: var(--space-xs) 0 0;
  padding-bottom: var(--space-sm);
  color: var(--wutt-dark);
  border-bottom: 1px solid var(--wutt-border-light);
  font-size: 0.75rem;
  font-weight: 700;
}
.wardrobe-modal__group-title:first-child {
  margin-top: 0;
}
.wardrobe-modal__group-title span {
  color: var(--wutt-text-muted);
  font-size: 0.6875rem;
  font-weight: 400;
}
.wardrobe-modal__field {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  border-bottom: 0;
}
.wardrobe-modal__field--wide { grid-column: 1 / -1; }
.wardrobe-modal__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--wutt-text-muted);
}
.wardrobe-modal__label span {
  color: var(--wutt-primary-deep, var(--wutt-primary));
}
.wardrobe-modal__input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--wutt-text);
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.wardrobe-modal__input:focus {
  border-color: var(--wutt-primary);
  box-shadow: 0 0 0 3px rgba(200, 155, 142, 0.1);
}
.wardrobe-modal__textarea {
  min-height: 76px;
  resize: vertical;
}
.wardrobe-modal__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wardrobe-modal__suggestions button {
  min-height: 30px;
  padding: 5px 9px;
  color: var(--wutt-text-muted);
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border);
  border-radius: 999px;
  font: inherit;
  font-size: 0.6875rem;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.wardrobe-modal__suggestions button:hover {
  color: var(--wutt-text);
  border-color: var(--wutt-primary);
}
.wardrobe-modal__suggestions button.is-selected {
  color: var(--wutt-dark);
  background: var(--wutt-primary-light, var(--wutt-bg-subtle));
  border-color: var(--wutt-primary);
}
.wardrobe-modal__suggestions button:focus-visible {
  outline: 2px solid var(--wutt-primary);
  outline-offset: 2px;
}

/* Footer buttons */
.wardrobe-modal__footer {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--wutt-border-light);
}
.wardrobe-modal__btn {
  flex: 0 1 auto;
  min-height: 44px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 160ms ease-out, background 160ms ease;
}
.wardrobe-modal__btn:active { transform: scale(0.97); }
.wardrobe-modal__btn--primary {
  min-width: 170px;
  color: var(--wutt-light);
  background: var(--wutt-dark);
}
.wardrobe-modal__btn--primary:hover { background: #2A2A2A; }
.wardrobe-modal__btn--secondary {
  color: var(--wutt-text);
  background: var(--wutt-bg-subtle);
}
.wardrobe-modal__btn--secondary:hover { background: var(--wutt-border-light); }

/* Saved confirmation */
.wardrobe-modal__saved {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl) 0;
}
.wardrobe-modal__saved-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  color: #22C55E;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}
.wardrobe-modal__saved-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--wutt-dark);
  margin: 0 0 4px;
}
.wardrobe-modal__saved-hint {
  font-size: var(--text-sm);
  color: var(--wutt-text-muted);
  margin: 0 0 var(--space-lg);
}

.wardrobe-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border-bottom: 1px solid var(--wutt-border-light);
}
.wardrobe-drawer__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--wutt-dark);
  letter-spacing: -0.01em;
}
.wardrobe-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  background: var(--wutt-bg-subtle);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--wutt-text-muted);
}
.wardrobe-drawer__close:hover { color: var(--wutt-text); background: rgba(0,0,0,0.05); }

/* ---- Chat mood themes ---- */
.chat-app--night {
  --_chat-bg: #111010;
  --_chat-surface: #1c1a19;
  --_chat-border: #5a5550;
  --_chat-text: #f0ebe5;
  --_chat-muted: #c5bdb5;
}
.chat-app--night {
  background: var(--_chat-bg);
}
.chat-app--night .chat-body {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: #514b47 transparent;
}
.chat-app--night .chat-body::-webkit-scrollbar {
  width: 8px;
}
.chat-app--night .chat-body::-webkit-scrollbar-track {
  background: transparent;
}
.chat-app--night .chat-body::-webkit-scrollbar-thumb {
  background: #514b47;
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}
.chat-app--night .chat-body::-webkit-scrollbar-thumb:hover {
  background: #6a625d;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.chat-app--night .chat-body::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 155, 142, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.chat-app--night .chat-body::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(171, 157, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Fashion stickers — decorative only, night mode */
.chat-stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.chat-stickers svg {
  position: absolute;
  opacity: 0.04;
  stroke: currentColor;
  fill: none;
  stroke-width: 1;
}
.chat-stickers svg:nth-child(1) {
  top: 12%;
  right: 8%;
  width: 48px;
  height: 48px;
  color: #c89b8e;
  transform: rotate(-12deg);
}
.chat-stickers svg:nth-child(2) {
  bottom: 18%;
  left: 6%;
  width: 40px;
  height: 40px;
  color: #ab9dff;
  transform: rotate(8deg);
}
.chat-stickers svg:nth-child(3) {
  top: 45%;
  right: 4%;
  width: 36px;
  height: 36px;
  color: #e3fc87;
  transform: rotate(-5deg);
}
.chat-stickers svg:nth-child(4) {
  bottom: 35%;
  left: 10%;
  width: 32px;
  height: 32px;
  color: #c0e0ff;
  transform: rotate(15deg);
}
.chat-app--night .chat-sidebar { background: var(--_chat-surface); border-color: var(--_chat-border); }
.chat-app--night .chat-sidebar__item { color: #a09892; }
.chat-app--night .chat-sidebar__item:hover { color: var(--_chat-text); background: rgba(255,255,255,0.04); }
.chat-app--night .chat-sidebar__item--active { color: var(--wutt-night-accent); background: rgba(200,180,240,0.12); }
.chat-app--night .chat-sidebar__logo { color: var(--_chat-text); }
.chat-app--night .chat-sidebar__logo:hover { background: rgba(255,255,255,0.04); }
.chat-app--night .chat-header {
  background: linear-gradient(
    to bottom,
    rgba(30, 28, 28, 0.34) 0%,
    rgba(30, 28, 28, 0.08) 70%,
    rgba(30, 28, 28, 0) 100%
  );
}
.chat-app--night .chat-header__menu-trigger { background: transparent; color: var(--_chat-muted); }
.chat-app--night .chat-header__menu-trigger:hover,
.chat-app--night .chat-header__menu-trigger[aria-expanded="true"] { background: rgba(255,255,255,0.07); border-color: var(--_chat-border); color: var(--_chat-text); }
.chat-app--night .chat-header__menu { background: rgba(45,41,40,0.98); border-color: var(--_chat-border); box-shadow: 0 12px 30px rgba(0,0,0,0.26); }
.chat-app--night .chat-header__menu-item { color: #e59a94; }
.chat-app--night .chat-header__menu-item:hover { background: rgba(229,154,148,0.1); }
.chat-app--night .chat-msg__bubble { background: var(--_chat-surface); border-color: var(--_chat-border); color: var(--_chat-text); }
.chat-app--night .chat-msg--user .chat-msg__bubble { background: #3a3540; color: #e8e2da; }
.chat-app--night .stylist-look { color: var(--_chat-text); }
.chat-app--night .stylist-look__title,
.chat-app--night .stylist-look__copy,
.chat-app--night .stylist-look__label { color: var(--_chat-text); }
.chat-app--night .chat-image-preview { background: var(--_chat-surface); border-color: var(--_chat-border); }
.chat-app--night .chat-image-preview__name,
.chat-app--night .chat-coming-soon strong { color: var(--_chat-text); }
.chat-app--night .chat-image-preview__status,
.chat-app--night .chat-image-preview__remove { color: var(--_chat-muted); }
.chat-app--night .chat-history-day { color: var(--_chat-muted); }
.chat-app--night .chat-history-day::before,
.chat-app--night .chat-history-day::after { background: var(--_chat-border); }
.chat-app--night .chat-input__wrapper { background: var(--_chat-surface); border-color: var(--_chat-border); }
.chat-app--night .chat-input__field { color: var(--_chat-text); }
.chat-app--night .chat-input__field::placeholder { color: var(--_chat-muted); }
.chat-app--night .chat-welcome__greeting { color: var(--_chat-text); }
.chat-app--night .chat-welcome__hint { color: var(--_chat-muted); }
.chat-app--night .chat-welcome__avatar { opacity: 0.7; }
.chat-app--night .chat-body {
  background: transparent;
}
.chat-app--night .action-card { background: var(--_chat-surface); border-color: var(--_chat-border); }
.chat-app--night .action-card__label { color: var(--_chat-text); }
.chat-app--night .action-card__desc { color: var(--_chat-muted); }
.chat-app--night .action-card:hover { border-color: var(--wutt-night-accent); }
.chat-app--night .analysis-card,
.chat-app--night .upload-card,
.chat-app--night .describe-form,
.chat-app--night .analyzing-card { background: var(--_chat-surface); border-color: var(--_chat-border); }
.chat-app--night .analyzing-card__text { color: var(--_chat-muted); }
.chat-app--night .analyzing-card__spinner { border-color: var(--_chat-border); border-top-color: var(--wutt-night-accent); }
.chat-app--night .upload-card__name { color: var(--_chat-text); }
.chat-app--night .upload-card__meta { color: var(--_chat-muted); }
.chat-app--night .upload-card__save { background: var(--wutt-night-accent); color: #1a1817; }
.chat-app--night .upload-card__save:hover { background: var(--wutt-night-accent-hover); }
.chat-app--night .analysis-card__item-name { color: var(--_chat-text); }
.chat-app--night .analysis-card__category { color: var(--wutt-night-accent); }
.chat-app--night .analysis-card__draft-badge { color: var(--_chat-muted); background: rgba(255,255,255,0.06); }
.chat-app--night .analysis-card__save { background: var(--wutt-night-accent); color: #1a1817; }
.chat-app--night .analysis-card__save:hover { background: var(--wutt-night-accent-hover); }
.chat-app--night .analysis-card__action-ghost { color: var(--_chat-muted); border-color: var(--_chat-border); }
.chat-app--night .analysis-card__action-ghost:hover { color: var(--_chat-text); background: rgba(255,255,255,0.06); }
.chat-app--night .analysis-tag { background: var(--_chat-bg); color: var(--_chat-text); border-color: var(--_chat-border); }
.chat-app--night .analysis-tag__label { color: var(--_chat-muted); }
.chat-app--night .chat-chip { background: var(--_chat-surface); color: var(--_chat-text); border-color: var(--_chat-border); }
.chat-app--night .chat-chip:hover { background: var(--wutt-night-accent); color: #1a1817; border-color: var(--wutt-night-accent); }
.chat-app--night .describe-form__field { background: var(--_chat-bg); color: var(--_chat-text); border-color: var(--_chat-border); }
.chat-app--night .describe-form__field::placeholder { color: var(--_chat-muted); }
.chat-app--night .describe-form__field:focus { border-color: var(--wutt-night-accent); }
.chat-app--night .describe-form__save { background: var(--wutt-night-accent); color: #1a1817; }
.chat-app--night .wardrobe-drawer { background: var(--_chat-surface); border-color: var(--_chat-border); }
.chat-app--night .wardrobe-drawer__title { color: var(--_chat-text); }
.chat-app--night .sidebar-wardrobe__item { background: var(--_chat-bg); }
.chat-app--night .chat-input__wrapper:focus-within {
  border-color: var(--wutt-night-accent);
  box-shadow: 0 0 0 3px rgba(200, 180, 240, 0.15);
}

/* ---- Background presets ---- */
.chat-app--bg-grid .chat-body {
  background-image: none;
}
.chat-app--bg-fabric .chat-body {
  background-image: none;
}
.chat-app--bg-wardrobe .chat-body {
  background: linear-gradient(165deg, #f9f5ee 0%, #ede3d4 40%, #f5efe6 100%);
}
.chat-app--bg-midnight .chat-body {
  background: linear-gradient(160deg, #1a1817 0%, #201d1c 50%, #1a1817 100%);
}

/* Background — night mood overrides */
.chat-app--night.chat-app--bg-grid .chat-body {
  background-image: none;
}
.chat-app--night.chat-app--bg-fabric .chat-body {
  background-image: none;
}

/* ============================================================
   Profile — Premium 2-Column Dashboard
   Left: sticky sidebar with avatar + stats
   Right: stacked section cards
   ============================================================ */

.profile-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--wutt-bg, #faf9f7);
}
.chat-app--night .profile-view { background: var(--_chat-bg); }

/* ---- Wardrobe Full Page Night Mode ---- */
.chat-app--night .wardrobe-view { background: var(--_chat-bg); }
.chat-app--night .wardrobe-view__title { color: var(--_chat-text); }
.chat-app--night .wardrobe-view__subtitle { color: var(--_chat-muted); }
.chat-app--night .wardrobe-view__search-input { background: var(--_chat-bg); border-color: var(--_chat-border); color: var(--_chat-text); }
.chat-app--night .wardrobe-view__search-input::placeholder { color: var(--_chat-muted); }
.chat-app--night .wardrobe-view__search-input:focus { border-color: var(--wutt-night-accent); box-shadow: 0 0 0 3px rgba(200,180,240,0.12); }
.chat-app--night .wardrobe-view__search-icon { color: var(--_chat-muted); }
.chat-app--night .wardrobe-view__filter { background: var(--_chat-surface); border-color: var(--_chat-border); color: var(--_chat-text); }
.chat-app--night .wardrobe-view__filter:hover { border-color: var(--wutt-night-accent); }
.chat-app--night .wardrobe-view__filter--active { background: var(--wutt-night-accent); color: #1a1520; border-color: var(--wutt-night-accent); }
.chat-app--night .wardrobe-view__empty-icon { background: var(--_chat-surface); color: var(--_chat-muted); }
.chat-app--night .wardrobe-view__empty-title { color: var(--_chat-text); }
.chat-app--night .wardrobe-view__empty-hint { color: var(--_chat-muted); }
.chat-app--night .wardrobe-card { background: var(--_chat-surface); border-color: var(--_chat-border); }
.chat-app--night .wardrobe-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.chat-app--night .wardrobe-card__img { background: var(--_chat-bg); }
.chat-app--night .wardrobe-card__name { color: var(--_chat-text); }
.chat-app--night .wardrobe-card__meta { color: var(--_chat-muted); }
.chat-app--night .wardrobe-card__tag { background: var(--_chat-bg); color: var(--_chat-muted); }
.chat-app--night .wardrobe-card__menu {
  background: rgba(45, 41, 39, 0.98);
  border-color: var(--_chat-border);
}
.chat-app--night .wardrobe-card__menu .wardrobe-card__edit { color: var(--_chat-text); }
.chat-app--night .wardrobe-card__menu .wardrobe-card__edit:hover,
.chat-app--night .wardrobe-card__menu .wardrobe-card__edit:focus-visible {
  background: var(--_chat-bg);
}
.chat-app--night .wardrobe-card__menu .wardrobe-card__delete { color: #e4a29a; }
.chat-app--night .wardrobe-card__menu .wardrobe-card__delete:hover,
.chat-app--night .wardrobe-card__menu .wardrobe-card__delete:focus-visible {
  background: rgba(228, 162, 154, 0.1);
}
.chat-app--night .wardrobe-card__select input[type="checkbox"] { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.chat-app--night .wardrobe-card--selected { border-color: var(--wutt-night-accent); box-shadow: 0 0 0 2px var(--wutt-night-accent); }
.chat-app--night .wardrobe-view__select-btn { background: var(--wutt-night-accent); color: #1a1520; }
.chat-app--night .wardrobe-view__select-btn:hover { background: var(--wutt-night-accent-hover); }
.chat-app--night .wardrobe-view__bulk-bar { background: var(--_chat-surface); border-color: var(--_chat-border); }
.chat-app--night .wardrobe-view__bulk-count { color: var(--_chat-text); }
.chat-app--night .wardrobe-view__bulk-cancel { border-color: var(--_chat-border); color: var(--_chat-muted); }
.chat-app--night .wardrobe-view__bulk-cancel:hover { border-color: var(--_chat-muted); color: var(--_chat-text); }
.chat-app--night .wardrobe-tools { background: transparent; border-color: transparent; }
.chat-app--night .wardrobe-tools__title { color: var(--_chat-text); }
.chat-app--night .wardrobe-tools__desc { color: var(--_chat-muted); }
.chat-app--night .wardrobe-tools__badge { background: var(--_chat-bg); color: var(--_chat-muted); }
.chat-app--night .wardrobe-tools__eyebrow,
.chat-app--night .wardrobe-view__eyebrow,
.chat-app--night .wardrobe-modal__eyebrow,
.chat-app--night .wardrobe-modal__section-label { color: var(--_chat-muted); }
.chat-app--night .wardrobe-tools__icon { background: var(--_chat-bg); color: var(--wutt-night-accent); }
.chat-app--night .wardrobe-view__add-btn { background: var(--wutt-night-accent); color: #1a1520; }
.chat-app--night .wardrobe-view__add-btn:hover { background: var(--wutt-night-accent-hover); }
.chat-app--night .wardrobe-modal-overlay { background: rgba(0,0,0,0.6); }
.chat-app--night .wardrobe-modal { background: var(--_chat-surface); }
.chat-app--night .wardrobe-modal__header { border-color: var(--_chat-border); }
.chat-app--night .wardrobe-modal__title { color: var(--_chat-text); }
.chat-app--night .wardrobe-modal__close { color: var(--_chat-muted); }
.chat-app--night .wardrobe-modal__close:hover { background: rgba(255,255,255,0.06); color: var(--_chat-text); }
.chat-app--night .wardrobe-modal__upload-area { border-color: var(--_chat-border); }
.chat-app--night .wardrobe-modal__upload-area:hover { border-color: var(--wutt-night-accent); background: rgba(200,180,240,0.06); }
.chat-app--night .wardrobe-modal__upload-icon { background: var(--_chat-bg); color: var(--_chat-muted); }
.chat-app--night .wardrobe-modal__upload-text { color: var(--_chat-text); }
.chat-app--night .wardrobe-modal__upload-hint { color: var(--_chat-muted); }
.chat-app--night .wardrobe-modal__preview-img { background: var(--_chat-bg); }
.chat-app--night .wardrobe-modal__detected { background: var(--_chat-bg); }
.chat-app--night .wardrobe-modal__field { border-color: var(--_chat-border); }
.chat-app--night .wardrobe-modal__label { color: var(--_chat-muted); }
.chat-app--night .wardrobe-modal__details-title { color: var(--_chat-text); }
.chat-app--night .wardrobe-modal__details-hint { color: var(--_chat-muted); }
.chat-app--night .wardrobe-modal__input {
  color: var(--_chat-text);
  background: var(--_chat-surface);
  border-color: var(--_chat-border);
}
.chat-app--night .wardrobe-modal__input:focus {
  border-color: var(--wutt-night-accent);
  box-shadow: 0 0 0 3px rgba(200,180,240,0.12);
}
.chat-app--night .wardrobe-modal__btn--primary { background: var(--wutt-night-accent); color: #1a1520; }
.chat-app--night .wardrobe-modal__btn--primary:hover { background: var(--wutt-night-accent-hover); }
.chat-app--night .wardrobe-modal__btn--secondary { background: var(--_chat-bg); color: var(--_chat-text); }
.chat-app--night .wardrobe-modal__btn--secondary:hover { background: var(--_chat-border); }
.chat-app--night .wardrobe-modal__saved-icon { background: rgba(34,197,94,0.15); }
.chat-app--night .wardrobe-modal__saved-title { color: var(--_chat-text); }
.chat-app--night .wardrobe-modal__saved-hint { color: var(--_chat-muted); }

/* ---- Avatar Crop Modal ---- */
.avatar-crop-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}
.avatar-crop-overlay:not(.u-hidden) {
  opacity: 1;
  visibility: visible;
}

.avatar-crop-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 360px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalSlideUp 300ms cubic-bezier(0.23, 1, 0.32, 1);
}
.chat-app--night .avatar-crop-modal { background: var(--_chat-surface); }

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.avatar-crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--wutt-border-light);
}
.chat-app--night .avatar-crop-header { border-color: var(--_chat-border); }

.avatar-crop-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--wutt-dark);
  margin: 0;
}
.chat-app--night .avatar-crop-title { color: var(--_chat-text); }

.avatar-crop-close {
  background: none;
  border: none;
  color: var(--wutt-text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background 150ms ease, color 150ms ease;
}
.avatar-crop-close:hover { background: var(--wutt-bg); color: var(--wutt-dark); }
.chat-app--night .avatar-crop-close:hover { background: var(--_chat-bg); color: var(--_chat-text); }

.avatar-crop-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.avatar-crop-preview {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--wutt-bg);
  margin-bottom: var(--space-md);
  touch-action: none;
  cursor: grab;
}
.avatar-crop-preview:active { cursor: grabbing; }
.chat-app--night .avatar-crop-preview { background: var(--_chat-bg); }

.avatar-crop-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

.avatar-crop-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.8);
  pointer-events: none;
}

.avatar-crop-hint {
  font-size: var(--text-xs);
  color: var(--wutt-text-muted);
  margin: 0 0 var(--space-md);
  text-align: center;
}
.chat-app--night .avatar-crop-hint { color: var(--_chat-muted); }

.avatar-crop-zoom {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  max-width: 240px;
}
.avatar-crop-zoom svg { color: var(--wutt-text-muted); flex-shrink: 0; }
.chat-app--night .avatar-crop-zoom svg { color: var(--_chat-muted); }

.avatar-crop-zoom-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--wutt-border-light);
  border-radius: 2px;
  outline: none;
}
.chat-app--night .avatar-crop-zoom-slider { background: var(--_chat-border); }

.avatar-crop-zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--wutt-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(136,162,255,0.4);
}
.avatar-crop-zoom-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--wutt-primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(136,162,255,0.4);
}

.avatar-crop-footer {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl) var(--space-xl);
}

.avatar-crop-cancel {
  flex: 1;
  padding: 10px 16px;
  background: var(--wutt-bg);
  color: var(--wutt-dark);
  border: 1px solid var(--wutt-border-light);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.avatar-crop-cancel:hover { background: var(--wutt-border-light); border-color: var(--wutt-text-muted); }
.chat-app--night .avatar-crop-cancel { background: var(--_chat-bg); color: var(--_chat-text); border-color: var(--_chat-border); }
.chat-app--night .avatar-crop-cancel:hover { background: var(--_chat-border); }

.avatar-crop-save {
  flex: 1;
  padding: 10px 16px;
  background: var(--wutt-dark);
  color: var(--wutt-light);
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}
.avatar-crop-save:hover { background: #2A2A2A; transform: translateY(-1px); }
.avatar-crop-save:active { transform: translateY(0) scale(0.97); }
.chat-app--night .avatar-crop-save { background: var(--wutt-night-accent); color: #1a1817; }
.chat-app--night .avatar-crop-save:hover { background: var(--wutt-night-accent-hover); }

.profile-view__scroll {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-2xl) var(--space-2xl) var(--space-3xl);
}
.chat-app--night .profile-view__scroll { background: transparent; }

/* ---- 2-column grid layout ---- */
.pf-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-2xl);
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.profile-skeleton {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-2xl);
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.profile-skeleton + .pf-layout {
  display: none;
}
.profile-skeleton__sidebar {
  min-height: 392px;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border-light);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profile-skeleton__avatar {
  width: 96px;
  height: 96px;
  margin-bottom: var(--space-lg);
  border-radius: 50%;
}
.profile-skeleton__name {
  width: 132px;
  height: 18px;
  margin-bottom: 10px;
}
.profile-skeleton__email {
  width: 178px;
  height: 11px;
  margin-bottom: var(--space-lg);
}
.profile-skeleton__chips,
.profile-skeleton__stats {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 8px;
}
.profile-skeleton__chips span {
  width: 72px;
  height: 26px;
  border-radius: var(--radius-full);
}
.profile-skeleton__button {
  width: 100%;
  height: 42px;
  margin: var(--space-xl) 0;
  border-radius: var(--radius-lg);
}
.profile-skeleton__stats {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--wutt-border-light);
}
.profile-skeleton__stats span {
  width: 52px;
  height: 34px;
}
.profile-skeleton__main {
  display: grid;
  gap: var(--space-lg);
}
.profile-skeleton__section {
  min-height: 148px;
  padding: var(--space-xl);
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border-light);
  border-radius: var(--radius-xl);
}
.profile-skeleton__heading {
  width: 144px;
  height: 16px;
  margin-bottom: var(--space-xl);
}
.profile-skeleton__field {
  width: 78%;
  height: 12px;
  margin-bottom: var(--space-md);
}
.profile-skeleton__field--short {
  width: 52%;
}
.chat-app--night .profile-skeleton__sidebar,
.chat-app--night .profile-skeleton__section {
  background: var(--_chat-surface);
  border-color: var(--_chat-border);
}

/* ---- LEFT: Sticky sidebar ---- */
.pf-sidebar {
  position: sticky;
  top: 0;
}

.pf-sidebar__card {
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.chat-app--night .pf-sidebar__card { background: var(--_chat-surface); border-color: var(--_chat-border); }

/* Photo upload area */
.pf-photo-upload {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  cursor: pointer;
  margin-bottom: var(--space-lg);
  overflow: hidden;
  outline: none;
}
.pf-photo-upload:focus-visible {
  box-shadow: 0 0 0 3px var(--wutt-primary);
}

.pf-photo-upload__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wutt-primary), var(--wutt-lavender));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 700;
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.pf-photo-upload:hover .pf-photo-upload__avatar {
  transform: scale(1.04);
}

.pf-photo-upload__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 50%;
}

.pf-photo-upload__overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  opacity: 0;
  transition: opacity 200ms ease;
}
.pf-photo-upload__overlay span {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pf-photo-upload:hover .pf-photo-upload__overlay,
.pf-photo-upload:focus-visible .pf-photo-upload__overlay {
  opacity: 1;
}
.pf-photo-upload__img:not(.u-hidden) ~ .pf-photo-upload__avatar {
  display: none;
}

.pf-sidebar__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--wutt-dark);
  letter-spacing: -0.02em;
  margin: 0 0 2px;
  line-height: 1.2;
}
.chat-app--night .pf-sidebar__name { color: var(--_chat-text); }

.pf-sidebar__email {
  font-size: var(--text-xs);
  color: var(--wutt-text-muted);
  margin: 0 0 var(--space-md);
  line-height: 1.4;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
  writing-mode: horizontal-tb;
}
.chat-app--night .pf-sidebar__email { color: var(--_chat-muted); }

.pf-sidebar__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.pf-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
  background: var(--wutt-bg-subtle);
  color: var(--wutt-text-light);
  border: 1px solid var(--wutt-border-light);
}
.pf-badge--location {
  color: #4D7C0F;
  background: rgba(227,252,135,0.12);
  border-color: rgba(227,252,135,0.2);
}
.chat-app--night .pf-badge { background: rgba(255,255,255,0.04); border-color: var(--_chat-border); color: var(--_chat-muted); }
.chat-app--night .pf-badge--location { color: #a3e635; background: rgba(227,252,135,0.06); border-color: rgba(227,252,135,0.12); }

.pf-sidebar__edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--wutt-light);
  background: var(--wutt-dark);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 160ms ease-out, background 160ms ease, box-shadow 160ms ease;
  width: 100%;
  justify-content: center;
  margin-bottom: var(--space-lg);
}
.pf-sidebar__edit-btn:hover { background: #2A2A2A; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.pf-sidebar__edit-btn:active { transform: scale(0.97); }
.pf-sidebar__edit-btn:focus-visible { outline: 2px solid var(--wutt-primary); outline-offset: 2px; }
.chat-app--night .pf-sidebar__edit-btn { background: var(--wutt-night-accent); color: #1a1817; }
.chat-app--night .pf-sidebar__edit-btn:hover { background: var(--wutt-night-accent-hover); }

/* Sidebar quick stats */
.pf-sidebar__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--wutt-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
}
.chat-app--night .pf-sidebar__stats { background: var(--_chat-border); }

.pf-sidebar__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-md) var(--space-sm);
  background: var(--wutt-light);
}
.chat-app--night .pf-sidebar__stat { background: var(--_chat-surface); }

.pf-sidebar__stat-num {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--wutt-dark);
  letter-spacing: -0.03em;
  line-height: 1;
}
.chat-app--night .pf-sidebar__stat-num { color: var(--_chat-text); }

.pf-sidebar__stat-label {
  font-size: 0.5625rem;
  font-weight: 500;
  color: var(--wutt-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.chat-app--night .pf-sidebar__stat-label { color: var(--_chat-muted); }

/* ---- RIGHT: Section cards ---- */
.pf-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.pf-section {
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.chat-app--night .pf-section { background: var(--_chat-surface); border-color: var(--_chat-border); }

.pf-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  border-bottom: 1px solid var(--wutt-border-light);
}
.chat-app--night .pf-section__header { border-color: var(--_chat-border); }

.pf-section__title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--wutt-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.chat-app--night .pf-section__title { color: var(--_chat-text); }

.pf-section__edit {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--wutt-primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 150ms ease, color 150ms ease;
}
.pf-section__edit:hover { background: rgba(200, 155, 142, 0.08); }
.pf-section__edit:focus-visible { outline: 2px solid var(--wutt-primary); outline-offset: 2px; }
.chat-app--night .pf-section__edit { color: var(--wutt-night-accent); }
.chat-app--night .pf-section__edit:hover { background: rgba(200, 180, 240, 0.08); }
.chat-app--night .pf-section__edit:focus-visible { outline-color: var(--wutt-night-accent); }

.pf-section__body {
  padding: 0;
}

/* ---- Field rows ---- */
.pf-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--space-xl);
  border-bottom: 1px solid var(--wutt-border-light);
  font-size: var(--text-xs);
}
.pf-field:last-child { border-bottom: none; }
.chat-app--night .pf-field { border-color: var(--_chat-border); }

.pf-field--block {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.pf-field__label {
  color: var(--wutt-text-muted);
  font-weight: 500;
}
.chat-app--night .pf-field__label { color: var(--_chat-muted); }

.pf-field__value {
  color: var(--wutt-dark);
  font-weight: 600;
}
.chat-app--night .pf-field__value { color: var(--_chat-text); }

.pf-field__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pf-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--wutt-bg);
  color: var(--wutt-text);
  border: 1px solid var(--wutt-border);
}
.pf-tag--active {
  background: var(--wutt-primary);
  color: #fff;
  border-color: var(--wutt-primary);
}
.pf-tag--empty {
  font-weight: 400;
  font-style: italic;
  color: var(--wutt-text-muted);
  border: none;
  background: none;
  padding: 0;
}
.chat-app--night .pf-tag--empty { color: var(--_chat-muted); }

.pf-field__colors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pf-color-empty {
  font-size: 0.6875rem;
  color: var(--wutt-text-muted);
  font-style: italic;
}

/* ---- Coupon Ticket Cards ---- */
.pf-coupon-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 24px 24px;
}

.pf-ticket {
  display: flex;
  align-items: stretch;
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border-light);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}
.pf-ticket:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139,119,101,0.08);
}
.chat-app--night .pf-ticket {
  background: var(--_chat-surface);
  border-color: var(--_chat-border);
}
.chat-app--night .pf-ticket:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Ticket left side — offer + description */
.pf-ticket__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 18px 20px;
  min-width: 0;
}

.pf-ticket__offer {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--wutt-primary);
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.chat-app--night .pf-ticket__offer { color: var(--wutt-night-accent); }

.pf-ticket--green .pf-ticket__offer { color: #4D7C0F; }
.chat-app--night .pf-ticket--green .pf-ticket__offer { color: #a3e635; }

.pf-ticket__desc {
  font-size: 0.75rem;
  color: var(--wutt-text-muted);
  line-height: 1.4;
}
.chat-app--night .pf-ticket__desc { color: var(--_chat-muted); }

/* Ticket divider — subtle dashed line */
.pf-ticket__divider {
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--wutt-border) 0px,
    var(--wutt-border) 3px,
    transparent 3px,
    transparent 6px
  );
  position: relative;
  margin: 12px 0;
}
.chat-app--night .pf-ticket__divider {
  background: repeating-linear-gradient(
    to bottom,
    var(--_chat-border) 0px,
    var(--_chat-border) 3px,
    transparent 3px,
    transparent 6px
  );
}

/* Circular notches for ticket effect */
.pf-ticket__divider::before,
.pf-ticket__divider::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: var(--wutt-bg);
  border-radius: 50%;
}
.pf-ticket__divider::before { top: -5px; }
.pf-ticket__divider::after { bottom: -5px; }
.chat-app--night .pf-ticket__divider::before,
.chat-app--night .pf-ticket__divider::after {
  background: var(--_chat-bg);
}

/* Ticket right side — code + copy */
.pf-ticket__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 20px;
  min-width: 88px;
}

.pf-ticket__code {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--wutt-dark);
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.chat-app--night .pf-ticket__code { color: var(--_chat-text); }

.pf-ticket__copy {
  padding: 5px 14px;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--wutt-primary);
  background: transparent;
  border: 1px solid var(--wutt-primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 150ms ease-out;
}
.pf-ticket__copy:hover {
  background: var(--wutt-primary);
  color: #fff;
}
.pf-ticket__copy:active {
  transform: scale(0.97);
}
.pf-ticket__copy:focus-visible { outline: 2px solid var(--wutt-primary); outline-offset: 2px; }
.chat-app--night .pf-ticket__copy { border-color: var(--wutt-night-accent); color: var(--wutt-night-accent); }
.chat-app--night .pf-ticket__copy:hover { background: var(--wutt-night-accent); color: #1a1817; }
.chat-app--night .pf-ticket__copy:focus-visible { outline-color: var(--wutt-night-accent); }

/* ---- Coupon Drawer ---- */
.coupon-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: var(--wutt-light);
  border-left: 1px solid var(--wutt-border-light);
  z-index: calc(var(--z-sidebar) + 5);
  display: flex;
  flex-direction: column;
  transition: right 280ms ease;
  box-shadow: -8px 0 32px rgba(0,0,0,0.1);
}
.coupon-drawer.coupon-drawer--open {
  right: 0;
}
.chat-app--night .coupon-drawer {
  background: var(--_chat-surface);
  border-color: var(--_chat-border);
  box-shadow: -8px 0 32px rgba(0,0,0,0.4);
}

.coupon-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--wutt-border-light);
}
.chat-app--night .coupon-drawer__header { border-color: var(--_chat-border); }

.coupon-drawer__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--wutt-dark);
  letter-spacing: -0.01em;
  margin: 0;
}
.chat-app--night .coupon-drawer__title { color: var(--_chat-text); }

.coupon-drawer__subtitle {
  font-size: 0.75rem;
  color: var(--wutt-text-muted);
  margin: 3px 0 0;
  line-height: 1.4;
}
.chat-app--night .coupon-drawer__subtitle { color: var(--_chat-muted); }

.coupon-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--wutt-text-muted);
  cursor: pointer;
  transition: all 150ms ease-out;
}
.coupon-drawer__close:hover {
  background: var(--wutt-bg-subtle);
  color: var(--wutt-dark);
}
.chat-app--night .coupon-drawer__close { color: var(--_chat-muted); }
.chat-app--night .coupon-drawer__close:hover { background: rgba(255,255,255,0.06); color: var(--_chat-text); }

.coupon-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.coupon-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: calc(var(--z-sidebar) + 4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease-out;
}
.coupon-drawer-overlay.coupon-drawer-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer ticket cards — full width in drawer */
.coupon-drawer__body .pf-ticket {
  width: 100%;
}

/* ---- Coupon Sidebar — Enhanced Card ---- */
.coupon-card {
  background: var(--wutt-light);
  border: 1px solid var(--wutt-border-light);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out;
}
.coupon-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139,119,101,0.08);
}
.chat-app--night .coupon-card {
  background: var(--_chat-surface);
  border-color: var(--_chat-border);
}
.chat-app--night .coupon-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.coupon-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.coupon-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--wutt-light);
  background: var(--wutt-primary);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  line-height: 1;
  flex-shrink: 0;
}
.coupon-card__badge--green {
  background: #4D7C0F;
}
.chat-app--night .coupon-card__badge {
  background: var(--wutt-night-accent);
  color: #1a1817;
}
.chat-app--night .coupon-card__badge--green {
  background: #65a30d;
}

.coupon-card__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--wutt-dark);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.chat-app--night .coupon-card__title { color: var(--_chat-text); }

.coupon-card__desc {
  font-size: 0.8125rem;
  color: var(--wutt-text-light);
  line-height: 1.5;
}
.chat-app--night .coupon-card__desc { color: var(--_chat-muted); }

.coupon-card__valid {
  font-size: 0.6875rem;
  color: var(--wutt-text-muted);
  font-weight: 500;
}
.chat-app--night .coupon-card__valid { color: var(--_chat-muted); }

.coupon-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--wutt-border);
}
.chat-app--night .coupon-card__bottom { border-color: var(--_chat-border); }

.coupon-card__code {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--wutt-dark);
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: 0.04em;
}
.chat-app--night .coupon-card__code { color: var(--_chat-text); }

.coupon-card__copy {
  padding: 6px 16px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wutt-primary);
  background: transparent;
  border: 1px solid var(--wutt-primary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 150ms ease-out;
}
.coupon-card__copy:hover {
  background: var(--wutt-primary);
  color: #fff;
}
.coupon-card__copy:active {
  transform: scale(0.97);
}
.coupon-card__copy:focus-visible { outline: 2px solid var(--wutt-primary); outline-offset: 2px; }
.chat-app--night .coupon-card__copy { border-color: var(--wutt-night-accent); color: var(--wutt-night-accent); }
.chat-app--night .coupon-card__copy:hover { background: var(--wutt-night-accent); color: #1a1817; }

.coupon-drawer__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--wutt-border-light);
  text-align: center;
}
.chat-app--night .coupon-drawer__footer { border-color: var(--_chat-border); }

.coupon-drawer__footer-text {
  font-size: 0.75rem;
  color: var(--wutt-text-muted);
  font-style: italic;
  margin: 0;
}
.chat-app--night .coupon-drawer__footer-text { color: var(--_chat-muted); }

/* ---- Wardrobe stats (full section) ---- */
.pf-wardrobe-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--wutt-border-light);
}
.chat-app--night .pf-wardrobe-stats { background: var(--_chat-border); }

.pf-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-lg) var(--space-md);
  background: var(--wutt-light);
}
.chat-app--night .pf-stat { background: var(--_chat-surface); }

.pf-stat__number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wutt-dark);
  letter-spacing: -0.03em;
  line-height: 1;
}
.chat-app--night .pf-stat__number { color: var(--_chat-text); }

.pf-stat__label {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--wutt-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.chat-app--night .pf-stat__label { color: var(--_chat-muted); }

.pf-wardrobe-hint {
  font-size: var(--text-xs);
  color: var(--wutt-text-muted);
  text-align: center;
  padding: var(--space-md) var(--space-xl);
  margin: 0;
  line-height: 1.5;
}
.chat-app--night .pf-wardrobe-hint { color: var(--_chat-muted); }

/* ---- Settings chips ---- */
.pf-settings-chips {
  display: flex;
  gap: 6px;
}

.pf-settings-chip {
  padding: 5px 12px;
  font-family: inherit;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--wutt-text);
  background: var(--wutt-bg-subtle);
  border: 1.5px solid var(--wutt-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}
.pf-settings-chip:hover { border-color: var(--wutt-primary); }
.pf-settings-chip--active {
  background: var(--wutt-dark);
  color: var(--wutt-light);
  border-color: var(--wutt-dark);
}
.chat-app--night .pf-settings-chip { background: var(--_chat-bg); border-color: var(--_chat-border); color: var(--_chat-text); }
.chat-app--night .pf-settings-chip:hover { border-color: var(--wutt-night-accent); }
.chat-app--night .pf-settings-chip--active { background: var(--wutt-night-accent); color: #1a1817; border-color: var(--wutt-night-accent); }

/* ---- Mood Toggle Switch ---- */
.pf-mood-toggle {
  display: flex;
  align-items: center;
}

.pf-mood-toggle__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: transparent;
  border: 1px solid var(--wutt-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 200ms ease-out;
  font-family: inherit;
}
.pf-mood-toggle__btn:hover {
  border-color: var(--wutt-primary);
  background: rgba(200, 155, 142, 0.05);
}
.pf-mood-toggle__btn:active {
  transform: scale(0.98);
}
.chat-app--night .pf-mood-toggle__btn {
  border-color: var(--_chat-border);
  background: var(--_chat-surface);
}
.chat-app--night .pf-mood-toggle__btn:hover {
  border-color: var(--wutt-night-accent);
  background: rgba(200, 180, 240, 0.08);
}

/* Icons */
.pf-mood-toggle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--wutt-text-muted);
  transition: color 200ms ease-out;
}
.pf-mood-toggle__icon--sun {
  color: var(--wutt-primary);
}
.pf-mood-toggle__icon--moon {
  color: var(--wutt-text-muted);
}
/* Night mode: swap icon colors */
.chat-app--night .pf-mood-toggle__icon--sun {
  color: var(--_chat-text);
}
.chat-app--night .pf-mood-toggle__icon--moon {
  color: var(--wutt-night-accent);
}

/* Track */
.pf-mood-toggle__track {
  position: relative;
  width: 40px;
  height: 22px;
  background: var(--wutt-bg-subtle);
  border-radius: 11px;
  transition: background 200ms ease-out;
}
.chat-app--night .pf-mood-toggle__track {
  background: rgba(200, 180, 240, 0.2);
}

/* Thumb */
.pf-mood-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--wutt-light);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 200ms cubic-bezier(0.32, 0.72, 0, 1);
}
/* Night mode: thumb moves right */
.chat-app--night .pf-mood-toggle__thumb {
  transform: translateX(18px);
  background: var(--wutt-night-accent);
  box-shadow: 0 1px 4px rgba(200, 180, 240, 0.4);
}

/* Focus ring for accessibility */
.pf-mood-toggle__btn:focus-visible {
  outline: 2px solid var(--wutt-primary);
  outline-offset: 2px;
}
.chat-app--night .pf-mood-toggle__btn:focus-visible {
  outline-color: var(--wutt-night-accent);
}

.pf-settings-bg-chips {
  display: flex;
  gap: 6px;
}

.pf-settings-bg-chip {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--wutt-border);
  cursor: pointer;
  transition: border-color 150ms ease;
  overflow: hidden;
  padding: 0;
  background: none;
}
.pf-settings-bg-chip span {
  display: block;
  width: 100%;
  height: 100%;
}
.pf-settings-bg-chip:hover { border-color: var(--wutt-primary); }
.pf-settings-bg-chip--active { border-color: var(--wutt-dark); box-shadow: 0 0 0 1px var(--wutt-light), 0 0 0 3px var(--wutt-dark); }
.chat-app--night .pf-settings-bg-chip { border-color: var(--_chat-border); }
.chat-app--night .pf-settings-bg-chip--active { border-color: var(--wutt-night-accent); box-shadow: 0 0 0 1px var(--_chat-surface), 0 0 0 3px var(--wutt-night-accent); }

.pf-settings-bg-chip[data-bg="clean"] span { background: #f7f3ee; }
.pf-settings-bg-chip[data-bg="grid"] span {
  background: #f7f3ee;
  background-image: linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 6px 6px;
}
.pf-settings-bg-chip[data-bg="fabric"] span {
  background: #f7f3ee;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.04) 2px, rgba(0,0,0,0.04) 4px);
}
.pf-settings-bg-chip[data-bg="midnight"] span { background: linear-gradient(160deg, #1e1c1b 0%, #252120 50%, #1a1817 100%); }

/* ---- Night mode overrides ---- */
.chat-app--night .pf-tag {
  background: var(--_chat-surface, #2a2636);
  color: var(--_chat-text, #e8e0f0);
  border-color: var(--_chat-border, #3a3446);
}
.chat-app--night .pf-tag--active {
  background: var(--wutt-night-accent);
  color: #1a1520;
  border-color: var(--wutt-night-accent);
}
.chat-app--night .pf-field__colors .pf-color-chip {
  border-color: var(--_chat-border, #3a3446);
}
.chat-app--night .pf-field__colors .pf-color-chip--active {
  border-color: var(--wutt-night-accent);
  box-shadow: 0 0 0 2px var(--_chat-bg, #1a1520), 0 0 0 4px var(--wutt-night-accent);
}
.chat-app--night .pf-color-empty {
  color: var(--_chat-muted, #8a80a0);
}

/* ---- Edit modal — slide-over ---- */
.pf-edit-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease-out, visibility 0s 200ms;
}
.pf-edit-overlay--open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 200ms ease-out, visibility 0s 0s; }

.pf-edit-modal {
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--wutt-light);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 32px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 250ms cubic-bezier(0.23, 1, 0.32, 1);
}
.pf-edit-overlay--open .pf-edit-modal { transform: translateX(0); }
.chat-app--night .pf-edit-modal { background: var(--_chat-surface); }

.pf-edit-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--wutt-border-light);
  flex-shrink: 0;
}
.chat-app--night .pf-edit-modal__header { border-color: var(--_chat-border); }

.pf-edit-modal__title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--wutt-dark);
  letter-spacing: -0.02em;
}
.chat-app--night .pf-edit-modal__title { color: var(--_chat-text); }

.pf-edit-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--wutt-bg-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
  color: var(--wutt-text-muted);
  transition: background 150ms ease, color 150ms ease;
}
.pf-edit-modal__close:hover { background: rgba(0,0,0,0.06); color: var(--wutt-text); }
.chat-app--night .pf-edit-modal__close { background: rgba(255,255,255,0.06); color: var(--_chat-muted); }
.chat-app--night .pf-edit-modal__close:hover { background: rgba(255,255,255,0.1); color: var(--_chat-text); }

.pf-edit-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-xl);
  padding-bottom: 80px; /* space for sticky footer */
}

.pf-edit-modal__footer {
  flex-shrink: 0;
  padding: var(--space-md) var(--space-xl);
  border-top: 1px solid var(--wutt-border-light);
  background: var(--wutt-light);
}
.chat-app--night .pf-edit-modal__footer { background: var(--_chat-surface); border-color: var(--_chat-border); }

.pf-edit-modal__save {
  width: 100%;
  padding: 14px 24px;
  background: var(--wutt-dark);
  color: var(--wutt-light);
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}
.pf-edit-modal__save:hover { background: #2A2A2A; transform: translateY(-1px); }
.pf-edit-modal__save:active { transform: translateY(0) scale(0.97); }
.chat-app--night .pf-edit-modal__save { background: var(--wutt-night-accent); color: #1a1817; }
.chat-app--night .pf-edit-modal__save:hover { background: var(--wutt-night-accent-hover); }

.pf-edit-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Photo upload in edit drawer */
.pf-edit-photo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--wutt-border-light);
}
.chat-app--night .pf-edit-photo { border-color: var(--_chat-border); }

.pf-edit-photo__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wutt-primary), var(--wutt-lavender));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
}

.pf-edit-photo__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--wutt-text);
  background: var(--wutt-bg-subtle);
  border: 1.5px solid var(--wutt-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 150ms ease;
}
.pf-edit-photo__btn:hover {
  border-color: var(--wutt-primary);
  background: rgba(200, 155, 142, 0.06);
}
.chat-app--night .pf-edit-photo__btn { background: var(--_chat-bg); border-color: var(--_chat-border); color: var(--_chat-text); }
.chat-app--night .pf-edit-photo__btn:hover { border-color: var(--wutt-night-accent); }

.pf-edit-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pf-edit-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--wutt-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.chat-app--night .pf-edit-label { color: var(--_chat-muted); }

.pf-edit-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: inherit;
  font-size: var(--text-sm);
  color: var(--wutt-text);
  background: var(--wutt-bg-subtle);
  border: 1.5px solid var(--wutt-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.pf-edit-input::placeholder { color: var(--wutt-text-muted); }
.pf-edit-input:focus { border-color: var(--wutt-primary); background: var(--wutt-light); box-shadow: 0 0 0 3px rgba(136,162,255,0.1); }
.chat-app--night .pf-edit-input { background: var(--_chat-bg); border-color: var(--_chat-border); color: var(--_chat-text); }
.chat-app--night .pf-edit-input::placeholder { color: var(--_chat-muted); }
.chat-app--night .pf-edit-input:focus { border-color: var(--wutt-night-accent); box-shadow: 0 0 0 3px rgba(200,180,240,0.12); }

.pf-edit-input--sm { max-width: 160px; }

.pf-edit-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
@media (max-width: 420px) {
  .pf-edit-row-2col { grid-template-columns: 1fr; }
}

.pf-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pf-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--wutt-text);
  background: var(--wutt-bg-subtle);
  border: 1.5px solid var(--wutt-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.pf-chip:hover { border-color: var(--wutt-primary); }
.pf-chip--active {
  background: var(--wutt-dark);
  color: var(--wutt-light);
  border-color: var(--wutt-dark);
}
.pf-chip--active:hover { background: #2A2A2A; border-color: #2A2A2A; }
.chat-app--night .pf-chip { background: var(--_chat-bg); border-color: var(--_chat-border); color: var(--_chat-text); }
.chat-app--night .pf-chip:hover { border-color: var(--wutt-night-accent); }
.chat-app--night .pf-chip--active { background: var(--wutt-night-accent); color: #1a1817; border-color: var(--wutt-night-accent); }

.pf-size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pf-size-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 34px;
  padding: 0 10px;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--wutt-text);
  background: var(--wutt-bg-subtle);
  border: 1.5px solid var(--wutt-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}
.pf-size-pill:hover { border-color: var(--wutt-primary); }
.pf-size-pill--active {
  background: var(--wutt-dark);
  color: var(--wutt-light);
  border-color: var(--wutt-dark);
}
.pf-size-pill--active:hover { background: #2A2A2A; border-color: #2A2A2A; }
.chat-app--night .pf-size-pill { background: var(--_chat-bg); border-color: var(--_chat-border); color: var(--_chat-text); }
.chat-app--night .pf-size-pill:hover { border-color: var(--wutt-night-accent); }
.chat-app--night .pf-size-pill--active { background: var(--wutt-night-accent); color: #1a1817; border-color: var(--wutt-night-accent); }

.pf-tone-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pf-tone-chip {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease-out, border-color 150ms ease, box-shadow 150ms ease;
  box-shadow: var(--shadow-xs);
}
@media (hover: hover) and (pointer: fine) {
  .pf-tone-chip:hover { transform: scale(1.12); box-shadow: var(--shadow-md); }
}
.pf-tone-chip--active {
  border-color: var(--wutt-dark);
  box-shadow: 0 0 0 2px var(--wutt-light), 0 0 0 4px var(--wutt-dark);
  transform: scale(1.08);
}
.chat-app--night .pf-tone-chip--active { border-color: var(--wutt-night-accent); box-shadow: 0 0 0 2px var(--_chat-surface), 0 0 0 4px var(--wutt-night-accent); }

.pf-tone-label {
  font-size: 0.6875rem;
  color: var(--wutt-text-muted);
  font-weight: 500;
}
.chat-app--night .pf-tone-label { color: var(--_chat-muted); }

.pf-color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pf-color-row--edit { gap: 6px; }
.pf-color-chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
}
.pf-color-chip:hover { transform: scale(1.15); }
.pf-color-chip--active {
  border-color: var(--wutt-dark);
  box-shadow: 0 0 0 2px var(--wutt-bg), 0 0 0 4px var(--wutt-dark);
}

.pf-edit-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: var(--space-sm) 0;
}
.pf-edit-divider::before,
.pf-edit-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--wutt-border);
}
.pf-edit-divider span {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wutt-text-muted);
  white-space: nowrap;
}
.chat-app--night .pf-edit-divider::before,
.chat-app--night .pf-edit-divider::after {
  background: var(--_chat-border);
}
.chat-app--night .pf-edit-divider span {
  color: var(--_chat-muted);
}

.pf-edit-submit {
  width: 100%;
  padding: 12px;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--wutt-light);
  background: var(--wutt-dark);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 160ms ease-out, background 160ms ease, box-shadow 160ms ease;
  margin-top: var(--space-sm);
}
.pf-edit-submit:hover { background: #2A2A2A; box-shadow: var(--shadow-lg); }
.pf-edit-submit:active { transform: scale(0.97); }
.chat-app--night .pf-edit-submit { background: var(--wutt-night-accent); color: #1a1817; }
.chat-app--night .pf-edit-submit:hover { background: var(--wutt-night-accent-hover); }

/* ---- Responsive: mobile single-column ---- */
@media (max-width: 768px) {
  .profile-view__scroll {
    padding: var(--space-lg) var(--space-md);
  }
  .pf-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .profile-skeleton {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .profile-skeleton__sidebar {
    min-height: 104px;
    display: grid;
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--space-md);
    align-content: center;
    padding: var(--space-lg);
  }
  .profile-skeleton__avatar {
    grid-row: 1 / 3;
    width: 64px;
    height: 64px;
    margin: 0;
  }
  .profile-skeleton__name,
  .profile-skeleton__email {
    margin: 0;
  }
  .profile-skeleton__chips,
  .profile-skeleton__button,
  .profile-skeleton__stats {
    display: none;
  }
  .pf-sidebar {
    position: static;
  }
  .pf-sidebar__card {
    flex-direction: row;
    text-align: left;
    padding: var(--space-lg);
    gap: var(--space-md);
  }
  .pf-photo-upload {
    width: 64px;
    height: 64px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .pf-photo-upload__avatar {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }
  .pf-sidebar__name { font-size: 1.125rem; }
  .pf-sidebar__email {
    min-width: 0;
    max-width: 11rem;
  }
  .pf-sidebar__badges { justify-content: flex-start; margin-bottom: var(--space-md); }
  .pf-sidebar__edit-btn { width: auto; margin-bottom: 0; }
  .pf-sidebar__stats { display: none; }
  .pf-section__header { padding: var(--space-sm) var(--space-md); }
  .pf-field { padding: 10px var(--space-md); }
  .pf-coupon { padding: 12px var(--space-md); }
  .pf-stat { padding: var(--space-md) var(--space-sm); }
  .pf-stat__number { font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .pf-sidebar__email {
    display: none;
  }
}

/* ============================================================
   Shop Home — style-led product discovery
   ============================================================ */

.shop-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--wutt-bg);
}

.shop-view__scroll {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
}

/* ── Shop Locked — Coming Soon State ── */
.shop-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 60vh;
  padding: var(--space-3xl) var(--space-lg);
  max-width: 400px;
  margin: 0 auto;
}

.shop-locked__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wutt-bg-subtle);
  border-radius: var(--radius-xl);
  color: var(--wutt-text-muted);
  margin-bottom: var(--space-xl);
}

.shop-locked__badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wutt-primary);
  background: rgba(200, 155, 142, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.shop-locked__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--wutt-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.shop-locked__desc {
  font-size: var(--text-sm);
  color: var(--wutt-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  max-width: 320px;
}

.shop-locked__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  width: 100%;
  max-width: 260px;
}

.shop-locked__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: var(--wutt-text-muted);
}

.shop-locked__feature svg {
  flex-shrink: 0;
  color: var(--wutt-text-light);
}

.btn--locked {
  opacity: 0.5;
  cursor: not-allowed;
  min-width: 160px;
}

.btn--back-chat {
  margin-top: var(--space-md);
  color: var(--wutt-text-light);
  font-size: var(--text-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  border: 1px solid var(--wutt-border);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn--back-chat:hover {
  color: var(--wutt-dark);
  border-color: var(--wutt-text-muted);
}

/* Shopping Assistant — non-navigating roadmap dialog */
.shopping-soon-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: rgba(20, 18, 17, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease-out, visibility 180ms;
}
.shopping-soon-overlay--open {
  opacity: 1;
  visibility: visible;
}
.shopping-soon-dialog {
  position: relative;
  width: min(100%, 360px);
  padding: 28px;
  color: var(--wutt-text);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 50px rgba(31, 26, 23, 0.12);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transform-origin: center;
  transition: opacity 180ms ease-out, transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}
.shopping-soon-overlay--open .shopping-soon-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.shopping-soon-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--wutt-text-muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
  transition: color 140ms ease-out, background-color 140ms ease-out, transform 100ms ease-out;
}
.shopping-soon-dialog__close:hover {
  color: var(--wutt-text);
  background: var(--wutt-bg-subtle);
}
.shopping-soon-dialog__close:active { transform: scale(0.96); }
.shopping-soon-dialog__close:focus-visible {
  outline: 2px solid var(--wutt-primary);
  outline-offset: 2px;
}
.shopping-soon-dialog__icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: var(--space-lg);
  color: var(--wutt-deep);
  background: var(--wutt-bg-subtle);
  border: 1px solid var(--wutt-border-light);
  border-radius: var(--radius-lg);
  place-items: center;
}
.shopping-soon-dialog__title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.shopping-soon-dialog__status {
  margin: 0 0 var(--space-md);
  color: var(--wutt-primary-deep, var(--wutt-primary));
  font-size: 0.75rem;
  font-weight: 650;
}
.shopping-soon-dialog__copy {
  margin: 0;
  color: var(--wutt-text-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.chat-app--night .shopping-soon-dialog {
  color: var(--_chat-text);
  background: rgba(45, 41, 39, 0.96);
  border-color: var(--_chat-border);
}
.chat-app--night .shopping-soon-dialog__close,
.chat-app--night .shopping-soon-dialog__copy { color: var(--_chat-muted); }
.chat-app--night .shopping-soon-dialog__close:hover,
.chat-app--night .shopping-soon-dialog__icon {
  color: var(--_chat-text);
  background: var(--_chat-bg);
}

/* Hero banner — compact */
.shop-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-md);
  min-height: 100px;
  display: flex;
  align-items: flex-end;
}

.shop-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--wutt-deep) 0%, #3a4a7a 50%, var(--wutt-lavender) 100%);
}
.shop-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(227,252,135,0.1) 0%, transparent 60%);
}

.shop-hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-lg);
}

.shop-hero__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--wutt-light);
  letter-spacing: -0.02em;
  margin: 0 0 2px;
}

.shop-hero__sub {
  font-size: 0.625rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* Category chips — compact */
.shop-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-md);
  -webkit-overflow-scrolling: touch;
}
.shop-chips::-webkit-scrollbar { display: none; }

.shop-chip {
  display: inline-flex;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--wutt-text);
  background: var(--wutt-light);
  border: 1.5px solid var(--wutt-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}
.shop-chip:hover { border-color: var(--wutt-primary); }
.shop-chip--active {
  background: var(--wutt-dark);
  color: var(--wutt-light);
  border-color: var(--wutt-dark);
}
.chat-app--night .shop-chip { background: var(--_chat-surface); border-color: var(--_chat-border); color: var(--_chat-text); }
.chat-app--night .shop-chip--active { background: var(--wutt-night-accent); color: #1a1817; border-color: var(--wutt-night-accent); }

/* Section */
.shop-section {
  margin-bottom: var(--space-lg);
}

.shop-section__title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--wutt-dark);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-sm);
}
.chat-app--night .shop-section__title { color: var(--_chat-text); }

/* Product grid — 5-per-row SHEIN-style */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
@media (min-width: 900px) {
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
}
@media (min-width: 1200px) {
  .shop-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }
}

/* Product card — compact SHEIN-style */
.product-card {
  background: var(--wutt-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--wutt-border-light);
  transition: transform 160ms ease-out, box-shadow 160ms ease;
  cursor: pointer;
}
.product-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.chat-app--night .product-card { background: var(--_chat-surface); border-color: var(--_chat-border); }

.product-card__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wutt-bg-subtle);
  position: relative;
}
.product-card__img svg { opacity: 0.15; }
.chat-app--night .product-card__img { background: var(--_chat-bg); }

.product-card__wish {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wutt-text-muted);
  transition: color 150ms ease, transform 160ms ease-out;
  z-index: 1;
}
.product-card__wish:hover { color: #e25555; }
.product-card__wish:active { transform: scale(0.9); }
.product-card__wish--active { color: #e25555; }
.product-card__wish--active svg { fill: #e25555; }

.product-card__info {
  padding: 6px 8px 8px;
}

.product-card__name {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--wutt-dark);
  margin: 0 0 2px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chat-app--night .product-card__name { color: var(--_chat-text); }

.product-card__shop {
  font-size: 0.5rem;
  color: var(--wutt-text-muted);
  margin: 0 0 3px;
}

.product-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.product-card__price {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--wutt-dark);
}
.chat-app--night .product-card__price { color: var(--_chat-text); }

.product-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 6px;
  font-size: 0.5rem;
  font-weight: 600;
  color: #B5815E;
  background: rgba(181,129,94,0.1);
  border-radius: 99px;
  white-space: nowrap;
}
.chat-app--night .product-card__tag { color: #d4a574; background: rgba(212,165,116,0.12); }

.product-card__actions {
  display: flex;
  gap: 4px;
  padding: 0 8px 8px;
}

.product-card__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 6px;
  font-family: inherit;
  font-size: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  border: 1px solid var(--wutt-border);
  background: var(--wutt-light);
  color: var(--wutt-text);
}
.product-card__btn:hover { border-color: var(--wutt-primary); }
.chat-app--night .product-card__btn { background: var(--_chat-surface); border-color: var(--_chat-border); color: var(--_chat-text); }
.chat-app--night .product-card__btn:hover { border-color: var(--wutt-night-accent); }

.product-card__btn--primary {
  background: var(--wutt-dark);
  color: var(--wutt-light);
  border-color: var(--wutt-dark);
}
.product-card__btn--primary:hover { background: #2A2A2A; border-color: #2A2A2A; }
.chat-app--night .product-card__btn--primary { background: var(--wutt-night-accent); color: #1a1817; border-color: var(--wutt-night-accent); }

/* Explore more card — last slot in trending row */
.product-card--explore {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1.5px dashed var(--wutt-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  min-height: 0;
  transition: border-color 160ms ease, background 160ms ease;
}
.product-card--explore:hover {
  border-color: var(--wutt-primary);
  background: rgba(200, 155, 142, 0.04);
}
.product-card--explore:active { transform: scale(0.97); }
.chat-app--night .product-card--explore {
  border-color: var(--_chat-border);
  background: transparent;
}
.chat-app--night .product-card--explore:hover {
  border-color: var(--wutt-night-accent);
  background: rgba(200, 180, 240, 0.06);
}

.product-card--explore__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--wutt-bg-subtle);
  color: var(--wutt-text-muted);
  font-size: 1.25rem;
  font-weight: 300;
  transition: background 160ms ease, color 160ms ease;
}
.product-card--explore:hover .product-card--explore__icon {
  background: rgba(200, 155, 142, 0.12);
  color: var(--wutt-primary);
}
.chat-app--night .product-card--explore__icon {
  background: var(--_chat-surface);
  color: var(--_chat-text-muted);
}
.chat-app--night .product-card--explore:hover .product-card--explore__icon {
  background: rgba(200, 180, 240, 0.12);
  color: var(--wutt-night-accent);
}

.product-card--explore__label {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--wutt-text-muted);
  letter-spacing: 0.01em;
}
.chat-app--night .product-card--explore__label { color: var(--_chat-text-muted); }

/* Shop search placeholder overlay */
.shop-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  opacity: 0;
  transition: background 250ms ease, opacity 250ms ease;
}
.shop-search-overlay--open {
  background: rgba(0,0,0,0.4);
  opacity: 1;
}

.shop-search-card {
  background: var(--wutt-light);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 400px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.15);
  overflow: hidden;
  transform: translateY(12px);
  transition: transform 250ms cubic-bezier(0.23, 1, 0.32, 1);
}
.shop-search-overlay--open .shop-search-card {
  transform: translateY(0);
}

.shop-search-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--wutt-border-light);
}

.shop-search-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--wutt-dark);
  margin: 0;
}

.shop-search-card__close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--wutt-text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.shop-search-card__body {
  padding: var(--space-lg);
}

.shop-search-card__input {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.8125rem;
  border: 1.5px solid var(--wutt-border);
  border-radius: var(--radius-md);
  background: var(--wutt-bg);
  color: var(--wutt-text);
  margin-bottom: var(--space-md);
  box-sizing: border-box;
}

.shop-search-card__msg {
  font-size: 0.75rem;
  color: var(--wutt-text-muted);
  margin: 0 0 var(--space-md);
  line-height: 1.5;
}

.shop-search-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shop-search-card__tag {
  padding: 5px 12px;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--wutt-text);
  background: var(--wutt-bg);
  border: 1px solid var(--wutt-border-light);
  border-radius: var(--radius-full);
}

.chat-app--night .shop-search-card {
  background: var(--_chat-surface);
  border: 1px solid var(--_chat-border);
}
.chat-app--night .shop-search-card__title { color: var(--_chat-text); }
.chat-app--night .shop-search-card__input {
  background: var(--_chat-bg);
  border-color: var(--_chat-border);
  color: var(--_chat-text);
}
.chat-app--night .shop-search-card__tag {
  background: var(--_chat-bg);
  border-color: var(--_chat-border);
  color: var(--_chat-text);
}

/* ============================================================
   Wishlist — saved products
   ============================================================ */

.wishlist-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: var(--wutt-bg);
}

.wishlist-view__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--wutt-border-light);
  background: var(--wutt-light);
  flex-shrink: 0;
}
.chat-app--night .wishlist-view__header { background: var(--_chat-surface); border-color: var(--_chat-border); }

.wishlist-view__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--wutt-dark);
  letter-spacing: -0.01em;
}
.chat-app--night .wishlist-view__title { color: var(--_chat-text); }

.wishlist-view__count {
  font-size: 0.6875rem;
  color: var(--wutt-text-muted);
}

.wishlist-view__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}
@media (min-width: 1200px) {
  .wishlist-grid { grid-template-columns: repeat(6, 1fr); }
}

.wishlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  gap: var(--space-sm);
}
.wishlist-empty p {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--wutt-text);
  margin: 0;
}
.wishlist-empty span {
  font-size: 0.6875rem;
  color: var(--wutt-text-muted);
}

/* ============================================================
   AI Chat FAB — floating button top-right
   ============================================================ */

/* AI Chat FAB — Notion AI inspired, bottom-right, circular */
.ai-chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--wutt-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wutt-light);
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 200ms cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
}
.ai-chat-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.1);
}
.ai-chat-fab:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.chat-app--night .ai-chat-fab {
  background: #e8e2da;
  color: #1a1817;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.2);
}
.chat-app--night .ai-chat-fab:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   Profile — Settings & Coupon additions
   ============================================================ */

.pf-card--settings .pf-card__row--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.pf-settings-chips {
  display: flex;
  gap: 6px;
}

.pf-settings-chip {
  padding: 5px 12px;
  font-family: inherit;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--wutt-text);
  background: var(--wutt-bg-subtle);
  border: 1.5px solid var(--wutt-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}
.pf-settings-chip:hover { border-color: var(--wutt-primary); }
.pf-settings-chip--active {
  background: var(--wutt-dark);
  color: var(--wutt-light);
  border-color: var(--wutt-dark);
}
.chat-app--night .pf-settings-chip { background: var(--_chat-bg); border-color: var(--_chat-border); color: var(--_chat-text); }
.chat-app--night .pf-settings-chip--active { background: var(--wutt-night-accent); color: #1a1817; border-color: var(--wutt-night-accent); }

.pf-settings-bg-chips {
  display: flex;
  gap: 6px;
}

.pf-settings-bg-chip {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--wutt-border);
  cursor: pointer;
  transition: border-color 150ms ease;
  overflow: hidden;
  padding: 0;
  background: none;
}
.pf-settings-bg-chip span {
  display: block;
  width: 100%;
  height: 100%;
}
.pf-settings-bg-chip:hover { border-color: var(--wutt-primary); }
.pf-settings-bg-chip--active { border-color: var(--wutt-dark); box-shadow: 0 0 0 1px var(--wutt-light), 0 0 0 3px var(--wutt-dark); }
.chat-app--night .pf-settings-bg-chip--active { border-color: var(--wutt-night-accent); box-shadow: 0 0 0 1px var(--_chat-surface), 0 0 0 3px var(--wutt-night-accent); }

.pf-settings-bg-chip[data-bg="clean"] span { background: #f7f3ee; }
.pf-settings-bg-chip[data-bg="grid"] span {
  background: #f7f3ee;
  background-image: linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 6px 6px;
}
.pf-settings-bg-chip[data-bg="fabric"] span {
  background: #f7f3ee;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.04) 2px, rgba(0,0,0,0.04) 4px);
}
.pf-settings-bg-chip[data-bg="midnight"] span { background: linear-gradient(160deg, #1e1c1b 0%, #252120 50%, #1a1817 100%); }

.pf-card__row--empty {
  justify-content: center;
  padding: var(--space-lg) var(--space-lg);
}
.pf-card__row--empty span {
  font-size: 0.6875rem;
  color: var(--wutt-text-muted);
  font-style: italic;
}

/* ---- Profile: Row stack (vertical layout for tags/chips) ---- */
.pf-card__row--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* ---- Profile: Style Tags ---- */
.pf-style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pf-style-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--wutt-bg);
  color: var(--wutt-text);
  border: 1px solid var(--wutt-border);
}
.pf-style-tag--active {
  background: var(--wutt-primary);
  color: #fff;
  border-color: var(--wutt-primary);
}
.pf-style-tag--empty {
  font-weight: 400;
  font-style: italic;
  color: var(--wutt-text-muted);
  border: none;
  background: none;
  padding: 0;
}

/* ---- Profile: Preferred Colors ---- */
.pf-color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pf-color-row--edit {
  gap: 6px;
}
.pf-color-chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
}
.pf-color-chip:hover {
  transform: scale(1.15);
}
.pf-color-chip--active {
  border-color: var(--wutt-dark);
  box-shadow: 0 0 0 2px var(--wutt-bg), 0 0 0 4px var(--wutt-dark);
}
.pf-color-empty {
  font-size: 0.6875rem;
  color: var(--wutt-text-muted);
  font-style: italic;
}

/* ---- Profile: Edit Divider ---- */
.pf-edit-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: var(--space-sm) 0;
}
.pf-edit-divider::before,
.pf-edit-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--wutt-border);
}
.pf-edit-divider span {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wutt-text-muted);
  white-space: nowrap;
}

/* ---- Night mode: new profile elements ---- */
.chat-app--night .pf-style-tag {
  background: var(--_chat-surface, #2a2636);
  color: var(--_chat-text, #e8e0f0);
  border-color: var(--_chat-border, #3a3446);
}
.chat-app--night .pf-style-tag--active {
  background: var(--wutt-night-accent);
  color: #1a1520;
  border-color: var(--wutt-night-accent);
}
.chat-app--night .pf-color-chip {
  border-color: var(--_chat-border, #3a3446);
}
.chat-app--night .pf-color-chip--active {
  border-color: var(--wutt-night-accent);
  box-shadow: 0 0 0 2px var(--_chat-bg, #1a1520), 0 0 0 4px var(--wutt-night-accent);
}
.chat-app--night .pf-color-empty {
  color: var(--_chat-muted, #8a80a0);
}
.chat-app--night .pf-tone-chip {
  border-color: var(--_chat-border, #3a3446);
}
.chat-app--night .pf-tone-label {
  color: var(--_chat-muted, #8a80a0);
}
.chat-app--night .pf-settings-bg-chip {
  border-color: var(--_chat-border, #3a3446);
}
.chat-app--night .pf-edit-divider::before,
.chat-app--night .pf-edit-divider::after {
  background: var(--_chat-border, #3a3446);
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .chat-app {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .chat-sidebar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(64px + env(safe-area-inset-bottom));
    flex-direction: row;
    justify-content: space-around;
    gap: 4px;
    padding: 6px var(--space-md) calc(6px + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid var(--wutt-border-light);
    z-index: var(--z-sidebar);
  }
  .chat-sidebar__logo,
  .chat-sidebar__spacer {
    display: none;
  }
  .chat-sidebar__item {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }
  .chat-app--night .chat-sidebar {
    border-top-color: var(--_chat-border);
  }
  .chat-header { min-height: 38px; padding: 3px 12px; }
  .chat-welcome__cards { grid-template-columns: 1fr 1fr; gap: var(--space-xs); }
  .action-card { padding: var(--space-md); }
  .chat-input-bar { padding: var(--space-sm) var(--space-md) var(--space-md); }
  .chat-messages { padding: var(--space-md); }
  .chat-msg {
    max-width: 100%;
  }
  .chat-msg--bot:has(.stylist-look) {
    width: 100%;
  }
  .chat-msg--bot:has(.stylist-look) .chat-msg__bubble {
    max-width: calc(100vw - 64px);
  }
  .stylist-look__title {
    overflow-wrap: anywhere;
  }
  .chat-chips,
  .upload-card,
  .describe-form,
  .analyzing-card,
  .analysis-card { max-width: 100%; width: 100%; min-width: 0; }
  .chat-input__wrapper { max-width: 100%; }
  .shop-grid, .wishlist-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
  .ai-chat-fab {
    bottom: calc(76px + env(safe-area-inset-bottom));
    right: 20px;
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 768px) {
  .wardrobe-view__scroll {
    padding: var(--space-lg) var(--space-md) var(--space-2xl);
  }
  .wardrobe-view__header {
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
  }
  .wardrobe-view__header-text,
  .wardrobe-view__actions,
  .wardrobe-view__search {
    width: 100%;
  }
  .wardrobe-view__actions {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }
  .wardrobe-view__add-btn,
  button.wardrobe-view__select-btn {
    min-height: 44px;
    flex: 1 1 calc(50% - var(--space-xs));
    justify-content: center;
  }
  .wardrobe-view__search {
    order: 3;
    flex: 1 0 100%;
  }
  .wardrobe-view__search-input {
    height: 44px;
  }
  .wardrobe-view__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: calc(-1 * var(--space-md));
    padding-right: var(--space-md);
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .wardrobe-view__filters::-webkit-scrollbar {
    display: none;
  }
  .wardrobe-view__filter {
    min-height: 44px;
    flex: 0 0 auto;
  }
  .wardrobe-view__bulk-bar {
    width: 100%;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: 0;
  }
  .wardrobe-view__bulk-count {
    flex: 1 0 100%;
    margin-right: 0;
  }
  .wardrobe-view__bulk-delete,
  .wardrobe-view__bulk-cancel {
    min-height: 44px;
    flex: 1;
    justify-content: center;
  }
  .wardrobe-view__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
  }
  .wardrobe-card__img {
    aspect-ratio: 4 / 5;
  }
  .wardrobe-tools {
    align-items: flex-start;
  }
  .wardrobe-tools__badge {
    align-self: flex-start;
  }
  .wardrobe-modal-overlay {
    align-items: flex-end;
    padding: 12px;
  }
  .wardrobe-modal {
    max-height: calc(100dvh - 24px);
    border-radius: var(--radius-xl);
  }
  .wardrobe-modal__header,
  .wardrobe-modal__step {
    padding: var(--space-md);
  }
  .wardrobe-modal__editor {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .wardrobe-modal__preview-column {
    display: grid;
    grid-template-columns: minmax(112px, 0.58fr) minmax(0, 1fr);
    gap: var(--space-md);
    align-items: start;
  }
  .wardrobe-modal__preview-column > .wardrobe-modal__section-label {
    grid-column: 1 / -1;
    margin-bottom: calc(-1 * var(--space-sm));
  }
  .wardrobe-modal__preview-note {
    margin: 0;
  }
  .wardrobe-modal__detected {
    padding: var(--space-md);
  }
  .wardrobe-modal__footer {
    position: sticky;
    bottom: calc(-1 * var(--space-md));
    z-index: 1;
    margin-right: calc(-1 * var(--space-md));
    margin-bottom: calc(-1 * var(--space-md));
    margin-left: calc(-1 * var(--space-md));
    padding: var(--space-md);
    background: var(--wutt-light);
  }
  .chat-app--night .wardrobe-modal__footer {
    background: var(--_chat-surface);
    border-color: var(--_chat-border);
  }
}

@media (max-width: 420px) {
  .login-card__social,
  .login-card__form .btn {
    min-height: 46px;
  }
  .login-card__switch {
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  .wardrobe-view__title {
    font-size: 1.375rem;
  }
  .wardrobe-card__info {
    padding: 10px;
  }
  .wardrobe-card__tags {
    gap: 4px;
  }
  .wardrobe-card__tag:nth-child(n + 3) {
    display: none;
  }
  .wardrobe-tools {
    display: flex;
  }
  .wardrobe-modal__fields {
    grid-template-columns: 1fr;
  }
  .wardrobe-modal__field--wide {
    grid-column: auto;
  }
  .wardrobe-modal__footer {
    flex-direction: column-reverse;
  }
  .wardrobe-modal__btn,
  .wardrobe-modal__btn--primary {
    width: 100%;
    min-width: 0;
  }
}

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

  .landing-hero__bg {
    transform: none !important;
    transition: none !important;
  }

  .landing-hero__stagger-1,
  .landing-hero__stagger-2,
  .landing-hero__stagger-3 {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .wutt-skeleton::after {
    display: none;
  }
}
