/**
 * YARA web — Stitch Aura Minimal theme (global).
 * Tokens from docs/design/stitch/phase-a-mvp/aura_minimal/DESIGN.md
 */

body.stitch-theme {
  --bg: #f9f9f9;
  --panel: #ffffff;
  --surface: #ffffff;
  --border: #cfc4c5;
  --text: #1a1c1c;
  --muted: #4c4546;
  --accent: #000000;
  --accent-dim: #1b1b1b;
  --accent-soft: rgba(0, 0, 0, 0.06);
  --primary: #1a1c1c;
  --danger: #ba1a1a;
  --ok: #1a1c1c;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  --stitch-bg: #f9f9f9;
  --stitch-surface: #ffffff;
  --stitch-text: #1a1c1c;
  --stitch-muted: #4c4546;
  --stitch-primary: #000000;
  --stitch-container: #eeeeee;
  --stitch-outline: #cfc4c5;
  --stitch-max: 430px;
  --stitch-gutter: 1.25rem;
  --get-started-logo-height: 3.75rem;
  --get-started-logo-max-width: min(340px, 88vw);
  --auth-hero-image-focus-y: 32%;
  font-family: "Inter", "DM Sans", system-ui, sans-serif;
  background: var(--stitch-bg);
  color: var(--stitch-text);
}

body.stitch-theme h1,
body.stitch-theme h2,
body.stitch-theme h3,
body.stitch-theme .section-label,
body.stitch-theme .card h2,
body.stitch-theme .settings-panel-title,
body.stitch-theme .profile-hero-main h3 {
  font-family: "Montserrat", "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.stitch-theme {
  background: var(--stitch-bg);
  min-height: 100vh;
}

@media (min-width: 480px) {
  body.stitch-theme:not(.stitch-splash-active) {
    background: linear-gradient(180deg, #ececec 0%, #dadada 100%);
  }
}

body.stitch-theme.stitch-splash-active {
  overflow: hidden;
}

/* ─── Splash (Stitch initiation) ─── */
.stitch-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem var(--stitch-gutter) calc(2rem + env(safe-area-inset-bottom, 0));
  background: var(--stitch-bg);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.stitch-splash.hidden {
  display: none;
}

.stitch-splash.stitch-splash-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.stitch-splash-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background:
    radial-gradient(circle at 15% 10%, rgba(226, 226, 226, 0.9), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(238, 238, 238, 0.9), transparent 55%);
}

.stitch-splash-center {
  position: relative;
  z-index: 1;
}

.stitch-splash-logo {
  display: block;
  width: min(240px, 68vw);
  height: auto;
  margin: 0 auto;
  background: transparent;
}

.stitch-splash-progress {
  position: relative;
  z-index: 1;
  width: min(240px, 70vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.stitch-splash-bar {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--stitch-container);
  overflow: hidden;
}

.stitch-splash-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--stitch-primary);
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.stitch-splash-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stitch-muted);
}

.stitch-splash-hint {
  margin: 0;
  max-width: 300px;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
  color: var(--stitch-muted);
}

.stitch-splash-progress--hint {
  width: min(300px, 78vw);
}

.stitch-splash-spin {
  font-size: 1.1rem;
  color: var(--stitch-primary);
  animation: stitch-spin 1.1s linear infinite;
}

@keyframes stitch-spin {
  to { transform: rotate(360deg); }
}

/* Section transitions */
body.stitch-theme .flow-section.flow-section-active {
  animation: stitch-section-in 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes stitch-section-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.stitch-theme.is-auth-screen {
  background: var(--stitch-bg);
}

body.stitch-theme header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(207, 196, 197, 0.45);
  width: min(var(--stitch-max), 100%);
  max-width: var(--stitch-max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

body.stitch-theme.is-logged-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

body.stitch-theme.is-logged-in header {
  position: fixed;
  top: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.55rem var(--stitch-gutter);
}

body.stitch-theme.is-auth-screen header {
  position: relative;
  left: auto;
  transform: none;
  max-width: var(--stitch-max);
  padding-left: var(--stitch-gutter);
  padding-right: var(--stitch-gutter);
  box-sizing: border-box;
}

body.stitch-theme.is-logged-in .header-brand {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.stitch-theme.is-logged-in .brand-logo--header.brand-logo--app {
  height: 2.5rem;
  width: auto;
  max-width: min(180px, 60vw);
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

body.stitch-theme.is-logged-in .brand-logo--header.brand-logo--auth {
  display: none !important;
}

body.stitch-theme.is-logged-in .header-actions {
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

body.stitch-theme.is-logged-in main {
  width: 100%;
  max-width: var(--stitch-max);
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 4.25rem var(--stitch-gutter) calc(5.5rem + env(safe-area-inset-bottom, 0));
  box-sizing: border-box;
}

body.stitch-theme.is-logged-in #appPanel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

@media (min-width: 480px) {
  body.stitch-theme.is-logged-in header,
  body.stitch-theme.is-logged-in main {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  }

  body.stitch-theme.is-logged-in main {
    background: var(--stitch-bg);
  }
}

body.stitch-theme .app-shell {
  /* Override base grid + align-items:start so children can stretch vertically. */
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  max-width: none;
  width: 100%;
  margin: 0;
  min-width: 0;
  min-height: 0;
  gap: 0;
  align-items: stretch;
}

body.stitch-theme .app-content {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  gap: 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

body.stitch-theme.is-auth-screen main {
  max-width: var(--stitch-max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--stitch-gutter);
  padding-right: var(--stitch-gutter);
  box-sizing: border-box;
}

body.stitch-theme .sub {
  color: var(--stitch-muted);
}

body.stitch-theme .mobile-topbar {
  display: none;
}

body.stitch-theme .avatar-pill {
  background: var(--stitch-primary);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

/* Bottom navigation — Stitch glass bar */
body.stitch-theme .side-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(var(--stitch-max), 100%);
  max-width: var(--stitch-max);
  box-sizing: border-box;
  border-radius: 1rem 1rem 0 0;
  border: none;
  border-top: 1px solid rgba(207, 196, 197, 0.5);
  background: rgba(249, 249, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.04);
  padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0));
  justify-content: space-around;
}

body.stitch-theme .side-nav a {
  color: var(--stitch-muted);
  min-width: 64px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.stitch-theme .side-nav a .nav-icon,
body.stitch-theme .side-nav a .material-symbols-outlined {
  font-size: 1.35rem;
  line-height: 1;
}

body.stitch-theme .side-nav a.active {
  color: var(--stitch-primary);
  background: rgba(0, 0, 0, 0.07);
  border-color: transparent;
  border-radius: 999px;
  font-weight: 700;
  transform: none;
}

body.stitch-theme .side-nav a.active .material-symbols-outlined {
  font-variation-settings: "FILL" 1;
}

body.stitch-theme .side-nav a:hover {
  color: var(--stitch-primary);
}

/* Cards & sections */
body.stitch-theme .flow-section {
  gap: 1rem;
}

body.stitch-theme .section-label {
  font-size: 1.5rem;
  color: var(--stitch-primary);
  text-transform: none;
  letter-spacing: -0.01em;
  margin: 0;
}

body.stitch-theme .section-sub {
  color: var(--stitch-muted);
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

body.stitch-theme .card {
  background: var(--stitch-surface);
  border: 1px solid rgba(207, 196, 197, 0.55);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  padding: 1.35rem 1.25rem;
}

body.stitch-theme .card h2 {
  color: var(--stitch-primary);
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1.15rem;
}

/* Forms */
body.stitch-theme label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stitch-muted);
}

body.stitch-theme input[type="text"],
body.stitch-theme input[type="email"],
body.stitch-theme input[type="password"],
body.stitch-theme input[type="number"],
body.stitch-theme input[type="url"],
body.stitch-theme select,
body.stitch-theme textarea {
  background: var(--stitch-surface);
  border: 1px solid var(--stitch-outline);
  border-radius: 0.5rem;
  color: var(--stitch-text);
}

body.stitch-theme input:focus,
body.stitch-theme select:focus,
body.stitch-theme textarea:focus {
  outline: none;
  border-color: var(--stitch-primary);
  box-shadow: 0 0 0 1px var(--stitch-primary);
}

/* Buttons */
body.stitch-theme .btn-primary {
  background: var(--stitch-primary);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  min-height: 46px;
}

body.stitch-theme .btn-primary:hover:not(:disabled) {
  transform: scale(1.01);
}

body.stitch-theme .btn-ghost {
  color: var(--stitch-primary);
  border: 2px solid var(--stitch-primary);
  border-radius: 999px;
  background: transparent;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

body.stitch-theme .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
}

body.stitch-theme .btn-danger {
  background: #fff;
  color: var(--danger);
  border: 1px solid rgba(186, 26, 26, 0.35);
  border-radius: 999px;
}

body.stitch-theme .btn-accept {
  background: var(--stitch-primary);
  color: #fff;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

body.stitch-theme .btn-accept.stitch-btn-love,
body.stitch-theme .stitch-btn-primary.stitch-btn-love {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
}

body.stitch-theme .btn-skip {
  background: transparent;
  color: var(--stitch-primary);
  border: 2px solid var(--stitch-primary) !important;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

body.stitch-theme #logoutBtn {
  border-radius: 999px;
}

/* Auth */
body.stitch-theme #authPanel.card {
  max-width: 420px;
  margin: 0 auto;
}

body.stitch-theme .auth-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

body.stitch-theme .auth-tabs button {
  min-width: 7.5rem;
  border-radius: 999px;
  border: 1px solid var(--stitch-outline);
  color: var(--stitch-muted);
  background: var(--stitch-surface);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

body.stitch-theme .auth-tabs button.active {
  background: var(--stitch-primary);
  color: #fff;
  border-color: var(--stitch-primary);
}

body.stitch-theme .stitch-auth-forms.auth-mode-login .stitch-auth-head h2 {
  display: none;
}

body.stitch-theme .auth-label-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.stitch-theme .auth-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--stitch-muted);
  cursor: help;
}

body.stitch-theme .auth-info-btn .material-symbols-outlined {
  font-size: 1rem;
  line-height: 1;
}

body.stitch-theme .auth-info-btn:hover,
body.stitch-theme .auth-info-btn:focus-visible {
  background: rgba(0, 0, 0, 0.1);
  color: var(--stitch-text);
  outline: none;
}

/* Wardrobe */
body.stitch-theme .wardrobe-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

body.stitch-theme .wardrobe-card,
body.stitch-theme #wardrobe-section {
  min-width: 0;
  max-width: 100%;
}

body.stitch-theme .wardrobe-header h2 {
  margin: 0;
  /* Bound width so title cannot spill into Add Apparel; JS shrinks font to fit (APK). */
  flex: 1 1 0%;
  min-width: 0;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

body.stitch-theme .wardrobe-header .stitch-add-apparel-btn {
  flex: 0 0 auto;
  padding: 0.6875rem 1.125rem;
  min-height: 44px;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: none;
  white-space: nowrap;
  line-height: 1.2;
}

body.stitch-theme #wardrobeHomePage > .status {
  margin: 0 0 0.5rem;
}

body.stitch-theme .wardrobe-page-actions .btn-primary {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

body.stitch-theme .filter-tabs button {
  background: var(--stitch-container);
  border: 1px solid transparent;
  color: var(--stitch-muted);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  padding: 0.28rem 0.58rem;
  font-size: 0.68rem;
  line-height: 1.2;
  border-radius: 999px;
}

body.stitch-theme .filter-tabs button.active {
  background: var(--stitch-primary);
  color: #fff;
  border-color: var(--stitch-primary);
}

body.stitch-theme .items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 100%;
}

body.stitch-theme .item {
  display: flex;
  flex-direction: column;
  width: auto;
  min-width: 0;
  margin-bottom: 0;
  border: none;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  background: var(--stitch-surface);
  padding: 0;
  overflow: hidden;
}

body.stitch-theme .item-media {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem 0.75rem 0 0;
  background: var(--stitch-container);
  aspect-ratio: 3 / 4;
}

body.stitch-theme .item-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  background: var(--stitch-container);
}

body.stitch-theme .item.unavailable .item-media img {
  filter: grayscale(0.45);
  opacity: 0.72;
}

body.stitch-theme .item-laundry-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.04);
}

body.stitch-theme .item-laundry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stitch-muted);
}

body.stitch-theme .item-laundry-pill .material-symbols-outlined {
  font-size: 1rem;
}


body.stitch-theme .item-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.28) 100%);
  pointer-events: none;
  z-index: 1;
}

body.stitch-theme .item-icon-actions {
  position: absolute;
  bottom: 0.55rem;
  left: 0.55rem;
  right: 0.55rem;
  top: auto;
  z-index: 2;
  display: flex;
  gap: 0.35rem;
  justify-content: flex-start;
}

body.stitch-theme .item-icon-btn {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.stitch-theme .item-icon-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

body.stitch-theme .item-icon-btn .material-symbols-outlined {
  font-size: 1.05rem;
  color: var(--stitch-text);
}

body.stitch-theme .item-icon-btn--danger .material-symbols-outlined {
  color: var(--danger);
}

body.stitch-theme .item-icon-btn--ready {
  background: rgba(255, 255, 255, 0.96);
}

body.stitch-theme .item-icon-btn--ready .material-symbols-outlined {
  color: #2e7d32;
}

body.stitch-theme .item.unavailable::after {
  display: none;
}

body.stitch-theme .item-caption {
  padding: 0.7rem 0.75rem 0.8rem;
  background: var(--stitch-surface);
  color: var(--stitch-text);
}

body.stitch-theme .item-caption strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--stitch-text);
}

body.stitch-theme .item-caption-sub {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--stitch-muted);
}

body.stitch-theme .item-caption .color-tag {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--stitch-container);
  color: var(--stitch-text);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

body.stitch-theme .item-caption .conf-badge,
body.stitch-theme .item-caption .rain-badge {
  margin-top: 0.25rem;
}

body.stitch-theme .item-caption .conf-badge.low {
  background: #fff3cd;
  color: #856404;
}

body.stitch-theme .item-caption .conf-badge.new {
  background: #e8f5e9;
  color: #2e7d32;
}

body.stitch-theme .item .meta,
body.stitch-theme .item .btns {
  display: none;
}

body.stitch-theme .item img {
  background: var(--stitch-container);
  border-radius: 0;
}

body.stitch-theme .item .meta .color-tag {
  background: var(--stitch-container);
  color: var(--stitch-text);
}

/* Profile & settings */
body.stitch-theme .profile-hero {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(207, 196, 197, 0.55);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

body.stitch-theme .profile-stat {
  background: var(--stitch-container);
  border: none;
  border-radius: 0.5rem;
}

body.stitch-theme .profile-stat strong {
  color: var(--stitch-primary);
  font-family: "Montserrat", sans-serif;
}

body.stitch-theme .settings-panel {
  border: 1px solid rgba(207, 196, 197, 0.55);
  border-radius: 0.75rem;
  background: var(--stitch-surface);
  box-shadow: var(--shadow);
}

body.stitch-theme .settings-panel.expanded {
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

body.stitch-theme .settings-panel-header:hover {
  background: rgba(0, 0, 0, 0.03);
}

body.stitch-theme .settings-panel.expanded .settings-panel-chevron {
  color: var(--stitch-primary);
}

/* History (Profile → Outfit history panel) */
body.stitch-theme #settingsPanelHistory .card h2,
body.stitch-theme #history-section .card h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

body.stitch-theme #settingsPanelHistory .history-filter-hint,
body.stitch-theme #history-section .history-filter-hint {
  display: none;
}

body.stitch-theme .history-stats {
  gap: 0.65rem;
  margin-bottom: 1rem;
}

body.stitch-theme .history-stat {
  background: var(--stitch-container);
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 0.5rem;
}

body.stitch-theme .history-stat strong {
  color: var(--stitch-primary);
  font-family: "Montserrat", sans-serif;
}

body.stitch-theme .history-filter-label {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

body.stitch-theme .history-date-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

body.stitch-theme .history-filters {
  display: flex;
  gap: 0.45rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  margin-bottom: 1rem;
  scrollbar-width: none;
}

body.stitch-theme .history-filters::-webkit-scrollbar {
  display: none;
}

body.stitch-theme .history-filters button,
body.stitch-theme .history-date-tab {
  border-radius: 0.75rem;
  border: 1px solid var(--stitch-outline);
  background: var(--stitch-surface);
  color: var(--stitch-muted);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

body.stitch-theme .history-date-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  min-height: 4.5rem;
  padding: 0.55rem 0.45rem;
}

body.stitch-theme .history-date-tab .day-label {
  display: block;
  line-height: 1.15;
  color: var(--stitch-text);
  font-size: 0.82rem;
}

body.stitch-theme .history-date-tab .day-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  min-height: 1.65rem;
  padding: 0 0.4rem;
  margin-top: 0;
  border-radius: 999px;
  background: var(--stitch-container);
  color: var(--stitch-text);
  font-size: 0.72rem;
  line-height: 1;
}

body.stitch-theme .history-date-tab--calendar {
  min-height: 4.5rem;
  flex-direction: column;
  gap: 0.35rem;
}

body.stitch-theme .history-date-tab--calendar .day-label {
  font-size: 0.72rem;
}

body.stitch-theme .history-date-tab--calendar .material-symbols-outlined {
  font-size: 1.15rem;
  color: var(--stitch-muted);
}

body.stitch-theme .history-filters button {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.45rem 0.9rem;
  min-height: 2.25rem;
}

body.stitch-theme .history-filters button.active {
  background: var(--stitch-primary);
  color: #fff;
  border-color: var(--stitch-primary);
}

body.stitch-theme .history-date-tab.active {
  background: var(--stitch-surface);
  color: var(--stitch-text);
  border-color: var(--stitch-primary);
  box-shadow: inset 0 0 0 1px var(--stitch-primary);
}

body.stitch-theme .history-date-tab.active .day-label {
  color: var(--stitch-primary);
}

body.stitch-theme .history-date-tab.active .day-count {
  background: var(--stitch-primary);
  color: #fff;
}

body.stitch-theme .history-date-tab--calendar.active .material-symbols-outlined {
  color: var(--stitch-primary);
}

body.stitch-theme .history-selected-day {
  margin: 0 0 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--stitch-outline);
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
}

body.stitch-theme .history-selected-day span:first-child {
  color: var(--stitch-text);
}

body.stitch-theme .history-selected-day span:last-child {
  color: var(--stitch-muted);
  font-size: 0.78rem;
}

body.stitch-theme .history-date {
  border-bottom-color: var(--stitch-outline);
  color: var(--stitch-text);
  margin-bottom: 0.65rem;
}

body.stitch-theme .history-date-label {
  font-family: "Montserrat", sans-serif;
  font-size: 0.92rem;
}

body.stitch-theme .history-date .date-count {
  background: var(--stitch-container);
  color: var(--stitch-muted);
}

body.stitch-theme .history-outfit {
  border: 1px solid rgba(207, 196, 197, 0.55);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  padding: 1rem;
  gap: 0.85rem;
}

body.stitch-theme .history-outfit-body {
  gap: 0.65rem;
}

body.stitch-theme .history-outfit-pieces {
  gap: 0.55rem;
}

body.stitch-theme .history-outfit .piece-image {
  background: var(--stitch-container);
  border-color: rgba(207, 196, 197, 0.55);
  border-radius: 0.65rem;
}

body.stitch-theme .history-outfit .piece-name {
  color: var(--stitch-muted);
  font-size: 0.65rem;
}

body.stitch-theme .history-outfit .history-time {
  color: var(--stitch-text);
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
}

body.stitch-theme .history-outfit .history-meta .occasion-tag {
  background: var(--stitch-container);
  color: var(--stitch-text);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.stitch-theme .history-outfit-footer .look-board-actions button {
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  min-height: 2.5rem;
}

body.stitch-theme .history-outfit-footer .look-board-actions .btn-secondary {
  background: var(--stitch-primary);
  color: #fff;
  border-color: var(--stitch-primary);
}

body.stitch-theme .history-outfit-footer .look-board-actions .btn-ghost {
  background: var(--stitch-surface);
  color: var(--stitch-text);
  border: 1px solid var(--stitch-outline);
}

body.stitch-theme .history-load-more-days {
  border-radius: 999px;
  border-style: solid;
  border-color: var(--stitch-outline);
  background: var(--stitch-surface);
  color: var(--stitch-text);
  font-family: "Montserrat", sans-serif;
}

body.stitch-theme .history-empty strong {
  font-family: "Montserrat", sans-serif;
}

/* Weekly plan */
body.stitch-theme .week-day-card.confirmed {
  border-left: none;
  background: var(--stitch-surface);
}

body.stitch-theme .week-day-header .confirmed-badge {
  color: var(--stitch-text);
  background: var(--stitch-container);
}

body.stitch-theme .week-gaps-banner {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--stitch-outline);
  color: var(--stitch-text);
}

body.stitch-theme .week-header-bar,
body.stitch-theme .week-day-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(207, 196, 197, 0.55);
  box-shadow: var(--shadow);
}

body.stitch-theme .routine-row {
  border-radius: 0.5rem;
  border-color: var(--stitch-outline);
}

body.stitch-theme .routine-row.is-today {
  border-color: var(--stitch-primary);
  background: rgba(0, 0, 0, 0.03);
}

body.stitch-theme .routine-day-num {
  font-family: "Montserrat", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  font-style: normal;
  font-feature-settings: normal;
  color: var(--stitch-text);
}

body.stitch-theme .routine-day-num.routine-day-date {
  font-size: 0.95rem;
  line-height: 1.15;
  white-space: nowrap;
}

body.stitch-theme .routine-day-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.14em;
}

body.stitch-theme .routine-row.is-off .routine-day-num,
body.stitch-theme .routine-row.is-off .routine-day-name {
  font-style: normal;
  color: var(--stitch-text);
}

body.stitch-theme .routine-row.is-off {
  background: rgba(0, 0, 0, 0.02);
}

body.stitch-theme .routine-row.is-today.is-off {
  background: rgba(0, 0, 0, 0.04);
}

body.stitch-theme .routine-formality-select,
body.stitch-theme .profile-routine-select {
  font-family: "Montserrat", sans-serif !important;
  font-style: normal !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.01em;
  color: var(--stitch-text) !important;
}

body.stitch-theme .routine-type-select.type-work,
body.stitch-theme .profile-routine-type-select.type-work,
body.stitch-theme .routine-type-select.type-off,
body.stitch-theme .profile-routine-type-select.type-off {
  background-color: #fff !important;
  border: 2px solid var(--stitch-primary) !important;
  color: var(--stitch-primary) !important;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-style: normal;
  box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23000000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

body.stitch-theme .routine-type-select.type-work:hover,
body.stitch-theme .profile-routine-type-select.type-work:hover,
body.stitch-theme .routine-type-select.type-off:hover,
body.stitch-theme .profile-routine-type-select.type-off:hover {
  background-color: rgba(0, 0, 0, 0.04) !important;
  color: var(--stitch-primary) !important;
}

/* Outfits (non-home sections / history) */
body.stitch-theme .outfit:not(.stitch-ootd-card) {
  border: 1px solid rgba(207, 196, 197, 0.55);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

body.stitch-theme .outfit-confirmed {
  border: 1px solid var(--stitch-outline);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.75rem;
}

body.stitch-theme .outfit-confirmed strong {
  color: var(--stitch-text);
  font-family: "Montserrat", sans-serif;
}

body.stitch-theme .outfit-confirmed span {
  color: var(--stitch-muted);
}

body.stitch-theme .outfit-confirmed .see-more-link {
  color: var(--stitch-primary);
}

body.stitch-theme .banner {
  border-radius: 0.5rem;
  border-color: var(--stitch-outline);
}

body.stitch-theme .banner.ok {
  background: rgba(0, 0, 0, 0.04);
  color: var(--stitch-text);
}

/* Dialogs & overlays */
body.stitch-theme .edit-dialog,
body.stitch-theme .look-board-dialog {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

body.stitch-theme .edit-dialog h3,
body.stitch-theme .look-board-header h3 {
  color: var(--stitch-primary);
  font-family: "Montserrat", sans-serif;
}

body.stitch-theme .onboard-overlay {
  background: rgba(249, 249, 249, 0.96);
}

body.stitch-theme .onboard-card {
  border: 1px solid rgba(207, 196, 197, 0.55);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

body.stitch-theme .onboard-card h2 {
  font-family: "Montserrat", sans-serif;
  color: var(--stitch-primary);
}

body.stitch-theme .onboard-progress .dot.active {
  background: var(--stitch-primary);
}

body.stitch-theme .onboard-kicker {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stitch-muted, #6b6b6b);
  text-align: center;
}

body.stitch-theme .onboard-step-title {
  margin: 0.35rem 0 1rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  color: var(--stitch-on-surface, #1a1a1a);
}

body.stitch-theme .ob-account-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--stitch-outline, #e2e2e2);
  text-align: center;
}

body.stitch-theme .ob-account-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stitch-muted, #6b6b6b);
}

body.stitch-theme .ob-account-email {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--stitch-on-surface, #1a1a1a);
}

body.stitch-theme .ob-account-hint {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.82rem;
  color: var(--stitch-muted, #6b6b6b);
}

body.stitch-theme .ob-sign-out-btn {
  width: 100%;
  justify-content: center;
}

body.stitch-theme .toast {
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

body.stitch-theme .toast-container {
  top: max(1rem, env(safe-area-inset-top, 0px));
  z-index: 200;
}

/* Shared Stitch utilities */
.glass-surface {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stitch-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: var(--stitch-primary);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.stitch-btn-primary:hover:not(:disabled) {
  transform: scale(1.02);
}

.stitch-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--stitch-primary);
  border-radius: 999px;
  background: transparent;
  color: var(--stitch-primary);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.stitch-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* ─── Today / Home dashboard layout ─── */
#style-day-section.stitch-home {
  gap: 0.75rem;
  padding: 0.25rem 0 2rem;
}

#style-day-section.stitch-home .section-label,
#style-day-section.stitch-home > .section-sub:first-of-type {
  display: none;
}

.stitch-home-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0;
}

.stitch-home-greeting {
  flex: 1;
  min-width: 0;
}

.stitch-home-hero-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.stitch-home-period {
  margin: 0 0 0.15rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--stitch-muted);
}

.stitch-home-name {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--stitch-text);
}

.stitch-home-weather {
  flex-shrink: 0;
}

.stitch-weather-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.stitch-weather-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.05);
}

.stitch-weather-icon .material-symbols-outlined {
  font-size: 1.75rem;
  color: var(--stitch-primary);
}

.stitch-weather-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stitch-weather-temp {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.stitch-weather-dot {
  color: var(--stitch-muted);
  opacity: 0.6;
}

.stitch-weather-city {
  color: var(--stitch-muted);
}

.stitch-weather-hint {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stitch-muted);
}

.stitch-weather-card--compact {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 5.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: var(--stitch-surface);
  border: 1px solid rgba(207, 196, 197, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.stitch-weather-compact-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.stitch-weather-card--compact .material-symbols-outlined {
  font-size: 1.35rem;
  color: var(--stitch-primary);
}

.stitch-weather-card--compact .stitch-weather-temp {
  font-size: 1rem;
  font-weight: 700;
}

.stitch-weather-city-compact {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--stitch-muted);
  text-align: center;
}

.stitch-home-alerts .banner {
  margin-top: 0;
}

.stitch-home-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0;
}

.stitch-home-alerts:empty {
  display: none;
}

.stitch-home-location-hint {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.625rem 0.75rem;
  border: none;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.stitch-home-location-hint:hover {
  background: #fef3c7;
}

.stitch-home-location-hint:focus-visible {
  outline: 2px solid #d4654a;
  outline-offset: 2px;
}

#style-day-section.stitch-home .stitch-home-today {
  margin-top: 0;
}

/* Look queue navigation */
body.stitch-theme .queue-nav {
  margin: 0 0 1rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

body.stitch-theme .queue-nav-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--stitch-primary);
  background: var(--stitch-surface);
  color: var(--stitch-primary);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

body.stitch-theme .queue-nav-primary:hover {
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

body.stitch-theme .queue-nav-primary .material-symbols-outlined {
  font-size: 1.2rem;
}

body.stitch-theme .queue-nav-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
  align-items: stretch;
}

body.stitch-theme .queue-nav-prev,
body.stitch-theme .queue-nav-next {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  /* Equal halves; override base styles.css flex:0 0 auto + nowrap that overflow. */
  flex: unset;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  justify-content: center;
  border: 2px solid var(--stitch-primary);
  border-radius: 999px;
  background: var(--stitch-surface);
  color: var(--stitch-text);
  font-family: "Montserrat", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.85rem 0.65rem;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

/* When only Previous is shown (no Next), span full row */
body.stitch-theme .queue-nav-split:has(> :only-child) {
  grid-template-columns: 1fr;
}

body.stitch-theme .queue-nav-prev:hover,
body.stitch-theme .queue-nav-next:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

body.stitch-theme .queue-nav-prev .material-symbols-outlined,
body.stitch-theme .queue-nav-next .material-symbols-outlined {
  font-size: 1.1rem;
  color: var(--stitch-primary);
}

/* Action rows — consistent spacing */
body.stitch-theme .wardrobe-tools {
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  min-width: 0;
  max-width: 100%;
}

body.stitch-theme .filter-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 0.1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.stitch-theme .filter-tabs::-webkit-scrollbar {
  display: none;
}

body.stitch-theme .filter-tabs button {
  flex: 0 0 auto;
  white-space: nowrap;
}

body.stitch-theme .filter-tabs--availability {
  margin-bottom: 0.15rem;
}

body.stitch-theme .week-day-actions {
  gap: 0.65rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

body.stitch-theme .week-header-bar {
  gap: 0.75rem;
  padding: 0.15rem 0;
}

body.stitch-theme .look-board-actions {
  gap: 0.65rem;
  margin-top: 0.85rem;
}

body.stitch-theme .look-board-actions button {
  min-height: 38px;
  padding-left: 1rem;
  padding-right: 1rem;
}

body.stitch-theme .history-filters,
body.stitch-theme .history-date-picker {
  gap: 0.5rem;
}

body.stitch-theme .history-filter-label {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

body.stitch-theme .actions {
  gap: 0.65rem;
}

body.stitch-theme .settings-panel-actions {
  gap: 0.65rem;
  margin-top: 1rem;
}

body.stitch-theme .add-clothing-header {
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

body.stitch-theme .profile-legal-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.stitch-theme .profile-legal-links .btn-ghost {
  justify-content: flex-start;
  text-align: left;
}

.stitch-home-load {
  background: var(--stitch-surface);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.stitch-home-load label {
  display: block;
  margin-bottom: 0.35rem;
}

.stitch-home-load select {
  width: 100%;
  margin-bottom: 1rem;
}

#style-day-section.stitch-home .stitch-ootd-card.accepted {
  border-left: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

#style-day-section.stitch-home .outfit-confirmed {
  margin-top: 0.75rem;
}

#style-day-section.stitch-home .stitch-ootd-card {
  position: relative;
  overflow: hidden;
  border: none;
  padding: 0;
  margin: 0 0 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

#style-day-section.stitch-home .stitch-ootd-card:hover {
  transform: none;
}

.stitch-ootd-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  opacity: 0.3;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: stitch-shimmer 3s infinite linear;
}

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

.stitch-ootd-inner {
  padding: 1.5rem;
}

.stitch-ootd-header {
  margin-bottom: 1.5rem;
}

.stitch-ootd-title {
  margin: 0 0 0.35rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--stitch-primary);
}

.stitch-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--stitch-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stitch-ai-badge .material-symbols-outlined {
  font-size: 0.875rem;
  font-variation-settings: "FILL" 1;
}

#style-day-section.stitch-home .stitch-ootd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Dress / saree / lehenga alone — keep height in check so Love + nav stay on screen */
#style-day-section.stitch-home .stitch-ootd-grid--solo {
  display: flex;
  justify-content: center;
}

.stitch-ootd-slots-wrap {
  margin-bottom: 1.5rem;
}

.stitch-ootd-slots {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stitch-ootd-slot-row {
  display: grid;
  gap: 0.75rem;
}

.stitch-ootd-slot-row--primary {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

.stitch-ootd-slot-row--extras {
  grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr));
  max-width: 100%;
}

.stitch-ootd-slot {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stitch-ootd-slot img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: none;
  border-radius: 0.5rem;
  margin: 0;
  background: var(--stitch-container);
}

.stitch-ootd-slot-row--extras .stitch-ootd-slot img {
  aspect-ratio: 1 / 1;
}

.stitch-ootd-slot .slot-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--stitch-muted);
  line-height: 1.2;
}

.history-outfit-pieces .stitch-ootd-slot-row--primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#style-day-section.stitch-home .stitch-ootd-grid .piece {
  width: 100%;
  flex: unset;
  font-size: 0;
}

/* After general .piece width:100% so solo cap wins (equal specificity). */
#style-day-section.stitch-home .stitch-ootd-grid--solo .piece {
  width: min(52%, 200px);
  flex: 0 0 auto;
}

#style-day-section.stitch-home .stitch-ootd-grid .piece img {
  width: 100%;
  height: auto; /* clear base .piece img { height: 96px } so aspect-ratio applies */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: none;
  border-radius: 0.5rem;
  margin: 0;
  background: var(--stitch-container);
}

#style-day-section.stitch-home .stitch-ootd-grid .piece-name {
  display: none;
}

.stitch-ootd-why {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stitch-ootd-why p {
  margin: 0;
  line-height: 1.6;
  color: var(--stitch-muted);
}

#style-day-section.stitch-home .stitch-ootd-actions {
  display: grid;
  gap: 0.75rem;
}

#style-day-section.stitch-home .stitch-ootd-actions .btn-accept.stitch-btn-love,
#style-day-section.stitch-home .stitch-ootd-actions .queue-nav-primary {
  width: 100%;
  min-height: 52px;
  padding: 0.875rem 1.25rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#style-day-section.stitch-home .stitch-ootd-actions .queue-nav {
  margin: 0;
  width: 100%;
}

#style-day-section.stitch-home .stitch-ootd-inner .look-board-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

#style-day-section.stitch-home .stitch-ootd-inner .look-board-actions button {
  display: inline-flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  min-height: 38px;
  padding-left: 1rem;
  padding-right: 1rem;
}

#style-day-section.stitch-home .stitch-ootd-inner .look-board-actions .btn-secondary {
  border: 2px solid var(--stitch-primary);
  background: var(--stitch-surface);
  color: var(--stitch-text);
  font-weight: 700;
}

#style-day-section.stitch-home .stitch-ootd-inner .look-board-actions .btn-ghost {
  border: 2px solid var(--stitch-primary);
  background: transparent;
  color: var(--stitch-primary);
  font-weight: 700;
}

#style-day-section.stitch-home .stitch-home-week {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stitch-outline);
}

#style-day-section.stitch-home .stitch-home-week .section-label {
  display: block;
  font-size: 1.25rem;
}

#style-day-section.stitch-home .stitch-home-week > .section-sub {
  display: block;
}

#style-day-section.stitch-home .look-board-actions button {
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
}

@media (max-width: 640px) {
  body.stitch-theme {
    --stitch-gutter: 1rem;
  }

  body.stitch-theme .side-nav {
    width: min(var(--stitch-max), calc(100% - 2 * var(--stitch-gutter)));
    max-width: none;
  }
}

@media (max-width: 520px) {
  #style-day-section.stitch-home .stitch-ootd-grid {
    gap: 0.5rem;
  }

  .stitch-ootd-title {
    font-size: 1.25rem;
  }
}

/* ─── Header: logo-only when logged in ─── */
body.stitch-theme.is-logged-in .header-actions {
  display: none !important;
}

body.stitch-theme.is-logged-in .header-brand {
  text-align: center;
}

body.stitch-theme.is-logged-in .header-brand .sub {
  display: none;
}

/* ─── Auth (Stitch sign-up styling) ─── */
body.stitch-theme.is-auth-screen .header-brand {
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0 0.35rem;
}

body.stitch-theme.is-auth-screen .brand-logo--header.brand-logo--auth {
  display: none !important;
}

body.stitch-theme.is-auth-screen .brand-logo--header.brand-logo--app {
  display: block !important;
  height: 2.5rem;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

body.stitch-theme.is-auth-screen .header-brand .sub {
  display: none;
}

body.stitch-theme.is-auth-screen.is-auth-landing main {
  padding: 0;
  max-width: none;
}

body.stitch-theme.is-auth-screen.is-auth-landing header {
  display: none;
}

body.stitch-theme #authPanel.stitch-auth {
  max-width: 420px;
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

body.stitch-theme.is-auth-landing #authPanel.stitch-auth {
  max-width: none;
  width: 100%;
  margin: 0;
}

body.stitch-theme .stitch-auth-landing {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--stitch-bg);
  position: relative;
}

body.stitch-theme .stitch-auth-hero {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: clamp(320px, 52dvh, 480px);
  min-height: 320px;
  max-height: 480px;
  overflow: hidden;
  background: transparent;
  display: block;
}

body.stitch-theme .stitch-auth-hero > img:not(.stitch-auth-hero-brand) {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center var(--auth-hero-image-focus-y);
  display: block;
}

body.stitch-theme .stitch-auth-hero-brand {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  height: var(--get-started-logo-height);
  width: auto;
  max-width: var(--get-started-logo-max-width);
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
}

body.stitch-theme .stitch-auth-hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.06) 0%,
    rgba(249, 249, 249, 0) 42%,
    rgba(249, 249, 249, 0.72) 82%,
    var(--stitch-bg) 100%
  );
  pointer-events: none;
}

body.stitch-theme .stitch-auth-landing-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 0;
  padding: 1.75rem var(--stitch-gutter) max(1.5rem, env(safe-area-inset-bottom, 0px));
  margin-top: -0.5rem;
  position: relative;
  z-index: 2;
}

body.stitch-theme .stitch-auth-landing-title {
  margin: 0 0 0.85rem;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.65rem, 6vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--stitch-text);
}

body.stitch-theme .stitch-auth-landing-sub {
  margin: 0 0 1.1rem;
  max-width: 22rem;
  color: var(--stitch-muted);
  font-size: 1rem;
  line-height: 1.55;
}

body.stitch-theme .stitch-auth-landing-actions {
  width: min(100%, 22.5rem);
  margin-top: auto;
  padding-top: 1rem;
  flex-shrink: 0;
}

body.stitch-theme .stitch-auth-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--stitch-primary);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: opacity 0.2s ease, transform 0.15s ease;
}

body.stitch-theme .stitch-auth-cta:active {
  transform: scale(0.98);
}

body.stitch-theme .stitch-auth-cta .material-symbols-outlined {
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

body.stitch-theme .stitch-auth-cta:hover .material-symbols-outlined {
  transform: translateX(2px);
}

body.stitch-theme .stitch-auth-landing-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.25rem;
  min-height: 2rem;
  flex-shrink: 0;
}

body.stitch-theme .stitch-auth-dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

body.stitch-theme .stitch-auth-dots span {
  display: block;
  width: 0.45rem;
  height: 0.2rem;
  border-radius: 999px;
  background: var(--stitch-container-high, #e2e2e2);
}

body.stitch-theme .stitch-auth-dots span.active {
  width: 1.75rem;
  background: var(--stitch-primary);
}

body.stitch-theme .stitch-auth-skip {
  border: none;
  background: transparent;
  color: var(--stitch-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}

body.stitch-theme .stitch-auth-skip:hover {
  color: var(--stitch-primary);
}

/* Welcome landing — short iOS viewports (PWA / Safari) */
@media (max-height: 740px) {
  body.stitch-theme .stitch-auth-hero {
    height: clamp(260px, 46dvh, 400px);
    min-height: 260px;
    max-height: 400px;
  }

  body.stitch-theme .stitch-auth-landing-content {
    padding-top: 1.25rem;
  }

  body.stitch-theme .stitch-auth-landing-title {
    margin-bottom: 0.6rem;
    font-size: clamp(1.45rem, 5.5vw, 1.75rem);
  }

  body.stitch-theme .stitch-auth-landing-sub {
    margin-bottom: 0.75rem;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  body.stitch-theme .stitch-auth-landing-actions {
    padding-top: 0.65rem;
  }
}

body.stitch-theme.is-auth-screen:not(.is-auth-landing) header {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  backdrop-filter: none;
}

body.stitch-theme.is-auth-screen:not(.is-auth-landing) main {
  max-width: 420px;
}

body.stitch-theme .stitch-auth-forms {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

body.stitch-theme .stitch-auth-back {
  width: 100%;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.stitch-theme .stitch-auth-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(207, 196, 197, 0.45);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 1.25rem;
}

body.stitch-theme .stitch-auth-head {
  text-align: center;
  margin-bottom: 1.25rem;
}

body.stitch-theme .stitch-auth-head h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}

body.stitch-theme .stitch-auth-sub {
  margin: 0;
  color: var(--stitch-muted);
  font-size: 0.95rem;
}

body.stitch-theme .stitch-auth-form label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stitch-muted);
}

body.stitch-theme .stitch-auth-form input {
  border: none;
  border-bottom: 2px solid var(--stitch-outline);
  border-radius: 0;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

body.stitch-theme .stitch-auth-form input:focus {
  border-bottom-color: var(--stitch-primary);
  box-shadow: none;
}

body.stitch-theme .auth-field-error {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--danger);
}

body.stitch-theme .stitch-auth-form .actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-top: 1.25rem;
}

body.stitch-theme .stitch-auth-form .actions .btn-primary {
  width: 100%;
  justify-content: center;
}

body.stitch-theme .stitch-google-auth-block {
  width: 100%;
  margin-bottom: 0.25rem;
}

body.stitch-theme .stitch-google-signin-host {
  position: relative;
  width: 100%;
  min-height: 3rem;
}

body.stitch-theme .stitch-google-signin-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--stitch-outline, #d8d8d8);
  border-radius: 999px;
  background: var(--stitch-surface, #fff);
  color: var(--stitch-text, #1a1c1c);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  pointer-events: none;
}

body.stitch-theme .stitch-google-signin-host.is-loading .stitch-google-signin-visual {
  opacity: 0.6;
}

body.stitch-theme .stitch-google-signin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #4285f4;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

body.stitch-theme .stitch-google-signin-render {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.001;
  overflow: hidden;
  border-radius: 999px;
}

body.stitch-theme .stitch-google-signin-render > div {
  width: 100% !important;
}

body.stitch-theme .stitch-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.25rem;
  color: var(--stitch-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.stitch-theme .stitch-auth-divider span:first-child,
body.stitch-theme .stitch-auth-divider span:last-child {
  flex: 1;
  height: 1px;
  background: var(--stitch-outline, #e2e2e2);
}

body.stitch-theme .stitch-auth-google-error {
  min-height: 1.25rem;
  margin: 0.35rem 0 0;
  color: #b42318;
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
}

body.stitch-theme .stitch-auth-landing-actions .stitch-google-auth-block {
  margin-bottom: 0.5rem;
}

/* ─── Wardrobe gate banner (matches Android WardrobeGateBanner) ─── */
body.stitch-theme .stitch-gate-banner {
  margin: 0 0 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.9rem;
  line-height: 1.45;
}

body.stitch-theme .stitch-gate-banner--ready {
  background: #ecfdf5;
  color: #047857;
  font-weight: 600;
}

/* ─── Home empty state when wardrobe gate not met (matches Android EmptyState) ─── */
body.stitch-theme .stitch-empty-state {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--stitch-radius-card, 16px);
  border: 1px solid var(--stitch-outline, #e2e2e2);
  background: var(--stitch-container-low, #f3f3f3);
}

body.stitch-theme .stitch-empty-state--warning {
  background: #fef3c7;
  border-color: rgba(146, 64, 14, 0.2);
}

body.stitch-theme .stitch-empty-state-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #92400e;
  margin: 0;
}

body.stitch-theme .stitch-empty-state--warning .stitch-empty-state-body {
  margin: 0.5rem 0 0;
  font-size: 0.94rem;
  line-height: 1.45;
  color: #92400e;
}

body.stitch-theme .stitch-empty-state-action {
  margin-top: 0.875rem;
  width: 100%;
  justify-content: center;
}

body.stitch-theme .stitch-auth-footer {
  display: none;
}

body.stitch-theme.is-auth-screen main {
  padding-top: 1rem;
}

body.stitch-theme.is-auth-landing main {
  padding-top: 0;
  padding-bottom: 0;
  min-height: 100dvh;
}

/* ─── Wardrobe add success toast ─── */
body.stitch-theme .stitch-wardrobe-success {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%) translateY(10px);
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.stitch-theme .stitch-wardrobe-success:not(.hidden) {
  display: block;
}

body.stitch-theme .stitch-wardrobe-success.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.stitch-theme .stitch-wardrobe-success-backdrop {
  background: rgba(47, 49, 49, 0.55);
  border-radius: 999px;
  padding: 0.3rem;
}

body.stitch-theme .stitch-wardrobe-success-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 1.1rem 0.45rem 0.45rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

body.stitch-theme .stitch-wardrobe-success-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.stitch-theme .stitch-wardrobe-success-icon .material-symbols-outlined {
  font-size: 1.1rem;
  font-variation-settings: "FILL" 1, "wght" 600;
}

body.stitch-theme .stitch-wardrobe-success-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--stitch-text);
}

body.stitch-theme .stitch-add-wardrobe-btn.is-added {
  background: var(--stitch-secondary, #5e5e5e);
  pointer-events: none;
}

/* ─── Profile menu cards ─── */
body.stitch-theme .profile-hero,
body.stitch-theme #profile-section > .section-label,
body.stitch-theme #profile-section > .section-sub:first-of-type {
  display: none;
}

body.stitch-theme #profile-section:not(.profile-detail-open) {
  gap: 0;
}

body.stitch-theme #profile-section.flow-section-active:not(.profile-detail-open):not(.hidden) {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  /* Fill viewport under header + above bottom nav (matches main padding). */
  min-height: calc(100dvh - 4.25rem - 5.5rem - env(safe-area-inset-bottom, 0px));
  padding-bottom: 0;
  box-sizing: border-box;
}

body.stitch-theme .stitch-profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.375rem;
  padding: 0.25rem 0 0;
  flex-shrink: 0;
}

body.stitch-theme .stitch-profile-header h2 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.stitch-theme .stitch-profile-sub {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--stitch-muted, #6b6b6b);
  text-align: center;
}

body.stitch-theme .stitch-readonly-field {
  margin: 0.35rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--stitch-outline, #e2e2e2);
  background: var(--stitch-container-low, #f3f3f3);
  color: var(--stitch-on-surface, #1a1a1a);
  font-size: 0.95rem;
  line-height: 1.4;
}

body.stitch-theme .stitch-profile-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

body.stitch-theme #profile-section.flow-section-active:not(.profile-detail-open) .stitch-profile-menu {
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 0;
  justify-content: stretch;
}

body.stitch-theme .stitch-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  width: 100%;
  text-align: left;
  padding: 0.6875rem 0.875rem;
  border: 1px solid rgba(207, 196, 197, 0.55);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  color: var(--stitch-text);
  font-family: inherit;
}

body.stitch-theme #profile-section.flow-section-active:not(.profile-detail-open) .stitch-profile-card {
  flex: 1 1 0;
  min-height: 3rem;
}

body.stitch-theme .stitch-profile-card:hover {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.07);
}

body.stitch-theme .stitch-profile-card strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

body.stitch-theme .stitch-profile-card-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--stitch-muted);
  line-height: 1.33;
}

body.stitch-theme .stitch-profile-chevron {
  color: var(--stitch-muted);
  flex-shrink: 0;
}

body.stitch-theme .stitch-profile-logout {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0 0;
  flex-shrink: 0;
}

body.stitch-theme #profile-section:not(.profile-detail-open):not(.hidden) {
  padding-bottom: 0;
}

body.stitch-theme #profile-section:not(.profile-detail-open):not(.hidden) .stitch-profile-logout {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  max-width: none;
  margin: 0.5rem 0 0;
  padding: 0;
  background: none;
  z-index: auto;
  box-sizing: border-box;
}

body.stitch-theme .stitch-profile-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  min-height: 44px;
  background: var(--stitch-surface);
  border: 1px solid #fecaca;
  border-radius: 999px;
  color: var(--danger);
  font-family: "Montserrat", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.75rem 1rem;
  box-sizing: border-box;
}

body.stitch-theme .settings-panel-header {
  display: none;
}

body.stitch-theme #profile-section:not(.profile-detail-open) .settings-accordion {
  display: none;
}

body.stitch-theme #profile-section.profile-detail-open .stitch-profile-header,
body.stitch-theme #profile-section.profile-detail-open .stitch-profile-menu,
body.stitch-theme #profile-section.profile-detail-open .stitch-profile-logout {
  display: none;
}

body.stitch-theme #profile-section.profile-detail-open .stitch-profile-detail-bar {
  display: flex;
}

body.stitch-theme .stitch-profile-detail-bar {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

body.stitch-theme .stitch-profile-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--stitch-outline);
  border-radius: 999px;
  background: var(--stitch-surface);
  color: var(--stitch-text);
  cursor: pointer;
  flex-shrink: 0;
}

body.stitch-theme .stitch-profile-detail-bar h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}

body.stitch-theme #profile-section.profile-detail-open .settings-panel:not(.expanded) {
  display: none;
}

body.stitch-theme #profile-section.profile-detail-open .settings-panel.expanded .settings-panel-body {
  display: block !important;
  padding-top: 0;
}

body.stitch-theme .settings-panel {
  border: none;
  box-shadow: none;
  background: transparent;
  margin-top: 0.5rem;
}

body.stitch-theme .settings-panel:not(.expanded) .settings-panel-body {
  display: none !important;
}

body.stitch-theme .settings-version-footer {
  display: none;
}

/* ─── Wardrobe availability tabs ─── */
body.stitch-theme .filter-tabs--availability button {
  border: 1px solid var(--stitch-outline);
  background: var(--stitch-surface);
}

body.stitch-theme .filter-tabs--availability button.active {
  background: var(--stitch-primary);
  border-color: var(--stitch-primary);
  color: #fff;
}

body.stitch-theme .filter-tabs--availability {
  margin-bottom: 0.25rem;
}

/* ─── Home load panel (auto-load; no occasion override on Home) ─── */
#style-day-section.stitch-home .stitch-home-load-btn {
  display: none !important;
}

body.stitch-theme .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#style-day-section.stitch-home .stitch-home-load-compact {
  margin-bottom: 0.75rem;
}

#style-day-section.stitch-home .stitch-home-load-compact label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stitch-muted);
}

#style-day-section.stitch-home .stitch-home-load-compact select {
  width: 100%;
  margin-top: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--stitch-outline);
  background: var(--stitch-surface);
  padding: 0.55rem 1rem;
}

/* ─── Logout + App Details dialogs ─── */
body.stitch-theme .stitch-logout-dialog .inner,
body.stitch-theme .stitch-app-details-dialog .inner {
  border-radius: 0.75rem;
}

body.stitch-theme .stitch-logout-copy {
  color: var(--stitch-muted);
  margin: 0 0 1.25rem;
}

body.stitch-theme .stitch-logout-actions {
  justify-content: stretch;
  gap: 0.75rem;
}

body.stitch-theme .stitch-logout-actions button {
  flex: 1;
  border-radius: 999px;
}

body.stitch-theme .stitch-logout-confirm {
  background: var(--danger) !important;
  color: #fff !important;
  border: none !important;
}

body.stitch-theme .stitch-app-details-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

body.stitch-theme .stitch-app-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: var(--stitch-container);
}

body.stitch-theme .stitch-app-details-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stitch-muted);
}

body.stitch-theme .stitch-app-details-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(207, 196, 197, 0.55);
  border-radius: 0.75rem;
  background: var(--stitch-surface);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--stitch-text);
}

body.stitch-theme .stitch-app-details-link span:nth-child(2) {
  flex: 1;
}

body.stitch-theme .stitch-app-details-link-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

body.stitch-theme .stitch-app-details-link-title {
  display: block;
  font-weight: 600;
}

body.stitch-theme .stitch-app-details-link-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--stitch-muted);
  word-break: break-word;
}

body.stitch-theme .stitch-support-link {
  display: flex;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(207, 196, 197, 0.55);
  background: var(--stitch-surface);
}

body.stitch-theme .stitch-support-link-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

body.stitch-theme .stitch-support-link-copy strong {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--stitch-text);
}

body.stitch-theme .stitch-support-link-email {
  font-size: 0.78rem;
  color: var(--stitch-muted);
  word-break: break-word;
}

body.stitch-theme .stitch-app-details-link span:nth-child(2):not(.stitch-app-details-link-copy) {
  flex: 1;
}

body.stitch-theme .stitch-app-details-danger {
  color: var(--danger);
}

body.stitch-theme .stitch-app-details-danger .material-symbols-outlined:first-child {
  color: var(--danger);
}

/* ─── Add clothing page ─── */
body.stitch-theme #addClothingPage.card {
  border: 1px solid rgba(207, 196, 197, 0.55);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.92);
}

body.stitch-theme #addClothingPage .add-clothing-header h2 {
  font-family: "Montserrat", sans-serif;
}

body.stitch-theme #addClothingPage .btn-primary,
body.stitch-theme #addClothingPage .btn-ghost {
  border-radius: 999px;
}

body.stitch-theme .item.unavailable {
  opacity: 1;
}

body.stitch-theme .item.unavailable img {
  filter: none;
}

/* ─── Add apparel flow ─── */
body.stitch-theme #addClothingPage.card {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0.25rem 0 2rem;
}

body.stitch-theme .stitch-add-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

body.stitch-theme .stitch-add-hero h2 {
  margin: 0 0 0.35rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--stitch-text);
}

body.stitch-theme .stitch-add-hero p {
  margin: 0;
  color: var(--stitch-muted);
  font-size: 0.95rem;
}

body.stitch-theme .stitch-source-cards {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

body.stitch-theme .stitch-source-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(207, 196, 197, 0.45);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  color: var(--stitch-text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.stitch-theme .stitch-source-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

body.stitch-theme .stitch-source-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--stitch-container);
  color: var(--stitch-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

body.stitch-theme .stitch-source-icon--dark {
  background: var(--stitch-primary);
  color: #fff;
}

body.stitch-theme .stitch-source-icon .material-symbols-outlined {
  font-size: 1.65rem;
}

body.stitch-theme .stitch-source-copy {
  flex: 1;
  min-width: 0;
}

body.stitch-theme .stitch-source-copy strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: var(--stitch-text);
}

body.stitch-theme .stitch-source-copy span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--stitch-muted);
}

body.stitch-theme .stitch-source-chevron {
  color: var(--stitch-muted);
}

body.stitch-theme .stitch-ai-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 5rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(207, 196, 197, 0.35);
  border-radius: 1rem;
  background: var(--stitch-container);
  text-align: center;
}

body.stitch-theme .stitch-ai-banner span:last-child {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stitch-text);
}

/* Add apparel — crop step (web parity with mobile allowsEditing) */
body.stitch-theme .stitch-crop-stage {
  width: 100%;
  height: min(58vh, 420px);
  min-height: 240px;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #111;
}

body.stitch-theme .stitch-crop-stage img {
  display: block;
  max-width: 100%;
}

body.stitch-theme .stitch-crop-stage .cropper-container {
  width: 100% !important;
  height: 100% !important;
}

body.stitch-theme .stitch-crop-stage .cropper-view-box,
body.stitch-theme .stitch-crop-stage .cropper-face {
  border-radius: 0;
}

body.stitch-theme .stitch-crop-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
}

body.stitch-theme .stitch-crop-actions .stitch-btn-primary,
body.stitch-theme .stitch-crop-actions .btn-ghost {
  width: 100%;
}

body.stitch-theme .stitch-import-card {
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(207, 196, 197, 0.45);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

body.stitch-theme .stitch-field-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stitch-muted);
}

body.stitch-theme .stitch-link-input {
  width: 100%;
  min-height: 5rem;
  padding: 0.65rem 0;
  border: none;
  border-bottom: 1px solid var(--stitch-outline);
  background: transparent;
  resize: vertical;
  font-size: 0.95rem;
  color: var(--stitch-text);
}

body.stitch-theme .stitch-link-input:focus {
  outline: none;
  border-bottom-color: var(--stitch-primary);
}

body.stitch-theme .stitch-ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.85rem 0 1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(207, 196, 197, 0.35);
  background: var(--stitch-container);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stitch-muted);
}

body.stitch-theme .stitch-fetch-btn,
body.stitch-theme .stitch-add-wardrobe-btn {
  width: 100%;
}

body.stitch-theme .stitch-add-back {
  width: 100%;
  margin-top: 0.5rem;
}

body.stitch-theme .stitch-review-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 42vh;
  margin: -0.25rem -1rem 0;
  overflow: hidden;
  background: var(--stitch-container);
}

body.stitch-theme .stitch-review-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

body.stitch-theme .stitch-review-hero--dialog {
  margin: 0;
  border-radius: 0;
  max-height: none;
  aspect-ratio: 4 / 5;
  max-height: 36vh;
}

body.stitch-theme #editItemDialog .stitch-review-hero {
  width: 100%;
  flex-shrink: 0;
  max-height: 30vh;
}

body.stitch-theme #editItemDialog .stitch-bento-grid--edit {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.stitch-theme #editItemDialog .stitch-review-hero img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

body.stitch-theme .stitch-insights-card {
  position: relative;
  z-index: 2;
  margin-top: -1.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

body.stitch-theme .stitch-insights-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

body.stitch-theme .stitch-insights-head h3 {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

body.stitch-theme .stitch-insights-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: transparent;
  color: var(--stitch-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

body.stitch-theme .stitch-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

body.stitch-theme .stitch-bento-cell {
  padding: 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid var(--stitch-container);
  background: var(--stitch-container);
}

body.stitch-theme .stitch-bento-cell--wide {
  grid-column: 1 / -1;
}

body.stitch-theme .stitch-season-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

body.stitch-theme .stitch-season-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 1px solid var(--stitch-outline);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: var(--stitch-surface);
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--stitch-text);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.stitch-theme .stitch-season-chip:hover {
  border-color: var(--stitch-primary);
}

body.stitch-theme .stitch-season-chip:has(input:checked),
body.stitch-theme .stitch-season-chip.active {
  border-color: var(--stitch-primary);
  background: var(--stitch-primary);
  color: #fff;
}

body.stitch-theme .stitch-bento-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stitch-muted);
}

body.stitch-theme .stitch-bento-hint {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--stitch-muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

body.stitch-theme .stitch-bento-label--required::after {
  content: " *";
  color: #b45309;
  text-transform: none;
  letter-spacing: 0;
}

body.stitch-theme .stitch-bento-cell--needs-review {
  border-color: #b45309 !important;
  border-width: 2px !important;
  background: rgba(180, 83, 9, 0.06) !important;
}

body.stitch-theme .stitch-bento-control--needs-review {
  border-color: #b45309 !important;
  border-width: 2px !important;
  background: rgba(180, 83, 9, 0.06) !important;
}

body.stitch-theme .add-review-hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #b45309;
}

body.stitch-theme .stitch-field-review-hint {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #b45309;
}

body.stitch-theme .stitch-field-review-hint.hidden,
body.stitch-theme .add-review-hint.hidden {
  display: none;
}

body.stitch-theme .stitch-field-confirm-btn {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.45rem 0.7rem;
  border: 2px solid var(--stitch-primary, #8b5a2b);
  border-radius: 999px;
  background: var(--stitch-container-low, #f8f4ef);
  color: var(--stitch-text, #2c241c);
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

body.stitch-theme .stitch-field-confirm-btn:hover {
  background: var(--stitch-container, #efe8df);
}

body.stitch-theme .stitch-add-wardrobe-btn:disabled,
body.stitch-theme .stitch-add-wardrobe-btn.is-review-blocked {
  opacity: 0.55;
  cursor: not-allowed;
}

body.stitch-theme .stitch-bento-value {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--stitch-text);
  line-height: 1.35;
}

body.stitch-theme .stitch-bento-color {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

body.stitch-theme .stitch-color-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex: 0 0 auto;
}

body.stitch-theme .stitch-bento-grid--edit .stitch-bento-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* [hidden] alone loses to display:flex above — keep match cell (and any hidden bento) gone */
body.stitch-theme .stitch-bento-cell.hidden,
body.stitch-theme .stitch-bento-cell[hidden] {
  display: none !important;
}

body.stitch-theme .stitch-bento-control {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--stitch-text);
  line-height: 1.35;
  cursor: pointer;
}

body.stitch-theme input.stitch-bento-control {
  cursor: text;
}

body.stitch-theme input.stitch-bento-control::placeholder {
  color: var(--stitch-muted);
  font-weight: 500;
}

body.stitch-theme select.stitch-bento-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.1rem;
  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='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 0.75rem;
}

body.stitch-theme .stitch-bento-color-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

body.stitch-theme .stitch-bento-control--color {
  flex: 1 1 auto;
  min-width: 0;
}

body.stitch-theme .stitch-bento-cell:focus-within {
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

body.stitch-theme .stitch-insights-card .stitch-tags-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

body.stitch-theme .stitch-tags-panel-title {
  display: none;
}

body.stitch-theme .stitch-tags-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

body.stitch-theme .stitch-tags-grid .stitch-tags-field--wide {
  grid-column: 1 / -1;
}

body.stitch-theme .stitch-tags-grid label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--stitch-muted);
}

body.stitch-theme .stitch-tags-grid input,
body.stitch-theme .stitch-tags-grid select {
  width: 100%;
}

body.stitch-theme .stitch-review-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

body.stitch-theme .wardrobe-limit-banner,
body.stitch-theme .wardrobe-limits-banner {
  margin: 0 0 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  border: 1px solid transparent;
}

body.stitch-theme .wardrobe-limits-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

body.stitch-theme .wardrobe-limit-banner__text {
  flex: 1;
  min-width: 0;
}

body.stitch-theme .wardrobe-limit-banner__close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0 0.1rem;
  cursor: pointer;
  opacity: 0.75;
}

body.stitch-theme .wardrobe-limit-banner__close:hover {
  opacity: 1;
}

body.stitch-theme .wardrobe-limit-banner--warning,
body.stitch-theme .wardrobe-limits-banner.wardrobe-limit-banner--warning {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
}

body.stitch-theme .wardrobe-limit-banner--error,
body.stitch-theme .wardrobe-limits-banner.wardrobe-limit-banner--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

body.stitch-theme .stitch-add-wardrobe-btn.is-limit-blocked,
body.stitch-theme .stitch-add-wardrobe-btn:disabled:not(.is-added) {
  opacity: 0.55;
  cursor: not-allowed;
}

body.stitch-theme .stitch-add-wardrobe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

body.stitch-theme .stitch-edit-item {
  width: min(430px, calc(100vw - 1rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: none;
  border-radius: 0.75rem;
  overflow: hidden;
}

body.stitch-theme .stitch-edit-form {
  padding: 0 0 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

body.stitch-theme .stitch-edit-actions {
  display: flex;
  gap: 0.65rem;
  padding: 0 1rem;
  margin-top: 0.85rem;
}

body.stitch-theme .stitch-edit-actions .btn-ghost,
body.stitch-theme .stitch-edit-actions .stitch-btn-primary {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

body.stitch-theme .stitch-add-apparel-btn {
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

body.stitch-theme .stitch-insights-card .analyze-banner {
  margin-top: 0.75rem;
}

body.stitch-theme #addClothingPage .add-step.hidden {
  display: none !important;
}

/* Profile → coming soon teasers (Insights + History) */
body.stitch-theme .coming-soon-teaser {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  padding: 0.875rem 1rem;
  border-radius: var(--stitch-radius-card, 0.75rem);
  border: 1px solid var(--stitch-outline);
  background: var(--stitch-surface, #fff);
}

body.stitch-theme .coming-soon-teaser-icon {
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--stitch-muted);
  flex-shrink: 0;
}

body.stitch-theme .coming-soon-teaser p {
  margin: 0;
  flex: 1;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8125rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--stitch-muted);
}

body.stitch-theme #settingsPanelHistory .coming-soon-teaser {
  margin-top: 1.25rem;
}
